Ho adottato un clueless user

e mi dava più soddisfazioni che un homeless. Ma ha fatto i soldi e si è comprato un mac, il traditore.

FluxBB with PHPass

FluxBB logoAs you may know I’m a GameZoo associate and I currently mantain their servers, and the site as well.

I’m migrating the old forums, that were pretty unmaintainable, to FluxBB 1.5.0.

FluxBB is an incredibly fast and simple forum software, and it runs without hassle on nginx.

The problem with FluxBB is that it stores user passwords as SHA1 hashes, a practice that nowadays is regarded as “unsecure”.

So I edited some files and plugged in PHPass, used by Drupal, Joomla! and PHPbb among the others. It works very nicely, and it was an easy job given how easy to read is the FluxBB code.

Grab your copy of FluxBB+PHPass on my github!

BIG WARNING: that code is intended for new installations. I removed from the login.php file the code that was updating passwords from older FluxBB versions! Do not use this code to update an existing forum, unless you write your own updating method. Moreover, the password field on the database has been stretched to host 60 chars instead of 40, so it could be incompatible with old versions. No, I didn’t write any update code since it was not my goal: I am migrating data from another forum software, so I started with a clean FluxBB install.

Link: https://github.com/sevendays/fluxbb15-GZ/tree/fluxbb-1.5.0-with-PHPass

Please note: don’t pull the master branch, I’m using it for my gamezoo migration project! Pull the tag “fluxbb-1.5.0-with-PHPass” instead.

Y U NO…

merkel, y u no stfu

Ricorda, Walter Veltroni.

http://old.radicali.it/view.php?id=120011

Questi li hai messi tu.
Questo fanno loro.
Hai perso il Comune di Roma, hai perso le elezioni, non sei già soddisfatto? “Ma anche” si può fare di peggio.
Ritirati, approfitta della pensione da parlamentare che siamo costretti a pagarti. Per favore.

Git server with FreeBSD, nginx and cgit

Well, I had to put up a git server at work.

So I wrote three html pages:

Git server setup with FreeBSD, nginx and cgit

Git client setup with FreeBSD or Linux

Git client setup on Window$. Pure $hit with TortoiseGIT

Git is fun, actually. I even made a github repository, but I must admit I don’t code much: I tried to start developing on ioquake3 code… not much has been done so far.

Well, if you’re interested… My github

=-=-=-=-=
Powered by Blogilo

NVidia on Linux: IRQ error «nobody cared»

Well, I’ve got a marvellous nVidia 9800 GTX. I run KDE4 with KWin effects enabled.

It has happened many times that after some random hours of usage overall KDE performance dropped to the floor: moving windows was nearly impossible, desktop effects stopped working, writing in the Konsole was slow…

But the system was not unresponsive: SSH (and everything not related to the X server) was working as usual.

Since I was too lazy to investigate it, I simply restarted the X server (or closed and reopened my KDE session) when it happened.

Some days ago I took a look at dmesg | tail and found this string:

kernel: irq 16: nobody cared (try booting with the "irqpoll" option)

followed by a (stack?) trace.

So it was an IRQ problem. Looking at /proc/interrupts revealed that the interrupt #16 was shared between my nvidia card, a pata_jmicron thingy and an usb port.

After googling a little I found that you can (actually you should) put the nvidia card on MSI system (see this wikipedia entry).

You simply tell the nVidia module (loaded at startup) to use MSI rather than old pci irqs, by writing a file in /etc/modprobe.d/:

# nano /etc/modprobe.d/MSIfixes.conf
options nvidia NVreg_EnableMSI=1

Then you should unload the module and reload it (well, it’s easier to do a reboot).

I haven’t had that annoying freeze issue ever since I put MSI in the game.

On a side note, hda_intel module supports MSI too:

options snd_hda_intel enable_msi=1

=-=-=-=-=
Powered by Blogilo

ROTFL Piemonte. Sembra Lombardia: Merda.

http://www.regione.piemonte.it/notizie/piemonteinforma/diario/nuovi-criteri-per-il-sostegno-al-reddito.html

 

[...]

“E’ un altro tassello fondamentale – ha commentato il presidente Roberto Cota – a supporto della politica della mia Giunta per le situazioni di criticità sociale e soprattutto per le famiglie. Un aiuto che si aggiunge ai provvedimenti già previsti sulla libertà di scelta educativa e sui pannolini gratuiti dal 1° gennaio prossimo. Tutti primi passi verso l’attuazione concreta di un quoziente famigliare regionale”.

[...]

 

Pannolini gratuiti, a farci cagare ci pensa Cota.

 

Vai, siamo sempre più simili a quel posto di merda chiamato Lombardoveneto.

 

Se i torinesi si svegliano fanno le barricate io ci sono!

=-=-=-=-=
Powered by Blogilo

PHP-FPM in FreeBSD!

Finalmente PHP5.3 è entrato in FreeBSD, e con questo anche PHP-FPM!

ED ERA ANCHE ORA.

Spiegazione: per poter usare script php con il vostro webserver preferito (ovvero nginx, se lo usano wordpress e youporn un motivo c’è: dà pesantemente merda a apache) prima di FreeBSD 8 l’unica era compilarsi a manina php5.3, che contiene php-fpm.

FPM significa “FastCGI Process Manager”: la maniera più comoda, più naturale, più sensata per avere uno o più processi php verso cui nginx può indirizzare le richieste tramite fastcgi.

E ho pianto sangue e sperma dal culo, e ho compilato, e ovviamente non funziona mai un cazzo al primo colpo perché murphy ci odia inspiegabilmente, e dio più che dare una mano ti dà un fracco di legnate.

ORA TUTTO QUESTO HA UNA FINE.

ORA TUTTO SI INCASTRA.

PERFEZIONE.

Linux Day 2010 Torino: Partono i giochi!

Più che altro delle note personali per fare mente locale. Speriamo che nessun rompicoglioni abbia da ridire. Eh.

Leggi il resto dell’articolo

Prova Blogilo

Eh, kde4 + akonadi + kdepim… che mal di testa.

A Cannonate.

Ecco come muore un nigeriano.

Erano meglio le cannonate.

Hai votato Lega Nord, convinto che quegli immigrati di merda ti stessero rubando il lavoro e stessero mettendo in pericolo la tua patria padana?

Sentiti orgoglioso adesso.

Iscriviti

Ricevi al tuo indirizzo email tutti i nuovi post del sito.