January 2012
2 posts
Jan 11th
145 notes
Jan 11th
21 notes
December 2011
3 posts
Dec 31st
2 tags
“There are no foreign lands. It is the traveler only who is foreign.”
– Robert Louis Stevenson
Dec 28th
Dec 26th
November 2010
1 post
3 tags
Nov 2nd
June 2009
1 post
Jun 18th
February 2009
3 posts
2 tags
Feb 14th
1 tag
VIM: tabs to spaces
:set expandtab :retab! Thanks to Daily Vim for this snippit.
Feb 14th
Linux fold command
Need to set a default width to a CLI output? Check out the fold command: $ echo “A B C D E F G H I J K L M N O P Q R S T U V W X Y Z” | fold -w 16 Output: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Feb 13th
January 2009
3 posts
4 tags
Speed up firefox
Firefox 3 utilizes sqlite database. Every once in awhile, these need to be vacuumed. for f in ~/.mozilla/firefox/*/*.sqlite; do sqlite3 $f ‘VACUUM;’; done
Jan 7th
5 tags
Share current directory tree over the web →
Want to show something on your machine to someone over the web? Don’t copy it or upload it somewhere. Just run “webshare” and the current directory and everything beneath it will be served from a new web server listening on port 8000. When your pal is finished, hit control-c. alias webshare='python -c "import SimpleHTTPServer;SimpleHTTPServer.test()"' thanks to shell-fu.org...
Jan 7th
2 tags
Cleaning a Toilet with Coke →
A good reason why NOT to drink soda.
Jan 5th
December 2008
2 posts
5 tags
Converting ape audio files
ffmpeg now supports ape files! to convert: ffmpeg -i file.ape outfile.wav I used ffmpeg to convert the ape to ogg.
Dec 13th
2 tags
Dec 13th
August 2008
2 posts
Convert flv to avi using memcoder
mencoder -oac copy -ovc lavc -o video.avi video.flv
Aug 2nd
“Live as if your were to die tomorrow. Learn as if you were to live forever.”
– Mahatma Gandhi
Aug 1st
July 2008
3 posts
Jul 30th
GNU Screen Cheat sheet
These are some GNU Screen key strokes that come in handy: Navigating Through Screens C-a c Create new screen window C-a C-a switch between windows C-a (num) go to numbered window C-a n go to next window C-a p go to previous window C-a “ list windows in interactive mode C-a A rename window C-a K kill screen C-a \ quit screen Detach/Reattach Screen C-a d detatch session screen -r...
Jul 24th
“Morality is judgement to distinguish right and wrong, vision to see the truth,...”
– Ayn Rand, The Fountianhead
Jul 23rd
May 2008
1 post
4 tags
Meme Your Favorite Desktop Linux Software
I’ve been tagged by Chimeric. Here are the rules: blog a list with your favorite destktop Linux software (as many or few you want) add links to the software project’s websites post these rules tag three other Linux using bloggers Without further adieu, here are my favorite desktop apps: wmii My window manager. Pidgin IM client (for my yahoo and AOL accounts) Firefox Web...
May 22nd
April 2008
2 posts
1 tag
gFTP and gVim: making them work together
Recently set up my gFTP client to use gVim as it’s editor. Every time I tried to update a file, it wouldn’t save. Upon further inspection, I noticed the following in gFTP’s status window: Successfully transferred index.php at 93.98 KB/s Running program: gvim /tmp/gftp-view.tRJ2CQ.php Child 5261 returned successfully File /tmp/gftp-view.tRJ2CQ.php was not...
Apr 3rd
Asus eee hacked out of box →
Wonder how many EEE owners know about this.
Apr 1st
March 2008
14 posts
3 tags
Finding large tables in PostgreSQL
Quick SQL code to help determine large tables in PostgreSQL select tablename,pg_size_pretty(pg_relation_size(tablename::name)) from pg_tables where schemaname = 'public' order by pg_relation_size(tablename::name) desc limit 30;
Mar 31st
4 tags
Mar 31st
3 tags
Mar 28th
3 tags
Mar 27th
2 tags
Mar 24th
2 tags
Mar 20th
2 tags
Mar 20th
3 tags
Google provides courses on programming →
Mar 20th
2 tags
Mar 10th
2 tags
Mar 8th
2 tags
Mutt Guide →
Seems like a very extensive mutt guide. Will read it’s entirety at a later date.
Mar 5th
2 tags
Mar 5th
3 tags
Mar 5th
3 tags
Fatal error: Call to undefined function...
Recently, I had to install pecl_http on a freebsd server that ran php 5.2.x. When running pecl install pecl_http as suggested by php.net, the following error occured: Fatal error: Call to undefined function preg_match() in /usr/local/share/pear/PEAR/Frontend/CLI.php on line 70 After making sure the pcre php extension was installed, I searched the internet for the issue. Finally found a...
Mar 4th
February 2008
22 posts
Feb 22nd
convert WAV to ogg
To convert a WAV file to ogg: oggenc myfile.wav -o output.ogg
Feb 10th
4 tags
combining WAV files
You have two WAV files you want to combine. If they have the same sampling rate, encoding, etc, you can do the following: sox track1.wav track2.wav track3.wav output.wav
Feb 10th
Boy, do I feel stupid.
Ever do something you really feel stupid about? Then did you have this overwhelming need to write about it? Share it with the world so everyone knows exactly how stupid you are? A little while ago, I did a little bedroom redecoration, which involved some painting, purchasing of new furniture, and getting rid of things I no longer need, or use. One of my fine purchases was a new desk. Like most...
Feb 9th
Feb 9th
1 tag
A little boy goes to his Father and asks: “Daddy, how was I born?” The Father replied ” Well, Son, I guess one day you will need to find out anyway! Your Mother and I first got together in a chat room on Yahoo. Then I set up a date via e-mail with your Mom and we met at a cyber-cafe. We sneaked into a secluded room, where your Mother agreed to a download...
Feb 8th
“Old programmers never die, they just parse away.”
Feb 8th
Witness Cam →
This is my next big project.
Feb 7th
Feb 7th
2 tags
Feb 6th
2 tags
Sysadmin Theory →
Ryan makes some really good points on effective, and efficient, system administration.
Feb 6th
Feb 5th
3 tags
Removing spaces from a file using bash
I recently had the need to remove all spaces from filenames in a particular directory. After navigating into the directory where the files reside, I then execute the following: for f in *; do mv “$f” “$(echo $f | sed ’s/ //g’)”; done
Feb 4th