2017-05-13

What a day

I was sitting in this underground little food court, breathing the muggy air, eating a spicy food, watching people coming in and out, full of life, full of noise, full of hope. Yet, I kept wondering that everybody here has one type of headache or another in their lives, just ...

continue reading
2017-05-05

Nursing home evaluation

Due to Dad's deterioating condition, nursing home becomes a necessary option that we must consider as a way to handle this situation. The following are notes most based on recollection and first impression so that they are likely biased and are certainly opinionated.

Sites visited:

  1. 北京金手杖: recommended by my ...
continue reading
2017-04-30

My la la land

Maybe it's the travel, maybe it's the stress of my dad's worsening health condition, maybe I'm tired from all these and trying the impossible without knowing the loss is done already. But I know why I'm sad. The life went the way I hoped but ...

continue reading
2017-04-30

Bye Bye GFW

The GFW is nothing but an anti-humanity instance that blocks knowledge transfer and information sharing in the 21st century when brain is the competition advantage and this gov decides to sacrifice all the future with a vain hope that creativity can continue to flourish while its citizens are excluded from ...

continue reading
2017-04-24

Charm Reactive

Copyright @ Lenovo US

Charm's reactive framework is the core of charm design and

continue reading
2017-04-24

Charm chained states

Copyright @ Lenovo US

This charm is created to demonstrate chained states using Juju charm. Chained states is essentially mirroring a pattern of any sequential execution in a workflow. Potentially each execution block can also have conditions to set the next state, even though this type of knowledge should be exposed outside function element ...

continue reading
2017-04-24

You got mail

After becoming an Emacs user for the last few months, I acquired a burning desire to migrate as much as my daily text editing activities into Emacs environment, in particular, emails.

Having tried offlineimap for a bit, I ended up battling its ...

continue reading
2017-03-30

MAAS vs. Ironic

Copyright @ Lenovo US

This article is to analyze Openstack Ironic and Canonical MAAS, both are tools to turn baremetal into a pool of managed resources that are ready for consumption by upstream srervice. On the highest level, a baremetal is either managed or not-managed. Being managed requires that the manager is aware of ...

continue reading
2017-03-22

Baremetal provisioning

Copyright @ Lenovo US

Everyone of us has installed an operating system to a computer at some point in life. It is easy to perceive inserting a disk or USB key to make this happen because the OS files are there. A fancier version is to boot from network using PXE boot option, which ...

continue reading
2017-03-15

Openstack Ironic

Copyright @ Lenovo US

This article is an outcome of my writing a Juju-Ironic provider. The plan was to first figure out Ironic APIs that will achieve what Juju provider needs — start an instance on demand, then build those REST requests into Juju provider code. After playing with Ironic API and Openstack's Devstack ...

continue reading
2017-02-28

Introduction of Juju charms

Copyright @ Lenovo US

Juju charms are, charming. It promises a selection of blueprints that hold magic to make an application deployment easy. But devils are in the details, as always the case. In this article we will walk in the charm world to learn its design.

Bundle, charm, service, application

Juju terms can ...

continue reading
2017-02-08

Juju deploy and Provider

Copyright @ Lenovo US

In this article, we have demonstrated how Juju deploys a charm, including what makes a node eligible as a target and what files will be put on by the deployer.If you recall, there were four steps in a deploy process:

  1. Add a new machine to the cloud environment. In ...
continue reading
2017-01-21

Emacs

What a wonderful editor!

I wouldn't even call it an editor because it can do so much beyond text editing. Still on the learning curve to get a grasp of what it can do in my daily development workflow. Here is to document the init.el that I'm ...

continue reading
2017-01-21

Spectrwm

My favourate desktop manage which tiles windows neatly so I never worry about cluttered view while opening and closing windows.

Here is the config file I'm using.

# PLEASE READ THE MAN PAGE BEFORE EDITING THIS FILE!
# http://opensource.conformal.com/cgi-bin/man-cgi?spectrwm

# colors for focussed and unfocussed window ...
continue reading
2017-01-19

Juju charm deployment

Copyright @ Lenovo US

We have covered Juju's bootstrap phase. In this article, we will continue our research into another important function — juju deploy.

Deploy will command a node to pull down requested charm and install whatever needed based the charm's instruction. As the bootstrap research, I'm interested in the internal ...

continue reading
2017-01-11

Juju bootstrap process

Copyright @ Lenovo US

The very first command user will encounter is the juju bootstrap. It createa a special machine — state controller, machine-0, control node, etc. — naming convention aside, it is the brain that tracks others nodes in the cloud, applications installed and their status.

Screencast

Through research I want to learn about its ...

continue reading
2017-01-03

Juju charm model

Copyright @ Lenovo US

This article is a high level view of Juju's internal modelings. For me it was fairly confusing when looking at its document which has an army of these concepts: charm, bundle, model, unit.... of course, each of them makes sense after a while. Its terminology page helps on understanding ...

continue reading
2016-12-09

Targets in MAAS lab

Copyright @ Lenovo US

After setting up the MAAS server and its subnet, bringing up a target node is simple.

All nodes must be on the same 192.168.8.0/24 subnet, and they must support PXE boot.

PXE boot

The MAAS machine functions as both the DHCP server and the TFTP server ...

continue reading
2016-12-08

Setup a MAAS Virtualbox lab

Copyright @ Lenovo US

Canonical MAAS is a deployment tool that can give a bare metal life by putting an OS on it. Working together with Juju, they can setup a cluster of applications quite quickly. Think of them as a package manage like Ubuntu's apt-get, but in the context of a cloud ...

continue reading
2016-10-15

SPA: World Snapshot

World Snapshot

The joy of making graphs in a data-driven web application has been the highlight that kept me going from project to project. Once all things are hooked up and data can be created in a meaningful way, the ultimate presentation are reports and graphs ...

continue reading