{"@attributes":{"version":"2.0"},"channel":{"title":"Harm Aarts","link":"https:\/\/mindshards.com\/","description":"Recent content on Harm Aarts","generator":"Hugo -- gohugo.io","language":"en","lastBuildDate":"Thu, 19 Jan 2017 13:08:00 +0000","item":[{"title":"Developer truths","link":"https:\/\/mindshards.com\/posts\/developer-truths\/","pubDate":"Thu, 19 Jan 2017 13:08:00 +0000","guid":"https:\/\/mindshards.com\/posts\/developer-truths\/","description":" Developer truths complexity should be fought every inch of the way Everything else follows from that;\nhave a damn good reason for your complex solution have a damn good reason for every line of code the only good code is delete code the best code is never written code ORYO: only repeat yourself once upgrade (your dependencies) or die"},{"title":"LXD as developer isolation","link":"https:\/\/mindshards.com\/posts\/lxd-as-developer-isolation\/","pubDate":"Sun, 06 Nov 2016 21:26:00 +0000","guid":"https:\/\/mindshards.com\/posts\/lxd-as-developer-isolation\/","description":"LXD as developer isolation I&rsquo;m a developer. Loving it. What I hate is all the cruft my machine accumulates over the passing months. Have you ever tried NodeJS? Prepare for megabytes of javascript sprinkled over your system. Android development (or Java in general) is even worse.\nSure there are way of mitigating this problem somewhat. For Ruby you have rvm (or rbenv or &hellip;), for Python there&rsquo;s virtual_env and for Node there&rsquo;s nvm."},{"title":"Predicting house prices","link":"https:\/\/mindshards.com\/posts\/predicting-house-prices\/","pubDate":"Thu, 22 Sep 2016 17:27:00 +0000","guid":"https:\/\/mindshards.com\/posts\/predicting-house-prices\/","description":"Predicting house prices Our little country is blessed with a monopoly which sort of seems to work; the online real estate market is dominated by one player called Funda\nRecently I found myself with a little time on my hands in which I decided to give an other stab at my Machine Learning aspirations. The plan is really simple. Scrape said website and try to determine, based on several features the correct price of a house."},{"title":"LUKS with key file on Kali\/Debian Jessie","link":"https:\/\/mindshards.com\/posts\/luks-with-keyfile\/","pubDate":"Tue, 05 Apr 2016 14:17:00 +0000","guid":"https:\/\/mindshards.com\/posts\/luks-with-keyfile\/","description":"LUKS with key file on Kali\/Debian Jessie Today I managed to setup Kali (Debian Jessie) with LUKS and a key file on a USB stick. This took me considerable time as much information on the process is either outdated or for other Linux flavors.\nWhen you have figured it out it is, of course, pretty easy. Let me break it down.\nFirst of forget all the key generation bullshit. Carrying a USB drive with a file called &lsquo;secret_key."},{"title":"LXC, Cgroups and weird numbers","link":"https:\/\/mindshards.com\/posts\/lxc-and-weird-numbers\/","pubDate":"Wed, 11 Mar 2015 13:26:00 +0000","guid":"https:\/\/mindshards.com\/posts\/lxc-and-weird-numbers\/","description":"LXC, Cgroups and weird numbers Running docker inside of an LXC container is not as trivial as I expected. Here I would like to clarify one of the many things that puzzled me along the way. The enigmatic configuration lines in the lxc configuration file (\/var\/lib\/lxc\/your-container\/config):\nlxc.cgroup.devices.allow = b 7:* rwm With some effort I figured out the b is a block device. c a character device (no idea what those are at the moment) and a for &lsquo;all&rsquo; or both."},{"title":"Developer flow","link":"https:\/\/mindshards.com\/posts\/developer-flow\/","pubDate":"Wed, 15 Oct 2014 09:54:00 +0000","guid":"https:\/\/mindshards.com\/posts\/developer-flow\/","description":"Developer flow An important, and often overlooked, aspect of developing code is setup.\nOften I notice that it is not clear how one should proceed. The tasks are there, the concept is clear but how should you get started on them?\nI&rsquo;m talking about getting into the write code\/test loop. Which databases should be up and running? With what content? Should you use a debugger? What is the best directory structure for the project?"},{"title":"Objectify frond end elements","link":"https:\/\/mindshards.com\/posts\/objectify-frontend-elements\/","pubDate":"Sun, 02 Mar 2014 20:53:00 +0000","guid":"https:\/\/mindshards.com\/posts\/objectify-frontend-elements\/","description":"Objectify frond end elements Why not make a particular kind of link a full fledged object? Eg new QuestionLink()\nInspired on the PageObject pattern on front end testing."},{"title":"Someone else's code","link":"https:\/\/mindshards.com\/posts\/code-of-some-one-else\/","pubDate":"Sun, 22 Dec 2013 21:11:00 +0000","guid":"https:\/\/mindshards.com\/posts\/code-of-some-one-else\/","description":"Someone else\\&rsquo;s code Not too long ago I created a pull request for Fish. In that pull request I greatly enhanced Fish&rsquo;s ability to handle Git repositories. In my humble opinion of course.\nIn doing so I went all the way. I refactored all the functionality. Hell, I started all over again! I took the work of many programmers and threw it out.\nAll seemed dandy, I had fruitful discussions with other developers and we worked out a plan which I implemented."},{"title":"PHP is awesome, sometimes","link":"https:\/\/mindshards.com\/posts\/php-is-awesome\/","pubDate":"Sun, 13 Oct 2013 21:22:00 +0000","guid":"https:\/\/mindshards.com\/posts\/php-is-awesome\/","description":"PHP is awesome, sometimes I quite a job when my employer switched from a Java stack to a PHP environment. I don&rsquo;t like needles and haystacks. I&rsquo;m not keen on many aspects of PHP.\nHowever, a developer and entrepreneur I greatly respect often works with PHP. He is a true hacker. Within minutes he is able to whip up a script to perform a small task and show the output on a HTML page."},{"title":"Whitespace delimited formats","link":"https:\/\/mindshards.com\/posts\/whitespace-delimited-formats\/","pubDate":"Wed, 10 Jul 2013 09:28:00 +0000","guid":"https:\/\/mindshards.com\/posts\/whitespace-delimited-formats\/","description":"Whitespace delimited formats Recently I&rsquo;ve had the opportunity to dabble with Python, the whitespace delimited variant of Ruby.\nI always felt whitespace delimited formats are unwieldy, now I know they are. For one, your editor can&rsquo;t help you.\ndef sheep(): a = 123 When pressing &lsquo;enter&rsquo; just after the \\&lsquo;3&rsquo;, is your method done? Your editor can&rsquo;t know and thus can de-indent. Even typing a new \\&lsquo;def&rsquo; won&rsquo;t help you as this is valid Python."},{"title":"Code intent","link":"https:\/\/mindshards.com\/posts\/intent\/","pubDate":"Mon, 24 Jun 2013 12:06:00 +0000","guid":"https:\/\/mindshards.com\/posts\/intent\/","description":"Code intent The code below does not convey intent. And it has side effects.\ndef show discussion end ``` def discussion \\@discussion ||= Discussion.find end"},{"title":"Creating functions in Fish part 2","link":"https:\/\/mindshards.com\/posts\/creating-functions-in-fish-part-2\/","pubDate":"Thu, 30 May 2013 14:41:00 +0000","guid":"https:\/\/mindshards.com\/posts\/creating-functions-in-fish-part-2\/","description":"Creating functions in Fish part 2 set -l commits (git rev-list &ndash;left-right \\$upstream&hellip;HEAD \\^\/dev\/null; set os \\$status) if test \\$os -eq 0\nThere is no name scoping in Fish. So we prefix all method with the &lsquo;class&rsquo;\/\\&lsquo;scope."},{"title":"Creating functions in Fish","link":"https:\/\/mindshards.com\/posts\/creating-functions-in-fish\/","pubDate":"Thu, 30 May 2013 14:17:00 +0000","guid":"https:\/\/mindshards.com\/posts\/creating-functions-in-fish\/","description":"Creating functions in Fish Variable declarations Variables in Fish might be a bit counter intuitive for some one with a programming background. It is done with the set buildin. The plain set galaxy_destroyers does one of two things depending on the global state of the shell.\nIf there is already a global variable with the name galaxy_destroyers invokation of set galaxy_destroyers 42 changes that variable to 42. If there is no such variable invokation creates a local variable with said value."},{"title":"Chromebook development machine, 1 month in","link":"https:\/\/mindshards.com\/posts\/chromebook-as-development-machine-one-month-in\/","pubDate":"Sat, 27 Apr 2013 16:51:00 +0000","guid":"https:\/\/mindshards.com\/posts\/chromebook-as-development-machine-one-month-in\/","description":"Chromebook development machine, 1 month in I&rsquo;ve been using a Chromebook lately as my primary machine. In my first post I&rsquo;ve explained the basic setup and issues I was having. Having used my Chromebook for a while now I think I have (even) more sensible things to say.\nVPS I think I have finally settled on a VPS. My ansible configs have come a long way. With regard to RAM: 2GB is enough, 1 GB is not, it&rsquo;s that simple."},{"title":"Chromebook as a development machine","link":"https:\/\/mindshards.com\/posts\/chromebook-as-development-machine\/","pubDate":"Sat, 23 Mar 2013 14:15:00 +0000","guid":"https:\/\/mindshards.com\/posts\/chromebook-as-development-machine\/","description":"Chromebook as a development machine Update followup: One month in\nI drank the cool-aid and bought a Samsung ARM Chromebook. My Macbook Pro needed repairing and I can&rsquo;t go without a laptop for two weeks. For a living I am a Ruby on Rails developer, most of my time I spent on either the commandline and Vim or in a browser. I figured I just as well might get a Chromebook which only has these two things."},{"title":"Expectations in a RSpec before filter","link":"https:\/\/mindshards.com\/posts\/expectation-in-rspec-before-filters\/","pubDate":"Fri, 18 Jan 2013 08:18:00 +0000","guid":"https:\/\/mindshards.com\/posts\/expectation-in-rspec-before-filters\/","description":"Expectations in a RSpec before filter Last week I found a piece of code which put expectations (for example should_receive or the likes) in before filters in your spec file. I believe this is not correct in subtle ways.\nA before filter is meant to define the &lsquo;world&rsquo; your RSpec is going to run in. Not to set expectations. These go into it blocks. Besides that, when putting expectations in a before filter, the expectation is needlessly checked ever it block."},{"title":"Go on a Raspberry Pi","link":"https:\/\/mindshards.com\/posts\/go-on-a-raspberry-pi\/","pubDate":"Mon, 31 Dec 2012 13:06:00 +0000","guid":"https:\/\/mindshards.com\/posts\/go-on-a-raspberry-pi\/","description":"Go on a Raspberry Pi Recently I found myself playing with both Go and a Raspberry Pi. I&rsquo;ve build a some Go programs on my Mac but copying over the executable to the Pi did not work (surprise!). It is actually fairly easy to crosscompile a Go binary:\nGOARM=5 GOARCH=arm GOOS=linux go build your_program.go It&rsquo;s all pretty self explanatory, the one thing that confused me was the GOARM variable. I&rsquo;d expect the GOARCH to be enough."},{"title":"Here documents in Ansible","link":"https:\/\/mindshards.com\/posts\/here-documents-in-ansible\/","pubDate":"Sun, 02 Dec 2012 21:00:00 +0000","guid":"https:\/\/mindshards.com\/posts\/here-documents-in-ansible\/","description":"Here documents in Ansible Sometimes you have a binary which insists on asking you questions when installing it. I ran into that with the linux Crashplan installer.\nOf course there is a solution to this, called &lsquo;here documents&rsquo;. This allows you to issue commands to a script or program by piping in a piece of pre formatted text. Usually the CR\/enter\/return is represented as a just that. Create the here document with enters at the appropriate places."},{"title":"Why I'm returning my Sonos","link":"https:\/\/mindshards.com\/posts\/returning-my-sonos\/","pubDate":"Sun, 02 Dec 2012 20:02:00 +0000","guid":"https:\/\/mindshards.com\/posts\/returning-my-sonos\/","description":"Why I\\&rsquo;m returning my Sonos I am going to return my Play:3. This saddens me a great deal and I would like to explain why I&rsquo;m doing so.\nFirst a little bit about my setup. My wife and I both have an (Android) smartphone with music. We also both have a Macbook with iTunes. Hers with a small library, mine 80GB. We have a Sonos Play:3 and a bridge."},{"title":"A better Chef; Ansible","link":"https:\/\/mindshards.com\/posts\/a-better-chef-ansible\/","pubDate":"Sun, 25 Nov 2012 19:33:00 +0000","guid":"https:\/\/mindshards.com\/posts\/a-better-chef-ansible\/","description":"A better Chef; Ansible Lots of people still use Chef for their devops needs. I briefly used Chef about 6 months ago and got very frustrated. I find the process convoluted and confusing. For our Riak cluster we needed a deploy script to move an install script and resources to the remove host. The install script installed Ruby, some required packages only then the actual Chef recipe was run. Maybe I was doing it wrong, but then I&rsquo;m of the opinion that the whole thing is too complicated."},{"title":"Use RSpec to monitor your app","link":"https:\/\/mindshards.com\/posts\/rspec-to-monitor-your-apps\/","pubDate":"Fri, 16 Mar 2012 15:01:00 +0000","guid":"https:\/\/mindshards.com\/posts\/rspec-to-monitor-your-apps\/","description":"Using RSpec to monitor your apps RSpec did it again. It blew my mind. Just when I was doubting how awesome it was.\nAt Skylines we run a lot of services. API&rsquo;s, websites, apps. You name it. When something goes down we want to know about it. Not when a client calls but the second after it breaks.\nAs a good developer you write a bunch of (unit\/integration) tests. These tests are used when writing the code."},{"title":"cdist - the setup","link":"https:\/\/mindshards.com\/posts\/cdist-setup\/","pubDate":"Tue, 17 Jan 2012 19:44:00 +0000","guid":"https:\/\/mindshards.com\/posts\/cdist-setup\/","description":"cdist - the setup Configuration management Cdist is a little piece of software which makes setting up new servers a little less painful. I believe the main advantage of using software like this is not the easy setup but the fact that the process creates executable documentation. Cdist is new when compared to Puppet, Chef and a couple of others. It appealed to me because it&rsquo;s not much more that a glorified bunch of shell scripts."},{"title":"Looking for a job","link":"https:\/\/mindshards.com\/posts\/looking-for-a-job\/","pubDate":"Thu, 10 Nov 2011 09:43:00 +0000","guid":"https:\/\/mindshards.com\/posts\/looking-for-a-job\/","description":"I\\&rsquo;m looking for a job It is official; I&rsquo;m looking for a job in the Utrecht or Amsterdam area. The position I&rsquo;m looking for combines cutting edge technology with a healthy dose of pragmatism and a great team.\nAfter selling my startup company I&rsquo;m currently very much interested in Big Data and AI (I even have a degree in the latter!). I can actively participate in, or initiate, the development of a business or product by providing realistic technical insight, the necessary programming skills and the ability to motivate the guys (gals?"},{"title":"Root mass","link":"https:\/\/mindshards.com\/posts\/root-mass\/","pubDate":"Thu, 03 Nov 2011 13:31:00 +0000","guid":"https:\/\/mindshards.com\/posts\/root-mass\/","description":"Root mass Some root mass is developing. This is almost 5 weeks in."},{"title":"Go from a Ruby perspective","link":"https:\/\/mindshards.com\/posts\/go-from-a-ruby-perspective\/","pubDate":"Tue, 01 Nov 2011 23:01:00 +0000","guid":"https:\/\/mindshards.com\/posts\/go-from-a-ruby-perspective\/","description":"Go from a Ruby perspective update I wrote a follow up post.\nI&rsquo;m notably lacking is any C\/C++ skills aside from the basic course at the university. This is why I took up Go. Google App Engine is of interest to me because I have prior experience with Heroku and AWS and no desire to maintain a server capable of running Go. The pet project I use to explore Go and GAE is on Github and called Flipco."},{"title":"Four weeks in","link":"https:\/\/mindshards.com\/posts\/four-weeks-in\/","pubDate":"Mon, 31 Oct 2011 12:05:00 +0000","guid":"https:\/\/mindshards.com\/posts\/four-weeks-in\/","description":"Four weeks in The growth of the plants is somewhat disappointing but all is well. The system performed without a hitch over the last couple of weeks. I do rotate the plants on a semi regular basis.\nWith the next batch I&rsquo;m going to grow the same kind of plants in soil to see how the two approaches compare."},{"title":"Setback","link":"https:\/\/mindshards.com\/posts\/setback\/","pubDate":"Sat, 08 Oct 2011 12:49:00 +0000","guid":"https:\/\/mindshards.com\/posts\/setback\/","description":"Setback All the seeds have germinated!\nDrought But the two leftmost seedlings were dried out when I checked this morning. I gave them some extra water and they seem to recover well. The water level hardly dropped in 5 days so I think it&rsquo;s a more structural problem. The level is 15 centimeters below the lid and 10 centimeters below the bottom of the net pots. The mister is only slightly off center to the right and also angled slightly to the right."},{"title":"Saplings","link":"https:\/\/mindshards.com\/posts\/saplings\/","pubDate":"Wed, 05 Oct 2011 14:49:00 +0000","guid":"https:\/\/mindshards.com\/posts\/saplings\/","description":"Saplings After two days the seedlings appear in three out of six pots. I planted between two and five seeds per pot. I wonder if the remaining three sprout."},{"title":"Aeroponics system live","link":"https:\/\/mindshards.com\/posts\/aeroponics-system-live\/","pubDate":"Mon, 03 Oct 2011 17:14:00 +0000","guid":"https:\/\/mindshards.com\/posts\/aeroponics-system-live\/","description":"Aeroponics system live Today the rucola growing machine went operational. How came this project to be?\nI&rsquo;ve always been interested in plants and electronics and recent developments gave me the opportunity to finally explorer the two. A blog post by an Ultrasonic Aeroponics system gave me all the pointers I needed. Almost all aspects of the project are better described there so I suggest you read that post first. Excellent reading!"},{"title":"Single founders are idiots","link":"https:\/\/mindshards.com\/posts\/single-founders\/","pubDate":"Mon, 12 Sep 2011 12:29:00 +0000","guid":"https:\/\/mindshards.com\/posts\/single-founders\/","description":"SSingle founders are idiots A couple of weeks ago I sold my company. An intensely liberating experience.\nI ran the company for close under three years, had two investors, some decent turnover and an employee. All in all not bad. And I didn&rsquo;t like it. In fact it burned me out."},{"title":"About me","link":"https:\/\/mindshards.com\/about\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/mindshards.com\/about\/","description":"I&rsquo;m an enthusiastic coder and builder in general.\nI have a keen interest in crypto-currencies, artificial intelligence and open source software.\nCurrent At the moment I&rsquo;m a co-founder of 21 Analytics. With it we build compliance software for virtual asset service providers or VASPs for short.\nFeel free to drop me a line."},{"title":"Contact","link":"https:\/\/mindshards.com\/contact\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/mindshards.com\/contact\/","description":"Drop me an email at harm@mindshards.com."}]}}