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

Vlog: what is an API (for non-tech people) Published: Sep 16, 2015 Source: https://khebbie.dk/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 :-) So if you are, say maybe a business person, you have maybe heard developers talk about the API, and maybe you thought: “What the heck is an API?”. Well that is what I am going to explain to you in this video: ...

September 16, 2015 · Klaus Hebsgaard

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

Published: Sep 16, 2015 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 :-) So if you are, say maybe a business person, you have maybe heard developers talk about the API, and maybe you thought: “What the heck is an API?”. Well that is what I am going to explain to you in this video: ...

September 16, 2015 · Klaus Hebsgaard

Mix tasks in Phoenix using Ecto

Published: Aug 16, 2015 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 should look something like: You can now run the task with the command mix task_name That was the first problem. ...

August 16, 2015 · Klaus Hebsgaard

Mix tasks in Phoenix using Ecto

Mix tasks in Phoenix using Ecto Published: Aug 16, 2015 Source: https://khebbie.dk/mix-tasks-in-phoenix/ 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 should look something like: You can now run the task with the command mix task_name That was the first problem. ...

August 16, 2015 · Klaus Hebsgaard

Setup resque mailer on Ubuntu 14.04

Setup resque mailer on Ubuntu 14.04 Published: Feb 7, 2015 Source: https://khebbie.dk/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" start on runlevel [2345] stop on shutdown respawn respawn limit 5 20 script echo resque Job ran at `date` >> /var/log/resquejob.log cd /path/to/rails_app && bundle exec rake resque:work QUEUE='*' RAILS_ENV=production end script I can now control the script with ...

February 7, 2015 · Klaus Hebsgaard

Setup resque mailer on Ubuntu 14.04

Published: Feb 7, 2015 I recently moved a site from EngineYard to Digital Ocean. The site used [resque mailer](https://github.com/zapnap/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" start on runlevel [2345] stop on shutdown respawn respawn limit 5 20 script echo resque Job ran at `date` >> /var/log/resquejob.log cd /path/to/rails_app && bundle exec rake resque:work QUEUE='*' RAILS_ENV=production end script I can now control the script with ...

February 7, 2015 · Klaus Hebsgaard

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

So you think the internet is a dark and hostile place… Published: Jan 19, 2015 Source: https://khebbie.dk/so-you-think-the-internet-is-a-dark-and-hostile-place/ Well think again! Last night we had a big breakdown on bemyeyes.org. 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. I dived into the problem and it made no sense to me since I didn’t deploy anything new. But it was clear that the database was being slow. I used google and could find no sense of it all. I thought with the publicity Be My Eyes has had in the last days, and it being a non-profit org that maybe someone would help out on the internets :-) ...

January 19, 2015 · Klaus Hebsgaard

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

Published: Jan 19, 2015 Well think again! Last night we had a big breakdown on bemyeyes.org. 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. I dived into the problem and it made no sense to me since I didn’t deploy anything new. But it was clear that the database was being slow. I used google and could find no sense of it all. I thought with the publicity Be My Eyes has had in the last days, and it being a non-profit org that maybe someone would help out on the internets :-) ...

January 19, 2015 · Klaus Hebsgaard

Working from home

Working from home Published: Jan 16, 2015 Source: https://khebbie.dk/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 you have to pick up the kids or run an errand you just do it, and catch up on the hours later. ...

January 16, 2015 · Klaus Hebsgaard

Working from home

Published: Jan 16, 2015 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 you have to pick up the kids or run an errand you just do it, and catch up on the hours later. ...

January 16, 2015 · Klaus Hebsgaard