Month: April 2013

Making the ubuntu 12.10 recognize your Android (internal and external sdcard) and adding usb rules security (udev)


If you plug your android phone or tablet on your Ubuntu 12.10 and nothing is happening, follow this next steps and magically your cell phone will be recognized:

sudo add-apt-repository ppa:langdalepl/gvfs-mtp
sudo apt-get update
sudo apt-get install libmtp-common libmtp-dev libmtp-runtime libmtp9 mtp-tools gmtp python-pymtp libusb-dev gvfs

The follow code is to register your device on usb dev rules of linux:

tar -xvf libmtp-1.1.1.tar.gz
cd libmtp-1.1.1
./configure --prefix=/usr
sudo make install
sudo cp 69-libmtp.rules /etc/udev/rules.d
sudo service udev restart

Credits and references:

If you have any questions, please leave a comment and i will try to help.

Victor Jabur


Regular Expression – Regex – For Date Validation (Bissextile Included)

Hi all,

I found a good regex for date validation that consider bissextile. I tested and it works.

I have problems with the bellow expressions in the eclipse, because it don't support the expression (?:) Non-Capturing groups.

I discover another expression that works in the Eclipse:


Both expressions are in the format: dd/mm/yyyy