As an operations engineer, I get to touch a lot of systems and a lot of different apps on those systems on a daily basis. This means a lot of log following, debugging, fixing, and more log following. Something that I love but often forget to use is background jobs. Background jobs work like windows on your desktop but for the command line. You need to switch between your text editor (vi), the log tail, and the command prompt. You could open three connections to the machine or you could use the background/foreground functionality built in to linux/bsd. Here is what you do:
You need to follow /var/logs/app.log, you need to edit /etc/app/app.conf, and you need to execute /usr/bin/app -debug to fix your problem.
First you run tail -f /var/logs/app.log and then hit ‘ctrl+z’ to suspend this task and return to the prompt. You should see something like:
[1]+ Stopped tail -f /var/logs/app.log
The number at the beginning is the job number. That is how you get back to the process.
Now you run vi /etc/app/app.conf and hit ‘ctrl+z’ This will be assigned job number 2:
[2]+ Stopped vi /etc/app/app.conf
Now you can use the ‘fg’ command to ‘foreground’ a job. So if you want to pull the log back up you do ‘fg 1′ and the log job will come back. Use ‘ctrl+z’ to go back to the command line and run ‘fg 2′ to pull up your app.conf. It’s that easy. If you ever forget what jobs are which you can run ‘jobs’ to display all running jobs:
[1]+ Stopped tail -f /var/logs/app.log
[2]+ Stopped vi /etc/app/app.conf
It’s that freaking easy. Enjoy…
Posted in Tech.
By mike
September 2, 2008

Hey everyone, there is a new site on the interwebs today! Gripefest.us
GripeFest is an open forum for posting pretty much anything you want and your name is optional! It really is a Gripe Fest. It just launch about an hour ago and it already has a few gripes from the community. Pretty cool considering that it launched with only one gripe to begin with. So, go to http://gripefest.us and bitch about something, its fun
Posted in Web.
Over the weekend I was driving around Sunnyvale trying to find a place to live that is close to work when I decided that I needed some things from Wal-Mart. Now, I am not familiar with the area so, I pulled out the blackberry and loaded up Google maps. I have the curve with the GPS so, finding places near me is really simple. I typed “walmart” in the search and quickly got a list of local Wal-Mart stores. The closest looked to be in Moutainview, so I clicked on “directions to here” from my location and got the turn by turn. Here is where the problem comes in… I followed the directions right to the NASA Ames research facility. The directions took me right up to the security checkpoint! There is no Wal-Mart located on the military base. What went wrong here? Well, upon further inspection, I found that the Wal-Mart that I had chosen to go to was listed as Wal-Mart, Mountainview, Ca. Because there was no street address, I guess google wanted me to see where thier new facility on base would be or something. Lisa was with me and she has a military ID so we went on base to see where the map goes… The map led me right to the big NASA hanger (pictured below). Maybe, Google Earth saw a big ass building and assumed it must be a Wal-Mart. Needless to say, I was not happy about it. Perhaps making the app smart enough to at least warn that there is no street would be nice! Lesson Learned though.

Technorati Tags: Google, Google Maps, Fail
Posted in For Sale, Tech, Web.
I have been in a music slump for like 2 years now. Nothing I would write would ever be good enough to keep or even playback. I had no ideas, no feels, nothing… I had serious writer’s block! But last week I wrote and tracked the best song I have ever done! It is a really ruff cut but I hear more potential in the riffs and feels than i have heard in any indie band I have ever scouted as an A&R guy. The song is industrial with some metal and ambient origins. I just need to arrange and further produce it out now. The best part is that I have busted my slump! I have so many other ideas coming to me everyday now! I finally see the end of the tunnel for my first solo album! It’s pretty far away, but I see a faint glow!
Posted in Music.
Sitting here and working on my computer, I am hit with an idea for a project or plugin for my word press blog… I use growltunes to growl the song info from itunes as the tracks change. I am thinking, why can’t I growl the track info to my blog/website? Is there already an app that does this? If not, I think I am going to make that a weekend project. Doesn’t seem too hard with a pub/sub setup. Just a random thought for my blog.
Posted in Tech.