Bad R# suggestion

by Marius Gheorghe 30. June 2008 16:07
Had :
if (string.IsNullOrEmpty(textBoxSendData.Text))
{
MessageBox.Show("please enter the data");
return;
}

and R# offered a conversion suggestion to :

if (!string.IsNullOrEmpty(textBoxSendData.Text))
{
return;
}
MessageBox.Show("please enter the data");
return;

Bad R# :D

TortoiseSVN 1.5 is out

by Marius Gheorghe 24. June 2008 13:04
Finally !! The best UI for SVN is out, linked against SVN 1.5 .Before updating please note that, on commit, the repository will be converted to the 1.5 format which doesn't work with older clients (1.4.xxx)

Congratulations to both the SVN and TortoiseSVN teams.

Good usage of extension methods

by Marius Gheorghe 19. June 2008 16:05
string.IsNullOrEmpty(stringInstance)
could be replaced with
stringInstance.IsNullOrEmpty()

by adding the following extension method :
public static bool IsNullOrEmpty(this string text)
{
return string.IsNullOrEmpty(text);
}

Tags:

dotNET

Linq in action

by Marius Gheorghe 17. June 2008 12:27

If you want to learn Linq this is the book.

Ninja Gaiden 2

by Marius Gheorghe 17. June 2008 12:21


I've finished NG2 a couple of days before and the game was a blast (played on acolyte difficulty). It has smooth controls, over the top violence and the best (and fastest) battle mode to ever grace a console (yes it is faster than Ninja Gaiden Black). The fighting is a delight.....smooth as silk.
Unfortunately not everything is perfect and the game is pulled back by retarded design decisions (like fighting 2 bosses one right after another, fighting all the bosses in the game twice, and the biggest of them all....the fact that you are forced to use the bow in boss battles). Graphic is ranging from butt ugly (chapter 8) to cool (chapters 10/11), sound is good and the storyline is simply crap. On acolyte the difficulty is "just right" so , hopefully, you won't feel like throwing the controller in the TV.
Overall....recommended.

Tags:

gaming

Fixing Firefox 3 location bar

by Marius Gheorghe 17. June 2008 11:35
Proving that they didn't learned anything from the Pidgin UI blunder the Firefox team changed the functionality of the location bar (dubbed awesome bar) without offering a UI option to revert it back. This is simply a great way to annoy users.
There's 2 ways to revert : - got to about:config and change the Browser.urlbar.maxRichResults variabile (i've set mine to 40).
- install the oldbar addon

Also don't forget that Firefox 3 will be released today :)

Tags:

general

Thread.Sleep in hashtable

by Marius Gheorghe 4. June 2008 15:33
Baaad. Here's the relevant bit :
version = this.version; bucket = buckets[index]; if ((++num7 % 8) == 0) { Thread.Sleep(1); }

Tags:

dotNET