1. Rollback all data on import from a table if a row is corrupted. You have a list of sql queries as a parameter:
Read the rest of this entry »
SQL Transactions in Java
Jun 11
LXC with Gentoo Linux
Jun 3
VMWare (Server, Player, ESX), VirtualBox, KVM/QEMU are just a few of the virtualization technologies you can use if you need to run a generic virtual machine. Each has strong and weak points, each adds some overhead when running the virtual machine, each can prove useful in a given scenario. I’ve used more or less extensively all of them (testing or in daily work). I’ve tested also linux specific virtualizations like XEN or OpenVZ but their drawbacks made me somewhat reluctant in using them. But recently I’ve come over Linux Containers (LXC), a lightweight virtualization that lets you isolate processes and resources without using a full virtual machine. Read the rest of this entry »
Hi there,
As my journey with Liferay continues I thought it would be a good idea to write down some.. let’s say, miscellaneous stuff that were apparently trivial, but turned out to consume much more time than expected. So, there is one for today (actually happened last week) and I will keep updating this blog with new ones that I find (or remember :P ).
Use EntityLocalServiceUtil instead of EntityUtil wherever possible
For example use UserLocalServiceUtil instead of UserUtil if you need to programmatically update user details. Read the rest of this entry »
Displaying a web page inside a widows form application and interact with the content it’s very simple using System.Windows.Forms.WebBrowser.
This way you can easily create a panel containing ads in to your application or even communicate with a 3rd Party web component for displaying data. In our case we needed to integrate an enterprise application with an applet provided by Oracle that was capable of displaying and comparing 3d models.
Read the rest of this entry »
Once we received the information from the web services, the next step was to parse that stream in order to get the necessary data. I needed a quick and easy way of doing this. After a little search on the existing solutions, I have chosen to use Xstream library. It’s simple to work with and you don’t need extra mapping. You just create the Java classes, that will represent our xml file.
Read the rest of this entry »
In this article I will briefly describe the steps needed for creating a user login for an application with users registered in an Active Directory. Login will be done via LDAP protocol, and the credentials will be matched against the Active Directory registered user’s credentials.
Few months back I ran into a strange behavior regarding breakpoints.
Debugging a c# solution in Visual Studio 2008 I’ve noticed the breakpoints I have “click” removed during one debug session reappear as soon as session ends. Read the rest of this entry »
Parse an XML file issue
May 6
If you wish to create an XML file and then parse it to use the containing information for some other logic you should keep in mind a small, but annoying “feature”.
Error :
-> org.xml.sax.SAXParseException: Content is not allowed in prolog.
PostgreSQL users have the option of extending the set of functions and operators available. If you have a common SQL or programmatic routine, custom functions can be an effective way to more succinctly and efficiently accomplish your tasks. Likewise, custom operators can be created to call these functions (or existing built-in functions) in order to make more efficient and legible SQL statements. Read the rest of this entry »
The client wanted to limit the access to certain pages based on user account and password.
So some pages can only accessed by some users that gave them permission the site manager.
For that i create two radio input type with “Yes” or “No” protect page options.When i selected
“Yes” option i can chosen from a list who user has access on page or not.If
i selected “No” option all users have access on page.


