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 —-> http://tokoirwan.blogspot.com/. 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 —> http://f-lexible.blogspot.com/, kali ini dengan nama Fahmi Hidayat.

Hasil pencarian di google images membawa gw ke penemuan yang mengagetkan, sepertinya foto tersebut aslinya ada di –> http://www.pwc.com/id/en/about-us/thought-leaders.jhtml, 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.

(H)

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

Google+

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="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" 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"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="31" splitType="Stretch">
			<staticText>
				<reportElement x="235" y="0" width="100" height="31"/>
				<textElement>
					<font size="24"/>
				</textElement>
				<text><![CDATA[Judul Saya]]></text>
			</staticText>
		</band>
	</title>
	<pageHeader>
		<band height="35" splitType="Stretch"/>
	</pageHeader>
	<columnHeader>
		<band height="22" splitType="Stretch">
			<staticText>
				<reportElement x="0" y="2" width="100" height="20"/>
				<textElement/>
				<text><![CDATA[name]]></text>
			</staticText>
			<staticText>
				<reportElement x="200" y="2" width="100" height="20"/>
				<textElement/>
				<text><![CDATA[address]]></text>
			</staticText>
		</band>
	</columnHeader>
	<detail>
		<band height="20" splitType="Stretch">
			<textField>
				<reportElement x="0" y="0" width="200" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$F{name}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="200" y="0" width="221" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$F{address}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band height="13" splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band height="14" splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band height="8" splitType="Stretch"/>
	</summary>
</jasperReport>

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.io.BufferedInputStream;
import java.io.FileInputStream;
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.data.JRMapCollectionDataSource;
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());
                maps.add(map);
            }            
            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();
        main.start();
    }
}

And some screenshots from my project,

Have fun with Jasper Report ;)

Google+

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.

-hpmmhgx3

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

Google+

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

Google+