bem’s blog

 
Filed under

geek

 

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.

Filed under  //   geek   music   video  

Comments [0]

HP Android Netbook

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.

Filed under  //   android   geek   hp   linux   netbook  

Comments [0]

Moblin + Maemo = MeeGo

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.

Filed under  //   geek   linux  

Comments [0]

Linus at Japannese Windows 7 booth: priceless

I am very much amused.

Filed under  //   funny   geek   linux  

Comments [0]

Ubuntu 9.10 Beta First Impressions

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.

Filed under  //   geek   linux   ubuntu  

Comments [0]

HP 8530w impressions, and some nVidia X server musings

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.

 Given that I've posted before about how bored and disappointed I've been
with HP laptops, I figured I should post to say how nice the 8530w is
turning out to be so far. For starters, it is thinner and feels lighter
(but it's still 6lbs) and more solid than the 8510w. The screen is much
nicer, but since the 8510w had a 1920x1200 resolution, and this 8530w
has a 1680x1050 resolution, it's not quire apples to apples. I do also
prefer the keyboard, and they've added a keyboard light, which while not
as slick as Apple's backlit keyboards, gets the job done. (And takes me
back like 8 years to the IBM X21 I had... ;-) While the 8510w was fast,
the 8530w is even faster, and amazingly enough, seems to run cooler and
quieter.

 While they do seem to have fixed most of my gripes with the 8510w, it
does seem like no one but Apple understands that people with laptops
carry their power supplies around with them. How hard is it to
incorporate an easy way to wrap up the cord into the design for the
power brick? Oh, and for some entirely inconceivable reason, the power
brick for the 8530w is bigger than that for the 8510w. Yes, you read
that right: they made the brick bigger. I just don't get that part.

 Oh, and Ubuntu (well, Linux in general) rocks: I got new hardware,
simply moved my hard drive to the new machine and booted up, and
everything works. It does help that they both have nVidia graphics, etc,
 but still, that part was awesome. Oh, and for anyone that happens to
have a laptop with a new nVidia chipset and doesn't have working
brightness controls, the newest version of the nVidia drivers fixes this
problem! For users of Jaunty, I uploaded the Karmic packages to my PPA, compiled
for Jaunty. (I can't seem to figure out how to make it so that it would
also compile the same sources for Hardy, but maybe I just haven't spent
enough time looking at it or did the proper RTFMing)

Filed under  //   geek   hp   laptop   linux   ubuntu  

Comments [0]

Tail Call Optimization Decorator in Python

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.

Filed under  //   geek   programming   python  

Comments [0]

Fun with constants in Java

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. ;-)

Filed under  //   geek   java   programming  

Comments [0]

Potion Language

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.

Filed under  //   geek   languages   programming  

Comments [0]

iotop

iotop is a console application for monitoring the I/O usage of processes on your system. It is especially handy for answering the question “Grrr, sloooowness, why is my disk churning so much?”

Where has this been all my life?

Filed under  //   geek   linux  

Comments [0]