media manager 에서 지정되지 않은 첨부파일을 올리고 싶을 때

/conf/mime.conf 를 수정


https://www.dokuwiki.org/mime

둔산동 한화생명 빌딩 옆의 소동상


멋지다.!!!







디렉토리 갯수 세기

현재 디렉토리만 :

 ls -l | grep ^d | wc -l


하위 디렉토리 포함 : 

  ls -lR | grep ^d | wc -l


파일 갯수 세기

현재 디렉토리만 :

 ls -l | grep ^- | wc -l 


하위 디렉토리 포함 : 

 ls -l | grep ^- | wc -l 


grep 옵션

^ 옵션은 정규표현식 메타문자로 행의 시작 지시자 이다.

^d 는 d로 시작하는 모든 행을 의미.


출처 : http://geundi.tistory.com/113


1. $JEUS_HOME/lib/datasource 디렉토리에 TIBERO JDBC 드라이버 jar 파일을 복사 한다.

($TIBERO_HOME/client/lib 디렉토리에 있음)


2. JEUSMain.xml 을 설정 한다.


<resource>
<data-source>
<database>
<!-- JEUS5 fix23 이전 -->
<!--
<vendor>others</vendor>
-->

 <!-- JEUS5 fix23 이후 --> 

<vendor>tibero</vendor>

<export-name>jdbc/datasource</export-name>
<data-source-class-name>
com.tmax.tibero.jdbc.ext.TbConnectionPoolDataSource
</data-source-class-name>
<data-source-type>
ConnectionPoolDataSource
</data-source-type>

<!-- TIBERO SID -->
<database-name>TBSVR</database-name>

<port-number>8629</port-number>
<server-name>tbsvr</server-name>
<user>username</user>
<password>userpwd</password>
<connection-pool>
<pooling>
<min>10</min>
<max>20</max>
<step>4</step>
<period>3600000</period>
</pooling>
<wait-free-connection>
<enable-wait>false</enable-wait>
<wait-time>10000</wait-time>
</wait-free-connection>
<max-use-count>0</max-use-count>
<dba-timeout>-1</dba-timeout>
<stmt-caching-size>-1</stmt-caching-size>
<stmt-fetch-size>-1</stmt-fetch-size>
</connection-pool>
</database>
</data-source>
</resource>


3. Unable to open a session 오류 발생 시

[2012.10.24 13:42:39][0][0_434] [container1-10] Fail to getPooledConnection in jdbc/datasource 
<<__Exception__>>
com.tmax.tibero.jdbc.TbSQLException: Unable to open a session.
at com.tmax.tibero.jdbc.msg.common.TbMsgError.readErrorStackInfo(TbMsgError.java:112)
at com.tmax.tibero.jdbc.msg.TbMsgEreply.deserialize(TbMsgEreply.java:32)
at com.tmax.tibero.jdbc.comm.TbStream.readMsg(TbStream.java:360)
at com.tmax.tibero.jdbc.comm.TbCommType4.logon(TbCommType4.java:2057)
at com.tmax.tibero.jdbc.TbConnection.openConnection(TbConnection.java:516)
at com.tmax.tibero.jdbc.TbDriver.connectInternal(TbDriver.java:73)
at com.tmax.tibero.jdbc.TbDriver.connect(TbDriver.java:52)
at com.tmax.tibero.jdbc.ext.TbDataSource.getConnection(TbDataSource.java:80)
at com.tmax.tibero.jdbc.ext.TbConnectionPoolDataSource.getPooledConnection(TbConnectionPoolDataSource.java:33)
at com.tmax.tibero.jdbc.ext.TbConnectionPoolDataSource.getPooledConnection(TbConnectionPoolDataSource.java:22)


설정에 문제가 없는데도 Unable to open a session 라는 오류가 발생한다면 현재 TIBERO 가 트라이얼 라이센스인지 확인 한다. 트라이얼 라이센스의 경우  커넥션 갯수에 제한이 있기 때문에  위와 같이<connection-pool> 아래의 <min> 값이 10일 경우 제한된 갯수를 초과하기 때문에 오류가 발생 한다.


해결방법 : 

1) <min> 값 을 3 정도로 줄여 준다.

2) 티베로 테크넷에서 데모라이센스를 발급 받는다.


Windows  에서 시작 메뉴를 일일이 찾아 가며 프로그램을 실행 할 필요 없이 키보드 만으로 프로그램을 실행 할 수 있도록 해주는 프로그램 이다.


