일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
- AI
- Python
- history
- leadership
- Java
- Kuala Lumpur
- web
- management
- programming_book
- hbase
- Linux
- program
- Artificial Intelligence
- ubuntu
- erlang
- comic agile
- Book review
- Book
- agile
- Italy
- Software Engineering
- django
- RFID
- France
- Malaysia
- QT
- Programming
- essay
- MySQL
- hadoop
- Today
- Total
목록JH & HJ (853)
import java.util.ArrayList; import java.util.List; //http://abel-perez.com/example-functional-programming-fold-left-and public class TestFunctionalSum{ public static int foldLeft(List elements, int seed, Function function){ intaccumulated=seed; for ( final Integer element : elements ){ accumulated=function.apply(element, accumulated); } returnaccumulated; } public static void main(final String[]..
2011/04/26 - [Programming/Java] - Do not use loops for list operations 2011/04/28 - [Programming/Java] - Do not use loops for list operations 2011/04/28 - [Programming/Java] - Do not use loop for list iterations - lamdaj import fj.data.List; import fj.Effect; import fj.F; import static fj.data.List.single; //item 3 from http://codemonkeyism.com/generation-java-programming-style //http://code.goo..
2011/04/26 - [Programming/Java] - Do not use loops for list operations 2011/04/28 - [Programming/Java] - Do not use loops for list operations import java.util.ArrayList; import java.util.List; import com.google.common.collect.Lists; import ch.lambdaj.Lambda; import static org.hamcrest.Matchers.greaterThan; //item 3 from http://codemonkeyism.com/generation-java-programming-style //-cp .:./Guava/g..
2011/04/26 - [Programming/Java] - Do not use loops for list operations // item 3 from http://codemonkeyism.com/generation-java-programming-style // http://code.google.com/p/google-collections // http://blogs.warwick.ac.uk/chrismay/entry/writing_functional_java // http://codemunchies.com/2009/11/functional-java-filtering-and-ordering-with-google-collections-part-3 // http://stackoverflow.com/ques..
//http://blog.naver.com/enternow/120027291479 //http://www.java2s.com/Code/JavaAPI/java.util/implementsIteratorCharacter.htm import java.util.Iterator; public class TestIterableIterator implements Iterable, Iterator{ private final String text; public TestIterableIterator(String text){this.text=text;} public Iterator iterator(){returnthis;} private int curr=0; public boolean hasNext(){ if ( curr ..
//item 3 from http://codemonkeyism.com/generation-java-programming-style //http://code.google.com/p/google-collections //http://blogs.warwick.ac.uk/chrismay/entry/writing_functional_java //http://codemunchies.com/2009/11/functional-java-filtering-and-ordering-with-google-collections-part-3 //http://stackoverflow.com/questions/2312849/filter-and-sort-list-using-google-collections import java.util..
import java.util.Map; import java.util.EnumMap; import java.util.EnumSet; import com.google.common.collect.Maps; //import javax.annotation.Nullable; //$ javac -cp .:./Guava/guava-r09/guava-r09.jar TestEnumMap.java //$ java -cp .:./Guava/guava-r09/guava-r09.jar TestEnumMap public class TestEnumMap { public static void main(String[] args) { EnumMapm1=EnumMapFactory.newEnumMap(CHS.class); m1.put(CH..
remote server에 vnc4server가 입력된 경우 다음과 같이 vnc4server를 입력하면 personal screen session을 시작. 출력되는 output screen ID (:X)를 확인해야 한다. remote-server$ vnc4server You will require a password to access your desktops. Password: Verify: Password too long - only the first 8 characters will be used New 'remote-server:2 (hchung)' desktop is remote-server:2 Creating default startup script /home/hchung/.vnc/xstartup..
Failed to load JavaHL Library. These are the errors that were encountered: no libsvnjavahl-1 in java.library.path no svnjavahl-1 in java.library.path no svnjavahl in java.library.path java.library.path = .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java $ dpkg -l $ sudo apt-get install libsvn-java $ ls /usr/lib/jni/ libjava-access-bridge-jni.so libjava-access-bridge-jni.so..