March 2012 Posts

Waspada Penipuan Lewat SMS yang Menawarkan Pulsa atau Handphone Murah

Akhir-akhir ini banyak sms spam (baca : sms sampah) yang masuk ke HP gw. Yang terbaru adalah sms spam yang menawarkan Blackberry, pulsa dan HP dengan harga miring serta menyediakan website (toko online) sebagai sarana display barang.

karena kebetulan gw lagi ga ada kerjaan, iseng-iseng gw akses web yang direferensikan oleh sms tersebut. Dalam hal ini adalah —-> Berikut screenshot dari web tersebut :

Perhatikan foto disebelah kanan bawah, foto dari (katanya) Irwan Razid, sang pemilik toko. Foto tersebut kayaknya kok familiar yah, mungkin karena itu foto yang sama dengan di web ini —>, kali ini dengan nama Fahmi Hidayat.

Hasil pencarian di google images membawa gw ke penemuan yang mengagetkan, sepertinya foto tersebut aslinya ada di –>, namun sangat sering dipajang di Blogspot, terutama untuk web-web online shop. Nah aneh kan hahahaa :D

Pesan moralnya, untuk pembeli : hati-hati jika membeli barang secara online, pastikan dahulu kualitas online shopnya dan jangan membeli sembarangan.
untuk penjual : coba tampilan webnya dibuat sedikit lebih bonafid lah, sewa domain atau hosting jadi ga perlu nebeng ke hosting gratisan. Pasang foto diri sendiri, klo ga pede ma muka, mending ga usah pasang foto sama sekali. Bisa dituntut loe kalo pakek foto orang sembarangan tanpa izin.


buat pemilik, stop kirim sms spam lah. Annoying banget sms dari loe (N)


A Simple Java Desktop JasperReport Example

Hi, im currently testing the latest version of iReport, iReport 4.5.1. For the test, im trying to create a very simple reporting, consist of 2 column and without database connection. Im using a simple Array of Maps to fill my jasper report’s data using the JRMapCollectionDataSource class.

Here is my report example,

<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="" xmlns:xsi="" xsi:schemaLocation="" name="report" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
	<property name="ireport.zoom" value="1.0"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<field name="name" class="java.lang.String"/>
	<field name="address" class="java.lang.String"/>
		<band splitType="Stretch"/>
		<band height="31" splitType="Stretch">
				<reportElement x="235" y="0" width="100" height="31"/>
					<font size="24"/>
				<text><![CDATA[Judul Saya]]></text>
		<band height="35" splitType="Stretch"/>
		<band height="22" splitType="Stretch">
				<reportElement x="0" y="2" width="100" height="20"/>
				<reportElement x="200" y="2" width="100" height="20"/>
		<band height="20" splitType="Stretch">
				<reportElement x="0" y="0" width="200" height="20"/>
				<reportElement x="200" y="0" width="221" height="20"/>
		<band height="13" splitType="Stretch"/>
		<band height="14" splitType="Stretch"/>
		<band height="8" splitType="Stretch"/>

Dont forget to compile it, and this is my java code to call my report. It call for .jasper file instead of .jrxml files.

package com.edw.main;

import java.util.ArrayList;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;

import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReport;
import net.sf.jasperreports.engine.util.JRLoader;
import net.sf.jasperreports.view.JasperViewer;
import org.apache.log4j.Logger;

public class Main {

    private Logger logger = Logger.getLogger(Main.class);

