Welcome to My New Website

I finally got around to updating the layout of alec.aivazis.com. Like most of my projects, this site is a django application whose source code is available on github.

Primarily, this blog will be a way for me to keep track of the various things I learn but hopefully it can be helpful for someone else too. Please stop by often - I picked up a lot while deploying this website so there's tons of stuff already planned.

Let's start off with this one line implementation of ROT13 in javascript:

s.replace(/[a-zA-Z]/g,function(c){return String.fromCharCode((c<="Z"?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26);});

I used this as protection against spam bots - I'll write up the details in another post.

blog comments powered by Disqus