Tuesday, December 13, 2011

What a functional desktop looks like

As a followup to my first Un-Terrible-ize
Ubuntu 11.10
post, I thought I'd show everyone what my computer looks like
after reverting the desktop to a working state.

Configuring Printers in Ubuntu 11.10

Welcome back to my ongoing adventures in making
Ubuntu work
once again. Today's episode features printing!

So upon trying to print a document, I found that my printer hadn't been set up.
No problem! I guess I had forgotten to do so. So I jetted on over to the "System
Settings" application, which helpfully had a "Printers" button. "Why hello Mr.
Printers button," I said. "Let's go on a magical printer-configuring adventure,
just the two of us!" Clicking on Mr. Printers, I was greeted with the Nice™,
Shiny™, Sexy™ Interface below:

Monday, October 24, 2011

Un-Terrible-ize Ubuntu 11.10

Oh my god. After years of being a great, easy-to-use Linux distribution, Ubuntu finally has failed me and may need to be dumped. I just upgraded to 11.10 (Oneiric Ocelot) and they have made it more difficult than before to return to a not-terrible window manager. I think the idea behind Ubuntu's new "Unity" interface are cute, but is just god-awful for people who want to use their computer for things and don't like desperately trying to hunt them down. What was wrong with an "applications" menu that had an "Office" tab under it with office-related applications? Now, you open the side panel overlay bar thing and it takes up the whole screen but presents you with almost exactly zero useful information. It has something like 3 applications along the top and then says "fuck you, go figure it out" if you want anything more. Alt-F2 doesn't work to open a launcher to launch an application. Alt + middle-click doesn't resize windows any more. Just getting out of my damn way and letting me use the computer like I have for years doesn't even close to work.

Tuesday, October 18, 2011

Changing up the style

You may have noticed a change in the style of the site. That's because I changed the style of the site.

Okay, seriously, I switched to the new Blogger interface/template, so things look a bit different. I tried fiddling around with some things, and hopefully nothing broke. To all of you massive numbers of readers of this blog, let me know if anything went wrong in the upgrade.

Sunday, August 21, 2011

Genericizing Rails view templates

In keeping with my previous post, I have put together a way of greatly reducing the redundant code in Rails views. On the HTML side, this really only applies to the simple case of rendering the default REST views provided by Rails' scaffolding mechanism.

Rather than have an index.html.haml (or erb if you're a bad person ;) for every model you have, why not consolidate all of those into a single template? They all do the same thing anyway: render a table of objects along with a few actions. Using the wonderful render_inheritable gem, you can define a single index.html.x file in a central location (such as app/views/application) and have all of the customization occur at runtime.

Scala on Android with Eclipse

Yes, I'm back from the dead. I've been busy starting a company of late and have been pretty much full speed ahead on that, leaving less (read: none) time for blogging.

Anyway, on with the main event: a working setup for developing Android applications in Scala. I spent about 3-4 days total trying to get this setup working, using various different schemes such as the Treeshaker plugin for Eclipse, the Maven Android plugin and others. After hours and hours of fiddling, I finally found a solution that works: a custom SBT setup with the SBT Android plugin. The key is to avoid building the Android app in Eclipse itself, but to use SBT for the heavy lifting.

Friday, February 11, 2011

MineCabinet - a database-backed chunk manager for Minecraft

As I alluded to in my last post, I have been working on modding Minecraft to use the excellent Tokyo Cabinet database to store the chunk data. I have finally gotten it to the point where it is ready to be released to the masses.

Sunday, February 6, 2011

Size of Minecraft chunk files

So I'm working on a replacement for Minecraft's save file format, since the format it currently uses is rather busted. In a world that I've been playing with 4 other friends for just under a month, the save directory is 50MB and contains a whopping 17,684 files!

Friday, January 7, 2011

Why I hate Java

I ran into this fun time while trying to install the Scala bindings to Neo4j.

First, I had to install Maven: