- 博客(35)
- 资源 (1)
- 收藏
- 关注
转载 floating point comparsion
https://github.com/acfr/comma/blob/master/math/compare.htemplate inline bool equal( float lhs, S rhs ) { return std::fabs( lhs - rhs ) ::epsilon(); }template inline bool less( float lhs,
2015-06-29 15:47:03 404
原创 dependence walker
use dependence walker to analyse the windows dynamic libraries window application depends on.
2015-01-09 11:41:09 1070
转载 vim中自动补全的快捷键
[转]http://blog.csdn.net/wooin/archive/2007/10/31/1858917.aspx此时有一些快捷键可以用:Ctrl+P向前切换成员Ctrl+N向后切换成员Ctrl+E表示退出下拉窗口, 并退回到原来录入的文字Ctrl+Y表示退出下拉窗口, 并接受当前选项如果你增加
2014-12-22 11:09:54 10562
原创 shell command example
找出所有含有elaborate.*-lm 的*.tcl 文件 find -name "*.tcl" -exec egrep -e "elaborate.*-lm" "{}" \; -print
2013-11-01 13:02:45 387
转载 visual studio debug techniques
http://msdn.microsoft.com/en-us/library/974tc9t1.aspx
2013-09-22 23:11:59 393
转载 Visual Studio 2008 library version management
http://stackoverflow.com/questions/8097733/how-to-distribute-c-run-time-crt-librariesThe default for Visual Studio 2008 is to bind to version 9.0.21022.8. This is regardless of whatever ve
2013-09-03 13:08:16 542
原创 debugging on visual studio
1. set breakpoint The C++ Debug build indeed has symbols. The trick is to setbreakpoint following this instruction: http://msdn.microsoft.com/en-us/library/wztycb7f(VS.90).aspx If you set
2013-08-14 18:06:56 424
转载 linker option "--as-needed"
It's due to linker option "--as-needed".The flag tells the linker to link in the produced binary only the libraries containing symbols actually used by the binary itself.We can benifit from the
2013-06-24 13:01:12 630
转载 soft floating point library
http://gcc.gnu.org/onlinedocs/gccint/Soft-float-library-routines.html — Runtime Function: unsigned int __fixunssfsi (float a)— Runtime Function: unsigned int __fixunsdfsi (double a)— Runtime F
2013-05-22 15:23:33 820
转载 read line from file with bash shell script
while read vardodosomething on 'var'done
2013-05-03 12:16:14 584
转载 ld.so library search paths
The shared libraries needed by the program are searched for in various places: o (ELF only) Using the DT_RPATH dynamic section attribute of the binary if presen
2013-04-27 16:33:22 596
转载 set font within emacs
本文推荐大家用一种比较直观的办法来设置自己喜欢的字体。 首先,在Emacs中,通过菜单Options –> Set Default Font,设置好你喜欢的字体。 然后,把光标放到你所在的字体上,用命令M-x describe-font来查看你当前使用的字体名称、字号大小。 把其中的字体信息拷贝出来,写到.emacs文件里: (set-default-font “-outline-Courie
2013-04-12 16:40:17 621
转载 Stage 1 — Contributing Dependently
Characteristics • The work is never entirely your own. • Your assignment is part of a larger effort or activity. • You are expected to do much of the detailed and routine
2013-04-12 14:44:14 525
转载 Stage 2 — Contributing Independently
Characteristics • Assume responsibility for a definite portion of a work effort or process. • Work independently and produce results that are recognized as your own. • De
2013-04-12 14:43:34 512
转载 Stage 3 — Contributing through Others
Characteristics • Develop a greater breadth of technical skills. • Apply those skills both to team deliverables and in other areas of the organization. • Build a network
2013-04-12 14:42:45 535
原创 my career orientation
Five Career Orientations BalanceSome people seek to balance their work‚ relationship‚ and self-development lives. For these individuals‚ work is just one important dimension of a total life-s
2013-04-12 14:27:52 729
原创 export variable if the child shell wanted to inherit the environment variables of parent shell
case 1:a=10echo $a ;// yield to 10bash // create one child shellecho $a; // yield to nothing case 2:export a=10echo $a // yield to 10bash // create one child shellecho $a // yield
2013-04-01 17:33:48 462
原创 LLVM pass manager debugging
I changed one FunctionPass into ModulePass. I met one problem, which only occured when running program directly.In other words, when I try to use GDB to debug, it did not happen. So I could only use
2013-03-22 13:30:19 1248
原创 job hunting from shrex
嗯 你也不要过度的表现出来 不要想我那时候那样 我觉得 就是做的事情 是自己想做的 然后 投简历的时候 有项目组那种邮箱 尽量投具体人名 尽量内部推荐 最起码人脉啊口碑啊 都得积累起来 也没有 就是面试表达出足够的自信 一定得好好看规定 月初走是最重要的一条 还有 那个半年打分那个 走了就不要指望了 肯定没奖金就是你的了
2013-03-17 21:28:57 427
转载 海量数据处理汇总
http://fuliang.iteye.com/blog/749387大数据量的问题是很多面试笔试中经常出现的问题,比如baidu google 腾讯 这样的一些涉及到海量数据的公司经常会问到。 下面的方法是我对海量数据的处理方法进行了一个一般性的总结,当然这些方法可能并不能完全覆盖所有的问题,但是这样的一些方法也基本可以处理绝大多数遇到的问题。下面的一些问题基本直接来源于公司的面试
2013-03-15 22:00:21 557
原创 external memory algorithm
reference book http://www.ittc.ku.edu/~jsv/Papers/Vit.IO_book.pdfexternal memory programming environment TPIE http://www.cs.duke.edu/TPIE/, Google's MapReduce
2013-03-14 20:52:43 629
转载 terminate called after throwing an instance of 'std::string'
http://stackoverflow.com/questions/6553938/terminate-called-after-throwing-an-instance-of-stdstring Perhaps some or all modules were compiled with -fno-exceptions? Seehttp://gcc.gnu.org/online
2013-03-11 11:34:11 2480
转载 windows 回车符
去掉windows下的回车符 (注意^M 在linux 下写法 按^M 是回车换行符,输入方法是按住CTRL+v,松开v,按m) http://my.oschina.net/armsky/blog/15334
2013-03-09 08:11:41 557
转载 cygpath like command on Msys
from windows path to unix pathcd $WIN_PATH; pwd -L from unix path to windows pathcd $UNIX_PATH; pwd -W from http://stackoverflow.com/questions/12015348/msys-path-conversion-or-cygpath
2013-02-27 15:44:26 414
原创 use expect to input password automatically
#!/usr/local/bin/expect -fputs $argvset fl [lindex $argv 0]set pw [lindex $argv 1]spawn scp $fl $REMOET_SERVER:$PATHexpect "*password:"#following $pw is carriage returnsend "$pw"expe
2013-02-21 11:51:44 334
原创 set proxy for svn on linux server
If you wanted to add proxy for svn, please edit file ~/.subversion/servers [global]# http-proxy-exceptions = *.exception.com, www.internal-site.orghttp-proxy-host = proxy.xilinx.com
2013-01-15 15:30:39 417
转载 Makefile: fix build if CDPATH is set in environment
http://old.nabble.com/-git-commit-master--Makefile%3A-fix-build-if-CDPATH-is-set-in-environment-td26770195.html If CDPATH is set in the environment, cd will print the absolute path of , causing
2012-05-28 15:39:15 337
转载 初学Java
最近在咱们论坛上看到很多人说: 学完了J2SE我该在学些什么,也有的问到了怎么学习java等等,我只想说:万丈高楼平地起,基础才是王道!!! 真正学好了、学扎实了J2SE那么学其他的就快多了,不止我是否说的对?我也分享下,我在 百度贴吧 看到的一篇好帖子,希望对大家有用,谢谢……我把它贴出来,也想大家继续说说自己的观点什么的……我来简单描述下一个Java初学者到就业要学
2012-04-24 16:47:13 320
原创 llvm runtime analysis
transform -time-passes -info-output-file tmp $passes $input -o $output -fFile lib/Support/Timer.cpp
2011-07-20 14:01:23 508
转载 memory corruption
http://blog.csdn.net/wallacexiang/article/details/4300831*** glibc detected *** free(): invalid pointer:*** glibc detected *** malloc(): mem
2011-07-11 15:59:12 2856
转载 (转)柔和背景颜色保护你的视力
<br /> http://writeblog.csdn.net/PostEdit.aspx<br />黑字浅绿底,绿色最柔和,对眼睛会好点。但不管怎么设置时间长肯定伤眼睛,我就是被e680给害了。<br />背景颜色:红204<br /> 绿232<br /> 蓝207<br />另附电脑上浏览网页颜色设置<br />在桌面点右键选“属性”(properties),接着点“外观”(appearance),点右下 角的“高级”<br />(advanc
2011-03-24 12:06:00 914
转载 Bash批量更改文件后缀名
<br /> 9/1/2008 1:08:24 PM转载自http://forum.ubuntu.org.cn/weblog_entry.php?e=6683在 Bash 下批量更改文件扩展名2007-10-31 周三, 15:18<br />在 Bash 下批量更改文件扩展名 <br /><br /><br />如果我想把当前目录下的所有扩展名为 cpp 的文件,改成扩展名为 c 的文件,要怎么办? 用 shell 编程可以很容易的解决这个问题: <br /><br />1. <br />#!/bin/b
2011-01-26 11:15:00 2226
Unix command-Line KongFu
2009-08-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人