1.0 进入项目创建文件夹 cd $GOPATH/src2.0 创建项目 mkdir localeasy3.0 创建go文件 touch helloworld.go4.0 打开并编辑 open helloworld.gohelloworld.go中...
分类:
其他好文 时间:
2014-07-27 22:46:39
阅读次数:
248
socket编程原理1、问题的引入1) 普通的I/O操作过程:UNIX系统的I/O命令集,是从Maltics和早期系统中的命令演变出来的,其模式为打开一读/写一关闭(open-write-read-close)。在一个用户进程进行I/O操作时,它首先调用“打开”获得对指定文件或设备的使用权,并返回称...
分类:
其他好文 时间:
2014-07-27 21:57:59
阅读次数:
302
自己一直嚷嚷着打算学学图像识别,识别个简单的,车牌号,验证码之类的,之前查过资料,OpenCV可以实现。昨天花了一个下午终于配置好环境了,今天写下总结。OpenCV这一名称包含了Open和Computer Vision两者的意思。实际上,Open指Open Source(开源,即开放源代码),Com...
分类:
系统相关 时间:
2014-07-27 21:32:45
阅读次数:
658
include ‘Timagick.class.php‘;
$image = new Timagick();
$image->open(‘a.gif‘);
$image->resize_to(100, 100, ‘scale_fill‘);
$image->add_text(‘1024i.com‘, 10, 20);
$image->add_watermark(‘1024i.gif‘, ...
分类:
Web程序 时间:
2014-07-27 12:16:21
阅读次数:
345
1、FailedtoconnecttoVMwareLookupServicehttps://IP:7444/lookupservice/sdk-SSLcertificateverificationfailed.我在配置vCSA过程中修改了其hostname,可能是由此引起的。解决方法:登录vCSA,https://<host-name>:5480点击‘Admin’页打开‘Certificateregenerationena..
分类:
移动开发 时间:
2014-07-27 12:07:33
阅读次数:
261
#include
#include
#include
#include
#include
#include
using namespace std;
const int maxn = 1000;
char s[maxn];
bool failed;
vector ans;
struct node
{
bool have_value;
int v;
node *left,*...
分类:
其他好文 时间:
2014-07-27 11:54:43
阅读次数:
198
Description
The game “The Pilots Brothers: following the stripy elephant” has a quest where a player needs to open a refrigerator.
There are 16 handles on the refrigerator door. Every handle c...
分类:
其他好文 时间:
2014-07-27 11:36:04
阅读次数:
234
故障:
之前phpMyAdmim和Yii连接Mysql都好着的,某天,同时出现如下报错:
1、linux下phpMyAdmin 出现 “缺少 mysqli 扩展,请检查
PHP 配置。”
2、Yii 出现CDbConnection failed to open the DB connection: could not find driver
排查:
1、先排查Mysql服务是否正...
分类:
数据库 时间:
2014-07-27 11:16:42
阅读次数:
232
用XMLHttpRequest对象,发请求的基本代码如下:var xmlhttp=new XMLHttpRequest(); var url="http://localhost:3004/test"; xmlhttp.open("get",...
分类:
Web程序 时间:
2014-07-27 10:33:42
阅读次数:
950
这几天学head firs python , 讲的比较浅显易懂,这本书可以当小说读了尝试使用a+方式打开文件,结果发现写入后读取不到,研究了一会才发现是因为使用a的方法打开文件,光标默认在文件末尾,此时用readline是读取不到的,要手动seek(0)代码如下:try: data = ope...
分类:
编程语言 时间:
2014-07-27 10:23:22
阅读次数:
224