2011年9月20日

binary search in python & c++

摘要: in python:import bisectbisect.bisect_left in c++std::lower_bound 阅读全文

posted @ 2011-09-20 23:25 不是程序 阅读(166) 评论(0) 推荐(0)

2011年1月22日

Portable cygwin

摘要: 可以携带的cygwin我们配置一个自己好用的cygwin很不容易,如何能让自己的cygwin拷贝到u盘上到处可用呢?把这两个文件放到你的cygwin目录里吧install.batuninstall.bat 阅读全文

posted @ 2011-01-22 22:27 不是程序 阅读(976) 评论(0) 推荐(0)

2010年5月24日

hg share and merge and conflict

摘要: rcd work start at rev15, commit rev16 and rev 17yzh work start at same rev and commit 16,17,too.but rcd's 16 and 17 will be conflict with the yzh's.rcd should commit all his modification, before merge... 阅读全文

posted @ 2010-05-24 14:09 不是程序 阅读(307) 评论(0) 推荐(1)

hg (mercurial) how to delete all unkonwn file or unversion file?

摘要: hg (mercurial) how to delete all unkonwn file or unversion file?On windowsOn machg st -nu|xargs -I \{ rm \{这里\{是在命令行中输入的,一个代替字符串,就是前面列表中文件的名称 阅读全文

posted @ 2010-05-24 14:08 不是程序 阅读(259) 评论(0) 推荐(0)

在一个大矩形区域内紧凑排列很多小矩形

摘要: 这个算法很常用,在游戏开发中,我们把小的纹理块,紧凑排列到一个大的纹理中。我找了很久,曾经尝试使用各种关键词找这个算法,比如texture pack, rearrange rectangles etc.都没能找到我想要的。这次在XNA的研究和学习中找到了一个Nuclex的库,这个库中的Nuclex.Game.Demo (x86)这个例子,就有三个经典的排列算法(C#)版本。原来这个算法不是叫做“在一个大矩形区域内紧凑排列很多小矩形”,应该去搜索“rectangle packing”, "rectangle packer", "二维装箱算法"。你就能找到很 阅读全文

posted @ 2010-05-24 14:07 不是程序 阅读(1199) 评论(0) 推荐(1)

mac os x svn 出现Can't move '.svn/tmp/entries' to '.svn/entries'错误

摘要: 环境:从windows的svn wc拷贝到mac os x下调用svn update出现错误:Can't move '.svn/tmp/entries' to '.svn/entries'解决办法:cd working folderchflags -R nouchg ./ 阅读全文

posted @ 2010-05-24 14:07 不是程序 阅读(419) 评论(0) 推荐(0)

svn del unversioned file by command line in win32

摘要: rockfor /F "usebackq tokens=2*" %%I in (`svn status Src\Resource ^|findstr /r "^\?"`) do (del /Q %%I) 阅读全文

posted @ 2010-05-24 14:06 不是程序 阅读(182) 评论(0) 推荐(0)

2009年6月18日

hg merge and diff setting

摘要: I use hg to do SCM, then there is need to use diff and merge tools.I prefer Kdiff3, it is the best merge tools.If you setting the kdiff3 as its office website told.you can change the .hgrc to make hg ... 阅读全文

posted @ 2009-06-18 06:22 不是程序 阅读(633) 评论(0) 推荐(0)

导航