Monday, June 15, 2009

Internalization/unicode support dlm app anda: Part1

sekiranya Internationalization/UTF8 merupakan salah satu req applikasi anda. Di sini saya boleh membantu dengan memberi beberapa cadangan.
Dalam kes saya, applikasi saya mempunyai

1. Web
2. Background process
3. PDF report - jasperreport.

sblm memulakan project ada beberapa perkara asas perlu diambil antaranya kebolehan

pertamanya, kebolehan DB.
Std db hanya menyokong penyimpanan character sehingga latin character dan tidak menyokong unicode character. Untuk itu, sedikit tune/perubahan perlu dilakukan terhdp db terlebih dahulu.

cthnya db dev yg saya gunakan ialah mysql
sila baca link ini http://dev.mysql.com/doc/refman/5.0/en/charset-unicode.html

keduanya, kebolehan web framework.
Saya akan memilih web framework yg mempunyai sokongan i18n sedia-ada. ini akan memudahkan tugas saya.. cth web framework spt Struts, struts2.

ketiganya, kebolehan jdbc driver untuk menyokong unicode character
di dlm kes saya, saya menggunakan mysql. utk itu saya perlu menambah beberapa parameter pada jdbc driver
jdbc:mysql://localhost/test2?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8

Penambahan dibawah perlu dilakukan untuk menyokong unicode character.
useUnicode=true&characterEncoding=UTF-8



Sunday, June 14, 2009

serangan chickenpox

huhuhuhu.. aisyah dan bini aku kena chickenpox serentak.. nasib baik boleh work from home...
syukur.....

Thursday, October 30, 2008

how diff file in different dir

list_dir="
work_dir="
fs_folder="\screens"
nd_folder="\screens"


#cd $fs_folder
#echo `ls` > $work_dir/list_dir.txt
rm -R $work_dir

mkdir -m 755 $work_dir

for list in `cat $list_dir`
do
echo $list
cd $fs_folder\\$list
echo `ls *.jsp` > $work_dir/$list-ls.txt
for jspfile in `cat $work_dir/$list-ls.txt`
do
echo $jspfile
diff $fs_folder\\$list\\$jspfile $nd_folder\\$list\\$jspfile > $work_dir/$list-$jspfile-diff
done
done

cd $work_dir
rm *.txt

Monday, September 15, 2008

startup svnserve as service

I really tired off using svn through http protocol in my office here.
Then, today i tried to change to svn protocol instead of http protocol

let say my repos is c:\svn\project1

1. cd svn\project1\conf
2. I find svnserve.conf, i change that file according to below
My svnserve.conf looks like: 
 [general] 
 anon-access = none 
 auth-access = read 
 password-db = passwd 
 realm = My First Repositor


3. then, i find passw file and  change the file
my passwd file looks like:

[users]
fadhlan = fadhlan

4. i set the svn as a windows service 
sc create svn binpath= "\"C:\program files\Subversion\bin\svnserve.exe\" --service -r C:\svn" displayname= "Subversion Server" depend= Tcpip start= auto net start svn

5. then i make sure the service is running,telnet the svn port 3690. 


6. try to checkout using eclipse. For me, the url is svn://<-svn-ipaddress->/project1

7. done.. or maybe u can bringdown ur apache server





Sunday, September 14, 2008

Installation on SVN office completed

Thanks ttwangsa, 

was helping me for svn installation at my office today.. I took a few minutes to configure it. 
Thanks ttwangsa again.

Thursday, September 11, 2008