September 13, 2017

Alternative to dangerously set inner html in React

Scenarios wherein you need to render a string with html tags in it would still require you to use dangerouslySetInnerHTML… so if your problem is as such, then I guess there’s still no better way to parse strings with html tags. As for scenarios wherein we would need to pass a content to a reusable component through attributes, then this would work. A simple example might help right? The scenario In this example, we’ll be using ReactTooltip as our reusable component. Read more

September 11, 2017

Migrated to Hugo

I’ve been using Ghost for quite sometime already, and my only opensource project in github that was starred by non-collegues is a Ghost theme that I made for my blog. But times has changed, which some of you who are avid readers of my blog might have noticed, my financial situation requires me to be a little more stringent… which also meant that I had to downgrade my VPS. Ghost did well as a blogging platform, but the reasources it consumed, particularly RAM, was just too much. Read more

May 29, 2017

My notes in setting up Arch

I’m aware that there are many many articles on how to setup Arch Linux, with the official Wiki as the best one to check out first. I just documented my experience on setting up Arch with the objective that I should be able replicate the same setup and environment on other Computers if needed. Install Reflector This is so that we would use the fastest server in our mirrorlist Read more

April 24, 2017

When distro hopping...

So I’ve been distro hopping for the past couple of weeks, and I always googled how to format my boot drive and then write an ISO to my flash drive as bootable (boot-able, I’m getting a wrong spelling indicator with the “bootable” word XD) USB drive. Since I did that very frequently lately, I thought of just adding a blog post that would serve as my notes/reminder. Formatting Boot-able USB You won’t be able to detect a boot-able flash drive in Linux (ie. Read more

March 25, 2017

Looping in successive order with Async calls

Let’s first define an example problem to better understand the issue we have with normal looping: For example, we have an array of post IDs that we would fetch and then print it out on the console const ids = [1, 2, 3, 4]; for (var id of ids) { fetch(`${API_URL}/${id}`).then(() => { console.log(id, response.results); }); } The output of the above code would be different results with the same id, wherein the id printed would be the last number Read more

© Daniel Cefram 2018