Tag Cloud
elasticsearch aws ecs apache spark scala AWS EMR hadoop golang telegram bot webhooks ssl nginx digital-ocean emr apache pig datapipeline found.io elastic-cloud rails try capybara docker devops capistrano heka bigquery kafka protobuf vim iterm javascript emberjs git scripting dnsmasq bem frontend meteorjs meteorite heroku

Page 2 of 3
Newer Posts Older Posts

Setting up Dockerized Golang + Postgres on Digital Ocean
Written by Ho Man Apr 27, 2016 5 minutes read

My previous deploy on the Rails stack was a little more involved so I chose to just deploy it in the conventional capistrano way after setting the server up.

But with the rise in popularity of Docker recently, I’ve been wanting to deploy something into production with Docker but never found the right app for it until this one.

It was a simple Golang...

Read more →

Capistrano, Postgres, Rails, Nginx & Puma on DigitalOcean
Written by Ho Man Jan 22, 2016 10 minutes read

Recently, I’ve been working on my squash club, UCSC’s new site. And of course, being slightly short of time, I kinda just fell back on Rails to quickly get something up for the club.

Before Heroku decided to put a 7 USD price on their free tier, it was an easy default for hosting any mini prototypes or projects. Ok I admit, I’ve historically used...

Read more →

Kafka + Heka to Bigquery Setup for Realtime Logs
Written by Ho Man Jul 04, 2015 4 minutes read

This is part 2 of the 3 part series of a quick intro of the realtime logging system in Wego. In Part 1 of this series, I talked about how we generated Go packages for Protobuf (protocol buffers) in Wego.

The packages allows us to process 2 different modes of communication protocol with just one set of schema defined in proto files:

  • json package...
Read more →

Golang + Protobuf
Written by Ho Man May 05, 2015 6 minutes read

(This is part 1 of the 3 part series where I discuss how we handled one of our new API projects and the usage of Protobuf + Heka + Kafka + BigQuery to view realtime logs.)

Recently, I’ve had the chance to work with Golang in Wego to build our analytics API that will log our visits into flat files + upload them into Kafka for further processing,...

Read more →

Predefined Structs vs Type Assertion in Go
Written by Ho Man May 21, 2014 5 minutes read

Suppose you have a JSON of this format:

{
  "results": 
    "collection": [
      {
        "name": { first_name: "Ho Man", last_name: "Boa"
        "phone": "123456"
      },
      {
        "name": { first_name: "John", last_name: "Lee"
        "phone": "2345"
      }
    ]
}

Similarities

There are essentially 2 methods to do this, using pre...

Read more →

VIM Toggle Background Scheme
Written by Ho Man May 20, 2014 less than a minute read

Have you ever wanted BOTH the dark and the light background schemes in VIM? Perhaps in the day, you feel that you can concentrate better with a light background and at night, the dark. I did! So I bound one of my Fn keys to do just that.

This works well for color schemes that offer both dark and light versions, for example Solarized.

let g:scheme_bg...
Read more →

Opt-Arrow Navigation in iTerm2
Written by Ho Man May 12, 2014 1 minute read

Something that most people use frequently but take for granted for sure is the use of Option + Arrow keys to navgiate between words in Mac OS X. Its just something you use and not think about much and it becomes second nature almost. So when I moved to iTerm, I’m sure a couple of you would have wanted to maintain the the same behaviour of that in...

Read more →

Block Scope in Javascript
Written by Ho Man May 07, 2014 2 minutes read

I do abit of development work using plain Javascript on and off. I’ve written OOP modular Javascript for Wego as well but my development work is never really deep enough to encounter all the classic “noob” problems.

Today I came across one. It was something that got me a little mind-blown because it is something that I have entirely taken for granted...

Read more →

EmberJS + JQueryUI Date + Moment.js
Written by Ho Man May 04, 2014 4 minutes read

When handling the dates in one of my EmberJS apps, I had to find a date picker to work with. In the end, with the recommendation from my fellow colleagues, I went with jQuery UI's date picker + moment.js for the parsing/display of the dates.

The Issues

There were a few things that kinda put me off guard. The first: when deserializing/serializing...

Read more →

EmberJS Computed Properties vs Manual Filter
Written by Ho Man May 04, 2014 2 minutes read

The problem begins when one of my ‘filter functions’ for the my model (delayed/active tasks lists from all tasks) wasn’t getting reactively updated when the store gets new entries or updates. When I found out why, I thought to myself that this is actually a pretty easy scenario to fall into IMHO.

I realised that I wasn’t actually utilising ember...

Read more →