Saturday, May 08, 2021

More Stupid O'Clock Website Fixes

Urgh. I really should stop tweaking my personal domain at stupid o'clock. Ah well.

Quickly, these were done:
  1. Fixed the non-updating of the timestamp bug that was introduced from the SI-style digit-grouping mechanism;
  2. Re-matched the font sizes for the monotype fonts (Inconsolata, Unifont) against the ``normal'' font (Atkinson Hyperlegible);
  3. Kept the <pre> tag with Unifont to use pixel-perfect scaling of 16 px;
  4. Actually ensured that Unifont is using 13.0.04 (was still 13.0.03... I think I forgot to promulgate the change after the re-split);
  5. Fixed the HTML5 minifier to not eat spaces indiscriminately (it was causing weird alignment issues);
  6. Tweaked the way the winner's logos are displayed in NaNoWriMo page.
Okay, that's about it. I need to go sleep. It's waaaaay past regular levels of stupid o'clock.

Till the next update.

Friday, May 07, 2021

A Bit on Reading

Today's a Friday, and the end of the first week of May.

The time passed on by pretty quickly as I indulged in more reading, this time of a less structured sort---I mean that I was just reading things that were linked on reddit. I also watched some Futurama, and played a bit of Cyberpunk 2077.

I think I'll not play Feudal Alloy, and had it uninstalled from my Steam. I mean, a game is supposed to be fun, if it is not fun any more, perhaps it is not a good idea to sink even more time into it.

I ought to say the same about books, but the reality is a little different there. Even if the book is not ``fun'', as long as it is a work of non-fiction, I tend to want to read it through, the chief reason being I never know when the information that is contained within can prove useful. After all, all the so-called different disciplines that are defined for human knowledge are really just artificial partitions to ensure that a certain amount of structure can be instituted to ensure that sufficient amount of specialisation and depth from the specialisation can be achieved by a single person within a life-time. It is a stop-gap measure to manage the vast amount of knowledge that exists, since the days where a single person can be a high-performing polymath is over thanks to the massive knowledge increase from exponential growth.

Fiction though... the more I read them, the more I tend to want to be a bit more careful with my choices. There are some fiction that are purely for entertainment---see the Animorphs series that I am chewing through. There are also some fiction that are really social commentaries in disguise---see the award-winning ones for examples. I believe that we have reached the point where most stories follow some established narrative pattern, and thus if one's goal of reading a work of fiction is to discover ``new'' narrative patterns, it might not actually be worth it if the story itself is unappealing.

That is why I am still ``slogging'' through the really long works of Harrison's Principles of Internal Medicine (20th Edition).

Well, back to Act 3 of Cyberpunk 2077. I think I won't be greedy---just achieving a single ending would be good enough for me, sort of like how I completed The Witcher series of games. I might want to try out more of the first-person shooters that I have lying around in my game library, or some of the role-playing ones. It seems that I am still actively avoiding anything that uses controllers.

Till the next update then.

Thursday, May 06, 2021

Nothing Revelationary Today

Nothing revelationary today. It's just some reading (Handbook of Data Structures and Applications completed to page 649/1321; Harrison's Principles of Internal Medicine (20th Edition) completed to page 384/3790; completing Animorphs Series: The Encounter), and some light Cyberpunk 2077 (in the start of Act 3 now).

Oh, and the realisation that there exists an RTX enabled version of Quake II on Steam. I mean, I have Quake II in CD (and subsequently, on Steam) for quite a while, and having RTX for it seems to be an interesting spin to a venerable game/engine. I ran a quick run through it, and I think that the graphical update is good, though the sound scape leaves much to be desired.

Hmm... is there anything else to talk about today?

I... made popcorn and drank two cans of Guinness Extra Foreign Stout? And watched some more Futurama?

Oh, and I'm down to the last 2 days for Bible in One Year 2020 With Nicky Gumbel (reached day 363/365 today).

Frankly, I could've written more, but I think I want to keep it easy this week. I think I'm out of spoons with the sudden burst of human interactivity over the earlier part of this week.

So, till the next update then.

Digit Grouping, SI-Style @ Stupid O'Clock

Yes, I'm well-aware that it is stupid o'clock.

No, there isn't an incoming rant. However, there is a quick technical update.

I tweaked my personal domain a bit more to better handle large numbers by following the SI style (English version) of grouping digits. I decided to follow the Wikipedia example and use CSS magic to attain the needed grouping/spacing without adding extraneous space characters that would foul up the search (this search issue is a problem for the pretty-printer that uses many different kinds of hidden spaces to achieve the specific requirements). However, Wikipedia chose to use a regular space as the separator (0.25 em), while I preferred the thin-space instead (0.15 em). Part of the reason for that preference (other than the stronger grouping characteristic of the digits to form a single number) is that the thinner space fouled up the dotted underline that comes with the <abbr> tag much less.

That last sentence may not make much sense until the easter egg is found.

Anyway, going back to the main reason for wanting to do this: the summary page of my NaNoWriMo attempts/wins. The five-digit word counts looked a little annoying without the digit grouping, and thus needed to be rectified.

As a small bonus, I could quickly script up a life-time word count for all my NaNoWriMo entries and present that up front as well. In this case, the grouping of digits was even more important since as at this point in time, I have written about 650k words across the 12 years of NaNoWriMo.

Okay, itch scratched.

Bed-time it is for me. Till the next update.

Wednesday, May 05, 2021

Teeth Cleaning

Today---it is an off day. I was daydreaming of what are good suicide missions to go on to make the best use of this meat-armoured carbonated hydroxyapatite endo-skeleton body. Thankfully, I couldn't come up with any, because there was nothing really impactful that one death can do.

Viewed positively, it means that this intrusive thought can go take a hike. Viewed negatively, this world is so fucked that even if one is willing to die, there is literally nothing that ``ultimate sacrifice'' can do.

Anyway, on to less depressing matters.

I went to get my teeth cleaned and treated with high concentration fluoride at Bukit Timah Nam Seng Dental Surgery Pte Ltd over at 144 Upper Bukit Timah Rd, #01-16 Beauty World Centre, Singapore 588177. I missed my annual trip there last year thanks to the greater uncertainty that came from the pandemic, and in many ways, I thank God that I had the appointment made for today, since there is a return to more restrictions thanks to the recent ``spike'' of so-called community cases.

After the dental appointment, I walked about Beauty World Centre for a bit, just to lay down new memories and contexts to put the older ones further out of the way. The foodcourt on the top floor still exists, and I even had some beef-ball kway teow from Penang Home Made Beef Ball once the 30+ minutes of waiting time after the fluoride treatment has passed. The shophouse/room that was originally an archery specialty shop that became a dance studio is now yet another handy-man store, seemingly competing with the venerable Lucky Departmental Centre at #04-09.

The more astute might wonder. How is going for a dental appointment remotely related to an old memory that I want to recontextualise? It's about Oishii Bakery at #04-02---I remembered buying some bread from there on a Saturday after lounging about from after yet another dental appointment to feed her before she was going to scramble from her work place to an event that she was working on after work. The timing was tight enough that I was worried about her not getting dinner, and so I did what I did.

