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

Image may be NSFW.
Clik here to view.

Generating a range quickly using common table expressions

I’m starting to really love the CTE in SQL2005. I was implementing some Python analytics code for a client today which iterated over a timeseries to generate covariance data, and instead of coding a...

View Article



Image may be NSFW.
Clik here to view.

Analysing dependencies in MSSQL

CodeProject I’m working on a project where almost all the logic is in database objects and there are a few developers working on it. Now, in this context it is extremely difficult to keep track of the...

View Article

Image may be NSFW.
Clik here to view.

Yet Another SQL Extraction Script

Another script folks, this time a little bit more advanced than the last. This one generates the scripts you need and gives you ome output so you can see what’s going on. I find it very useful for...

View Article

Image may be NSFW.
Clik here to view.

Plugins and helpers for .NET development

This post is intended as a repository to keep track of the various elements of software that I use to make my life easier. First up: http://www.codeproject.com/KB/grid/datadebuggervisualizer.aspx...

View Article

Image may be NSFW.
Clik here to view.

Updating a temp table in a stored proc

Well I just spent twenty/thirty minutes realising that when you change the definition of a temporary table being used in an SQL Server stored procedure, you need to actually delete the temp table...

View Article


Image may be NSFW.
Clik here to view.

ObjectContextExtensions

This is a class of some useful extensions for the ObjectContext which make it more maintainable. I’ve always hated having to use strings in code and the ApplyCurrentValues method uses them. This code...

View Article

Image may be NSFW.
Clik here to view.

FluentSQL

This is my stab at a fluent interface for accessing SQL objects, using a minimum of fuss. It is strictly a work in progress, however, I mean to extend it. Somehow I never seem to be able to get away...

View Article

Image may be NSFW.
Clik here to view.

Int32 RangeTo() method

This little snippet, inspired by Ruby’s Range() method, allows you to do stuff like this; foreach (int rownum in 0.RangeTo(1)) { //dostuff } I haven’t done any performance metrics yet, but I like the...

View Article


Image may be NSFW.
Clik here to view.

QuickSort in Python

Just thought I’d post this little snippet to illustrate the facility with which array and list functions can be performed in Python, as opposed to classical languages like C++   Here’s a QuickSort...

View Article


Image may be NSFW.
Clik here to view.

Visual Studio 2012 Shouty menus

If you’ can’t stand the all upper case menus(TEAM!! YEAH, GO, TEAM!!) in Visual Studio 2012, here’s a way to get rid of this unsightly blight on Microsoft’s latest offering; Pop open rededit and create...

View Article

Image may be NSFW.
Clik here to view.

Bit reversing in C#, Part 1

So I recently had a discussion (read: interview) with an eminent member of Microsoft Ireland* where we discussed bit-reversing in C#. To be clear, I have no dealings with this level of code on a...

View Article

Image may be NSFW.
Clik here to view.

Bit reversing in C#, Part 2

So further to my exposition of Part 1 of the series, I’d like to further elucidate the reason why I think this is a worthwhile pursuit; 1.   When was the last time anyone asked you to do bitshifting in...

View Article

Image may be NSFW.
Clik here to view.

Yield keyword in C# – an illustrated example

So I was asked the other day about the Yield keyword in C#, specifically, “What’s the idea” with it? It seems there are quite a few who have never used it, simply because the intent isn’t totally...

View Article


Image may be NSFW.
Clik here to view.

Apprenticeships ensure that young people in Switzerland are employable

Reblogged from Quartz: Imagine a teenager advising a hedge fund client or running a retail phone store. It may sound like a class project, but at Credit Suisse and Swisscom, up to 800 teens take on...

View Article

Image may be NSFW.
Clik here to view.

Logic Teasers; Editions 1; Linked Lists

This begins a series of posts where I drop little logic and core programming questions which I come across as a kind of repository for the little brain teasers that I come across in my daily life and...

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.

Script for sorting your photos

Quick one this, and apologies for not posting for ages; I’ve been busy. I love Dropbox camera upload; I come home from a trip, all photo’d up, and my iPhone syncs to my PC automagically. With a...

View Article


Image may be NSFW.
Clik here to view.

Silly old VS2013 and XML Serialization

So had a bit of a gotcha this morning which cost me a good twenty minutes and some little anger.  I kept getting an error when compiling in release mode – Could not find file...

View Article

Image may be NSFW.
Clik here to view.

MicroGoals, RockyTasks, and getting things done

I’m feeling a bit woozy today, as I ‘m having an operation done, but also a leetle bit… Talkative. I’ve recently begun a few separate changes in my life, i.e. this month: Moved job, away from FS into...

View Article

Image may be NSFW.
Clik here to view.

Red Gate Rant

God dammit Red Gate!! Why would I invest in a database comparison tool when a) it takes over 45 minutes of my time to do the comparison and b) by the time it finishes it has generated...

View Article
Browsing all 25 articles
Browse latest View live




Latest Images