Il grande switch

Nonostante il mio breve recente post fosse poco più che riportare un paio di link, ha avuto l’effetto di stimolare un po’ la discussione anche intorno a me e mi sento in dovere di espandere un po’ quello a cui ho pensato leggendo queste discussioni.

Credo che ci siano due filoni distinti, che sono stati raccolti da persone diverse: Mark Pilgrim ha cambiato sistema operativo da Mac OS X a Ubuntu Linux (primo filone) perché vuole avere la sicurezza di poter conservare a lungo e intatti i propri dati (secondo filone).

Entrambi i filoni possono prendere strade diverse, una, comune tra i due, è quella che riguarda la libertà del software e dei formati che usiamo, un’altra è quella più pratica, che riguarda più il software che usiamo e il modo in cui produciamo e trattiamo i nostri dati. Credo che una delle più grandi qualità di Mark e il motivo per cui è così efficace in quello che scrive, è che riesce a collegare direttamente l’importanza della libertà alle applicazioni pratiche, invece che concentrarsi su astratta filosofia che difficilmente convince chi il computer lo usa per risolvere i problemi pratici.

Ludo sceglie di commentare l’abbandono di OS X e mi chiama direttamente in causa, Stephen O’Grady sullo stesso argomento si concentra di più sul perché Mark ha scelto Ubuntu e sul perché questo è successo ora.

Io fondamentalmente concordo con Stephen sul fatto che questa discussione sia arrivata ora perché Ubuntu ha alzato lo standard delle distribuzioni Linux, cosa appunto dimostrata dal fatto che Mark la considera sufficientemente buona da sostituire Mac OS X nonostante la sua più che ventennale esperienza su Mac. Come conseguenza, anche Tim Bray è stato portato a considerare nuovamente la possibilità di usare Linux.

A Ludo ho risposto direttamente nei commenti, ma riporto qui la mia considerazione puramente pratica: Windows non riesco ad usarlo, nel senso che non sono capace. Quando lo uso sono lento, mi scontro con problemi (chi mi dice se e come posso far funzionare il deploy remoto da uno script ant su Tomcat su un server Windows?) che non capisco e non so da dove iniziare per risolvere. Alle partite non sono molto interessato quindi mi accontento di vederle in TV :).

Riguardo invece alla questione della conservazione dei dati non penso ci sia molto da dire, sta diventando sempre più importante man mano che la nostra vita diventa più digitale. L’esempio più semplice sono le foto: tra vent’anni quale sarà il corrispondete della scatola di cartone dove mia mamma tiene le foto di quand’era piccola?

Mi è piacuto molto anche il post di Tantek Çelik (uno dei pochi incentrato direttamente sulla questione dei dati), in cui riflette sul fatto che al momento il modo più sicuro per salvare i propri dati è ancora il testo ASCII, ma che è ora di trovare qualcosa di nuovo e più evoluto. La sua idea che XHTML e i microformati possano essere questo nuovo modo e garantire lo stesso grado di affidabilità del semplice testo è sicuramente interessante e ragionevolmente plausibile. É una soluzione limitata però al testo che, nonostante sia sicuramente il metodo più utilizzato per la trasmissione della conoscenza, non fa i conti con il fatto che musica e video, di nuovo grazie al “digital lifestyle”, se mi si passa il termine, e a nuove formule per la distribuzione della conoscenza, sono sempre più alla portata di tutti.

Torno quindi all’inizio: la riflessione di Mark, come il tema dell’incontro a cui ho partecipato ieri sera ha moltissime diramazioni e personalmente penso che la strada sia quella dell’apertura. Citando l’articolo di John Gruber, Record industry executives refuse to believe what is patently obvious to anyone with a clue — they are never ever going to regain complete control over the distribution of recorded music. Credo che questo non si applichi solo alla musica.

I was waiting for this conversation

When Mark Pilgrim posted about his switch from MacOS to Ubuntu, I expected some reactions. They didn’t happen until yesterday, but listening to John Gruber and Tim Bray debate on the matter is bound to be insightful.

Here comes the SmackPad

You probably have seen the SmackBook video where a guy smacks his laptop to switch workspace. Too bad that only works on Macs right? Not really, my ThinkPad has a device similar to the Apple Motion Sensor and it runs Linux, so it ought to be flexible and easy to tweak.

Well, I’m happy to announce that you can smack your laptop too!

Requirements:

  • A ThinkPad with the IBM Active Protection System
  • The hdaps kernel module (if sudo modprobe hdaps fails, you’re not qualified)
  • The wnck Python module, provided by gnome-python (if python -c "import wnck" fails, you’re not qualified either)
  • An EWMH compliant window manager (most modern WMs are)
  • The smack.py script

Run the script from a shell:

$ python smack.py

and smack your ThinkPad at will to change workspace back and forth.

Caveat: It’s not really reliable: sometimes it’ll switch in the wrong direction, especially if you try to rapdly switch more than once, but it’a toy, I don’t find it really useful.

You’re welcome to improve the detection algorithm. A basic setting is the SENS variable at the start of the script: the higher the less sensitive the script will be and the harder you’ll have to smack the laptop. Remember, ThinkPads are though, don’t risk hurting yourself with too high values.

Update: Francesco provided iSmack.py for iBooks and Powerbooks with the AMS driver.

Update 2: Andrew hacked a version that works with Compiz.

Update 3: Gervase Markham has an improved version with stabilization.

There are two kinds of Ruby on Rails enthusiasts in the world

Warning: pointless rant ahead.

There are two kinds of Ruby on Rails enthusiasts in the world: those that used Java before and those that used PHP.

The first kind is amazed by Ruby on Rails because they finally found a smart and easy way to do what they did for the last ten years. They found little technically groundbreaking in Rails, mostly a great execution and tight packaging of proven techniques.

On the other side, people used to PHP found in Rails the promised land: it’s like if they jumped from procedural to object oriented programming.

These are the most annoying: they’ll spend all day telling everybody how great Rails is or how in Rails you never have to solve any problem. You’ll even find them commenting in blogs discussing issues with other platforms: “Rails doesn’t have this problem”.

Most of them couldn’t write a plain Ruby program outside of Rails, but they’ll tell you that Ruby is the way of the future and no other languages are needed or worth using. Others are probably frustrated because they’d really like to use Rails at work and instead they are forced to hack on someone else’s unmaintainable PHP code.

Dudes, Ruby on Rails is great, I mean great, but the world will not be counting years Before DHH and After DHH from now on.

My first greasemonkey

Don’t you find it annoying when sites set numeric access keys and when you press Alt-2 to change tab you get the side effect of also changing the page you was reading?

This is an old bug reported the first time for Mozilla, back when Phoenix Firebird Firefox didn’t even exist, but to date no fix has been released (eh, the wonders of multi-platformness).

My first greasemonkey script fixes this annoyance by removing the numeric accesskeys from the page.

Accesskeys are a strange feature in web sites: they are invisible, so you are not using them unless the site developer has been smart and displayed them himself, and they cause these kind of annoyances by triggering when you don’t expect.

The browser should show them in some way, maybe with an icon or a message in the status bar, or a (timed?) yellow notification like the one you get when popups are blocked.

Older posts: 1 2 3 4 5 6 ... 32