04.13.08

wxdownloadfast yang aneh

Ditulis dalam Java, Linux, komputer tagged , pada 5:59 am oleh fuad

FlashGet, software untuk unduh file dengan kemampuan multithread, karena tidak dibuat versi Linuxnya
terpaksa cari alternatif lain. Akhirnya ketemu wxdownloadfast. Kemampuannya hampir sama dengan
FlashGet bahkan si wxdownloadfast ini bisa sampai 100 thread (hebat). Cuma ada satu kekurangan
yang sangat fatal SERING CRASH TANPA SEBAB.

Untuk mengakali akhirnya saya buat program java sederhana yang mengecek tiap 10 ms apakah wxdownloadfast ini jalan atau tidak, jika sudah tidak berjalan (CRASH) maka wxdownloadfast akan dijalankan lagi. Berikut code java nya

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/


package wxdownloadfast;

import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
*
* @author fuad
*/
public class Main {

/**
* @param args the command line arguments
*/
public static void main(String[] args) throws IOException {
Runtime r = Runtime.getRuntime();
Process p = r.exec("wxdfast");
while(true){
try{
p.exitValue();
p = r.exec("wxdfast");
}catch(Exception e){

}
try {
Thread.sleep(10);
} catch (InterruptedException ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
}
}

}

Kodenya saya lisensikan creative common silahkan digunakan jika berguna. Oh iya jika ada masukan mengenai kode yang lebih efisien tolong saya diberitahu.

02.26.08

Google Summer Of Code 2008 dimulai

Ditulis dalam Java, komputer, php tagged , , , pada 12:33 am oleh fuad

http://blog.scholarscamp.com/google-summer-of-code-2008-dimulai/

 

Pagi tadi iseng-iseng buka email, ternyata ada pengumuman dari groups Eclipse, kalau Google Summer Of Code 2008 sudah dimulai. Ku cek ternyata betul. Jadi teringat musim panas tahun lalu. Sekadar mo sharing aja mudah-mudahan bermanfaat untuk yang lain.

Sewaktu GSOC 2007 mulai (kebetulan beban kuliah sudah selesai (tinggal revisi), jadi dengan tanpa beban bisa ikut program ini. Berhubung wisuda ku Mei 2007 dan kebutuhan minimal GSOC 2007 harus paling tidak terdaftar sebagai “student” pada Mei 2007 artinya saya masih masuh dalam hitungan (bersyukur juga TA dan revisi tidak berjalan terlalu lancar, ternyata ada hikmahnya Subhanallah:)).

Total ada 8 proyek yang kumasukkan, repot juga bikinnya tapi aku pikir sepadan lah dengan hasil akhirnya nanti. Kapan lagi bisa dapat $4500 (bisa buat startup company), kaos, stiker, buku, sertifikat resmi Google, dan kesempatan jadi developer Open Source.. Dari delapan proposal tidak semua teknologinya sudah kukuasai waktu itu kupikir yang penting idenya dulu masalah lain belakangan. Alhamdulillah proposal ke Joomla diterima, yang bikin terkejut proposal yang masuk, bukan proposal andalan ku apalagi saya sama sekali belum tahu cara buat plugin Eclipse, lebih-lebih Joomla baru sebatas install. Bulan pertama bisa dibilang bulan yang paling berat selain harus belajar Joomla dan Eclipse, juga harus belajar bahasa inggris, maklum bahasa inggris ku pas-pasan, dan belajar subversion dan tracker. Alhamdulillah ALLAH SWT memudahkan proyek berhasil.

Tahun lalu ada 4 orang indonesia yang masuk Google Summer Of Code. dan semuanya berhasil. Saya berharap tahun ini akan semakin banyak yang ikut. Belum tahu/belum belajar bahasa/framework/teknologinya tidak apa-apa yang penting mau belajar, bahasa inggris tidak lancar tidak apa-apa yang penting bisa koding, talk is cheap show me your code, the code is the documentation , code is hacker’s language.

Yang ingin berdiskusi seputar Google Summer Of Code, proposal, ide, atau pertanyaan lain. silahkan berkomentar pada http://scholarscamp.com/out/Google_Code_-_Summer_of_Code___-___Google_Summer_of_Code-1

Want to write open source code?

Want to make money?

Want to do both?

 

In 2007 alone, Google Summer of CodeTM brought together 900 students and nearly 1500 mentors across 90 countries to contribute to over 130 different open source software projects. We’re looking for mentors and students to join us in making 2008 the best Summer of Code yet! We’ll be offering successful student contributors a 4500 USD stipend, enabling them to focus on their coding projects for three months.

 

The Google Summer of Code program is designed to encourage student participation in open source development. Kicking off in 2005, the program has several goals:

 

