Kill all PHP Processes on Unix

No Comments » by Jon Hibbins on 4 January 2012
Filed under: PHP, Quick Tips, Uncategorized, Unix/Linux

You can kill all the PHP processes in Unix with the following command :

killall php

Interesting tablet designs

No Comments » by Jon Hibbins on 9 November 2011
Filed under: iOS, OSX, Platform, Unix/Linux, Windows

Interesting tablet designs : http://www.hongkiat.com/blog/concept-tablet-designs/

Steve Jobs 1955-2011

No Comments » by Jon Hibbins on 6 October 2011
Filed under: iOS, iPad, iPhone, OSX, Platform, Uncategorized, Unix/Linux

Your hardware and software has changed my life and is a big part of who I am

Steve Jobs : 1955-2011

Clear DNS Cache in Mac OSX (Leopard and Lion)

No Comments » by Jon Hibbins on 4 July 2011
Filed under: OSX, Platform, Quick Tips

In Mac OSX 10.5+ (Leapard and Lion)

To clear DNS cache in Leopard, open up a terminal window and use the following command:

dscacheutil -flushcache

In Mac Mac OSX 10.4 and below

lookupd -flushcache

How to Edit the OSX hosts file

No Comments » by Jon Hibbins on 13 January 2011
Filed under: OSX, Platform, Quick Tips, Software Development, Unix/Linux

1) Open a Terminal (Applications -> Utilities -> Terminal).
2) Edit the hosts file (Type your user password when asked).

$ sudo nano /private/etc/hosts

3) Press press control-o to save the file.
4) Press enter on the filename prompt.
5) Press control-x to exit the editor.

List Missing iTunes Music

No Comments » by Jon Hibbins on 13 October 2010
Filed under: iPad, iPhone, OSX, Platform, Quick Tips, Windows

  1. Create a Normal Playlist Called “All Music”
  2. Goto your library, Select all your Music and Drag it to the “All Music” Playlist
  3. Create a Smart Playlist Called “Missing Music” where Playlist is not “All Music” (it’s usefull to exempt Video and Podcasts too)
  4. Congratulations you can now go find your missing tracks, Delete the files or Re-Import your data

The iPad screen size is 1024-by-768-pixel

1 Comment » by Jon Hibbins on 6 October 2010
Filed under: iOS, iPad, Platform, Uncategorized

Yup, i’m sure i’m not the only person who wanted to know the iPad screen size is 1024×768 pixels

Android Mobile SDK Web Browser Testing on OSX

No Comments » by Jon Hibbins on 3 October 2010
Filed under: Code, HTML, OSX, PHP, Platform, Quick Tips, Web

Because it’s painful, here’s how I did it on OSX :

1) Download Android SDK

2) Install it

/Android/android-sdk-mac_86
cd /Android/android-sdk-mac_86/tools

3) Setup the Emulator

./android
  • A Java app opens
  • Click SDK Platform Android 2.1 and download Archive for MacOS X
  • Click Virtual Devices and New
  • Give a name (AndroidTest), set the target to the SDK you downloaded
  • Set Size to 512
  • Create the AVD (Android Virtual Device)

4) Run the Emulator

./emulator -avd AndroidTest -partition-size 128

5) Setup the Hosts file

Set the device to read-write

./adb remount
./adb pull /etc/hosts

Edit the hosts with the following

nano hosts
10.0.2.2 localhost
./adb remount
./adb push hosts /system/etc

Congratulations you should now be able to browse the hosts

iPhone caps lock mode

No Comments » by Jon Hibbins on 15 April 2010
Filed under: iPhone, Quick Tips

The iPhone does have a caps lock mode built in, but it’s disabled by default. To enable it, go to Settings > General > Keyboard and turn on “Enable Caps Lock.” Now whenever you need to type in all caps, simply double-tap the shift key to engage caps lock.

TIP: Hiding the Windows Live Messenger icon

No Comments » by Jon Hibbins on 14 January 2010
Filed under: Platform, Quick Tips, Windows

If you use Windows Live Messenger a lot, you’ll have noticed that the icon now resides on the taskbar, where you can easily change status and quickly send an IM to someone. If you prefer to keep Windows Live Messenger in the system tray, where it’s been for previous releases, just close Windows Live Messenger, edit the shortcut properties and set the application to run in Windows Vista compatibility mode.