Monday, February 01, 2010
What 2010 is going to bring us?
Thursday, January 14, 2010
Bye-bye, Postfix...
Wednesday, January 13, 2010
How to run background process in GWT
com.google.gwt.user.client.Timer. If you want call it periodically each 5 seconds, you can do something like this:private void updaterProcess() {
Timer timer = new Timer() {
@Override
public void run() {
// call stuff here
}
};
timer.scheduleRepeating(5000);
}
Shift happens...
Google got pissed off:
"We have decided we are no longer willing to continue censoring our results on Google.cn, and so over the next few weeks we will be discussing with the Chinese government the basis on which we could operate an unfiltered search engine within the law, if at all. We recognize that this may well mean having to shut down Google.cn, and potentially our offices in China."
Complete story here: http://googleblog.blogspot.com/2010/01/new-approach-to-china.htmlTuesday, January 12, 2010
How things gets screwed up, when you're not thinking...
- Be damn fast.
- Be damn small.
- Be damn quick.
Monday, December 28, 2009
Liferay: include JSP into Velocity templates
I am working on a Liferay's theme. Hooray, no more moronic pain in ass because of Velocity templates. Velocity templates now are mainstream when you're building a Liferay's theme and zero (yes, zero) documentation of how to use other template system. JSP that just works great, is easy to use, well integrated in your favorite IDE with all the documentation and autocomplete stuff, and you already know them well. So let's Liferay developers eat their Velocity, while we go tradition stuff.
Anyway, to add some JSP page into your theme, simply do like this:
$theme.include($themeServletContext, "/elements.jsp")
This example assumes that you have a file, called "elements.jsp" and it is located in the root of your theme (i.e. accessible from the URL like "http://yourhost/your-theme-name/elements.jsp").
Tuesday, December 08, 2009
JNLP and Stupid Parameters
<property name="foo" value="bar"/> won't work, while <property name="javaws.foo" value="bar"/> will.System.getProperty("javaws.foo"); — as usual.