The promise pattern in javascript is a mighty abstraction. Apart from the obvious advantage of writing sequential asynchronous code in less error-prone synchronous manner; it provides inherient error handling. Bluebird's promise library provides potpourri of features including filtered exception catching.
I first started using Docker mostly for development. It is quite facilitating. Recently ran into a scenario where I needed to compile and package couple of Java projects. With docker I can do just that without having to install JDK and Apache Maven on my machine.
I use Maven to bootstrap new Java project with my chosen flavor of artifacts (and framework/libraries), thereon all aspects of development are managed via Eclipse IDE. These modern tools have certainly made our lives easy. Nonetheless, it is essential to understand underlying rudiments.
Let’s try setting up environment variables on Windows OS (I am on Windows 8 box) from a command-line. Before we start some pointers:
I have been playing with wCK Servo from RoboBuilder for a while now. This servo packs quite a punch:
The scenario - I need to view/download log files from remote servers on a regular basis. The task of having to SSH to multiple servers to download log files was aching for some automation. This led me to Paramiko module, it "implements the SSH2 protocol for secure (encrypted and authenticated) connections to remote machines", bravo! just what I needed. Download Paramiko module here.
"Not only did he know and love product engineering, it's all he really wanted to do. He told me once that part of the reason he wanted to be CEO was so that nobody could tell him that he wasn't allowed to participate in the nitty-gritty of product design. " - Glenn Reid
Wilson concludes: "Hermann Hauser says he gave us the things Intel could never give us, no resources, no time and no money."
bl.ocks.org make code previews out of Github gist. This gist: 4147418 can be viewed like so: http://bl.ocks.org/4147418. Make sure you have a index.html in the gist, the landing page.
Neat stuff aye!
Bluetooth modules come really cheap these days, affordable alternatives to Xbee. I got my hands on a BTM-182 from Rayson. Like most Bluetooth modules, it comes with Serial Port Profile. SPP is basically a serial port emulator; in a nut shell - once its paired with a computer, you get a virtual COM port to play with.
With simple hacks the Arduino board (with USB programming interface) can be used as a USB to serial conversion device. There are two methods to do this.
Rugged Circuits make Ruggeduino, Arduino on steroids - with overvoltage protection, overcurrent protection, ESD protection. Great stuff for people like me, "oops! I made a boo-boo". Hat tip to Rugged Circuits for showing us 10 ways to destroy an Arduino AND methods to prevent them. Read all about it.
wls - is a minimalistic approach to a PHP based web directory listing.