科工人 科工人
4年前
初学Go语言,对channel、并发的思考
初学go语言,对channel、并发感觉不太好理解。希望高人指点下。下面的代码是我看到一本书上的,就是讲解channel的。packagemainimport("fmt""math/rand")functest(chchanint,iint){ch<rand.Int()fmt.Println(i
Stella981 Stella981
3年前
CentOS中编译ImageMagick
1、下载相应源码  zlib1.2.8.tar.gz  jpegsrc.v9b.tar.gz  libpng1.6.26.tar.gz  freetype2.7.tar.gz(可选,如果要使用文字转图片操作,这个依赖必不可少)  libwebp1.0.3.tar.gz  ImageMagic
Stella981 Stella981
3年前
Linux shell脚本执行错误:bad substitution
脚本内容如下:!/bin/shstring"Thisisastring!"echo${string:1:4}添加可执行权限后报错badsubstitution:!输入图片说明(https://static.oschina.net/uploads/img/201612/301
Stella981 Stella981
3年前
NIO系列六:流行 NIO Framework netty 和 mina 性能测评与分析
NIO系列6:流行NIOFrameworknetty和mina性能测评与分析测试方法采用mina和netty各实现一个基于nio的EchoServer,测试在不同大小网络报文下的性能表现测试环境客户端服务端:modelname:Int
Wesley13 Wesley13
3年前
IP地址查询接口及调用方法
设计蜂巢IP地址查询接口:http://www.hujuntao.com/api/ip/ip.php腾讯IP地址查询接口:http://fw.qq.com/ipaddress新浪IP地址查询接口:http://int.dpool.sina.com.cn/iplookup/iplookup.php?formatjs搜狐I
Stella981 Stella981
3年前
SQL Server中灾难时备份结尾日志(Tail of log)的两种方法
转自:http://www.cnblogs.com/CareySon/archive/2012/02/23/2365006.htmlSQLServer中灾难时备份结尾日志(Tailoflog)的两种方法(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.cnblogs.co
Wesley13 Wesley13
3年前
4.kafka生产者
转: https://www.cnblogs.com/sodawoodsblogs/p/8969513.html(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.cnblogs.com%2Fsodawoodsblogs%2Fp%2F8969513.html)(1)生产者
Stella981 Stella981
3年前
Not recognizing known sRGB profile that has
eclipse转androidstudio一直卡在报libpngwarning:iCCP:NotrecognizingknownsRGBprofilethathasbeenedited错误上,网上搜索的教程都是简单的说用工具转换,操作步骤不太仔细,经过多次实践终于把这个问题解决。详细步骤:1、下载ImageMag
Wesley13 Wesley13
3年前
Java中StringBuilder的清空方法比较
转自:_http://blog.csdn.net/roserose0002/article/details/6972391(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Froserose0002%2Farticle%2Fdetails%2F6972391)
Wesley13 Wesley13
3年前
Oracle 正版用户授权问题
转自 http://wallimn.iteye.com/blog/640772Oracle正版用户授权(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwallimn.iteye.com%2Fblog%2F640772)博客分类:数据库(https:/