Skip to content
Eric Liu's Learning Journal
Search this website

Smarter every day.

Frequency map in go

  • Post author:Eric Liu
  • Post published: 8 October 2026
  • Post category:Software Engineering
  • Post comments:0 Comments

A frequency map is just a fancy word for a hash map that tracks the number of occurrences of an element in a collection. If we have a slice in…

Continue ReadingFrequency map in go

Map-as-set in go

  • Post author:Eric Liu
  • Post published: 7 October 2026
  • Post category:Software Engineering
  • Post comments:0 Comments

In programming languages like go, there is no built-in type for set. A set essentially answers yes or no: is a given element present? We can use the built-in map…

Continue ReadingMap-as-set in go

KompacPlus

  • Post author:Eric Liu
  • Post published: 12 April 2024
  • Post category:Renovation & DIY
  • Post comments:0 Comments

KompacPlus is marketed as a counter top material, and sometimes wall material. The sellers often claim it's comparable to quartz and sintered stone. KompacPlus is made in Italy, but only…

Continue ReadingKompacPlus

Let’s Encrypt! certificate always expires

  • Post author:Eric Liu
  • Post published: 9 April 2024
  • Post category:Software Engineering
  • Post comments:0 Comments

I usually don't SSH into the server that runs this blog. When I do, it's because the free SSL certificate by Let's Encrypt! has expired. Every time this happens, I…

Continue ReadingLet’s Encrypt! certificate always expires

Interface implementation in Go is implicit

  • Post author:Eric Liu
  • Post published: 7 February 2021
  • Post category:Software Engineering
  • Post comments:0 Comments

I'm quite familiar with the concept of interface in Java; but on my first day reading my colleague's Go code, I was a little confused. Here's how: In Java, implementing…

Continue ReadingInterface implementation in Go is implicit

Best MySQL data types for storing date & time

  • Post author:Eric Liu
  • Post published: 4 February 2021
  • Post category:Software Engineering
  • Post comments:0 Comments

When it comes to storing date/time in MySQL, several data types are commonly used. My colleagues and I had a brief discussion today on which type we should use for…

Continue ReadingBest MySQL data types for storing date & time

Recent Posts

  • Frequency map in go
  • Map-as-set in go
  • KompacPlus
  • Let’s Encrypt! certificate always expires
  • Interface implementation in Go is implicit

Categories

  • Renovation & DIY (1)
  • Software Engineering (5)

Archives

  • October 2026 (2)
  • April 2024 (2)
  • February 2021 (2)

Search

Press Escape to close the search panel.

Recent Comments

    Press Escape to close the search panel.

    Recent Posts

    • Frequency map in go
    • Map-as-set in go
    • KompacPlus
    • Let’s Encrypt! certificate always expires
    • Interface implementation in Go is implicit

    Archives

    • October 2026
    • April 2024
    • February 2021

    Categories

    • Renovation & DIY
    • Software Engineering

    Recent Comments

      Meta

      • Log in
      • Entries feed
      • Comments feed
      • WordPress.org
      Copyright - Eric Liu