Wednesday, December 03, 2008

Linux renew ip command

The -r flag explicitly
releases the current lease, and once the lease has been released, the
client exits. For example, open terminal and type the command:

$ sudo dhclient -r

Now obtain fresh IP:

$ sudo dhclient


There is no need to restart network service. Above command should
work with any Linux distro such as RHEL, Fedora, CentOS, Ubuntu and
others. On a related note you can also try out the following commands:

# ifdown eth0

# ifup eth0

# /etc/init.d/network restart


OR

# /etc/init.d/networking restart

Tuesday, September 09, 2008

Some tech books read recently


  • Troubleshooting Oracle Performance

Very comprehensive.


  • Effective Java Second Edition


Provide some simple and nice programming tips


  • Scrum and XP from the Trenches

Introductory book

  • Ask Tom 2007

Too many contents

Thursday, August 28, 2008

The web security tools

netcat - a featured networking utility which reads and writes data across
network connections, using the TCP/IP protocol.

http://netcat.sourceforge.net/

nmap - a free and open source (license) utility for network exploration or
security auditing

http://nmap.org/

paros - a web proxy
for people who need to evaluate the security of their web
applications


http://www.parosproxy.org/index.shtml

Wednesday, July 30, 2008

Develop the web application running on google app engine


My Example

http://yyang-hhong.appspot.com/


Required libraries

1. simplejson
setup.py install
2. prototype javascript library



Sunday, July 27, 2008

How to view PDF file in windows mobile

Most of PDF files are non-tagged files which text cannot be wrapped automatically, but you can use Adobe Acrobat to convert them to tagged file, and here is the instruction.

Guide to Creating Accessible PDF Files with Adobe Acrobat 5


Friday, July 18, 2008

Setup the automation test in windows with using CYGWIN

Some required libraries:

1. openssh
http://www.netadmintools.com/art516.html
2. apache httpd
3. sendmail - ssmtp, mutt
4. cron
5. cygrunsrv
6. vim

Tips:
1. For launching the ANT windows version, use dos2unix to convert the file $ANT_HOME/bin/ant

2. use ' od -c more ' to check if the file contains invisible characters

3. use tr to remove the invalid character, such as DOS escape character

echo `p4 counter $BRANCH_COUNTER_NAME` > $UNIX_TEMP_HOME/output-$BRANCH_COUNTER_NAME
DAS_COUNTER=`tr -d '\r' < $UNIX_TEMP_HOME/output-$BRANCH_COUNTER_NAME` 4. start and stop Apache httpd /usr/sbin/httpd.exe kill -TEAM 'cat /var/run/httpd.pid' 5. install cron and view logs cron-config /usr/bin/cronevents.exe 6. solve the cron error like 'can't switch user context' change the owner for all of files used by cron 7. ssh client can not access the windows network drive, but Cygwin can. the reason is because sshd service is running as LOCAL SYSTEM ACCOUNT.


8. cron job cannot access the existing windows network drive, but you can mount it at the beginning of the cron scripts, for instance

net use l: //test_machine/folder /user:test_user test_password

9. Cygwin Doesn't Register All Environment Variables When Using SSH, and here is a solution

http://smithii.com/node/44

Some good tools for Windows Mobile

I think the best reader for Windows Mobile is IE since it can display the html content with one column layout so user don’t have to move the content horizontally.

I have tried a couple of other reader such as Adobe reader, Text Reader, but unfortunately both
of them don’t support one column layout very well.


And there are a couple of tools that could convert the documents to html doc.



PDF2HTML - convert PDF to html

CHMUNPACKER - convert CHM to html

posting blog with using scribeFire

cool firefox addon!