Brilliant Rube Goldberg Machine
This is pretty awesome. I don't want to know how many takes it took to do that, even if it wasn't actually continuous.
This is pretty awesome. I don't want to know how many takes it took to do that, even if it wasn't actually continuous.
It's too bad that working for HP doesn't give me the opportunity to play with neat toys like this. Yes, I know it has some issues with the form factor (the display doesn't swivel around to make the thing a convertable tablet?), but it would be lots of fun to play with. And of course, they're not releasing it in the US, which tends to be the way that HP goes with non-Microsoft powered devices. This HP-MS buddy buddy thing is kind of annoying at times.
Comments [0]
I'm sure you've heard the news: Moblin and maemo are merging! We are taking the best pieces from these two open source projects and are creating the MeeGo software platform. Both teams have worked for a long time to support the needs of the mobile user experience - and MeeGo will make this even better. We want it to be fun, focused, flexible, technically challenging and ultimately, something that can change the world.
Now this is an interesting development. With both Nokia and Intel behind it, this might actually be able to compete with Android.
Comments [0]
I'd been running 9.04 with backported nVidia drivers for a month or so, since those drivers actually support adjusting the brightness of my laptop panel. After the latest mysterious "maybe-video-related" lockup, I decided that if I'm going to have my machine crash, I might as well have a good reason, so I upgraded to 9.10 Beta over the weekend. To add to the impetus, I think the driver for my wireless card in 9.04 doesn't properly support WPA, so it randomly would drop my connection, something it did a couple of times while trying to download the upgrade. To Ubuntu's credit, restarting networking didn't break the upgrade, it actually managed to recover.
So far, I'm impressed. The upgrade went smoothly. However, after I upgraded, I noticed that an 'aptitude upgrade' showed more packages that needed to be upgraded. I didn't keep a list (yea, dumb), but notably, some pulse audio packages were included in this list. This might just be related to be doing things like installing extra packages to make pulse work better. Overall, it seems faster and much more polished than 9.04. They've obviously taken a page from Apple's play book with the use of well placed animated transitions. The new X based boot splash is a great improvement over the old splash, mostly in terms of giving the boot and shutdown experience a more unified feel. One big thing that seems to finally fixed is the time it takes to re-associate with a wireless access point upon returning from sleep: it's now at least as fast as my Mac. We'll see how things go as time goes on, but so far so good. If I don't have to file any bugs in the next few weeks, that'll be extra awesome.Comments [0]
My work issued HP 8510w recently had the type of hardware failure that
causes random complete lockups. No, it wasn't related to the memory, I
tested that. Much to my surprise, all it took to get it replaced was to
contact IT and tell them that it even had hung before even getting into
the BIOS. Even more surprising to me, they replaced it with a newer
model: I now have an 8530w.
Comments [0]
This function decorates a function with tail call optimization. It does this by throwing an exception if it is it's own grandparent, and catching such exceptions to fake the tail call optimization.
Sometimes I wonder why a whole bunch of Scheme loving folks use Python. Then, I see rather clever things like this, and it starts to make more sense. I do wonder how much of a performance penalty something like this incurs, though.
Comments [0]
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. ;-)
Comments [0]
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.
Comments [0]
Comments [0]