Memories... so silly huh. Talked with YT about this recently, and we sort of disagreed on what happens to them. She says she overwrites old memories with new, while I say I bury them with new. I think we can both agree that the final outcome is that the new memory gets preferentially retrieved, and hopefully through that preferential retrieval the old memory does not re-surface.

Anyway, I headed to Shen & Co. after that at 140 Upper Bukit Timah Rd, #01-01, Singapore 588176 (basically in the building next door) and chilled for a bit with some Long Black coffee and fries with garlic [cloves] and truffles.
I did a little bit of dead-tree journal writing as well, and did a little reading.

The route home was interesting. I didn't take the Downtown Line (DTL) all the way to Little India station for the transfer, but instead got off at Tan Kah Kee station to switch over to bus service 74. It has been a long while since I took that bus, and I was just curious to see what has happened to the roads that it plied, especially since the construction of the North-South Corridor (NSC) has messed up Marymount Rd and Ang Mo Kio Ave 6, with massive diversions and other unsightly crap that was akin to the phase 2 construction of the Thomson East-Coast Line (TEL) that I talked about before.

Conclusion after riding through? Yep, it's quite messed up. The diverted roads are a whole 3-lane carriageway displaced, with lots of big dug up work-areas that are cordoned of, where Singapore's most common bird (the construction crane) roosts.

Anyway, I think that's about it for now. Till the next update.

Tuesday, May 04, 2021

中日韩字符の粗言

哇……前回以中文书写博客的时候,就是公元二零一二年的二月。不知今天发什么疯,突然间觉得因该以一个已经很久都没有用的语言来表达今天的趋向于感情。

但话先说在前头:如果这博客条目中出现了错别字,那么就是微软的简体 IME 的疏忽,而绝对不是因为我的华文性能欠佳的问题。😅

好的,五月已经降临了。前几天的条目中已经提过了休假的新阶段,所以就不会再提起它了。那么,这里又有什么好谈的呢?

竟然用了 Unicode 中的简体中文字母,就谈一谈电子中文文体的问题吧。

Unicode 利用了所谓“中日韩字符”来把中文,韩文,与日文的字体统一起来以便浓缩所需要的字符码基数。这表面上不是什么大问题,但这是完全以我身为一个只识中文字母的角度而言。中、日、韩的字体上有些微分的区别,不过在日常见到的数码文件上,是很难分辨出来的。

这问题出在于数码文件字形的大小问题。中日韩字符的字形往往比拉丁字符来得复杂,但两者的字形高度大多数都已拉丁字符的高度为标准。也就是说,大部分的数码文件会有一种不平衡的去向--若要中日韩字符显得明确,就需要把字形大小调大,但是这个举动会造成普通的拉丁文字的字形偏向“巨”,造成整个文件出现极不平衡又显得很随便,就像海报格式是的,不雅观。

我对这个问题没有什么好推荐。在我的个人网络域中完全没有对这个问题提做出任何缓解方案。唯一我所做的就是在CSS中利用 GNU Unifont 为后被字体。GNU Unifont 的好处在于它的等宽设计--所有的拉丁字形都是中日韩字符字形宽度的一半,而它们的高度统一。换句话说,两种字形都是一样的“奇怪”。就因为这样,才是后被字体嘛…… 😅

回到中日韩字符字体,我总觉得“方块字”的最小像素形状不应该小于 32 px×32 px。现在大部分的屏幕都以 1920×1080 为主,如果用 32 px×32 px 的字形大小来计算的话,就是说屏幕上可有 60×33 格。平时所使用的 A4 稿纸大多以 20×20 格,也就是说这个 32 px×32 px 的大小在 20+" 屏幕上的具体尺寸就和普通手写字的大小相同。这起码会时中日韩字符的字形显得比较容易读,甚至可以让中、日、韩的字体上的微小区别显露出来。GNU Unifont 现在的“方块字”格以 16 px×16 px,但是他们可能会利用 32 px×32 px 来拼出新的 Unicode 字母,就不知道他们会不会回头从新以这个比较大型的像素点格来拼出所谓的“高清中日韩字符字体”。

字形大小之外,我也觉得屏幕上的 font face 不应该出现衬线 (serif)。衬线的使用需要更多的像素点来画出来,而大部分的中日韩字符字体的复杂性已经高过与先在普用的字形大小,所以这些衬线是不助于提高字体的可识别性。这个结果恰好是拉丁文体的相反,也就因为这样,要找一个两者都可通的字形就是难上加难。衬线之外,我也觉得楷体式也很不贴切与数码文件使用。楷体中的笔画宽度不一,所以在较小的屏幕字形大小中会显得格外的模糊。

或许在中国的朋友会不赞同我这些评论与想法。或许他们在国内的电脑操作系统都不会有我所提到的问题。也或许他们见到在同一个数码文件中同时出现大量的中日韩字符与拉丁字母的机率比我来得更少,所以我所说的他们没有理由去思考过。

好了,我看这长篇大论也写的差不多了。下回的条目再见。

Monday, May 03, 2021

Windsor

I'm not sure if I have mentioned this before, but I like walks, particularly those that involve walking through places with more greenery, and less of the tell-tale signs of urbanisation. One of the many reasons why I delight in travelling to the US back in the day was to go on such walks with my friends who have similar inclinations as well, and man, those places in the US for such walks really puts most of what Singapore has to offer to shame.

Notice that I call them ``walks'' instead of ``hikes''. Mostly because I'm not hard-core enough---I've been resigned to the fact that I'm just a city-dwelling hermit who escapes into a curated ``natural'' place for a short amount of low-ish intensity exercise in the form of a walk, unlike say Brian who is hard-core enough to do things like multi-day treks while camping out in those US National Parks that are larger than my friggin' neighbourhood.

Anyway, today's walk was to Windsor Nature Park, canonically located at 30 Venus Drive, Singapore 573858, with YT who is, as always, a great walking companion. Getting there from home via the Android Google Maps app revealed a new bug---if all notifications were disabled, the map application would automatically self-terminate the current ``journey'' when it loses focus either through locking the screen via the single tap of the power button, or switching context to another app.

The original behaviour was such that whatever ``journey'' that one was on, the routing information and tracking would continue despite whichever of the two actions were taken. So having such a major anti-pattern appearing was frustration inducing, to say the least. The notifications were turned off by me in the first place because there prior to the latest update that introduced this new behaviour, there was no fine-grained control over what kind of nonsense they would show in the notification bar. So things like advertisements of various places along the way would show up, as is location-based ``recommendations''.

It's slightly better now in that there are such fine-grained control available, and the notification information displayed now is also useful for public transport taking---it does buzz when one's bus is near the stop that one needs to get off. That is a welcome feature that I had been thinking of before, but am pleasantly surprised to see it implemented decently.

While the bus was going along Ang Mo Kio Ave 1, I realised that the block of flats for low-income households along that road have been deconstructed into empty fields with ``residential developments'' planned. Whether those are to replace the ones that were deconstructed for the lower income households, or to create newer high-end housing solutions will require a bit more study of their billboard, which I didn't seeing that I was on the bus.

Digression aside, Windsor Nature Park features shorter and easier trails compared to the more ``traditional'' central catchment area type trails. A large part of the trails were boardwalk-styled, and were actually pretty boring to walk on. But to be fair, I can see why they chose to set up those boardwalks---the boardwalks themselves were an enhancement to the paths that, for some reason, sit between two water stream flows. Without the boardwalk, it was likely to be a muddy mess no thanks to general water loggedness from the always evolving streams of water.

