Kamis, 05 Februari 2015

HOW TO - Monitoring IDempiere Server using VisualVM

if you run idempiere locally, you can monitor using VisualVM directly without do anything with the IDempiere configuration. your IDempiere service will be displayed on Local tree.

but if you wanna remote IDempiere Server, you have to configure IDempiere to run JMX when start server. edit file $IDEMPIERE_HOME\idempiere-server.sh and find line "-Dorg.osgi.framework.bootdelegation=true"
and change to :
-Dorg.osgi.framework.bootdelegation=org.netbeans.lib.profiler,org.netbeans.lib.profiler.* -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8070 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
make sure u write it in one line. you can change jmx port, my default port is 8070. start your IDempiere server and make sure u opened the port. open your visualVM. click menu bar "File"->"Add JMX Connection".
type the IP and the port for JMX connection of your IDempiere server.
klik ok and wait till the connection established. if failed, check your firewall. if you can make sure your connection is safe, you can turn off firewall temporarly. if success, you will get the information of your IDempiere Server.

Senin, 29 Desember 2014

IDEMPIERE - org.zkoss.zk.ui.UiException: Widget class required for with default

i'm using idempiere 2.1 when i faced this problem. i tried to login and this error appeared.

org.zkoss.zk.ui.UiException: Widget class required for <Keylistener xxxxxx>

maybe the keylistener is different but the error is same. i search the problem solution and discussed on idempiere forum. here is the solution :

(11:46:06) JanThielemann: hi
(11:46:24) JanThielemann: the only solution i had to fix this problem was to refresh the zkoss bundle via the osgi console
(11:46:34) JanThielemann: (either via command line or via felix web console)
(11:49:22) andrew_IT2: Now I try .... thanks! :)
(11:50:56) andrew_IT2: It works! Thank you very much

you need to open felix console from your server and search "zkoss" library. click the refresh icon on actions column second icon from left. wait till process completed and try to login.

your problem was solved now. ^^

Jumat, 19 Desember 2014

Equal Width Row for Table Layout Android

i used table layout with 2 row. when i compile and run on emulator. the row doesnt have same width. so i try to find how to solve this problem.

to solves this problem, open your layout and edit the TableLayout. set width to "fill_parent" and add a configuration :

android:stretchColumns="*" >

and on your row set the width to 0dp



and voila, your row will have same width and balance. enjoy

Kamis, 18 Desember 2014

Add image node to RSS Feed 2 Wordpress

Hi, lets go to the point.

i search and find a good answer for my question to add image node on rss feed wordpress.

first, you have to access your web directory and go to your active wordpress theme folder. find file named "functions.php" and add to first line after "<?php"

add_action(‘rss2_item’, ‘add_my_rss_node’);
function add_my_rss_node() {
global $post;
$thumbnail = wp_get_attachment_url(get_post_thumbnail_id($post->ID));
 this code will add node named "thumbnail" that you can parse and get the image that attached to your blog post.

*reference from here with modification

Selasa, 16 Desember 2014

Stegandroid : Aplikasi memasukkan Pesan kedalam Gambar di Android

Stegandroid adalah sebuah proyek implementasi dari sebuah proses stenografi yang artinya adalah penanaman pesan kedalam sebuah gambar. stenografi sudah banyak diimplementasikan menggunakan berbagai bahasa pemrograman namun sejauh yang saya cari belum ada yang mencoba menerapkannya di Android.

Teknik Stenografi memiliki berbagai macam cara. yang paling sederhana adalah penyisipan bit didalam data file gambar dengan menempatkan sebuah flag / tanda khusus untuk menunjukkan batasan data dimana pesan tersebut tersembunyi.

Terdapat dua proses di Stegandroid yaitu proses Encode dan Decode. Encode yaitu proses memasukkan pesan ke dalam gambar. pesan yang bisa dimasukkan hanya berupa plain teks. pengembangan selanjutnya mungkin bisa menambahkan variasi pesan yang dimasukkan seperti gambar didalam gambar atau suara didalam gambar. proses kedua adalah Decode. yaitu proses mengekstrak atau mengeluarkan pesan yang tersembunyi didalam gambar yang telah tersimpan pesan kemudian ditampilkan kepada pengguna.

berikut screenshot aplikasi Stegandroid :
tampilan awal

Memilih gambar yang akan disisipi pesan

memasukkan pesan ke gambar yang terpilih
pesan berhasil disisipkan
Proses decode gambar
pesan yang tersembunyi di dalam gambar