JSHinting script tags inside html files

First public Sublime Text Extension (works on both versions 2 and 3). JSHint-Inline allows JSHint to run on HTML files, and only requires node. All required node modules are embed into the plugin, so no need to npm anything. How to install: Be sure to have the awesome Package Manager from wBond installed. I’ve already [...]

nodejs, npm and sqlite3 [SOLVED]

So… today I decided to install the sqlite3 package in node… but then I got a non-nice error saying I didn’t have make installed. Yes, now I’m on Windows7. I consider myself a rather eclectic guy when the subject is OSs. At home I have OSX, Windows7 and Ubuntu 12.10, and what I really like [...]

Weather Icon on GeekTool

Finally I got it working… after a while the geeklet I was using for Yahoo’s weather icon stopped working, so I took a couple minutes to make it shiny again… Basically, I’m scraping Weather Channel’s local page, grep for the image tag and sed the src of that image, saving it to /tmp/weather.png. Then the [...]

Code Syntax Highlight on Sharepoint 2007

So… I got fed of not having code syntax highlighting on our corporate sharepoint, and the solution we were using (copying code from Aptana and pasting it as rich text) is awful. You end up with hundreds of pointless font-face and font-color tags. terrible. nonsense. just awful. So, the solution is to use some JS Code [...]

Reinstalar OSX Lion do Disco de Recuperação (por HDD fail)

Pois é… o mac começou a ficar instável, com umas lentidões anormais. Imaginei que era o pouco espaço em disco disponível, ou algum erro de permissões. O que fazer? Mandar o Disk Utility verificar… Ele me disse que precisaria carregar o recovery mode e rodar novamente o programa. Fiz isso, bootando e segurando Command + [...]

Best Terminal Tip Ever!

How to do a quick and easy backup on a *nix system? First, enable cp to include hidden files

Then, just

I’m using it now to back up my user to an external HD, in recovery mode, on a macbook. Will edit this post after its finished…. Update: Finished, everything seems to be [...]

Acessando Dropbox por Proxy

Dropbox é muito bom. Podes criar várias pastas sincronizadas com N computadores, começando com 2GB grátis (podendo a chegar a 8GB com recomendações) compartilhar pastas, tem a pasta pública disponível ao mundo, onde para copiar o link basta um right click… realmente impressionante. Mas dependendo as configurações de proxy que estejas usando, não há como [...]

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…

How to Make an HTML5 iPhone App

This is nice. An article on SixRevisions, short version here for my Archive. If you write a couple meta tags, your html5 app will look like any other iPhone App, but will also work on Android, PalmPre, etc…

apple-mobile-web-app-capable: This is another tip-off that we want to be an offline app. apple-mobile-web-app-status-bar-style: This hides [...]

http://sendshack.com

Um jeito fácil, rápido, gratuito de mandar arquivos pra lá e pra cá. Acho o uploader do mediafire.com beeeem legal, mas a decisão de fazer  pastas e como apresentar o conteúdo para o visitante, complicada. Principalmente se o sujeito não fala inglês. Este sendshack.com no entanto, é bem prático, e os anúncios não ficam pulando no [...]