There were other trails that were more traditional but still man-made---there was an aspalt one, and later on as we got to the peripheries, the gravel ones. Those were definitely fun.

We headed down to Thomson Plaza at 301 Upper Thomson Rd, Singapore 574408 to just enjoy the air-conditioning and scout for lunch. The weather today was simultaneously great for walking (no rain) and terrible for walking (high temperatures of 34 °C), so a respite in an air-conditioned place is always amazing. We found this meme-tastic set of banners that I will just put a picture of and not say more about, other than click on it to see it larger to read the funny text:
Meme-tastic banners aside, lunch was at Omoté, located on #03-24A in Thomson Plaza itself. Despite the weird acute accent, Omoté is actually a Japanese-styled restaurant. The food is undeniably good and has a price level close to a middle-high tier restaurant. Getting seats there is not hard, but it does involve a [short-ish] queue, at least at the time that we had gone there for lunch. I might go back again some time in the future, if only to try some of the other fancier fare that I wasn't ready to stomach today.

After that, we headed to Udders Ice Cream at 246D Upper Thomson Rd, Singapore 574370. It's good.

Sorry man, I'm not writing a food review blog here. 😅

Upper Thomson Road itself has changed quite drastically from just two years ago, when I was still plying parts of it on bicycle to access Lornie Road towards my old work place while avoiding the scary 70 km/h road that is Marymount Rd.
That's mostly because the crazy construction for Stage 2 of the Thomson East-Coast Line (TEL) has completed. I think I might want to dedicate some time to explore it more thoroughly than I had done today.

I mentioned about avoiding the scary 70 km/h road while being on a bicycle. This is something that I had learnt while I was hitting the roads hard in the US on my bicycle there---many roads had a speed limit of around 25--30 mph (about 40--48 km/h) due to being within the city bounds and/or residential bounds. Those were quite comfortable to cycle on. But when I was in the peripheries near the transition point between urban and sub-urban/rural, the speed limits rose to about 30--45 mph (about 48--72 km/h). I only managed to cycle about a quarter of a mile on that higher speed limit road before the sheer fear of the air-wake of the passing vehicles forced me to stop and rethink my route. This was by no means the freeway or anything---it was a legitimate road that a bicycle can go on---there was a bicycle lane in it which I was using. It's terrifying. So when I read about cyclists who are on some not-quite-highway roads that have the speed limit of 70 km/h, I break out into cold sweat.

I mean, even using the Tour de France average speed as reported by this page (just the first one I grabbed---there is no other reason), it is ``only'' 25 mph (or 40 km/h). This means that the sustain speed of a fast-ish cyclist is still slower than a puny goods vehicle that is rated at 60 km/h.

In short, cycling on those types of roads are just asking for trouble, especially since the driving culture in Singapore is less than gracious to begin with..

Anyway, that's all I have for today. Till the next update.

Sunday, May 02, 2021

Futurama Day

A day of Futurama is a day that is well-spent.

I've watched Futurama for years now, doing a re-watch at the average frequency of once per year. While I was working, it acted as the no-bandwidth consumption alternative of a masking background thing that silenced the discomforting feeling of complete silence that was often the case in most of the offices I worked in. It has been a while since I actually sat down to watch Futurama solely, and doing so today has revealed a slightly deeper pattern to it that I have not noticed before.

For example, the pacing of each Futurama episode is actually faster than that of Daria. The leading setting for the episode in the first act quickly evolves to the ``main content'' of the second act, which finally leads to the resolution of that ``main content'' in the final act. Themes in Daria lasts more or less consistently throughout the entire episode, and thus the pacing feels a little slower.

The soundscape choices of Futurama are also subtly contributive to the overall feel, a point that I missed out before because I was usually concentrating on whatever I was working on instead of paying closer attention to what was being said/playing in the background.

I didn't do much of other things today, other than put away the boxes for the components that I had purchased while building my mum's PC, thus freeing up more space. I really need to think about how I am storing my tenor saxophones---they currently sit in front of the various music and instrument stands, and make it a little harder to access them for easy grab-and-play semantics.

I haven't really been playing/practising/composing for the last month, and I think I would like to rectify that soon.

By the way, here's Sangah Noona. She recently started up a new channel for worship songs. I like her playing, and I like her singing voice---it's smokey. For some reason, I find myself enjoying the female voice that has that smokey quality to it, even higher-pitched singers like 何伶/董沁 (real name: 董晓禾). I suppose it really just means sexy, but eh, it's nice.

Anyway, Sangah Noona---she does live streams every Friday/Saturday evening (US Eastern time I think), where she plays stuff from a set list generated from what people request of her master list. I don't usually listen live (it's like stupid morning o'clock in Singapore), but I do reach for them when I'm doing some reading of some sort.

That's about it for now. Till the next update.

Saturday, May 01, 2021

May I

Well, it's May, and this blog entry is going out early relative to when I usually post stuff.

April was full of writings, possibly the most actual writing that I had done over my blogs [that do not involve poems], but I don't expect it to continue that way in this month. As I had mentioned previously, I am in the second phase of my sabbatical now, the phase where the so-called liberation from the confines of whatever system I was in gives way to a realisation by all parties that I am really no longer who I was. I didn't go about trying to define such phases---that would be stupid---but I suppose it is one of those things that can be sensed, if one were actually attuned to one's inner thought processes, as well as the reactions of those around one.

Now that said, let me bring up the old routine that I came up with for reference here:
  1. No zero days---I need to do something each day.
  2. Weekly, attend church services.
  3. Daily devotionals from Bible in One Year 2020 with Nicky Gumbel.
  4. Daily reading from my reading list.
  5. Daily, either play some music, or play some video game.
  6. Daily, try to write something, either a piece of music, a poem, a story, a computer program, or a blog entry.
  7. Weekly, get out of the apartment to do something different, or meet up with someone.
  8. Keep to OMAD for at least five days each seven-day week.
With a new phase comes new adjustments that are sorely needed.

For one, Bible in One Year 2020 with Nicky Gumbel is coming to an end soon (day 358/365 as at today). For two, I think there is a limit on how much tweaking I want to do for my website before completely exhausting all those minor projects. For three, now that I am mentally in phase two, it makes more sense to look into tackling some of the unfinished things that I should complete.

In no order of priority, these things are:
  • Build a new PC for mum.
  • Finish up the missing diagrams for my 笛子 articles.
  • Record that 埙 piece for HY to fulfil the condition she laid for getting me that instrument.
  • Complete the adjustments to the scores for 《山村迎亲人》 that were made back for the performance back in November 2019.
  • Schedule teeth cleaning at the dentist.
I've been procrastinating for quite a while, and I suppose that it is time to stop that. Part of the reason for the procrastination is the lack of proper equipment (the 笛子 diagrams need to be done either through my crappy drawing skills on the tablet, or some stand to hold my phone to take the pictures which I can rotoscope over), or a need to actually talk to someone (like setting up that dental appointment).

Better late than never, I think.

With Cyberpunk 2077 likely to be completed by the end of next week (assuming I actually stick to playing it most of the week), I can head onwards to play some other game. I know I've been harping about completing Feudal Alloy for a while now, but frankly, I think I'll probably abandon the run.

