To avoid doing chores, I nerd-sniped [https://xkcd.com/356/] myself into figuring out an easy way to make the Tryst Blog [https://tryst.link/blog/] (potentially NSFW) which runs on Ghost use a CDN for the images. Normally, you…
Solving packet loss / unreachable nodes when using ZeroTier with Kubernetes
This was more annoying to figure out as this happened as some nodes happened to experience actual networking issues as this was going on, although it's possible networking issues on a node caused this to happen in the first place.…
Shipping nginx-ingress logs with filebeat on Kubernetes
This took me a good afternoon to figure out. The main difficulty was figuring out how to make the nginx module process the log output of the container input correctly, and also finding out that the ingress_controller fileset for…
Server side rendering in Next.js with styled-components, styled-jsx, and emotion
Want to use styled-components, styled-jsx, and emotion but having trouble with getting server side rendering to work? This post is for you.
chen.do blog relaunch
It's been almost four years since my last blog post. A lot has happened since then! I've decided to relaunch my blog to contribute some things I've discovered or learnt that may be useful to other people. Most of these…
Live Wireshark session from remote machine
I was tasked to debug some network stack issues last week at work which required intercepting wireless traffic at the router. Previously, I would use my Macbook to share internet through an Ethernet port, and then open a Wireshark session…
Simulating out of order packets on OS X
I needed a way to simulate out of order packets in order to try to reproduce an issue I've been seeing at work, and I figured out a fairly simple way that only involves ipfw which is built-in on 10.…
Reverse engineering Xcode with dtrace
Both OS X and iOS tend to have a love-hate relationship with Xcode. Crashing, lacking solid refactoring tools, some UX failures, and so on. For me, it is/was [https://github.com/chendo/FuzzyAutocompletePlugin] the lack of a good autocomplete…
Visualising CGRects and NSRects from lldb with drawrect
Halfway through debugging the new enumeration engine for Shortcat [https://shortcatapp.com/], I realised I needed a way to visualise CGRect/NSRect s while debugging. Trying to figure out how one CGRect relates to another by looking at four numbers…
Building a Command Line OS X app with RubyMotion
I decided to write a command line tool with RubyMotion [http://rubymotion.com/] to visualise CGRects and NSRects from lldb [https://chen.do/blog/2013/10/04/visualising-rects-from-lldb/], but I quickly discovered that RubyMotion does not support this out of…