Building simplicidade.org: notes, projects, and ocasional rants

Notes

last update:

My keyboard shortcuts

Inside the "Keyboard & Mouse" preference pane of Mac OS X, you'll find a tab named "Keyboard Shortcuts". This is one of my first stops after any nuke and pave setup of my Macs. I don't have many shortcuts: The Take Rich Note and Append Rich Note integrate all applications with DevonThink. I select what I want to keep, and hit the proper sequence to save it in my default database.

Facebook gone XMPP?

Came across this just now: Using Facebook Chat via Jabber Thats a lot of new victim^H^H^H^H^H^Husers to the XMPP network. This, and the fact that my Google Alerts on XMPP is now showing about 10 hits per day (from less than 10 per week just 18 months ago), and I would say that XMPP is turning out to be one hot technology at the moment. Update: given that the news came up via the official Facebook developers site, some people have IM'ed me asking why the question mark in the subject.

Yada, yada, yada

From the quickies department, the Stubby exception generators (search for stubby) made it to Perl 5.

X-Hacker

I was checking something in the Wordpress site: [email protected]:melo $ lwp-request -U -s -S -e -m HEAD http://www.wordpress.com/ HEAD http://wordpress.com/ User-Agent: lwp-request/2.08 HEAD http://www.wordpress.com/ --> 301 Moved Permanently HEAD http://wordpress.com/ --> 200 OK Connection: close Date: Thu, 08 May 2008 10:48:28 GMT Server: nginx/0.6.29 Vary: Cookie Content-Type: text/html; charset=UTF-8 Client-Date: Thu, 08 May 2008 10:48:36 GMT Client-Peer: 72.232.101.43:80 Client-Response-Num: 1 Client-Transfer-Encoding: chunked X-Hacker: If you're reading this, you should visit automattic.

Async DBI

A big part of my work is doing non-blocking servers using the AnyEvent Perl module (I used to prefer POE, but AnyEvent beats POE both in terms of performance and simplicity). One recurring problem is using DBI inside a non-blocking server. The modules that you can find on CPAN that deal with this problem use slave processes to run the DBI code, and then a lightweight protocol to send the requests back to the master process.

$science++

Got to love science: Men who said they had sex twice a week had a risk of dying half that of the less passionate participants who said they had sex once a month, Dr. Davey-Smith’s team said. via Justin Mason. So, print a couple of copies of the study before you leave for the pub/bar tonight. You got science on your side now.

Two new apps: Yuuguu and PortMap

Yesterday, Rui pointed me to two applications/services that immediately found a place in my Applications folder. The first is Yuuguu. Its a screen sharing application that just works. You install the client (Windows, Mac. You can also use the web server), create a free account and add your friends (by email address). That's it. You can now share you entire desktop with any of your friends. Essential for those support calls you get from your family members.

DevonThink online

I'm a big fan of DevonThink. I've used the Pro version for two or three years now, to store my web clippings, my own personal Google. Yesterday, I read through the Evernote review at AppleInsider and it looks like it could be event better. My favorite feature is the bookmarklet that lets you select part of a web page inside Safari, and send to the Evernote server. I love this combination: a web service to store all this data, and a companion desktop application to ingrate perfectly with my environment.

MySQL optimization quick tips

I'm not a expert on MySQL, but I spent a better part of this past night optimizing a server, and I've collected some notes. This is mostly targeted at InnoDB-based tables. To change this settings, you should edit your my.cnf and update them in the mysqld section. See the MySQL System Variables manual page for more information. Please remember to keep a good working backup of your previous my.cnf. Better yet, include your my.