You see, I really don't like playing games that use controllers and not the keyboard/mouse. I don't know exactly why, but I think a possible reason could be my dislike of the heavy reliance on working thumbs to work the controllers. My right thumb-tip skin is particularly shitty for some reason, and thus it makes it annoying to actually control anything with it. Apart from using the interphalangeal joint to hold a pen for writing, I don't actually use my right thumb for anything that involves dexterity---this includes my musical instruments. For most woodwinds, the right thumb does nothing for pitch control; its role is to support the lower half of the instrument body.

The only exceptions (for the instruments I have) are the 口笛, 十孔笛, and the 埙. In all these cases, the right thumb tip is needed to control one of the tone holes. And that is the other reason why I still haven't fulfilled that promise to HY after more than two years. My shitty right thumb-tip skin still sucks.

Well, that's about all I have for now. Till the next update.

Friday, April 30, 2021

On Cyberpunk 2077's Writing

I didn't really want to write this post, but I think I ought to, just so as to capture a moment.

I've more or less cleared all the side quests that are available in Cyberpunk 2077, and am in the last legs of the main quest line. Translated to regular English, it means soon, I would have completed the game.

The story-telling isn't as strong as The Witcher 3 (I suspect it is something about deriving from an existing literary series versus a world-building rule-book), but the romance-able characters (Panam, Judy, and River---these I have seen so far) have very strong stories. I'm not going to spoil them [too much], but I just want to share that each of their story moments through their chain of side quests are very compelling.

V sryg gur cnva va Cnanz jura fur gevrq ure orfg gb qb jung vf tbbq sbe ure Snzvyl, qrfcvgr bccbfvgvba sebz gur ervtavat cngevnepu. Ure riraghny npprcgnapr nf n yrnqre bs gur Snzvyl vf n gbhpuvat zbzrag. V sryg gur fnqarff naq ihyarenovyvgl va Whql nf nyy gur crbcyr jub pnerq sbe ure crevfurq sbe bar ernfba be nabgure, zbfgyl qhr gb pvephzfgnaprf. V sryg gur cebgrpgvir angher bs Evire nf ur gevrq gb fnir uvf snzvyl guebhtu bgure zrnaf jura gur pbeehcg bssvpvny zrgubqf ner cebivat gb or erfvyvrag gb whfgvpr naq gehgu. Gur pne enprf gung V qvq jvgu Pynver jrer punyyratvat, ohg V sryg vg jura fur erirnyrq gur natre fur unq ntnvafg gung bar pbzcrgvgbe jubz fur nggevohgrq gur oynzr bs xvyyvat bss ure uhfonaq (qevire) va gur enpr gur cerivbhf lrne. Naq V pnaabg sbetrg zl byq pubbz Wnpxvr, jub qvrq orpnhfr bs gur obgpurq wbo gung pnhfrq gur znva dhrfg yvar va gur svefg cynpr.

The writing and delivery of the lines for these quests that count are really alluring and help flesh out the characters. At some fundamental level, I think the dialogue of the romance-able characters really touched something in me, a weakness from recent... events? I think that the loss of five years of that safe feeling of someone who has my back is starting to get to me, as the next phase of my sabbatical kicks in, the one where the social isolation gets stronger, as people start to realise that I am actually taking my sabbatical seriously and am not really that ready/interested to start work again.

I don't want to speak ill of people---this is just human nature---but it seems to be the case here. Genesis 2:18 says ``And the LORD God said, `it is not good that the man should be alone; I will make him an help meet for him.' ''. I think I'm feeling the effects of the lack of [most] forms of human intimacy now because of the emotional content that is within the writing for Cyberpunk 2077. A well-written game is at least as strong as a well-written book, the main difference that the delivery of the game can include additional elements to help suggest a particular set of emotional responses, while the book requires the imagination to do most of the heavy lifting.

No, it is not yet a sign that I am ready to date. This is Singapore---to date requires a sort of exchange. I don't have anything valuable to exchange now, considering that I have no job, no wealth, am not exactly attractive, nor am I powerful. More importantly, I'm still not completely comfortable in my skin for the new roles that are upcoming, and trying to be involved with another person is just a bad idea. As it stands, all I really have to give for exchange is my life---this seems to tie back again with the whole ``full-circle theme'' from the SMS Musing earlier today.

It's okay. This too, shall pass. Thankfully I don't exactly have many intrusive thoughts of suicide; I just have general thoughts of being a misfit in the society I am currently embedded in. Whether or not this is a better alternative remains to be seen.

This is no indication that God has failed though. I know my future after my mortal death is secured, so that's not where most of my worries lie; most of them lie within this mortal realm, strangely enough. Now, about what, exactly, is something that me and anyone else who reads all these blog entries need to deduce from what has been written.

Remember, I write here as a cathartic release of things that are in my head that can be publicly consumed---those that cannot be publicly talked about goes into a dead-tree version that does not reside anywhere near the 'net. Once these words leave my metaphorical mouth, they hopefully leave my immediate thought sphere, thus potentially allowing a different perspective to be synthesised from the thesis and anti-thesis.

If ever there is a summary for what I had written, it would just be this: I really don't do well with endings---they always make me sad. And if the endings are sad, they hit me just that much harder as all the sadness multiplies upon themselves. Anyone who still thinks that I'm some emotionless thinking machine... really hasn't known me well enough, and if they are someone I had known for a while, I would just be disappointed in them.

Oh Lord, I cast these sad feelings to You, for it is You who is my anchor point, my cornerstone; for You are my sword and my shield. I pray that you will protect me against the harms of this world according to Your Will, and that the suffering of any sort that I may undergo, no matter their severity, is in accordance with what Your Will is. I pray all these in Jesus' name, amen.

And with that, till the next update.

SMS Musing #12

While lounging at Gochi-So Shokudo waiting for the delivery of my ordered Teriyaki Iberico special set:
As I scour through my contact lists on Telegram and/or Whatsapp, I cannot help but think about how after thirty years, life has seemingly gone full circle. I started my life alone with my parents, then had a sister, then went to school where I made friends, most of whom didn't last, served my national service, left with no lasting friends, studied overseas twice, given the opportunity to start a new life in a place where my kind is not just tolerated but welcomed, decided to forego all that in the name of principles like honouring promises and loyalties, fell in and out of love with different types of futures, and while everyone seemingly has "grown up", here I am, back with staying with my parents alone, practically friendless-ish, jaded with everything thst is happening in the industry that I had once thought I would stay in and make a difference.

Perhaps I'm one of those perpetually bitter dilettanti, always feeling that the society that I was in was always wrong in some way, making myself out to be some kind of outsider.

I'm not really sure about that though. As the days go on, side thoughts about whether I truly belonged to Singapore kept on surfacing in my mind. In some ways, perhaps the "system" has failed me, but perhaps in some other ways, I have failed myself. I believed too much in my ability to control my fate, and even as things got progressively less ideal, I kept on believing that as long as I kept on thinking, I would be able to think my way out of things.

Naturally, nothing ever works that way. Hindsight would reveal the breakdowns over time that aat that point I would bot be able to see.

