Thursday 18 June 2009

Banned Books Week

Did you even know there was a banned books week?

I think this is a brilliant idea.

It's the last week of every September.

For more info:
http://en.wikipedia.org/wiki/Banned_Books_Week

Friday 12 June 2009

More on Oracle and MySql

Good point on that Oracle would improve MySQL towards Sql Server to steal its market share, rather than killing it. Altough I'm not sure implementing an oracle storage engine for the mysql front end would make technical sense.

http://andigutmans.blogspot.com/2009/05/mysql-can-be-great-for-oracle.html

Wednesday 22 April 2009

latest news

'buys' operator being defined as: $;

sun $ mysql
oracle $ sun

at the moment, in a parallel universe:

apple $ oracle

bum! that specific universe collapses on itself.

but hey, we're safe.

Thursday 9 April 2009

c# enum and IEquatable

Say you have a generic class like this:

class MyClass<T> where T : IEquatable<T> { }

and an enum:

enum MyEnum { MyOption1, MyOption2, MyOption3 }

would you be able to do this?

MyClass<MyEnum> MyMember;

Nope:

The type 'MyEnum' cannot be used as type parameter 'T' in the generic type or method 'MyClass<T>'. There is no boxing conversion from 'MyEnum' to 'System.IEquatable
What would you do?

Use EqualityComparer<T>.Default. By definition, behaviour is:

The Default property checks whether type T implements the System.IEquatable<T> generic interface and if so returns an EqualityComparer<T> that uses that implementation. Otherwise it returns an EqualityComparer<T> that uses the overrides of Object.Equals and Object.GetHashCode provided by T.

Nice.

Sunday 29 March 2009

My "can't live without" firefox extensions

Tree Style Tab:
For tab-freaks like me, it doubles up the number of tabs you can concurrently manage. Shows your tabs on the left side of the browser as a tree (each new link having its referrer as parent). Especially if you have a wide screen monitor, you won't care the horizontal space you lose.
https://addons.mozilla.org/en-US/firefox/addon/5890

StumbleUpon:
At the beginning brings random web pages when you hit "Stumble!" button. As you go, you rate these pages with "I like" or "No more like this" buttons and it learns the pages you like. You can easily forward pages to friends with a single-line message.
https://addons.mozilla.org/en-US/firefox/addon/138

FlashBlock:
Blocks all the flash content in every page, unless you click on them. Extremely beneficial since flash content sucks up all the cpu you have.
https://addons.mozilla.org/en-US/firefox/addon/433

DownThemAll:
With a right-click, downloads every link on the page you're on, filtered by extension or a regex. It is also nice to download a single link, because it spawns multiple sockets (4 by default, I think) to download the file.
https://addons.mozilla.org/en-US/firefox/addon/201

From the times I was actively doing web development:
Web Developer:
Edits css in-place, browses/modifies HTML DOM, hides/shows images or their places, and a bunch of very nice features for a web developer.
https://addons.mozilla.org/en-US/firefox/addon/60