Wednesday, September 20, 2006

Setting up a MySQL Data Source for Sun Java Studio Creator

From : http://www.developer.com/db/article.php/10920_3514256_2

After installing MySQL, unpacking and copying the jar file, and creating a user and loading in some test data, it is time to actually use that data from Java Studio Creator.



  • First, start Java Creator Studio.

  • When it has loaded, from the top-left pane, right-click on Data Sources and choose Add Data Source.

  • A dialog will appear. For Server Type, select Add Server Type. Another dialog will appear.

  • Hit the New... button and navigate to the jar file you downloaded and copied earlier (called mysql-connector-java-3.1.8-bin.jar).

  • Next, set the display name to MySQL.

  • For the Driver Class Name, enter com.mysql.jdbc.Driver.

  • Finally, for the URL template, enter jdbc:mysql://#HOSTNAME:3306/#DATABASE.


Note: These same steps should be applied for any new JDBC-compliant database you want to use in Creator. There are already several defined (such as Oracle and DB2), so check those first, but if yours is not there, you can add it. You will obviously need different jar file settings, and will need to look up the Driver Class Name and the JDBC URL used in the documentation for the JDBC driver for that DB. Also, choose a name that describes the database.

Once you have finished entering the details here, click Close.


Tuesday, September 19, 2006

Setting up a MySQL Data Source for Sun Java Studio Creator

From : http://www.developer.com/db/article.php/10920_3514256_2

After installing MySQL, unpacking and copying the jar file, and creating a user and loading in some test data, it is time to actually use that data from Java Studio Creator.



  • First, start Java Creator Studio.

  • When it has loaded, from the top-left pane, right-click on Data Sources and choose Add Data Source.

  • A dialog will appear. For Server Type, select Add Server Type. Another dialog will appear.

  • Hit the New... button and navigate to the jar file you downloaded and copied earlier (called mysql-connector-java-3.1.8-bin.jar).

  • Next, set the display name to MySQL.

  • For the Driver Class Name, enter com.mysql.jdbc.Driver.

  • Finally, for the URL template, enter jdbc:mysql://#HOSTNAME:3306/#DATABASE.


Note: These same steps should be applied for any new JDBC-compliant database you want to use in Creator. There are already several defined (such as Oracle and DB2), so check those first, but if yours is not there, you can add it. You will obviously need different jar file settings, and will need to look up the Driver Class Name and the JDBC URL used in the documentation for the JDBC driver for that DB. Also, choose a name that describes the database.

Once you have finished entering the details here, click Close.



Wednesday, September 13, 2006

Cannot recognize the Wireless AP


Kebetulan saya numpang di tempat teman.Dia punya wireless access point. Tapi saya bingung kenapa wireless-nya tidak dikenali di notebook saya.

Setelah berhari-hari (bulan) google mengenai hal ini.
Ternyata hanya masalah channel dari wireless access point-nya ... Settingnya dia pake channel 13 mungkin karena default dari pabriknya (hanya support protokol B) . Dan sepertinya notebook saya tdk support sampe 13 channel. Jadi setelah kita ubah ke channel 11.... akhirnya terlihat juga SSID "RAWAMANGUN" di notebook saya.... and it's works.

Tags: , , , ,


Wednesday, June 21, 2006

Change the Default Gateway

I use a notebook with two internet connection.
One with usual ethernet cable and other with WiFi. The default setting is using cable as default gateway, due to the metric.
To change this default setting is as simple as to change the WiFi routing metric  lower then the cable.

Tags: , ,


Friday, May 05, 2006

Tuesday, March 14, 2006

Compiling GTK+ with MS VS 8

After installing the gtk-win32-devel-2.8.14-rc1.exe from gladewin32 at the sourceforge.
To build a GTK+ project with MS VS 2005, Create Project Select Visual C++ , General, Empty Project template Additional setting to the project.

In Project Property Pages : Select Configuration Properties, Select C/C++.
Fill Additional Include Directories : C:/GTK/2.8.14/include/gtk-2.0; C:/GTK/2.8.14/lib/gtk-2.0/include;
C:/GTK/2.8.14/include/atk-1.0;
C:/GTK/2.8.14/include/cairo;
C:/GTK/2.8.14/include/pango-1.0;
C:/GTK/2.8.14/include/glib-2.0;
C:/GTK/2.8.14/lib/glib-2.0/include


Select Linker, Select General, Fill Additional Library Directories :
C:\GTK\2.8.14\lib

Select Linker, Select Input, Fill Additional Dependencies : glib-2.0.lib gtk-win32-2.0.lib gdk-win32-2.0.lib gobject-2.0.lib gdk_pixbuf-2.0.lib gthread-2.0.lib gmodule-2.0.lib pango-1.0.lib

And the project is ready to build.

Thursday, March 09, 2006

Subversion di win32

http://subversion.tigris.org/

Salah satu alternatif dari CVS. Kelebihan atau kekurangan
Subversion dengan version control system yg lain dapat
dilihat di
http://better-scm.berlios.de/comparison/comparison.html

Subversion menggunakan lisensi Apache/BSD.

Tanpa server

Download svn-1.3.0-setup.exe (Maret 2006) dari web-site
Subversion. Instal ...
Yakinkan bahwa Subversion\bin ada dalam PATH anda.

Untuk membuat repository.

> svnadmin create c:\svn\repos

Import project

> svn import mytree file:///c:\svn\repos\some\project -m "Initial import"

Checkout

> svn checkout file:///c:\svn\repos\some\project


Server svnserver

> "C:\Program Files\Subversion\bin\svnserve.exe" -d -r c:/svn/repos

Jika anda perlu menjalankan svnserver sebagai service anda
dapat melihat ke :
http://dark.clansoft.dk/~mbn/svnservice/

Coba checkout
> svn checkout svn://namakomputer/some/project

Anda dapat melihat ke C:\svn\repos\conf untuk mengubah
file-file yg diperlukan untuk authentication atau access
permission.

HTTP / HTTPS server

Yg pertama saya coba adalah menggunakan Apache dari apache.org .
Tetapi lebih baik gunakan Apache+SSL dari http://hunter.campbus.com/
agar mudah setting SSL.

Anda harus mengkopi file mod_dav_svn.so dan mod_authz_svn.so
dari C:\Program Files\Subversion\bin ke apache\modules
Setelah itu anda dapat mengubah httpd.conf sesuai dengan
petunjuk di manual Subversion (Bagian httpd, the Apache HTTP
server Chapter 6. Server Configuration )

Untuk implementasi SSL baca dahulu
http://tud.at/programm/apache-ssl-win32-howto.php3
untuk cara-cara membuat file certificate dan key serta
perubahan / tambahan setting untuk httpd.conf dan
ssl.conf .

Tags: , , ,