But of course, it is easy to fall into such thought patterns due to the foibility of being human. It is easy to forget that far above sits the Lord, and He has His great plan from which I am to play a role in. I think I know of at least one point where it would be hard for me to deny myself to pick up my cross to follow Him, but with Him, nothing is impossible. It is always heartening to remember that I am God's adopted child now, and that I can cast my fears and anxieties upon Him.

A sign of delusion from one who has read/studied so hard that one's perspective is warped to the point that any sort of relief would be greeted enthusiastically without reason? No. I think it's just the natural realisation that would come when one objectively observes that one is only a miniscule part of society, let alone the universe, and that one's size is too small to matter in the big picture. God is the big picture, and it does take aa little getting used to the fact that one's life really isn't one's own. It's easy to fall into that complacency because we literally live only in our bodies all day all the time; that proportion of time spent is the reason why most are self-centred. But take a quiet night, and look at the darkened skies, and observe that each star seen is but one of a million more that we cannot see, and that each visible star is as large as or even larger than our sun, and it will be quick (and mind-breaking) to realise just how insignificant we are.

I may have gone full circle, but I don't need to fear the future, for I am safe in my Father's hands. Amen.

Thursday, April 29, 2021

Improving the Prettyprinter and a Random Rant

Ah Thursday. I want to say that I have done a lot of things, but the reality is often very different. I chilled and stared off into space a lot today. But a little more of that in a bit. Let me quickly summarise the more... concrete things that I have done.

I mentioned nearly a month ago about how I used MutationObserver to re-execute the entire tree-walker to ensure that any newly added nodes were pretty-printed correctly. I also mentioned that to do it correctly would require the careful tracking of what [type] of nodes that needed to be adjusted, and what to ignore. What I didn't mention was that part of the difficulty lay in the hard-to-maintain nature of the tag-pattern checker.

I solved this problem recently, so it seemed like the best time to address the efficiency issues of this more thoroughly this time round. I refactored the code that was to determine if a particular HTML5-node was supposed to be processed or not using the updated tag-name matcher, as well as to bring out the special ``ignore me'' class. This refactoring allowed me to do two more things to make the MutationObserver-based code more efficient:
  1. Check if the tag-name/class of the node is to be processed;
  2. Recursively walk from that tag-node down to its children.
I only faced one issue, which was how to ensure that all descendants of node-trees who had an ancestor marked as ``ignore me'' do not get processed.

My original plan was to walk up the parent nodes until we reached the root of the process tree (body-tag, in this scenario) or a node that said to ``ignore me'', returning an appropriate response. Naturally this was slow since I was doing O(n log(n)), assuming the worst case scenario of adding n nodes with an average tree-height of log(n). Then I tried to memoise the parents, but it was stupid for different reasons.

Then the answer hit me: since I had to walk through the tree anyway on the first load, why not just propagate any such ``ignore me'' class information down to all the children, so that if there are any new nodes to add, I just need to check the parent for such a flag, and if it exists, to propagate it down while doing the right thing. It would be the same as memoisation, except more efficient and significantly less stupid.

And that was what I did. Now that code is more efficient than before, and I am glad.

------

I didn't do any ``real'' reading, having only touched a bit on SCP Foundation Tome 5: SCP2000--2499 (page 952/2863). These SCP Tomes are in Mobi format, and thus they get reflowed all the time. This means that the actual page numbers matter less than the proportion they represent. The only reason why I even managed to read one SCP entry was because I was waiting in line for a snack that I was getting from the nearby food place.

I played more Cyberpunk 2077, clearing more side quests in Night City. It's cathartic to be running about in a ray-tracing enhanced game world. There is that subtle difference that makes it that much better than without any of the ray-tracing. Driving along a road after an in-game rain looks very different; all that subtle reflections and distortions in them. I guess the way graphics programming works over time and increasing graphics cards capabilities isn't about expanding the visible horizon, but to increase the details of things that are much closer. I mean, I play Minecraft too, and I will say that most of the time, one is really just interacting with a sort of ``close'' environment as opposed to the God-eye view of the world that requires large expanses of the land to be brought in to play.

Such technology limitations [of having the appropriate processing bandwidth to bring in information over a larger area for a wider visual horizon of processing] are often carefully camouflaged by the game design---in old school game engines running on old hardware without such capabilities, one would notice that level designs would attempt to draw out the strengths of the game engine while hiding the weaknesses, from the many elevators and corridors that hide the loading times of large area maps, to wide arenas that somehow seem to have just enough obstacles to make it nearly impossible to have a completely unfettered view out to the horizon, or the exact opposite of the Serious Engine by Croteam that eschews fine detail to support big and open areas with many mobs.

In many ways, there is a parallel of game design + technology against music composition/arrangement + skill of players. Good game design (music composition/arrangment) emphasises the strengths of the technology (players) while de-emphasises their weakness, to bias the consumer (audience) towards a more positive impression of the finished work. So in an objective sort of way, there is a decent enough bar to measure the success of a game design + technology combination, as there is a decent objective way of measuring the success of a music composition/arrangement + skill of players.

But these objectivities are then tempered against the preferences of the individual.

This idea of objectivity which is further projected into subjectivity can be seen as the driving concept of a lot of machine learning and data mining.

The big wins are already there---we're talking about the stuff that can already provide 75% precision/recall/F1. We know, objectively, that the big wins are already here because we already have textbooks that describe these techniques as though they are fact (compare with the discussion of Newtonian physics, at least at the early education levels). But large companies that had already been winning on these ``cheap'' but high impact tools want to raise the barrier of entry higher, and that is why the whole spiel on ``personalised machine learning'', or whatever the current marketing buzzword is.

However, the lines really aren't that clear-cut. It may seem to be better to allow machine learning algorithms to seemingly tailor their outcome to a person according to his/her personal data, but that method suffers from the literal lack of good quality data. Or put in another way, a data-driven algorithm that is trained only on [say] your data is not likely to perform well, even for you.

This is because all data-driven methods are necessarily interpolatory in nature. I would go as far as to claim [without proof] that using mathematical formulae alone to extrapolate will never get perfectly bounded variances, because dynamic systems are chaotic in nature.

Thus, the best way to hedge one's bets is to try and increase the sample size, which paradoxically means pooling ``similar'' people's data together so as to train a more strongly predictive model for the ``personalised machine learning''. Part of the black magic then is how such ``similarity'' can be determined. All these are non-trivial, and most require stupid amounts of data to do anything useful.

I mean, if a problem does not require stupid amounts of data to help fit some machine learning model, then it should be straightforward enough to write an old fashioned [sequential] program to solve it. That's the whole study of [classical] algorithms in computer science for anyway. It is because there are problems that we don't know the right representation for that we find that using a data-driven (i.e. data-based reconfiguration of the program skeleton, which represents the expressivity) to be superior.

In human terms, anything that doesn't reduce to a [low Kolmogorov complexity] heuristic that we can tell someone gets lumped into the catch-all of ``intuition''.

I don't know what this all means. But I have been staring randomly into space and mulling about this on and off.

I think I'll head back into Night City after this post goes up. Wanna enjoy more of that sweet-sweet graphics and gaming fun.

I also want to point out that the recent large number of anonymous comments was more amusing to me than alarming, mostly because it was anomalous. They are definitely not troll/spam levels of anomalous, but as someone who was trained in machine learning/data science (urgh I hate that term), observing patterns and anti-patterns is a thing.

