Using iMacros add-on to interactive with brownser: automatically input text, redirect...
https://addons.mozilla.org/ja/firefox/addon/3863
very useful for page with many input boxs, many times access.
Showing posts with label Common. Show all posts
Showing posts with label Common. Show all posts
Oct 9, 2007
Oct 3, 2007
Tiếng việt trên Fedora
Sử dụng scim cho nhu cầu soạn thảo tiếng việt trên linux
$ yum install scim scim-m17n m17n-db m17n-lib m17n-db-vietnamese
$ cd /usr/share/m17n
$ wget http://vnlinux.org/vi-telex.mim
$ yum install scim scim-m17n m17n-db m17n-lib m17n-db-vietnamese
$ cd /usr/share/m17n
$ wget http://vnlinux.org/vi-telex.mim
Oct 2, 2007
Decompress CHM
Using archmage to convert ebook from CHM format to html format
$ yum -y install archmage
$ archmage file.chm directory
$ yum -y install archmage
$ archmage file.chm directory
Sep 18, 2007
Convert string to html table
#!/bin/sh
sed -e '/^[A-Za-z0-9]*[^\:]$/{
d
}' < source_file > tmp_file
echo "<table>" > destination_file.html
sed -e '/:/{
s/^/<tr><td>/g
s/\:/<\/td><td>/g
s/$/<\/td><\/tr>/g
}' < tmp_file >> destination_file.html
echo "</table>" >> destination_file.html
sed -e '/^[A-Za-z0-9]*[^\:]$/{
d
}' < source_file > tmp_file
echo "<table>" > destination_file.html
sed -e '/:/{
s/^/<tr><td>/g
s/\:/<\/td><td>/g
s/$/<\/td><\/tr>/g
}' < tmp_file >> destination_file.html
echo "</table>" >> destination_file.html
Sep 14, 2007
SED notes
Replace in sed
sed -e '/pattern/{
s/old1/new1/g
s/old2/new2/g
}' < source_file > destination_file
sed -e '/pattern/{
s/old1/new1/g
s/old2/new2/g
}' < source_file > destination_file
Aug 14, 2007
Date in shell script
Date in shell script
"date +%d" -->"31"
"date +%y" -->"02"
"date +%m" -->"03"
"date +%a" --> "Sun"
"date +%b" --> "Mar"
"date +%c" -->"03/31/02 00:50:08"
"date +%h" -->"Mar"
"date +%j" -->"090"
"date +%l" -->"12"
"date +%p" -->"AM"
"date +%r" -->"12:54:29 AM"
"date +%s" -->"1017536118"
"date +%w" -->"0"
"date +%x" -->"03/31/02"
"date +%d" -->"31"
"date +%y" -->"02"
"date +%m" -->"03"
"date +%a" --> "Sun"
"date +%b" --> "Mar"
"date +%c" -->"03/31/02 00:50:08"
"date +%h" -->"Mar"
"date +%j" -->"090"
"date +%l" -->"12"
"date +%p" -->"AM"
"date +%r" -->"12:54:29 AM"
"date +%s" -->"1017536118"
"date +%w" -->"0"
"date +%x" -->"03/31/02"
Aug 12, 2007
Change hostname and ip
Change hostname and ip as /etc/hosts file of linux
C:\WINDOWS\system32\drivers\etc\
C:\WINDOWS\system32\drivers\etc\
Aug 4, 2007
Aug 3, 2007
Japanese font for Linux
Download language package from
http://www.adobe.com/products/acrobat/acrrasianfontpack.html
And
$ tar xzf FontPack708_jpn_i386-linux.tar.gz
$ cd JPNKIT/
$ ./INSTALL
http://www.adobe.com/products/acrobat/acrrasianfontpack.html
And
$ tar xzf FontPack708_jpn_i386-linux.tar.gz
$ cd JPNKIT/
$ ./INSTALL
Aug 1, 2007
Install Subversion with Apache
After your system is up to date go get apache 2.0, subversion and webdav module
yum install httpd
yum install subversion
yum install mod_dav_svn
Now we need to create the directory for the repository:
mkdir /usr/local/svn
Now we need to create the repository
svnadmin create --fs-type fsfs /usr/local/svn
svn import /tmp/webqs/ file:///usr/local/svn/webqs/ -m "Initial import"
We need to configure apache
vi /etc/httpd/conf/httpd.conf
add
<location /repos>
DAV svn
SVNPath /usr/local/svn
# how to authenticate a user
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /etc/svn-auth-file
# For any operations other than these, require an authenticated user.
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</Location>
Create a user and password (if you want to create more users leave out the -c switch, just use -m)
htpasswd -cm /etc/svn-auth-file huusan
New password: *****
Re-type new password: *****
Adding password for user huusan
Restart httpd service
# service httpd restart
After it boots back up open a web browser to your subversion machine (http://127.0.0.1/repos) it will prompt you for your user name and password and there you go.
yum install httpd
yum install subversion
yum install mod_dav_svn
Now we need to create the directory for the repository:
mkdir /usr/local/svn
Now we need to create the repository
svnadmin create --fs-type fsfs /usr/local/svn
svn import /tmp/webqs/ file:///usr/local/svn/webqs/ -m "Initial import"
We need to configure apache
vi /etc/httpd/conf/httpd.conf
add
<location /repos>
DAV svn
SVNPath /usr/local/svn
# how to authenticate a user
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /etc/svn-auth-file
# For any operations other than these, require an authenticated user.
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</Location>
Create a user and password (if you want to create more users leave out the -c switch, just use -m)
htpasswd -cm /etc/svn-auth-file huusan
New password: *****
Re-type new password: *****
Adding password for user huusan
Restart httpd service
# service httpd restart
After it boots back up open a web browser to your subversion machine (http://127.0.0.1/repos) it will prompt you for your user name and password and there you go.
Jul 8, 2007
Install VNCserver in Fedora Core 7
- Installation
$ yum -y install vnc*
- Starting with no configuration file
$ vncserver :1
Only xterm interface
$ vncserver -kill :1
to kill display 1
- Configuration
$ vi ~/.vnc/xstartup
Comment
twm &
And append
init 5
startkde &
Note: init 5 is necessary only when your server start with runlevel other than 5
$ yum -y install vnc*
- Starting with no configuration file
$ vncserver :1
Only xterm interface
$ vncserver -kill :1
to kill display 1
- Configuration
$ vi ~/.vnc/xstartup
Comment
twm &
And append
init 5
startkde &
Note: init 5 is necessary only when your server start with runlevel other than 5
Jul 7, 2007
Jul 4, 2007
rpm
Check what postgres packages are installed:
rpm -qa | grep -i postgres
Uninstall postgres:
rpm -e --nodeps `rpm -qa| grep -i postgres`
rpm -qa | grep -i postgres
Uninstall postgres:
rpm -e --nodeps `rpm -qa| grep -i postgres`
Jun 25, 2007
Cài đặt Unikey trên Fedora
Download Unikey (*.rpm file) từ http://www.unikey.org/linux.php
# rpm -ihv *.rpm
Sau khi cài đặt Unikey, hãy đăng xuất (log out) rồi đăng nhập (login) trở lại. Chạy "unikey", bạn sẽ sử dụng được Unikey ngay lập tức mà không phải làm gì nữa. Nếu không ở trong trường hợp này, hãy thử các bước sau:
- Thêm các dòng sau vào tập tin ~/.bash_profile hoặc ~/.bashrc:
export XMODIFIERS="@im=unikey"
export GTK_IM_MODULE="xim"
- Đăng nhập lại
- Chạy unikey
# unikey
Chú ý:
Sau khi bạn cài đặt Unikey sẽ ảnh hưởng đến môi trường tiếng nhật bạn đang dùng
# rpm -ihv *.rpm
Sau khi cài đặt Unikey, hãy đăng xuất (log out) rồi đăng nhập (login) trở lại. Chạy "unikey", bạn sẽ sử dụng được Unikey ngay lập tức mà không phải làm gì nữa. Nếu không ở trong trường hợp này, hãy thử các bước sau:
- Thêm các dòng sau vào tập tin ~/.bash_profile hoặc ~/.bashrc:
export XMODIFIERS="@im=unikey"
export GTK_IM_MODULE="xim"
- Đăng nhập lại
- Chạy unikey
# unikey
Chú ý:
Sau khi bạn cài đặt Unikey sẽ ảnh hưởng đến môi trường tiếng nhật bạn đang dùng
May 22, 2007
Services
A service is a function or some processing logic or business processing that is well-defined, self-contained, and does not depend on the context or state of other services.
Well Defined
An expression is called "well defined" (or unambiguous) if its definition assigns it a unique interpretation or value.
Loose coupling
Loose coupling describes a resilient relationship between two or more systems or organizations with some kind of exchange relationship.
In Web Services or Service Oriented Architecture, loose coupling may mean simply that the implementation is hidden from the caller.
In Web Services or Service Oriented Architecture, loose coupling may mean simply that the implementation is hidden from the caller.
May 18, 2007
Software Architecture
A software architecture is a set of statements that describe software components and assigns the functionality of the system to these components. It describes the technical structure, constraints, and characteristics of the components and the interfaces between them. The architecture is the blueprint for the system and therefore the implicit high-level plan for its construction.
(Enterprise SOA: Service-Oriented Architecture Best Practices)
(Enterprise SOA: Service-Oriented Architecture Best Practices)
Subscribe to:
Posts (Atom)