How to view differences of branches with meld?

git-meld is a git command that allows you to compare and edit treeishs between revisions using meld or any other diff tool that supports directory comparison. git meld is a frontend to git diff and accepts the same options and arguments. It is essentially an extended git-difftool for tools that support comparing directories rather than having git call the external tool for every file that has changed. read more

How to Install SmartGit via PPA in Ubuntu

[SmartGit] is a graphical Git and Mercurial client. It runs on Linux, Mac OS X (10.5 or newer) and Windows (XP or newer). sudo add-apt-repository ppa:eugenesan/ppa sudo apt-get update sudo apt-get install smartgithg

How to use DecimalFormat in Java

The DecimalFormat class in Java is used to format numbers based on the pattern you specify yourself. This post explains how to use the DecimalFormat class to format different types of numbers.

[FWD] Two stories from a research paper: Content Without Context is Meaningles

Two stories from a research paper: Content Without Context is Meaningless. 1.1 Machine Learning Hammer Mark Twain once said: “To a man with a hammer, everything looks like a nail.” His observation is definitely very relevant to current trends in content analysis. We have a Machine Learning Hammer (ML Hammer) that we want to use for solving any problem that needs to be solved. The problem is neither with learning nor with the hammer; the problem is with people who fail to learn that not every problem is a new learning problem [1]. … If we can identify such a feature set, then we can easily model each object by… Read More »

[FWD] Introducing Source Han Sans: An open source Pan-CJK typeface

Adobe, in partnership with Google, is pleased to announce the release of Source Han Sans, a new open source Pan-CJK typeface family that is now available on Typekit for desktop use. For those who want to play with the original source files, you can get those from Github. The installable fonts and source files can be downloaded from the Releases page.

E.B. White’s Beautiful Letter to a Man Who Had Lost Faith in Humanity

Dear Mr. Nadeau: As long as there is one upright man, as long as there is one compassionate woman, the contagion may spread and the scene is not desolate. Hope is the thing that is left to us, in a bad time. I shall get up Sunday morning and wind the clock, as a contribution to order and steadfastness. Sailors have an expression about the weather: they say, the weather is a great bluffer. I guess the same is true of our human society – things can look dark, then a break shows in the clouds, and all is changed, sometimes rather suddenly. It is quite obvious that the human… Read More »

Correct/Repeat the last command under Bash

If you often type the wrong command (or repeat the simmilar commends) under bash shell (like me), you may need to read this post: cp file1.txt /path/to/dst cp file1.a1 /path/to/dst cp file1.a2 /path/to/dst Substitute the first occurrence How do I replace .txt with a1 and a2 and repeat the last command? The syntax is as follows for quick substitution and repeat the last command, replacing WORD1 with WORD2: read more

Hosting a Maven repository on github (with sources and javadoc)

How to make a small open sourced library available to other developers via maven? One way is to deploy it on Maven Central Repository. What I’d like to do is to deploy it to github, so I can modify it freely. This post will tell you how to do that. The typical way I deploy artifacts to a github is to use mvn deploy. Here are steps: Use site-maven-plugin to push the artifacts to github Use maven-javadoc-plugin to push the javadoc Use maven-source-plugin to push the source Configure maven to use the remote mvn-repo as a maven repository Configure maven-deploy-plugin First, I add the following snippnet to tell maven to… Read More »