5 10 2011

HOW TO: Transfer MicroSD Card Contents (including Apps2ext)

Today I received my 16GB MicroSD to replace my now full 8GB.  Normally to transfer contents it’s quite straightforward – just copy everything to computer then back onto the SD card (or from SD to SD if you’ve got a card reader).  However, if you’ve got a rooted phone running apps2sd (also known as Apps2Ext) then there’s slightly more work involved to make sure that you end up transferring all your apps too.  The method below describes how I managed it, and under that I’ve listed a few alternatives…


  1. Rooted phone
  2. SD card with ext partition
  3. ADB installed – how to



Conditional Operations

30 09 2011

Let’s look at the if/then/else construct in a Bash shell script and see how to control the flow of a script with conditional logic. The general form of if/then/else is shown here, with the actual syntax shown in boldface and the parts you must supply in normal type:

if [ condition is true ]

execute these commands

execute those commands

Read the rest of this entry »

Using Javascript to switch between two div sections

28 07 2011

This is on.

Toggle Div Visibility

function toggleDiv(divid)

varon = divid + 'on';
varoff = divid + 'off';

if(document.getElementById(varon).style.display == 'block')
document.getElementById(varon).style.display = 'none';
document.getElementById(varoff).style.display = 'block';

document.getElementById(varoff).style.display = 'none';
document.getElementById(varon).style.display = 'block'

codeigniter url helper 1

27 07 2011

check here

How To: VOIP SIP Capture with TCPDump on Linux

5 06 2011

It is very common for me to have to do a sip capture on my asterisk servers or any other voip application to debug what is going on. I like to use TCP dump to capture sip packets and then analyze them in Wireshark. Here is a quick guide how to do this since it really makes debugging a lot easier.
Read the rest of this entry »

How to install eclipse for php

4 06 2011

Installing PDT is relatively easy. Here’s the link: Installation guide

List of SIP response codes

25 05 2011

1xx—Informational Responses

100 Trying

extended search being performed may take a significant time so a forking proxy must send a 100 Trying response

180 Ringing
181 Call Is Being Forwarded
182 Queued
183 Session Progress

Read the rest of this entry »