How do I set the value property in AngularJS' ng-options?
Here is what seems to be bothering a lot of people (including me). When using the `ng-options` directive in AngularJS to fill in the options for a `<select>` tag, I cannot figure out how to set the v...
- Modified
- 7 Jan at 13:2
CSS class for pointer cursor
Is there any CSS class or attribute for `pointer:cursor` in [Bootstrap 4](https://getbootstrap.com/docs/4.0/components/buttons/) specially for button or link? ``` <link href="https://maxcdn.bootstrapc...
- Modified
- 16 Feb at 20:12
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...
- Modified
- 28 Jul at 09:59
What is the copy-and-swap idiom?
What is the copy-and-swap idiom and when should it be used? What problems does it solve? Does it change for C++11? Related: - [What are your favorite C++ Coding Style idioms: Copy-swap](https://stacko...
- Modified
- 4 Jul at 21:56
Is there an upside down caret character?
I have to maintain a large number of classic ASP pages, many of which have tabular data with no sort capabilities at all. Whatever order the original developer used in the database query is what you'r...
- Modified
- 4 Feb at 15:5
How to disable an input type=text?
I want to disable writing in an input field of type `text` using JavaScript, if possible. The input field is populated from a database; that is why I don't want the user to modify its value.
- Modified
- 2 Sep at 14:39
Javascript set img src
I am probably missing something simple but it's quite annoying when everything you read doesn't work. I have images which may be duplicated many times over the course of a dynamically generated page. ...
- Modified
- 31 Jul at 23:22
Error : Index was outside the bounds of the array.
I'm aware of what the issue is stating but I am confused to how my program is outputting a value that's outside of the array.. I have an array of ints which is 0 - 8 which means it can hold 9 ints, c...
SQL Server database backup restore on lower version
How to restore a higher version SQL Server database backup file onto a lower version SQL Server? Using SQL Server , I made a backup file and now I want to restore it on my live server's SQL Server . ...
- Modified
- 26 Jul at 21:1
Why does printf not flush after the call unless a newline is in the format string?
Why does `printf` not flush after the call unless a newline is in the format string? Is this POSIX behavior? How might I have `printf` immediately flush every time?
Distinct() with lambda?
Right, so I have an enumerable and wish to get distinct values from it. Using `System.Linq`, there's, of course, an extension method called `Distinct`. In the simple case, it can be used with no param...
- Modified
- 7 Jul at 21:0
Response.Redirect to new window
I want to do a `Response.Redirect("MyPage.aspx")` but have it open in a new browser window. I've done this before without using the JavaScript register script method. I just can't remember how?
- Modified
- 30 Nov at 07:49
How do I convert 2018-04-10T04:00:00.000Z string to DateTime?
I get a date from a JSON API which looks like this "2018-04-10T04:00:00.000Z". I want to convert it in order to obtain a Date or String object and get something like "01-04-2018" that its "dd-MM-YYYY"...
- Modified
- 10 Apr at 11:11
Experimental decorators warning in TypeScript compilation
I receive the warning... > Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option `to remove this warning. ... even t...
- Modified
- 25 Mar at 17:49
How to locate the php.ini file (xampp)
I am using `xampp`server for `PHP` development and want to edit the `php.ini` file; where can I locate it?
How to get char from string by index?
Lets say I have a string that consists of x unknown chars. How could I get char nr. 13 or char nr. x-14?
Remote debugging a Java application
I have a java application running on linux machine. I run the java application using the following: ``` java myapp -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=4000, suspend=n ``` I have...
- Modified
- 30 Apr at 18:5
Whether a variable is undefined
How do I find if a variable is undefined? I currently have: ``` var page_name = $("#pageToEdit :selected").text(); var table_name = $("#pageToEdit :selected").val(); var optionResult = $("#pageToEdi...
- Modified
- 23 May at 12:3
npm - "Can't find Python executable "python", you can set the PYTHON env variable."
I'm trying to run the following command: `npm install -g bower gulp cordova ionic tsd@next karma-cli protractor node-gyp coffee-script js-beautify typescript npm-check` I have installed Python, Visua...
- Modified
- 19 Dec at 16:29
500 Internal Server Error for php file not for html
My site having 4-5 static pages only. & both are there. index.html is working fine. If I change to index.php, it's giving `500 Internal Server Error`. I don't know where is my mistake? If I use ...
- Modified
- 17 Nov at 00:3
Adding integers to an int array
I am trying to add integers into an int array, but Eclipse says: > cannot invoke add(int) on the array type int[] Which is completely illogical to me. I also tried `addElement()` and `addInt()`, ho...
How can I prevent the TypeError: list indices must be integers, not tuple when copying a python list to a numpy array?
I am trying to create 3 numpy arrays/lists using data from another array called mean_data as follows: ``` ---> 39 R = np.array(mean_data[:,0]) 40 P = np.array(mean_data[:,1]) 41 Z = np.arra...
Laravel Eloquent Sum of relation's column
I've been working on a shopping cart application and now I've come to the following issue.. - `id``user_id``product_id`- `hasMany`- `belongsTo``hasMany` Now to calculate the total products I can just...
Unable to load DLL (Module could not be found HRESULT: 0x8007007E)
I have a dll library with unmanaged C++ API code I need to use in my .NET 4.0 application. But every method I try to load my dll I get an error: > Unable to load DLL 'MyOwn.dll': The specified module ...
AngularJS : Prevent error $digest already in progress when calling $scope.$apply()
I'm finding that I need to update my page to my scope manually more and more since building an application in angular. The only way I know of to do this is to call `$apply()` from the scope of my con...
- Modified
- 23 May at 07:36