Wednesday 14 November 2012

CSharp: Read bytes from File

Question:
How to read bytes from a file?
How to read a file as a byte array?

Tuesday 30 October 2012

CSharp: Word Mail Merge with data

Question:
How to merge data into a Word document using the mail merge functionality?
Using mail merge in MS Word with a data file.

Monday 22 October 2012

SQL: return resultset from oracle procedure

Question:
How do I return a resultset from an Oracle procedure?

Monday 17 September 2012

CSharp: Slice in CSharp

Question:
Is there an equivalent to the Python slice method in c#?
How to slice in c#?

Tuesday 19 June 2012

CSharp: How to replace with Regex

Question:
How to replace a set of chars by another character using regular expressions in C#?

Monday 23 April 2012

Dot.Net: Method name Reflection

Question:
How to get the method name of the method you are executing?
I want to log the method name of my context method; how do I do that?

Thursday 29 March 2012

JavaScript: Reload Page

Question:

How do you reload a web page with JavaScript?

Answer:

You ask the DOM API of your browser. There are several ways to do this.
Tuesday 6 March 2012

Dot.Net: Get Dot.Net Source Code

Question:
Is there a way to see the source code of the dot.net framework?

Wednesday 22 February 2012

JavaScript: Object literals - object initializers

Question:
How to create a simple JavaScript object with object initializers (aka object literals)?

Wednesday 25 January 2012

SQL: Set Implicit Transactions SQL Server Manager

Question:
How to avoid or disable auto-commit for queries in SQLServer Manger?
How to set an implicit transaction scope for my queries? I want to commit them manually.