Blog posts

  • Dog done run & pool party

    Last Saturday, I woke up at 06:00 AM (about 30 minutes later than I normally wake up on weekdays) and slipped into a striped, cotton t-shirt that my sister bought from target for my last birthday and my favorite knee length corduroy shorts, dressing myself in preparation for a 2 mile, dog friendly run in…

  • Practicing my ukulele

    Over the past month, I’ve been investing more time in learning the ukulele, sitting in the office area in the morning, strumming and picking my soprano ukulele for at least 30 minutes either in the early mornings or just before hitting the sack.  In addition to my daily routine, I’ve not only been taking weekly,…

  • Returning to social media?

    For the past year and a half, I’ve disconnected myself from all my social media accounts: Facebook, Twitter, Instagram.  Those platforms still presumably store my data (e.g. posts, images, chat logs) but I no longer log into the system, neither consuming or contributing any content. This disconnect was motivated by several reasons. First, I had…

  • A sneak peak of my wedding photos

    Although Jess and I legally married six months ago (February) in King County Court, a municipal court in Seattle, we threw our wedding ceremony just three weeks ago.  The Saturday ceremony was held in Malibu at Great Spirits Ranch, a ranch that overlooks the Pacific Ocean and Ojai mountains.  Most importantly, this venue was dog…

  • Caretaking

    Every Wednesday morning, I attend therapy. Not the physical kind, where one goes to rehabilitate some injury afflicted by blunt trauma. Rather, I sit in a cushy sofa chair that’s positioned six or so feet away from Roy, my psychotherapist, and I voice not only what I’ve been thinking—the primary focus of cognitive behavioral therapy—since the past…

  • Be a man

    He wears a mask, and his face grows to fit it – George Orwell Are you a masculine man? How does one even define masculinity?  By the American, western definition, a masculine man is someone who carries a heavy beard on his chiseled chin, speaks in a deep Clint-Eastwood voice, commands respect from those around…

  • Friday night in

    My wife (Jess) and I were both dead tired from yesterday—friends had come over to our house and cooked a Vietnamese meal the night before and we fell asleep around just before midnight, a little over two hours past our bedtime—and we had decided to spend the Friday night staying in doors, eating leftover, vegan…

  • A brief introduction to cache organization

    As a software programmer, I always had a vague understanding of how an operating system fetches data from memory.  At an abstract level, I understood that a processor requests data from the memory controller, sending a message (with the memory address encoded) across the bus. But I learned recently that in addition to the system’s…

  • Defusing a Binary Bomb (phase 1)

    http://blog.itsmemattchung.com/2017/02/28/csapp-defusing-the-bomb-phase-1/ I password protected the original post (email me for the password if you are interested in reading it).  When I posted the original link on reddit/r/compsci, multiple commenters suggested that I delete the article to avoid students from cheating (which was not my intention).  I then sent an e-mail to the professors (at CMU) and they kindly replied, asking me…

  • Protected: Defusing a Binary Bomb (phase 1)

    There is no excerpt because this is a protected post.

  • How does the modulus operator work?

    As a programmer, I’ve written a line or two of code that includes the modulus operator (i.e. “return x % 2“).  But, never have I paused to think: “How does the underlying system carry out this operation?” In this post, I limit “underneath the hood” to the lowest level (human readable) programming language: assembly. So, I’ll take…

  • Here’s some assembly instructions … now write the corresponding C code

    A wide grin formed on my face, after successfully completing an exercise (from Computer Systems a Programmer’s perspective) that required me to write C code, based off a sequence of a six assembly instructions: void decode1(long *xp, long *yp, long *zp) { /* xp stored in %rdi, yp in %rsi, zp in %rdx) decode1:     movq (%rdi),…

  • Let’s get lower than Python

    Like a huge swath of other millennial, I dibbled and dabbled in building websites —writing in html, css, and javascript—during my youth, but these days, I primarily code (as a living) in favorite programming language: Python. I once considered Python as one of the lower level programming languages (to a certain degree, it is) but as a I…

  • Calculating page table entry size

    How many page table entries are required given a virtual address size and page size? I was confronted with this question when reading Computer Systems from a programmer’s perspective on virtual memory management (VMM) which forced me to reread the chapter, over and over. It wasn’t until I forced myself to close the book, step away from the…

  • Fakebook

    Every day for the past two weeks, my friend’s stream of Facebook posts poured onto my timeline, engulfing my entire newsfeed with photos of him and his latest girlfriend, having such a comical time together. They can’t get enough of each other. They really can’t.  They are glued at the hips.  They must share every dish of food.  Pictures…

  • Graduate record examination (GRE) in 2 months

    I’m pursuing a master’s degree in computer science and most of the schools I’m applying to— Seattle University, University of Washington, University of Southern California — require that I take the general GRE (graduate record examination).  Although I don’t necessarily agree with standarized tests, especially the GRE,  I recognize the necessity to establish some sort of bar for…

  • Reflections on 1984

    Working the normal nine to five job leaves little time for personal reading, which is why every morning, as soon as I situate myself on the bus, I immediately rip out a book from my backpack and read.  I guard this meager time like a gambler and his poker chips. Without these short thirty minute rides to and from work, I…

  • Data structures and algorithms in Java – Inspectional reading

    My plan on completing Data Structures and Algorithms in Java by December 31st, 2016, requires changing my reading strategy. Reading technical books cover to cover, like a novel, is rewarding but inefficient and impractical.  How about a different approach ? I’m applying active reading principles from How to read a book[1] and A mind for numbers: active reading by questioning author’s intention, indentifying questions author…

  • My GSD alarm

    I’m an early bird.  I find that I’m the most productive with a little extra time in the morning, which I devote to personal development — meditating, reading, and writing. I wake, usually, to the sound of the alarm; today, though, I woke up naturally. Or so I thought. I glanced at my watch. 05:30AM.  I gave…

  • A simple C problem

    I’m slowly working through “Computer Systems from a programmer’s perspective” [1] , struggling every bit of the way. I stopped beating myself up about it, though. The code snippets below are in C. The first function, inplace_swap, swaps two integers. The code itself looks lacks intent but I promise you, it swaps two integers. The…

  • Teaching as a form of learning: Binary Search Trees (BST)

    Last week, an e-mail was sent out to an internal mailing list [1], looking for volunteers to lecture on data structures & algorithms topics, but nobody replied. I jumped at the opportunity. I volunteered to lecture on binary search trees, without any previous knowledge on the topic. Why in the world would I volunteer to…

  • It’s just a phase

    Look through my history, and you’ll find how infrequently I post on Facebook, however, I strongly encourage you to watch this short video clip, especially if you are approaching 30, like me, and plan on having children. This video poignantly touches on the issues, revolving around teenage homosexuality and bullying, that our younger generation is…

  • Learning a new language

    I studied Spanish in high school for four years and 10 years later, I’m embarrassed that I can’t form a comprehensible or grammatically correct sentence. I traveled throughout Europe last Christmas and was impressed by the number of bilinguals. Most people fluently spoke a combination of English, French and German. My second language, Vietnamese, however,…

  • A short thank you letter to my body

    I’ve been very sick this past week … coughing phelgm, swallowing pain, and battling headaches. Two nights in a row, an uncontrollable cough prevented me from sleeping. This morning, however, I awoke without a sore throat. It goes to show you how much I take you for granted when I’m healthy. My elation at regaining…