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…

Requirements

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

source





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 ]
then

execute these commands
else

execute those commands
fi

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';
}

else
{
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 »





MySQL: Create a Database in MySQL

12 05 2011

This tip walks you through the steps of creating a database in mySQL. The database created in this tip, is a simple database and table to be used with a guest book application.

source





ApacheMySQLPHP

12 05 2011

This is to help people setup and install a LAMP (Linux-Apache-MySQL-PHP) server in Ubuntu, including Apache 2, PHP 5 (optionally PHP 4 in Ubuntu 6.10 and lower), and MySQL 4.1 or 5.0.

source





How to make apps on facebook

11 05 2011

Apps on Facebook.com are web apps that are loaded in the context of Facebook. You can build your app using any language or tool chain that supports web programming, such as PHP, Python, Java or C#.

Apps on Facebook.com are loaded into a Canvas Page. A Canvas Page is quite literally a blank canvas within Facebook on which to run your app. You populate the Canvas Page by providing a Canvas URL that contains the HTML, JavaScript and CSS that make up your app. When a user requests the Canvas Page, we load the Canvas URL within an iframe on that page. This results in your app being displayed within the standard Facebook chrome.

For example, suppose that you have a web app available at http://www.example.com/canvas. This is your Canvas URL. When you setup your app on Facebook, you must specify a Canvas Page name that is appended to http://apps.facebook.com/. In this example, we will use your_app as the Canvas Page name. When the user navigates to http://apps.facebook.com/your_app in their browser, they will see the contents of http://www.example.com/canvas loaded inside of Facebook.com.

Note that http://www.example.com/canvas cannot forward to another URL via HTTP redirect responses, e.g. response code 301, but has to return the response directly.

source








Follow

Get every new post delivered to your Inbox.