CORS Proof of Concept

Getting data from a completely different domain without XSS headaches… CORS awesomeness is awesome! Server:

Client:

Mashup = grooveshark + musicuo Bookmarklet

 

musicuo Bookmarklet

Grooveshark’s bookmarklet

CSS Shadows and Glows…

Testing pastie.org embed

JS Tip: Revealing Module Pattern

From Christian Heilmann. Nothing too fancy for those who are used to write jQ plugins, but nice to save it for reference…

Python x PHP: Finding IPs with regex

Sometimes I just like to write code in Python and PHP to compare them, and admire both… Here’s a little code to find IP adressess inside strings (returned from a nslookup). The code is not optimal, but illustrate how both languages works. Just for some friday fun… Python

PHP

Porque adoro jQuery

Pedido: Fazer com que todos os links de uma determinada página sejam externos. Abordagem 1: Alterar a classe em php, genérica, para ver se o link é externo e acrescentar o target; por regex. Abordagem 2: Colocar no init.js

E todo site fica assim; links externos, para fora! Aff… que doce.

recursively chmod only subdirectories

When I use Betterzip to uncompress a directory tree, it chmods the dirs with 700. Here’s the command to solve this:

It finds all subdirectories and chmod’em to 755. Clever, isn’t it?