Archive for category Compugeekery

LBP2: Tags and Tag Sensors

Little Big Planet 2 is a video game for the Sony Playstation 3 console. One of its most interesting features is a robust set of tools for users to build and share new levels. This article contains a detailed discussion of the tag and sensor components available within the LBP2 level creator. It will be of interest chiefly to readers who have some experience creating LBP2 levels, and who have at the very least completed the in-game level creation tutorials.

Read the rest of this entry »

Tags: , ,

Sous-vide Cooking

My love of gadgets is, I think, already well-established on these pages. I love food just as well, so it was probably inevitable that I’d decide to take some food and Do Science to It. And takes pictures of myself doing it. And put up a blog post about it.

Say you want a steak cooked perfectly, edge to edge. That means bringing the internal temperature of the entire thing to exactly the right point. It’s hard to do with a grill or a pan or a broiler, since those heat the outside more and the middle less, and you have to tightly control both time and temperature vs. the cut of meat.

The idea of sous-vide cooking is really simple: put the meat in an airtight, watertight vacuum bag. Plunge it into a water bath that’s exactly the temperature you want. Leave it there for a few hours — an hour plus or minus makes no difference. The devil, as usual, lies in the details — after the jump.

Read the rest of this entry »

Tags: , ,

MediaWiki: Creating a Private Wiki

MediaWiki is the software behind Wikipedia, but you can use it to create your own special-purpose sites. I’ve used it at work to build an internal company knowledge base, and I’m using it at home to make a Wiki for the fictional world of a roleplaying game I’m in.

It’s a pretty polished software package, but out of the box it tends to assume that you are creating something like Wikipedia that is visible to (and editable by) the whole wide world. If that’s not what you want, it requires some tuning, which I’ll describe in detail after the jump.

Read the rest of this entry »

Tags: , ,

Cheap Self-Programming AVR Proto Board

There are lots of proto boards for the AVR microcontroller, and lots of programmers. This post presents my approach, which features easy assembly, off-the-shelf PCB, extremely low parts cost and a built-in USB-based programmer. Circuit, PCB and firmware are all completely Open Source. Read on after the jump for details.

Read the rest of this entry »

Tags: , , ,

AVR Dragon: Fixing Bad Fuse Settings

This post isn’t about the usual kind of dragon (if there even is a “usual” kind). The AVR Dragon is a gizmo made by Atmel, useful for programming their AVR line of microcontrollers. It’s relatively cheap (around US$50 at the time of this writing) and does many useful things. The specific application I’m going to talk about here is using it to “fix” parts when you’ve set the fuses in such a way that said parts won’t talk to simpler programmers. Details after the jump.

Read the rest of this entry »

Tags: , , , ,

Linux on Zipit: Debian

This is a followup to my original article about using a general-purpose Linux distro on the Zipit Z2 messenger. In this post, I’ll discuss my experience installing Debian (specifically, Emdebian Grip) on the Zipit. This is a significant improvement over the previous process, as it means you can automatically upgrade and install new packages from an extensive repository of pre-compiled software. You can just “apt-get install whatever” instead of having to create a cross-development environment and compile everything yourself. Details after the jump.

Read the rest of this entry »

Tags: , ,

Linux on Zipit

Update: Please see my newer Debian on Zipit article for a better installation process.

This is an article about running Linux on the Zipit Z2 instant messaging device. Or rather, it is about running a general-purpose Linux distro, since the device out-of-the-box runs a Linux kernel with proprietary userland software.

Why is this interesting? With a list price of US$50 (and sale prices approaching half that), this device can be an SSH client, DOSbox, NES emulator, video streamer, music player and/or IRC client.

Since the state of documentation seems to be lagging behind the state of development on this device, I’m using this post as an information dump about all the things I found a hassle to figure out (and hope to save others that same hassle).

Read the rest of this entry »

Tags: , , , ,

I Was Told There Would Be No Math

The so-called “impossible puzzle” (also known as the “sum and product” puzzle) has been kicking around since 1969. It isn’t actually all that hard, but the statement of the puzzle can make it seem intractable when first encountered:

Consider a pair of integers X and Y such that 1 < X < Y and X+Y < 100.
P and S are mathematicians, who know the above constraints and who won’t deliberately lie.

In secret, P is told only the product X*Y and S is told only the sum X+Y.

P: “I can’t find the numbers.”
S: “I knew you couldn’t.”
P: “Then I know the numbers.”
S: “Then I do, too.”

Find X and Y.

Note that there are spoilers after the jump. Please read no further should you wish to attempt a solution on your own.

Read the rest of this entry »

Tags: ,

Backups on the Home Front

In computing, you have exactly two options: 1) Have current, working, tested backups or 2) don’t care if your data is there tomorrow. There is no third option. Pretending that there is leads only to substantial cussing.

Unfortunately, people mostly either know this already, or won’t be convinced of it until they learn from the school of bitter experience. So, this isn’t a post to try to convince you to take backups; it’s a post about how I do it, presented in the hopes that it’ll make doing so easier and safer. (As with many of my computer-related posts, the actual implementation is somewhat specific to UNIX-like systems, though many of the general principles apply universally.)

Read the rest of this entry »

Tags: , ,

Finding files with identical contents

Need to search a filesystem for all the files which have identical contents? Read on for a Perl script that does that.

Note that this isn’t just a solution to the (much simpler) problem of finding files in different directories which have the same name; I’m talking about the actual data inside the file being duplicated. This script also works reasonably efficiently, so it’s still useful in cases where you have an extremely large number of files and/or the files in question are very large.

Read the rest of this entry »

Tags: ,