20.1.14

Small Tips on Latex Tables & Tabular

Big tabular could really be a pain in your ass when you are using latex.
\resizebox could save your life in this case.

Also positioning table is another problem, you place it after a text but it goes another position where it wants :) Using [htb] will position your table where you want. Also, to understand floats in latex you can read this.

Another problem is about caption spaces. With default config there might be no space between caption and table. To overcome add:
\usepackage{caption}
\captionsetup[table]{skip=10pt}
Ok here is example of a table with proper resize and position:


18.2.13

VirtualBox Ubuntu Guest Screen Resolution Problem

Even after installing Guest Additions if you have problems on screen resolution on VirtualBox with ubuntu guest try;

sudo apt-get install virtualbox-ose-guest-utils virtualbox-ose-guest-x11 virtualbox-ose-guest-dkms

2.8.12

Error: Two classes have the same XML type name

The schemagen command does not differentiate the XML namespace between multiple XMLType annotations that have the same @XMLType name defined within different Java packages. When this scenario occurs, the following error is produced:

Error: Two classes have the same XML type name ....
Use @XmlType.name and @XmlType.namespace to assign different names to them...
 
This error indicates you have class names or @XMLType.name values that have the same name, but exist within different Java packages. To prevent this error, add the @XML.Type.namespace class to the existing @XMLType annotation to differentiate between the XML types.

17.7.12

Hibernate used to convert camel case object property names to underscored database field names.But this is not working anymore. So you should say your naming strategy to hibernate specifically with setting "hibernate.ejb.naming_strategy" property.

For auto-conversion from camel case to  underscores (like patientId to PATIENT_ID as a database column name) you can set it to "org.hibernate.cfg.ImprovedNamingStrategy" for choosing ImprovedNamingStrategy.

13.7.12

Maven dependencies not visible from Tomcat for a Web Project

If you are running the project as dynamic web project on a server within eclipse,

Open the project properties (right click > properties) and select "Deployment Assembly".

There click "add", select "build path entries", and choose "maven dependencies".

This will instruct WTP to send the maven dependencies to the server dir

 For other solutions: http://stackoverflow.com/questions/6083501/maven-dependencies-not-visible-in-web-inf-lib

18.5.12

WSE3 Proxy Generation Problem

WSE3 doesn't work properly in VS2005 if you have an 64 Bit operating system (in my case it is Windows 7). Proxy classes (classes with WSE extension) are not generated by WSE. "The reason why the WSE enabled proxies In x64 machines aren’t generated with the right classes is that the WSE installer is not updating the devenv.exe.config file to register the WseExtensionImporter. To solve the mentioned problem you should manually add the following to C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\devenv.exe.config This issue is added as a bug to Visual Studio Bug Database.

7.4.12

Spring + JPA, org.hibernate.SessionException: Session is closed

This exception is mostly caused because of you are out of transactional context. To solve this simply add @Transactional annotation to your method. Look example below;

16.7.11

Building a data warehouse for data mining

If you read lots of document on building data warehouses but still things are fuzzy, the presentation below will be helpful for you;

http://www.slideshare.net/idnats/data-warehousing-and-data-mining-presentation-725476

4.6.11

Glassfish - Error in linking security policy

Yep another day and another nonsense damn Glassfish error. I really miss Spring Framework.

I got the message in $Subject and resolve it via remove all folders&files in "[glassfishhome]/glassfish/domains/domain1/generated" then a fresh restart, it works.