CentOS 7.1 and OpenVZ

Over the last weekend, this blog was down for a few days before it finally got back up and running last sunday. The source of the problem was because of CentOS 7 just recently been updated to 7.1 and the problem was caused by the initscripts package. While there’s nothing important here because this is just a personal blog and not a mission critical site, but seeing it was inaccessible for a few days irks me.

I found out the site was inaccessible on April 3. I was unable to connect at all and so i was thinking that maybe the node where i was at was down and so i sent a ticket to the provider. When they replied saying there’s nothing wrong on their side, then i started thinking was there a misconfiguration somewhere? but the day before it was working. So it began, the troubleshooting game. Unfortunately because the network is down and the provider didn’t give me access to any other console so it’s kinda hard to check on things because i have to tell them the command first by sending them tickets and then they would execute it and report back. At the same time i don’t like bothering them like this because this is an unmanaged service so asking them like this feels like i was bothering them.

After numerous messages and failed attempts. They offered me to create a full backup of my container and then rebuild the vps the OS and then put the backup file later on the freshly installed vps so i can do what i want with it later. I was still hesitant on doing that mainly because well let’s just say i don’t want to reconfigure the whole thing again and i’m thinking the problem wasn’t related to configurations and so i asked them to execute one more command, and that is to install packages using yum.

To my surprise they reported that yum failed and they couldn’t even ping the machine from the host node. So just as i thought this problem was caused by something else and so i ask them to try to re-add my ip address, move to another ip temporarily, and all of them ended up in failure and thought that this is due to broken network scripts. Then they re-offered me whether i want to proceed with the backup plan mentioned before … and because i’m left with no other choice i choose yes. After the procedure completed I’m left with a freshly installed CentOS 7 and a tar backup file placed in the root directory.

Site redesign done but it feels like i broke something

It was many years ago since the last time i changed the site design; and whenever i changed something i often find problems that appear only after i’ve actually uploaded it into a live site. It was no different now. Everything seems to be running fine while testing locally and when i’ve uploaded it; there’s something broke either due to the restrictions i placed on the live server or due to i forgetting something. Often though i found something that maybe if i do this it’ll be better and i have to re-edit and such.

Additionaly, people would be happy when they received 0 spam (and so do i). But after doing some modifications here and there, it feels like i did something wrong when the spam counter is still at 0 during the last 2 days after it goes live when it usually reach hundreds within a day and now there’s 0 spam in the spam area.

Then what makes it worse is i just noticed now (or to be precise i finally care), long time ago i made a big mistake of using automatic tags generation for all my posts tags and now i’ve paid a big price for it by deleting all the tags, and then i’ve to proceed to add them manually although the later is still in progress because i’m also doing some cleaning on the other stuff as well.

I’m back and what a mess

It’s been a long time since the last time i write something, and what a mess this place is when i returned… a week ago or so. There are way too many spam that even the empty spam button couldn’t do anything about it so i have to use sql command directly just to clean it. Not to mention there are way too many spam that goes through Akismet too and ended up directly in the comment area.

According to Akismet, for last month (september) the amount of spam that got caught was at 125,966 while for this month as of writing this the number of spam is at 115,945. I’m simply stunned. If a small blog like this could get such a large amount of spam, how big would it be for larger blogs?. Must be really stressful.

Besides doing some cleaning, i have also made changes to many things here and there. I moved from my old hosting provider into a new budget vps that is cheaper and also enabled SSL although it is not on by default, which means you need to change the url into https by yourself first and then the rest of your visit would be in SSL (if anyone care).

Finally after i’ve finished setting up everything also making sure that the new server can stay up and running for several days without problem (and not getting kicked too), I then canceled my old hosting plan. And so here begins the new chapter of this blog.

I’ve been banned from Google Adsense

Usually i don’t want to write a post for something like this, but because this site is powered by Adsense to pay for its monthly bills since 2006 and i just got banned by Adsense, i’ve decided that perhaps it is for the best that i write about it just to let those that read this site knows about it and perhaps can learn something from this.

Basically here’s what i get from email message i received from Google and unfortunately there are no warnings given (not even a single warning even after all these years).


We continually review all publishers according to our program policies (https://www.google.com/support/adsense/bin/answer.py?answer=48182&stc=aspe-3pp-en) and Terms and Conditions (https://www.google.com/adsense/localized-terms?&stc=aspe-3tc-en ). During a recent review of your account, our specialists found that it was not in compliance with our policies.

How to block TOR exit nodes from accessing your website on Apache and Nginx

If you ever want to block TOR users from your accessing website completely or block them from accessing specific file(s) / location(s) only for any reasons you may have and you’re running Nginx or Apache, hopefully this post can help you with that.

First thing first, the command used here for both Apache and Nginx were designed to be use in cron because TOR ip often change. But make sure that it’s scheduled for 1 hour at minimum to respect those that gives you free service to lookup tor ip =)

