Quantcast
Channel: worksonmymachine
Browsing all 25 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Randomness in SQL (or lack thereof)

In case you didn’t know, SQL Server’s RAND() function is a bit of a joke. For a given seed value it will continually return the same number. Greeeeeat. So, here’s my implementation. /* Author : Mel...

View Article


Image may be NSFW.
Clik here to view.

Codility Challenges

Well it’s been ages since I last posted, but I’m less busy than usual these next weeks. So what I’m doing is following through on my current obsession with Codility. I’ll be posting the results of my...

View Article


Image may be NSFW.
Clik here to view.

Logic teasers, Edition 2;

Reposted from : http://ayende.com/blog/163394/new-interview-question?Key=ba723523-5252-4377-8c54-239026db23e5 Given a finite set of unique numbers, find all the runs in the set. Runs are 1 or more...

View Article

Image may be NSFW.
Clik here to view.

Adding Business rules to your DAOs with Repository.

So if you have a series of POCOs,  and like a good developer you’re using some nice ORM like NHibernate or Entity framework, and you have a Repository pattern going on, but now you want to add in...

View Article

Image may be NSFW.
Clik here to view.

NHibernate missing or invalid object exceptions, with two databases

Currently, I’m working on a project which involves working with SqLite databases, and one of them is reserved for Undo operations, that is to say, the current state of an object in the main database is...

View Article

Browsing all 25 articles
Browse latest View live