How to store custom objects in NSUserDefaults
Alright, so I've been doing some poking around, and I realize my problem, but I don't know how to fix it. I have made a custom class to hold some data. I make objects for this class, and I need to t...
- Modified
- 17 Apr at 16:52
How do I do string replace in JavaScript to convert ‘9.61’ to ‘9:61’?
Given the code line ``` var value = $("#text").val(); ``` and `value = 9.61`, I need to convert `9.61` to `9:61`. How can I use the JavaScript replace function here?
- Modified
- 15 Dec at 03:17
What is the difference between aggregation, composition and dependency?
What is the difference between aggregation, composition and dependency?
How do I get a file name from a full path with PHP?
For example, how do I get `Output.map` `F:\Program Files\SSH Communications Security\SSH Secure Shell\Output.map` with PHP?
How do I parse a string with a decimal point to a double?
I want to parse a string like `"3.5"` to a double. However, ``` double.Parse("3.5") ``` yields 35 and ``` double.Parse("3.5", System.Globalization.NumberStyles.AllowDecimalPoint) ``` throws a ...
How to change collation of database, table, column?
The database is `latin1_general_ci` now and I want to change collation to `utf8mb4_general_ci`. Is there any setting in PhpMyAdmin to change collation of database, table, column? Rather than changing...
Does Notepad++ show all hidden characters?
In Notepad++ I have set "replace tab with 2 spaces". When coding in Python I copy-pasted some code from the web and it appeared indented correctly. But running the code resulted in indentation errors...
- Modified
- 26 Jun at 18:45
How to find out which processes are using swap space in Linux?
Under Linux, how do I find out which process is using the swap space more?
How do you create a daemon in Python?
[Searching on Google](http://www.google.co.uk/search?q=python+daemon) reveals x2 code snippets. The first result is to [this code recipe](http://code.activestate.com/recipes/278731/) which has a lot o...
How do you import a large MS SQL .sql file?
I use RedGate SQL data compare and generated a .sql file, so I could run it on my local machine. But the problem is that the file is over 300mb, which means I can't do copy and paste because the clipb...
- Modified
- 6 Feb at 17:46
Server.Transfer Vs. Response.Redirect
What is difference between `Server.Transfer` and `Response.Redirect`? - - -
- Modified
- 24 Sep at 02:25
XML Schema (XSD) validation tool?
At the office we are currently writing an application that will generate XML files against a schema that we were given. We have the schema in an .XSD file. Are there tool or libraries that we can us...
- Modified
- 15 Sep at 14:35
Response.Redirect with POST instead of Get?
We have the requirement to take a form submission and save some data, then redirect the user to a page offsite, but in redirecting, we need to "submit" a form with POST, not GET. I was hoping there w...
- Modified
- 9 Sep at 21:13
What are the pros and cons to keeping SQL in Stored Procs versus Code
What are the advantages/disadvantages of keeping SQL in your C# source code or in Stored Procs? I've been discussing this with a friend on an open source project that we're working on (C# ASP.NET Foru...
- Modified
- 27 Oct at 14:46
React Native version mismatch
Getting the following message when I init a new project and then launch the Xcode emulator: > React-Native Version MismatchJavascript Version 0.50.1 Native version: 0.50.0 Make sure you have rebuil...
- Modified
- 17 Jan at 18:56
Can’t delete docker image with dependent child images
I am trying ``` docker rmi c565603bc87f ``` Error: > Error response from daemon: conflict: unable to delete c565603bc87f (cannot be forced) - image has dependent child images So i can't delete ...
- Modified
- 6 Mar at 20:48
Android Gradle Apache HttpClient does not exist?
I am trying to convert an IntelliJ project to the Gradle system of Android Studio but I am running into errors with Apache HttpClient? Am I missing something, the errors I am getting are as follows: ...
- Modified
- 15 Jul at 14:48
Best way to disable button in Twitter's Bootstrap
I am confused when it comes to disabling a `<button>`, `<input>` or an `<a>` element with classes: `.btn` or `.btn-primary`, with JavaScript/jQuery. I have used a following snippet to do that: ``` $...
- Modified
- 2 Sep at 07:52
Find a string by searching all tables in SQL Server
Is there any way to search for a string in all tables of a database in SQL Server? I want to search for string say `john`. The result should show the tables and their respective row that contain `john...
- Modified
- 16 Jul at 14:59
SQL WITH clause example
I was trying to understand how to use the `WITH` clause and the purpose of the `WITH` clause. All I understood was, the `WITH` clause was a replacement for normal sub-queries. Can anyone explain thi...
- Modified
- 23 May at 12:26
Difference between application/x-javascript and text/javascript content types
What is the difference between these headers? ``` Content-Type: application/javascript Content-Type: application/x-javascript Content-Type: text/javascript ``` Which one is best and why? Please do...
- Modified
- 16 Jan at 23:33
How to find the operating system details using JavaScript?
How can I find the OS name and OS version using JavaScript?
- Modified
- 10 Aug at 20:24
Convert timestamp to date in MySQL query
I want to convert a `timestamp` in MySQL to a date. I would like to format the user.registration field into the text file as a `yyyy-mm-dd`. Here is my SQL: ``` $sql = requestSQL("SELECT user.email, ...
- Modified
- 20 Jun at 09:12
How to compute the similarity between two text documents?
I am looking at working on an NLP project, in any programming language (though Python will be my preference). I want to take two documents and determine how similar they are.
MongoDB inserts float when trying to insert integer
``` > db.data.update({'name': 'zero'}, {'$set': {'value': 0}}) > db.data.findOne({'name': 'zero}) {'name': 'zero', 'value': 0.0} ``` How do I get Mongo to insert an integer? Thank you
- Modified
- 4 Jun at 13:38