最近公司需要用Perl做自动化,才学了两三周的Perl,所以代码贴出来写的不好不要笑。正好碰到一个处理Mysql的需求,按照以前的习惯,将几个操作简单整合一下,以防日后之需。下面使用DBI访问Mysql的一个类。1.new
实例化一个类2.query 执行一个查询操作3.do 执行一条sql语句(u...
分类:
数据库 时间:
2014-05-30 05:38:25
阅读次数:
425
错误提示:E: Could not get lock /var/lib/dpkg/lock -
open (11: Resource temporarily unavailable) E: Unable to lock the administration
directory (/var/lib/d...
分类:
其他好文 时间:
2014-05-30 03:01:41
阅读次数:
234
Top 10 JavaScript traps for a C# developer 27
May 2014 | .NET · Code · Javascript Tags: .net · C# · javascriptIf you are an
experienced C# developer, ...
分类:
编程语言 时间:
2014-05-30 00:38:22
阅读次数:
360
When you invoke the constructor function with
new, the following happens inside the function:? An empty object is created and
referenced by this varia...
分类:
编程语言 时间:
2014-05-30 00:14:49
阅读次数:
308
之前都是命令行创建,今天用eclipse装m2eclipse的时候装完后创建项目的时候报错:Could
not resolve archetype
org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE from any of t...
分类:
其他好文 时间:
2014-05-29 23:15:49
阅读次数:
244
Rotate ImageYou are given an n x n 2D matrix
representing an image.Rotate the image by 90 degrees (clockwise).Follow up:
Could you do this in-place?最简...
分类:
其他好文 时间:
2014-05-29 23:02:38
阅读次数:
254
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...
One of the nice features of Java language is
that it provides you the opportunity to execute native system commands and in
this tutorial we will see h...
分类:
编程语言 时间:
2014-05-29 10:27:50
阅读次数:
316
原文: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...
The tricky thing is how to decide the key for a
hashmap. Especially when you intend to use self-defined objects as key.The
simple rule is you have to ...
分类:
编程语言 时间:
2014-05-29 09:08:40
阅读次数:
362