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.

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).

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).

Hello,

How to block TOR users from accessing your site 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 AddressesBefore 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):

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:

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

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

Prerequisite

  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 / Grub4DOS1. 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