Dave's Blog

Friday, August 10, 2007

How to hide icons on your iPhone

I wrote a couple of scripts to hide and show icons on your iPhone. You can do this either by SSH or by installing MobileTerminal.

You will need the iphone binkit installed on your iphone for this to work.

There are two scripts, called "show" and "hide" and they take any number of arguments, and those arguments can be: all, phone, mail, safari, ipod, sms, calendar, photos, youtube, stocks, maps, weather, clock, calculator, notes, settings.

Note that "hide all" does not hide the phone - I found that if there are no icons on the bottom bar, pressing the Terminal application locks up the iPhone. If you wish to hide the phone, type hide phone.

The "kill -9 `ps -auxw | grep SpringBoard | cut -c 8-11`" command reloads the SpringBoard (which shows the icons)

To use, simply login to SSH or open the terminal and type "hide [program]" or "show [program]".

For example, to hide SMS, type: hide sms

Here are the scripts: (place in /usr/bin and chmod to 755)

hide




#!/bin/sh
while [ $# -ge 1 ]; do
if [ "$1" = "all" ]; then
mv /Applications/Calculator.app /Applications/Calculator
mv /Applications/DemoApp.app /Applications/DemoApp
mv /Applications/FieldTest.app /Applications/FieldTest
mv /Applications/Maps.app /Applications/Maps
mv /Applications/MobileCal.app /Applications/MobileCal
mv /Applications/MobileMail.app /Applications/MobileMail
mv /Applications/MobileMusicPlayer.app /Applications/MobileMusicPlayer
mv /Applications/MobileNotes.app /Applications/MobileNotes
#mv /Applications/MobilePhone.app /Applications/MobilePhone
mv /Applications/MobileSMS.app /Applications/MobileSMS
mv /Applications/MobileSafari.app /Applications/MobileSafari
mv /Applications/MobileSlideShow.app /Applications/MobileSlideShow
mv /Applications/MobileTimer.app /Applications/MobileTimer
mv /Applications/Preferences.app /Applications/Preferences
mv /Applications/Stocks.app /Applications/Stocks
mv /Applications/Weather.app /Applications/Weather
mv /Applications/YouTube.app /Applications/YouTube
fi
if [ "$1" = "phone" ]; then
mv /Applications/MobilePhone.app /Applications/MobilePhone
fi
if [ "$1" = "mail" ]; then
mv /Applications/MobileMail.app /Applications/MobileMail
fi
if [ "$1" = "safari" ]; then
mv /Applications/MobileSafari.app /Applications/MobileSafari
fi
if [ "$1" = "ipod" ]; then
mv /Applications/MobileMusicPlayer.app /Applications/MobileMusicPlayer
fi
if [ "$1" = "sms" ]; then
mv /Applications/MobileSMS.app /Applications/MobileSMS
fi
if [ "$1" = "calendar" ]; then
mv /Applications/MobileCal.app /Applications/MobileCal
fi
if [ "$1" = "photos" ]; then
mv /Applications/MobileSlideShow.app /Applications/MobileSlideShow
fi
if [ "$1" = "youtube" ]; then
mv /Applications/YouTube.app /Applications/YouTube
fi
if [ "$1" = "stocks" ]; then
mv /Applications/Stocks.app /Applications/Stocks
fi
if [ "$1" = "maps" ]; then
mv /Applications/Maps.app /Applications/Maps
fi
if [ "$1" = "weather" ]; then
mv /Applications/Weather.app /Applications/Weather
fi
if [ "$1" = "clock" ]; then
mv /Applications/MobileTimer.app /Applications/MobileTimer
fi
if [ "$1" = "calculator" ]; then
mv /Applications/Calculator.app /Applications/Calculator
fi
if [ "$1" = "notes" ]; then
mv /Applications/MobileNotes.app /Applications/MobileNotes
fi
if [ "$1" = "settings" ]; then
mv /Applications/Preferences.app /Applications/Preferences
fi
shift
done
kill -9 `ps -auxw | grep SpringBoard | cut -c 8-11`



show




#!/bin/sh
while [ $# -ge 1 ]; do
if [ "$1" = "all" ]; then
mv /Applications/Calculator /Applications/Calculator.app
mv /Applications/DemoApp /Applications/DemoApp.app
mv /Applications/FieldTest /Applications/FieldTest.app
mv /Applications/Maps /Applications/Maps.app
mv /Applications/MobileCal /Applications/MobileCal.app
mv /Applications/MobileMail /Applications/MobileMail.app
mv /Applications/MobileMusicPlayer /Applications/MobileMusicPlayer.app
mv /Applications/MobileNotes /Applications/MobileNotes.app
mv /Applications/MobilePhone /Applications/MobilePhone.app
mv /Applications/MobileSMS /Applications/MobileSMS.app
mv /Applications/MobileSafari /Applications/MobileSafari.app
mv /Applications/MobileSlideShow /Applications/MobileSlideShow.app
mv /Applications/MobileTimer /Applications/MobileTimer.app
mv /Applications/Preferences /Applications/Preferences.app
mv /Applications/Stocks /Applications/Stocks.app
mv /Applications/Weather /Applications/Weather.app
mv /Applications/YouTube /Applications/YouTube.app
fi
if [ "$1" = "phone" ]; then
mv /Applications/MobilePhone /Applications/MobilePhone.app
fi
if [ "$1" = "mail" ]; then
mv /Applications/MobileMail /Applications/MobileMail.app
fi
if [ "$1" = "safari" ]; then
mv /Applications/MobileSafari /Applications/MobileSafari.app
fi
if [ "$1" = "ipod" ]; then
mv /Applications/MobileMusicPlayer /Applications/MobileMusicPlayer.app
fi
if [ "$1" = "sms" ]; then
mv /Applications/MobileSMS /Applications/MobileSMS.app
fi
if [ "$1" = "calendar" ]; then
mv /Applications/MobileCal /Applications/MobileCal.app
fi
if [ "$1" = "photos" ]; then
mv /Applications/MobileSlideShow /Applications/MobileSlideShow.app
fi
if [ "$1" = "youtube" ]; then
mv /Applications/YouTube /Applications/YouTube.app
fi
if [ "$1" = "stocks" ]; then
mv /Applications/Stocks /Applications/Stocks.app
fi
if [ "$1" = "maps" ]; then
mv /Applications/Maps /Applications/Maps.app
fi
if [ "$1" = "weather" ]; then
mv /Applications/Weather /Applications/Weather.app
fi
if [ "$1" = "clock" ]; then
mv /Applications/MobileTimer /Applications/MobileTimer.app
fi
if [ "$1" = "calculator" ]; then
mv /Applications/Calculator /Applications/Calculator.app
fi
if [ "$1" = "notes" ]; then
mv /Applications/MobileNotes /Applications/MobileNotes.app
fi
if [ "$1" = "settings" ]; then
mv /Applications/Preferences /Applications/Preferences.app
fi
shift
done
kill -9 `ps -auxw | grep SpringBoard | cut -c 8-11`

Wednesday, August 8, 2007

Taco Bell Quesadilla Grande

I was at Taco Bell for lunch today, and I decided to get the new Quesadilla Grande, with a thicker bread, and according to the menu, 50 cents cheaper than the regular Quesadilla combo meal.

This was not the case. The menu listed the combo meal as $4.49 but I was charged $4.79:

E85 gas = expensive

I was driving home from work yesterday and I saw a rather high price for E85.

Wednesday, August 1, 2007

Pic of Traffic 35W Bridge Days Before It Collapses

This is another pic of the diggit truck I took on Monday. It's on the 35W bridge that just collapsed. I was on this bridge 55 minutes before it collapsed.

Monday, July 30, 2007

Diggit Truck

I took this picture of the diggit truck while driving on the freeway: