검색결과 리스트
프로그램 개발에 해당되는 글 63건
- 2009/10/23 KELP 세미나 소식이군요.
- 2009/08/07 JSAP - Java Simple Argument Parser
- 2009/04/26 Flex 컨트롤의 초기화 시점?
- 2009/04/26 vi / vim 단축키
- 2009/04/12 iBatis 다중 파라메터 ParameterMap 형태로 Query 를 날리기~
- 2008/11/11 JExcel Programmer's Guide
- 2008/10/28 게으른 리눅스: 시스템 관리자를 위한 열 가지 트릭
- 2008/10/28 Java를 이용한 엑셀 문서 다루기
- 2008/10/12 리눅스에서 WoW를 해보자. (2)
- 2008/10/12 Virtual Box (리눅스 버전)에서 Bridged Networking 이용하기 (1)
글
KELP 세미나 소식이군요.
http://kelp.or.kr/korweblog/pages.php?page=03/10/27/3640332
당일 낮에 할 일이 없을듯 보이니... 저는 놀러갈 듯 하군요. ^^;; 밤에는 여행가기로 했고... -ㅅ-
다행히도 세미나가 집 앞(이라기에는 좀 멀지만... ^^;; ) 이니 츄리닝입고 가도 될듯하군요 ㅎㅎ
글
JSAP - Java Simple Argument Parser
이렇게 해주는 것만으로도 커맨드 라인에서 -o -D -I 같은 옵션을 간편하게 조작하는게 가능하기 때문에 말그래도 clp 환경에서의 프로그램 작성을 굉장히 편하게 했다. 당연히 자바에도 비슷한 라이브러리가 있겠지 하는 심정으로 찾아본 것이 이 JSAP이라는 녀석이다. - 솔직히 perl 만큼 간편하지는 않다 -_-;;;
http://www.martiansoftware.com/jsap/
나름 심플하다면 심플하지만... :-)
ps. Java로 만들어진 SMTP 서버를 찾아야 jmail 을 수정할 수 있는데... -_-
글
Flex 컨트롤의 초기화 시점?
글
vi / vim 단축키
http://kldp.org/node/102947
vi 단축키 참 많지만 실제로 쓰기는 쉽지 않죠. 상당히 잘 정리해놓으셨더라구요.
글
iBatis 다중 파라메터 ParameterMap 형태로 Query 를 날리기~
SELECT
*
FROM
ADM.DBCFG
WHERE
DBNAME = ?
AND INPUT_DATE IN ( ? , ?, ?, ? )
SQL.xml
<select id="dbm.selectDBCfgByDBNameAndInputDate" parameterClass="java.util.HashMap" resultMap="retmapDBCfgVo">
SELECT
*
FROM
ADM.DBCFG
WHERE
DBNAME = #dbname#
<iterate property="input_date" prepend ="AND INPUT_DATE IN " open="(" close=")" conjunction="," >
#input_date[]#
</iterate>
</select>
Java.java
public List<DBCfgVo> getDBCfgList(String dbname, List<String> date) {
SqlMapClient sqlMapper = SqlMapperMgr.getSqlMapClient(MAPPERTYPE.DBMDB);
List<DBCfgVo> list = null;
Map<String, Object> map = new HashMap<String, Object>();
map.put("dbname", dbname);
map.put("input_date", date);
try {
list = (List<DBCfgVo>)sqlMapper.queryForList("dbm.selectDBCfgByDBNameAndInputDate",map);
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return list;
}
글
JExcel Programmer's Guide
글
게으른 리눅스: 시스템 관리자를 위한 열 가지 트릭
글
Java를 이용한 엑셀 문서 다루기
1. 존재하는 라이브러리
1) JXL
장점 : 대용량 데이터를 입력 속도가 빠름
단점 : 데이터를 엑셀 문서의 형태로 작성시 정상적인 엑셀 문서의 형태를 가지지 않음.
2) POI
장점 : 대용량 데이터의 입력 속도가 느림
단점 : 데이터를 엑셀 문서의 형태로 작성시 정상적인 엑셀 문서의 형태를 가진다. (현업들의 편집이 쉬움)
※ 보통은 데이터의 입력에는 JXL을 엑셀형태의 output 작성에는 POI를 사용한다고 함
글
리눅스에서 WoW를 해보자.
더군다나 윈도우 DiretX 환경에서 게임을 할때보다 조금더 쾌적하게 느껴진다. (좀더 빠르다고 해야하나?) 물론 오픈GL을 사용하는 것으로 바꿔야지만 게임이 실행돼기 때문에 그림자 효과같은 것들이 빠졌기 때문이라고도 예상됀다.
어쨋건 버철머신으로 윈도우 띄우고 파일받으면서 와우 2개돌리고 동영상 보면서 게임하는데도 할만하다는 건 분명히 쾌적하다고 생각할만 한 것 같다.
단지 문제가 있는데 wine의 문제인지 한글 입력이 안됀다. -_-;; 해결이 안돼려나. 찾아보니 됀다고 하는 사람도 있고 안됀다는 사람도 있고 천차만별인지라 어떻게 해야할지 모르겠다.
혹시라고 리눅스에서 와우를 해보고 싶은 분이 있다면 그냥 아래의 과정을 따라해보길 바란다.
만약 우분투라면 aptitude install wine 로 간단히 설치가 가능할 것이다.
2. 한글 입력 문제를 해결하기 위해서 아래의 파일을 ~/.wine/c_drive/windows/system32 에 복사하고
regedit reg_imekr.reg 를 실행한다.
3. wine 이 제공하는 레지스트리 에디터를 열고 아래의 파일을 임포트한다.
4. 와우가 존재하는 폴더로 이동해서 wtf/config.wtf 의 최하단에 아래의 문구를 넣는다.
SET gxApi "opengl"
5. 와우가 존재하는 폴더에서
wine Wow.exe -opengl
주의사항은 와우에서 사용하는 단축키가 Gnome 에서 예약된 키인 경우 단축키가 씹히니 주의하시길...;; 많이 테스트 해본후에 레이드로;;
글
Virtual Box (리눅스 버전)에서 Bridged Networking 이용하기
설정은 우분투를 이용했지만, 데비안에서도 그대로 적용 가능할 것이라고 생각함.
(https://help.ubuntu.com/community/VirtualBox 에서 자료 참고)
Networking
To start, NAT is by far the easiest way to get your guests connected to the interweb, but you may want to use the guests as servers. For this you need Host Networking.
Install Necessary Software
You will need to install bridge-utils and uml-utilities so that you can make a tap device and add it to a bridge.
sudo apt-get install bridge-utils uml-utilities
8.04 Hardy
To configure bridging, you basically go through three steps on the host machine. First you need to create a bridge. Next you create virtual interface(s). Then you add a real interface and virtual interface(s) to the bridge. Because of the scripts available on the distribution which take care of all the details, all of this sums up to two steps:
- declare bridge and real network interface you add to it
- declare virtual interfaces
Create a permanent bridge by editing /etc/network/interfaces
On the host machine:
$ sudo gedit /etc/network/interfaces
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet dhcp
bridge_ports eth0
# The loopback network interface
auto lo
iface lo inet loopback
"br0" is an arbitrary name. To take the modifications into account, restart the network:
$sudo /etc/init.d/networking restart
From now on, your system will always set up the bridge on boot. Note that this could slow down the boot time a little bit, because of the bridge coming up.
Declare virtual interfaces which will be used by VirtualBox by editing /etc/vbox/interfaces
On the host machine:
$ sudo gedit /etc/vbox/interfaces
# Each line should be of the format :
# <interface name> <user name> [<bridge>]
vbox0 <your user name> br0
vbox1 <your user name> br0
...
"vbox#" is an arbitrary name. You may declare here as many virtual interfaces as you wish, and add it to a bridge.
Later when you will configure the network of your virtual machine you will use the virtual adapter name "vbox#" for host networking. For example if you use the VirtualBox Qt graphical interface, enter "vbox#" in the "Interface Name" field, when choosing "Host interface".
To take the modifications into account, restart the VirtualBox host networking script:
$sudo /etc/init.d/virtualbox-ose restart
The virtual interfaces are now created and added to the bridge.
That's it! Now the different scripts will take care of cleanly create/configure/remove bridges and virtual interfaces when you boot and shut your system down.
Configure networking in VirtualBox
Once you have everything ready, you can start the VirtualBox management interface on the host machine, configure the network of your virtual machine, and by selecting "host networking", enter the name of one of the virtual adapter you have configured. Start your virtual machine, it gets a network card presented, that you can set up as you wish (static IP address, DHCP) using the network configuration tools inside the virtual machine.대충 위와 같은 과정을 밟아가면 호스트 리눅스에서 게스트 리눅스로 직접 ip를 통해서 접근이 가능해진다.
vi-vim-cheat-sheet-ko.svg
jexcelapi_2_6_9.zip