Alright, that's all for now. I think I'll go work on the next Bible study session worksheet tomorrow, and maybe watch Futurama. Yes, I have decided to finish that for the umpteenth time instead of Darkwing Duck. But we'll get there... I do have more than half of my sabbatical left to go.

Till the next update.

Wednesday, April 28, 2021

Slow Day With Anon.'s Comments?

Compared to yesterday, today's rather sedate.

Apart from the usual Bible in One Year 2020 With Nicky Gumbel (day 355/365), I didn't do much reading. I didn't even watch many YouTube videos either.

I did spend quite a bit of time in Cyberpunk 2077 clearing out side quests. It has been a while since I last visited Night City, and I think that it is roughly the right time to head back there for a bit, to enjoy the nice scenery and side quest stories. Hotfix 1.22 did just drop in a couple of hours ago as I was watching the last few episodes of The Daria Restoration Project while ekeing some runs on Jupiter Hell (none of them successful), and so I'm probably heading back into Night City after this entry goes out.

There has been a rash of anonymous comments to various entries on this blog, which made me scratch my head a little. It's not normal to have people respond to my blogs, and usually they are from people whom I know. At least these anonymous comments so far are not triggering off my in-head spam/troll flags yet, so I suppose that's a good thing.

That said though, I would advise anyone who takes my blog entries as a common/everyday affair with sage-like wisdom to not believe too hard into that. All these near-daily entries are not really planned to last---they are happening as they are because of the fulfilment of the routine that I set out for myself for this sabbatical. Still want to note that the primary audience for this blog is still myself, and whoever among my friends who are still following vicariously, so expecting a consistent output of a modern ``content creator'' is sheer folly.

That warning is as much for me as it is for the reader.

Anyway, that's really all I have for today. I think at some fundamental level, all that excitement over the past two days in sorting out various weird technical issues have taken up quite a bit of energy, and so I am more likely to just take it easier today.

After this entry is published, I will go address some of the new anonymous comments that came in. I still think of it as strange...

Till the next update then.

Tuesday, April 27, 2021

Impossibru!

Okay okay, I know I've written too damn much today.

If you haven't figured out just how much I have written, just check out the last three entries here, and the third part to Print Me.

I should really stop, but I have just cause!

I went back to my favourite bar for some reading and writing recreation with drinking. The owner of the franchise happened to be there in the afternoon supervising some adjustments to the decor and we talked just for a moment. Ever since he had a new bar running out at Bencoolen St, he hasn't really been showing up at the one at Tai Seng, which was why he hired a bar manager in the first place. It was nice to see him and chat for a bit.

One thing that I had to do today was to appease the craving for a burger. Now, my favourite bar does have a good burger (it's also beer+burger promotion day), but the last time I was there, I noticed that the menu had been updated to include the Impossible Burger.

What better way to support my favourite bar (thus keeping its existence through patronage) than to try out this Impossible Burger?
It looks like a regular burger, and has the texture/flavour of a regular burger patty. The only caveat is that it is more medium-well than medium-rare, which probably reduced the flavour of the ``meatiness'' by quite a bit. I usually like my burger patties medium-rare for a more tender flavour, but it is not something that should be ordered unless one is certain about the provenance of the patty---it has to be fresh, otherwise we're looking at possible gastro-enteritis issues.

Overall, I think the Impossible Burger has achieved what it sought to do---it was definitely much closer to the flavour/texture of a regular burger than any of other soy-based mock-meat burgers that one might get from a Chinese vegetarian restaurant. But with a price premium of about 25% [at my favourite bar], I don't see it replacing the regular burger soon. To be fair, that premium is roughly on par with mock-meat vegetarian burgers as well, so there might be some commonality there.

Okay, that's all I want to write here. Need to take a break---I think I have easily written upwards of three thousand words throughout the whole day over different segments of the day; it's a little... unnatural. But I blame it on doing stupid things at stupid o'clock.

Till the next update.

Regex Fun from Radix Trees

Despite sleeping at stupid o'clock, I found myself up at when the sun is up.

There isn't any surprise there.

What is truly surprising is after fixing the prettyprinter script to take care of the correct HTML5 nodes, I was dissatisfied. Mainly because I am using a regular expression to identify whether the provided HTML5 tag is one that I should recurse on or not.

That in its own isn't a problem. The problem comes when I want to make the expression not as long as the dumb enumeration mechanism, mostly because this JavaScript file is almost always loaded in all my pages that I author, and so ``every byte counts''. The relevant HTML5 tags share certain common prefixes (like h1, h2, h4), and in some cases, common suffixes (like figcaption, caption) as well. Thus, one can collapse some of these, for example h[124] instead of h1|h2|h4, and (fig|)caption instead of figcaption|caption.

The reason why I was lazy in the first place was that I was doing all these collapsing of cases by hand. It's stupid, error-prone, and unsystematic, not to mention a real pain in the ass to update/fix.

Naturally, I wrote a Python3 program to do the job for me.

The basic idea was to construct a type of radix tree to incrementally add each relevant HTML5 tag, before generating the associated regex using an in-order traversal. The splits are on the longest common prefix of the HTML5 tag, and any recursion on the children nodes just form parenthesised sub-expressions in the ensuing regex.

There's obviously no guarantee that the radix tree itself generates optimal length regexes, and frankly for my purposes it is not really needed. I just want an automated way that does reasonably efficient compression of the regex denoting the set of tags of interest, though the moment I wrote that past line, I am suddenly reminded of Bloom filters, of which I already have a working JavaScript version that auto-scales to any specific false positive probability threshold. But the machinery for that is messy, and increases the total number of bytes for the JavaScript file.

I added some micro-optimisations to the generator code as well. One of them is to collapse many single-character child-nodes into a single character set, i.e. from a|b|c|d to just [abcd]. The threshold where this starts to win is when the number of such single-character child-nodes is greater than 3 (they break even at 3), though this threshold is thrown out of the window if all the child-nodes are just single characters, i.e. a(b|c) versus a[bc].

The other is to handle common suffixes. The prefix-biased radix tree cannot detect common suffixes for collapsing (by design), so ul|ol to [uo]l isn't something that can be done. The hack I used is to look for all non-recursive children trees and construct a prefix tree of reversed strings, which is a suffix tree in disguise. There are some edge cases to take care of which are not important, but those are taken care of eventually.

While I was expecting to see [uo]l, I actually saw this optimisation used in s(|(ectio|pa)n|...) instead, which I find to be cute. This happened only because I expanded the list of tags I cared about since I now have an automated way of generating the hairy-looking regex.

Alright, that's enough nerding out for now. I'm going to head out to... wherever as I vaguely planned.

Till the next update.

Mobile Setting is Broken in a Different Way, But At Least It Shows Up Properly Now

Sometimes, I hate myself.

If you pour through all the text, you will find that I have described the problem. Take particular note of this paragraph:
Notice that I kept on saying ``desktop version''. Because it turns out that there is a hidden set of theme information that Blogger did not expose that handles the mobile layout. Even if I set the mobile layout to be ``custom'', it would still be drawing on the ``simple'' theme and ignore anything that was changed in the main theme's HTML. And any changes that I made to the HTML will immediately revert the mobile setting to using ``simple'', and to get it to look roughly like the Icy variant of this theme by Awesome Inc would require me to manually re-set it in the mobile theme settings.
Ever wondered how I knew all that?

That's right. Staring at the contents of the generated HTML page yielded the line that looked something like
<body class="mobile icy-variant">
...
The bloody thing was staring at me then. Why would the <body>'s class be generated like this?

I dug into the HTML file for the theme and found the generator information for that class and removed the bit that added the stupid class for one of the other themes.

Essentially, I took this:
<body expr:class='&quot;loading&quot; + data:blog.mobileClass'>
and changed it to this:
<body expr:class='&quot;loading&quot; '>
And what do you know, I get almost exactly the theme that is the same as the desktop version.

🤦‍♂️

The only snafu is the positioning of the date---it is sitting too close to the blog description. I spent/wasted nearly 30 min to try and adjust it away, but to no avail.

But you know what, I'm done. I said I would deal with it in the morning, but well, I couldn't, and I have succeeded. It's probably a janky hack that might bite me in the ass at some point in the future, but I am happy that I have finally gotten something much closer to my vision working over the mobile settings.

That's it. Shower time, and then bed time.

Till the next update.

Nope... Mobile Setting Is Still Broken

Goddamnit. The prettyprinter script is not loading in mobile form.

It's too late in the night to deal with this. I cannot deal with this now. I'm going to turn off the stupid mobile setting mode---maybe I will keep it turned off until I find a solution for this.

Aaaaargh.

Monday, April 26, 2021

Still a Sunned Day, But At Least Stuff Got Done

Argh. I tried my best, I suppose that counts for something.

Readers of the so-called ``desktop version'' of this blog should notice something very different as compared to before. As noted yesterday (wow, was it really just yesterday?!), I updated my personal domain to use the Atkinson Hyperlegible font by the Braille Institute of America.

Then I looked at this blog, and I sighed.

Between the two, I think I write way more here than in my personal domain, mostly because as a blog, we are talking about a more dynamic state of content creation/publication as compared to my personal domain. The whole purpose of the personal domain was to off-load highly static and information dense material, which it serves well. So yes, the update of my personal domain to make use of the Atkinson Hyperlegible font is great and can be considered a good proof-of-concept, but it will definitely benefit all my blogs better.

The first attempt involved me adding some new CSS and modifying the theme's template to use the defined fonts. I immediately ran into two problems.
  1. Blogger does not support CORS, so I cannot just use my hosted fonts;
  2. The list of fonts that are supported in the theme template are only the selected few from Google Fonts.
Argh.

Mitigating the first problem was easy: I could embed the WOFF2 file as an in-line Base-64 encoded data URI. The WOFF2 files are not terribly large, and after setting up the correct CSS incantations, they were only around 91.6 kB, which isn't that big as far as web-pages go (a quick sample check on this blog's landing page had Chromium reporting a total transfer of 939 kB for 1.9 MB of resources, with a load time of 2.36 s).

