测试中用到的MySQL命令
摘要:Restart mysql:sudo /etc/init.d/mysql restart;mysql -uroot -proot <database> #connect to mysqlmysql> use <database>mysql> show tables;mysql> select * from <table>;mysql> delete from <table> where <condition>;mysql> desc <table>; #表结构mysql> show va
阅读全文
posted @
2011-04-27 15:34
-Anny-
阅读(384)
推荐(0)
How to get rid of 'Enter password to unlock your login keyring' in Ubuntu(转)
摘要:http://karuppuswamy.com/wordpress/2010/06/18/enter-password-to-unlock-your-keyring-prompt-in-ubuntu/Ubuntu uses Centralized password management tool called Seahorse. This tool is a front end GUI to GNOME’s keyring management system. In simple this tool stores all passwords with a master password wh
阅读全文
posted @
2011-04-25 18:19
-Anny-
阅读(2980)
推荐(0)
顶级域名后缀列表(转)
摘要:http://www.net.cn/service/faq/yuming/ymzc/200708/2463.html正则表达简单验证域名: /^[0-9a-zA-Z\u4E00-\u9FA5-]+[\.a-z\u4E00-\u9FA5]*\.[a-z\u4E00-\u9FA5]{2,6}$/.test(domainName)国际域名.com:商业机构,任何人都可以注册; .edu:教育机构; .gov:政府部门; .int:国际组织; .mil:美国军事部门; .net:网络组织,例如因特网服务商和维修商,现在任何人都可以注册; .org:非盈利组织,任何人都可以注册; .biz:商业; .i
阅读全文
posted @
2011-04-21 15:34
-Anny-
阅读(2125)
推荐(0)
\u4E00-\u9FA5意义
摘要:unicode编码,一种全世界语言都包括的一种编码。这是一个匹配中文字符也就是汉字的表达式 , \u 的意思是 Unicode,也就是双字节的字符,汉字就是双字节的
阅读全文
posted @
2011-04-21 15:32
-Anny-
阅读(1138)
推荐(0)
URL Redirection(转)
摘要:http://en.wikipedia.org/wiki/URL_redirectionURL redirection, also called URL forwarding and the very similar technique domain redirection also called domain forwarding, are techniques on the World Wide Web for making a web page available under many URLs.Contents[hide]1 Purposes1.1 Similar domain na
阅读全文
posted @
2011-04-21 09:48
-Anny-
阅读(1133)
推荐(0)
DNS Forwarding-HTTP Redirect(转)
摘要:From http://www.mtgsy.net/kb/DNS/Advanced_http_redirects_using_the_dns_editing_pageWhilst the management panel can provide 'simple' web forwarding, there are sometimes cases where more advanced web forwarding is required. Examples are forwarding a naked domain (just the domain name part with
阅读全文
posted @
2011-04-20 14:45
-Anny-
阅读(737)
推荐(0)
DNS Forwarding(转)
摘要:From http://www.simpledns.com/help/v50/index.html?df_forward.htmWhen Simple DNS Plus receives DNS request for a domain name configured for forwarding (Options dialog / DNS / Forwarding section), it skips the normal DNS resolution process and instead forwards the DNS request to the specified DNS ser
阅读全文
posted @
2011-04-19 11:48
-Anny-
阅读(1143)
推荐(0)
PS-Process Status
摘要:From http://www.linux.ie/newusers/beginners-linux-guide/ps.php1. What does 'ps'mean?ps is the shortage for Process Status. The command should be used to display thecurrently running processes on Unix/Linux systems. If you know the 'Task-Manager'which pops up under Windows NT/2000/XP
阅读全文
posted @
2011-04-15 15:39
-Anny-
阅读(349)
推荐(0)
Valid Domain Name
摘要:http://www.hscripts.com/tutorials/web/domain-characters.phpDomain Name: A Domain Name can have alphabets, numbers and hyphen (-).The following are the main criteria or characteristics that a domain name can have.a) Alphabets are accepted (e.g: withfriendship).b) Numbers are accepted (e.g: 12343121).
阅读全文
posted @
2011-04-11 13:37
-Anny-
阅读(375)
推荐(0)
System Information Record (HINFO)(转)
摘要:http://www.zytrax.com/books/dns/ch8/hinfo.htmlAllows definition of the Hardware type and Operating System (OS) in use at a host. For security reasons these records are rarely used on public servers. If a space exists in the field it must be enclosed in quotes. Single space between CPU and OS parame
阅读全文
posted @
2011-04-11 10:40
-Anny-
阅读(245)
推荐(0)
Start of Authority Record (SOA) (转)
摘要:http://www.zytrax.com/books/dns/ch8/soa.htmlThe SOA defines global parameters for the zone (domain). There is only one SOA record allowed in a zone file.name ttl class rrtype name-server email-addr (sn ref ret ex min)example.com. IN SOA ns.example.com. hostmaster.example.com. ( 2003080800 ; sn = ser
阅读全文
posted @
2011-04-08 16:52
-Anny-
阅读(687)
推荐(0)
DNS Record Format and Types
摘要:http://en.wikipedia.org/wiki/List_of_DNS_record_typeshttp://www.zytrax.com/books/dns/ch8/工作中需要理解DNS Resource Record的相关信息,目前把使用的11种record整理一下,供开发和测试更好的理解产品,不至于感觉在云里雾里,从而有助于开发高质量的产品。 RR Type Value RFC DescriptionSOA 6 RFC 1035 Start of Authority. Defines the zone name, an e-mail contact and various t
阅读全文
posted @
2011-04-08 15:26
-Anny-
阅读(613)
推荐(0)
MySQL 连接本地数据库、远程数据库命令
摘要:一、MySQL 连接本地数据库,用户名为“root”,密码“123”(注意:“-p”和“123” 之间不能有空格) C:\>mysql -h localhost -u root -p123 二、MySQL 连接远程数据库(192.168.0.201),端口“3306”,用户名为“root”,密码“123” C:\>mysql -h 192.168.0.201 -P 3306 -u root -p123 三、MySQL 连接本地数据库,用户名为“root”,隐藏密码 C:\>mysql -h localhost -u root -p Enter password: 四、MySQ
阅读全文
posted @
2011-04-07 14:08
-Anny-
阅读(11631)
推荐(0)
case review点滴(转)
摘要:Case Review的目的是进行查漏补缺,对需求达成一致认识。http://hi.baidu.com/beiyu95/blog/item/47203bf2c42db7cc0b46e07a.htmlcase review是对case进行的检查和补充,寻找到case的遗漏、与MRD不符的地方、三方理解不一致的地方、等等。在时间有限时,我们怎么做呢:1. 关注优先级最高的模块;2. 关注最容易出错的地方,包括理解错误、遗漏、关键路径等。3. 检查每个功能模块特殊的操作、与其他模块有关联(包括后台)的操作;4. 关注功能点之间的关联测试用例;5. 关注case本身的完整性,是否对同一功能点进行测试的
阅读全文
posted @
2011-04-06 11:48
-Anny-
阅读(369)
推荐(0)
Bug分析:为bug预防奠定基础 (转)
摘要:http://blog.csdn.net/KerryZhu/archive/2006/11/09/1375341.aspx1.引言:生产软件的企业安排很多人来测试它们的软件产品。测试的目的就是发现bug(缺陷,defect)以便修正它们。正常情况是尽快处理可能的bug,从而减少修正bug的成本。因为,众所周知,bug越早被发现并修正,所消耗的资源越少。问题是在很多情况下,由于修正已发现的bug,测试过程不得不停顿下来。那么,以目前正忙于软件产品测试的同样资源来促进组织长期的质量目标不是更好?为了做到这一点,我们应该尽快地提前发现可能的bug。就像克劳士比(Philip Crosby)几年前所说
阅读全文
posted @
2011-04-06 11:44
-Anny-
阅读(252)
推荐(0)
软件质量保证的最佳实践之一:Code review和Case review (转)
摘要:http://www.wangchao.net.cn/bbsdetail_522476.html软件质量是构建起来的,由软件开发的整个过程质量所决定的,软件质量肯定不是通过测试测出来的。所以软件缺陷的预防自始至终是重要的。除了缺陷分析,另外一个很重要的实践就是:代码复审(code review)和测试用例的复审(Test Case review)。 1.Code review 在IBM、微软等很多公司都有一个很好的实践,那就是Code review - 代码复审。这种代码审查的过程,不是将代码发给某一个人或某几个人去看,而是强调程序员自己定期走上台,向其他人讲解自己源程序的活动。因为要向大家讲
阅读全文
posted @
2011-04-06 11:42
-Anny-
阅读(455)
推荐(0)
Ruby on Rails教程 和Ruby&Rails 入门大全,对新手很有用(转)
摘要:http://tangrengg.iteye.com/blog/37752 可以到作者的blog里下载学习资料自己常用的gem包:数据库驱动mysql , sqlite3-ruby, postgre-pr,名字不言而喻。很遗憾并不是所有的Ruby库都是通过gem方式安装,比如针对Oracle的ruby-oci8驱动,得直接去Rubyforge下。图形库 Rmagick是非常优秀的图像处理库,需要另外安装ImageMagick或GraphicsMagick。该库常被用于生成缩略图这样的任务。gruff是基于Rmagick的图表生成工具。产生的图像颇具Apple设计风格神韵,还支持多种配色模板,颇
阅读全文
posted @
2011-04-02 18:00
-Anny-
阅读(1690)
推荐(0)
动态语言
摘要:http://tech.it168.com/j/2008-01-29/200801292216622.shtml动态编程语言是高级程序设计语言的一个类别,在计算机科学领域已被广泛应用。它是一类在运行时可以改变其结构的语言:例如新的函数、对象、甚至代码可以被引进,已有的函数可以被删除或是其他结构上的变化。可以简单的理解为直接被解释执行的语言称为动态语言。而需要编译环境将程序转换为其它的编码再执行的语言称为静态语言。动态语言目前非常具有活力。众所周知的ECMAScript(JavaScript)便是一个动态语言,除此之外如PHP、Ruby、Python等也都属于动态语言,而C、C++等语言则不属于
阅读全文
posted @
2011-04-02 17:53
-Anny-
阅读(517)
推荐(0)
一个Java程序员的Ruby on Rails体验(转)
摘要:http://developer.51cto.com/art/200610/33171.htmROR is Ruby on Rails。Ruby众所周知已经是一种非常出色的动态语言。It's a dynamic language。Simple and easy。动态语言是解释执行的,但性能上可能会打个折扣,但不是绝对的,因为应用是复杂的,性能是一种综合性的,这个在一个流传的测试中有回应。1.安装和配置出奇的简单(真的很想提醒一下所有的java社区,充斥着各种框架的各个社区难道就没想到install吗?Everyone forgot to make install?无论是J2EE,Spr
阅读全文
posted @
2011-04-02 17:26
-Anny-
阅读(471)
推荐(0)
VI-文本编辑器(转)
摘要:摘取http://topic.csdn.net/t/20030410/11/1642333.html在 linux 底下最常使用的文本编辑器为 vi ,请问如何进入编辑模式? 在一般模式底下输入: i, I, a, A 为在本行当中输入新字符;(出现 –Insert- ) 在一般模式当中输入: o, O 为在一个新的一行输入新字符; 在一般模式当中输入: r, R 为取代字符!(左下角出现 –Replace-) 如何由编辑模式跳回一般模式? [Esc] 若上下左右键无法使用时,请问如何在一般模式移动光标? h, j, k, l 若 [pagedown] [ pageup] 在一般模式无法使用时
阅读全文
posted @
2011-04-02 17:10
-Anny-
阅读(193)
推荐(0)
Ruby 快速入门 (转)
摘要:http://developer.51cto.com/art/200703/41243.htm介绍这是一个短小的Ruby入门,完全读完只需20分钟。这里假设读者已经安装了Ruby,如果你没有安装的话,请在阅读文前访问Ruby官方网站进行下载并安装。交互式的Ruby打开IRB(交互式Ruby外壳):如果你使用Mac OS X,那么请打开终端窗口输入irb;如果你使用Linux,那么请打开shell输入irb;如果你使用windows,那么请在开始菜单中找到Ruby->fxri,并执行它。Ok,在打开IRB之后,在其中输入"Hello World"。Ruby听从你的安排
阅读全文
posted @
2011-04-02 16:51
-Anny-
阅读(1636)
推荐(0)
Lesson two for linux command
摘要:13. Sortsort [选项] 文件说明:sort命令对指定文件中所有的行进行排序,并将结果显示在标准输出上。如不指定输入文件或使用“- ”,则表示排序内容来自标准输入。sort排序是根据从输入行抽取的一个或多个关键字进行比较来完成的。排序关键字定义了用来排序的最小的字符序列。缺省情况下以整行为关键字按ASCII字符顺序进行排序。改变缺省设置的选项主要有:- m 若给定文件已排好序,合并文件。- c 检查给定文件是否已排好序,如果它们没有都排好序,则打印一个出错信息,并以状态值1退出。- u 对排序后认为相同的行只留其中一行。 - o 输出文件 将排序输出写到输出文件中而不是标准输出,如果
阅读全文
posted @
2011-04-02 11:38
-Anny-
阅读(160)
推荐(0)
Lesson one for linux command
摘要:1. Login:输入用户的账号: 系统管理员(root) 或者 普通管理员,登录成功后,系统管理员的提示符是#,普通用户的提示符是$。2. Exit:exit3. Change password:passwd4. 虚拟控制台虚拟控制台可使用户同时在多个控制台上工作,真正体现Linux系统多用户的特性。虚拟控制台的选择可以通过按下Alt键和一个功能键来实现,通常使用F1-F6例如,用户登录后,按一下Alt-F2键,用户又可以看到"login:"提示符,说明用户看到了第二个虚拟控制台。然后只需按Alt-F1键,就可以回到第一个虚拟控制台。 一个新安装的Linux系统默认允许用
阅读全文
posted @
2011-04-01 18:09
-Anny-
阅读(203)
推荐(0)
Learn UBuntu
摘要:Ubuntu[ùbúntú]它主要是一个以桌面应用为主的Linux操作系统,ubuntu又是一个古非洲语,意思是:人道待人(对他人仁慈).ubuntu 也意谓着:我们都是同源一体Useful knowledge from http://linux.chinaitlab.com/
阅读全文
posted @
2011-04-01 17:27
-Anny-
阅读(196)
推荐(0)