Category Archives: Others

Building Vim from Source

Compiling Vim from source is actually not that difficult. Here's what you should do: Install all the prerequisite libraries Remove vim if you have it already Compile source code Download source code You can get source code here: http://www.vim.org/sources.php Set Configuration Install Vim If you don't get gvim working (on ubuntu 12.04 LTS), try changing --enable-gui=gtk2 to --enable-gui=gnome2 These configure and make calls assume a Debian-like distro where Vim's runtime files directory is placed in /usr/share/vim/vim74/, which is not Vim's default. Same thing goes for --prefix=/usr in the configure call. Those values may need to be different with a Linux distro that is not based on Debian. In such a case, try to remove the --prefix variable in the configure call and the VIMRUNTIMEDIR in the make call (in other words, go with the defaults). Besides, if you can't use backspace…

Continue Reading

How to Setup and Use Github in Ubuntu

If you are or want to be open source developer,you must try GitHub. It is a new hosted Git repository service that's being called a "social network" for programmers. It is basically a distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Setup SSH key Generate SSH Key If you have created your account at github and now you want to work with it from your terminal. Before you start installing Github, you should set up ssh keys: And you will get following output: Add your SSH Key to GitHub Look up your SSH key in id_rsa.pub file: Copy the SSH public key to clipboard, and Open https://github.com/settings/ssh Click "Add SSH Key", and paste…

Continue Reading

Install Google Pinyin in Ubuntu

I have been using Sun Pinyin for quite a long time, but once I used Google Pinyin, I found it great. So, let me tell you how to install Google Pinyin in ubuntu. First, you should add an source: Then, you should install Fcitx、Fcitx-googlepinyin: If you want to use "Cloud", you should install fcitx-module-cloudpinyin: Enjoy it!

Continue Reading

How to Configure Unity Workspace Layout in Ubuntu

Why would I need to change the layout ? Every time I upgrade the desktop for a new Ubuntu version it defaults it to a 2×2 layout. I don’t have a monitor on top of another so why would I use vertical workspaces? It maybe has advantages for some else workflow. Not mine. I’m used to horizontal multiple screens. How can I define a new workspace layout ? You can change several parameters with the Compiz Config Settings Manager. I found that some friends didn’t have it installed. So, just install it first. Call it pressing your keyboard Super key and typing compiz. When it appears click on it. CompizConfig Settings Manager window shows up. Now just select General / General…

Continue Reading

C# - Run Application as Administrator Automatically

In this tutorial, you will learn how you can run your application as administrator automatically using Visual C#2012. Start by opening your C# Windows forms application. Right click on your project name in the solution explorer and add a new item... Select an application manifest file: Click add. A new tab should open up, most of the codes in it are not important to us. There is one line however that we need to change: Change asInvoker to requireAdministrator as follows: Save your application and rebuild it. You can only open your executable when using Administrator rights. If you have any more questions, please leave them in the comment section below. Have a nice day !

Continue Reading

Regular Expression

In computing, a regular expression is a specific pattern that provides concise and flexible means to "match" (specify and recognize) strings of text, such as particular characters, words, or patterns of characters. Common abbreviations for "regular expression" include regex and regexp. Basic Concepts A regular expression, often called a pattern, is an expression that specifies a set of strings. To specify such sets of strings, rules are often more concise than lists of a set's members. For example, the set containing the three strings "Handel", "Händel", and "Haendel" can be specified by the pattern H(ä|ae?)ndel (or alternatively, it is said that the pattern matches each of the three strings). In most formalisms, if there exists at least one regex that…

Continue Reading
Contact Us
  • Room 614, Zonghe Building, Harbin Institute of Technology
  • cshzxie [at] gmail.com