Thursday, July 29, 2010
Wednesday, July 28, 2010
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
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
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()
DTE.ItemOperations.OpenFile("e:\Chickenphotos\code\Chickenstatic.cs")
End Sub
Sub ToChickenExtends()
DTE.ItemOperations.OpenFile("e:\Chickenphotos\code\Chickenextends.cs")
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."
Sunday, July 18, 2010
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.
example:
[WebMethod]
public string GetAllPoultry(){
var q = from b in data.Chicken select b;
return q.ToJson();
}
public static string ToJson(this object o)
{
return (JsonConvert.SerializeObject(o));
}
Can call from code.
example:
[WebMethod]
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.
/*depreciated*/
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
Keyconfig.
Go to Tools->Keyconfig->Add a new key->Code is
"net.kevinfreitas.measureit.toggle();"
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)
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
Keyconfig.
Go to Tools->Keyconfig->Add a new key->Code is
"net.kevinfreitas.measureit.toggle();"
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
Monday, July 12, 2010
Poultry
Some numbers:
- My mp3 collection is 30.052 songs.
- 17 song names have the word chicken.
- 13 song names have the word duck
- 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,
if(chicken.IsCompleted)
return(chicken.Result) //calling chicken.Result will hang until DoChicken finishes
else
chicken chicken.
Task
//Do some chicken.
then when you chicken,
if(chicken.IsCompleted)
return(chicken.Result) //calling chicken.Result will hang until DoChicken finishes
else
chicken chicken.
Jee
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
Find all "jee", Subfolders, Find Results 1, "Entire Solution"
Hmm: Matching lines: 2 Matching files: 2 Total files searched: 198
Sunday, July 11, 2010
Wednesday, July 7, 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.
Exciting!
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.
Exciting!
Thursday, July 1, 2010
Subscribe to:
Posts (Atom)