Archive

Linux

Bash: Setting variables from a file

Shell scripts sometimes get overly complicated and we need lot of configurations stored in file instead of setting them in ten different files which not to m...

Weekly Unix #6 - job control (2)

Finer Job Selection In the previous article we saw basics of job control but we skipped alternatives to select jobs. Consider the following job listing throu...

Weekly Unix #6 - job control

Some commands take long time to finish execution. For example if you are searching for a file in a directory or extracting/compressing a directory or maybe b...

Weekly Unix #5 - cd

An article on effective navigation with cd. How to create useful aliases and use CDPATH to navigate.

Weekly Unix #4 - ls

This command is one of the most widely used (no references, just guessing) command. It simple lists the directory contents. It lists files, directories and l...

CDPATH

What is CDPATH and how to use it. A quick tip on navigation faster with cd using CDPATH.

Weekly Unix #3 - tee

tee command as the man page puts it, reads from standard input and writes to standard output and files. Okay good enough but what does that mean? Well that m...

Weekly Unix #1 - tr

tr - translate TR basically stands for translate. The man page says - translate or delete character. So tr is used to manipulate the byte stream provided to ...

Back to Top ↑

Java

Spring - Read Http Request headers

In the previous article we saw how to use request parameters and request body of a request. In this article we will see how to use the request headers.

Java 8 Streams 101

Java 8 introduced a new Stream API. In this article we will take a look at how to create and use streams.

Creating CSV from Strings in Java

Earlier in Java 7, you needed a StringBuilder to create a CSV from list. From Java 8 onwards, there are multiple ways to achieve this depending on the task i...

Running in Pig in Local Mode in Java

Overview of steps Create a new maven project Add Hadoop and Pig dependencies Write a small pig script to count words in a file Write a driver progra...

Back to Top ↑

Elasticsearch

Back to Top ↑

Competitive programming

Back to Top ↑

DevOps

Back to Top ↑

Python

Back to Top ↑

Emacs

Back to Top ↑

Design Patterns

Memento

Ever used an image editing software? We opened an image but it’s too sharp and the light is not good. We make some changes and still not satisfied, we make f...

Back to Top ↑

Vagrant

Back to Top ↑

Apache Spark

Running Spark Locally

A quick guide on setting up Apache Spark on your local machine for development and testing.

Back to Top ↑

Hadoop

Running in Pig in Local Mode in Java

Overview of steps Create a new maven project Add Hadoop and Pig dependencies Write a small pig script to count words in a file Write a driver progra...

Back to Top ↑

Pig

Running in Pig in Local Mode in Java

Overview of steps Create a new maven project Add Hadoop and Pig dependencies Write a small pig script to count words in a file Write a driver progra...

Back to Top ↑

Pandas

Back to Top ↑

Data Science

Back to Top ↑

Docker

Back to Top ↑

Design

Back to Top ↑