Wednesday, July 28, 2010

javascript obfuscation

I might need this crazy javascript obfuscation one day. Either that, or its fun to look at:

http://discogscounter.getfreehosting.co.uk/js-noalnum.php?txt=alert%28%22hai%22%29

Friday, July 23, 2010

Make a Map from a list, perl style

Make a Map from a varargs list. Useful for iBatis parameterClass objects.

Thursday, July 22, 2010

Charles Schwab reconcile button in online banking

I made a grease monkey userscript to add a reconcile button to chuck schwab online banking checking site, so you can balance your checkbook more easily.

Bank of America had this feature on their online banking website and i missed it, so i added it to chucks site.

Get the script here: http://userscripts.org/scripts/show/82095

catman

I just noticed that the heading of this blog claims that it will also be about Catman, but there are no posts about him.
Behold Catman

How to autowire things in spring

In order to autowire something the following things must be true (that i know of)
  • - The object you are autowiring needs to be annotated with @Component
  • - The object that will contain the autowired object needs to come from the spring context, meaning:
    • - applicationContext.xml needs to have a bean definition of it
    • - the place where its is newed  needs to be replaced with the call to pull it from the WebApplicationContext

Thursday, July 15, 2010

intellij 9 autoscroll to/from source

Intellij 9's autoscroll to source/autoscroll from source is broken.

Sometimes it doesn't actually scroll to source when i view a file.
Why?
I don't know.
I don't know how to fix it either.
I wanted to blog about it so that maybe someone will find a fix and leave a comment.

Thanks.