How can I do a case insensitive string comparison?
How can I make the line below case insensitive? ``` drUser["Enrolled"] = (enrolledUsers.FindIndex(x => x.Username == (string)drUser["Username"]) != -1); ``` I was given some advice earlier t...
- Modified
- 31 Oct at 09:54
Why doesn't Java allow overriding of static methods?
Why is it not possible to override static methods? If possible, please use an example.
- Modified
- 8 Feb at 17:14
How to zip a whole folder using PHP
I have found here at stackoveflow some code on how to ZIP a specific file, but how about a specific folder? ``` Folder/ index.html picture.jpg important.txt ``` inside in `My Folder`, there are...
How to split a string literal across multiple lines in C / Objective-C?
I have a pretty long sqlite query: ``` const char *sql_query = "SELECT statuses.word_id FROM lang1_words, statuses WHERE statuses.word_id = lang1_words.word_id ORDER BY lang1_words.word ASC"; ``` H...
- Modified
- 23 Jul at 03:59
How to correctly use Html.ActionLink with ASP.NET MVC 4 Areas
I recently discovered [Areas in ASP.NET MVC 4](http://www.codeproject.com/Articles/714356/Areas-in-ASP-NET-MVC), which I have successfully implemented, but I'm running into troubles with the `@Html.Ac...
- Modified
- 1 Apr at 16:12
How to tell if UIViewController's view is visible
I have a tab bar application, with many views. Is there a way to know if a particular `UIViewController` is currently visible from within the `UIViewController`? (looking for a property)
- Modified
- 24 Sep at 00:36
How to get row from R data.frame
I have a data.frame with column headers. How can I get a specific row from the data.frame as a list (with the column headers as keys for the list)? Specifically, my data.frame is And I want to ...
Python Error: "ValueError: need more than 1 value to unpack"
In Python, when I run this code: ``` from sys import argv script, user_name =argv prompt = '>' print "Hi %s, I'm the %s script." % (user_name, script) ``` I get this error: ``` Traceback (most r...
How to center canvas in html5
I've been searching for a solution for a while now, but haven't found anything. Maybe it's just my search terms. Well, I'm trying to make the canvas center according to the size of the browser window....
SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
Since a few days I got an issue with Mac OS High Sierra 10.13.3 : When I run a `git clone` like `git clone github.com/xxx.git failed` it print: > LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection...
How to hide a <option> in a <select> menu with CSS?
I've realized that Chrome, it seems, will not allow me to hide `<option>` in a `<select>`. Firefox will. I need to hide the `<option>`s that match a search criteria. In the Chrome web tools I can see ...
- Modified
- 16 Sep at 14:17
Spring MVC: Complex object as GET @RequestParam
Suppose i have a page that lists the objects on a table and i need to put a form to filter the table. The filter is sent as an Ajax GET to an URL like that: [http://foo.com/system/controller/action?pa...
- Modified
- 5 Jun at 14:10
Find duplicate records in a table using SQL Server
I am validating a table which has a transaction level data of an eCommerce site and find the exact errors. I want your help to find duplicate records in a 50 column table on SQL Server. Suppose my d...
- Modified
- 12 Nov at 17:54
When can I use a forward declaration?
I am looking for the definition of when I am allowed to do forward declaration of a class in another class's header file: Am I allowed to do it for a base class, for a class held as a member, for a c...
- Modified
- 22 Mar at 12:10
Why do I get a NameError when using input()?
I am getting an error executing this code: ``` nameUser = input("What is your name ? ") print (nameUser) ``` The error message is ``` Traceback (most recent call last): File "C:/Users/DALY/Desk...
- Modified
- 16 Aug at 23:1
What is the equivalent of bigint in C#?
What am I supposed to use when handling a value in C#, which is bigint for an SQL Server database?
- Modified
- 9 Jul at 04:43
Android - Dynamically Add Views into View
I have a layout for a view - ``` <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" andro...
- Modified
- 2 Jun at 15:18
Error: No toolchains found in the NDK toolchains folder for ABI with prefix: llvm
I want to compile an open source android project (Netguard) using gradel (`gradlew clean build`) But I encountered this Error: ``` A problem occurred configuring project ':app'. > Exception thrown wh...
- Modified
- 1 Feb at 10:29
Two decimal places using printf( )
I'm trying to write a number to two decimal places using `printf()` as follows: ``` #include <cstdio> int main() { printf("When this number: %d is assigned to 2 dp, it will be: 2%f ", 94.9456, 94.9...
pandas dataframe columns scaling with sklearn
I have a pandas dataframe with mixed type columns, and I'd like to apply sklearn's min_max_scaler to some of the columns. Ideally, I'd like to do these transformations in place, but haven't figured o...
- Modified
- 3 Mar at 08:38
How to create a shared library with cmake?
I have written a library that I used to compile using a self-written Makefile, but now I want to switch to cmake. The tree looks like this (I removed all the irrelevant files): ``` . ├── include │ ...
- Modified
- 21 Nov at 14:28
MySQL - ERROR 1045 - Access denied
In some way I have managed to get this error when I try to access into MySQL via the command line: ``` [root@localhost ~]# mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user ...
- Modified
- 8 Jan at 05:28
How do I concatenate text in a query in sql server?
The following SQL: ``` SELECT notes + 'SomeText' FROM NotesTable a ``` Give the error: > The data types nvarchar and text are incompatible in the add operator.
- Modified
- 1 Aug at 15:17