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.
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.
A few days ago, Slack released a new feature that makes our life much better with it. As I’m working with the global team, I oftenly mentioned my teammates that is located at different timezone. This could be disturbing for them. Right now, I can mention them on the channel without worrying the notifications will to interrupt their time and vice versa.
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…
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.
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.
I’m not sure since when Google Chrome had this kind of game. A few days ago I was accidentally touched space button my laptop keyboard and seen this interesting game, its kinda Mario Bros.
Well, I like it!
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.
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.
I started using Atom since yesterday after heard they also released the Linux version. Since I running 32-bit version operating system on my box, so I need to build from the source instead of install the .deb which is for 64-bit. When the Atom editor opened, its feels good to see the welcoming window. I am also excited to try many new things in this editor, as at the first time I am really enjoyed looking at the editor theme. I can stay all day long, just to code a things from this editor, but that would be a lie, since I don’t work straight 12 hours per day.
Try it out, you guys might also getting excited with this editor!