Mitigating the second problem wasn't too hard either---I just needed to choose the ``Edit HTML'' option under the theme selection page in Blogger and manually add in the font name to the list of font-families, while tweaking the sizes, increasing the old size of 13 px to 16 px, and scaling all the 18 px ones up to 22 px, as well as setting the blog title's 40 px to 49 px (basically applying the scaling factor of 1613 to all the pixel-count dimensions).

Doing that, and fixing something broken about the pretty-printing script about recursive node ignoring (it was doing the right thing of ignoring children nodes when told to do so, but I had been lazy before and didn't write up the necessary list of HTML5 tags to not skip the recursion on; that laziness led to a whole bunch of janky flags that I finally refactored and tossed out) led to what you can see here in the desktop version.

Notice that I kept on saying ``desktop version''. Because it turns out that there is a hidden set of theme information that Blogger did not expose that handles the mobile layout. Even if I set the mobile layout to be ``custom'', it would still be drawing on the ``simple'' theme and ignore anything that was changed in the main theme's HTML. And any changes that I made to the HTML will immediately revert the mobile setting to using ``simple'', and to get it to look roughly like the Icy variant of this theme by Awesome Inc would require me to manually re-set it in the mobile theme settings.

Since the mobile theme information is hidden, there is no way to adjust it to use Atkinson Hyperlegible, and so it looks... like it has always been since the change of the theme.

So that's it. Now all my blogs are using Atkinson Hyperlegible as the font, like the old days when I switched out ``Trebuchet MS'' for ``Candara''. Unlike the old days where there was no font embedding technology, this time I am almost guaranteed that all modern browsers can actually render what I want, except when it is in mobile mode (argh).

I am happy with how much more readable this is now.

------

Psalm 96:1--3:
96 O sing unto the Lord a new song:
    Sing unto the Lord, all the earth.
2   Sing unto the Lord, bless his name;
    Shew forth his salvation from day to day.
3   Declare his glory among the heathen,
    His wonders among all people.
Singing is a part of the worship of God. Psalm 96:1--3 tells us that when we choose a song to worship Him, we need to ensure that:
  1. The song declares His glory;
  2. The song points to Him; and
  3. The song is in the splendour (or beauty) of holiness, that is, to be reverent and set apart from the normal part of the world
That is one of many important things that I have learnt so far in my journey of faith.

Singing as used in worship is now allowed, and with that is my participation in the singing part of the worship service itself. I've always had a tendency to veer towards singing in the female vocal range, mostly because that's what I had been listening to often. But after the first couple of worship sessions that include congregational singing, I think I will stick with the bass range (E2 to E4) for two reasons:
  1. Much of the congregation seems to sing high, leaving the lows really empty and non-resonant;
  2. I have been assured by Chara back in the day that I actually had a low voice.
I also found that I could sing the worship songs that low anyway.

On a whim, I decided to measure just how low I could go. The spectrum analyser said that my lowest non-vocal fry range is about 82 Hz---this is an E2 with no octave stretching in both A440/A442 12-TET standards. If I have warmed up, I can go as low as 73 Hz, or about 2 semi-tones lower than E2 with no octave stretching.

I didn't realise just how low I could really go. I mean, I'm used to living with my voice, and never really tried to quantify and record the quantification. Incidentally, I'm not exactly tall (I'm under the average male height of 1.73 m as listed here), and I don't smoke, so knowing that my voice is that low is a surprise. Of course, I'm not at the range of the oktavist yet, though basso profundo does have a ``natural'' low of C2, which is totally reachable. I'm quite sure I am unable to reach A1 (or about 55 Hz) in this life time, but who knows? Maybe God would like me to reach that low later in life to better serve Him?

On a different whim, I started from the lowest note I could go and just smoothly glissando up to see how high I could go before I got ``stuck'', i.e. reaching a point where I had no other way of raising the frequency any higher. As I looked at the history of the spectrum analyser, I could almost catch a glimpse of where my vocal registers were switched over due to a small plateau as my [untrained] voice takes some time to move along. I could definitely feel the resonance of the voice shifting as I glissando up more than glimpsing it in the spectrum analyser, mostly because the switch over order of magnitude was at centiseconds (the spectrum analyser ran at around 5 cs per pixel row of output data)---it was a weird feeling.

743.4 Hz is the upper range, which is around F♯5 in A442 12-TET.

