Archive for July, 2015

Crashes only on Wednesdays

July 31, 2015 Leave a comment


Ants, Gardens by the Bay, SingaporeSit back and grab a drink: it’s time for the story of one of my favorite bugs.

‘Twas my very first IT job, a software developer summer internship at a manufacturer of very serious medical equipment, primarily anesthesia delivery systems and hospital patient monitors. The latter are the boxes you see bleeping next to bed-ridden patients, drawing graphs of pulse, blood pressure, respiration etc and summoning nurses when they flatline.  The office was full of 2-meter cylinders of laughing gas, luxuriously bearded gurus expert in embedded systems, and entire rooms devoted to the documentation needed for the FDA certification of various devices.  Hushed voices still spoke of a bug that had slipped through testing ten years ago in one piece of anesthesia kit and caused the machine to reset in the middle of surgery, and needless to say a teenage greenhorn like myself was kept well clear of all…

View original post 783 more words

Categories: Uncategorized

JSON pattern matching with sed, perl and regular expressions

July 29, 2015 Leave a comment

Vlad Mihalcea

Why VIM?

Sooner or later there comes the day when your easy-to-use IDE becomes useless for handling huge files. There aren’t many editors capable of working with very large files, like production logs for instance.

I’ve recently had to analyze a 100 MB one-line JSON file and once more VIM saved the day. VIM, like many other Unix utilities, is both tough and brilliant. Git interactive rebase requires you to know it, and if you’re still not convinced, maybe this great article will make you change your mind.

Let’s see how easily you can pretty print a JSON file with VIM. First we will download a one-line JSON file from Reddit.

This is how it looks like:


Pretty printing

Python comes along with most Unix distributions, so running the following VIM command manages to do the trick:


Let’s save the pretty printed JSON file and put other Unix tools to…

View original post 131 more words

Categories: Uncategorized

Using Spring XD to stream Tweets to Hadoop

July 23, 2015 Leave a comment

Aman Kumar

1 – Download and Install Spring-XD

Spring-XD can be found at This tutorial uses the 1.0.0.M3 version, so conventions may change in next release. Follow the install instructions and kick up Spring-XD with a test stream to make sure it’s looking good.

create stream --name ticktock --definition "Time | Log"

That simple instruction should begin showing output in the server terminal window similar to:

2013-10-12 17:18:09
2013-10-12 17:18:10
2013-10-12 17:18:11
2013-10-12 17:18:12
2013-10-12 17:18:13
2013-10-12 17:18:14

Congrats, Spring-XD is running.

2 – Download and Install Hadoop

The hadoop can be installed on the singlenode by using the steps mentioned in my previous blog at

Configuring Spring-XD to use Hadoop :

Step 1 – Edit the file Edit the file at to enter the namenode config:

Step 2 – Spin up the Spring-XD Service with Hadoop

In a terminal window get the server running from…

View original post 501 more words

Categories: Uncategorized

Discover Contacts And Domains With Recon-ng

July 15, 2015 Leave a comment

Penetration Testing Lab

Automation is really important in penetration testing engagements because it can help the penetration tester to save time and to give more attention to other activities.For that reason many pen testers are putting effort to build tools to assist them with a variety of tasks.Such a tool is the recon-ng which can perform web-based reconnaissance and it can be used in social engineering engagements or for extracting information that exists on the web.In this article we will examine how we can use the Recon-Ng framework to discover different type of information.

We can type help in the framework in order to see a list with all the available commands.

recon-ng - commands recon-ng – commands

We can see that there is a command named modules.We will type that command to check the existing modules that we can use.In the next image you can see a sample of the available modules.

recon-ng - sample of the available modules recon-ng – sample…

View original post 228 more words

Categories: Uncategorized

Microservices Development with Scala, Spray, MongoDB, Docker and Ansible

July 15, 2015 Leave a comment

Technology Conversations

This article tries to provide one possible approach to building microservices. We’ll use Scala as programming language. API will be RESTful JSON provided by Spray and Akka. MongoDB will be used as database. Once everything is done we’ll pack it all into a Docker container. Vagrant with Ansible will take care of our environment and configuration management needs.

We’ll do the books service. It should be able to do following:

  • List all books
  • Retrieve all the information related to a book
  • Update an existing book
  • Delete an existing book

View original post 1,560 more words

Categories: Uncategorized

Java 8 Streams: Micro Katas

July 15, 2015 Leave a comment

Technology Conversations

A programming kata is an exercise which helps a programmer hone his skills through practice and repetition.

This article is part of the series Java Tutorial Through Katas.

View original post 383 more words

Categories: Uncategorized

Java 8 Tutorial Through Katas: Berlin Clock (Easy)

July 15, 2015 Leave a comment

Technology Conversations

A programming kata is an exercise which helps a programmer hone his skills through practice and repetition.

This article is part of the series Java Tutorial Through Katas.

View original post 532 more words

Categories: Uncategorized