Development
How to handle itemStateChanged properly
itemStateChanged
is one of the common event in Swing framework. However, you might find that it usually fires out twice. The fact behind this behavior is there are 2 sub-events, says selected and unselected. Developer must deal with this property using getStateChange()
method.
- sugree's blog
- Add new comment
- Read more
- 816 reads
has been organized for 2 times since . This activity aims to promote open source concept to students by offering 4500 USD to them, 500 USD to open source projects and a T-shirt to each mentor. As one of mentor at Drupal in last year, it is my duty to promote Google Summer of Code 2007.
- sugree's blog
- Add new comment
- 1209 reads
How to display information based on geo location using ip2cc
I developed IP to Country module for Drupal last year. The original purpose was to see who visited my site through Search Keywords module. Anyway, it is also possible to use ip2cc module for automatically display information based on geo location.
- sugree's blog
- Add new comment
- Read more
- 2309 reads
How to install JDBC drivers and SAP JCo on Apache Tomcat properly
Developing web applications on Apache Tomcat is very easy including ones interact with DBMS or even SAP. The key component is JDBC driver and SAP JCo. However, common problem is about deploying the application. If you installed JDBC driver or SAP JCo improperly on Apache Tomcat, you may run it as long as you don't redeploy the application again. Whenever you redeploy the application or deploy another application using the same driver, all applications will crash immediately because the driver was not loaded properly (it was already loaded).
- sugree's blog
- Add new comment
- Read more
- 3320 reads
How to authenticate Pure-FTPd by Drupal
Pure-FTPd supports various authentication source. I have an application to offer a private storage to Drupal user. In particular, every users share the same data storage since they are all friends. The scenario is that I would like to limit number of concurrent connection for each user to prevent parallel fetching by FlashGet or its friends. So I gave an individual user and limited the concurrent connection instead.
Anyway, I don't want to have duplicated accounts for both Drupal and Pure-FTPd. It would be nice if the account is shared among the two system so users may change their password by themselves.
- sugree's blog
- Add new comment
- Read more
- 1348 reads
How to properly change logo in Garland theme
One of the most wonderful thing in Drupal 5 is Garland theme. It is very flexible and simple to modify. In addition, Garland theme is really usable in production site. However, the very first step to make it usable in production site is to change logo and favicon to match what you have. If you notice the header area, Garland allows us to set gradiant from top to bottom of that region. This feature is a good and a bad. It looks good but the question is how to produce the logo to match this gradiant.
As far as I know, transparent PNG is not supported in IE6 and earlier version. The transparent color will be displayed as white. As a result, transaprent PNG must not be used for production site that visitors may use IE to browse the site. In other words, we should produce a logo with the gradiant as its background. The next problem is how to make it align. Actually, Garland theme doesn't provide the template to produce the logo.
The secret is that changing logo in Garland theme is very simple and template is absolutely unnecessary.
- sugree's blog
- 4 comments
- Read more
- 1877 reads
Recent comments
3 years 3 weeks ago
3 years 8 weeks ago
3 years 9 weeks ago
3 years 9 weeks ago
3 years 10 weeks ago
3 years 12 weeks ago
3 years 12 weeks ago
3 years 12 weeks ago
3 years 12 weeks ago
3 years 13 weeks ago