Others

Git is cryptographically secure, but it’s not foolproof. If you’re taking work from others on the internet and want to verify that commits are actually from a trusted source, Git has a few ways to sign and verify work using GPG.

Introduction to GPG

First of all, if you want to sign anything you need to get GPG configured and your personal key installed.

hzxie@XieHaozhe-PC:~$ gpg --list-keys
/home/hzxie/.gnupg/pubring.gpg
------------------------------
pub   1024D/381BA480 2007-02-15
uid                  Johannes Ranke (CRAN Debian archive) <jranke@uni-bremen.de>

pub   4096R/3DBF9592 2016-03-28
uid                  Haozhe Xie (GPG key for GitHub) <cshzxie@gmail.com>
sub   4096R/BFEB9969 2016-03-28

If you don’t have a key installed, you can generate one with gpg --gen-key.

Apache™ Hadoop® is an open source software project that enables the distributed processing of large data sets across clusters of commodity servers. It is designed to scale up from a single server to thousands of machines, with a very high degree of fault tolerance. Rather than relying on high-end hardware, the resiliency of these clusters comes from the software’s ability to detect and handle failures at the application layer.

Hadoop 1 popularized MapReduce programming for batch jobs and demonstrated the potential value of large scale, distributed processing. MapReduce, as implemented in Hadoop 1, can be I/O intensive, not suitable for interactive analysis, and constrained in support for graph, machine learning and on other memory intensive algorithms. Hadoop developers rewrote major components of the file system to produce Hadoop 2. To get started with the new version, it helps to understand the major differences between Hadoop 1 and 2.

With the introduction of Windows Vista and Office 2007 Microsoft included some new fonts, which became the defaults in Office. Their names all start with ‘C’ and they are quite attractive. In particular there is a monospaced font called Consolas that is nice to use as a text editor font and Terminal font. The problem is they aren’t technically free, although Microsoft does include them in a number of freely available updaters. What follows is how I went about installing the fonts on my Mac.

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

sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev ruby-dev mercurial

Remove vim if you have it already

sudo apt-get remove vim vim-runtime gvim vim-tiny vim-common vim-gui-common

Compile source code

Download source code

You can get the source code here: http://www.vim.org/sources.php

Set Configuration

cd vim
./configure \
  --with-features=huge \
  --enable-rubyinterp \
  --enable-pythoninterp \
  --enable-luainterp \
  --enable-perlinterp \
  --enable-multibyte \
  --enable-sniff \
  --enable-fontset \
  --enable-cscope \
  --enable-gui=gtk2 \
  --prefix=/usr
make VIMRUNTIMEDIR=/usr/share/vim/vim74

Install Vim

sudo make install

If you don’t get gvim working (on ubuntu 12.04 LTS), try changing --enable-gui=gtk2 to --enable-gui=gnome2

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.

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.