Posts

Showing posts from January, 2013

Hibernate Validation Messages location

Image
I just wanted to note this very basic info, Hibernate validation messages are stored in /org/hibernate/validator/. Opening this in Eclipse (or any jar viewer), would look like the screenshot below.

Create tarball in from a different directory

Let say you are in a  destination directory but the source are in a different directory. To create a tarball, just issue this command below, $> PWD   /Users/user/Desktop/ $> tar -cvzf mytarball.gz -C ~/different/source/base-directory TheDirectoryToTarBall What it means is that, it'll create the tarball mytarball.gz into present working directory which is /Users/user/Desktop which the directory going to tar is TheDirectoryToTarBall with its location is in ~/different/source/base-directory, i.e. ~/different/source/base-directory/TheDirectoryToTarBall. Take note that after the path "...base-directory" is a space before the directory named "TheDirectoryToTarBall". If you want to tar a file, just replace the position of your file to the position where "TheDirectoryToTarBall" is placed. Hope that helps.

Using Reverse Proxy in Apache to allow multiple domain names via DynDns or No-ip.org

So I have these accounts (free) from DynDns.org (or even No-ip.org) and the goal is that, I wanted to have two sources of exposed host names or domain names publicly with these two free domain (sub domains) from the said dns services. My setup is that, I have two machine (technically, one is running natively in my machine and the other one is via virtual machine). Let's call it A machine and B machine respectively. So A machine is where my apache is running. Currently, I have version 2.2.2 So how do I do it, I have these two domains namely, http://a-machine.dyndns.org http://b-machine.dyndns.org In my A machine, it's running in Mac OS X and I have these PHP project that I wanted to exposed publicly, while in my B machine running in Ubuntu, I wanted to expose my J2EE project publicly. In A machine, I can directly allow in my httpd.conf (or in my setup, I have extended it to an external file namely httpd-vhosts.conf), and add, <VirtualHost *:80>     S