Archive for the ‘Uncategorized’ Category

Big Hairy Objects!

September 28, 2007

I had a bit of a chuckle when I stumbled upon this post by Justin Angel (who? *shrug*, he works for Microsoft). Big Hairy Objects. Most people on the face of the planet would think “pfft.. programmers what planet exactly do they come from”. But to the discerning programmer, those 3 words are most probably redolent with bad memories, dodgy ex co-workers, days spent untangling hidden assumptions, and perhaps the first BASIC program they wrote.

Going off topic, I gotta also say, coming from the php(ughh)/linux(getting there, thanks Ubuntu) world and having worked in .NET for the last 2 year, has made me more rational in my decision making process. .NET is quite sexy, for what it is. So is the DLR. So is Silverlight. The fact that we have Mono & Moonlight (to keep us ‘hippies’ happy), plus the weight that Microsoft is putting behind Silverlight, it really looks like it is shaping up to give Flash/Java/* a real run for their money. And, seriously, Ruby and Python in the browser? Hats off fellas, in this case anyhow. Now if only they would open source the .NET Javascript compiler/interpreter. It is slightly strange that they havent, but then again this smacks of latter-day decision making approaches from within the Redmond camp: Hoard Hoard Hoard. Combined with their fumbling attempts at coming to terms with an Open Source world. Hmm, perhaps this is the makings of a new post.

Unicode *Gulp*

September 28, 2007

So I guess I’m like most mere mortals, in that there are certain things that my brain shies away from. Off the top of my head:

* Hard Mathematics (I didnt really like school, & it is just too terse)

* Unit Testing (Sounds like more work, and my boss is always asking me when the next features will be ready). My poor ol’ Tests directory on the project I wrote in Castle Monorail looks a tad bare, to say the least. (Yikes, who will employ me now?)

* Unicode. *shudder*.

OK, so moving through the inevitable effect *that* word has on most programmers. Ummm, WTF is Unicode, and how do I use it? Actually I understand conceptually what Unicode is (yes, if a language has more than 256 characters, it can’t be stored in a byte, mmmkay?) no problem there, its just when we get to BOMs, code pages and encodings, that the mental wheels start to fall off.

So this is a nice article, brushing over the bare necessities of Unicode. I have the feeling that it wont get me far, but it has got me thinking about the possibilities & ramifications of Unicode on the system I am working on. We have a client or two in India, and I have a feeling that multi-lingual is going to be a selling point in the nearish future.

This is going to come up again, so I will keep on the lookout for more infos. If anyone has any suggested resources (Im probably off to wikipedia now, so dont bother with that) let me know.

New code repo & mailing list for Migrator.NET

September 28, 2007

Migrator has a new code repository. Thanks Marc for offloading this so effortlessly, although I imagine he just cant be *&$%*.

Code:

http://code.google.com/p/migratordotnet/

(No idea what is with the /p/, but i got another project under p, strange)

Mailing list:

http://groups.google.com/group/migratordotnet-devel

I got a couple of patches within a couple of days, and … *gulp* I aint got much time to devote to this (unless it’s work related).

Goody gum drops.

Rails Envy.

September 20, 2007

These guys are just too cool. Funny too.

Check out their latest video. It’s nice to see that they don’t just write off everything except for Rails. Funny shit.

Maintaining Migrator.NET

September 18, 2007

It seems we have lost Marc to the fabled land of Ruby. Well I still need Migrator for my current projects, and I need my patched version of the trunk too. Patching is a PITA in the subversion world, especially if you create new directories. So for the moment I am maintaining Migrator, until I also make the move, or somesuch.

I have a branch with the fixes I have from my local repository (the pain of patching caused me to propose this to Marc):

http://code.macournoyer.com/svn/migrator/branches/refactoring

This will be a drop-in replacement for the current trunk. But I have not ported the code for Postgres or SqlServer. Postgres will probably come soon. SqLite if I have time.

Features in the branch:

Major:

Refactorings to make it easier to maintain the different DB providers. Namely each provider implements an interface, that maps to the different types, so adding new types should be easier (i.e. break the build until the interface is satisfied).

New ColumnOptions enumerations. For Indexing, Unsigned, Foreign Keys, etc.

ForeignKeyConstraint enumeration for the expected action when enforcing constraints on foreign keys. This has only been implement on mysql, so the options may not make sense for other DBs. Not sure.

Some Foreign Key generation methods, that generate the FK_name automatically. This will be worked on a bit more, as taking down the FK currently requires you to guess the FK name still.

The Migration class accepts the args from MigratorConsole. I needed this in my project, related to the next change.

The Migration class also has a virtual InitialiseOnce method, that can be overridden in a base class of your migrations, so that things like setting up Castle.ActiveRecord can be performed (Setting up ActiveRecord needs to be done in the currently running assembly to work sanely). This is used for setting up inital data (i.e. groups etc.), in a DB agnostic way. Just like the migrations do.

OK, so its quite a few changes, but patching is PITA, & I left it for too long.

Please checkout, see if your code still works. I’d be interested to know how many others use Migration.NET

Oh, and if anyone want to contact me (whups!) code+nick.hems at g-to-the-mail.com. (thats gmail guys).

Blogging while installing Ubuntu? No problem

May 17, 2007

Installing Ubuntu and blogging

Shit, cool. Granted this is very doable (now that I have thought about it) using linux: livecd + install program running in background. But it is very cool nonetheless.

I also setup this wordpress blog (I could import old stuff from blogger), and took this screenshot. wow, nice. OK, so the install took 30 minutes, my personal best, although I must admit, I didnt really do anything. Time to go get a bottle of wine while I reboot the computer.

OK, glass of vino in hand. Time to setup Beryl, and the wiimote I got today.back soon.

Yes I had my own, yes I had spam, no BBlog didnt c…

November 10, 2006

Yes I had my own, yes I had spam, no BBlog didnt cut it.