fritz stelluto
development for digital media
berlin, london

howto tag

Capitalizing words in Javascript with RegExes

An example of how to use functions in JS regular expressions to imitate the /e flag other languages have
"abb Cdd-Eff.ghh 1AAA".toLowerCase().replace( /(^|[^a-z0-9-])([a-z])/g , function(m,m1,m2,p){ return m1+m2.toUpperCase(); } ); //output: Abb Cdd-eff.Ghh 1aaa More →

Starting an HTTP server from any folder in OS X

One liner to start an HTTP server from any folder in OS X: alias server='open http://localhost:8000 && python -m SimpleHTTPServer'/via Jeffrey Way

Combining images with ImageMagick

Assorted ImageMagick commands to combine images (I use them for screenshots of interesting sites). Latest: arranging images in a grid
More →

How to create a Sublime Text 2 snippet

Snippets are pieces of text, with or without placeholders, that you can have your editor paste in when you type a shortcut. Many editors have them; here's how to create them with the Sublime Text 2 editor.
More →

Eclipse shortcuts

As I am moving to the Sublime Text editor, here are some Eclipse shortcuts before I forget them through lack of use. More →

Advanced Evernote search

It isn't immediately obvious, but Evernote offers advanced search operators. More →