Differences between revisions 47 and 0
Deletions are marked like this. | Additions are marked like this. |
Line 80: | Line 80: |
* cause : [https://bugs.eclipse.org/bugs/show_bug.cgi?id=188968 Bug 188968 - [launcher] Eclipse fails on launch with -vmargs -Xmx750m] | * cause : [https://bugs.eclipse.org/bugs/show_bug.cgi?id=188968 Bug 188968 - /launcher/ Eclipse fails on launch with -vmargs -Xmx750m] |
몇 가지 사고의 조각들을 주워둡니다.
- Emacs 리소스
- Closure
- Using Jakarta Slide
- Hibernate
- XML
- BSF
- BPM/Workflow Management System/Petri Net/Pi Calculus/...
- SQL Join
- SQL Performance Tuning
- GRASP Pattern
- JSF
- Eclipse startup (win32) problem
- Mozilla Thunderbird
- Unix Tips
- Dot Project에서 Gantt 차트 한글 문제
Emacs 리소스
GNU Emacs for Win32 Build Project : I copied the dlls for image rendering to GNU emacs bin directories from the EmacsW32 bundled emacs...
Using cygwin telnet in win32 GNU Emacs
telnet works, but ftp doesn't work. (But Windows ftp.exe just works)
Using TRAMP ..
C-x C-f /<protocol>:<user id>@<host>:<remote path>
Emacs 22.2 for windows and Korean
add these commands to site-start.el to see Hangul correctly in the shell
-
;; below one line added for emacs-22.2 (setq coding-system-for-write 'euc-kr-dos) ;; below should not be set ;; (setq coding-system-for-read 'euc-kr-dos) ;; below lines added for emacs-22.2 (if (eq system-type 'windows-nt) (progn (defun my-shell-setup () (setq w32-quote-process-args "\"") (set-buffer-file-coding-system 'euc-kr-dos) (set-buffer-process-coding-system 'euc-kr-dos 'euc-kr-dos) ) (setq shell-mode-hook 'my-shell-setup) ))
-
Closure
Using Jakarta Slide
I've get into a need of a good repository. I found the Jakarta Slide can be a start point. Below is my gatherings on Slide.
Hibernate
The famous open-source OR mapper. UsingHibernate
XML
Java and XML .. JavaAndXML
BSF
Embedding some scripts into existing products is often required, and BSF should be a good scripting framework.
BPM/Workflow Management System/Petri Net/Pi Calculus/...
SQL Join
SQL Performance Tuning
GRASP Pattern
JSF
Eclipse startup (win32) problem
eclipse launch fails
error dialog : JVM terminated. Exit code=-1
console log : Error occurred during initialization of VM Could not reserve enough space for object heap
cause : Bug 188968 - /launcher/ Eclipse fails on launch with -vmargs -Xmx750m
How to fix : replace -showsplash with -nosplash in eclipse.ini file
Mozilla Thunderbird
Undelete messages from Mozilla Thunderbird
Mozilla stores messages in mbox format and it doesn't remove delete messages until compact folder is done.
In each message header, Mozilla uses extended header name X-Mozilla-Status to denote the status of the message. if you want to revive deleted mail message, change 0009 to 0001.
Unix Tips
In Unix, how can I split large files into a number of smaller files?
split -l 100000 jjj.log jjj-part-
Line is too long (usually for VI, specify line width)
fold -w 255 file > file.new
extract some parts of a file (from line to line)
sed -n "1222,13355 p" filename
Dot Project에서 Gantt 차트 한글 문제
gantt 차트에서 한글 지원 문제
-
-
사용언어 설정 : utf-8 1. dotproject/lib/jpgraph/src/jpgraph.php >>177_line추가 DEFINE("FF_GULIM",18); >>1796_line추가 FF_GULIM => array(FS_NORMAL=>'ngulim.ttf', FS_BOLD=>'ngulim.ttf', FS_ITALIC=>'ngulim.ttf', FS_BOLDITALIC=>'ngulim.ttf' ), >>4461_line수정 elseif($this->font_family >= FF_COURIER && $this->font_family <= FF_GULIM) { 2. dotproject/lib/jpgraph/src/jpgraph_gantt.php >>413_line수정 var $iFFamily=FF_GULIM,$iFStyle=FS_NORMAL,$iFSize=9; 3. dotproject/modules/tasks/gantt.php (task name과 project name 에서 utf8_decode 부분을 삭제) >> $name = strlen( $a["task_name"] ) > 65 ? substr( $a["task_name"], 0, 65 ).'..' : $a["task_name"] ; /* $name = strlen( utf8_decode($a["task_name"]) ) > 25 ? substr( utf8_decode($a["task_name"]), 0, 22 ).'...' : utf8_decode($a["task_name"]) ; */ utf8_decode 부분 때문에 한글로 원활히 출력이 안되는것으로 생각 됩니다. 그러므로 utf8_decode 부분을 빼버리면 정상적으로 출력 되네요.
-
-
dotproject 2.x 에서는 위와 유사한 방법으로 jpgraph.php 파일과 gantt.php을 고치고, lib/jpgraph/src/jpgraph_gantt.php 파일과 modules/tasks/gantt.php에서 FF_CUSTOM으로 지정되어 있는 부분들을 FF_GULIM으로 바꾸면 됩니다.
dotproject 2.x 에서 달력을 표시할 때, 한글로 된 월이 깨어지는 문제가 있는데 이것은 modules/calendar/calendar.class.php 파일에서 format("%M %Y") 로 되어있는 부분들에서 발생합니다. %M을 잘 한글화하면 되겠지만 급한데로 그냥 format("%Y/%m") 으로 바꿔서 쓰면 됩니다.