Getting a list of TOR IP Addresses

Before anything else we need to get a list of TOR IP Address, and to do that we have two options (but of course feel free to use your own source if you have one):

  • Use TOR Bulk Exit List from Torproject
  • Use an external sites that list TOR IP Address such as from dan.me.uk

Note: dan.me.uk website only allow you to fetch it every 1 hour only (even if you accidentally clicked it), i choose to not link to the ip address url directly because of that reason and so you have to copy the url directly

How to remove index files from URL on Nginx

So yesterday while i was idling on Freenode i saw someone asking in Nginx channel that he basically wants to remove the index.php file from the url or in other words he wants to redirect http://www.mydomain.com/index.php into http://www.mydomain.com/ … probably for canonicalization purpose (canonical url) and/or perhaps SEO purpose. He had tried this:

# And it causes redirect loop (also tested on my local box)
# Atlhough it works fine for simple php files but not on his vBulletin setup
# or other non simple php file (because i don't have access to vBulletin i tested it on other script)
# Note the | is for illustration
location =|~ /index.php {
	rewrite ^ http://www.domain.com/|/ permanent;

And being curious, i tried some testing to remove that index.php thing from the URL and found a way to do it and it was simple. So if you’re currently looking for a way to remove or redirect your index file from the URL and you’re using Nginx perhaps this simple tips can help you with that

First thing first is open your nginx configuration files that hold your virtual hosts configuration and then add this line inside the server directive:

How to remap / retasking Realtek onboard jacks / ports

If you’re using Realtek onboard soundcard and for whatever reasons wants to remap / retask the rear jacks or front panel jacks to anything you want hopefully you’ll find this useful

For example, in my case, because i’m not using a computer case (in other words, i just left my motherboard open) and i don’t have a standalone front panel and at the same time i want to connect my headphone to the rear grey jack / side speakers jack (by default headphone can be connected only to the front panel jack) while also connecting a 5.1 analog speakers setup to the rear jacks (green, black, and orange)

Anyway to make thing short, here’s the steps:

0. Download the latest driver available because there are differences between the pin numbers used if you’re using old drivers, uninstall the old driver, restart your system, install the new driver and then restart your system once again (at the time i write this, the latest version is R267, and so this post is based and tested using their R267 driver for the 64-bit systems)

Create RSS feed from any web page using Yahoo Pipes

In this post, i’m going to write a simple explanation / basic example about using Yahoo Pipes to fetch a webpage (you are free to use any pages you want assuming they allow Yahoo Pipes) and then create a RSS Feed from it so you can read it on your favorite rss reader

As an example, in this post i’m going to give an example of creating RSS Feed from HorribleSubs website (horriblesubs.org) that i’ve been using (for myself only) so i can keep track on their Gintama release easily (i read that they’re planning on doing a total makeover of their site so i guess it’s okay to use them as an example)

Yahoo Pipes HorribleSubs RSS Output example using Fetch Page module

Before anything else, please see the source of the pipe used in this example (you need to log in to Yahoo first) because you’ll need to be logged in to Yahoo to see or create a new pipe

How to boot Clonezilla and GParted from HDD on Windows

I’m pretty sure most of you already know about Clonezilla and GParted, and the usefulness of those two tools. And if you’ve been wondering on how to run Clonezilla and GParted directly from your HDD (frugal install) instead booting from a CD or a USB Flashdisk on Windows, perhaps this simple guide can help you with that

Before we get started, i have to mention that there are two ways to run Clonezilla and GParted on Windows although they both use the same thing, the first one is by installing / adding Grub4DOS manually and the other one is by using EasyBCD a GUI to install NeoGRUB / packaged Grub4DOS. And in this post i’ll focus on the later and that is using NeoGRUB


  1. EasyBCD [download]
  2. Clonezilla Live [download]: You are free to choose between the ISO version or ZIP version. For me, i choose the AMD64-ISO version
  3. GParted Live [download]: Same goes here too, you are free to choose between ISO or ZIP
  4. 7-Zip / Winrar / etc: This is used to extract the file inside the ISO or ZIP

Boot Clonezilla and GParted with NeoGRUB / Grub4DOS

1. Install EasyBCD or Grub4DOS (instruction here if you prefer to use Grub4DOS rather than NeoGRUB), run and at the add new entry section choose NeoGRUB and install it