Wednesday, August 21, 2013

java, testing salted hash using the commons-codec

There is one class called DigestUtils in the apache commons-codec, here is a quick how to start tutorial to pickup the jar and do a simple one way hash.

Add a dependency to commons-codec in your pom file

<project xmlns="" xmlns:xsi=""


then update the project ,we can see the jar is included in the project



If you want included the jar in the dependenciy, add one plugin for the assembling

then mvn assembly:assembly you will see the jar with the inlined codec jar files.


Tuesday, August 6, 2013

How to FIx,”New Nexus 7 stuck at X logo, but FULLY CHARGED”

Got a New Nexus 7 (2013) modal, and it was stuck on the X logo forever, it’s fully charged.
  my firs try is to restore to the factory image, however, no official image for “flo” the New nexus 7 in the Google page.

it only have the old one

after did a lot Goggling, found this one works


fastboot boot recovery.img

then clear cache, install the zip for sdcard or sideload

then it will works, Good luck

Sunday, August 4, 2013

Centos: disable Ipv6

To begin, log in as root and disable IPv6 by typing:
echo "install ipv6 /bin/true" > /etc/modprobe.d/disable-ipv6.conf
Now run the following command to disable ip6tables:
chkconfig ip6tables off
We must now disable any calls to IPv6 in its various locations. To do this we will start by opening the following configuration file:
vi  /etc/sysconfig/network
Scroll down and add or amend the following line to read:
To complete this process, you must now modify the configuration for each Ethernet device to show the following values:

after rebooting, you can tell no IPv6 address listed on the nic card

also lsmod|grep ipv6 returns nothing

Locations of visitors to this page