Postingan

Menampilkan postingan dari April, 2009

Update and create timestamps with MySQL

A lot of relational tables need created and update timestamps columns. I prefer having them for all tables with no exception. However, most of applications I am working on are running MySQL. MySQL has minor limitation on timestamps. Unfortunately you can create only one time stamp column that has DEFAULT NOW() value. Read more to see how to avoid this limitation.

Aphorisms about programming

I am not clever. I am just yet another way to use google. Good programmer should be lazy. The hole in your pocket is not critical unless you have a hole in your other pocket.

Ant task to install tomcat service

If you are familiar to run Apache Tomcat as Windows service, you can install it with the ant task. build.xml file sample under the cut line.

Clear upload file input field

Many web developers came to the problem that they are not able to change value of file input field from Java Script in the web application. There is no access to value field of file input tag because of security restriction. However there is a trick how to erase this field if you need it in your application.

Components of success

People from different countries are reaching success in completely different way. And that is good because no matter who you are you can be successful. I heard a lot of success stories and now can summarize - what components are required to build your own success story...

Brain async

Many people came to the question: Why do our brain is having so many gaps: forget important info, quickly change opinion, stuck when doing usual actions, etc? Well, try to look from the different side.

Technical documentation

There is no one technical book I read more than a half. Is everybody doing this way? I recommend book authors to explain themselves in more short form.

Upload files with Selenium IDE

I started using selenium about 2 weeks ago. Find it as a very good QA tool. But after a few successfully written tests I met the problem: Selenium is not able to use file input field. JavaScript permission restriction doesn't allow it. Here is my solution written with JInvoke library : Jinvoke provides the classes to simulate the input to file chooser form.