-
Recent Posts
Archives
- July 2016
- June 2016
- May 2016
- March 2016
- January 2016
- November 2015
- October 2015
- August 2015
- July 2015
- June 2015
- May 2015
- April 2015
- January 2015
- December 2014
- November 2014
- October 2014
- September 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- October 2013
- September 2013
- August 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- April 2011
- March 2011
- February 2011
Categories
My Tags
My Profile
Senior Software Engineer At Actuate
Meta
Monthly Archives: September 2014
pache.commons.lang AtomicIntializer
apache.commons.lang AtomicIntializer The documentation : This class maintains a member field of type AtomicReference. It implements the following algorithm to create and initialize an object in its get() method: First it is checked whether the AtomicReference variable contains already a … Continue reading
Another usage example of foldr
I feel foldr or foldr1 sometimes hard to understand. Here is another example to show its usage. get the last element of list? the solution is like this: how this works? let’s say tail’ [1,2,3,4], then you got 1. (flip … Continue reading
use linux command line like a hacker
print the most frequently used 10 commands use ^ remove unwanted characters my question : why ^o will remove the o from fooo, not from log 3. use ^old^new to do replace use !:gs/old/new to replace all old with new … Continue reading
how scanr and scanl works
How Scanr and scanl works let’s start with some code what’s the result it would be? firstly, let’s have a look what ‘flip’ does in haskell. here is a good link so flip (:) [] 1 is the same thing … Continue reading
Posted in Uncategorized
Leave a comment
apache.commons.lang study notes 3
ArrayUtils remove see the source the code uses System.arrayCopy to do it. toMap notice the Generic usage. toString this method would do : 1. put all the elements of the array into bracket {} 2. if the element is collection, … Continue reading
markdown test
A markdown test second title italic and bold italic bold italic and bold h h h h h h h h aljdla alsafa h link
Posted in Uncategorized
Leave a comment