| 天's profileMy spaceBlogLists | Help |
|
My space上善若水,厚德载物! xuedipiaofei@hotmail.com Install LAMP quickly through yum/apt with the linux cd copy1. Import the key to the current system. For example under redhat. rpm –import /media/cdrom/RPM-GPG-KEY-redhat-release 2. Mount the cd files to the current system. mount –t ios9600 /media/RHEL5.3i386DVD /mnt/cdrom 3. Set the yum repository vim /etc/yum/repos.d/*.repo [rhel5-local] 4. Install apache, mysql, php yum install httpd, mysql-server, mysql, php, php-mysql 5. create a file with index.php in /var/www/html <?php phpinfo(); ?> 6. Browser the http://IP/index.php 7. Set mysql password mysqladmin –u –root password ‘newpassword’ 8. Start httpd, mysql and add them into start menu. service httpd start service mysqld start chkconfig httpd on chkconfig mysqld on March 20 MSChartI created some charts for our dashboard website using MSChart. MSChart is a control library which belonged to another company. And then MS acquired the company. The Chart Control API is object-oriented, extensible and highly flexible.
Chart Elemnets Overview
There is a bug in the control. There will be a “executing child request for ChartImg.axd” error sometimes. <add name="ChartImageHandler" preCondition="integratedMode" verb="POST,GET,HEAD" path="ChartImg.axd" <add path="ChartImg.axd"verb="POST,GET,HEAD"type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, Add the "POST" keywords into the place. We can use httphandler or localstroage to present the chart. I prefer to using httphandler to storage. <add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;deleteAfterServicing=false; Add the greed font to your web.config file. It can delete the images automatically. Enjoy it! :) February 17 Python 学习笔记版权声明:可以任意转载,但转载时必须标明原作者charlee、原始链接http://tech.idv2.com/2008/11/03/python-memo/以及本声明。
基本概念
运算符与表达式
控制流
函数
数据结构
例外
面向对象
模块
Linux vim configuraion for python1. Set term color Add the following command into /etc/profile export TERM=xterm-color 2. Download python.vim and copy it to vim installation folder such as /usr/share/vim/vim63/ 3. Create the .vimrc under the current user home directory such as root 4. Add the following command autocmd BufRead,BufNewFile *.py syntax on 5. Download pydiction plugin form vim official website and copy it into /usr/share/vim/vim63/tools Add the following command into the .vimrc file at the same time " python auto-complete code " Typing the following (in insert mode): " os.lis<Ctrl-n> " will expand to: " os.listdir( " Python 自动补全功能,只需要反覆按 Ctrl-N 就行了 if has("autocmd") autocmd FileType python set complete+=k~/.vim/tools/pydiction endif 6. Python_Fold to collapse python code. Download it and copy it into /usr/share/vim/vim63/plugin 7. Download taglist and copy it into /usr/share/vim/vim63/plugin. Taglist is close by default. You can use :Tlist to open taglist or add the following cmd into .vimrc file let Tlist_Auto_Open=1 8. Download Ctags and copy it into /usr/share/vim/vim63/. Run ctags –R to a worksapce. 9. Relate taglist and ctags. Add the following cmd into taglist.vim let Tlist_Ctags_Cmd="/usr/bin/ctags" 10. Load tags as defualt when vim is running. Add the following cmd into .vimrc :set tags=/workspace/tags |
|||
|
|