Hack

Change Ambari’s topbar color

We recently had a client that has multiple environments (Production, Integration, Testing, ...) running on HDP and managed using one Ambari instance per cluster. One of the questions that came up was the folloging: We need a way to distinguish our environment when on Ambari and the cluster name is visually not enough, how can [...]

By | 2017-07-24T21:37:13+00:00 July 9th, 2017|Categories: Hack|Tags: , |0 Comments

Network Namespace without Docker

Let's imagine the following use case: I am connected to several networks (wlan0, eth0, usb0). I want to choose which network I'm gonna use when I launch apps. My app doesn't allow me to choose a specific interface, it's delegated to the OS that chooses the default one. I could of course use Docker, which [...]

By | 2017-10-24T12:16:02+00:00 July 6th, 2016|Categories: Blog, Hack|Tags: |0 Comments

A simple connect middleware to transpile CoffeeScript files

This new module called connect-coffee-script is a Connect middleware used to serve javascript files written in CoffeeScript. This middleware is to be used by connect or any Connect compatible framework such as Express and Zappa. For those not familiar with CoffeeScript, it is a transpiler which compile into Javascript. […]

By | 2017-11-21T20:07:51+00:00 July 4th, 2016|Categories: Hack|0 Comments

Virtual machines with static IP for your Hadoop development cluster

While I am about to install and test Ambari, this article is the occasion to illustrate how I set up my development environment with multiple virtual machines. Ambari, the deployment and monitoring tool for Hadoop cluster, will be the subject of a yet to be written article. My virtal environment is VMWare but VirtualBox has [...]

By | 2017-11-21T20:11:45+00:00 July 27th, 2013|Categories: Hack|0 Comments

Catch ‘uncaughtException’ error in your mocha test

This isn't the first time I faced this situation. Today, I finally found the time and energy to look for a solution. In your mocha test, let's say you need to test an expected "uncaughtException" event, the Node.js technique to catch the uncatchable. Easy, just register an "uncaughtException" listener to the process event emitter. Well, [...]

By | 2017-11-21T19:54:26+00:00 July 27th, 2013|Categories: Hack|0 Comments

Crawl you website including login form with Phantomjs

With PhantomJS, we start a headless WebKit and pilot it with our own scripts. Said differently, we write a script in JavaScript or CoffeeScript which controls an Internet browser and manipulates the webpage loaded inside. In the past, I've used a similar solution called Selenium. PhantomJS is much faster, it doesn't start a graphical browser [...]

By | 2017-11-21T20:07:20+00:00 July 27th, 2013|Categories: Hack|0 Comments

Remote connection with SSH

While teaching big data and Hadoop, a student ask me about SSH and how to use. I’ll discuss about the protocol and the tools to benefit from it. Lately, I’ve been supervising the deployment of [Hadoop] clusters and its core components including [Kerberos] and [LDAP] servers from a single host to a full clusters. SSH is [...]

By | 2017-11-21T20:14:45+00:00 July 24th, 2013|Categories: Hack|0 Comments

Maven 3 behind a proxy

Maven 3 isn't so different to it's previous version 2. You will migrate most of your project quite easily between the two versions. That wasn't the case a fews years ago between versions 1 and 2. However it took me some time to find out how to properly configure my proxy settings and this article [...]

By | 2017-11-21T20:16:01+00:00 July 11th, 2013|Categories: Hack|0 Comments

Convert .flac music files to .mp3 on osx

As an osx user for years now, one should know by then that iTunes doesn’t support the flac format. We are now in 2012, I’ve been waiting for this to happens since years know. Loosing patience, dark time for Apple. In the meantine, for the record, here a how to convert flac files into an [...]

By | 2017-11-21T20:18:13+00:00 July 20th, 2012|Categories: Hack|0 Comments