기존에 비슷한 프로그램으로 SlickRun 이란 프로그램을 사용 했었는데,


Launchy 는 지정한 폴더 (기본은 StartMenu) 를 자동으로 인덱싱 (기본은 *.lnk ) 해서 키워드를 입력하면 해당하는 목록을 보여주는 식이고, SlickRun 은 일일이 사용자가 키워드와 실행할 프로그램을 입력해 주어야 한다는 점이 다르다. 


Windows 뿐만 아니라 OSX, LINUX 도 지원 한다.





설명 및 추천 글 :

http://lifehacker.com/5835770/the-best-application-launcher-for-windows


set markup html on spool on
spool result.xls

select object_name,object_type,created from user_objects

spool off
set markup html off spool off



출처 :

http://www.acehints.com/2011/07/export-and-create-excel-file-from.html


좀 더 자세히 알고 싶으면 : 

http://docs.oracle.com/cd/B28359_01/server.111/b31189/ch7.htm#CHDCECJG

stty


unix computer terminal 세팅을 변경 하기 위해서 사용 하는 명령어



stty -a


현재 세팅을 확인 한다.


stty erase ^H


백스페이스키를 눌러 지울 수 있게 한다.



자세한 내용은


정이님 블로그 (http://jungit.tistory.com/116) 를 참조.




필요한 것 만 할 줄 알면 된다. 


간 


Scroll Lock 버튼 두번


* 터널 


  1. 서버선택 하고 화살표 모양 작은 버튼 클릭
  2. 메뉴에서 console window 클릭
  3. 메뉴에서 open terminal window 클릭




* 터미널 한글 설정


  1. profile 에서 LANG 설정 (export LANG=ko_KR.IBM-eucKR)
  2. 터미널 메뉴에서 Encoding 선택
  3. EUC-KR 선택




1. transmission-daemon 설치

#sudo apt-get install transmission-daemon


2. 설정파일 수정

#sudo vi /var/lib/transmission-daemon/info/setting.json


"download-dir": "/home/allsunday/Downloads/Torrent/download"

transmission-daemon 을 실행하는 debian-transmission 사용자가 파일을 읽고 쓸 수 있는 디렉토리여야 한다. 

"rpc-enabled": true

"rpc-authentication-required": true

"rpc-username": 유저명

"rpc-password": 패스워드

rpc-username 은 웹관리자 화면에서 사용할 id

rpc-password 는 웹관리자 화면에서 사용할 id의 password, 평문으로 저장하면 자동으로 암호화 된다.

"rpc-whitelist-enabled": false

"watch-dir": "/home/allsunday/Downloads/Torrent/download"

"watch-dir-enabled": true

watch-dir 로 설정해 놓은 디렉토리에 토렌트파일을 복사해 놓으면 자동으로 다운로드가 진행 된다.


3. 재시작

#sudo service transmission-daemon restart


4. 다운로드 테스트

http://localhost:9091/transmission/web/ 으로 접속해서 다운로드 테스트를 해본다.

watch-dir 을 samba 로 공유한 뒤 토렌트파일을 복사하여 다운로드 테스트를 해본다.


내용 참조 : http://1000umbrellas.com/2010/10/04/updated-transmission-installationconfiguration-on-ubuntu-server

1. samba 설치 및 설정 수정

#sudo apt-get install samba

#sudo vi /etc/samba/smb.conf


맨 마지막에 아래를 추가 한다.


[allsunday]

        comment = allsunday

        path = /home/allsunday/share

        writeable = yes

        create mask = 0644

;       directory mask = 0755

;       browseable = yes

        valid users = allsunday


2. samba 사용자를 추가 (시스템에 추가된 사용자여야 한다.)

#sudo smbpasswd -a allsunday


3. samba 재시작

#sudo service smbd restart


내용 출처 : https://help.ubuntu.com/12.04/serverguide/samba-fileserver.html


4. 데스크탑에서 samba 설정 할 수 있는 관리도구 프로그램을 설치 한다.

#sudo apt-get install libuser1 python-libuser system-config-samba


내용 출처 : http://ssndwind.tistory.com/59


5. 심볼릭 링크가 안열릴 때에는 아래의 내용을 추가해 준다. (자세한 내용은 여기로...)

[globals]

follow symlinks = yes

wide links = yes

unix extensions = no


+ Recent posts