自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(155)
  • 资源 (8)
  • 收藏
  • 关注

转载 Output of esxtop defaults to non-interactive CSV with unknown TermInfo (2001448)

Output of esxtop defaults to non-interactive CSV with unknown TermInfo (2001448)SymptomsThe command-line performance analysis utility esxtop or resxtop unexpectedly emits comma-separated-value (CS...

2019-02-24 21:56:48 429

原创 使用LDTP+Pywinauto实现主机与虚拟机之间的拖拽(DnD: Drag and drop)自动化测试

主机和虚拟机之间的拖拽是一个常用功能,比如VMware Workstation, VMware Horizon View 的用户都可以通过拖拽实现主机和虚拟机之间的文件拷贝。最近我进行了调研,并实现在了VMware Horizon view上的DnD自动化测试,做一些经验总结。 为什么使用LDTP + Pywinauto?LDTP 是我常用的UI自动化测试框架,因此主体的对象识别操作都是用...

2019-02-17 16:36:38 1857

原创 日常Python中使用正则表达式处理字符串

平时常常使用Python的正则表达式进行一些字符串的处理,做一点简单记录:1. 查找字符串中的特定字符串:    >>> x = "s321sdd55ii">>> re.findall(r‘\d+', x)['321', '55']2. 把字符串按正则规则切片:>>> x = "sfas sadfaee d serass...

2019-02-16 10:36:33 1631

原创 Python:Relative import 相对路径 ValueError: Attempted relative import in non-package

包含相对路径import 的python脚本不能直接运行,只能作为module被引用。原因正如手册中描述的,所谓相对路径其实就是相对于当前module的路径,但如果直接执行脚本,这个module的name就是“__main__”, 而不是module原来的name, 这样相对路径也就不是原来的相对路径了,导入就会失败,出现错误“ValueError: Attempted relative impo

2012-03-09 19:35:57 64870 12

转载 Understanding Python's "with" statement

Fredrik Lundh | October 2006 | Originally posted toonline.effbot.orgJudging from comp.lang.python and other forums, Python 2.5’s newwithstatementseems to be a bit confusing even for experienc...

2019-03-05 14:16:04 277

原创 Install/Configure VLC on Suse11 SP3

1. Go to page to http://www.videolan.org/vlc/download-suse.html find the latest build2. Install from command line:sudo zypper ar http://download.videolan.org/pub/vlc/SuSE/ VLC //As my os is S

2013-08-04 11:16:46 1136

转载 Vim as Python IDE on windows

Vim as Python IDE on windows下载安装Python。从Vim的网站下载vim,建议下Self-installing executable的版本。 编辑vim的配置文件_vimrc拷贝vimrc_example里面的东东到_vimrc去掉_vimrc里面的source $VIMRUNTIME/vimrc_example.vim 设置中文支持

2013-05-27 07:44:46 789

转载 The terminal server has exceeded the maximum number of allowed clients

assume the target server is called "sleety", whose maximum number of remote clients has been met. We can issue the following commands in the command prompt.1.>> net use \\sleety /user:Administrat

2013-05-13 17:32:15 1681

转载 Mac OS X: 如何快速锁屏

http://blog.csdn.net/afatgoat/article/details/3891515这里所说的锁屏的意思是,当你离开你的电脑的时候,不想退出登录,希望运行的程序继续运行,只是不想别人使用你的电脑,这样临时锁住屏幕,当你准备再次使用的时候,只要输入登录密码就回到原来的桌面。和Windows里面的ScreenSaver要求密码一个意思,但是在OS X中好像可以有更多的选择

2013-03-28 13:18:29 820

转载 Win7无法安装IE10的常见问题和解决方法

微软面向全球7亿的Windows 7用户发布了IE10 For Windows 7版本,与IE9相比,IE10的性能提高了20%,被第三方机构评为当今市场上速度最快的现代浏览器。由于目前微软还没有开始向Windows 7用户推送IE10的升级补丁,想要立即体验IE10的用户仅能通过手动下载IE10安装包进行升级,但有些用户在下载后却无法正常安装,无法安装成功的原因有很多因素,本文将对几类常见的

2013-03-28 12:54:26 2507

转载 Windows Server 2012启用自动登录方法

http://benyouhui.it168.com/thread-2524716-1-1.html手动配置:运行 Control UserPasswords2-用户账号-勾选“要使用本计算机,用户必须输入用户名和密码”-输入您当前系统的密码即可登录脚本配置:[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVer

2013-03-26 20:47:16 17757

转载 如何在 Windows 8 設定開機啟動程式

http://www.dotblogs.com.tw/chou/archive/2012/09/12/74748.aspx補充:如果想要在 Windows 8 開機自動進入桌面,可下載檔案 顯示桌面.zip 解壓縮後得到 顯示桌面.scf 檔案,將檔案放到【啟動】資料夾中即可。 問題的來龍去脈我想在 Windows 8 設定開機啟動程式,該如何進行設定? 問題的發生原因

2013-03-26 20:43:28 1025

转载 如何在django中使用mako模板系统

如何在django中使用mako模板系统2009-03-26 23:391、安装mako:下载地址:http://www.makotemplates.org/download.html2、安装Django-mako下载地址:http://pypi.python.org/pypi/django-mako参考网址:http://code.google.com/p/django-

2013-02-03 11:38:54 2286

原创 BeautifulSoup

剖析对象 (BeautifulSoup或 BeautifulStoneSoup的实例)是深层嵌套(deeply-nested), 精心构思的(well-connected)的数据结构,可以与XML和HTML结构相互协调.剖析对象包括2个其他类型的对象,Tag对象,用于操纵像 ,这样的标签;NavigableString对象,用于操纵字符串,如"Page title"和"This is

2013-02-03 11:33:49 6756

原创 系统文件过大,解压等操作不能进行

modify /etc/security/limits:default:        fsize = 2097151        core = 2097151        cpu = -1        data = 262144        rss = 65536        stack = 65536        nofiles = 2000

2013-02-03 11:25:10 696

转载 Linux添加硬盘并分区格式化

一.Linux的硬盘识别 2.6 kernel以后,linux会将识别到的硬件设备,在/dev/下建立相应的设备文件.如: sda  表示第1块SCSI硬盘. hda  表示第1块IDE硬盘(即连接在第1个IDE接口的Master口上). scd0  表示第1个USB光驱. 当添加了新硬盘后,在/dev目录下会有相应的设备文件产生.cciss的硬盘是个例外,

2013-02-03 11:23:11 507

原创 Unix Administrator

The startup phases:• Bootstrap program execution• Kernel execution• rc system initialization• Terminal line initializationtwo main UNIX platforms:    Berkeley UNIX (also known as Ber

2013-02-03 11:20:12 2024

转载 linux下mount软驱/u盘/光驱命令

linux下mount软驱/u盘/光驱命令1,mount软驱:mount -t msdos /dev/fd0 /mnt 2,mount u盘:fdisk -l查看,然后mount -t vfat /dev/sda1 /mnt 3,mount光驱:mount /dev/cdrom /mnt 附件:mount其他类型(转贴) 学 习操作系统时我们都了解到文件系统是操

2013-02-03 11:14:58 771

转载 Linux 注册系统服务

(1)chkconfig先在/etc/init.d文件夹下添加服 务的启动、停止脚本然后运行命令“chkconfig --list”可以看到当前系统的所有服务并且看到服务的状态,例如:syslog 0:off 1:off 2:on 3:on 4:off 5:on 6:offtac 0:off 1:off 2:off 3:off 4:off 5:off 6:offtitan-se

2013-02-03 11:13:17 629

转载 Linux Find 命令精通指南

Linux Find 命令精通指南作者:Sheryl Calishhttp://www.oracle.com/technology/global/cn/pub/articles/calish-find.html简单介绍这一无处不在的命令的强大的方面以及混乱的方面。 2008 年 7 月发布Linux find 命令是所有 Linux 命令中最有用的一个,同时也是最混乱的一个。它

2013-02-03 11:05:27 485

转载 unix下查看文件格式

os格式文件如果不是采用ascii格式传输到unix系统时,会在每行的结尾多一个^M,当然也有可能看不到,但是在vi的时候,会在下面显示此文件的 格式,比如 "dos.txt" [dos] 120L, 2532C 字样,表示是一个[dos]格式文件,如果是MAC系统的,会显示[MAC],因为文件格式的原因有时会导致我们的unix程序,或者shell程序出现 错误,那么需要把这些dos文件格式转换成

2013-02-03 10:54:27 804

转载 Linux下jdk环境变量的配置

一.下载JDK登录Sun的官网下载jdk-6u17-linux-i586-rpm.bin二.安装JDK1.增加jdk-6u17-linux-i586-rpm.bin文件的可执行权限#root> chmod 755 jdk-6u17-linux-i586-rpm.bin2.执行jdk-6u17-linux-i586-rpm.bin#root> ./ jdk-6u17-li

2013-02-03 10:53:08 429

转载 Solaris 创建用户

useradd wwg  passwd wwg  000000 //以下两行是密码  000000  mkdir -p /export/home/ouyang  chown ouyang /export/home/ouyang //改变目录所有者为ouyang  然后修改下一下/etc/passwd文件(可以用vi /etc/passwd)  把::/home/ouya

2013-02-03 10:51:43 561

转载 FTP的ASCII和Binary两种传输方式有何不同

ASCII模式和Binary模式的区别是回车换行的处理,Binary模式不对数据进行任何处理,ASCII模式将回车换行转换为本机的回车字符,比如:UNIX下是\n,Windows下是\r\n,Mac下是\r。 ASCII模式下会转换文件,不能说是不同系统对回车换行解释不同,而是不同的系统有不同的行结束符。UNIX系统下行结束符是一个字节,即十六进制的 0A,而Windows的系统是两个字节

2013-02-03 10:50:15 577

原创 LINUX 配置IP

设置IP和子网掩码:ifconfig eth0 IP值 netmask maskIP up设置默认网关: route add default gw gatewayIP route add -hostname default gw gatewayIP关闭防火墙:/etc/init.d/iptables stop

2013-02-03 10:41:27 353

转载 REST和SOAP Web Service的比较

REST 似乎在一夜间兴起了,这可能引起一些争议,反对者可以说REST是WEB诞生之始甚而是HTTP出现之日就相伴而生的原则。但是毋庸置疑的事实是,在 Google和Yahoo等网络巨头发布的相同功能的Web Service API中,REST无疑受到更多的青睐,因此是不是可以这样说:RPC在一夜之间衰落了?在一篇作业的小文章里讨论整套RPC的原理,无疑太过庞大了,况且RPC在Web Se

2013-02-03 10:34:48 718

转载 DOS 命令大全

DOS命令大全   (一) MD——建立子目录        1.功能:创建新的子目录       2.类型:内部命令       3.格式:MD[盘符:][路径名]〈子目录名〉       4.使用说明:       (1)“盘符”:指定要建立子目录的磁盘驱动器字母,若省略,则为当前驱动器;       (2)“路径名”:要建立的子目录的上级目录名,若缺省则建在当

2013-02-03 10:31:14 351

转载 DB2 Backup and Restore

一:在源数据库上的操作:(本例为solaris9)#su – db2inst1$pwd/ export/home2/db2inst1$mkdir cws3$db2pd –db cws3 (查看cws3数据库的配置信息,例如表空间的位置,日值的位置等等)$ db2 get dbm cfg (查看原来cws3数据库的建库信息,如库的编码,区域等)说明:数据库restore时

2013-02-03 10:27:50 822

转载 DB2 常用命令

Avoid using force application all:db2 => list applicationsAuth Id  Application    Appl.      Application Id                                                 DB       # of         Name

2013-02-03 10:26:08 743

转载 java访问数据库

此文中的代码主要列出连接数据库的关键代码,其他访问数据库代码省略 1、Oracle8/8i/9i数据库(thin模式) Class.forName("oracle.jdbc.driver.OracleDriver").newInstance(); String url="jdbc:oracle:thin:@localhost:1521:orcl"; //orcl为数据库的SID

2013-02-03 10:21:02 453

转载 Managing Access with CVS

IntroductionCVS is the Concurrent Versioning System - the most popular free source code manager around. Pretty much every open source or free software developer has at some time or other crossed swo

2013-02-03 09:16:44 915

转载 Getting Started with CVS

Table Of Contents 1. Explain yourself, sir.1.1 What is CVS?1.2 Why should I use CVS?1.3 Where can I get CVS?2. Down to Business then2.1 How does CVS work?2.2 Terminology2.3 Getting Sta

2013-02-03 09:14:07 402

原创 修改分区大小on Aix

1. chfs -a size=10G /home2. use SMIT to modify from console.

2013-02-01 16:04:17 359

转载 Install VNC on Aix

1. 下载VNC for AIX虽然标明是for AIX51的,但AIX53和AIX61仍可用。2. 安装RPM:rpm -Uhv vnc-3.3.3r2-3.aix5.1.ppc.rpm3.编辑配置文件:# which vncserver/usr/bin/X11/vncserver#chmod 777 /usr/binX11/vncservervi /usr/bi

2013-02-01 16:03:20 425

转载 AIX上解压缩.tar.Z, .tar.gz, .zip及.tgz

在AIX上最常见的压缩文件就是.tar檔了,哈~ 因为太常见,这个偶就不多说。 而除了tar文件以外,有时会遇到数据是用其它的压缩文件格式,所以偶顺手整理了一些常见的压缩文件格式,在AIX要怎么解压缩 :·    .tar.Z file format o  压缩 § # compress filename.tar o  解压 § # zcat filename.tar.Z

2013-02-01 16:01:23 712

转载 为什么文件路径 Program Files 可以写成 Progra~1

文件夹(sub-directry)名称,以前是不允许带空白的,后来允许带空白,但由于有了空白,许多命令出现二义性,于是采用双引号括起来的办法。例如: cd Documents and Settings 按老定义 等于 CD Documents, CD 命令找不到名叫Documents 的 directry 于是采用双引号: cd “Documents and Setting

2013-01-31 09:41:49 483

转载 为esxi开启ssh

为esxi开启sshPosted by sbear in 系统管理 esxi作为一个精简版的esx,把ssh给默认关闭了,控制台也感觉专业了很多,可以使用下面方法打开ssh服务。You have to have direct access to console1.) While you are at the console hit ALT + F12.) Type in ” u

2013-01-30 23:17:30 481

转载 Python异常处理

Python异常处理2008年10月25日 星期六 15:56Python异常处理 (2008-07-08 00:15:17)标签:python 异常处理 exception     分类:学习笔记       Python的异常处理能力是很强大的,可向用户准确反馈出错信息。在Python中,异常也是对象,可对它进行操作。所有异常都是基类Exception的成员。所有异常都从基

2013-01-30 23:14:15 472

转载 Python Import机制

Python Import机制文章分类:Python编程模块的搜索路径模块的搜索路径都放在了sys.path列表中,如果缺省的sys.path中没有含有自己的模块或包的路径,可以动态的加入(sys.path.apend)即可。下面是sys.path在Windows平台下的添加规则。1、sys.path第一个路径往往是主模块所在的目录。在交互环境下添加一个空项,它对应当前目录

2013-01-30 23:12:07 413

转载 Python模块包中__init__.py文件的作用

用django做开发已经一年多的时间,但基本没注意python模块中__init__.py文件存在的意义,偶然看到对它的介绍吓一大跳,这个文件太重要了模块包:包通常总是一个目录,目录下为首的一个文件便是 __init__.py。然后是一些模块文件和子目录,假如子目录中也有 __init__.py 那么它就是这个包的子包了。差不多就像这样吧:Package1/ __init_

2013-01-30 23:11:20 735

Web2py 手册中文版

Web2py manual 找到一个中文版,分享给大家。

2015-11-01

Addison Wesley: Performance Analysis for Java™ Web Sites

How well a Web site performs while receiving heavy user traffic is an essential factor in an organization's overall success. How can you be sure your site will hold up under pressure? Performance Analysis for Java(TM) Web Sites is an information-packed guide to maximizing the performance of Java-based Web sites. It approaches these sites as systems, and considers how the various components involved, such as networks, Java(TM) Virtual Machines, and backend systems, potentially impact overall performance. This book provides detailed best practices for designing and developing high-performance Java Web applications, and instructions for building and executing relevant performance tests to gauge your site's ability to handle customer traffic. Also included is information on how to use the results of performance testing to generate accurate capacity plans. Readers will find easy-to-understand explanations of fundamental performance principles and terminology. The book runs through performance profiles for common types of Web sites, including e-commerce, B2B, financial, and information exchange. Numerous case studies illustrate important ideas and techniques. Practical throughout, the book also offers a discussion on selecting the right test tools and troubleshooting common bottlenecks frequently revealed by testing. Other specific topics include: Performance best practices for servlets, JavaServer Pages(TM), and Enterprise JavaBeans(TM) The impact of servlets, threads, and queuing on performance The frozen Web site danger Java(TM) Virtual Machine garbage collection and multithreading issues The performance impact of routers, firewalls, proxy servers, and NICs Test scenario and script building Test execution and monitoring, including potential pitfalls Tuning the Web site environment Component monitoring (servers, Java(TM) Virtual Machines, and networks) Symptoms and solutions of common bottleneck issues Analysis and review of performance test results Performance Analysis for Java(TM) Web Sites not only provides clear explanations and expert practical guidance, it also serves as a reference, with extensive appendixes that include worksheets for capacity planning, checklists to help you prepare for different stages of performance testing, and a list of performance-test tool vendors.

2010-08-02

Rational Application Developer programmer

Rational Application Developer programmer

2008-09-16

How Tomcat Works

How the application server Tomcat works.

2008-09-16

Learning The VI Editor

Learning The VI Editor

2008-09-16

Learning the bash Shell

Learning the bash Shell

2008-09-16

REST_cn

架构风格与基于网络的软件架构设计

2007-12-08

10个JAVA项目突破性提高你的编程技巧

10个JAVA项目突破性提高你的编程技巧

2007-08-22

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除