Sunday, January 22, 2012

Jailbreaking and deploying on iphone3gs using ios5

First jailbreak using latest version of redsnow

Then follow these instructions to run/deploy your app on your iphone : 

Friday, January 20, 2012

Installing node.js on hostmonster/bluehost

http://rcrisman.net/article/10/installing-nodejs-on-hostmonster-bluehost-accounts

While installing git you many want to get the latest source from http://git-scm.com/download


Friday, December 9, 2011

Oracle finding columns

 

finding columns

Find all tables that have at least one column that matches a specific PATTERN in the column name

 SELECT       TABLE_NAME,       COLUMN_NAME    FROM       ALL_TAB_COLUMNS    WHERE       COLUMN_NAME LIKE '%PATTERN%';

Friday, November 25, 2011

who is locking whom oracle locks

select s1.username || '@' || s1.machine
|| ' ( SID=' || s1.sid || ' ) is blocking '
|| s2.username || '@' || s2.machine || ' ( SID=' || s2.sid || ' )
' AS blocking_status
from v$lock l1, v$session s1, v$lock l2, v$session s2
where s1.sid=l1.sid and s2.sid=l2.sid
and l1.BLOCK=1 and l2.request > 0
and l1.id1 = l2.id1
and l2.id2 = l2.id2 ;

Thursday, November 17, 2011

Oracle alter table add or drop column

alter table supplier drop column supplier_id;

alter table
cust_table
add
cust_sex varchar2(1) NOT NULL;

Her is an example of Oracle "alter table" syntax to add multiple data columns.

ALTER TABLE
cust_table
ADD
(
cust_sex char(1) NOT NULL,
cust_credit_rating number
);