Setting up your blog using Jekyll and hosting it on github

I wrote about my journey that led to choosing Jekyll based Poole framework as blogging platform for this site in my previous post . I have kept skeleton of my site in a separate foundation branch for others to easily use. You are free to fork mine to use for your own site.

In this post I will provide instructions on how to setup your own blog by using my jekyll project as foundation.

Continue reading...

Blogging platform for hackers - Octopress vs Docpad vs Poole

In this post I will walk through my journey of discovering right blogging platform for my site, share my experiences and findings along the way.

When I decided to blog, I researched on next generation blogging platforms for hackers. Mainstream blogging platforms like wordpress, blogger, tumblr are designed for naive users and aren’t best for developers. Because those platforms doesn’t support features programmers would want like code syntax highlighting, theming using frond end frameworks, Markdown language support, integration with source control repositories, etc.

Static site generators:

Continue reading...

How Children Succeed?

This post is about my reflections on the book How Children Succeed which I recently read.

What matters most in a child’s development for them to succeed in life?

We mostly think that intelligent and smart people succeed, i.e success comes to those who score highest in school, college or competitive exams like SAT, GMAT etc. But in How Children Succeed, Paul Tough argues that the qualities that matter more for success are have to do with the character.

In a child’s development, what matters most is not how much information we can stuff into his/her brain in the first few years. But, instead is whether we are able to help him/her develop a very different set of qualities like persistence, self-control, curiosity, conscientiousness, grit, and self-confidence. Infact, possessing these qualities helps a child to get high scores in exams consistently than intelligence alone.

Economists refer to these as noncognitive skills, psychologists call them personality traits, and the rest of us sometimes think of them as character.

Continue reading...

Log4j - Separating log lines to multiple log files.

It’s generally good practise to partition the log lines of your java application into different log files based on functionality/module etc.

For eg. In a web application, we would want application log lines to be logged in to server.log, whereas information about remote user who made the requests to be logged into request.log.

This can be done by defining two appenders in log4j properties and configuring them to output to two different log files.

Here is the example log4j properties.

We have defined two appenders, fileAppender to output to server.log and requestAppender to output to requests.log. Only fileAppender is added to rootLogger, so any Logger instances created by passing java class will be logged to server.log.

Example code snippets showing how to log to server.log.

To log to requests.log the Logger instance should be created passing requestLogger as logger name.

Example code snippets showing how to log to request.log.

If you would like to embed code examples your blog like in this article, Try Doculet.

Continue reading...

Generating Key, CSR and Certificates for SSL

If you want to run your application in HTTPS mode, you will need to get SSL certificates from a valid CA (Certificate Authority) like Verisign.

In this post I will provide steps for generating private key, CSR (Certificate Signing Request) and importing signed certificate back to private key store using java keytool utility

Continue reading...