Archive for the ‘ Technology ’ Category

Clisp Snippets

I’ve been playing around with the Land of Lisp, which is an awesome book written for Common Lisp, Gnu Clisp to be specific. So, I like vim, and I like SnipMate, but SnipMate doesn’t ship with any lisp snippets, and I couldn’t find any on github, so I wrote my own, albeit incomplete, set. You can find it here, and it is designed to work with Pathogen.



In my quest to provide something everybody already has, I present to you List, a simple Linked List implementation in Ruby. You can get it here, if you really want to. This is my first experiment in test driven development, and it definitely produced many more tests than any other code I’ve written. We’re talking 8 tests for 2 classes, some 13 or 14 tests. It worked pretty well, but I don’t know if I’ll do it again. Maybe I won’t need to.

Obscuring Information in Function Calls

While the usefulness of this is questionable, it is possible to obscure valid information in a bogus function call. Check out the following code:

class Example
	def new(*args)
		puts "Got data: " + args[1] if method_name == :new

You can then write the following code:"", 1342)

And it should print out “”. What’s more, the actual call looks like an internet connection, not something that might print something. Again, the usefulness of this is questionably, but it could be useful.

Announcing BerryConf

I am pleased to announce BerryConf!

BerryConf is a simple but easy to use Java library for parsing and managing configuration files! It’s still in beta, but it works well, and I’m using a very similar system in one of my latest projects, which I can’t say a whole lot about, but It is looking quite cool. So anyway, check out BerryConf if you’re looking for such a library.

Java 6 on the Mac

I’ve been playing Minecraft a lot (which is a really cool procedural survival adventure game) and there is a thriving modding community surrounding it, featuring simulators, map editors, inventory editors, etc. Continue reading

New network testground

My family has 3 routers. An old D-Link, a new Linksys N router, and another router that looks like a mac. After cleaning out my closet, I moved all my old computers, the old PC, an old iMac running Yellow Dog Linux (Soon to be ubuntu) and the iBook into the closet, and networked in with the router that looks like a mac (white and clear plastic and sort of round.) I am now making a rather small network and testing nfs and various other things on the network. I haven’t connected the closet router to the outside internet, but I can use a mac laptop to inject the wireless signal into an ethernet wire to install software. An interesting and continuing experiment. Expect more updates.

Acer updates

This long story starts with me noticing that my one and only external drive had a USB connection. I had previously though connected this drive to computers other that macs was impossible, but I now realize that was wrong. So I plug the hard drive into my Acer laptop, and it borks. After fiddling around with various hfs packages for linux, things didn’t work, and I tried plugging it into my mac. This did not work. I was bummed, because I had a massive collection of linux distributions stored on the drive. I tried various methods to recover the data, all failed, or didn’t work correctly, so I finaly reformated the thing as ext2. This worked perfectly. Now the acer and all my other linux boxes can read the drive. My mac cannot. So, I installed MacFuse, along with a ext2 driver. I started a backup, and it was taking forever. Throughput for the drive was horrible. So I tried it on the Acer, and i/o speeds were just fine. So I used scp to copy the files from my mac, over the network, and to the external drive. Everything went well until /bin/echo started failing to execute. Turns out I was copying the entirety of my mac’s hard drive to my acer. This did not work well, and the acer stopped working. I booted a liveCD, backed up my stuff to the external drive, then downloaded and burned a flash drive of the Ubuntu Minimal install. I used it to install a base ubuntu system, a few packages, and the xubuntu-desktop. I tried to install some ubuntu studio packages, but they didn’t work, nor did the packages for audio, video, and image editing. They installed, I booted, and suddenly everything worked, my wifi autodetected, and everything was hunky dory. I moved all my important stuff to a single folder in my home folder called “mine,” to facilitate backup and recovery, because there were some permissions issues the first attempted install. Still, everything works just fine, and the computer is working perfectly, except dropbox isn’t installing, I have to fix that at some point…