  • Inspire young developers to begin participating in open source development

  • Provide students in Computer Science and related fields the opportunity to do work related to their academic pursuits during the summer

  • Give students more exposure to real-world software development scenarios (e.g., distributed development, software licensing questions, mailing-list etiquette, etc.)

  • Get more open source code created and released for the benefit of all

  • Help open source projects identify and bring in new developers and committers

 

Google will accept applications from open source projects from 3 – 12 March 2008. Student applications will be accepted from 24 – 31 March.

 

Full details on requirements for participating, including how to apply and more on the all-important t-shirt at

08.20.07

Terjemahan How To Think Like Computer Scientist Java version (versi beta)

Ditulis dalam Java, komputer pada 3:17 am oleh fuad

Buku karangan Allen Downey ini salah satu buku Java terbaik yang ada, walaupun sudah tidak terlalu up to date dengan semakin banyaknya fitur fitur baru Bahasa Java. Untuk para pemula yang baru belajar Java dan untuk orang yang baru belajar pemrograman, buku ini cukup bagus karena menjelaskan secara detail dan unik tentang dasar pemrograman dan dasar pemrograman berorientasi objek dengan Java.

Terjemahan ini berlisensi GNU FDL (Free Documentation License) yang mengakibatkan seluruh turunan (modifikasi) nya harus dilisensikan FDL juga.

Kritik dan Saran bisa melalui salah satu email penerjemah

Penerjemah

Wim Permana (wimkhan@yahoo.com)

Muhammad Fuad (fuad1986@gmail.com)

Agus Juliardi

Penulis Jawaban Latihan

Muhammad Fuad (fuad1986@gmail.com)

Download Buku

Download Paket deb

Catatan : Saat ini terjemahan buku masih belum versi final.

JEclipse Google Summer Of Code Version

Ditulis dalam Java, komputer pada 3:07 am oleh fuad

Since Google Summer Of Code end on 20th August. All students should stops their work. Alhamdulillah i can finish my work on time. Here my latest work. For binary of my plugin download it here

For the source code, if you like check out from svn go here http://joomlacode.org/gf/project/soc2007/scmsvn/ ,

I also provide archive for my latest source here

This plugin require some dependecy like phpeclipse, org.mozilla.xpcom, dan xulrunner for detail instruction how to download read it here http://www.kleq.web.ugm.ac.id/images/joomlaeclipse/userguide.pdf

08.06.07

Dua Bulan bersama Google Summer Of Code

Ditulis dalam Java, komputer pada 11:12 am oleh fuad

Tidak terasa dua bulan sudah saya menjalani Google Summer Of Code . Progress program nya sih alhamdulillah memenuhi target. Sekarang plugin JoomlaEclipse yang saya buat sudah mendukung pengembangan modul, pengembangan komponen, dan WYSIWYG Editor.

Untuk fitur pengembangan modul joomla selain  wizard, code assistant, dan testing dengan menampilkan modul pada browser (lihat postingan saya sebelumnya), saya menambahkan menu untuk mengekspor modul ke file terkompress(*.zip) yang siap untuk diinstall pada Joomla!. Untuk fitur testing, login akan otomatis dilakukan pada pengguna admin. Hal ini dilakukan untuk mengantisipasi adanya data yang hanya terlihat ketika pengguna telah login. Pada pengembangan modul (wizard project) Joomla, plugin tidak membedakan antara site modul dan administrator modul. Hal yang membedakan adalah ketika melakukan testing (run), dimana pengguna bisa memilih akan menjalankan modul ini sebagai site module atau administrator modul. Saat menjalankan modul pada mode site module. Modul akan otomatis ditempatkan pada bagian kiri Joomla!. Sedang jika melakukan pengetesan administrator modul, modul akan otomatis ditempatkan pada cpanel.

Untuk pengembangan komponen plugin JEclipse memiliki fitur wizard, code assistant, run (testing pada browser), auto generate file deskriptor komponen, menu ekspor ke file terkompresi (*.zip), wizard untuk file model, controller, dan view.

WYSIWYG Editor merupakan editor file html yang mirip dengan editor pada DreamWeaver, atau editor konten pada cms WordPress. Saya menggunakan kata mirip karena editor ini tentu saja memiliki fitur yang kalah jauh.

Rencana saya selanjutnya adalah memperbaiki code assistant dan builder proyek. Saya memiliki cita-cita J!Code dan plugin yang saya buat bisa menambah produktivitas pengembang Joomla! (insyaallah)

NB: Saat ini belum ada file yang dirilis baru repository svn pada http://joomlacode.org/gf/project/soc2007/scmsvn/

06.13.07

Joomla Auto Login

Ditulis dalam Java, komputer, php pada 7:06 am oleh fuad

Sebenarnya bagaimana sih cara buat joomla otomatis login?????. Sudah hampir tiga minggu hal ini tidak bisa kupecahkan. Memang ada beberapa solusi tapi semuanya kurang berhasil alias ada kondisi tertentu dimana autologin tidak berjalan.

Hal pertama yang kucoba adalah tabel database session nya Joomla kuubah manual. Prinsipnya setelah user login maka semua field yanng ada di tabel session akan diupdate nilai nya. Kesulitannya Joomla memiliki field data yang itu merupakan data-data variabel session dengan format yang tidak manusiawi. Dengan sedikit coba-coba ternyata solusi ini berhasil. Cuma kelemahannya bagaimana cara mengupdate browser yang telah dibuka oleh user?????. Nah disini pikiran ku Ubuntu.

Akhirnya kucari jalan lain saja. Solusi yang terpikir saat itu adalah dengan mengirim secara manual pesan ke http server. Dengan mengirim data ke port 80 http server, jadi semacam browser kecil2an. Tantangannya adalah saya harus memperlajari format data “POST” yang akan diterima http server. Akhirnya berhasil. Tapi punya kelemahan, user tidak bisa melakukan operasi-operasi administrator seperti mengedit module, component, dll. Bug yang sangat fatal.  >:)

