Don’t forget to take a break every 25 minutes

Sitting at your desk is maybe killing you, for real. You don’t believe me? Just Google it, sitting at your desk is killing you. Or you don’t have to believe me at all, just try to take a break every 25 minutes during your working session, like walking around the office or take a glass of drink.

I used Pomodoro Technique on daily basis during my working session, to force me focus on the things I’m working on, and also force me to take a break. Don’t let your back hurt because you sitting to much.

Don’t forget to take a break every 25 minutes

Don’t forget to take a break every 25 minutes

Don’t forget to take a break every 25 minutes…

Keeping my local development environment clean with Docker

Sometimes managing my development environment would be a time consuming as there is so many things to setup. Lets take databases for example. There is so many databases I can try like MongoDB, MySQL, Cassandra, Postgre, Couchbase and Redis. What if I am interested to try out all of those databases. I will probably ended up installed those databases with so many configurations to deal with. To simplify things I use Docker.

Instead of installing the database directly into my host, I can just pull the database images hosted on Docker Hub and run it as a docker containers.

Screenshot from 2015-12-30 23:38:58

Some of database images installed on my local host

If you guys interested to use Docker, I suggest you to read more about it start from here: Understand the architecture.

Break the promise chains flow

I like the idea of chaining the promises in my code so that it looks nice, pretty nice and easier to read. After several months following this pattern, I have a situation where I need to break the chain promise flow, like stopping the flow. See the below snippet code:

From the above code, I am expecting the code to stop chain and move on to the .catch handler, but is not. I learned the code will continue the flow as I return with no value at line 9.

So, here is the way to break the promise chains, instead of returning with no value, I throw an Error to stop the flow:

Oh, yeah I use Bluebird to working with Promise…

Between Me, Docker client and Docker host

After reading the Docker documentation, Understand the architecture. This is how I draw my relationship between me, Docker client and Docker host.

This picture illustrating my relationship between me, Docker client and Docker host.

This picture illustrating my relationship between me, Docker client and Docker host.

Interesting things that I noticed so far is when the docker client is building the image and send it to docker host on my laptop, it only takes a minutes or so, but when docker client is building the image and send ti docker host that is located somewhere out there (e.g. machine that hosted on cloud providers) it takes a longer time.

Moving to Trello

A few days ago I still used Asana to manage my not so serious personal tasks and oftently via its mobile app. I’m not sure why, but somehow the Asana was not running quite fast on my device, especially when the Internet connection is unstable or poor.
image

Today, I’m considering to move all of my not so serious personal tasks to Trello. I just tried the application on my Android and it performs really well and also liked the user interfaces. Pretty simple and responsive.