Monday, June 01, 2015

few good episodes I found when listened to the archive:

London Clojurians SkillsMatter has some webcasts on clojure, looks interesting.

Tuesday, June 02, 2015

after read this article: How to boost your Vim productivity, I decided change my evil leader key to space:

(evil-leader/set-leader "<SPC>")

now I can access the leader key with both hands, cool.

reading Computing for Ordinary Mortals, actually a good read, not just for mortals.

Wednesday, June 03, 2015

read from twitter, this clojure library is cool: quil/quil · GitHub also it's examples repo: quil/quil-examples · GitHub

Friday, June 05, 2015

when reading previous issues of Linux Journal, few noteworthy ssh tips

  • basic configs for better security (Port is just anything but default):
    Port   22022
    Protocol   2
    LoginGraceTime  30
    MaxAuthTries  3
    PermitRootLogin no 
  • use private key login:
    RSAAuthentication yes
    PubkeyAuthentication yes
  • set a strong passphrase for your key, use ssh-agent and ssh-add to obtain reusable sessions. (above from 2014 January issue)
  • use ForceCommand directive to create a simple two-factor request (2014 March issue)

two useful tools:

few interesting reads:

start reading Seven Concurrency Models in Seven Weeks: When Threads Unravel (The Pragmatic Programmers), can't believe it covers Elixir and lambda architecture.

Thursday, June 11, 2015

even though I write my markdown on emacs, but I'll still install this markdown plugin for netbeans 8

this netbeans color theme looks really nice: Obsidian Color Theme

I learned a proper way to execute remote command via ssh:

ssh host <<'SHCMD'

Sunday, June 14, 2015

Jasypt is an easy to use encryption java library

compile 'org.jasypt:jasypt:1.9.2'

then as easy as php:

BasicTextEncryptor textEncryptor = new BasicTextEncryptor();
String myEncryptedText = textEncryptor.encrypt(myText);
String plainText = textEncryptor.decrypt(myEncryptedText);

it's the easiest way to protect passwords/api secrets in config files.

for the password, can either use Console.readPassword

Console c = System.console();
char[] password = c.readPassword("Enter password: ");

or set it as an environment variable:


Monday, June 15, 2015

borrowed a latest edition of Java in a Nutshell from local library, a really good summary on Java, including best practice and modern approaches.

Thursday, June 18, 2015

a useful tool for css (not gonna need it if you can use flex): How to Center in CSS

added two new podcasts:

some interesting episodes (don't have time to listen to them yet):

Blog Archives

Search Blog: