jostein.kjønigsen.net

Stories tagged with stuff you want.

Regular voes

When working as a IT-consultant and a developer you are often called out to check out or fix things for less capable clients. Sometimes this involves watching pretty ugly things.

Not ugly as in ugly people, but as in mind-numbing application-design, ugly code, horrid abuse of APIs and generally 30 year old principles applied to modern technology where these decades-old concerns shouldn't even be an issue. You see stuff you as a professional developer find revolting. Ugly things.

More...

Simple C# RSS-publishing library

Having posted nothing useful in a while I decided I might as well publish my simple RSS-components library. Basicly it implements what's needed to publish a RSS-feed on a website. A valid RSS-feed, as opposed to lots of the other feeds out there.

Usage is simple:

  • Instanciate a RssFeed object with your own site-specific data.
  • Instanciate a RssItem object with specific post-data and add to the Items collection of the RssFeed object. Repeat as needed.
  • Return the output from the ToString() method on the RssFeed class to the client.
  • Done.

More...

C# 3.0

Unless you are working with the .NET Framwork and C# development, that headline probably makes no sense to you, and you should just avoid further reading right away.

If you however happen to be a C# developer, the new language features of C# 3.0, might be of interest to you. Currently there are numerous extensions to the current version of the language.

I'm not 100% happy about every single one of these changes, but the worst case scenario is that I simply choose to ignore them, and don't employ them in my code.

Anyway, developer.com has a lengthy article about the new features of C# 3.0 and practical examples of what the code will look like. A interesting read.

More...

RxRename - A Regular Expression based renaming tool

Background

If there's one thing I hate doing, it's breindead, repetitive tasks.

Like renaming 100 files from one specific naming convention to another. This is obviously something that can be automated.

When I encounter situations like this, I usually fire up a bash-shell and make a funky one-liner involving perl, regular expressions and whatever it takes to get the job done. But sometimes, like when filenames contain spaces, this literally turns into a mess pretty quickly.

So I decided that my windows box needed som decent commandline-tools as well and made this simple renaming tool. I could have made this a windows application, but for stuff like this the commandline just feels right.

More...

Search engine specificly for source-code

I'm pretty sure everyone in IT has heard about digg by now. It's one of the great symbols of "Web2.0", a word that almost makes me vomit.

It's greatest strengt is probably also it greatest weakness: It's entirely community driven. Basicly what made slashdot suck when a bunch of morons decided to come about, will make digg suck even more as soon as it builds up a big enough userbase.

However, between all the junk that gets posted there, between all the fancy AJAX and javascripting, between all the zealous fanboys posting non-stories and replies to said non-stories... Sometimes, if you are lucky enough to catch it while it's still on the frontpage, you may find some interesting things.

More...

Irc framework in C# / .NET

Background

Some time ago we had a YahtzeeBot on NekoNet, but it didn't have any cool statistics nor database backing, so getting any useful statistics was impossible.

Eager on some proper stats, I decided to write a bot from scratch just to get that sweet, sweet database backing that would allow me to generate all kinds of amusing numbers from the actual games played.

Never having written any IRC-code outside clients like BitchX and irssi, I quickly realized that if I wanted to do this in C#, I would have to write a complete framework for the IRC client-server interaction. So that's what I did.

More...

Thanks to

Various reasons

Misc stuff