How To: Enable UPnP on Belkin N1 Vision Wireless Router


I recently replaced my Linksys WRT 310N Wireless router with the new Belkin N1 Vision Wireless Router, because of it’s super cool interactive display that shows how many computers are connected to the router, the maximum and current speed of my Internet Service Provider, the current upload and download speed that I’m using, and the total uploaded and downloaded data of each device that is connected to my router.
Continue reading “How To: Enable UPnP on Belkin N1 Vision Wireless Router”

eBay is full of fake 32GB SD, flash, and memory cards

After 2 weeks of waiting for my 32GB SD card from Hong Kong, I finally received it. Too bad, I waited for nothing, because I bought a fake SD card. It’s really deceptive, because if you check it in your PC or MAC, you’ll see that total capacity of 32GB.

But don’t let you eyes deceive you! If you’ll use the card and you exceeded 2GB, all of your other files will be corrupted. Because it’s really 2GB not 32GB. They just re-programmed or hacked it so that your computer will show you that it’s 32GB, but its total capacity only 2GB.
Continue reading “eBay is full of fake 32GB SD, flash, and memory cards”

IE9 beta is now available for test drive!


The latest version of the world known Internet Browser that sucks after Firefox and Chrome dominated the world wide web has attempted to take back its place in the browser war. I recently downloaded IE9 beta 64-bit for Windows 7 and I can say that it has a potential to be loved by web enthusiasts, again.

What’s new with Internet Explorer 9? You can read more about it here.

IE9 beta is only available for Windows 7 and Windows Vista 32-bit and 64-bit editions. And I don’t think that they will release it in other older versions of Windows.

It’s now faster, better, lighter and smarter! Try it now and brag to be one of the first to experience the beauty of the web!

You can also read more about IE9 at Long Zheng’s blog.

Top 288,945 sites in the world visualized with favicons

Others are saying that the top 300,000 websites in the world are visualized with favicons. But why my title is 288,945? Because I want to be specific, and there are only 288,945 favicons in this poster.

A large-scale scan of the top million web sites was performed in early 2010 by computer David Fifield and Brandon Enright who are bored one day and suddenly had an idea about collecting the favicons of top 1,000,000 websites around the world in a single poster. But these nerds failed to visualize all the top 1 million websites. Only 328,427 unique icons were collected, of which 288,945 were proper images.
Continue reading “Top 288,945 sites in the world visualized with favicons”

Zip files via SSH and copy it to another folder or server

If you files and directories in your server via SSH, just type the command below:
zip -r zipfilename.zip folder

Just replace the folder with the folder name you are targetting or use * if your currently in the folder.

If you want to quickly zip all files and folders individually in your server via SSH, just type the command below:
find . -type f -exec zip '{}.zip' '{}' \;

Replace the dot after “find” to zip the specific folder and all files and folders inside it.

If you want to Tar.gz instead of .ZIP, you can use the command below:
tar -cvzf filename.tar.gz /home/path

Now, to copy the zip file or files in a folder to another folder, use the command below:
cp /home/user1/public_html/yourzipfile.zip*.* /home/user2/public_html

Just replace the user1 and user2 respectively. Or just specify which folder you want to copy your zip file.

If you want to copy all the files inside a folder and the files and folders inside the folder of a folder (sub folder, sub-sub folder, sub-sub-sub folder, and so on), then use the command below:
cp -r /home/user1/public_html/*.* /home/user2/public_html/

If you want to copy the files or folder to another server, use the command below:
scp -r /home/user/public_html/*.* [email protected]:/home/user/public_html/

Just replace the server IP with your IP or domain. You will enter a password after typing the command

Whitelist an IP address in your server via SSH

One day, one of my blog readers can’t access my site. I wondered why and how come she can’t access it but I can. I also asked other readers, and they can. If this happens to you, just like what happened to me, maybe that specific user was blacklisted by your host.

In order for him or her to access your site again, you need to whitelist his or her IP. So the first thing that you should do is ask his IP address, then whitelist it in your server. To white list an IP address, you need to type the following command via SSH:
csf -a IP /etc/init.d/csf restart

Just replace the IP with the actual IP address. For example you want to white list 1.1.1.1, just type the command
csf -a 1.1.1.1 /etc/init.d/csf restart

To see the white listed IPs you could use the command,
grep IP /etc/csf/csf.allow

I think this is not applicable to all server. I’m using CentOS 5.0 with suPHP as my PHP handler. If your server configuration is different, ask you host first if your not familiar with SSH commands.

Change your PHP handler from mod_php (DSO) to suPHP

Finally, I decided to change my server’s PHP handler to suPHP from mod_php. It’s more secure and I can update my plugins and WordPress files automatically without annoying permission errors.

Here’s what my php config looks like after the update:


php.conf updated to:
# This file was automatically generated by the Cpanel PHP Configuration system
# If you wish to change the way PHP is being handled by Apache on your system,
# use the /usr/local/cpanel/bin/rebuild_phpconf script or the WHM interface.
#
# Manual edits of this file will be lost when Apache is updated.
# SuPHP configuration for PHP5
LoadModule suphp_module modules/mod_suphp.so
suPHP_Engine on
AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml

    suPHP_AddHandler application/x-httpd-php5

# End of autogenerated PHP configuration.
Updating user configurable PHP settings.
[info] recursion depth is set to: 2
Restarting Apache

Now, I can update WordPress hassle free!

To change your php handler, you should have WHM root access. This is the only way I know. I think you can change it via SSH, but I haven’t tried it yet.

Once you’re logged in as root, just go to Service Configuration > Configure PHP and SuExec > Alter Configuration > PHP 5 Handler > Select suPHP.

Once you’ve selected suPHP, just click “Save New Configuration”.

That’s it!

CHMOD folders, sub-folders, sub-sub-folders, and so on

If you recently changed your PHP handler to suPHP from mod_php or DSO, then you need to CHMOD all your folders, its sub-folders, sub-sub-folders, and so on to 744 to avoid any internal server errors, specifically internal server 500 errors.

And also, you need to CHMOD all of your files to 644.

In order to do this automatically, login as root in your server and go to your home directory, then enter this command via SSH.

For folders:
find {path to the folder} -type d -exec chmod 755 {} \;

For files:
find {path to the folder} -type f -exec chmod 644 {} \;

And that’s it! It will change the permissions of all your files and folders under your home directory automatically! It’s like magic!

If the above method doesn’t work for you, try the xargs method.

For folders:
find . -type d -print0 | xargs -0 chmod 0755

For files:
find . -type f -print0 | xargs -0 chmod 0644