Ken Nguyen

Programming Blog

View project on GitHub


Getting Disqus to Work

05 Nov 2019 | web-development

My blog is chugging along so far but it’s still missing a vital component, the comment section. When I was running my blog on WordPress, the feature was already included so I never thought much about it. After migrating over to Jekyll, I noticed the missing comment box at the bottom. It wasn’t a big deal for me because barely anyone dropped by my blog anyway.

Now that I have some free time to update my blog more often, it feels incomplete. While my blog is a way for me to write about programming, it’s also something I want to share with others. Not having a comment box defeats that purpose. In this post, I will go over the process of adding Disqus.

Bisection Search Implementation Complexities

28 Oct 2019 | programming

This post drew from MIT 6.00.1x course on edX. I saw something very interesting in a lecture when professor Grimson compared two different implementations of bisection search. The algorithm for bisection search given a sorted list is:

  1. Pick an index i that divides the list in half
  2. Ask if L[i] == e
  3. If not, ask if L[i] is larger or smaller than e
  4. Depending on answer, search left or right half of L for e

After every iteration, the list is cut in half so the complexity of this algorithm should be O(log n). But as we’ll see, this is not always the case.

Frustrating Blue Screens

21 Oct 2019 | rants

Windows 10 logo

It’s a regular Tuesday night. I came back from work, had dinner, and watched some YouTube videos to pass the time. Then all of a sudden, the screen went black and this message popped up:

:( Your PC ran into a problem and needs to restart. We’re just collecting some error info, and then we’ll restart for you.

If you’d like to know more, you can search online later for this error: DRIVER_IRQL_NOT_LESS_OR_EQUAL

Choosing A Browser in 2019

03 Oct 2019 | technology

When I was in high school, Internet Explorer (IE) was the default for Windows so my family only used it. Since they were older and less tech savvy, they clicked yes to every single request asking to add a new toolbar. I was sharing the computer with my family so whenever I open up IE, it looked like a bunch of people just vomited all over the screen.

IE toolbars

Carving out Study Time with Full Time Job

04 Jul 2019 | rants

It’s been a while since I last updated my blog. The main reason is that I found it increasingly difficult to find the time to sit down and write a blog post. I started a new job a few months ago working ten hours a day, six days a week. I go to work at 10am and go home around 8pm with one hour commute time each way. By the time I get back home from work, my brain is tired from the daily activities and I have to make the conscious decision on how to budget the time I have left. Some days I’m able to push myself and study a couple hours before going to sleep. Some days I have absolutely no energy and cannot drag myself to even look at the study material. Since time became a precious resource, it’s a constant tug of war for me everyday to use it more efficiently.