In C# ENUMs are storage efficient data structure acting at run-time just like primitive types. The following presents one way to generate an enumeration class within a dynamic assembly using database data. Read the rest of this entry »
Suddenly, when restarting Liferay, the ROOT webapp was not anymore the first one that got started (it was the 4th or 5th). Because of this, all the portlets that make use of Liferay’s main services did not start correctly also. These portlets were started before ROOT. Read the rest of this entry »
During my experience with Liferay Portal I had this problem several times. When uploading a portlet (new or a new version of an existing one) Liferay says the following:
Copying 1 file..
Copying 1 file..
.......
.........war copied successfully.
Deployment will start in a few seconds.
and then nothing happens. Read the rest of this entry »
If you are planning to migrate a database application from Oracle to PostgreSQL, this article can help you to understand and solve some of the issues occurring in such a process. PostgreSQL has recently become feature-complete in many areas and therefore porting projects from Oracle might be a feasible option in much more cases. Oracle and PostgreSQL both conform to standard SQL. However, they contain several extensions and implementation details that differentiate one from the other. Here is table with some of the differences and how to deal with them. Read the rest of this entry »
Over the developing period of Django web application the models change a lot. Managing these changes in a team environment working on a Django project can become complicated. Unfortunately Django doesn’t capture the changes in the existing models. Until Django will provide an solution to this problem, you will need to use a schema migration tool. After I have browsed for such tools, I decided to use South. This post will explain how to use South. Read the rest of this entry »
Task: Show in a jsp file some properties you have declared in a .properties file in the project
Solution1:
Use the Jquery Plugin for internationalization. Think of this as using the ResourseBundle of Java. Loading and parsing the information from the .properties files and showing them in the jsp page.
Read the rest of this entry »
LXC 0.7 is available as an upgrade in Gentoo Linux. After you get it you may have a surprise… no console output after lxc-start. It seems it is not a bug but a feature :) (as always with software). To get back the output just add -s lxc.console=$(tty) to the command line, like:
# lxc-start -n machine_name -s lxc.console=$(tty)
It does not look 100% like before but at least you get some feedback and are able to login. And it seems the shutdown does not work as well as expected (this has to be investigated over weekend).
This is fixed in 0.7.1
Update The poweroff now works and it stops the container as well. Nice job :)
Let’s assume that we have to build a price calculator for a osCommerce website, that needs to have price based on dimensions(input from user – length, width), attributes, for each attribute there are more than 1 options with different prices for each option.
Wanting to implement a .jnlp jar for an application i run into this error that popped out in an error dialog “Uncaught System Error:org/apache/jaxme/JMElement” and after this, that project was blocked.


