Fork a Process in PHP

The other day I ran into a need to "fork" a process in a web app. Basically I needed to trigger a long-running process but immediately show the user a screen that said "running". I used a version of the following.

Read ›

Nodejs File Commands - 1 Minute Tutorial

Check out my article on Nodejs file commands over at utahjs.com, the JavaScript Users Group of Utah.

Read ›

Wake Up! Do You Know Encryption?

I'm surprised by how many developers aren't familiar with encryption. Many say to me that encryption is md5 and sha1.

Applications often need one-way encryption and two-way encryption. There are also public/private key encryption schemes like pgp which are not as commonly used in web applications.

Read ›

Count Lines of Code

Count number of lines of code in bash:

find . -print | egrep '\.php|\.sql|\.css|\.js' | grep -v '\.svn' | xargs cat | sed '/^\s*$/d' | wc -l

Read ›

Windows vs. Linux (Again)

I use Linux on my home computer and Windows on my work computer. Sometimes I hate to admit it, but there are a lot of good things about Windows. By windows I mean WinXP and Win7.  As for Linux, I particularly mean Ubuntu 9.04.

Read ›

Google Plays Poker

I left the following comment on the blog entry titled "Chrome OS Factsheet, Why its Relevant and Irrelevant" on taranfx.com.
I must rebut some of your points on irrelevance.

Read ›

I Love You, Sun

I installed Sun's VirtualBox 3.0 last week. I'm in love.

As of last week, I have no dual boot. Yay! No more juggling partitions. No more fiddling with NTFS from Linux or EXT3/4 from Windows. No more waiting for full restarts. I'm always in Ubuntu and run Windows 7 on top. It is great for a few programs my wife uses that don't work under wine.

Read ›

Ubuntu on the Desktop, Windows in the Recycle Bin

I recently got a nasty trojan virus on my home computer. It was very clear to me that it was time to try Linux again on the desktop.

So I installed Ubuntu 8 and have been very impressed. The following is a list of things that were often troublesome in previous versions but are very easy in Ubuntu 8.

I have tried Fedora Core 4, Ubuntu 5, 6, and 7 and Mepis 5 on my home computer. Each had limitations for me or my wife that caused us to revert to Windows XP. I'm a fairly novice Linux user, but I do use the Linux command line every day when working with web servers as a web developer.

Read ›

OSX UI Philosophy

Apple sure does have a unique philosophy of minimalism for their UIs. I used a Mac today for about 3 hours to do some simple Photoshop stuff at work. I was surprised by some of their UI design choices that diverge so much with Windows and Linux. Here are my thoughts.

I definitely enjoy the Windows/Linux utilitarian approach over OSX's simplicy approach. I was particularly irked when there was no easy way to rake through a folder of 64 images to find out which 6 were 180x20 instead of 180x19.

Read ›