Friday, March 25, 2011

/dev/random/2


yes my blog has a new address now dotSlashA.in 
yes you guessed it right! & in-case u dint guessed here is what ./a.in is
"an antonym to ./a.out"
which again expresses my love for open-source.
Oh c'mon ./a.out is ... defined at Wikipedia.

So nowadays spending less time on SO & busy in Moving all my stuffs to ./a.in.

Though I believe ./a.in should be a collaborative site to post rammblings but.. may be later Or.. yes mail it to admin@dotSlashA.in to express interest to have a username created for you start contributing.

& yeah Annual Stack Overflow Meetup Day! in Indore!! Count me in.

./Saurabh

Wednesday, February 2, 2011

/dev/random



So Again its really long time since my last post.


Amazing this time is  this guy whose blog forced me to write this post.Okay enough praising.


Did we talked about commandlineflu?Nope ! I think I forgot .It's been one of the longest pending post idea .So start tricking other Users by 


Here ends my random post generator.
bash: ./saurabh: command not found

Wednesday, December 22, 2010

The Fun Part



So it isn't new but .. sounds great 
so lets go ahead ..

Here’s where it gets fun: many of these devices use hard-coded SSL keys that are baked into the firmware. That means that if Alice and Bob are both using the same router with the same firmware version, then both of their routers have the same SSL keys. All Eve needs to do in order to decrypt their traffic is to download the firmware from the vendor’s Web site and extract the SSL private key from the firmware image.



Friday, October 29, 2010

Running Android Native Code in your Android app





Just came over a post asking for Android's Logging Best Practices that took me to android log collector. Delving more deeper into log collector's code I got the below code to executes the specified command and its arguments in a separate native process.

All you need is just below code
String myStringArray[]= {"logcat","-d"};
Process process = Runtime.getRuntime().exec(myStringArray);
Setup the permissions for the required operation & you r done!Enjoy

But keep in mind Use Native Methods Judiciously & do check jon oberheide's Android Hax
And thanks to android-log-colllector team for the code.


Though the post describes a way of dropping a shell command from an app , check this for more ways to run shell commands from your app.
And also this  & I have heard MarketEnabler source offers a nice ShellInterface class.
So go get your app runnning!
See ya there at ./a.in

Friday, October 22, 2010

Stacks OverFlowing..



profile for Saurabh at Stack Overflow, Q&A for professional and enthusiast programmers

See ya there at ./a.in

Saturday, July 31, 2010

We live in a beautiful world :):):)

We live in a beautiful world, 

Yeah we do, yeah we do, 

We live in a beautiful world,


:):):)
:):):):):):)
:):):):):):):):):)
:):):):):):):):):):):):)

Monday, March 22, 2010

Issue with mkinitrd when compilin 2.6.32 kernel in Fedora





I installed Fedora 12 on my System recently, downloaded the latest kernel 2.6.32. Compiled the kernel in the standard procedure. On the last step, after make modules_install make install - ends up in following an error message:
sh /usr/src/linux-2.6.32.8/arch/x86/boot/install.sh 2.6.32.8 arch/x86/boot/bzImage System.map "\boot" /sbin/new-kernel-pkg: line 277: /sbin/mkinitrd: No such file or directory mkinitrd failed

Googled a lot and finally got the solution by anonymous here.
here is the solution for all those ppl who got struck in a similar situation.
Open /sbin/new-kernel-pkg in vim and go to line 277. Right before      
"[ -n "$verbose" ] ..." add
tool="/sbin/dracut -f $initrdfile $version" (this line is just copy and pasted from a few lines up)
 100rabh: )

See ya there at ./a.in