tmux and scrotwm config
http://github.com/skiquel/scrotwm-config
scrotwm is a C-based tiling window manager with keybindings like xmonad. Easy config file. http://www.scrotwm.org
http://github.com/skiquel/tmux-config
tmux is a terminal multiplexer. bsd licensed. http://tmux.sourceforge.net
awesome configuration
awesome is a fork of the minimalist dwm tiling window manager.
Awesome has a system tray, a panel with statistics/graphs, lua support, multihead support and more. The downside to awesome is the config file breaking after every release. Sometimes modifications are minimal. As of 3.4.5, there have been less updates, making the system feel more stable.
5 simple tips for KDE 4
These are the first things I do after get a fresh KDE install.
Double-click to open applications
Make applications on desktop and Dolphin open with double-click.
Open up Dolphin. Go to Settings. Configure Dolphin. 
Go to Navtigation pane. Double-click to open. Apply. OK.
Change your background
Right-click on the desktop and go to Desktop Settings.

Pick a fresh desktop theme
In KDE 4.3 you right click the desktop, go to Desktop Settings.
In KDE 4.4 System Settings -> Appearance -> Style -> Workspace.
As a ludite. KDE 3.5's interface is my favorite.
If that's not your cup of tea, you can download your own, sorting the online KDE library by rating and popularity. Surprisingly, Klassik isn't very popular.
Launch Chrome in privacy mode by default
Launching Google Chrome or Chromium in incognito mode is great for privacy.
Right-click an icon on your desktop or taskbar. Go to Icon Settings. Go to the Application tab. Under Command, append -incognito.
Use huge icons
Make huge icons on the desktop for your favorite apps.

