Uncategorized

Jul 17, 2008

Awk by example

Posted by Michael Anckaert in Uncategorized No comments

There’s a great tutorial on Awk over at Common threads: Awk by example, Part 1 by Daniel Robbins.
In this series of articles, I’m going to turn you into a proficient awk coder. I’ll admit, awk doesn’t have a very pretty or particularly “hip” name, and the GNU version of awk, called gawk, sounds downright weird. [...]


Jul 16, 2008

Printing to Dell 5210n using FTP

Posted by Michael Anckaert in Uncategorized No comments

My day starting out great at work, printing problems! The dream of every system administrator!
The printer that was acting up was a Dell 5210n, a huge black output monster that generally works extremely well, fast and reliable… except today. After all the standard troubleshooting stuff it still wouldn’t print (and even now it stills refuses). [...]


Jun 23, 2008

Firefox 3 and the awesomebar

Posted by Michael Anckaert in Uncategorized No comments

Firefox 3 being officially released, the buzz around the latest version of everyone’s favorite browser is at its highpoint.
The Mozilla team really did some great work and I think Firefox 3 has the best marketing campaign ever for an Open Source product. The features overview on the Mozilla website is done very professionally and the [...]


Jun 19, 2008

Tags? Categories? It’s all just a mess!

Posted by Michael Anckaert in Uncategorized No comments

I’ve been putting some more time in this blog lately and have just finished cleaning up the categories. I also changed my theme…. again. If you’re following this blog you might start to think it’s being maintained by a woman, it just keeps changing looks
One problem I’m having is now that my categories [...]


May 20, 2008

Python is awesome… but…

Posted by Michael Anckaert in Uncategorized 1 comment

Python is a truely awesome programming language. It has all the coolest features, it’s powerful, it’s the most RAD RAD tool there is but it has but one flaw… No compiling!!!

Simple logic dictates that this means no slacking off for Python programmers:
XKCD Webcomic = Awesome
Awesome = Good
The Truth = Good
Therefore: The Truth = Awesome so [...]


Apr 9, 2008

Python: Calculating the number of weekdays between dates

Posted by Michael Anckaert in Uncategorized No comments

This Python function will calculate the number of weekdays between two dates.
from datetime import date
from dateutil import rrule

def weekdays(start, end):
weekends = 5, 6
weekdays = [x for x in range(7) if x not in weekends]
days = rrule.rrule(rrule.DAILY, dtstart=start, until=end,
byweekday=weekdays)
return days.count()
Small but effective!


Mar 26, 2008

Random ramblings

Posted by Michael Anckaert in Uncategorized No comments

Just some random stuff to short to make an entire post about…
Recommended movies and series: V for Vendetta (awesome movie, imagine Orwell’s 1984 and Zoro combined!), Lost Season 4,
Stuff on the net:

7 Insane Conspiracies That Actually Happened
Chad definitely hates aliens…
What were they thinking?
Oooh, Ray Gun!
How you should deal with a bully
How to use Predictive Text [...]


Mar 25, 2008

At the poker tables

Posted by Michael Anckaert in Uncategorized 1 comment

Like a lot of people, I really enjoy the occasional poker game. Texas Hold’em is the game of my choice, a poker variant that has been one of the most popular poker games out there for decades.
Last weekend I was at a great LAN party and as a fun compo there was a poker tournament. [...]


Mar 4, 2008

The Joy of Vim

Posted by Michael Anckaert in Uncategorized No comments

To stay in the mood of the ever lasting editor wars, Linux Mag has three part article series on the Joy of Vim. Read part 1, part 2 and part 3.


Feb 29, 2008

Why I prefer Vim and not Emacs

Posted by Michael Anckaert in Uncategorized No comments

If there is one question you could ask to recognize a true geek, it would be “Do you use Vi or Emacs?” If you’re talking to a geek they will either start laughing because they recognize you as a fellow geek or they will start talking about the merits of their favorite editor.
Besides the eternal [...]