原创 [struts]Write struts-config.xml
A Struts application has to have a Struts application configuration file(hereafter configuration file). As is shown i
原创 [struts]Write Action Form classes and Action classes
Write ActionForm classes: An ActionForm class captures input form data that is entered by an end user. An ActionForm
原创 How to remove the tabs from MSN Messenger 7
1) Hit Start > Run and fire up regedit 2) Look for the section: HKEY_CURRENT_USER Software Microsoft MSNMessenger PerPa
原创 [struts]Write web.xml
Because a Struts application is a Web application, it has to follow the same rules. that any Web application has to f
原创 A example for Socket connect use Python
Server: import sockets=socket.socket(socket.AF_INET, socket.SOCK_STREAM)s.bind(('119.119.117.32',25001)) s.listen(5
原创 [Python]Install Django Web Framework with Mod_python
配置mod_python 1.使用apache_2.0.54-win32-x86-no_ssl.msihttp://archive.apache.org/dist/httpd/binaries/win32/ 2.安裝mod_python
原创 [Python]Converting Between Characters and Numeric Codes
ProblemYou need to turn a character into its numeric ASCII(ISO) or Unicode code, and vice versa. SolutionThat's what t
原创 [Python]Apache with Mod_python
apache是分步驟處理請求的,例如,第一步可能是確定用戶,接下來驗證用戶是不是允許訪問特定的文件,然後讀這個文件並把它發送到客戶端。 一個典型的
原创 [Python]Django Step by Step 筆記(一)
安裝:pyton setup.py install安裝完畢後, Django會自動在 [python install dir]/scripts目錄下安裝 django-admin.py。 生成項目目錄django-admin.py sta
原创 [Python]Django Step by Step 筆記(二)
創建 add.py: from django.http import HttpResponsetext = '''<form method="post" action="/add/"> <input type="text" name
原创 [Python]Queue -- A synchronized queue class
The Queue module implements a multi-producer, multi-consumer FIFO queue. It is especially useful in threads programmi
原创 [Python]Django Step by Step 筆記(三)
創建 list.py: #coding=utf-8from django.shortcuts import render_to_responseaddress= [ {'name': '張三', 'address':
原创 [Python]Sequence
In Python, string objects are immutable. Therefore, any operation on a string, including string concatenation, produce
原创 [Python]Processing a String One Character at a Time
ProblemYou want to process a string one character at a time. SolutionYou can build a list whose items are the string's
原创 SSH客戶端之SSH Secure Shell 的連接方法
SSH客戶端之SSH Secure Shell 的連接方法 1、運行環境 WINDOWS下安裝SSH客戶端,名字是SSHSecureShellClient-3.2.9.exe,可以到http://www.ssh.com/下載...