Monday, April 30, 2012

How to execute ssh command and stay logged in

After using implicit authentication a new challenge came, how to exec a command and stay logged in. just like this:

ssh -t <user>@<host> "ls -l; bash -login"

Thursday, April 26, 2012

look for a class on a bunch of jars...

Challenge: how to find a class inside a lot of jars which are inside an unknown directory hierarchy.
Answer: bash scripting

find . -name "*.jar" -exec jar tvf '{}' \; -print | grep -e "<classname>.class" -e "\./"


Wednesday, April 25, 2012

WCF JSON & SOAP Servce

Exposing services to mobile devices has some challenges, first JSON is efficient reason why iOS and Android make it them standard but SOAP is "the standard" and have a well defined contract. So we do not have to choose... we can have both using WCF.

Ill try to keep this simple, what we need to do is publish one WCF with two endpoints, one for JSON and one for SOAP, so this the solution: