08.58 | Posted in

J2ME

Kita sudah kenalan dengan J2ME.

Kita juga sudah melengkapi diri dengan tools pengembangan J2ME.

Sekarang kita siap untuk memb

uat aplikasi J2ME yang dikenal dengan nama MIDlet

Berikut adalah source code untuk :HelloMIDlet. (Untuk catatan, saya menggunakan Eclipse untuk seluruh pengembangan aplikasi)

import javax.microedition.midlet.*;

import javax.microedition.lcdui.*; public class HelloMIDlet extends MIDlet { public HelloMIDlet() { }

protected void destroyApp(boolean arg0) { } protected void pauseApp() { } protected void startApp() {

TextBox teks = new TextBox("Kulunuwun", "Monggo", 256, TextField.ANY ); Display display = Display.getDisplay(this); display.setCurrent(teks); }

}

Category:
��
08.37 | Posted in

J2ME Polish adalah tools pengembangan program J2ME yang menggabungkan kemudahan CSS dan J2ME. Dengan J2ME Polish kita nggak perlu bikin look and feel sendiri untuk MIDlet kita. Kita bisa pake background untuk Form, List dll tanpa coding yang susah-susah amat. Terus kita juga bisa pake background di tiap halaman dalam aplikasi itu. Yang penting ngerti tentang CSS.

Instalasi J2ME Polish sebagai plugin Eclipse cukup mudah. Tetapi Anda juga bisa mendownload file instalasi J2ME Polish di website ini.Ekstensi filenya adalah .jar, jadi bisa langsung dijalanin kalo udah punya JDK atau runtime. Syarat J2ME Polish adalah: 1. JDK, saran: 1.6 2. IDE, saran: Eclipse dan plugins EclipseME atau EasyEclipse Mobile 3. J2ME WTK, saran versi 2.5.1 4. Obfuscator

Kalo keempat software itu udah punya, instalasinya mudah. Cukup klik dua kali file yang udah didownload tersebut, terus diisi dengan setting yang benar, beres.

Setelah instal Polish, jalankan eclipse dengan perintah eclipse -clean. Berikutnya, Anda sudah bisa membuat program J2ME Polish melalui project Java > J2ME Polish Project. Tutorial lengkapnya menyusul ya. :-) ni aja cari artikel di gudang internet

Category:
��
00.21 | Posted in
Misal 125.126.127.128 IP Publik dari ISP dan lokal 192.168.1.0/24 => ether1 ke ISP => ether2 ke lokal #Setting IP [rizal@Mikrotik]>ip address add address=125.126.127.128/27 interface=ether1 [rizal@Mikrotik]>ip address add address=192.168.1.0/24 interface=ether2 #Setting Gateway (menuju ISP) [rizal@Mikrotik]>ip route add gateway=20.30.40.50 #setting DNS [rizal@Mikrotik]>ip dns set primary-dns=20.30.40.50 allow-remote-requests=yes [rizal@Mikrotik]>ip dns set secondary-dns=21.31.41.51 allow-remote-requests=yes #NAT (untuk forward lokal ke public) [rizal@Mikrotik]>ip firewall nat add chain=srcnat action=masquerade out-interface=ether1 # Setting DHCP [rizal@Mikrotik]>ip dhcp-server network add address=192.168.1.0/24 gateway=192.168.1.1 dns-server=20.30.40.50,21.31.41.51 #Distribusikan DHCP [rizal@Mikrotik]>ip pool add name=dhcp-pool ranges=192.168.1.100-192.168.1.254 #Tambahkan DHCP server [rizal@Mikrotik]>ip dhcp-server add name=zamrud disabled=no interface=ether2 address-pool=dhcp-pool #Set Hotspot [rizal@Mikrotik] > ip hotspot setup hotspot interface: ether2 local address of network: 192.168.1.1/24 masquerade network: yes address pool of network: 192.168.1.100-192.168.1.254 select certificate: none ip address of smtp server: 0.0.0.0 dns servers: 20.30.40.50,21.31.41.51 #Dengan Winbox IP hotspot kemudian pada tabulasi servers click setup hotspot interface: ether2 local address of network: 192.168.1.1/24 masquerade network: yes address pool of network: 192.168.1.100-192.168.1.254 select certificate: none ip address of smtp server: 0.0.0.0 dns servers: 20.30.40.50,21.31.41.51 #Create user click tabulasi users trus click tanda plus…. kemudian isikan sesuai akses yg akan diberikan ke user hotspot profile akan terbentuk secara default pada saat create hotspot server,edit sesuai kebutuhan #Edit Login Hotspot Masuk FTP Hotspot Server dan ubah sesuai keperluan file HTML di folder hotspot
Category:
��