Sunday, June 10, 2007

pygments

Recently, I was looking for an easy way to do syntax highlighting of configuration files so I can easily post them to the web. Someone I know from UIUC pointed me in this direction:
http://pygments.org.

Pygments has a live generator on the website as well as a Python script that can be downloaded. I encourage people to give it a try. I love it so far!

Thursday, June 07, 2007

mysql backup and restore

I recently had to make a backup of a db I use internally and migrate it to a different server. Luckily, Mysql has built in tools to help you out.

This is a very simple way to do it. The man pages will have more information on advanced usage.


To backup the database:

- mysqldump dbname -u username -p > outputfilename.sql


I then scp'ed the dump over to my new machine, and then restored it with:

- mysql dbname -u username -p < outputfilename.sql

Saturday, May 19, 2007

long time...

We recently had an outing at work, and I spent most of the day playing foosball and guitar hero. Turns out, I was unknowingly playing foosball with the creator of SVN. We made quite the team -- we went undefeated throughout the day.

I have started to begin learning python, and so far I've written 2 scripts. The first one is a simple update script for Debian based systems. It was more to learn how to accept input from the user and call system commands. The other script takes user input (a stock ticker symbol) and comes back with current data (open/close price, % change, etc). Although both are extremely simple and took me about 10 minutes to write, it was quite a great feeling.

My next project is going to be an IRC bot. Chris from work originally wrote one to aid in our lunch making decisions, but he gave me permission to steal it and hack it up.

Monday, March 19, 2007

googlizing my computer

After spending the better part of the evening installing all kind of Google addons/tools, I just found this site (it isn't new):

http://code.google.com/p/gmail-greasemonkey/

I'm waiting to see my Feeds populate within Gmail. That will be one less tab I have to keep open :)

If all goes well, I'll try and post some screenshots or something.

Thursday, March 08, 2007

testing...testing...


I want to test out one of the new features of picasaweb.

Hopefully this picture shows up in my picasaweb albums.

Update: It works!

Saturday, February 10, 2007

funny quote of the day

Me: "So you're a Gentoo dev working at Microsoft?"

Matt: "What, do you run everything with Wine?"

Friday, February 09, 2007

Feisty

I upgraded my main desktop to Feisty this past week, and I'm upgrading my laptop as we speak. So far I haven't noticed any bugs, but I haven't had too much time to play around.

I'm in Champaign right now and I'll be attending LUG tonight for a talk on latex given by the infamous jawashin.

Wednesday, January 17, 2007

Computer Museum

Tim sent me this link today:

http://www.corestore.org/compute.htm

I've always wanted to collect old computers and try to get them running. Sounds like this guy has a very forgiving wife.

I sent the link over to my dad as well - he started his career at IBM on System 3 progressing all the way to an AS/400 at his current job.