Subnet calculator

I’ve had trouble with some clients abusing sites in the past.  There are many ways to address this type of problem such as Captcha, and other rate control mechanisms.  When all else has failed, I’ll typically enforce an IP tables rule that will simply block an address range of IP addresses at the network interface on my server.  Often simply blocking a single IP address will not prevent the abuse for long, and I usually have to resort to blocking an entire range.  Subnet calculations are not terribly difficult but here is a link to a tool that will help you compute the subnet mask for a range of IP addresses quickly and easily that i like to use.

Remove URL field from WordPress comments

I got tired of people spamming my site with tools like scrapebox and similar programs.  In a small effort to thwart some of the spam, I’ve removed the comment url field from my blogs in wordpress.  Here is how you can do it

From your root html directory edit the file named wp-includes/comment-template.php

Find the section that looks like this and comment out the two lines in red below as shown.

Magicjack Windows 8 on Linux

I recently worked out how to run MagicJack working on my Centos box.  It’s really easy, here is what you need to do.

1) Install VirtualBox.  If you use yum try running yum install VirtualBox-4.2.x86_64

Alternatively just do a yum search for VirtualBox and get the latest version for your system

2) Install Windows 8.  Through the beginning of 2013 MS is offering the beta of Windows 8 for download (link removed, but you can find it via google).

3) Launch virtual box and set it up for windows 8.  I’m not going to cover the details here, there are plenty of instructions on this if you search for them.  Here is the guide I followed for CentOS 6.x (link removed)

Note: You’ll need to make sure you enable USB support correctly in VirtualBox

4) When you launch VirtualBox you’ll see the VirtualBox Manager.  Select the Windows 8 image and then click the settings button.  On the USB menu make sure “Enable USB Controller” is clicked, then select the + button on the right side and you should see something like “TigerJet Network, Inc. USB Internet Phone by TigerJet”  If you see it you’re almost done.

5) Actually boot the Windows8 virtual box image so you’re now looking at Windows.  You many need to go to the windows explorer and manually launch the autorun.exe file for MagicJack.  You should immediately see it start downloading the MJ software.

6) Finally, when MJ software is done, if you pick up the handset and don’t hear a dialtone, make sure you adjust the volume control.  It took me a minute to realize this and for a moment I thought there was something wrong…it was just the windows volume control for MJ was turned down.


Galaxy Mini 2 Remove bloatware unwanted apps

1) Make sure you have root access on your phone –

2) Get to root console via adb and mount the system folder as read / write

# adb shell

# su

# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

3) cd to the /system/apps folder

4) Here is a list of bloatware apps and their corresponding apk file names for the stock Samsung Galaxy 2 image

  • AllShare – Dlna.apk
  • News & Weather – GenieWidget.apk
  • Think Free Office – thinkdroid.apk
  • FM Radio – FmRadio.apk
  • YouTube – YouTube.apk
  • Voice Recorder – VoiceRecorder.apk
  • Keis – KeisAir.apk and Keis.apk
Here is another good resource to help you with figuring out what’s what and if it’s safe to remove or not: