2011-06-26 | 2min
Times they are a changin —

It took over a year for the idea to boil up inside of me until I finally reached the decision.
3 1/2 months ago it hit me, I finally understood that I wanted to leave XMPie.
Before I started to look elsewhere, I notified my superiors, as I wanted to make sure that someone good would replace me.
It saddens me a bit that until now, two days before I leave, we didn’t find any adequate recruit to take my place.
2011-04-21 | 1min
Node.js Frontend Fu (node-fe-fu) —
As you might have noticed from my previous post, My geekadellic franzy about node.js is reaching new peaks..
I’ve created a small node.js module to be used not as a web server, but more as an aid for developing frontend applications regardless of the backend technology used.
What the module does is:
- Searches for .less files, parses them, and saves two copies of the file:
E.g.
css/main.less
Will be transformed into
css/main.css
- parsed less to css
css/main.min.css
- parsed less to css and minified
- Searches for .js files, minifies them:
E.g.
js/main.js
Will be minified and saved to
js/main.min.js
You can choose to search directories recursively, and if you wish to watch the files for changes, triggering a parsing/minification upon each save.
2011-04-20 | 1min
Node.js - Much more than a webserver —
I’ve started to play around with Node.js lately, and it’s amazing.
Without to much effort, I hacked up a script that parses my .less files to css and minifies them, furthermore, the script minifies my javascripts with uglify-js.
The node js automagically runs when I save a .less/.js file, and notifies me via growl notifications if it’s succesful or not..
The ease of setting this up, and the fact that it works flawless both on the Mac and Ubuntu blowed me away.
2011-03-02 | 1min
Install script to run asp.net mvc 3 with Razor on nginx at a OpenSuse server —
Well, the title kind of says it all ;)
For the git lovers out there clone https://github.com/erikzaadi/MonoRazorScripts.git, or simply download the zip from https://github.com/erikzaadi/MonoRazorScripts/zipball/master and unzip it.
Then run :
sudo sh ./install.sh
And voila, a couple of minutes later, you should be able to access your server via http to get some GUID-alicios Razor driven content!

To deploy your application:
- Delete the directory "/srv/www/monodocs/default"
- Copy your application to "/srv/www/monodocs/" and rename your folder name to “default”
- Copy the file “Default.aspx” into the new “default” folder
- Copy the dll files in the folder "/srv/www/monodocs/libs" into the bin folder of your application
- If you have the file “Microsoft.Web.Infrastructure.dll” in your bin folder, delete it
The source is at : https://github.com/erikzaadi/MonoRazorScripts
2011-02-08 | 1min
You know you are a geek when you have a site for your wedding, and even more when there are easter eggs at the site as well. —
Whoa that was a long title.
I’ve been rather busy lately with preparations for our wedding, you know, find a location, get a suit, build a website for the wedding, lose the beer belly and such.
Oh yea, you caught me, I couldn’t resist it.
I actually did a full scale cross media campaign for the wedding, with the initial excuse that it would save me and my bride to be some time and effort with counting and verifying the RSVPs of our invitees.
2011-02-06 | 1min
Google Url Shortener Api for .net —
I read a short and concise post by David Walsh, demonstrating a simple php class for using the new Google Url shortener Api.
I played around with the code a bit in C#, and voila! A .net version (with some additions).
1
2
3
4
5
6
7
8
9
10
11
|
var googleShorter = new GoogleUrlApi("PUT_YOUR_LONG_KEY_HERE");
var urlToPlayWith = "http://www.google.com";
var shortUrl = googleShorter.Shorten(urlToPlayWith);
var longUrl = googleShorter.Expand(shortUrl);
var longUrlDetails = googleShorter.ExpandFull(shortUrl);
var analytics = googleShorter.GetAnalytics(shortUrl);
|
Besides just creating short urls and expanding them, you can also get Analytics information about the shortened urls.
2010-12-28 | 0min
Customer Satisfaction —
Yesterday I delivered a small site to a customer.
The site was not to fancy, simple and strait forward in a “get the job done” kind of way.
When I showed it to the customer he literally lit up, and was really enthusiastic about the quality of the site.
It was a pleasant surprise, as I didn’t really have such high thoughts of the design of the site that I did.
2010-12-09 | 0min
Readability VS Uber Cool One Liners VS Performance —
Given that you need to do a MD5 hash in C#, which approach would you take?
A not so readable but cool one liner:
Or
[Update:] Alex proposed the following, verbose, but as an extension:
1
2
3
4
5
6
7
8
|
public static string CalculateMd5Hash(this String input)
{
return System.Security.Cryptography.MD5
.Create()
.ComputeHash(System.Text.Encoding.Unicode.GetBytes(input))
.Aggregate(new StringBuilder(), (a, b) => a.Append(b.ToString("X2")), a => a)
.ToString();
}
|
What do you think?
2010-11-28 | 1min
Dynamic Pitfalls —
I’m working on an asp.net mvc 3 powered site (for my wedding actually!), where I decided to try out some new technologies I’ve been wanting to play with for a while.
The first technology is the combination of EF 4.0 (AKA Entity Framework), and the new SQL Server Compact 4.0, which is working nice so far, and hopefully I’ll elaborate more in the matter in a future post.
The most important thing I wanted to test though was asp.net mvc 3 (RC), running on .NET 4, especially the usages of the dynamic
keyword.
2010-09-08 | 0min
Let’s open source time —
Lately I haven’t been able to find myself as much time to work on open source as I used to in the past.
It annoys the hell out of me, but sometimes work + private life = less time to to hack and contribute..
One does have to make a living of course, but I’d love to be able to do is to contribute back to open source from within a working environment that truly appreciates open source.