Skip to main content

Testing Scalding type-safe API

I recently read Applying TDD to Scalding Development. The content of the article is interesting and still relevant but the example is implemented with the old Fields based API.

Following is an updated version of the code using Scalding's type-safe API:

Comments

Popular posts from this blog

Transferring SMS from iPhone to Android (for developers)

I recently bought a Nexus 4 to replace my old iPhone 3GS. The transition has been smooth except for the transfer of the SMS from iPhone to Android which led me to write some code and this post. The most interesting article I found on this subject was  iPhone SMS to Android Converter . Considering iSMS2droid has not been updated since October 2011 and does not seem to be compatible with iOS 6, if you choose this solution, you will have to upload your messages on  Jan Grewe  server. You decide for yourself if you are OK with sending your SMS database to his server. I chose to follow another path. After failing to find iSMS2droid or SMS Backup & Restore source code I started coding my own  SMS transfer application . Limitations Only works with iOS 6 SMS Only works with Android having the  sms://  content provider Does not handle attachments yet Requires  Android SDK  to build the Android app Step 1: Find your iPhone SMS...

Accessing a Docker container running in a Docker-Machine on localhost

On Linux you can access your running Docker container on localhost or remotely by publishing the desired port. On macOS it will only give you access to the Docker container from the Docker-Machine it is running on, i.e. from docker-machine ip <machine_name> . To access it on localhost, you can use ssh port forwarding: docker-machine ssh <machine_name> -fNTL <local_port> :localhost:<machine_port> You can now access your Docker container on localhost:<local_port> . Bonus: Accessing your Docker container from a remote computer. By default, with ssh -L , the local port is bound for local use only. You can use the bind _address option to make your Docker container available publicly: docker-machine ssh <machine_name> -fNTL \*:<local_port>:<localhost>:<machine_port> You can now access your Docker container on <your_ip>:<local_port> .

Make your Windows command line better

In my current project, I am stuck with Windows 7 which means no Bash :( I could have installed Cygwin as usual but this time, I decided to extend my knowledge of the Windows command line and I found this: doskey . With the doskeys defined below, the Windows command line is still far from being as powerful as an old good Bash but it is a bit more user friendly. Even better, I found the Windows PowerShell which has familiar notions like profile and aliases . The doskeys I use: My PowerShell profile: Recommended link: https://github.com/mathiasbynens/dotfiles/blob/master/.aliases