Archive for the ‘’ Category

Amazing Ghost++ Warcraft 3 Game Hosting Bot

Tuesday, January 26th, 2010

GHost++ is a Warcraft 3 game hosting bot. Some features include:

  • run on Windows, Linux, and OS X
  • host Reign of Chaos or The Frozen Throne games
  • connect to official and PVPGN realms
  • and much more…

Remove annoying beep on ubuntu 9.10

Tuesday, January 26th, 2010

sudo su
rmmod pcspkr
echo blacklist pcspkr >> /etc/modprobe.d/blacklist.conf

opendns for your DNS

Monday, October 26th, 2009

OpenDNS home

Edit your /etc/resolv.conf


OpenDNS is the world’s leading provider of Internet navigation and security. Make your network safer,  faster,  smarter and more reliable without the cost and complexity of traditional security services.  Some feature is SmartCache.

OpenDNS’s proprietary DNS caching technology finds and locates the last known good IP address for Web sites that are experiencing difficulty, making Web sites that are down for the rest of the Internet load for OpenDNS users.

For more detail see

Gelar S.Inf

Saturday, May 9th, 2009


Lulusan program studi mendapat gelar kesarjanaan strata satu (S-1) dengan sebutan Sarjana Informatika (S. Inf.).

El Dorado

Saturday, May 9th, 2009


Anak kecil, remaja dan orang dewasa bercampur lebur menikmati taman air yang di desain menyambung serta memiliki pemandangan seperti di Kerajaan Fir’Aun Mesir. Ada Pyramid, goa-goa, air mancur, papan seluncur, Aquatube serta The Dome.

Untuk harga tiket masuk Rp20.000 per orang kecuali Sabtu – Minggu Rp25.000 per orang untuk semua umur kecuali batita. (Selasa, 27 November 2007 13:58.57 WIB)

PHP: Get Country By Geo IP

Friday, July 18th, 2008

To use it, you’ll have to first download the GeoIP Free Country file and extract it into a directory in your Web server. Then you’ll have to pick which language API to use with the database file. For simplicity, we’re going to use the pure PHP version because it doesn’t require any additional configuration or Apache modules. Remember to read the license terms before installing these on your Web site to ensure you are in compliance.

The code in Listing A demonstrates the basics of using the module ( to access the GeoIP Free Country database (GeoIP.dat). The example assumes both the PHP include and the country database file are in the same directory as the PHP file itself. You’ll have to change the paths as needed if this is not the case in your installation.

The sample code is pretty straightforward. After including the GeoIP PHP function library, the first step is to open the GeoIP database file with the geoip_open() function. This function accepts two arguments: the path to the database file and the type of database.

We then use the handle returned by the call to geoip_open() to obtain the two-letter country code and human-friendly name corresponding to the given IP address, via the geoip_country_code_by_addr() and geoip_country_code_by_name() functions, respectively. Both functions accept two arguments: the handle returned by geoip_open() and the IP address to resolve.

Once the required information is obtained, we close the database file with a call to geoip_close(). Simple as that.

Wget using Cookies Firefox3

Wednesday, July 16th, 2008

Firefox 3 does not use cookies.txt but rather cookies.sqlite.
Solution: Uses a python script to extract the data from cookies.sqlite.


import sqlite3 as db
import sys

cookiedb = '/home/USENAME/.mozilla/firefox/PROFIL/cookies.sqlite'
targetfile = '/home/USERNAME/cookies.txt'
what = sys.argv[1]
connection = db.connect(cookiedb)
cursor = connection.cursor()
contents = "host, path, isSecure, expiry, name, value"

cursor.execute("SELECT " +contents+ " FROM moz_cookies WHERE host LIKE '%"
               +what+ "%'")

file = open(targetfile, 'w')
index = 0
for row in cursor.fetchall():
  file.write("%s\tTRUE\t%s\t%s\t%d\t%s\t%s\n" % (row[0], row[1],
             str(bool(row[2])).upper(), row[3], str(row[4]), str(row[5])))
  index += 1

print "Gesucht nach: %s" % what
print "Exportiert: %d" % index


phpBB3 Coding Guidelines

Monday, July 7th, 2008

4. Templating
File naming
Including files
Conditionals/Control structures
Extended syntax for Blocks/Loops

ZTE-MF622 and Indosat M2

Monday, July 7th, 2008

$ vi 15-zte-mf622.rules

ACTION!=”add”, GOTO=”ZTE_End”

# Is this the ZeroCD device?
SUBSYSTEM==”usb”, SYSFS{idProduct}==”2000″,
SYSFS{idVendor}==”19d2″, GOTO=”ZTE_ZeroCD”

# Is this the actual modem?
SUBSYSTEM==”usb”, SYSFS{idProduct}==”0001″,
SYSFS{idVendor}==”19d2″, GOTO=”ZTE_Modem”

# This is the ZeroCD part of the card, remove
# the usb_storage kernel module so
# it does not get treated like a storage device
RUN+=”/sbin/rmmod usb_storage”

# This is the Modem part of the card, let’s
# load usbserial with the correct vendor
# and product ID’s so we get our usb serial devices
RUN+=”/sbin/modprobe usbserial vendor=0×19d2 product=0×0001″,
# Make users belonging to the dialout group
# able to use the usb serial devices.
MODE=”660″, GROUP=”dialout”


simpan file tersebut di dalam direktori /etc/udev/rules.d

$ vi /etc/wvdial.conf :

[Dialer Defaults]
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init5 = AT+CGDCONT=1,”IP”,”indosatm2″
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
Modem = /dev/ttyUSB0
Username = user
Password = pass
Dial Command = ATDT
Baud = 460800

Wordpress: add_action

Friday, July 4th, 2008

Hooks a function on to a specific action. See Plugin API for a list of hooks for action.

To email some friends whenever an entry is posted on your blog:
function email_friends($post_ID) {
$friends = ‘,’;
mail($friends, “sally’s blog updated” , ‘I just put something on my blog:’);
return $post_ID;
add_action(’publish_post’, ‘email_friends’);


(string) The name of the action you wish to hook onto.

(callback) The name of the function you wish to be called. Note: any of the syntaxes explained in the PHP documentation for the ‘callback’ type are valid.

How important your function is. Alter this to make your function be called before or after other functions. The default is 10, so (for example) setting it to 5 would make it run earlier and setting it to 12 would make it run later.

How many arguments your function takes. In WordPress 1.5.1+, hooked functions can take extra arguments that are set when the matching do_action() or apply_filters() call is run. For example, the action comment_id_not_found will pass any functions that hook onto it the ID of the requested comment.