How to assign multiple classes to an HTML container?
Is it possible to assign multiple classes to a single `HTML` container? Something like: ``` <article class="column, wrapper"> ```
How would you make a comma-separated string from a list of strings?
What would be your preferred way to concatenate strings from a sequence such that between every two consecutive pairs a comma is added. That is, how do you map, for instance, `['a', 'b', 'c']` to `'a,...
Two submit buttons in one form
I have two buttons in a form. How do I determine which one was hit serverside?
How to connect to MySQL from the command line
How can you connect to MySQL from the command line in a Mac? (i.e. show me the code) I'm doing a PHP/SQL tutorial, but it starts by assuming you're already in MySQL.
- Modified
- 14 Sep at 14:2
How to read a large file line by line?
I want to read a file line by line, but without completely loading it in memory. My file is too large to open in memory, and if try to do so I always get out of memory errors. The file size is 1 GB....
- Modified
- 16 Jan at 13:32
How to get the type of T from a member of a generic class or method
Let's say I have a generic member in a class or method, like so: ``` public class Foo<T> { public List<T> Bar { get; set; } public void Baz() { // get type of T } } ```...
Argument list too long error for rm, cp, mv commands
I have several hundred PDFs under a directory in UNIX. The names of the PDFs are really long (approx. 60 chars). When I try to delete all PDFs together using the following command: ``` rm -f *.pdf `...
- Modified
- 11 Nov at 17:28
How can I get jQuery to perform a synchronous, rather than asynchronous, Ajax request?
I have a JavaScript widget which provides standard extension points. One of them is the `beforecreate` function. It should return `false` to prevent an item from being created. I've added an Ajax ca...
- Modified
- 22 May at 13:4
printf() formatting for hexadecimal
Why, when printing a number in hexadecimal as an 8 digit number with leading zeros, does `%#08X` display the same result as `0x%08X`? When I try to use the former, the `08` formatting flag is removed...
How to implement a tree data-structure in Java?
Is there any standard Java library class to represent a tree in Java? Specifically I need to represent the following: - - - Is there any available structure for this or do I need to create my own ...
- Modified
- 16 Mar at 23:4
Creating an array of objects in Java
I am new to Java and for the time created an array of objects in Java. I have a class A for example - ``` A[] arr = new A[4]; ``` But this is only creating pointers (references) to `A` and not 4...
Get the last 4 characters of a string
I have the following string: `"aaaabbbb"` How can I get the last four characters and store them in a string using Python?
How do I find duplicate values in a table in Oracle?
What's the simplest SQL statement that will return the duplicate values for a given column and the count of their occurrences in an Oracle database table? For example: I have a `JOBS` table with the ...
- Modified
- 9 Jul at 11:6
Serialize form data to JSON
I want to do some pre-server-validation of a form in a [Backbone.js](https://en.wikipedia.org/wiki/Backbone.js) model. To do this I need to get the user input from a form into usable data. I found thr...
- Modified
- 24 Apr at 19:20
ORA-01017 Invalid Username/Password when connecting to 11g database from 9i client
I'm trying to connect to a schema on 11g (v11.2.0.1.0) from a PC with 9i (v9.2.0.1) client. It seems to connect fine to some schemas, but not this one - it comes back with a `ORA-01017 Invalid Usernam...
Set database from SINGLE USER mode to MULTI USER
I need help with setting a database that was restored in `SINGLE_USER` mode to `MULTI_USER`. Every time I run ``` ALTER DATABASE BARDABARD SET MULTI_USER; GO ``` I get this error: > Changes to the st...
- Modified
- 20 Jun at 09:12
Warning: mysqli_connect(): (HY000/1045): Access denied for user 'username'@'localhost' (using password: YES)
> Warning: mysqli_connect(): (HY000/1045): Access denied for user 'username'@'localhost' (using password: YES) in C:\Users\xampp\htdocs\PHP_Login_Script\config.php on line 6 I'm getting this error abo...
- Modified
- 28 Oct at 15:50
How to permanently remove few commits from remote branch
I know that's rewriting of history which is bad yada yada. But how to permanently remove few commits from remote branch?
- Modified
- 15 Sep at 09:23
Node.js - SyntaxError: Unexpected token import
I don't understand what is wrong. Node v5.6.0 NPM v3.10.6 The code: ``` function (exports, require, module, __filename, __dirname) { import express from 'express' }; ``` The error: ``` Synta...
- Modified
- 15 Nov at 16:9
All possible array initialization syntaxes
What are all the array initialization syntaxes that are possible with C#?
- Modified
- 10 Feb at 16:32
What is a StackOverflowError?
What is a `StackOverflowError`, what causes it, and how should I deal with them?
- Modified
- 13 Aug at 17:7
WAMP shows error 'MSVCR100.dll' is missing when install
When I tried to install , that popped up the following alert,  I clicked , it continued to install WAMP. When I start, the WAMP logo is ...
- Modified
- 5 Mar at 09:14
How do I uninstall a Windows service if the files do not exist anymore?
How do I uninstall a .NET Windows Service if the service files do not exist anymore? I installed a .NET Windows Service using InstallUtil. I have since deleted the files but forgot to run ``` InstallU...
- Modified
- 25 Aug at 13:48