Kell ilyen ing!

via F.A.T.
Switch out that MacBook Pro for... a dozen ice cold cans of Blue Ribbon. Could anything be more American?
Timbuk2 Dolores Chiller
Not all messenger bags are for business. The Timbuk2 Dolores Chiller ($110) is a portable cooler disguised as a messenger, offering a fully insulated interior, a metal bottle opener on the strap, durable ballistic nylon construction, waterproof TPU lining, and enough capacity for at least 12 cans of suds.
The following code does not compile:
public class A {
public static void main(String[] args) {
int i = Integer.parseInt(args[0]);
switch (i) {
case X: System.out.println("ONE!"); break;
case Y: System.out.println("TWO!"); break;
default: System.out.println("ZERO!"); break;
}
}
public static final int X = B.getNumber("X");
public static final int Y = B.getNumber("Y");
}
class B {
public static int getNumber(String s) {
if (s.equals("X")) {
return 1;
}
else if (s.equals("Y")) {
return 2;
}
else {
return 0;
}
}
}
The compile error is:
A.java:5: constant expression required
case X: System.out.println("ONE!"); break;
^
A.java:6: constant expression required
case Y: System.out.println("TWO!"); break;
^
2 errors
I think I'll leave explaining why as an exercise for the reader. (Or for a future post. ;-)
Potion is an object- and mixin-oriented (traits) language.
_why's been working on a new top secret project. Wish I had more time to play with all the neat languages out there. This one seems to have a lot of neat ideas.
It doesn't have the most stylish design, but the Bagel-to-Go does make good use of an old
CD spindle. It fits nicely in any bag and is perfect for the mobile warrior that loves bagels.
why didn't i think of that.
This next generation touch-based netbook looks like it could spark techno lust among the geek boys (even if it isn't an Apple):
"Give up on that mythical iTablet for a minute and feast your eyes on the Archos 9 ($625; Fall 09). This thin (0.63'') netbook/tablet PC device sports a 9-inch touchscreen and runs Windows 7. Powered by an Intel ATOM Z515 processor, the Archos 9 features an 80GB hard drive, webcam, Bluetooth, optical trackpoint, Wi-Fi, built-in speakers, and optional 3G wireless."
Excelente animacion de CollegeHumor, me causo mucho!
Enlace / Youtube
Vía / Chistes Geeks