NoSQL

Martin Fowler & Pramod Sadalage
Some common characteristics of NoSQL databases
1. they don’t use the relational data model, and thus don’t use the SQL language
2. they tend to be designed to run on a cluster
3. they tend to be Open Source
4. they don’t have a fixed schema, allowing you to store any data in any record

Interesting read on Martins bliki and http://nosql.mypopescu.com/

Framework vs Library

A library is essentially a set of functions that you can call, these days usually organized into classes. Each call does some work and returns control to the client.

A framework embodies some abstract design, with more behavior built in. In order to use it you need to insert your behavior into various places in the framework either by subclassing or by plugging in your own classes. The framework’s code then calls your code at these points.

source: Martin Fowler 

Generate msbuild file from solution

Here is a quick way to generate a start up msbuild file from your solutions file.

Launch Visual Studio Command prompt and change directory to your project directory and then type the following 2 commands.
set MSBuildEmitSolution=1
msbuild <<your project>>.sln

This file will be generated next to the solution file, it wil be named .sln.metaproj.

All thanks to original post at http://www.codeproject.com/Tips/177770/Creating-MSBuild-projects-from-sln-files

Enjoy

++ operator in VB.Net

We do miss the power of ++ operator in Vb.Net. Here is a quick way to achieve the same result
Use System.Math.Max(System.Threading.Interlocked.Increment(i),i – 1)
to achieve the same result as i++

Hope it helps!

How to run asp.net development server from command line

With help of couple of posts on web and stackoverflow.com

to run asp.net 2.0 webdev server, copy the following command in a .bat file

C:\Windows\Microsoft.NET\Framework\v2.0.50727\Webdev.WebServer.exe /port:[PORT NUMBER] /path: [PATH TO ROOT]

to run asp.net 4.0 webdev server, replace the location of webdev server

“C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0\Webdev.WebServer40.exe” /port:[PORT NUMBER]/path:[PATH TO ROOT]

Hope it helps!

 

 

error : The Web Application Project * is configured to use IIS. The IIS Web server is not installed on this computer.

This problem arises when you try to load an existing web project, configured to run on IIS. A simple quick solution can be to open the project in a text editor and update the property UseIIS from True to False. <UseIIS>False</UseIIS>

Save the file and reload the project. This will enable you to use WebDAV server instead of IIS to run the application.

Happy programming!

How to get date 3 days before today

Its pretty simple really…

DateTime.Now.AddDays(-3)

Cheers

Follow

Get every new post delivered to your Inbox.

Join 37 other followers