How to Whitelist a Sender or Domain in Gmail

Sure, Gmail's spam filter is mighty and good. When you visit the Spam view, all you see is junk. All the mail you want to receive arrives in time. What, though, if you want to be sure — sure that messages from your peers, your friends or your family never end marked as spam by Gmail? That security is in a filter that's simple, effective and set up easily. Whitelist a Sender or Domain in Gmail To make sure Gmail never filters as spam mail from a certain contact or domain: Click the Show search options downward-pointing triangle in your Gmail's main search field. Type the desired email address under From. To whitelist an entire domain (all mail from an address ending in "infinitescript.com", for example),…

Continue Reading

Building Vim from Source

Compiling Vim from the 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 the 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. The 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…

Continue Reading

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 of…

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 an 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 the following output: Add your SSH Key to GitHub Look up your SSH…

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 a 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 follows: 1. Open ~/.bashrc 2. Add the following statements: You can make a quick check whether Oracle’s JDK…

Continue Reading
Contact Us
  • Tencent AI Lab, Shenzhen, China
  • cshzxie [at] gmail [dot] com