January 2012
2 posts
December 2011
3 posts
2 tags
There are no foreign lands. It is the traveler only who is foreign.
– Robert Louis Stevenson
November 2010
1 post
3 tags
June 2009
1 post
February 2009
3 posts
2 tags
1 tag
VIM: tabs to spaces
:set expandtab
:retab!
Thanks to Daily Vim for this snippit.
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
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
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...
2 tags
Cleaning a Toilet with Coke →
A good reason why NOT to drink soda.
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.
2 tags
August 2008
2 posts
Convert flv to avi using memcoder
mencoder -oac copy -ovc lavc -o video.avi video.flv
Live as if your were to die tomorrow. Learn as if you were to live forever.
– Mahatma Gandhi
July 2008
3 posts
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...
Morality is judgement to distinguish right and wrong, vision to see the truth,...
– Ayn Rand, The Fountianhead
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...
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...
Asus eee hacked out of box →
Wonder how many EEE owners know about this.
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;
4 tags
3 tags
3 tags
2 tags
2 tags
2 tags
3 tags
Google provides courses on programming →
2 tags
2 tags
2 tags
Mutt Guide →
Seems like a very extensive mutt guide. Will read it’s entirety at a later date.
2 tags
3 tags
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...
February 2008
22 posts
convert WAV to ogg
To convert a WAV file to ogg:
oggenc myfile.wav -o output.ogg
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
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...
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...
Old programmers never die, they just parse away.
Witness Cam →
This is my next big project.
2 tags
2 tags
Sysadmin Theory →
Ryan makes some really good points on effective, and efficient, system administration.
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