The Controversial Vista

The Controversial Vista
   In the past year I am constantly involved in conversations about Windows Vista in chats, forums and live. Today I decided to share my wisdom with my multi-million reader base. In the last year I have argued on both sides of the "Vista Sux" debate. Why Vista is the best desktop OS but a failure at the same time?
Posted by:   Stilgar
21:07 25.05.2008

Programming for Perverts

   Today I was looking at a Sun Certified Java Programmer example test (quite an old one - url no longer valid). There were some quite curious questions. I have taken out and modified questions that apply to C# (unless otherwise noted) and left out Java specific ones. Try to guess the compilation result/output! Here they are in C# version:

1.
     int i = 1;
     i <<= 31;
     i >>= 31;
     Console.WriteLine(i);
2.
     Console.WriteLine(Double.NaN == Double.NaN);

     double zero = 0;
     Console.WriteLine(Double.NaN == 3 / zero);
3.
     int i = 10;
     int j = 10;
     bool b = false;

     if (b = 10 == 10)
         Console.WriteLine("true");
     else
         Console.WriteLine("false");
4. This one behaves differently in Java and C#
Java:
     System.out.println(-0.0);
     System.out.println(-0.0 == +0.0);
     System.out.println(Math.min(-0.0,+0.0));
     System.out.println(Math.max(-0.0,+0.0));
     System.out.println(Math.min(-0.0,+0.0) == Math.max(0.0,+0.0));
C#:
     Console.WriteLine(-0.0);
     Console.WriteLine(-0.0 == +0.0);
     Console.WriteLine(Math.Min(-0.0, +0.0));
     Console.WriteLine(Math.Max(-0.0, +0.0));
     Console.WriteLine(Math.Min(-0.0, +0.0) == Math.Max(0.0, +0.0));
5.
     int i = 0;
     Console.WriteLine(i++ + ++i);
     Console.WriteLine(i++ + i++);
6.
     Console.WriteLine(Double.PositiveInfinity + Double.NegativeInfinity);
     Console.WriteLine(Double.PositiveInfinity == Double.PositiveInfinity);

Check the full article for the actual output!
Posted by:   Stilgar
03:28 16.05.2008

You Can't Stop Rock 'n' Roll (Twisted Sister - Live in Lovech 2008)

You Can't Stop Rock 'n' Roll (Twisted Sister - Live in Lovech 2008)
   This Saturday was not like the others. There was a concert. What is more it was a workday in Bulgaria but even workdays can't stop rock 'n' roll. So we got on my cousin's Alfa Romeo, crossed the Balkan Mountains without getting lost and ended up in Lovech...
Last edited by:   Stilgar
on   12:25 13.05.2008
Posted by:   Stilgar
04:11 12.05.2008

.NET and SQL Server Adventures

   While preparing the last set of upgrades for the no-blog I stumbled upon some strange issues with different technologies. I reasoned that I might help some of you or some poor googling soul by posting about them here...
Posted by:   Stilgar
03:20 07.05.2008

The Broken Web

The Broken Web
   There is much buzz generated around the so called "web standards", web browsers and the general state of the Web lately. I decided that it is worth adding to the buzz, so that my multi-million reader base will have the opportunity to read my undoubtedly wise words on the subject...
Posted by:   Stilgar
04:21 21.04.2008
First Previous ... 21 22 23 24 25 26 27 28 29 Next Last