Tuesday, July 18, 2006

Linux on SONY VAIO VGN FE-21B

Since this laptop comes with a very bright shiny display, one of your first problem after you boot your linux is too adjust brightness.
Doing some searches on google will reveal you a kernel module called sony_acpi which should make /proc/acpi/sony containing brightness and brightness_default files(these appear after you load the module) . Changing the value in this file should ajust the screen brightness, but on this FE21B model it seems not working.

After some more research(hours of trying and testing) I have found an application called smartdimmer, a NVidia specific utility which worked.
I assume it is not harder now to make FN+F5/F6 working, since one way or another you have now the control over your brightness level, but I haven't tried yet.

Tuesday, June 27, 2006

HeaderName and PHP scripts execution problem

If you are using mod_autoindex to list your directory contents on the web, you may want to add header and footer using HeaderName and
ReadmeName directives.

However, if you refer to .php scripts in these directives, they are
either ignored or listed as plain text(php source).

In order to have HEADER.php really executed, you need to add in your httpd.conf some code like:
 
<Directory /dir>
AddType text/html .php
HeaderName /HEADER.php
<Files "*.php">
AddHandler application/x-httpd-php .php
</Files>
</Directory>

Heroes Of Might and Magic 5 Artifacts

I've spent the last two weeks playing the Heroes of
Might and Magic V(HOMM5) campaigns, and i write this not
so much to share my thoughts on it,
but to try at least to help those who find the lack of
information or description on some particular items
as annoying as i do.
Of course, this is not the major issue in the game,
but if all the people who discover anything new about
such an item would contribute to this mini-database
it would be awesome. It would be useful, at least
until Nival&Co. decide to polish the oh-so-small (?)
details of the game.
So , here it goes:

Ring of Caution : +2 Hero Attack, +2 Hero Defense
Tunic of the Carved Flesh : +3 spellpower, -1 morale
Helm of Chaos : +3 knowledge, -1 Defense

Of course, i couldn't (oh well, i could have, but too
complicated in the middle of the game ) detect any
properties that could manifest during the battles,
like particular spell improvements,
enemy penalties or movement bonuses.But if anyone
knows more about these or other items similar to
these, he/she should feel free to add it/them here.

Sunday, June 18, 2006

The Moldavian Blackhat

First of all people should stop blaming Google, they are not perfect but still the best on removing spam sites.

If MSN and Yahoo have much fewer indexed pages from this guy's domains, it is only because their bots are lazier and their index space lower.

Some of his sites are already banned from Google, some not, of course you would probably expect G to act faster, but I think they want the banning process to be automatically to avoid further spam. If they ban manually, tomorrow 10 others will spam again.

Here is a quick explanation on how he did this whole madness:

1) He registered a couple of domains (t1ps2see.com, eiqz2q.org, etc)

2) He used some lame automatic page generator to make thousands of meaningless pages.

3) He setup his web server(probably mod_rewrite rules) and DNS to work with anysubdomain.domain.com, we can see this on a random query:
$ host worihqweoirhwqer.t1ps2see.com
worihqweoirhwqer.t1ps2see.com has address 70.87.73.35

4) A little programming on the site for interlinking pages and probably for querying some mysql databases where he stored the generated pages.

5) He setup some kind of cloaking, using body onLoad="document.f.submit()" and also giving a page to googlebot and another to visitor, creating confusion. He even denied page caching, but seems like he missed msn where cached pages still appear.

6) He used a couple of trusted(or ex-trusted) PR5 sites like
www.intermedia.md, www.chat.md, www.faces.md, etc. to get backlinks
Although we no longer see them now, in a cached page of these sites there are entries like:

a href="http://2333.water.eiqz2q.org"
img src=http://images.faces.md/images/0.gif border=0
a href="http://1272.manager.eiqz2q.org"
img src=http://images.faces.md/images/0.gif border=0
a href="http://307.pizza.eiqz2q.org"
img src=http://images.faces.md/images/0.gif border=0

7) He waited a few days for his pages to get indexed


Have you noticed anything spectacular? No! Any webmaster with a few programming knowledge can do this... but it will be totally unethical.

And you should also notice the BAD parts in this: he has nothing stable, he will get banned sooner or later and will have to start over and he had to sacrifice those PR5 sites: faces.md, welena.com, intermedia.md, etc. Another bad part for him is that he attracted too much the attention of webmasters, many forums talk about this now and sending abuse reports to Google.


Some of the white hats maybe now wants to try this? I don't know if it's illegal or not, probably not but you should "Know well what leads you forward and what holds you back".

black hats and massive indexed pages

It seems that a guy who owns domains t1ps2see.com, eiqz2q.org, etc managed to index in google a huge amount of webpages.

Results 1 - 10 of about 1,250,000,000 from t1ps2see.com

Pretty impressive, however the number is not real since google is doing some kind of estimations for site:domain queries, estimations which are not accurate at all.

Nothing new until now, since we know blackhats existed and will exist until google and other search engines would become perfect, but it's amazing how webmasters are so interested in this subject, threads like http://forums.digitalpoint.com/showthread.php?t=97090 are so visited.

I also have to mention that he runs adsense on some of his domains, so this is making a very bad image for Google, letting the impression that highest part of adsense income for google comes from black hats.

Friday, June 09, 2006

Enom put REGISTRAR-HOLD because of inaccurate whois info

Although the email was correct, one day I have found that one of my domain was not working(it had the REGISTRAR-HOLD flag). I wrote to my registrar which was actually an enom reseller and he told me to contact enom directly. Enom has only 12 working hours/day so I had to wait until next day. The next day I wrote about 3 emails which and got no reply in about 10 hours so I decided to call them. After 2 phone calls where they told me the problem is because of false whois information, I waited 10 more hours for the whois team to reply by e-mail and the domain was finally working again.
So if you are using Enom or one of their resellers, I suggest you to think twice before using fake whois info.

Thursday, June 08, 2006

PHPMyAdmin freezes on databases with too many tables

If you are using phpmyadmin on a database with more 1500 or more tables, you may experience problems. The page will not load at all so you will not be able to operate propery with phpmyadmin.

Of course you can still run commands from a terminal or console but it is not as confortable as using phpmyadmin.

After digging a lot in the config.default.php filesand trying diferent results and limits for various variables, I found out that problems comes from PHP itsels. So the first thing you should do, is to raise the memory_limit in php.ini . It worked for me.