上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 76 下一页
摘要: C# 1. 方式一(传入结构体引用),在C#中,结构体是以传值方式传递,类才是以传地址方式传递,加关键字ref即可. C端传递了两种不同类型的参数,都可以通过引用来解决. [DllImport("jnalib.dll", EntryPoint = "GetVersionPtr")]public st 阅读全文
posted @ 2016-05-04 10:02 ahuo 阅读(7530) 评论(0) 推荐(1) 编辑
摘要: FLYme 3.73A Mx3 (3.4.43-user-g66efe75 #2 SMP PREEMPT Tue Sep 9 11:16:30 CST 2014 armv7l GNU/Linux) YOS 4.5.7Y Mx4 (3.10.61 #1 SMP PREEMPT Tue Oct 20 1 阅读全文
posted @ 2016-04-28 22:15 ahuo 阅读(601) 评论(0) 推荐(0) 编辑
摘要: cmake-gui 配置 确认这些都正确 生成了CV2.so make install 阅读全文
posted @ 2016-04-20 15:08 ahuo 阅读(1733) 评论(1) 推荐(0) 编辑
摘要: htop 阅读全文
posted @ 2016-04-20 10:42 ahuo 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 打开这个设备/proc/self/maps 返回的就是这个进程当前使用的so列表 cat /proc/self/maps00400000-0040b000 r-xp 00000000 08:01 1441815 /bin/cat0060a000-0060b000 r--p 0000a000 08:0 阅读全文
posted @ 2016-04-13 15:48 ahuo 阅读(2393) 评论(0) 推荐(0) 编辑
摘要: 安装 apt-get install openssh-server 配置 sudo gedit /etc/ssh/sshd_config PermitRootLogin without-password 改为 PermitRootLogin yes 重启 sudo /etc/init.d/ssh r 阅读全文
posted @ 2016-04-12 09:36 ahuo 阅读(424) 评论(0) 推荐(0) 编辑
摘要: cat /proc/kmsg <6>[ 2601.360] c0@A7 lm3695_early_suspend 247<6>[ 2601.380] c1@A7 gp2ap_early_suspend: enabled_sensors = 0<6>[ 2601.516] c1@A7 disable 阅读全文
posted @ 2016-04-11 09:46 ahuo 阅读(2438) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-04-07 16:51 ahuo 阅读(142) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-from sklearn.cluster import KMeansfrom sklearn.externals import joblibimport numpyfeature =numpy.random.rand(40,20)#调用kmeans类cl 阅读全文
posted @ 2016-04-01 17:33 ahuo 阅读(427) 评论(0) 推荐(0) 编辑
摘要: random numpy.random.rand(3,2) 内存操作 numpy.getbuffer() numpy.frombuffer() list to npy numpy.fromiter(llb,np.int) 阅读全文
posted @ 2016-04-01 17:16 ahuo 阅读(247) 评论(0) 推荐(0) 编辑
摘要: HostMonitor 可以对windows和linux下的主机进行很多信息的监控,还提供web方式查看 阅读全文
posted @ 2016-04-01 09:36 ahuo 阅读(1335) 评论(0) 推荐(0) 编辑
摘要: 1. apt-get install mysql-server 2. apt-get isntall mysql-client 修改 /etc/mysql/my.cnf #bind-address = 127.0.0.1 本地登录 mysql -u root -p grant all on *.* 阅读全文
posted @ 2016-03-22 09:31 ahuo 阅读(234) 评论(0) 推荐(0) 编辑
摘要: from poster.encode import multipart_encode from poster.streaminghttp import register_openers import urllib2 register_openers() #datagen, headers = multipart_encode({"Img": open("1.jpg", "rb")}) #re... 阅读全文
posted @ 2016-03-16 16:45 ahuo 阅读(551) 评论(0) 推荐(0) 编辑
摘要: 1.使用ssl创建未经验证的上下文,在urlopen中传入上下文参数 import sslimport urllib2 context = ssl._create_unverified_context()print urllib2.urlopen("https://www.12306.cn/", c 阅读全文
posted @ 2016-03-07 11:08 ahuo 阅读(1987) 评论(0) 推荐(0) 编辑
摘要: find src -type d | sed 's/src/mkdir -p dst/'|sh 阅读全文
posted @ 2016-03-02 11:14 ahuo 阅读(1178) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 76 下一页