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

Като блогърите...

   Съжалявам, че този не-блогпост ще е почти блогърски, но не мога да се сдържа.

   Понеже мама я няма да ми готви в квартирата реших да си поръчам храна използвайки чудото на съвременните технологии Интернет. Съквартирантът ми Васко е редовен клиент на сайтa Gladen.bg...
Posted by:   Stilgar
01:39 21.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

You Can't Stop Rock 'n' Roll (Twisted Sister Ловеч 2008)

You Can't Stop Rock 'n' Roll (Twisted Sister Ловеч 2008)
   Тази събота не беше като другите. Имаше концерт. Освен това беше работен ден, но дори работен ден не може да спре рока. И така братовчед ми подкара Алфа Ромеото, прехвърлихме Стара планина, без да се изгубим и пристигнахме в Ловеч...
Last edited by:   Stilgar
on   12:27 13.05.2008
Posted by:   Stilgar
22:25 11.05.2008
First Previous ... 41 42 43 44 45 46 47 48 49 50  ... Next Last