Questions

How to parse a query string into a NameValueCollection in .NET

I would like to parse a string such as `p1=6&p2=7&p3=8` into a `NameValueCollection`. What is the most elegant way of doing this when you don't have access to the `Page.Request` object?

1 Nov at 16:7

Error: Java: invalid target release: 11 - IntelliJ IDEA

I am trying to build an application which was built using java 8, now it's upgraded to java 11. I installed [Java 11](https://www.oracle.com/technetwork/java/javase/downloads/index.html) using [an ora...

31 Oct at 18:36

Multiple ng-content

I am trying to build a custom component using multiple `ng-content` in Angular 6, but this is not working and I have no idea why. This is my component code: ``` <div class="header-css-class"> <ng-...

*ngIf else if in template

How would I have multiple cases in an `*ngIf` statement? I'm used to Vue or Angular 1 with having an `if`, `else if`, and `else`, but it seems like Angular 4 only has a `true` (`if`) and `false` (`els...

20 May at 13:2

CardView background color always white

I am using RecyclerView with GridLayoutManager and I have each item as CardView. Unfortunately, the CardView here does not seem to change its background color. I tried in layout and programmatically ...

React setState not updating state

So I have this: ``` let total = newDealersDeckTotal.reduce(function(a, b) { return a + b; }, 0); console.log(total, 'tittal'); //outputs correct total setTimeout(() => { this.setState({ dealersOv...

18 Nov at 08:12

What TypeScript version is Visual Studio Code using? How to update it?

How can I tell what version of TypeScript is being used in Visual Studio Code? In particular, I had been using TypeScript 1.8.10 and VSCode 1.4.0. I first updated VSCode to the latest version, which...

24 Sep at 16:49

what is right way to do API call in react js?

I have recently moved from Angular to ReactJs. I am using jQuery for API calls. I have an API which returns a random user list that is to be printed in a list. I am not sure how to write my API calls...

12 May at 10:50

Change route params without reloading in Angular 2

I'm making a real estate website using Angular 2, Google Maps, etc. and when a user changes the center of the map I perform a search to the API indicating the current position of the map as well as th...

Storage permission error in Marshmallow

In Lollipop, the download functionality works fine in my app, but when I upgraded to Marshmallow, my app crashes and gives this error when I try to download from the internet into the SD card: ``` N...

Error: Execution failed for task ':app:clean'. Unable to delete file

I'm trying to rebuild my Android Studio Gradle project (containing mostly Kotlin code), but it started to throw an `UnableToDeleteFileException` during the cleaning/rebuilding process: ``` Execution ...

How to align flexbox columns left and right?

With typical CSS I could float one of two columns left and another right with some gutter space in-between. How would I do that with flexbox? [http://jsfiddle.net/1sp9jd32/](http://jsfiddle.net/1sp9j...

30 Aug at 14:58

How to play video with AVPlayerViewController (AVKit) in Swift

How do you play a video with AV Kit Player View Controller in Swift? ``` override func viewDidLoad() { super.viewDidLoad() let videoURLWithPath = "http://****/5.m3u8" let vide...

Unable to type in Visual Studio

I am unable to edit any files in a project in Visual Studio 2013. It only happens in one project. If I open a different project I am able to type fine, but once I go back into the problem project I ...

When use getOne and findOne methods Spring Data JPA

I have an use case where it calls the following: ``` @Override @Transactional(propagation=Propagation.REQUIRES_NEW) public UserControl getUserControlById(Integer id){ return this.userControlReposi...

2 Sep at 09:33

How can I get the Typescript compiler to output the compiled js to a different directory?

I'm fairly new to TypeScript, and right now I have .ts files in several places throughought my project structure: ``` app/ |-scripts/ |-app.ts | |-classes/ | |-classA.ts | |-cl...

29 Apr at 13:4

Laravel migration: unique key is too long, even if specified

I am trying to migrate a users table in Laravel. When I run my migration I get this error: > [Illuminate\Database\QueryException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified...

Error: No default engine was specified and no extension was provided

I am working through setting up a http server using node.js and engine. However, I keep running into issues that I have little information on how to resolve I would appreciate some help solving this ...

24 Nov at 10:45

Extension exists but uuid_generate_v4 fails

At amazon ec2 RDS Postgresql: ``` => SHOW rds.extensions; rds.extensions ...

Mock functions in Go

I'm puzzled with dependencies. I want to be able to replace some function calls with mock ones. Here's a snippet of my code: ``` func get_page(url string) string { get_dl_slot(url) defer free_...

22 Sep at 12:41

How do I extract the contents of an rpm?

I have an rpm and I want to treat it like a tarball. I want to extract the contents into a directory so I can inspect the contents. I am familiar with the querying commands of an uninstalled package. ...

AngularJS Folder Structure

How do you layout a folder structure for a large and scaleable AngularJS application?

29 Nov at 19:22

Keyboard shortcut to comment lines in Sublime Text 3

In Sublime Text 2 it was possible to comment out a line or a block of lines with + and ++. According to the menu `Edit > Comment` these shortcuts should be valid, but in Sublime Text 3 (build 3047) t...

23 Aug at 11:10

How do I export a project in the Android studio?

How do I export project in the Android Studio? I mean, like I used to do in Eclipse by `File|Export`..

10 Apr at 15:24

Mysql adding user for remote access

I created user `user@'%'` with `password 'password`. But I can not connect with: ``` mysql_connect('localhost:3306', 'user', 'password'); ``` When I created user `user@'localhost'`, I was able to c...

28 Jul at 09:59