Thursday, March 4, 2010

Project SIKULI is da bomb

Definitely one of the most exciting projects i've seen come out recently has got to be SIKULI.

Basically, it works on the fact that you take screenshots and make a script to automate your UI.

Check out the video to really get a grasp of what it can do:
http://groups.csail.mit.edu/uid/sikuli/

It's really limitless. Today I used it to open up a bunch of putty tabs and sign me into our development server. It's so easy to use even a cave man can do it that even non-programmers could get the hang of it.

Maybe I can get it to automate some things in nethack for me, bwaahahaha.
Anyhow, I'm going to demonstrate the script I used to actually post this blog message:


Yes seriously. It's really that easy.

Happy hacking!

Wednesday, March 3, 2010

IE and jquery.

So today I found an interesting pitfall that I didn't previously know existed.
Apparently, when you're making a list of key-value pairs as such:
var options = {
url:'/Ajax/derpa.php',
success: succeed,
};


...IE doesn't like the trailing ',' on the last parameter, and will completely bug out. Being that IE6 (shudder) doesn't have a good set of debugging tools (that I know of), it took me a while to figure out that the comma was actually the problem.

So to fix it, just take out the trailing comma, as such:
var options = {
url:'/Ajax/reminderThankYou.php',
success: succeed
}


Hope that helps!

Happy Coding!