Install PHP and PHPUnit on Windows/Ubuntu

Download PHP Windows downloads of PHP are available here. If you are not sure of which version to get, check out this Stack Overflow page. I used the VC11 thread safe PHP 5.5.0 download. Install PHP Once you’ve downloaded the installer, run it and install PHP in C:php (or wherever you like, but remember that the path should not contain spaces). Choose your webserver (or none if you don’t have a webserver installed) and select any additional components as needed, including PEAR. Once PHP is installed open a command prompt. Check that PHP is set up correctly by running It should give you output something like If you don’t get this output something has gone wrong with the PHP install or in the modification…

Continue Reading

Use SQLite in Qt

Project file (.pro) Add the following line to your .pro file Header Source Execute a query

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: If your key does not have the default filename, you'll have to pass the path to ssh-add. And you will get following output: Add your SSH Key to GitHub Look up your SSH key in…

Continue Reading

Running Hadoop 1.1.2 on Ubuntu Linux (Single-Node Cluster)

In this tutorial I will describe the required steps for setting up a pseudo-distributed, single-node Hadoop cluster backed by the Hadoop Distributed File System, running on Ubuntu Linux. This tutorial has been tested with the following software versions: Ubuntu 13.04 Apache Hadoop 1.1.2 (Released on February 15th, 2013) Prerequisites Oracle Java 7 Hadoop requires a working Java 1.5+ (aka Java 5) installation. In this tutorial, I will describe the installation of Java 1.7.0 Update 21. You can get an Java Development Kit(JDK) on the oracle. Then decompress it to /usr/lib/jvm/jdk1.7.0_21 (You can decompress it to any other place) After installation, you should set environment variables as following: 1. Open ~/.bashrc 2. Add following statements: You can make a quick check whether Oracle’s JDK is…

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 Options /…

Continue Reading
Contact Us
  • SenseTime Research, Shenzhen Bay Eco-Technology Park
  • cshzxie [at] gmail [dot] com