The Toughest Web Technology
I just discovered that Chuck Norris's
website is written in .NET. Well, at least the dynamic part. Obviously .NET is the toughest web tech. You can start writing ".NET Facts" now!
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?
Като блогърите...
Съжалявам, че този не-блогпост ще е почти блогърски, но не мога да се сдържа.
Понеже мама я няма да ми готви в квартирата реших да си поръчам храна използвайки чудото на съвременните технологии Интернет. Съквартирантът ми
Васко е редовен клиент на сайтa
Gladen.bg...
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!
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