- 博客(47)
- 资源 (2)
- 收藏
- 关注

转载 python 使用笔记
pp 包自己突然停止了在上篇博文中,我们实现了基于Openbabel和Parallel Python的并行分子子结构搜索,并在一台32位的双核四线程笔记本电脑上进行了测试。 但是,在把这些程序移植到一台64位的win7工作站(8核)时,却发生了问题。在运行过程中,并行的python脚本会时常卡死,经过多次测试,卡死的概率约为50%。在网上查阅了许多资料,都无法解决这个问题。在焦头烂额
2014-09-14 21:25:21
741

转载 matlab 使用笔记
如何在MATLAB中统计数组中相同元素的个数法一:假定要分析的矩阵为data,x=data(:)x=sort(x);d=diff([x;max(x)+1]);count = diff(find([1;d])) ;y =[x(find(d)) count]最后输出的y(1)为元素值,y(2)为所对应的元素值在此矩阵中的出现的次数法二:
2014-09-13 15:29:23
608

原创 centos使用笔记
修改shell(http://unix.stackexchange.com/questions/46645/how-can-i-use-bash-as-my-login-shell-when-my-sysadmin-refuses-to-let-me-change-i).profilecase $- in *i*) # Interactive session. Try swit
2014-06-23 19:15:26
643
原创 How to use python3 in bazel build
The official document is totally confusing. Just do one thing: add --python_path=python3 when building.
2018-08-21 16:56:00
1224
原创 debug caffe python layer
There is a very complicated python data layer in ACT-detector code. After several hours of attempts, I finally find out how to debug the python layer in Caffe. In fact, quite easy in Pycharm. Just rea...
2018-08-11 15:12:20
323
原创 Tensorflow dynamic_rnn static_rnn difference
Conclusion, for a batch of variable length sequences, the building time of static_rnn is longer, but it runs faster.结论,对于一个batch的变长的序列,static_rnn建图的时候慢,但跑的时候快。In the beginning, I thought static_rnn is...
2018-02-12 11:42:51
351
原创 ubuntu 里 matlab VideoReader 读取视频
当视频是mpg或者MP4的时候,matlab就读取不了。matlab是用gstreamer-0.10来解码视频的。自己手动安装gstreamer-0.10.36.tar.xzgst-ffmpeg-0.10.13.tar.bz2gst-plugins-base-0.10.36.tar.xzgst-plugins-good-0.10.31.tar.x
2017-02-14 08:54:49
1507
1
转载 ssh 无密码登陆 openwrt
首先 ssh-keygen,生成id_rsa和id_rsa.pub.前面的是私钥,后面的是公钥。把公钥放到ssh服务器上,私钥在自己的.ssh目录地下,就可以登陆。for linux,公钥放在.ssh/authorized_keys.可以用ssh-copy-key命令for openwrt,公钥放在/etc/dropbear/authorized_keys.
2016-10-21 09:27:26
1982
原创 kde下eclipse 4.5 显示问题
有的窗口显示不出来,有的显示黑底黑字,字就看不到了。去system settings > application appearance > gtk > select gtk3 theme改成其它的就好了。
2016-01-15 11:09:51
666
原创 How to make Killer 1535 work in ubuntu
I have tried to install the driver for killer 1535 wifi for more than one day.Finally, it works now.I used ubuntu 15.10 because its kernel version high. But I think backports with the kern
2015-10-18 08:10:44
3489
原创 ubuntu rc.local 不能添加路由
在rc.local里写route命令,没效果,以为系统问题,脚本没执行原来是dhcp的时间比较长,dhcp到ip后把路由给冲掉了。解决办法就是在rc.local里加上sleep 1m.
2015-06-25 16:48:47
1507
原创 ubuntu 14.04 xdmcp
创建/etc/lightdm/lightdm.conf[XDMCPServer]enabled=true然后sudo apt-get install xfce4,选多的那个就能用了。
2015-06-09 15:43:24
1907
原创 opencv判断图片是彩色还是灰度
可能问题太简单,大家都没回答的,谷歌搜到的第一个答案太扯了,这来写一遍。Mat a=imread("xxx.jpg",-1);a.channels()==1 就是灰度
2015-04-08 18:01:35
17493
5
原创 centos安装caffe
首先,安装显卡驱动http://jingyan.baidu.com/article/9f63fb91d7e6b5c8400f0e0c.html
2014-07-18 16:47:58
2147
原创 simpy 10 分钟简介
今天把https://simpy.readthedocs.org/en/latest/simpy_intro/index.html里的简介搬运过来。
2014-07-10 11:17:27
6773
原创 64位fedora,centos,redhat安装 opencv+ffmpeg
ffmpeg./configure --enable-shared --enable-pic
2014-06-21 16:44:05
781
原创 windows 下编译 nrbm
nrbm(Regularized Bundle Methods for Convex and Non-Convex Risks)是[1].Do, T. and T. Arti E Res. Large Margin Training for Hidden Markov Models with Partially Observed States. in ICML '09. 2009. New Y
2014-05-28 13:37:18
855
原创 Google Codejam 2009 Round 2
https://code.google.com/codejam/contest/204113/dashboard#s=p1小的case是暴sou
2014-05-11 08:58:24
525
原创 codejam 2008 Qualification Round
https://code.google.com/codejam/contest/32013/dashboard
2014-04-20 10:10:40
464
原创 codejam 2008 practice Contest
https://code.google.com/codejam/contest/32004/dashboard三个题A
2014-04-19 14:41:24
676
原创 Code jam beta 2008
https://code.google.com/codejam/contest/32014/dashboard四个题
2014-04-19 14:13:22
454
原创 codejam 2008 practice problems
今年毕业,5月的codejam希望能够取得好点的成绩。四个题https://code.google.com/codejam/contest/32003/dashboardA Alien Numbers,进制转换,没啥好说的。B Always Turn Left,走迷宫的模拟。如果往前走,当前位置左边有墙,往右走就是左边前边有墙。记得迷宫的边界是有墙的,有
2014-02-14 11:33:41
663
原创 windows server 2008 R2 部署服务WDS 网络安装Win7
假期回家没带碟包,家里有一台电脑要装系统,u盘只2G大,就尝试一下虚拟机里面装个server配部署服务。先试的2003 sp2,这个系统配置的时候跟网上的教程不一样。感觉网上的教程应该是2003不带sp的。最后配的只能装xp,03这样的系统。然后下了一个2008 sp2.现在看来这个版本最坑爹。2008,2008sp1,2008sp2都是vista对应的server系统。这
2014-01-25 17:15:50
4121
原创 google codejam Round 1C 2013 The Great Wall
题意就不写了,小的input,就是个模拟。大的可以把区间离散化,或者用线段树。线段树每个区间记录一个low值就可以。下面是代码:#include #include #include #include #include #define min(a,b) ((a) < (b) ? (a) : (b)) #define max(a,b) ((a)
2013-10-21 08:48:46
823
原创 co-training学习
Blum, A. and T. Mitchell (1998). Combining labeled and unlabeled data with co-training. COLT' 98, New York, NY, USA, ACM.The paper has been cited over 1000 times, and received the 10 years Best Pape
2013-10-12 08:53:28
1946
转载 如何下载videolectures的视频
有两篇可以参考http://songuke.blogspot.com/2012/03/videolecturesnet-rtmp-streaming-url.htmlhttp://northcamel.com/download-video-in-videolectures/本来用IDM的,不过IDM老是时不时的不好用。现在用的办法就是查看网页的源码,把下面三部分拼起来,
2013-10-11 11:17:38
2350
1
转载 ubuntu 图形界面无法登录
那天登录的时候,输入密码,回车,闪一下,又回到登录界面来。最后把.Xauthority加上当前用户的权限,就好了。
2013-06-27 20:07:55
863
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人