Filter by:
Sort by:

Vlog: what is an API (for non-tech people)

So I decided to try something new: I made a video explaining what an API is! Of course if you are a software developer you probably already know, so move on then, or wait just a second - you could show this video to a business person you know :-) ... Read more »

Mix tasks in Phoenix using Ecto

Working with Phoenix version 0.16 I needed to import some records from a csv file. My first problem was where to place the tasks, after some research I found that you place them under lib/tasks and name them some_name.ex (not exs) The code for the task ... Read more »

Optimistic locking in mongomapper and eventbus

In Be My Eyes we use mongomapper and eventbus, both are very good tools that make my everyday life as a developer easier - except when it doesn't. We had a problem where more than one helper is added to a call. This should not happen. We have a pretty ... Read more »

Setup resque mailer on Ubuntu 14.04

I recently moved a site from EngineYard to Digital Ocean. The site used resque mailer to send emails. So I had to set up resque to handle the queue. I decided to start it with upstart and added the following script to /etc/init/resque.conf description "Resque worker configuration" ... Read more »

So you think the internet is a dark and hostile place...

Well think again! Last night we had a big breakdown on Some famous actor mentioned us on facebook - which is by the way great, and well the database could not handle it. Within 6 minutes the database went from responding within about 3-600 ms to 6-8000 ms. ... Read more »

Working from home

So yesterday we did the big launch of Be My Eyes, and what a splash we made! I am so proud of having been part of this. I work from home, which basically means that I have set up an office in the bedroom. Working from home is amazing: If ... Read more »

Map Reduce in MongoDb

I had a problem where I needed to aggregate some documents in MongoDb. In Be My Eyes, we keep records of which version of ios the app is installed on. We do this to know which versions to support. The natural solution would be to use the aggregation framework, however ... Read more »

Unix commandline

Just a few scripts useful for changing many files at once. To replace all double quoted strings with single quoted strings in ruby to make rubocop happy: find . -type f -iname '*.rb' -exec sed -i.bak "s/\"/'/" "{}" +; Now find all the places where you do string interpolation and ... Read more »