January 2, 2010

Weekend

Hope everyone had a good long weekend! More android stuff next week.

January 1, 2010

Happy New Years!

Happy New Years!

December 31, 2009

New Years Eve

Have a happy new year everybody!

December 30, 2009

Remote Session and Powershell

The Powershell Blog has three great posts on this:
  1. Saving remote session to your local disk
  2. Bringing remote commands to your local session
  3. How to pass arguments for remote commands

December 29, 2009

Powershell Help Reader

I came across this on the powershell blog, take a look at the site here.

December 28, 2009

Call Stack Details in Java

As I get more into Android and back into Java, I wanted to know if there was a way to find out where a method was called from. It seems that the StackTarceElement class can be used to get details about the call stack. I found a great article on this blog showing me how to to do this.

I made one addition to the code found on this blog:


public static String getCallStack(int skip)
{
StringBuilder sb = new StringBuilder();

StackTraceElement[] stackTraceElements =
Thread.currentThread().getStackTrace();

for (int i = 3 + skip ; i<stackTraceElements.length; i++)
{
StackTraceElement ste = stackTraceElements[i];
String classname = ste.getClassName();
String methodName = ste.getMethodName();
int lineNumber = ste.getLineNumber();

sb.append(classname + "." + methodName + ":" + lineNumber + "\r\n");
}

return sb.toString();
}

December 27, 2009

Back to work

After the long holiday weekend, gotta get back to work...not sure how I am going to do that.