Stumbled across a very strange “issue” with iGoogle. Very easy to reproduce:
In VB.NET you have always been able to use optional parameters:
Sub Foo(ByVal p1 As String, Optional ByVal p2 As String = "default value")
End Sub
'Call to Foo with 1 of the 2 parameters is allowed
Foo("p1 value")
Now in C# 4.0 we get the same support:
void Foo(string p1, string p2 = "default value")
{
}
//Call to Foo with 1 of the 2 parameters is allowed
Foo("p1 value");
But I for one, think this is too little too late. Is this enough to make us migrate of off Subversion, NUnit or CruiseControl.NET? No but it might be able to fill a very small gap left by open source tools. But I will not be switching from any open source frameworks for Team Foundation Server 2010. We needed this about 5 years ago, why the U-Turn Microsoft? Probably because of the lack of Team System take up? Come on who do you know that uses MSUnit or Team Foundation Version Control (TFVC)?
Quite often I would like to watch iPlayer, Sky player or youtube while I’m working. Basically I would like to have a small window in the corner always on top. I searched for a Firefox plug-in and found there wasn’t one. I digged a little deeper and stumbled on this:
http://www.labnol.org/software/tutorials/keep-window-always-on-top/5213/
All you need to do is download and run the exe and press ctrl + space on any window (including Firefox windows) and that window will stick and always be on top of other windows. This is great it means I can catch up on TV and work at the same time!
Usually when I need to call a JavaScript function using a string I use:
function myUsefulFunction() { //useful code }
var foo = 'myUsefulFunction();';
eval(foo);
However a more elegant approach would be to use:
function myUsefulFunction() { //useful code }
this['myUsefulFunction']();
Recent Comments