I find this hilarious yet useful.
Go to the KDE start menu, search for your favorite apps and add them to desktop.
![]()
You will probably want to use Large, transparent png icons for Chrome, Chromium and Firefox.
Debugging and troubleshooting postfix
Error: Postfix isn't working with mail() on PHP automatically.
Common problem: You have exim or something else running.
Solution: try lsof -i :25. If you intend on using postfix, kill the pid of the app, remove the package of exim or sendmail if you have it installed. See This postfix thread on Ubuntu Forums.
Other issue: Postfix isn't working (miscellaneous)
Solution: tail /var/log/maillog or tail /var/log/mail.err (source)
Error: fatal: open lock file /var/lib/postfix/master.lock: unable to set exclusive lock: Resource temporarily unavailable
You may have another copy of postfix still open. Use lsof -i :25 to track down which process. kill the pid and postfix reload.
Error: postfix set-permissions returns
chown: cannot access `/usr/lib/postfix/dict_cdb.so': No such file or directory.
May be by design, #274108 in ubuntu launchpad says this command doesn't necessarily mean something's wrong.
Helpful resources
Ubuntu handbook page: https://help.ubuntu.com/community/Postfix
Remove services (mpd) from system startup in Linux
I'm using MPD on Ubuntu and Debian and get annoyed by mpd starting at boot time under root.
Your startup services lie in the /etc/rc.d folder. You will observe that ls -l /etc/rc4.d for instance, will show you these files are weighted to run in order and symlink to their corresponding startup scripts in /etc/init.d.
To disable mpd, for instance, update-rc.d can help:
sudo update-rc.d -f mpd remove
Now you will be able to add mpd to a local user script on startup without having to sudo mpd --kill or sudo killall mpd.
Troubleshooting locales in the cloud on debian and ubuntu
If you use Amazon EC2 or Rackspace Cloud Servers, you may end up running into this after your create your instance. I often get these on Debian and Ubuntu (since it's debian based also).
lennycloud:~# perl
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
You're missing locales.
Update your apt database. sudo apt-get update
Download locales. sudo apt-get install locales
Now configure it, and download what locales you need. dpkg-reconfigure locales on Debian. sudo locale-gen en_US.UTF-8 on Ubuntu Hardy Heron 8.04 (Note: on server, you may be logged in as root).
I pick en_US ISO-8859-1, en_US.ISO-8859-15 ISO-8859-15 and en_US.UTF-8 UTF-8.
And that solves it.
Updated April 03, 2010 to include locale-gen.
Use s3sync.rb + screen to move your files to the cloud
Move to your s3sync dir.
screen ./s3sync.rb -r /home/tony/backups/ backup:backups -v
screen means you will be able to run the command as a screen process. ctrl-d to detach screen, screen -r to resume.
-r means recursive copy.
/home/tony/backups is where cron stores you backupps. You can replace this with whatever dir you want to sync.
backups is the name of the bucket. Do ./s3cmd createbucket
: is a seperator
backups is a prefix for the bucket.
-v means verbose, so you can see the progress in your screen.
If screen quits too fast, the command may not have worked.
If you detached and screen doesn't resume, your job may done, check your s3 to see if files transferred.
Also, make sure you have your s3config.yml file ready, you need to copy your key from your Amazon AWS account.
Troubleshooting s3sync
Amazon S3 is a superb, cost-effective, scalable storage solution. It's been around for a few years. s3sync.rb is a well-maintained ruby script to backup your important files.
[07:02 AM][root@local ~/.s3conf]# ./s3cmd.rb
/usr/bin/env: ruby: No such file or directory
You don't have ruby installed. Easy.
sudo apt-get install rubyor
yum install ruby
[07:02 AM][root@local ~/.s3conf]# ./s3cmd.rb
./S3.rb:14:in `require': no such file to load -- openssl (LoadError)
from ./S3.rb:14
from ./s3try.rb:26:in `require'
from ./s3try.rb:26
from ./s3cmd.rb:16:in `require'
from ./s3cmd.rb:16
Missing openssl libraries.
sudo apt-get install libopenssl-ruby
3 hilarious british comedies: IT Crowd, Snuff Box, Garth Marenghi’s Darkplace
If you heard of the Office or Monty Python's Flying Circus, you'd know that the British have a variable penchant for comedy, burlesque and satire.
Fun fact: Matt Berry and Richard Ayoade star cameo in all three of these shows.
These videos are not safe for work as they have a fair amount of vulgarity.
FLOSS on gaming handhelds: The GP2X Wiz and Dingoo A320
The GP2X Wiz and Dingoo A320 are two superb solutions for console emulation. This is a head to head comparison of both.
The Dingoo a320 is comparable to a Nintendo DS in price. It's bundled with a proprietary OS with an SDK (Software development kit). Hardware is nice. It even has an FM Player and a mic. It charges via a normal USB connector (the one you may already use with your cell phone or G1). Screen is backlit.
The stock emulators have poor performance. ThinkGeek's featured photo of Super Mario World on the dingoo is pristine, but the truth is mario's face may meet that rocket because of the choppiness of the emulation.
Linux support comes to the rescue on the Dingoo with Dingux. Implementing it however involves some clever hacks. Sadly, Dingux doesn't support the FM player or the mic yet.
The GP2X Wiz by Gamepark is in my opinion superior. The display is brilliant. It runs Linux natively. Think of it like a gameboy advance with a Lithium ion battery, backlight, OLED screen. It even has the specs and software to play MAME games.
GP2x also supports a bustling homebrew community featuring emulators. After all, that's what an open handled is all about: Giving developers the rights to create their own open source applications.
GP2x is a handheld done right. Unlike the DRM-imprisoned PSP, Gameboy and iPhones the wiz actually gives you freedom. It's an textbook instance of how FLOSS can make a seemingly ordinary piece of hardware into an enterprise-class super device . Look at DD-WRT and OpenWRT. Look at Cyanogenmod for Android. Look at Linux on the desktop.
If you paid your rent and have 200 bucks lying around, grab one of these things.
My opinion: Dingoo Digital in China needs to understand their overseas niche is in homebrew. They should make their operating system Linux-based. If you have moderate knowledge of computers (Can put files onto an attached storage device) and want a handheld, grab the GP2x. You won't regret it.
Success
To laugh often and love much; to win the respect of intelligent persons and the affection of children; to earn the appreciation of honest critics and endure the betrayal of false friends; to appreciate beauty; to find the best in others; to leave the world a bit better, whether by a healthy child, a garden patch or a redeemed social condition; to have played and laughed with enthusiasm and sung with exultation; to know even one life has breathed easier because you have lived—this is to have succeeded.
~ Ralph Waldo Emerson
I wish my friends and colleagues a successful and prosperous 2010.
WP Theme: DarkBlue 2: Electric Boogaloo
DarkBlue 2 (Electric Boogaloo) is based off the GPLv2 theme DarkBlue.
Backstory: This theme was on WordPress.org at http://wordpress.org/extend/themes/darkblue but removed because the original theme violated wp's guidelines. Original author was William Sutanto.
However, before hand I tried these theme for my blog. As of Dec 28, 2009 I'm using it on this very site. Because the tme is derived from DarkBlue and is different, I'm appending "2" to it.
10-plus essential applications for Windows 7
As a full-time Linux user, I'm not a very big Windows fan. However, I'd like to present some apps I zealously adhered to over my old days as a poweruser.
When a friend or colleague has a bogged-down system (be it by viruses, badware or general oldness), I often ask if they're willing to Backup their Documents/Music and reformat. This means installing applications over again, but the improvements are always substantial.
Updates
- March 20, 2010 - Dress up article with some screenshots / images.
- March 17, 2010 - Added Sumatra PDF, a free, open source PDF viewer.
A note
The install wizards on these programs may bait you into downloading Yahoo! or Ask.com software. If the Terms of Service/Privacy policy in the install wizard says "I agree to xxx and to Installing Yahoo!/Ask.com", Don't check it. Just click next/Install. If you accidentally do, go to Add/Remove apps and uninstall, you don't want them.
Here are some of the apps I download after a fresh OEM install:
Grab all your essentials in one sitting: Ninite
Type (License): Freeware (Proprietary)
Website: http://ninite.com/
This program is a deliverance from the almighty himself. Check the boxes for the programs you want to install and it will create a batch installer. You need internet access to do this. It includes everything from Java and Flash to Dropbox, to VLC, to steam, Open Office, Abiword, Skype, etc.
I could end this post right here, but I'll go on.
Tweaking: TuneUp Utilities 2006-2010
Type (License): $49.00 / Demo (proprietary)
Website: http://www.tune-up.com/products/tuneup-utilities/
The king of all system control apps. Has full features for performance tweaking, removing junk files, optimizing network settings and even theming. The 2010 version even has a turbo mode that removes system services to make your computer zip. It has so many features I can't fit them.
Privacy / Performance: CCleaner
Alternative to: TuneUp Utilities
Type (License): Freeware (proprietary)
Website: http://www.ccleaner.com
This is a free registry/cache/junk file cleaner.
Tip: Make sure you go into settings and choose to "Secure delete". Choose the DoD 3-pass clean.
Tip 2: Consider checking the box to erase "Free space" too. Not all the time because it's time-consuming.
Privacy: Eraser
Type (License): Freeware (Open Source)
Site: http://eraser.heidi.ie/
Description: Delete means delete. Microsoft considers hard drive encryption to be a feature you pay for and its filesystems are extremely insecure (FAT32 has no security, anyone can view anything, NTFS has little). Microsoft is very deceptive that Windows doesn't notify you that you're not really permanently deleting your files until you overwrite them.
Read more about eraser at Stanford's SLAC: http://www.stanford.edu/services/encryption/desktop/windows/securedelete.html
Tip: Make sure to erase any free space on your hard drive as well.
Tip 2: You can also right click your Recycle bin and securely erase your bin.
Privacy: Truecrypt
Alternative to: Microsoft Bitlocker
Type (License): Freeware (Open Source)
Site: http://truecrypt.org
Even though you'll never need it. You never know when you'll get blindsided. You could lose your laptop, have it stolen, etc. Even having one layer of weak encryption will throw off thieves and give you great peace of mind.
Lite, Effective Antivirus: NOD32
Type (License): $40/yr Subscription (Proprietary)
Website: https://www.eset.de
ASM-based virus scanner. Very low memory footprint. Fast.
It also works great when using Windows 7 as a guest (a la VirtualBox)
Free Antivirus Alternatives
AVG Free
Type (License): Free (Proprietary)
Website: http://free.avg.com/de-en/homepage
ClamAV
Type (License): Free (Open Source)
Website: http://clamwin.com
Micro$oft Security Essentials
Type (License): Free (Proprietary)
Website: http://www.microsoft.com/Security_Essentials/
Audiophiles: Foobar
Type (License): Freeware (License)
Website: http://www.foobar2000.org/
Simple, playlist-based music player with a low memory footprint.
Torrenting: µtorrent
Website: http://www.utorrent.com
Type (License): Freeware (Proprietary)
Torrent client with tons of features, oddly small size and low-memory footprint. Very stable.
Office Essentials: Open Office
Alternative to: Microsoft Office
Website: http://www.openoffice.org
Type (License): Freeware (License here)
Get all your essentials with OpenOffice. Microsoft Word, Excel and Powerpoint are too pricy.
PDF Viewer: Sumata
Alternative to: Adobe Reader
Website: http://blog.kowalczyk.info/software/sumatrapdf/index.html
Type (License): Freeware (Open source)
This is a very lite, stable PDF viewing solution.
Gaming: Steam
Alternative to: Greedy retailers like Best Buy and Gamestop
Type (License): Freeware (Proprietary)
DRM gaming. But steam takes the pain out of it. No limits on redownloading the software you purchase. Stable. Time-tested. (You can grab this with Ninite too.)
You have to pay for the games, of course. However the long-term benefits of using Steam make it worth it. It saves you from scratched CD's and managing all your cd-keys.
Steam store also offers generous software bundles of related games (Civilization, Valve, etc) and can save you tons of money.
Virtualization / Guest OS: Virtualbox
Alternative to: VMWare Workstation, VirtualPC
Type (License): Freeware (License details here)
Website: http://www.virtualbox.org
If you want to try out Linux or keep a sandbox'd operating system to do programming on, VirtualBox is will accept Windows, Linux and *BSD as guest OS's. It'll run on Linux too.
Notes: Repairing a broken G1 / HTC Dream
Recently had a situation where I borked my G1 / HTC Dream. It took me hours to fix. This isn't a tutorial on how to install third party roms or root your G1, it's more of a troubleshooting thing.
Screen would be stuck on the "T-mobile G1 Screen". If it's on there for longer than 5-10 minutes, you have have an issue.
Had to pull battery out many times.
SPL to use is HardSPL. Look here: http://code.google.com/p/android-roms/wiki/Install_Hard_SPL. To check your SPL boot holding Camera+Disconnect buttons. Hold camera to switch between Fastboot and serial.
HardSPL includes fastboot. Fastboot lets you flash recovery images when no other options are available. You can grab flashboot for Linux/OS X/Windows at http://developer.htc.com/adp.html.
Fastboot binary may require you type sudo before, for elevated use permissions.
Download the SDK for your operating system, move fastboot into the /tools folder. If on linux or OS X, chmod +x fastboot.
$ sudo ./fastboot flash recovery recovery_image.img
Recovery images. cm-recovery 1.4 is OK. However RA-Dream (amon recovery) is superior (supports adb, console and sd card mounting from it). Big time saver because you'll be transferring stuff to/from your SD card often.
Reinstalling Cyanogen sometimes means you may need to install the original HTC 1.6 image (MD5sum: b3e12b004c155761a10b1a848288e0c3) http://www.baroukh.com/adp1/signed-dream_devphone_userdebug-ota-14721.zip
For the fastboot image (no signature for updater to check against, fastboot only, MD5: a06a3d24ff4cbe5c81317e41891e6965): http://www.baroukh.com/adp1/signed-dream_devphone_userdebug-img-14721.zip
Then you can grab Cyanogenmod and upgrade via Recovery: http://forum.xda-developers.com/showthread.php?t=567610
10 reasons why ThinkPads are my favorite line of notebook
When a friend or colleague is laptop or computer hunting I always try to recommend my favorite products and websites in order to help accommodate them. If you're great quality laptop, you can't beat the Lenovo (Formerly IBM) ThinkPad.
I work regularly on a X200 Tablet and a T400 refurbished from the Lenovo Outlet. Suffice it to say, I am a very satisfied Lenovo customer.
- Time tested. Thinkpads have had the same characteristic look for ages. 1992 to be mm-specific. So that's about 18 years, more or less.
- Industry tested. Many corporations and government agencies swear to Thinkpads. They even use them in space.
- No odd keyboard placement or other gotchas. I have an ASUS N50V and I hate the swapped Fn and control keys keys. Why don't they just use Fn-Ctrl? When they change the order on laptops you use regularly it's annoying. Also other laptops are designed in such an odd way, non-standard keyboard placement, mouse in a weird area, etc. For office professionals, sometimes standard is the most ergonomic fit you can get.
- Consistent design. Other laptops spend too much time "rounding" out their looks with shiny plastic glosses. Manufacturers do this to improve the look when selling them on the floor as retailers like Best Buy and Fry's.
- Great build quality. Carbon-fibered reinforced plastic cases. Also, newer models have a Magnesium-alloy roll cage to protect the internals. (Thanks Wikipedia, was wondering what they were made from
). - Price point. While some configurations can be pricey, most are fairly economical. Use the Lenovo Outlet for refurbished/used or go for stock models. These laptops will include a variety of unique configurations; whatever is on the shelf.
- Decent hardware. Lenovo isn't perfect, but relative to other manufacturers who screw you over with Broadcom and other odd hardware you can't trust, they'll give you a system you can expect. They use Intel Centrino (Chipset, Mobo, Wireless) on most laps. So this works well.
- Wireless-friendly. Newer laps have support for wireless 3g/wimax. You can look for this in outlet or customize for this. My T400 has a 3g and wifi. My X200 has a wimax and a regular wifi card.
- Linux-friendly. Currently I'm running Kubuntu Karmic AMD64 on both my X200 and T400. Also, for a great Linux documentation source, check out ThinkWiki.
- No camera option. What is the problem with Dell/HP/etc. with understanding that many places have a no tolerance policy for cameras? Ever try going to a court house with a camera on your lappy? They'll turn you around. Helpful hint: Lenovo Outlet lets you search via a "No Camera option"
My hope is Lenovo carries on the legacy of the ThinkPad into the future.
(Thinkpad Image courtesy of Goldman40, Wikimedia Commons)
Xmonad and VIM
I was able to commit my Xmonad, xmobar, rxvt-unicode and VIM configuration files to github
You can check them out at:
Computer's are akin to personal black boxes. It records things without you consenting or knowing. A common folk would think they deleted a file, when it's merely be cleared from sight. Files aren't gone until they're overwritten. What's more, applications leave databases, caches, and other logfiles which are impossible to keep track of.
Grab, Flashblock and BetterPrivacy.
Download
In 





















Socialite is a module inspired by many of the great web 2.0 plugins in WordPress.




