Archive for January, 2009

Debian Etch “io scheduler cfq registered (default)”

Saturday, January 31st, 2009

I am installing a Debian 4.0 Etch into my notebook, and it hung loading “io scheduler cfq registered (default)”.

The solution was to type after boot: “install noapic acpi=off fb=false”¬† without quotes, and it then started installing the system.

Just for reference, I found this tip at LinuxQuestions. Thanks, guys!

importer from Comdev One to phpMyFAQ

Friday, January 30th, 2009

I made this script to import the faq database from an old faq system I had (Comdev One, from FYI: it was version 4.1.

The problem is, the old script is encrypted with Zend Optimizer, and I prefer to use an open source script. Besides, phpMyFAQ is much more feature rich than ComDEV’s.

So, I made this converter to copy the FAQ categories and contents from comdev into my phpMyFAQ installation. Beware: I coded it in two hours, and tested it only to see if my contents were imported. Therefore, anyone who dares to use it shall not blame me!

OK, here are the instructions:

* install phpMyFAQ in your server;
* install a copy of your previous comdev’s database
* open the file faqimport/includes/configure.php and edit the databse parameters. Also, edit the define for DB_PREFIX to match the one used by phpMyFAQ
* run the importer;
* It’s done!

Note: The importer truncates all involved tables before importing anything, so if you want to keep any categories, faqs or stats, don’t use this importer!

In case you need some scripting services, feel free to contact me at claudio.imai (at) gmail (dot) com


Claudio Hideki Imai

BOOTMGR is missing

Monday, January 26th, 2009

I just received a notebook which originally came with Windows Vista preinstalled, and with a preinstall partition.
I presume it was intended to be booted whenever the user wanted it to be reinstalled.

But, the previous technician simply shrunk the partition and now it gives me the error “BOOTMGR is missing”.

I tried booting with a installer DVD for another Vista, but all it says is that there’s no Vista installation to be repaired.
The “bootrec /fixboot” trick doesn’t work, either.

I gave up on trying to fix that partition, but was able to recover the system.
It happens that inside a directory named support I found a copy of ghostwin32.exe. I figured out it should be a windows version o Norton ghost – which I never use since it requires a full working windows to be used, and that’s exactly what I didn’t have…

So, using my “Hiren’s Boot CD”, i run ghost 11 from this CD and found an image file named vista.img
I simply made a partition recover using that image, activated that partition and, sure enough, the Windows Vista partition was working again!

In short, I guess I will never understand why do these companies make such a complicated scheme for recovering a system… Simple things are surely more reliable ūüôā

Criando um “progress meter” com PHP 5.2 e APC

Monday, January 19th, 2009

Encontrei vários tutoriais sobre métodos de instalação de um progress meter a ser implementado em PHP. Como meu servidor roda Debian, aqui estão alguns passos necessários para a instalação:

Usando o APC (Alternative PHP Cache):

Instalar os pacotes necess√°rios:

apt-get update
apt-get install apache-dev php4-dev

Instalar o pacote APC:

pecl install apc

Adicione as linhas ao seu php.ini (/etc/php5/apache2/php.ini)
apc.rfc1867 = 1

Nota importante: APC √© incompat√≠vel com o Zend Optimizer, o que significa que o servidor n√£o pode ser usando com v√°rios pacotes comerciais que dependem do ZO…