Moving on to RubyMine

A few months ago at my last job, I was introduced to a senior programmer who had just started using Ruby. Since this was his first gig in Ruby, and he used to work with .Net projects before this, he wasn’t comfortable with the Ruby command-line way of programming (Edit program in text editor, then […]

Machine learning with Apache Spark

Installing Apache Spark on Ubuntu Download from the project page. Unzip into a directory. For example, I put all my custom stuff in `~/bin`. Add the bin directory of the exploded tar-file to your PATH variable. Running `which spark-shell` should point to the correct path. Restart your shell if it doesn’t. Books Fast Data Processing […]

Getting back to machine learning

In the last few months I’ve gotten back to working on AI. I was talking to a co-worker of mine about the pleasance project, and doing that got me bit by the bug again. I’ve had my new multicore desktop computer for a while now, and I should use it for parallel processing problems. Pleasance-jruby […]

Automatically start rails server with upstart

The following is how to set up an Upstart file so you can have a rails application autostart upon the startup of a server. Modify the “USERNAME” and “TAG_FOR_THIS_PROCESS_IN_SYSLOG” fields to something that you want. It will run the server as the user you declare, so that the server isn’t run as the root user […]

Docker and Torquebox

My OVH box went down a few weeks ago and refused to get back up. I couldn’t even ssh in. No clue why. On the bright side, I got to use this as an opportunity to learn more about keeping things fail-safe. I’d say “more fail-safe”, but apart from github for my source-code, nothing was […]

Update to JParallel

I began the JParallel library a little while ago (Right after the post about not doing my own parallel programming (It doesn’t make a lot of sense)), and nearly immediately got a response from Mohamed Hafez on the issue tracker recommending I add a bunch of features. And a week later he implemented things in […]

Do not do raw parallel programming

I previously had a blog post on thread-safe programming, where I said I wanted to do it, and that I know how mutexes work and I should start from there. That post has been wiped off the face of my blog. I’m not going to do low-level parallel programming for the foreseeable future. I came […]

Ruby: Select random element from array

This is a cool little trick I picked up from StackOverflow. Select random element of an array [:foo, :bar].sample Its the Array#sample instance method. Good to know.

Package file is invalid

I’ve finally gotten a smartphone. Figured I could use a portable connector to the internet. Its running android, and on the second day of use I got a ‘package file is invalid’ issue with everything I tried to download from the Google play store. Googling this issue resulted in 2 solutions. One is to clear […]

A few weeks ago I was introduced to by Josh Teneycke. Its a great website about neat little commands on the (Mostly unix) command-line. Anyone who wants to be a coding ninja should randomly read these before bedtime.