Visual Guide to Selling SaaS (Repost)

ArchLinux Installation for Dummies

Import MySQL Dump Fast(er)

1140067-speedy_gonzales

Part of software testing at times we need mock database which can be easily obtained from production database using a simple mysqldump command.

However, the import of the mysql dump into our local mysql server could painstakingly slow especially when the import file is large.

If the tables are of InnoDB, we can speed up the import like Speedy gonzales by wrapping the dump with the following SQL statements :)

SET autocommit=0;
... SQL import statements ...
COMMIT;

Time to make your harddisk work harder! Read more at MySQL reference manual.

Steam + ArchLinux

SteamOS_Linux

 

It’s pretty easy to install steam now than a year ago.

Read the rest of this entry »

Hibernate @NotBlank vs @NotEmpty

4812269151_9e0413a8db_z

 

Sometimes we may often overlook at the difference between these two useful annotations for Hibernate. @NotBlank versus @NotEmpty.

Validate that the annotated string is not null or empty. The difference to NotEmpty is that trailing whitespaces are getting ignored.

The answer can be found at Hibernate Doc for @NotBlank :)