My Blog List
Friday, September 4, 2015
Thursday, August 13, 2015
swapping caps lock and control keys
I test it on Windows 7, Windows 8 and Windows 10.
Works in: Windows XP, Windows Vista, Windows 7
In our opinion this is the best way to swap the control and caps lock keys in Windows because you don't have to rely on any external program and the registry edit works 100% perfectly (for the paranoid).
Why should one bother changing the caps lock and control keys, what's wrong with the control key where it is? After extensive testing, our conclusion is that - if you use the control key a lot (like in Emacs or Vim), then you should definitely swap the control and caps lock keys as it's extremely ergo-dynamic to have the control key in the home row.
- Click Start -> Run
- Type: regedit, and click OK
- Go to: HKEY_LOCAL_MACHINE -> System -> CurrentControlSet -> Control -> KeyBoard Layout
Note: KeyBoard Layout, and not KeyBoard Layouts - Right-click: Keyboard Layout, and select New -> Binary value
- Rename: New Value #1 -> Scancode Map
- Right click: Scancode Map -> Modify
- Close regedit and restart your computer
0000 00 00 00 00 00 00 00 00 0008 03 00 00 00 1d 00 3a 00 0010 3a 00 1d 00 00 00 00 00 0018
Friday, March 22, 2013
matlab 有关figure的问题
Tuesday, July 17, 2012
libmysqlclient_r.so.16: cannot open shared object file
转载1
http://www.xieyanfu.com/?p=153
cd /usr/lib/i386-linux-gnu/
sudo ln -sf libmysqlclient_r.so.18 libmysqlclient_r.so.16转载2
转载3
我的问题
Wednesday, April 18, 2012
最简单的方式使用Discriminatively Trained Deformable Part Models训练自己的模型 zz
最简单的方式使用Discriminatively Trained Deformable Part Models训练自己的模型(原创,适合没有linux基础和matlab基础的人)
Monday, April 9, 2012
stringstream的用法
http://www.cppblog.com/alantop/archive/2007/07/10/27823.html
使用stringstream对象简化类型转换C++标准库中的<sstream>提供了比ANSI C的<stdio.h>更高级的一些功能,即单纯性、类型安全和可扩展性。在本文中,我将展示怎样使用这些库来实现安全和自动的类型转换。
到目前为止看起来还不错。但是,对上面代码的一个微小的改变就会使程序崩溃:
int n=10000;
由于n和s的类型在编译期就确定了,所以编译器拥有足够的信息来判断需要哪些转换。<sstream>库中声明的标准类就利用了这一点,自动选择所必需的转换。而且,转换结果保存在stringstream对象的内部缓冲中。你不必担心缓冲区溢出,因为这些对象会根据需要自动分配存储空间。
Sunday, March 25, 2012
You and Your Research
Saturday, March 24, 2012
[转载]Matlab向量化优化小结
n = length(v2);
M = repmat(v1, [1, n]) + repmat(v2, [m, 1]);
Tuesday, February 28, 2012
关于Matlab找不到vs2008或vs2005编译器的解决办法
机器上安装了matlab2009a和vs2008 ,今天想要编译一个工具箱,可是在运行mex -setup是只有一个matlab自带的Lcc可选。在网上找了很久,原来是matlab在识别vs的编译器时,使用的是"version"英文,而vs08显示的版本信息是"优化编译器"五个汉字,匹配不上,所以找不到。
解决办法很简单(虽然找了很久),用记事本打开matlab/r2009a/bin/mexsetup.pm文件,找到 correc_version函数(第477行),将这个函数中的return ($version =~ /Version.$versionNumber/i);改成return ($version =~ /优化编译器.$versionNumber/i);即可。
Thursday, February 23, 2012
在windows下运行Felzenszwalb的Discriminatively Trained Deformable Part Models matlab代码
Felzenszwalb的Discriminatively Trained Deformable Part Models URL:http://www.cs.brown.edu/~pff/latent/
据说是目前最好的object detection method。我自己试了一下,效果真的不错。不过代码只可以在unix/linux/mac上运行。
(Pascal voc 近两届obj detection冠军的方法都是基于此框架的,但是别人的研究是不公开的,顺便表示一下不满)
但是呢,只要稍作修改就可以在windows上跑啦:
1,dt.cc 添加一句:#define int32_t int
2,features.cc & resize.cc中添加:
#define bzero(a, b) memset(a, 0, b)
int round(float a) { float tmp = a - (int)a; if( tmp >= 0.5 ) return (int)a + 1; else return (int)a; }
3,resize.cc中: alphainfo ofs[len]; 这句改成:alphainfo *ofs = new alphainfo[len]; 当然在同一作用域后面加上:delete []ofs
4,compile.m中:结尾加上mex -O fconv.cc
% use one of the following depending on your setup
% 1 is fastest, 3 is slowest
% 1) multithreaded convolution using blas
% mex -O fconvblas.cc -lmwblas -O fconv
% 2) mulththreaded convolution without blas
% mex -O fconvMT.cc -o fconv
% 3) basic convolution, very compatible
% mex -O fconv.cc -o fconv
mex -O fconv.cc
其他几个fconv用了其他平台的multiThread在windows上跑不起!
改了上边的几个地方后,就可以运行了。跑demo.m看效果吧,,,
Thursday, February 9, 2012
Connect to Ubuntu 11.04 from Windows via Remote Desktop
sudo apt-get install xrdp
Ubuntu PIL JPEG support
Wednesday, February 8, 2012
How to install the latest stable git release on Ubuntu 10.04 LTS
March 21, 2011
How to install the latest stable git release on Ubuntu 10.04 LTS
I want a very stable desktop, so I'm using Ubuntu 10.04 "lucid lynx" LTS (long-term support). I also want features of the latest version of git. I ran these commands to grab the latest stable git release without futzing with any manual downloading or dpkg.
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
Thank you, Anders Kaseorg!
Distribution packages in a release typically lag behind those released by upstream maintainers. This is expected: part of what makes a release stable is intentionally not introducing changes. PPAs (personal package archives) are a handy way to get at packages not already present in the distribution/release you are using. Backports are handy too, but I didn't see the latest git in there for Ubuntu 10.04.
Back in the old days I used to manually scour some combination of rpmfind, DAG, Dries, ATrpms, rpmforge, (and others!) to find the right packages and dependencies.
Tuesday, February 7, 2012
Ubuntu broadcom 4313 无线网卡无法使用的解决办法
原文地址:http://qiudao.sinaapp.com/?p=185
原文:
Ubuntu broadcom 4313 无线网卡无法使用的解决办法
新安装了ubuntu 11.10,无线网卡无法启用,网上搜寻良久,得到以下解决办法:
sudo rmmod acer-wmi
这样就可以打开无线了!无线信号也会出来 ,但是有一个问题就是,只要机器一重启,那个文件又被修改回来了!
解决每次重启之后文件又自己恢复的方法是:
blacklist acer-wmi
这个命令加入到/etc/modprobe.d/blacklist.conf文件最后即可。
以上解决方法来自:
http://forum.ubuntu.org.cn/viewtopic.php?t=328097
---------无敌分割线---------------------
以下摘录其它的解决方法。经尝试,方法1有用,但得用wicd才能连接,而在系统提示里没有相关的连接信息。
http://www.luochunhui.com/id/1258
在升级ubuntu 11.04之后,无线网卡无法找到了。原本以为是我的个案问题,没有将其解决办法share出来,今天听到另一童鞋也出现了这个问题,于是写下。
升级后症状:
1. 无法连接无线网络,在net manager中显示无线网卡禁用 disabled.
2. 不管怎么按无线网络硬开关或点击启用无线网络,都无法点亮无线网络指示灯。
解决办法:
1. 换一个无线网卡管理器: wicd
sudo apt-get install wicd
接下来 ctrl+F2, 键入wicd,并打开。
在面板中应该可以找到你的无线网卡。启用并连接。
如果在1中还是无法找到无线网卡,则需要进行一下网卡开启设置。
2. 使用rfkill 开启开关:
rfkill list
应该可以看到无线网卡,及其软硬开关状态。如果是hard block为true,则按计算机无线网络硬开关开启(部分机器,如果是在windows进行的硬关闭,则linux无法开启,得回到windows开启 后,再进入linux)。如果soft block为true, 则使用命令开启:
rfkill unblock 0 #0为你的无线网卡编号,在rfkill list中可以看到。
3. 开启网卡
sudo ifconfig wlan0 up
如果遇到 RFKILL错误,重试第二步,并等待2分钟。
4. 回到第一步进行刷新,查看是否找到无线网卡。
在本人机器上,重新启动后,偶尔需要重新设置第2,3步。尚没有自动设置。以上办法仍旧是一个临时方案。
最终还得等待ubuntu官方更新。
Saturday, December 3, 2011
Frontiers in Computer Vision
http://www.frontiersincomputervision.com/
Organizers
- Alan Yuille, UCLA
- Aude Oliva, MIT
Advisory Board
- David Forsyth, UIUC
- William Freeman, MIT
- Martial Hebert, CMU
- Anil Jain, MSU
- Daniel Kersten, UMN
- Daphne Koller, Stanford
- Yann LeCun, NYU
- Jitendra Malik, UC Berkeley
- Antonio Torralba, MIT
- Rick Szeliski, Microsoft
Sunday, November 27, 2011
如何用DOS命令,获取一个目录下的文件数目
※ 来源:・水木社区 http://newsmth.net・[FROM: 218.247.129.*]
发信人: nwn (Lie), 信区: DOS
标 题: Re: 如何用DOS命令,获取一个目录下的文件数目?
发信站: 水木社区 (Fri Mar 9 09:54:55 2007), 站内
dir /b | find /v /c "$$$$" > 1.log
该结果统计当前目录下的文件和目录数。
如果只需要文件,使用 dir /b /a-d | find /v /c "$$$$" >1.log
--
※ 来源:・水木社区 newsmth.net・[FROM: 125.46.17.*]
今天去水木看到的.果然强.我来解释一下意思
dir /b 使用空格式(没有标题信息或摘要)。
dir /a-d /a是显示具有指定属性的文件。d是目录,-d就是去掉目录
| 通道符,把dir /b的输出当中后面find的输入
find
/v 显示所有未包含指定字符串的行。
/c 仅显示包含字符串的行数
"$$$$" 特殊字符,一般文件中都没这个字符,不过可以用$$$$来命名文件夹,所以我建议用冒号,这个不能当作文件夹或者文件的名字.
> 输出到
1.log 文件
这个比较好:dir /b | find /v /c ":" > 1.log
Saturday, November 19, 2011
SIFT算法学习心得
SIFT算法学习心得
这篇文章主要介绍 SIFT 算法。希望通过对 SIFT 算法的总结来更加深入地了解"尺度不变特征变换",除此之外,也加深来对 SURF 算法的理解。
附件:SIFT—Scale Invariant Feature Transform
SIFT算法由D.G.Lowe 1999年提出,2004年完善总结。后来Y.Ke将其描述子部分用PCA代替直方图的方式,对其进行改进。是一种提取局部特征的算法,在尺度空间寻找极值点,提取位置,尺度,旋转不变量。
2 SIFT算法的主要特点
a) SIFT特征是图像的局部特征,其对旋转、尺度缩放、亮度变化保持不变性,对视角变化、仿射变换、噪声也保持一定程度的稳定性;
b) 独特性(Distinctiveness)好,信息量丰富,适用于在海量特征数据库中进行快速、准确的匹配;
c) 多量性,即使少数的几个物体也可以产生大量SIFT特征向量;
d) 高速性,经优化的SIFT匹配算法甚至可以达到实时的要求;
e) 可扩展性,可以很方便的与其他形式的特征向量进行联合。
3 SIFT算法步骤:
1) 检测尺度空间极值点;
2) 精确定位极值点;
3) 为每个关键点指定方向参数;
4) 关键点描述子的生成。
Monday, November 14, 2011
eps/png等图片格式相互转换
windows平台
常用latex的朋友,通常要把我们遇到的jpeg,png,gif格式转换为eps格式,下面为之说明下,望对您有所帮助。
将jpeg,png,gif转换为eps格式,推荐使用bmeps命令行工具,比起用鼠标点来点去,好用得多,对多文件处理,更是方便。它已包含在ctex安装包中。
更多请见其帮助。
bmeps -h 获得帮助。
Sunday, October 30, 2011
[转载]R语言矩阵运算
创建矩阵向量;矩阵加减,乘积;矩阵的逆;行列式的值;特征值与特征向量;QR分解;奇异值分解;广义逆;backsolve与fowardsolve函数;取矩阵的上下三角元素;向量化算子等.
在R中可以用函数c()来创建一个向量,例如:
> x=c(1,2,3,4)
> x
[1] 1 2 3 4

