writeups

10.5.2 Odissey: a small journey in Mac OS X services and components

Well, I'm really happy with OSX 10.5.2. Even I'm not the one that blamed Apple for the translucent menu bar that everyone dislikes.. well, I like it. I don't care about the TM menu bar tool, because I haven't bought (yet) the nifty Time Capsule, I like the spinner in the Airport menu and, most of all, I really like the updates to the BluetoothSCOAudioDriver.kext that drives my bluetooth headset.

Spotlight also feels faster and faster on every upgrade, and I'm a heavy spotlight user, so this makes me really happy. Thanks Apple engineers!

Back to the topic: why odissey? Because as per my battery hints, I managed to make my MacBook2,1 SHUT DOWN while at 74% of the "Writing files" phase of the combo update... resulting in a completely broken system, as every geek could imagine Smiling. Apple updated some libraries, and upon reboot simply nothing worked, and the darwin console was filled with lots of error messages.

Python2.4's urllib2 broken by default on Solaris Express 5.11

While happily installing prerequisites to build an app on Solaris 10, i enjoyed having Mercurial already installed in the "base system".. except for a BIG issue: digest authentication was broken. I tcpdumped the traffic exchanged between the mercurial client and the CGI server and I saw that no Authorization header was sent, and obivously the server refused to serve the hg repository.

Before reinstalling python, maybe from source and replacing the default installation or having side by side two different versions, with consequent nuisances and dirt around the system, I tried a very very small patch to urllib2.py that... amusingly enough, fixed my problem:

E` l'ora dello sbattezzo

Bello dire parlare incazzarsi sull'ingerenza cattolica nello stato.. ma perche` esiste quest'ingerenza? Perche` oggi il vaticano puo` ancora permettersi di parlare a nome del "97% degli italiani" in quanto tale e` la percentuale di battezzati residente sul territorio, percentuale che da` potere a quest'organizzazione.

Active Gibberish

Localization for Active Record error messages

Today i had to answer to one of the questions every non-english Rails developer stumbles upon now or after.. how to localize AR error messages for pleasant appearance to a non-english customer Eye-wink.

First off, thanks to defunkt's excellent gibberish plugin and to the way AR validation errors are exposed, the task was accomplished in an easy and clean manner, without messing too much with AR's internals.

Extracting data from Apple Safari's cache

Five minutes ago, i overwritten my super-shining-new CSS stylesheet that implements the "diarrea con sangue (liquid shit with blood)" color scheme i set up some days ago, because i wanted to restore the original color scheme and put it in a new theme for this site, so that people who enjoyed the old theme could continue to use it.

But as the most kiddie system administrator, i decompressed the original files from the backup archive OVER the current ones..

Safari to the rescue! Every cached item by safari is stored into a SQlite3 database located in ~/Library/Caches/com.apple.Safari, let's inspect how it is structured:

Ateismo razionale

Tradotto da questo articolo del settembre 2007 pubblicato sullo scientific american.

Dall'inizio del nuovo millennio, un nuovo attivismo e` nato tra gli scettici religiosi in risposta a tre minacce verso la scienza e la liberta`: (1) attachi contro le teorie evoluzionistiche e la ricerca sulle staminali; (2) rotture nella barriera che separa chiesa e stato che porta a preferenze politiche per una confessione o un'altra; e (3) il terrorismo fondamentalista. Assieme a molti indici disponibili per analizare questo movimento scetticista e` la scalata di quattro libri nella classifica dei best seller di agosto redatta dal New York Times: "Lettera ad una Nazione Cristiana" di Sam Harris (Knopf, 2006), "Rompere l'incantesimo" di Daniel Dennett (Viking, 2006), "Dio non e` grande" di Cristopher Hitchens (Hachette Book Group, 2007) e "La delusione di Dio" di Richard Dawkins (Houghton Mifflin, 2006). La prosa pungente di Dawkins punta all "elevare la coscienza che essere un ateo e` una aspirazione reale, splendida e coraggiosa. Puoi essere un ateo felice, equilibrato, morale e intellettualmente pregno." Amen, fratello.

How to compile python2.5 on SCO_SV

* You must have PTH installed, and maybe other libs.
* This was tested on SCO_SV os507 3.2 5.0.7 i386

If you have UDK, run:

$ CFLAGS='-I/usr/local/include -belf' \
  LDFLAGS='-L/usr/local/lib'          \
  ./configure --with-threads --with-pth\
  --disable-shared --disable-ipv6

* Add /usr/local/include to BASECFLAGS in Makefile (autocrap sucks).
* Patch Modules/ctypes/_ctypes_test.c by putting an #ifdef HAVE_LONG_LONG around functions that use PY_LONG_LONG (hints: lines 384 and 318).

SpamAssassin, fanculo. Amavis, fanculo!

In poche parole, si e` rotto un bastardo controller RAID hardware con memoria onboard e piccoli falli ornamentali sul connettore PCI-X64 donatomi da quel gay di ska, per installarlo su uno stronzo mailserver e fargli fare fist-fucking-anal-cunt-smerdagging con il buon LINUCS e XFS e due anzi no tre HARD-CORE-DISCS da 500 gigakazz l'uno.

Simpaticamente, stanco delle troppe feste porconatalizie, il giorno della vigilia della befana (o forse un po' prima) lo stronzo controller decide che non e` piu` ora di fare il suo lavoro di fist-anal-cunt-disk-fucking-mirroring-1 e inizia a ... BEEEEEEPPare come un bambinetto di 3 anni cui hanno appena ammazzato la mamma, insistentemente, ogni 7 secondi sputa fuori un BEEEP che ne dura almeno 10.

memo e le sue storielle "VERE" o.Ox

[18:52:21] Cmq
[18:52:28] Vi voglio dedicare una storiella
[18:52:31] La verita`
[18:53:05] Tanto tempo fa
[18:53:09] Due Alieni
[18:53:21] Anzi un alieno di nome maria madonna puttana troia
[18:53:36] Usufrui' dello sperma di questo umano di nome giuseppe
[18:53:47] Facendosela caricare a bestia nel suo ano cosmico
[18:54:01] Partorendo cosi il piccolo bambino dalle sembianze umane
[18:54:08] Il piccolo porco dio

Un appunto per tutti quelli che pensano che la propria religione sia OK

Orig: http://www.stupidwish.net/religion.html

3 Dicembre 2002

Ti sbagli

Addesso, so a cosa stai pensando -- in fondo tutti sono religiosi, un miliardo di cinesi non puo` sbagliarsi, ci rende umili e rispettosi del prossimo, e per certo, ci sono persone che compiono azioni immonde nel nome delle loro religioni, ma le loro religioni sono diverse dalla tua, e, vale la pena dirlo, peggiori della tua.

============================================================================================================================================