Monday, June 22, 2009

Finding interesting deleted pictures and videos

Heard about some juicy thing in the news? Like a scandal or a sex video of a celebrity? You see links in the articles, but they are all dead, because the censors were faster?

Twitter to the rescue! Twitter is real time, so it's hard to censor it. Go to Twitter search, input the desired name or thing and there is a good chance you'll find instantly what you're looking for.

Nifty, eh? The dawn of real time search is a nail in the coffin of internet censorship.

Incresase the annoyingly tiny font in Skype chat

Do you also find the small default font in Skype is killing your eyes? Luckily, there is a solution well hidden in the options panel: Tools Menu/Options/IM&SMS/IM Appearance/Change Font.

Much better, eh? Your eyes will be thankful for it.

Thursday, June 18, 2009

Wednesday, June 17, 2009

Why Twitter is vulnerable when reporting from oppressive countries

We hear many stories recently about Twitter used by people in Iran and China to report about issues which the government doesn't want its subjects and the world to know about. Twitter is used very successfully in this fight, but the main problem is the service is centralized, so the government can shut it down and that's it for tweeting.

Google Wave will be released this year and I expect it will replace Twitter for such uses. Why? Because people can run their own Wave servers and those servers can communicate with each other, so there is no central point of vulnerability.

So people run their own servers and they use it for normal communication, but if there is an important event they can use the mesh of Wave servers to distribute information about the event. The government has no central server to shut down, they have to go after each individual Wave server which is much more laborious.

Therefore the future of citizen media is Google Wave, not Twitter. We only use Twitter temporarily until the real thing comes out. Work faster, Google! :)

The reason why PHP Can't connect to MySQL server on 'localhost'

If you can access the server from the command line with a mysql command issued without parameters then there is a good chance the server is configured to use a local socket or pipe on windows, so you need to specify this socket when connecting.

On Windows it's as simple as this: mysql_connect(".")

Configuring local virtual hosts with Apache/XAMPP

Add these to c:/xampp/apache/conf/extra/httpd-vhosts.conf:

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot C:/xampp/htdocs
ServerName localhost
</VirtualHost>

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot path/to/your/project
ServerName yourvirtualhostname

ErrorLog path/to/your/project/error_log
CustomLog path/to/your/project/access_log common

<Directory "path/to/your/project">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

The second one is your new virtual hosts and the first one guarantees access to non-virtual hosts still work.

You also need to add your new host name to c:/WINDOWS/system32/drivers/etc/hosts:

127.0.0.1 yourvirtualhostname

Tuesday, June 16, 2009

Opera Unite turns everyone into a pirate

Interesting announcement from Opera today. Opera Unite turns your browser into an easy to use web server which can be used to shared stuff with your friends and family.

Neat idea, though I don't have my computer switched on all the time, so it's usefulness is limited to the periods when the computer is actually on.

The distributed approach is vaguely similar to Google Wave,  but the details differ, of course.

The main problem I see with the approach is the limited upload bandwidth. I'm on ADSL, uploading stuff is slow, so having my meager upload bandwidth eaten by others is not what I want. Could be useful to people with fatter pipes, though.

Nice work, Opera. You showed them once again. :)