`
zealotds
  • 浏览: 119758 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论
文章列表

My Vim Tips

Very Useful Notes by Darin Brezeale [Basic] :cd :pwd :e foo.c    to edit another file :e #        to jump back to the previous editing file Ctrl+L      redraw whole screen [Compile] :make       invoke make, and jump to first line of error automatically :set makeprg=gmake :set makeprg=gmake\ \CC=g ...
mingw msys 如果想要利用高效的UNIX环境又无法脱离Windows环境,或者只是想接触学习UNIX,不喜欢弱智的CMD,欢迎使用MSYS!另外一点我用过之后才发现的强大之处在于:在MSYS环境中你可以调用所有的Windows应用程序!因为这个环境里的程序本身也都是Windows程序。 这里记录一下自己的环境搭建过程,仅作备忘只用. 安装 MinGW主页有很多有用的信息可以挖 但其实安装文件都在这里: sourceforge.net GUI安装程序在这里 推荐大家使用GUI Installer。这个Installer其实就是一些repository(发布源)的定义和mingw- ...
python, chdir, sys.path, working directory, load module # Directory relative ----------------- # current working directory os.getcwd() # getcwd UNICODE version os.getcwu() # path separator, : for UINX and ; for Win os.pathsep # change your current working directory, useful in Interactive m ...
原文 http://blogold.chinaunix.net/u3/93470/showart_1871767.html def bin(x): result = '' x = int(x) while x > 0: mod = x % 2 x /= 2 result = str(mod) + result return result 进制转换 10进制转2进制:bin(123) 2进制转10进制:int('10',2) 10进制转16进制:hex(10) 16进制转10进制:int('f',16)     或 int(0xf) ...
常见的内存泄露演示 作者使用了一个Forma,每一个按钮都会打开一个子form。按常理,当子form被关闭时,我们都希望它所占有的资源被自动释放。但在这里,作者将在每一个子form中演示一种泄露的情况。 Static references 最明显的,如果一个对象被静态字段(field)引用,它永远都不会被释放。这种情况常见于单键模式,因为它们往往都市静态的,要不就是长时间驻留的。 这些直接引用往往都是显而易见的,但真正危险的都是那些间接引用。因此你需要格外注意引用串。一个有效的方法就是查看这个串的根,如果这个根式静态的,那整个串上的引用都无法被释放。 如上图,如果Object1是 ...
文章出处 导出函数,使函数被多个程序复用,DLL中的函数实现可以被修改而无需重新编译和连接使用该DLL的应用程序。作为一名面向对象的程序员,希望DLL可以导出类,以便在类的层次上实现复用。所幸的是,DLL确实也可以导 ...
virtualbox win7 64 bridge netework If you can't install Virtualbox Bridged Network on Win7 64bit. You should check this out. 如果你不能在Win7 64上安装Virtualbox的桥接网络控制器,那是因为Windows限制了最大网络控制的数量(比如VPN客户端会给你的机器安装很多虚拟Adapter)。更改以下注册表项,卸载Virtualbox,再重新安装之(修复安装无效),搞定! HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ ...
DNS Static mapping redirect the host name to the specific IP address without querying from the DNS. It is very useful in intranet environments. 1. Open the file "%systemroot%\system32\drivers\etc\hosts" 2. Add mapping entries like below: 9.17.245.55 hostname
Install Autotest: [sudo] gem install autotest -v 4.4.6 [sudo] gem install autotest-rails-pure -v 4.1.2 TimeStamp Plugin: [sudo] gem install timestamp # add the following line to ~/.autotest require 'autotest/timestamp' Run Autotest in your project folder: Autotest will not stop until you C ...
tag: vim ubuntu make multi-byte encoding xterm clipboard Reference: http://vim.wikia.com/wiki/Building_Vim http://vim.wikia.com/wiki/Clipboard http://www.linuxforums.org/forum/newbie/144575-problems-copying-pasting-vim.html Preface: I'm a Linux starter who like pure command line interface. So I ...
tag: LEAP WPA-EAP Android Wifi Original post, in which I added some comment: http://huang.yunsong.net/2009/android-wifi-leap.html#comment-3703 Tool: Wifi Advanced Config Editor (free in market) or root + vi (change /data/misc/wifi/wpa.conf yourself) Wifi Config Editor Settings: SSID: give your c ...
ubuntu linux fluxbox virtualbox Install VBoxGuestAdditions # mount cdrom sudo mount /dev/cdrom /cdrom # install sudo /cdrom/VBoxLinuxAdditiions-x86.run Install xrandr (Optinal) sudo aptitude install xrandr Config ~/.xinitrc # create one if does not exist # add this line after your startXXX com ...
tip, spaces only, shortcut 1.Spaces Only (no tab) In Eclipse: Window->Preferences->Editors->Text Editors->Insert spaces for tabs Window->Preferences->Java->Code Style->Formatter->Edit->Indentation = "Spaces Only" Window->Preferences->C/C++->Code Styl ...
ruby ror ubuntu linux 1. install ruby 1.8 (needed when install rvm) sudo apt-get install ruby 2. install rvm dependence: sudo apt-get install build-essential sudo apt-get install curl sudo apt-get install git-core sudo apt-get install zlib1g-dev libreadline5-dev libssl-dev libxml2-dev sudo a ...
assembly resolve, deployment, .net Scenario: 想要使用一个非GAC部署的assembly。我遇到的情况是要使用sql server几个analysis service的assembly,它们会被部署到sql server的安装路径。 不想把这几个assembly和工程一同部署以减小安装包或者要求客户一定会安装相应的assembly(一般情况是要求客户安装一些第三方的程序依赖) 不考虑被依赖的assembly内部的类型依赖。这样就不需要用发射去一个个的“找”类型来用。 使用当前AppDomain而不重新创建(此举完全输入偷懒行为,并非良策!) So ...
Global site tag (gtag.js) - Google Analytics