Cartório de Caarapó

April 27th, 2009

De vez em quando, temos boas surpresas.

Gostaria de deixar meu agradecimento ao sr Ronaldo Mantovani, do Cartório de registro de Caarapó, MS. Normalmente, nós que somos do “Sul Maravilha” (como diria o personagem Zeferino), pensamos que os serviços nos estados de SP, RJ, etc deveriam ser melhores, o que frequentemente se mostra um erro.

Explicando: precisei de uma cópia de uma certidão de nascimento, a ser enviada para o Japão com urgência. Se fosse atrás de despachantes, seguramente teria um monte de burocracia, demorando semanas para chegar alguma coisa aqui.

Pois bem, dizem que perguntar não ofende, então telefonei ao cartório, falei com o sr Ronaldo, explicando a situação. Ele me disse que poderia emitir o documento, escanear e enviar imediatamente, ao custo de R$25,00 da emissão da 2a via, mais correio, que me custou R$8,00 (carta registrada internacional). Somando-se R$8,00 do DOC, o custo para obter esse documento foi de R$41,00 no total, e recebi a cópia do documento em dois dias em meu email. Agora estou apenas aguardando que o correio me entregue o original.

Com isso, meu problema foi resolvido, sem atraso e sem enrolação.

Para quem precisar, o telefone do Cartório de Caarapó é 0×67 3453-1400, email: cartorio1oficiocaarapo@yahoo.com.br

Fica aqui meu agradecimento ;-)

Bookmark and Share

Antivírus (Avast4Home)

April 11th, 2009

Sempre me perguntam qual o melhor antivírus. Para não me extender muito, geralmente digo o antivírus que estou usando no momento, o que pode mudar de uma hora para outra.

Explicando melhor:

Um antivírus deve ser eficiente, atualizar constantemente e de preferência, usar poucos recursos de seu computador. Segundo esses princípios, o antivírus de minha preferência desde 2005 é o Avast4Home, que além das razões acime, é gratuito para uso não comercial.

É possível baixar uma versão para seu idioma em http://www.avast.com/eng/download-avast-home.html, procure na lista no final da página.

Para usar a versão gratuita é necessário efetuar um registro no site da Alwil, que pode sser acessada em http://www.avast.com/por/home-registration.php. Mude o idioma do site para potuguês usando o botão no topo da página.

Caso você não queira fazer o registro, pode simplesmente pedar o serial aqui: W83324142H1400A0211-1ZMK9XCY (válido até 1/jun/2010)

Bookmark and Share

“Farofa” de okara

March 2nd, 2009

Ingredientes:

Okara 200g
Cebola picada 70g
Cenoura picada 30g
Ovo pequeno 1
Óleo 2 colheres grandes
dashi (katsuo + água :-) ) 100cc
mirin 1 colher grande

Modo de preparar:
Refogue a cebola e a cenoura picados miudinho. Misture o okara e o ovo batido, cozinhe em fogo brando.
Junte o dashi e o mirin para temperar, cozinhe mais um pouco para adquiri consistência.
Sirva num prato fundo.
Pronto!

Bookmark and Share

How to change the upload limit for an HTML form in PHP?

February 27th, 2009

I created an upload function for one of my scripts, and had a problem with the maximum size.So the steps to fix this situation are:

Change the .htaccess for the directory containing the upload script, adding the lines:

# Change upload setting to allow larger uploads
php_value upload_max_filesize 41M
php_value post_max_size 42M
php_value max_execution_time 400
php_value max_input_time 400

Important: the php_value post_max_size must be greater than php_value upload_max_filesize, since any upload will be part of the post variables.

In case you get an “Error 500: Internal server error” after placing the above lines in the .htaccess, it probably means that you server’s configuration is too restrictive.

Open your httpd.conf (or apache2.conf), look for a section such as

  ...
    AllowOverride Indexes AuthConfig Limit FileInfo
  ...
 
    Deny from all

and add “Options” to the allow override directive, as:

  AllowOverride Indexes AuthConfig Limit FileInfo Options

Also, if you don’t have it, add:

    Deny from all

to the same section. This will prevent the possibility of any file beginning with .ht* to be served o the browser, even if you forget to change it’s permissions.

Bookmark and Share

Setting a default charcode for an Apache2 webserver

February 2nd, 2009

If you have problems in your Apache (or Apache2) server not showing ISO characters in your webpages, even if the charset is set in the pages, it’s probably a missing line in your httpd.conf file.

In Apache2 servers, the file is at /etc/apache2/apache2.conf

Open it and look for

#AddDefaultCharset ISO-8859-1"

and remove the # character. (this means uncommenting the line, for the newbies :)

Restart the server by typing:

sudo /etc/init.d/apache2 restart

And your webpages shoud now look good.

Bookmark and Share

Setting up a webserver with a ISP Control Panel

February 1st, 2009

Setting up a webserver
I use to set my servers following the instructions from howtoforge, but there are a few missing settings due to my language:

Bookmark and Share

how to mount ext2 / ext3 filesystems under Windows?

February 1st, 2009

I needed to mount an ext3 filesystem in my windows, in order to share some files (my development scripts and databases) from my Windows setup and my Debian install.

Falko Timme has presented us another great tutorial about this:

http://www.howtoforge.com/access-linux-partitions-from-windows

Bookmark and Share

Debian Etch “io scheduler cfq registered (default)”

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!

Bookmark and Share

importer from Comdev One to phpMyFAQ

January 30th, 2009

I made this script to import the faq database from an old faq system I had (Comdev One, from http://www.comdevweb.com/) 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

phpMyFAQ importer script (233)

Claudio Hideki Imai
www.ecartgt.com.br

Bookmark and Share

BOOTMGR is missing

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.

[edit]
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 :-)

Bookmark and Share