最近公司需要用Perl做自动化,才学了两三周的Perl,所以代码贴出来写的不好不要笑。正好碰到一个处理Mysql的需求,按照以前的习惯,将几个操作简单整合一下,以防日后之需。下面使用DBI访问Mysql的一个类。1.new
实例化一个类2.query 执行一个查询操作3.do 执行一条sql语句(u...
分类:
数据库 时间:
2014-05-30 05:38:25
阅读次数:
425
来源:http://blog.3snews.net/space.php?uid=6188&do=blog&id=64200http://www.giser.net/?p=9821
以source code 的方式打开xib文件2 将”com.apple.InterfaceBuilder3.Cocoa...
分类:
其他好文 时间:
2014-05-29 14:13:52
阅读次数:
255
MONO DeBuggerMac上支持1:USB连线调试,WIFI调试2:Debug
可以调试进去封装好的类库 (要在Debugger中开启类库调试)(Debug project code only;do not step into
framework code.)生成调试版本比发布版本更加久Mon...
分类:
移动开发 时间:
2014-05-29 13:28:12
阅读次数:
246
So, how do we capture an image from a WebCam?Once
you download the source code that is attached to the article you should have the
following three pro...
原文:C# 使用摄像头拍照 支持Win7 64位So, how do we capture
an image from a WebCam?Once you download the source code that is attached to the
article you should have...
1. 最基本的读文件方法:# File: readline-example-1.pyfile =
open("sample.txt")while 1: line = file.readline() if not line: break pass # do
something 一行一行得从文件读数据....
分类:
编程语言 时间:
2014-05-29 01:34:30
阅读次数:
402
if we want to filter with sed pattern and just
print the filtered lines without any further editing , we can do it like thisls
-a1 ~ | sed -ne "/^\./p...
分类:
其他好文 时间:
2014-05-28 22:58:56
阅读次数:
294
作者:zccst重绘和重排之前也知道,但也没有可以详细了解他们的机制,区别,以及对性能的影响。A
repaint occurs when changes are made to an elements skin that changes
visibility, but do not affect i...
分类:
其他好文 时间:
2014-05-28 21:31:15
阅读次数:
519
1,使用说明:usage: vcffilter [options] options: -f,
--info-filter specifies a filter to apply to the info fields of records, removes
alleles which do not p...
分类:
其他好文 时间:
2014-05-28 03:00:31
阅读次数:
371
回文数是指这样的数字:正读和倒读都是一样的。如:595,2332都是回文数,234不是回文数。注意:负数不是回文数Determine whether an
integer is a palindrome. Do this without extra space.Some hints:Could ne...
分类:
其他好文 时间:
2014-05-27 23:44:17
阅读次数:
459