일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- programming_book
- ubuntu
- agile
- Kuala Lumpur
- hbase
- program
- leadership
- Artificial Intelligence
- history
- RFID
- Malaysia
- Book
- web
- QT
- Software Engineering
- comic agile
- essay
- hadoop
- Programming
- django
- management
- Italy
- Book review
- Spain
- France
- Python
- erlang
- MySQL
- Java
- Linux
- Today
- Total
목록Programming (347)
public class TestDebugMode { //http://stackoverflow.com/questions/1109019/determine-if-a-java-application-is-in-debug-mode-in-eclipse //public static void main(String[] args) //{ //System.out.println(System.getProperty("java.vm.info", "")); //} //http://www.rgagnon.com/javadetails/java-detect-if-running-in-debug-mode.html public static void main(String args[]) { boolean isDebug = java.lang.manag..
http://whiteship.me/?p=12338 //TestCategoryInterface.java interface FastTests { /* category marker */ } interface SlowTests { /* category marker */ } //TestCategoryA.java import static org.junit.Assert.fail; import org.junit.Test; import org.junit.experimental.categories.Category; public class TestCategoryA { @Test public void a() { fail(); } @Category(SlowTests.class) @Test public void b() { } ..
//http://cafe.naver.com/javacircle/10682 import java.net.InetAddress; public class TestInetAddress { public static void main(final String[] args) throws Exception { //Get by host name InetAddressjavalobby=InetAddress.getByName("javalobby.org"); //Get by IP as host name InetAddressbyIpAsName=InetAddress.getByName("64.69.35.190"); //Get by IP as highest-order byte array InetAddressbyIp=InetAddress..
import java.net.InetAddress; import java.net.UnknownHostException; class GetHostName { public static void main(final String[] args) { //http://www.devx.com/tips/Tip/13284: try { java.net.InetAddress localMachine = java.net.InetAddress.getLocalHost(); System.out.println("Hostname of local machine: " + localMachine.getHostName()); } catch (java.net.UnknownHostException uhe) { // [beware typo in co..
JUnit test method에서 caller가 main인 경우에는 swing 화면을 출력, JUnit test인 경우에는 출력하지 않도록 하는데 사용했음 class TestStackTrace { static class TestInnerStackTrace { //http://blog.naver.com/clean820818/10086133151 public static void method() { //print current class method StackTraceElement[]stacks=new Throwable().getStackTrace(); StackTraceElementcurrentStack=stacks[0]; System.out.println( "my class : " + currentSt..
// http://kentbeck.github.com/junit/javadoc/latest/index.html?org/junit/runners/Parameterized.html @RunWith(Parameterized.class) public class FibonacciTest { @Parameters public static List>Object[]< data() { return Arrays.asList(new Object[][] { Fibonacci, { { 0, 0 }, { 1, 1 }, { 2, 1 }, { 3, 2 }, { 4, 3 }, { 5, 5 }, { 6, 8 } } }); } private int fInput; private int fExpected; public FibonacciTes..
C의 #ifdef를 java에서 흉내내는 방법 http://cafe.naver.com/javacircle/43981 http://www.experts-exchange.com/Programming/Languages/Java/Q_11152787.html public static final boolean DEBUG = true; if(DEBUG) { System.out.println("Debugging on"); } is functionally equivalent to #define DEBUG 1 #if DEBUG cout
http://www.ubuntu.or.kr/viewtopic.php?p=61602 1. partner 저장소 추가: 시스템 -> 관리 -> 소프트웨어 소스 -> 기타 소프트웨어탭 -> 첫 번째 줄 partner 라고 표시된 주소에 체크하고 닫기후 나오는 창에서 다시 읽기 클릭 2. Sun Java 설치: 프로그램 -> 우분투 소프트웨어 센터-> sun java jdk 검색해 설치 $ sudo add-apt-repository "deb http://archive.canonical.com/ubuntu lucid partner" $ sudo apt-get update $ sudo apt-get install sun-java6-jdk
http://fastutil.dsi.unimi.it/ javac -cp .:./fastutil-6.2.2/fastutil-6.2.2.jar TestSpeed.java java -cp .:./fastutil-6.2.2/fastutil-6.2.2.jar TestSpeed Test list speed - puts 1000000 elements for each list 10 times java.util.ArrayList size() = 10000000 elapsed time = 237 ms it.unimi.dsi.fastutil.ints.IntArrayList size() = 10000000 elapsed time = 27 ms Test set speed - puts 1000000 elements for eac..
1~6 출처: http://comblog.wo.tc/346 1. Xubuntu: http://www.xubuntu.org/ 2. Damn Small LInux: http://www.damnsmalllinux.org/ 3. Basic Linux: http://distro.ibiblio.org/pub/linux/distributions/baslinux/ 4. Puppy Linux: http://puppylinux.org/ 5. DeLi Linux: http://www.delilinux.de/ 6. Debian: http://debian.org/ 7. Lubuntu: http://lubuntu.net/ 8. U-lite: http://u-lite.org/ 9. FluxBox: http://www.fluxbox..