Using USB thether with Android cell

The crisis is the netman today has no net as my cablenet has expired.
To save me from the dullpass times there is app called PDA_NET

all it does is ..mking your cell as 2G/3G modem over USB
steps :
ActivateGPRS >
Just download pdanet from android market --- its free>
Make sure usb-debugging enabled in settings >
The app also prompts for desktop client download "Really cool"
so it downloded the pda-net client .EXE in mobile .

Installed the client on pc [copied from mobile SD/download folder]
it loads all the drivers and agents..no crappy network settings u need to do manually!
> Next is "all done"

To use mobile as modem :
on cell : click "use USN theter"
on pc doubleclick on PDA-net app on the taskbar ..it will show connected after some messages .You will see net is up Icon.

Happy surfing!

Loading GingerBread to Samsung Galaxy S

Incite :
get The Darky 10.2 RE ROM
ODIN 1.3
Samsung drivers for windows ... i am on vista
get the kernel flasher for captivate [US galaxy s]
get the home button fix
factory wipe at CWM recovery


Why ?
The darky 10.2 RE is a fast GingerBread ROM ..

How to :
Coming SOon!

Linux Signals Riddle!

Playing with signals in linux lets see a riddle :

#include
#include
/* for random() stuff */
#include
#include
#include
#include

void
termination_handler (int signum)
{
struct temp_file *p;
int err;
printf("\nTerminated\n");
sleep(10);
}

int
main (void)
{

int shmfd,*shared_msg, pid;
struct sigaction new_action, old_action;
int shared_seg_size = (1 * sizeof(int));
//shm operations
shmfd = shm_open("/shm_sumit",O_CREAT|O_RDWR|O_EXCL,S_IRWXU | S_IRWXG);
if (shmfd < 0) {
perror("In shm_open()");
exit(1);
}

ftruncate(shmfd, shared_seg_size);
shared_msg = (int *)mmap(NULL, shared_seg_size, PROT_READ | PROT_WRITE, MAP_SHARED, shmfd, 0);
if (shared_msg == NULL) {
perror("In mmap()");
exit(1);
}

pid = getpid();
*shared_msg = pid;

/* Set up the structure to specify the new action. */
new_action.sa_handler = termination_handler;
sigemptyset (&new_action.sa_mask);
new_action.sa_flags = SA_NODEFER;

sigaction (SIGUSR1, &new_action, NULL);
//while(1)
{
sleep(10);
}
/*if (shm_unlink("/shm_sumit") != 0) {
perror("In shm_unlink()");
exit(1);
}*/

}



signal2.c


#include
#include
#include
void
termination_handler (int signum)
{
struct temp_file *p;
printf("\nTerminated");
}

int
main (void)
{
int shmfd,*shared_msg, pid;
struct sigaction new_action, old_action;
int shared_seg_size = (1 * sizeof(int));
//shm operations
shmfd = shm_open("/shm_sumit",O_RDWR,S_IRWXU | S_IRWXG);
shared_msg = (int *)mmap(NULL, shared_seg_size, PROT_READ | PROT_WRITE, MAP_SHARED, shmfd, 0);
printf(" Process id of sigtest1 = %d\n",*shared_msg);
kill(*shared_msg,SIGUSR1);
kill(*shared_msg,SIGUSR1);
kill(*shared_msg,SIGUSR1);
kill(*shared_msg,SIGUSR1);
kill(*shared_msg,SIGUSR1);

sleep(1);
if (shm_unlink("/shm_sumit") != 0) {
perror("In shm_unlink()");
exit(1);
}

}


The riddle is here sigtest2.c send SIGUSR1 to sigtest1.c 5 times, but the string "Terminated " gets printed sometimes 2 times and sometimes 5 times. why is this printing behavior inconsistent??


Ok after long time i am here .. this time with audiophile DIY
this is partial built HV shunt regulator. IT uses some JFETS and MOSFET IRF840 for plates, pics only for now schematics to follow