-
c# - Write HTML to string
I have code like this. Is there a way to make it easier to write and maintain? Using C# .NET 3.5. string header(string title) { StringWriter s = new StringWriter(); s....
-
objective c - Lightweight migration of nspersistent document
I'm trying to do a lightweight migration of a SQLite store in Core Data. Working on Lion 10.7.3 with Xcode 4.3.1. In my NSPersistentDocument subclass (AccountDocument), I've o...
-
serialization - What is the best way to handle version control using the JSON protocol?
I am normally writing all parts of the code in C# and when writing protocols that are serialized I use FastSerializer that serializes/deserializes the classes fast and efficien...
-
caching - Stop the browser to make an HTTP request for images that should be kept in the cache - Mod_ expires
After reading many articles and some questions on here, I finally succeded in activating the Apache mod_expires to tell the browser it MUST cache images for 1 year. <filesM...
-
SQL statements use a where clause with multiple values
I have a table that has multiple rows with the following fields: PersonName SongName Status I want to use names selected from a multiple selection listbox, which I can retr...
-
Excel compares the two columns and highlights them when they are found
I have an excel file with 10,000 rows in column A some values are the same. Example: A1 - P7767 A2 - P3443 A3 - P7767 A4 - P8746 A5 - P9435 etc... I then have another ...
-
belt ADO.NET What is the default transaction isolation level of SQL server for?
What is the default transaction isolation level for SQL Server with ADO.NET? I am using a default installation of SQL Server and just the normal System.Data.SqlClient classes. ...
-
c - %*What does the s format specifier mean?
In some code that I have to maintain, I have seen a format specifier %*s . Can anybody tell me what this is and why it is used? An example of its usage is like: fprintf(outFi...
-
Create a jar of test binaries - gradle
I'm using the latest version of Gradle (milestone 9), and I'm trying to figure out how to create a Jar of all test binaries. From what I've found on the internet, the followi...
-
How does defining [bracket] methods work in ruby?
I am going through Programming Ruby - a pragmatic programmers guide and have stumbled on this piece of code: class SongList def [](key) if key.kind_of?(Integer) re...