Thursday, July 29, 2010

Wednesday, July 28, 2010

Nick Holmes...

Nick Holmes...I can’ stop looking at this.

It is still not clear exactly what meat was used.

BBC News - Prison governor apologises for non-halal food: "It is still not clear exactly what meat was used."

recursion - Google Search

recursion - Google Search

There are two types of people in this world those who understand recursion and those who don’t understand that there are two types of people in this world..

Tuesday, July 27, 2010

Do not feed the bears

Would have though any environmentalist would know this.
Timothy Treadwell - Wikipedia, the free encyclopedia

SPY PLANE FASHION - Viceland Today

SPY PLANE FASHION - Viceland Today

Unquote | Futility Closet
“Sometimes I think we’re alone in the universe, and sometimes I think we’re not. In either case the idea is quite staggering.” — Arthur C. Clarke

Funniest Protest Signs of 2010 - Funny Political Protest Signs

Funniest Protest Signs of 2010 - Funny Political Protest Signs

Tuesday, July 20, 2010

Visual studio keybinding open specific file.

Made these macros to make my life easier, since most of the time i'm editing the same files.

Sub ToChickenStatic()
End Sub
Sub ToChickenExtends()
End Sub

Actually I have about 8 of these, and they are bound to CTRL-1,2,3...

You can then bind the macros to keys via Tools->Customize->Keyboard
One of my more rewarding keybinds.

Monday, July 19, 2010

All that was left was a chaotic assemblage of random events.

Why I Hate LOST | the TV addict: "All that was left was a chaotic assemblage of random events."

Saturday, July 17, 2010

c# toJson

Nice extension method if you work allot with ajax/javascript/linq.

public static string ToJson(this object o)
return (JsonConvert.SerializeObject(o));

Can call from code.

public string GetAllPoultry(){
var q = from b in data.Chicken select b;
return q.ToJson();

Friday, July 16, 2010

Adding shortcut key for MeasureIt for Firefox.

This no longer works with newer versions of firefox since the Keyconfig extension is dead. I use Greenshot for imagegrabbing, and that displays the pixel size.

Start by grabbing

Go to Tools->Keyconfig->Add a new key->Code is

The shortcut key won't work to turn of MeasureIt, but you can use ESC for that.

I use CTRL-E, good for left hand when right is on the mouse, and not really used for anything (it's bound to web search, but you can unbind it easily)

Tuesday, July 13, 2010

more duck


Monday, July 12, 2010


Some numbers:

  1. My mp3 collection is 30.052 songs.
  2. 17 song names have the word chicken.
  3. 13 song names have the word duck
  4. 3 songs have the word lion, (space lion, dub lion, gold lion)

How to: Return a Value from a Task

Simple version from .net 4 Task library.

Task chicken = Task.Factory.StartNew(() => DoChicken());

//Do some chicken.

then when you chicken,

return(chicken.Result) //calling chicken.Result will hang until DoChicken finishes
chicken chicken.

Get rid of css opacity errors in Visual Studio

Move them under warnings.


Jee: Matching lines: 5 Matching files: 3 Total files searched: 198

Find all "jee", Subfolders, Find Results 1, "Entire Solution"

Hmm: Matching lines: 2 Matching files: 2 Total files searched: 198

Sunday, July 11, 2010

Sunday, July 4, 2010

Exciting news for my reader!

This blog is getting some hits!

7 so far, and by my calculations either

1) hits will reach 117.440.512 by 20.12.2010
2) hits will reach 103 by 20.12.2010

Depends if the 100% increase is steady or the addition of 7 hits per week is steady.


Thursday, July 1, 2010

live coding