So my comfortable-ish vocal range is around 3 octaves or so (ratio of highest frequency reached to lowest reached ranges from 8.96× to 10.2×, ``one octave'' is a multiplicative factor of 2, so 3+ octaves is about right).

That's good enough for me.

------

I did have quite a few failed Jupiter Hell runs, but they weren't worthy of speaking of due to them being failures. I'm in the fifth and final season of The Daria Restoration Project and after that is done, it will be a toss up between Darkwing Duck series, Futurama (again), or something else. I think if I'm going to continue with grinding out more Jupiter Hell runs, I might go with Futurama, but if I just wanted some passive entertainment alone, then I might go with Darkwing Duck.

That's about all for now. It's a long update, but hey, I did quite a few things today. I am planning to head out of the apartment tomorrow just to do something different (probably reading). It does feel like a burger sort of day, though the question is whether to head out to my favourite bar for the beer+burger day (are they still running this on Tue & Thu?) or to head out to Five Guys. The benefits of the former are that I can easily sit there for hours on end and just keep chugging beer while reading, but the latter does satisfy some deep cravings. Eh, more first world problems.

I'll leave those for tomorrow. Till the next update then.

Sunday, April 25, 2021

Sunday? More like Sunned Day

That has been a very hot day. The interior walls of the apartment were measuring at 30 °C, which only hints at just how hot it really was for the exterior facing walls, behind which I sit at with Eileen-II. Speaking of Eileen-II, I did undervolt her to −37.1 mV instead of leaving her at −35.2 mV like last time. Yes, it is borderline greedy, but any bit that can help with the thermals is a good thing.

I spent most of the day reading, having reached page 364/3790 of Harrison's Princicples of Internal Medicine (20th Edition), and page 506/1321 of Handbook of Data Structures and Applications. I'm nearing the end of the section that deals with multi-dimensional and spatial structures, and I must say that the contents do actually fill in some gap in my knowledge, mostly because these data structures are reaching the point where it is more efficacious to use a pre-implemented one in the form of a library/framework, than to roll it out on one's own.

In many ways this is a demonstration of the principles behind what I usually call the ``professional versus the knowledge base of the fourteen-year-old''. Old school data structures that I had known since I was fourteen were the ones that could mostly be implemented by hand from scratch, mostly because of their lower level of [Kolmogorov] complexity. They are generally good enough for 80% of the cases out there, but they suffer from the single flaw that they are primarily in-memory only and are often non-concurrent safe.

Putting it a little more simply, it means that using such data structures would strictly relegate us back to the early 2000s level of software technology. Since the mid 2000s, multi-core processors that share memory, large secondary storage (local disks), and even larger tertiary storage (think cloud storage/NAS) have been in mainstream use. It is not that the old technologies are not applicable any more, but that these new [hardware] capabilities mean that we can seriously improve the constant terms of more complicated data structures that can leverage on massive concurrency and/or parallelism that can potentially beat the traditional data structures.

I have learnt from young that part of solving a problem (after suitably defining what the problem that needs to be solved is first) is to devise a good representation for the problem space and/or solution space. Data structures affect this aspect of problem solving directly, and the larger the problem, the harder we need to think about the better representation for the problem. Notice that I did not say ``best'', mostly because the performance and scale of the computational machines we have now are generally good enough that we often do not need ``the best'', mostly because having ``the best'' requires super-specialising the data structure and associated algorithms for that specific instance of the problem that needs to be solved. Don't get me wrong, having ``the best'' solution for an expensive enough problem with a great enough payback is sometimes the only way to proceed, but for the purposes of solving more problems overall at a faster rate, the data structures need to be sufficiently generic enough.

That's why the old ``abstract'' data structures like arrays, linked lists, stacks, queues, binary search trees, [in-memory] adjacency lists [in arrays] were defined the way they were, and designated as fundamental. The problem space now is much more diversified, and much of the research in the data structures seem to be more of the specific-solution phase as opposed to generalising.

In many ways then, my urge to read Handbook of Data Structures and Applications is completely warranted and is vindicated as I make my way slowly through the text. It's technically an extended survey monograph, so implementation details will probably require me to dig into the referenced papers, but most times knowing that something can be done is of a higher importance than knowing all the specific details, especially since these days, one can look up the specific details relatively easily through the many search engines out there.

Yes, not implementing complex next-generation algorithms from scratch does lose one some street cred, but at my age and time availability, it's better to be known as one who solves many large problems successfully than the [basement] hacker who only knows how to implement that one complex data structure from scratch. Paraphrasing, implementing a complex data structure from scratch is fun, but it does not pay the bills in this time and age.

What I think I'll do with the remaining time today is to finish up the chapter I am currently on in Harrison's Principles of Internal Medicine (20th Edition), before calling it a day. Doing website development/maintenance/changes at stupid o'clock without taking a nap really does take it out of me.

Oh, I think that I forgot to mention that I had man-handled Blogger to ensure that the disclaimer blurb appears also in the mobile version of this page. Getting that to work required many levels of stupid to be done. As to the why those hoops needed to be jumped through, I don't know.

In case it wasn't obvious enough, I didn't play any video games today, but I did watch a few more episodes of The Daria Restoration Project. I think I might be able to finish that soon-ish, after which I will need to decide what I would like to watch.

After all, being on sabbatical is more than just being occupied with intellectual pursuits---there is also a certain sense of self entertainment and re-discovery as well.

Till the next update then.

Stupid O'Clock Font Change

Okay, we're at stupid o'clock again, but this time, it is not a rant but a quick technical update.

I was looking at the existing font that my personal domain is using (it is Open Sans that is locally hosted), and I realised I hated it.

The reason is simple: ``Il1''. That's a capital i, small L, and the number 1. They look like garbage. The inspiration for this realisation is from this Reddit post on Arial. Thanks to u/accideath's comment, I learnt about an awesome font face that is designed to make things more legible: the Atkinson Hyperlegible Font by Braille Institute of America.

I won't replicate the features of Atkinson Hyperlegible here (just visit their website to read), but suffice to say, I liked what I saw, and stupidly spent the past hour or so setting it up to replace Open Sans for my personal website.

Lazily, here's the comparison before my recollection of the process---left is the original in Open Sans, right is the new one with Atkinson Hyperlegible:
The download package contained the WOFF2 font files that are used in web browsers, and so it was just a case of setting up the appropriate @font-face blocks in the main style sheet. It was after doing that and reloading the pages that I realise I needed to do some more tweaking.

My baseline was the [then] existing layout that was already tweaked for Open Sans. Atkinson Hyperlegible is a slightly smaller font-face than Open Sans, and as such, the font-size needed to be increased enough to reach the legibility that I wanted. Strangely, the line-height needed to be backed down a little to reduce excessive spacing in between lines. As I compared the pages visually, I start to realise quite a few off points, and had to investigate further.

It turns out that there were many funny ``magic numbers'' that I was using to ensure things looked well with Open Sans that did not need to be done for Atkinson Hyperlegible, which is great, since it meant I could chuck it out.

I like how it looks now. Sure, it looked a little funky as compared to Open Sans, but it is definitely more legible now. It also gives the page a new feel as well, since the change of the main font is akin to a major design change.

That's all for now---I should go to bed. Till the next update.