Seletelah sempat pusing beberapa hari. Akhirnya solusi ideal (sampai saat ini) kutemukan juga. Ide nya kudapat dari eyez@eyezberg.com (terimakasih) . Caranya dengan membuat form html dengan user dan password dilletakkan pada field hidden. Lalu dengan otomatis form tersebut akan di submit menggunakan javascript.

<html>
<form action='http://localhost/JoomlaEclipse_test/administrator/index.php' method='post' name='loginForm' id='loginForm'>

<input name=’username’ type=’hidden’ value=’admin’>

<input name=’passwd’ type=’hidden’ value=’admin’>

<input type=’hidden’ name=’lang’ value=’en-GB’ />

<input type=’submit’ name=’submit’ value=’login’/>

<input type=’hidden’ name=’option’ value=’com_login’ />

<input type=’hidden’ name=’task’ value=’login’ />

</form>

<script language=’JavaScript’>setTimeout(‘document.loginForm.submit.click()’,1);</script>

</html>

Fuiiih

06.11.07

JEclipse Milestone 1

Ditulis dalam Java, komputer, php pada 9:00 am oleh fuad

This version has feature
- Create Joomla Module Project
- Code completion for Joomla! api
- Test Joomla Module on webserver and mysql server which already installed

Source code of this milestone can be downloaded from official svn repository of Joomla Soc 2007 (http://joomlacode.org/gf/project/soc2007/scmsvn/). I also provide binary file of this project (http://www.kleq.web.ugm.ac.id/images/joomlaeclipse/org.joomla.eclipse.joomlaextension_1.0.0.jar).

To install JEclipse, first you need J!Code (http://joomlacode.org/gf/project/jcode/), Apache web server and Mysql server too. If you download the source code you must compile it first. This can be done by open it with Eclipse IDE (http://eclipse.org) not with J!Code set target platform to J!Code, build, and export it to plugin. But if you download the binary you just have to copy “org.joomla.eclipse.joomlaextension_1.0.0.jar” to plugin directory of J!Code.

To make module project just open menu file>New>Other>Project, Select Joomla>Joomla Module Project.


This step will generate joomla module called mod_<project_name>. When you create this project, plugin also creating index of Joomla api by read it from the plugin. So you can see list of class, method, and constant provided by Joomla! (Joomla! API). To test this module select Run>Run and double click “Joomla Module”

You will be showed list of textbox, fill it with appropriate configuration of your server. Access type field is access type of Joomla! module. Then module will be displayed on web browser like this

Next work:

fixing bug of joomla module testing

implementing administrator module testing

05.25.07

Eclipse Plugin To Develop Joomla’s Component/Module

Ditulis dalam Java, komputer pada 7:45 am oleh fuad

Making module or component in Joomla is not trivial task. There are a lot things we must do to complete it. For example to make one module, developer must create xml configuration, helper file, module template, and module entry point. This project want to help Joomla user to develop module and component. This project provide an IDE that can simplify module/component development process. Instead of making from scratch, project will develop on top of Eclipse platform as a plugin and based on phpeclipse, popular php ide based on Eclipse.

How will this IDE help developer? first IDE will provide wizard to generate module/component’s infrastructure. For example if developer want to make Joomla module, wizard will generate entry point file, xml configuration, helper file, and module template. IDE also has code completion feature, so developer can easily see list of functions provided by Joomla and module/component testing feature. Testing feature will help developer see output of module/component which they develop.

Approach
-First focus how to support Joomla’s module development with this plugin. After all feature i propose complete i will continue develop for Component development.
-Using template to generate module/component’s infrastructure.
-Include complete Joomla distribution inside plugin, to make easy code completion and testing.
-Joomla API code completion is done by make Joomla API index from joomla distribution inside plugin.
-Module/Component testing is done by copy Joomla distribution and module/component to document path of web server that has installed on developer’s machine. And display it on web browser.

Goals
Develop Eclipse’s plugin that has feature:
1. Wizard to generate template, Wizard will generate project infrastructure to develop module/component.
2. Testing module/component.
3. Code Completion, User can easily see list of function’s provided by joomla and php with press <Ctrl>+<Tab> for example.
4. Xml Editor and php editor

Timeline
Week 1
Creating module’s wizard and module’s template
Week 2
Implement module testing
Week 3
Optimize module testing
Week 4
Implement module code completion, php editor, and xml editor
Week 5
Implement module code completion, php editor, and xml editor
Week 6
Creating component’s wizard
Week 7
Creating component’s template
Week 8
Implement component testing
Week 9
optimize component testing
Week 10
implement component code completion
Week 11
Add embed web server feature
Week 12
Add embed database server feature
Week 13
Testing
Week 14
Testing

About myself
-Student of gadjah mada university (http://ugm.ac.id)
-live and study in Indonesia
-Have a dream to be open source developer, now active in kuliaxproject (http://kuliax.org) as bugtracker manager
and Joomla in Google Summer Of code program.
-Using Linux since 2004
-Want to start open source company like mysql, Jboss, Redhat etc.
-fan of Debian (Real Free Operating System)

Halaman berikutnya