My learning diary

New Theme

Hello to my new theme! Indeed’s “You Day” was yesterday, and I spent the day redesigning this site. I’m very pleased with the result. I was able to follow my hand-drawn wireframe to produce this theme. While this is a simple theme, I made sure to consider these things: Little clutter Consistent margin between sections. The margin was 2rem between sections and 1rem between post metadata and content. Only 3 font sizes (Foundation’s h1, h3 and h5) Only 3 colours (background colour: #F5F5F5, font colour: #333333 and dark turquoise: #26867C) Reduction of eye strain with lower contrast of colours Colour-blind friendly Through this experience, I gained more exposure to Hugo and Foundation.

Continue reading "New Theme"

No qualifying bean

In one of my previous posts, I avoided auto-configuring primitives. Otherwise, the No qualifying bean error will occur. Today, I couldn’t avoid that anymore. I had to auto-configure a boolean so that the consumer can enable or disable a feature in application.yml. So, how did I resolve this issue? I used @Value("{someKey:someDefault}") final boolean someFlag in the caller constructor. Before that, I tried attaching only @Bean to the getter, but it didn’t work out.

Continue reading "No qualifying bean"

Internship Thursdays

Last week, I had the honour to be one of the panellists for NUS CFG Internship Thursdays featuring Indeed. This is the profile I shared with NUS: Jiayee is a software engineer at Indeed. She graduated from NUS Computer Science in 2019 and joined Indeed as a fresh graduate. Before she joined Indeed, she had the opportunity to intern at various reputable companies such as SGInnovate, Visa and ViSenze. At Indeed, she gets the chance to learn from brilliant engineers in the company while indulging her passion for creating impact through technology.

Continue reading "Internship Thursdays"

Cloudflare Workers

It’s time to put my short custom domain to good use. Cloudflare Workers is a quick ’n’ dirty way for me to do URL forwarding. With URL forwarding, I will no longer need to set up DNS records or page rules. The former requires domain verification. Plus, social media websites don’t support custom domains (why will they). The latter costs money (the first 3 page rules are free). My worker’s name was "vanity" for obvious reasons and it sits at https://www.

Continue reading "Cloudflare Workers"

Debugging Angular

Something could’ve happened in the past 2 weeks while I focused on fixing my unit tests. It had been some time since I last did a local deployment. To my surprise, my local deployments in the recent days rendered a blank page with the following error in the JavaScript console: Uncaught Error: [$injector:modulerr] Failed to instantiate module FormSG due to: Error: [$injector:modulerr] Failed to instantiate module forms due to: Error: [ng:areq] Argument 'directiveFactory' is required My Google-fu was lacking.

Continue reading "Debugging Angular"