    public Main() {

    private void start() {
        try {                                            
            // load report location
            FileInputStream fis = new FileInputStream("report.jasper");
            BufferedInputStream bufferedInputStream = new BufferedInputStream(fis);

            // fill report
            List<Map<String,?>> maps = new ArrayList<Map<String, ?>> (); 
            for (int i = 0; i < 10; i++) {
                Map<String,Object> map = new HashMap<String, Object>();
                map.put("name", getRandomString());
                map.put("address", getRandomString());
            JRMapCollectionDataSource dataSource = new JRMapCollectionDataSource(maps);
            // compile report
            JasperReport jasperReport = (JasperReport) JRLoader.loadObject(bufferedInputStream);
            JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, new HashMap(), dataSource);

            // view report to UI
            JasperViewer.viewReport(jasperPrint, false);

        } catch (Exception e) {
            logger.error(e, e);
    private String getRandomString(){
        return UUID.randomUUID().toString();

    public static void main(String[] args) {
        Main main = new Main();

And some screenshots from my project,

Have fun with Jasper Report ;)


Legion TD Game Modes

Recently there are alot of Legion TD games created at Battle Net, but some of the server doesnt even know what is the basic game modes for this game. Thats why im trying to share my favorite gamemodes.


-hp : Host Pick – host pick a race, every given same race as host.
-mm : Master Mind – Restricted vision on enemy’s map and information.
-hg : Hour Glass – Receive gold for enemy leaks (that reach the King).
-x3 : 3 Time – more creeps spawn.

if you want, you could replace -hp with one of these two,
-ar : All Random – All players are given a random race.
-sd : Single Draft – All players are given 2 random races to choose.

Please enter mode in 15 seconds after game start. I hope it helps and btw, my map is Legion TD Mega 3.43.
Enjoy :)


My 6 Days in Phuket

On last February, i spent almost 1 week at Phuket, Thailand. It’s been a wonderful Sea-Sand-and-Sun experience, very recommended for those who enjoy beaches very much. But Phuket is more than just beaches, so many activities and places to visit in this remarkable island.

Let me start with my guide on my 6 days visit to Phuket and how much i spent for each accomodation.

On the first day, i landed and straight went to a 3 star hotel. Which cost me around 1000 baht per night. If you want a much more cheaper rate, you could try a guest house which cost you around 300 bath per night. Luckily my hotel located very near from Patong Beach’s Bangla Road which is famous for its night life.

On the second day, i took a trip to the famous Phi-Phi Island. The Phi-Phi island tour has 2 packages, the Speedboat and the Bigboat packages. The Speedboat is more expensive but cover more islands than Bigboats. I paid around 1100 baht per person for Phi-Phi tour using Bigboats. If you are lucky you could get a much cheaper price by searching for tour packages located outside your guesthouse. Phi-Phi island offer a snorkeling experience surrounded by beautiful islands.

On the third day, i went for a city tour which cost me around 2400 baht per car for 9 hours. I went to wonderful Karon Beach, visit Phuket Aquarium (100 baht per person), visit the Big Buddha, visit Kata View Point and did some culinary hunting (delicious Tom Yum soup).

On the forth day, i took a trip to James Bond Island. The island is famous because the 1974 Bond film “The Man with the Golden Gun” was filmed there. The island is located within the Ao Phang Nga National Park, the place is beautiful and the entire surrounding area is spectacular. The package price in the brochure is around 2900 baht each person, but you can bargain until 1/3 price in low season. I was lucky to got 1500 baht per person despite on high season. James Bond island offer a canoeing or kayaking experience around lots of beautiful islands.

On the fifth day, i rented a “Tuk-Tuk” (traditional thai transportation) for around 800 baht a day and did a Phuket Shopping tour. So i went to Jungceylon Shopping Mall, Phuket Pearl Factory, Phuket Silver Jewelry, went to Butterfly Garden (300 baht per person), Pornthip Store, Phuthai Souvenir Market. On the night, i went to see a Thai Boxing match, it cost me around 1000 baht per person.

On my last day, i spent on beach sightseeing for a while and straight went to airport.

So the conclusion is : if you enjoy beaches so much just like me, Phuket is like a heaven on earth. And if I am offered the second chance to visit Phuket again, I won’t hesitate for a moment.

Here are some pictures i took there,

bangla road performer
bangla road performer, you need to pay 100 baht to take picture with them.

tuk tuk
Tuk-tuk, traditional Thai vehicle.

James Bond island.

Big Buddha Phuket.

Just some random scenery photos