Be careful of SKIP_COMMENTS
In the early days, we used to hide JavaScript code from old browsers that do not support JavaScript. The way of doing this was to put a one-line HTML-style comment without the closing characters...
View ArticleDeploy your app to the root context
This is an easy trick which I am sure most of you already know. Let’s take a Java application called MyAddressBook. Its generated war file could be called myaddressbook.war. By default, when you deploy...
View ArticleWhy GROUP_CONCAT returns BLOB?
Last week, when using the GROUP_CONCAT() function on a MySQL database, I got an unexpected result. Indeed, instead of getting my result as VARCHAR types, I got it as BLOB types! For information, a BLOB...
View ArticlelimitToList attribute prevents flashing
If you have some elements (or even the whole page) that flash/twinkle using RichFaces, it probably means that these elements are AJAX-rendering. The question is by whom and how to fix it? A lot of tags...
View ArticleUse ServerXMLHTTP through a proxy
The other day, I was trying to use the ServerXMLHTTP object. For information, this object was created to allow you to establish server-to-server HTTP connections. The code I firstly wrote looked like...
View ArticleRedirect traffic to a specific network
This is a little trick which can be useful in some very specific case. For example, you could have a machine with two network cards. One of the network is behind a proxy and the other one is connected...
View ArticleRemove DOS carriage return
After writing a shell script on Windows and trying to execute it on Linux, I got the following error message: /bin/sh^M: bad interpreter: No such file or directory The problem is obviously because the...
View Article