분류 전체보기 (202) 썸네일형 리스트형 우스운 착각 가끔 황당한 코드를 짜서 왜 안되지 하는 경우가 있습니다. 오늘도 코드를 작성하다 착각을 하였습니다. 다음과 같은 경우 입니다. public class Common{ FileLoader fileLoader = new FileLoader(fileList.getFileList()); FileWriter fileWriter= new FileWriter(fileLoader.getResult()); Common() { fileLoader.loadFiles(); fileWriter.writeResult(); } } 파일을 읽어다가 쓰는 걸로 착각 햇습니다. 하지만 위의 코드는 이런 결과 입니다. 먼저 fileLoader가 죽어라 파일을 읽습니다. 그리고 어딘가 읽은 파일을 저장하고 결과를 추출합니다. 음.. 결과를.. Parameter Parameter로 값을 전달하는 것보다 Attribute로 선언해서 가져다 쓰는 게 더 좋은 것 같다. Ubuntu 영문환경에서 SCIM 띄우기 Ubuntu 영문환경에서 SCIM 띄우기 administration>synaptic package manager 를 실행 시켜서 scim-hangul 을 설치한다. sudo ln -s /etc/X11/xinit/xinput.d/scim /etc/alternatives/xinput-en_US sudo ln -s /etc/alternatives/xinput-en_US /etc/X11/xinit/xinput.d/en_US 실행한다. rebooting 10대 오픈소스 목록 1. 오픈 오피스 (마이크로소프트 오피스를 대체) 2. 미디어 포털 (마이크로소프트 윈도우 미디어 센터를 대체) 3. VLC 미디어 플레이어 (마이크로소프트 윈도우 미디어 플레이어를 대체) 4. 7-zip (winzip을 대체) 5. GIMP (어도비 포토샵을 대체) 6. RSSOwl (구글 리더, 블로그라인을 대체) 7. Pidgin (윈도우즈 라이브 메신저, 야후 메신저, 버디버디) 8. InfraRecoder (네로버닝롬을 대체) 9. Audacity (어도비 오디션을 대체) 10. Firefox (IE 대체) PCLI 명령 The command to retrieve a particular revision of a file is: pcli.exe run -y -ns get -id USERNAME:PASSWORD -o -a"c:\local\path\here" -wREV# -pr"PROJECTNAME" PATHNAME "run" is the command, which we use to execute a specific PCLI command which, in this case, is "get" The -y and -ns options stand alone, -y specifying that all prompts should be answered "yes" (I ran this from a C# program and did not.. no screens found Fedora에서 Display 설정을 조금 바꾸었습니다. 그리고 Rebooting ~ 헉.... WindowX가 안나오고 console만 덩그러니 나옵니다. no screens found 라는 fatal error를 내 뱉으며... system-config-display 라는 Command 를 쳐서 적절한 display로 변경 한 후 재시작.. 잘~~ 됩니다. 반복문에서 break , return 사용하기. 아래의 Code를 살펴 봅시다. while(true){ System.out.println("hi"); } 이 경우 무한 Loop 입니다. 이걸 멈추는 방법이 하나 인 줄 알았는데 두가지 군요. 하나는 break; 를 추가하는 겁니다. 그리고 다른 하나는 Method에 return type을 설정한 후 return을 하는 겁니다. return을 하게 되면 해당 Method의 수행이 종료 됨으로 무한 Loop 를 빠져 나오게 됩니다. Java Web Start tomcat 의 webapps 아래에 폴더를 생성합니다. 저는 CVSRegist라고 생성하였습니다. 다음 file을 index.html 이라는 이름으로 만듭니다. 위의 폴더에 위치 시킵니다. Launch My Application 다음 file을 CVSRegist.jnlp 라는 이름으로 만들고 위의 폴더에 위치 시킵니다. Java Web Start Demo Application Jeong-Hoon Kim Java Web Start Demo Application My Demo http://localhost:8081/CVSRegist/ 에 접근하면 Launch My Application이 나옵니다. Click 하면 Application이 시작됩니다. 저는 Main Method를 지정할 때 package 위치.. 이전 1 ··· 11 12 13 14 15 16 17 ··· 26 다음