Monday, March 22, 2021

Further Tweaking of Other Python3 Scripts

What a day!

I spent much of the morning watching more Linus Tech Tips and other videos from my YouTube playlist. Subsequently, it was more Cyberpunk 2077 again.

Remember the off-comment from a previous post about getting bored waiting 22 s for the minification process? Well, before my meet up with a friend out at Casuarina Curry, I decided to sit down and do the refactoring of the script to make use of multiprocessing. It wasn't hard, but it did take a little bit of time. I think the refactored code is a little bit cleaner than before, and after tuning the number of processes to spawn in a pool (it is 3, for some reason, with a pre-sorted decreasing file size order), I managed to get the run-time for this segment down to around 12.102 s from the original 28.455 s (this means that my number of 22 s in the original post is quite off).

I had enough time after converting the minifier to use multiprocessing that I decided to do the same for the sitemap generator as well. This is a little bit overkill because the run-time was already 1.835 s, which is as fast as it gets. Turns out, I could still gain some wins through multiprocessing and tuning (3 is the magic pool size again), leading to a run-time of 1.144 s.

Roughly, the final runtime is like 12.617 s against 30.092 s, or about 42% of the original run-time. Put in another way, the processing is now 2.4× faster than before. That was rather surprising.

The timings include overhead from the bash shell that orchestrates the whole execution. For reference, without the bash overhead, the tuned version of the sitemap generator was at around 0.8 s.

Considering that Eileen-II has 6 physical cores and 12 logical cores, it is a little bit surprising that the best number of processes to spawn is not at either of those two numbers for this particular work load. Upon a little more reflection, it makes sense in that each time we spawn a new process in Python3 using the pool workers, it effectively reloads the module, possibly in another instance of the interpreter. We are processing a moderate list of small files, so this spawning process may end up dominating the run-time. Thus a more controlled (and smaller) number of processes would work better.

The more astute might ask why I am using process for [data] parallelisation instead of threads. Well, for CPython (the Python3 interpreter I am using), there exists a global interpreter lock that basically only allows a single thread to execute the Python byte-code. This limitation may not be applicable, but using multiprocessing is a quick and dirty way to get the ``embarassingly dumb`` data parallelisation to work, as compared to threading. I cannot guarantee that the workloads are completely I/O-bound since both the minification and sitemap generation process does include some in-memory based parsing/compression.

For now, I am happy with the results.

------

I met up with a friend I made when she was working at my favourite bar (last featured at this entry). She's in between jobs as well, though her domain of interest/expertise is vastly different from mine. We went to Casuarina Curry, located at 136, 138 Casuarina Road (Off Upper Thomson), Singapore 579524. I like Casuarina Curry because of the consistency of their prata, and that I have been there relatively recently to confirm the quality.

Back in the old days, I used to eat rather regularly at Thasevi Food out in Jalan Kayu. But I've not been there for a very, very long time, especially since the road to Jalan Kayu has been tweaked when the whole Seletar Aerospace Park became a thing.

Before Seletar Aerospace Park, it was a nice quiet quasi-abandoned version of the old Seletar Base. I used to serve my national service there, enjoying many a cycle about in the evenings after work and before nightfall. I don't think it is possible to cycle there safely now, because of the rather wide high-speed roads that are built there.

Anyway, we caught up and had a chat. It was nice to meet a familiar face that was not of my old crowd, not because I dislike my old crowd, but that it is important to start developing newer memories through newer and different social connections.

This is, of course, another attempt at helping with the re-alignment process. I can't get ready for the future if my mind is always full of information about the past.

I am running some experiments to extend a point that I raised earlier in this post, but I will just put this up first and put up a separate post when the results of the experiments are ready.

Stay tuned.

Sunday, March 21, 2021

Sojourning in Night City

It has been a rather quiet Sunday. As mentioned yesterday, I have gotten ahold of Cyberpunk 2077 and have been playing it for the most of today, after of course my daily reading from Bible in One Year 2020 with Nicky Gumbel (am on day 317/365).

The gameplay of Cyberpunk 2077 is closer to CD PROJEKT RED's previous offering of The Witcher III. It's quasi-open world, and is really amenable to just exploration, which is fun.

It's like leaving the apartment without actually leaving the apartment. Heheh...

Anyway, this is a deliberately short entry. I'm likely to be doing other things tomorrow instead of continuing my visit to Night City, but I wouldn't hold my breath too hard.

Till the next [hopefully less short] update.

Saturday, March 20, 2021

Visiting Night City

This is going to be a quick update because I got my hands on Cyberpunk 2077 at a 20% discount from GOG.com. Even using US Dollars, I ended up paying 0.78× the Steam price.

I had my eye on Cyberpunk 2077 for quite a while, but have been put off from actually getting it because of the many bugs that had been reported for the game on/around launch. What made me decide that I would really get the game was the Cyberpunk 2077 speed run at ESA 2021 Winter, which showed the gameplay more extensively, and with glowing commendation from the speedrunners themselves, praising the game's story.

As I get older, I find that I actually like a game's story more than just the mechanics alone. Which was why even though I like the mechanics behind games like FTL: Faster Than Light, Into the Breach, or even Jupiter Hell (sorry Kornel), I find myself slowly drifting away from them. Mechanics make a game fun in the way that it makes the associated grinding somewhat enjoyable, that's why survival mode Minecraft is one of the most popular Let's Play type game series for streamers.

So, sometimes I just want to grind some fun game mechanics to relax. Other times I just want a good story as well, like my playing of The Outer Worlds, another AAA-title game.

Incidentally, it seems that usually only the AAA-title games have good stories (and good mechanics) in them---most indie games (like the ones I cited) have great mechanics, but are sometimes lacking in story. Heck, even the Grandfather of First Person Shooters DOOM Eternal has a somewhat passable (but campy) storyline.

The other reason for suddenly buying Cyberpunk 2077 has something to do with my sudden epiphany of how to obtain better performance for Eileen-II without running into stupid thermal limits in this horrifically hot/humid ambient condition.

Now, I have done experiments on controlling thermals by undervolting the CPU in various blog posts before. The control of CPU temperatures from Turbo Boost multiplier control and undervolting are thus well understood.

But I faced two issues. The first was almost no control on the CPU and GPU fans, even though Alienware Command Centre (AWCC) could see them.
But I couldn't control them! And more importantly, my GPU seemed to not be working at full specifications, since Minecraft using Optifine with BSL Shaders was getting like sub-30 fps on modest settings, which was rubbish.

I finally found out why from this Dell article. I've reproduced the relevant part here:
Basically when using AWCC and selecting the various thermal modes, some secret flag gets toggled in the background.

I've been running in ``Cool Mode'' all this while, which meant my GPU was secretly nerfed.

🤦‍♂️

Once I learnt about this, I switched to ``Full speed mode'', put on my QuietComfort 35 wireless headphones, and launched Minecraft with Optifine and BSL Shaders running in lieu of the Project LUMA.

What do you know... darn thing runs at near 60 fps with almost everything on.

This GPU aspect is important for Cyberpunk 2077, and once I knew that Eileen-II's GPU can handle the load, it was a no brainer.

So excuse me while I head on back into Night City. Till the next update.

Friday, March 19, 2021

Python3 Script Tinkering Again

It's a Friday!

I have been spending most of the day attempting to power through OpenStax College: Organisational Behaviour---I am currently at 356/704 pages. It will be a while yet. I'm not sure if this can be considered a type of procrastination, but I did take a short break to read On the Decay of the Art of Lying by Mark Twain as well.

Some time was also spent watching more Linus Tech Tips videos.

But funny enough, I actually ended up spending quite a bit of the afternoon putting about with my Python3-based HTML/JavaScript minifier. I was getting a little bored with waiting for the 22 s it takes to run through all the files sequentially to minify and/or compress, and wanted to do use multiprocessing to handle it, just like what I did the page counting script. But before doing that, I wanted to update the sources yet again, this time to trigger as few pylint complaints, like the recent exercise I did with other Python3 scripts. I got most of the warnings out of the way, and accidentally fixed a bug that I had been observing forever.

The bug was that for some reason, the minified HTML5 files still had extra spaces here and there in between an end-tag and a start-tag. For a long time, I had been looking into it on and off. And today, while going through the code-base again, I realised the problem: I was tagging the #text node equivalent data as Token.DATA instead of Token.TEXT. The significance of this difference lies in how the subsequent re-generator worked with the tokenised output---Token.TEXT nodes would have a more aggressive white-space eater/coalescer, while Token.DATA nodes will be left very much alone.

Such a simple oversight that got fixed because I was procrastinating on my sabbatical. What a joke.

Anyway, after adjusting according to what pylint complained and fixing the bug, I sort of stopped right there---the next step involved some re-factoring and other adjustments, but I was too lazy to work on them since it was ``obvious'' what needs to be done; it was just that it was a little tedious and I wasn't in the mood.

------

Funny enough, instead of stopping the programming for the day, I did even more programming, this time enhancing the same page counting script I was referring to. I added another field to the current quadro of number of pages, average bytes per page, total bytes for file, and file name. This field is ``modified time of the file in days relative to when the script was executed''.

The purpose of this field was to give me more information on when a particular e-book was assembled---the earlier they were assembled, the larger their magnitude, or given the esoteric definition, the ``smaller the negative number''. So, an e-book that was last modified about 14.7 years ago would return as −5.4k days.

As I was tinkering that, I started to think about all the stupid hacks that I was doing to get mobi-python to barely work. The decoding process was clearly problematic for the .mobi files that I had, because the page-count estimate was about twice as large as it should be, using the output of Sumatra PDF as a gauge, not to mention all the weird hackery that I had to do. While I was writing that blog entry then, I soon found that there was another mobi decoding library in Python3---it was aptly named as mobi. Why I did not see this earlier when I was writing the original handler was due to the search engine I used---Duck Duck Go yielded mobi-python as the first entry, while Google yielded mobi as the first entry.

At the time of the blog entry, I didn't have the time/wherewithal to experiment and switch over. But today, I decided to give it a go. It generated a temporary directory as part of its decoding process, which was not ideal, but it did get the job done well. And so, I updated my little script to use this new library instead of the really alpha (and really broken) mobi-python library. I won't cause myself silly problems, but will first bring up the original computation for reference:
Here is the updated version with the replacement mobi module:
So the numbers for e-books that I can archive that I have read are 151.2k pages with 29.3k bytes per page on average. You can also see the new data column, whose units are in days. These numbers are positive because the final computation occurred after the start of the script (the anchor point), and can be seen as a small easter egg of sorts to crudely time the run-time of the script in units of days. Notice that the run-time were between 99.4µ days to 388.7µ days---I will leave you, the reader, to work out how many seconds that is. I could have left it in seconds, but staring at units of millions of seconds were hard to fathom, and so this compromise was created---the output was designed so that sort -k4h would do the right thing.

Also, take my word that the number of pages that I have left to read as at now is 225.2k pages with an average of about 13.9k bytes per page. I think it is much more representative now.

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

Thursday, March 18, 2021

Seeking My 10 Wins a Day

I begin with a quote from An Astronaut's Guide to Life on Earth by Chris Hadfield:
The whole process of becoming an astronaut helped me understand that what really matters is not the value someone else assigns to a task but how I personally feel while performing it. ... If I'd defined success very narrowly, limiting it to peak, high-visibility experiences, I would have felt very unsuccessful and unhappy during those years. Life is just a lot better if you feel you're having 10 wins a day rather than a win every 10 years or so.
I spent today reading this book, quite unintentionally actually. It was a book that was mentioned in this Reddit comment to the original one about a prank in Skylab.

It was an unexpectedly good read. Sorry, OpenStax College: Organisational Behaviour, An Astronaut's Guide to Life on Earth is just more compelling to read.

This isn't a book review post, so I'm just going to say that what Hadfield had written was inspirational, and that particular quote that I cited in the beginning of this post has given me a little more insight on the type of path that I am heading forwards, not so much as being an astronaut (I'm too old and born in the wrong damn place for that), but the type of attitude that I could have that would make whatever is remaining of my current life just that little bit more worthy of living.

Looking back, I think I did experience the type of thing that he was referring to specifically in that quote (and more thematically throughout his memoir). I remembered that the happiest that I had felt was not when folks were applauding me when I successfully executed a difficult [for the time and skill level at that time] performance of 笛子 in concert, but when I had figured something out on my own. These moments were like the times when I figured out how certain paper craft combinations worked when I was in primary school, the many little programming experiments that I was doing (simple games, a pseudo-random number generator based cryptographic tool, a full-featured reverse polish notation math tool complete with numerical integration/differentiation and graphing capabilities, base-10 big ``integer'' mathematics support using strings, all in QBasic) in secondary school, competitive programming related algorithms and steganographic concepts in junior college, and computer science-y odds and ends in undergraduate times.

But after that, it seemed that I somehow ``lost'' all these fun little things where I figure stuff out. There is a light revival as I start to figure out flute-y things while figuring out what professional-level concert flute to get, and the systematisation of 笛子 techniques in English, but they are definitely less fulfilling in comparison only because they are starting to fall in the ``a win every 10 years'' category.

Actually, part of why I absolutely loved working the research institute was that I had many opportunities for small wins that would add up over time. Figuring out how to build the back-end mechanisms to support data management was an interesting exercise of maintaining some manner of portability while being performant, and keeping scalability and security in the background. It stretched me in ways that were pleasant, and I would happily just think, design, and then program for hours at a time. But of course, manglement started getting in the way, with all kinds of policies that made it neigh impossible to tinker---there was a strong wrong-headed approach towards standardisation and centralisation of all personal-level computing. Mind you, we were working on infocomm technology, where our laboratory was literally the workstation that we worked on, and our tools were various software that we had to write and/or install. Something as mundane as spinning up a virtual machine to test a service-based architecture would be prohibitively laced with red-tape to make the cost of testing not worth it.

That was one of the reasons why I left, incidentally. The manglement's obsessive need of control without a good understanding of what it was we were doing made the policies that were created anti-thetical to stay---because they were, put bluntly, making it impossible for me to actually do the work that I was hired to do. Sadly, they were also damn proud of it too, which makes it all the sadder.

Actually, that is also the same reason why I left the last company I worked at too. I'm sick of being some warm body to fill up a spot so that manglement can give itself the self-pat on the back for ``following the best practices in the `industry' '' without necessary knowing what the industry is.

In the terminology of Hadfield, I was prevented from even being a ``zero''. Hadfield classifies the neutral contributor as a ``zero''---the person does not contribute detrimentally to the cause (a ``minus one'') nor is the person a super-star (a ``plus one''). Being a ``zero'' is literally the bare minimum that one should strive to be in a team, and in those places, I was actively prevented from doing so thanks to various managerial behaviours.

And this is also why I needed a sabbatical. To seek joy again in a life that has been ripped to shreds with the multi-whammy of a bad break-up, active hampering of doing what I was trained to/could do, and generally bad prospects for the future in general.

God is in control, but I still need to exercise my free will. But I cannot exercise my free will if I am not in the right state of mind either. Reading His word is one way to gain joy, but unfortunately I'm still stuck with this puny mortal body, and so I need to take some care of it as well---it is probably good for me if I just get called home to the Lord now, but it won't do His plan nor anyone else any favours.

So I just need to grit my teeth, grin, and try to seek the joy and beauty that is in this world to give myself a good enough reason to go on.

I wasn't expecting this blog entry to be this long, but here it is anyway. Till the next update, I suppose.

Wednesday, March 17, 2021

Clarke Quay, Bras Basah Complex, and Back from the Edge

Today's blog entry is a little more flavourful, seeing that I have actually gone out of the apartment.

I resurrected an old tag, sms-musing, that tags posts that were conceived in the field while I was doing something else, which in today's case, was waiting for the bus. I might just keep using this tag if I have such epiphanies each time I'm out in the field, probably as a way of capturing those in-the-moment thoughts that come from doing something more stimulating.

Speaking of stimulating, I went to grab my favourite sushi for lunch today. I have been following them since a long time ago since their first stall in VivoCity, and their aburi nigiri is to die for (get the assorted one---comes in stacks of 10 and is borderline omakase). The rest of the menu items are generally good as well because of Chef Johnson's consistent use of fresh ingredients.

My record was eating 40 pieces of those delicious assorted aburi nigiri sushi. I've stopped doing that for a while now because I wanted to lose weight. Sushi, delicious they may be, still has lots of carbs in the form of the rice after all.

I used to be a little less loud about this place, because the more people realise how tasty their food is, the harder it may be for me to find a place to sit there when I head down to dine in. However, times have changed, maybe I won't live long enough to keep supporting them I mean thanks to COVID-19, the F&B businesses are getting quite badly hit, and I would be sad if JJ.com Fish Mart goes away completely. They are located at 6 Eu Tong Sen Street, The Central #01-68/69, Singapore 059817. If you are reading this blog entry, and are in Singapore, please head on down and support them. =)

------

After my comfort food, I went on for a walk along the river and headed towards Clarke Quay proper. Seeing the tear down of Liang Court brought out some sadness in me. Liang Court was, back in the day, the place to go for anything that is of the Japanese culture. Recently, I had spent some time there prior to its demolition, and loved the Kinokuniya book store that was there. There were also a craft beer place, and it was also the place where I went to for my slim hip flask.

All these have gone down the path of history now, like all things in Singapore. This is in contrast with Melaka---going there with a fifteen-year separation revealed almost no changes whatsoever.

Not sure what to feel there, but it is just a thing I suppose.

The walk was supposed to take me from Clarke Quay Central through Clarke Quay, follow Hill St up north before ending at Peace Centre.

But I got side tracked. A while back, I talked about Seng Yew Book Store, and claimed that it was still alive. But that was based on Internet pictures. So I thought to myself, `hey, since Bras Basah Complex is sort of along the way, why not check out the place to confirm it?'.

And that was why when I was already at the vicinity of the National Museum of Singapore, I decided to switch over and walk towards Bras Basah Complex instead. It took me a while, but I got there...

...and promptly got suck into 书城音乐书局, or more affectionately known as 书城 for short. They have an English name (``Music Book Room''), but I have never heard of anyone calling it by that name. I bought two books, one on 笛子 techniques (and associated training pieces), and one on 箫. I was tempted by the melodica by Suzuki music, as well as two 膜孔-less 笛子 (it was a G-梆笛 and a D-曲笛). The melodicas (``melodions'' using Suzuki Music's branding) were easy to not be too tempted by because they were in the hundreds for price.

But those two 膜孔-less 笛子 were sub-fifty each. So tempting... but I remembered that I have a Grenaditte piccolo and a Grenaditte treble flute that covers the range of the G-梆笛 and D-曲笛 respectively. They were also chromatic in nature, and actually had a wider compass than the two 膜孔-less 笛子. And so the temptation was gently pushed away.

I spent the next couple of hours just walking about Bras Basah Complex, exploring various stores, staying clear of bookstores (and Artfriend) in general. I did enter Swee Lee though, and found that their renovated premises to be more stylish than before.

As I wend my way through, I finally reached the top of the commercial part of Bras Basah Complex, and sat down to this interesting panorama:
It was just this strange juxtaposition of a public housing residential apartment [behind me and atop Bras Basah Complex] while the buildings around were obviously non-residential in nature, with the National Libray clearly within a stone's throw away.

I would've sat there longer had the rain not start to pick up and scatter me away from the open air ``roof-top''.

------

I think that my urge to revisit many places again might be related to the concept of transactive memory. Mumbo-jumbo aside, the premise is that when we remember things, we tend to build strong associations as part of the encoding of the memory. Association is a very strong mechanism in the reinforcement of a memory, it is part of how the method of loci can be used to memorise stupidly long lists of things.

More mundanely, it also means that if one's memory of a place was when one was with someone else doing something, it often is the strongest memory of that place.

This is bad for me because it means that I do not have another way of looking at the [objective] reality, which means that I will keep getting reminded of a reality that is no longer true. This constant reminder from an old memory is a great way to develop more and more ``down'' episodes.

As I mentioned in my earlier SMS-musing, life's experiences (as both mental and physical ones) have hysteresis loops involved---even when we ``go back to a previous state'', we don't actually go back to a previous state verbatim since we have already been conditioned with whatever that has happened in between visits. Memories cannot be erased, but they can be put into a different context, the so-called ``time will heal'' effect. And the fastest way to put memories into a different context (thus dulling the one causing a stronger [negative] affect) is just to build new ones.

So visiting Bras Basah Complex alone today doing similar enough but different things compared to the time that I was here with someone else helps to recontextualise the memory and reduce the pain that it will cause.

Am I just rationalising things to myself, or is there another purpose behind this?

------

In other news, I have a new ear worm.
I first heard it while I was at my favourite bar.

What drew me to the song was the repeated refrain:
Back from the edge
Back from the dead
Back before demons took control of my head
Back to the start
Back to my heart
Back to the boy who would reach for the stars
Oh, back from the edge
Back from the dead
Back from the tears that were too easily shed
Back to the start
Back to my heart
Back to the boy who would reach for the stars
Who would reach for the stars, yeah
(Lyrics sub-texted from Musixmatch.) It's not that the lyrics are particularly deep, but that the delivery of the lines just resonated with me. It's a mix of wistful, anger (especially from the line beginning ``Oh, back from the edge''), and a certain victorious feel to it.

That's about all I have for now. Till the next update.

SMS Musing #8

While waiting for the bus:
Life is one big hysteresis loop. Things happen and affect us, and even though after that we sort of "get back" to where we were before, we never actually do. Because the context has changed, and more importantly, the innate bias encoded in our mind has changed due to the experience. It is yet another agathokakological set up, since the retainment of memories and experiences encompass both the good and the bad -- it is not possible nor is it healthy to keep only one set without the other. Life's experience is the autoencoded sum-total of all experiences.

Tuesday, March 16, 2021

Hougang Green Shopping Mall

I got a head shave again today as the hair was starting to get rather unruly. I went on a short walk about the neighbourhood once more, but headed northwards instead of westwards, ending up somewhere in the Hougang Green Shopping Mall region.

Wait, Hougang Green Shopping Mall?

I swear that at times, I have no idea how to process the different crazy names that we give to our places. The reason for my incredulity is that despite being called a ``shopping mall'', Hougang Green is more like some kind of open-air two-storey commercial building, something that is a little bit more removed from what one might normally consider a shopping mall. But to be fair, the idea of a multi-storey air-conditioned shopping mall is only common from the late nineteen nineties or so, when the regional centres (a concept from the early nineteen eighties) started having these centralised multi-storey air-conditioned buildinds that mimicked the shopping malls that were to be found in the major shopping district that is/was Orchard Road. Many of these regional centres had terrace house-like shopping arcades that were the proto-shopping malls, just about a step above just setting up shop along the road.

And when the regional centres had their upgraded shopping district-esque shopping malls (and the subsequent ``super-scaling'' into multiple such malls within the same region---see Tampines and Paya Lebar for examples), the fringe areas like Hougang and Sengkang started to have smaller scaled versions of such shopping arcades that were multi-storey buildings that were better classified as ``shopping malls''.

Anyway, Hougang Green Shopping Mall had quite a few interesting shops there. My favourite fried chicken place, Arnold's Fried Chicken, has a branch there. I did not eat there though, getting accidentally shanghaied into trying food from Chef's Hats that was also located in the shopping mall. I tried the burger set lunch, the carbonara penne, and escargots. They taste alright, and their price were closer to that of a café pricing, which is also okay I suppose given the slightly more up-scale choice of ingredients and cooking style. I would eat there if I wanted the ambience to do something else in addition to having something more traditionally western in style as opposed to the usual bak chor mee, but if I just wanted to have a tasty ``high class'' burger or escargots, I would probably choose somewhere else, if not for the fact that Chef's Hats was literally within walking distance.

Eh, support local. They have their good points, I suppose. ``Satisficing'' is often a better deal than ``optimising'' anyway, if the recent chapter that I was reading in OpenStax College: Organisational Behaviour is anything to go by. Sometimes I feel that the lengths that some people go to find the ``perfect'' food place is just a bit too excruciating---sure, the ``perfect'' food place probably tastes more amazing than the less-than-perfect one, but when one starts factoring in the effort/time taken to research to find that place, and then the time/effort needed to actually get a spot in the queue to eat there, all that ``perfection'' gets severely marred, with the expectations set so high that when reality strikes, it hits like a truck, and in a bad way.

My rules of thumbs for a lot of things are very simple, really:
  • Is it good enough, objectively?
  • Is it ethical?
  • Is it cost effective enough?
  • Is the effort to get the next better option an opportunity cost that I want to pay?
Bullet point one sometimes does not have an optimisable search space, simply because there are dimensions of the problem that I may not know of, or even if I do know of, have no way of accounting/controlling for them. In short, it is less about full objectivity, but so-called bounded rationality-based objectivity, or ``is it good enough given the information that I know in the time horizon that I need to have the decision made''.

Put in that way, it would seem that I am not exactly an achievement hunter. And anyone who comes to this conclusion is much closer to the truth than they would be expecting. Don't get me wrong, I dislike losing like the next person---I'm not so inhuman that losing causes absolutely no reaction in me. However, I am not one who only seeks to win, which is problematic in this world because the ``need'' to win is the very definition that powers this post-industrial capitalistic world. To many people, this need to ``win'' ensures that they are more likely to make decisions that can go against their conscience and/or put them in a long-term advantage, if their short-term goals can be met.

For a ``win'' cannot be defined without a goal. Long term goals are muddy by definition---for instance, what does ``long term sustainability'' as a goal mean? More importantly, how can that ever compare against the much easier to articulate (and actualise) short term goal of ``maximise shareholder value''?

For the record, I am not demonising the idea of business. Business is an important process to match what people need against what can be created to satisfy this need through the resource allocation process via economics. But the conduct of business can sometimes be rather shady and superficial. Many regulations that are devised as laws govern less over science and technology per se (reality acts as the final arbiter of what can and cannot be done) but govern more over the various ways businesses may be conducted. New laws are often created to patch any loop holes of some previous conduct of business that was either deemed to be detrimental to society by the rabblement, or by the government, either through the government's independent observation of the abuse, or through the various lobbying efforts by other businesses whose existence and success may be negatively affected by the loop holes that were exploited.

Business is one of the few things that take something that modern societies value the most (money) and make more of it (i.e. more money), and thus gains a certain amount of fascination and obsession by many people. Many do it against good ethical/moral behaviour and the ``more noble'' approach of advancing human knowledge, just so that they can gain the type of recognition by being an amasser of large quantities of what modern societies value the most (money).

So my admonition still remains: as crude as it sounds, whenever anyone makes a pronouncement about how something is ``good'' or ``bad'', always look deeper into their motivations, with money being a very important source of motivation for many, or as they say, ``follow the money trail''. If they are believers, the standard of behaviour required is higher, because they are supposed to know God's views on what counts as moral/ethical behaviour, so they have little excuse to do things that are morally sketchy in the pursuit of money. Non-believers have no excuse either---they may not know of God's views on correct morality, but they should at least have enough critical thinking present to really see what it is that they are doing.

In either case, I am not advocating being the vigilante to demand that these pronouncers follow what one believes in---that is stupid and unlikely to work. But at least when one needs to deal with such people, with a better understanding of their motivation and the inherent ethics/morals, one knows the better way of interacting with them to avoid either promoting that which is morally/ethically questionable, or to just walk away.

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

Monday, March 15, 2021

Ides of March

Immediately after π-day is a great day to make a Shakespearean joke.
CAESAR
The Ides of March are come.
SOOTHSAYER
Ay, Caesar; but not gone.
Indeed, at the time of writing, the Ides of March isn't completely gone either, seeing that [in this time zone], we are still on March 15.

Today was mostly focused on reading the Bible. There is the usual daily devotional readings from Bible in One Year 2020 with Nicky Gumbel (I'm on day 311 of 365; once I'm done with this, I will switch over to Through the Bible in One Year by Dr Alan B. Stringfellow). I finished up the last half of Matthew (in NKJV), and worked my way through Exodus again via listening to the reading of the NKJV.

``But wait,'' you might ask, ``didn't you do that just about two weeks ago already?''. Well, yes, technically I've listened through Exodus already, but ah, it was in ESV, not NKJV. There is ``a difference'' only because of my completion stint: like almost everything I do, I keep track of which books of which Bible version I have been reading. And I am ``only a few books'' from completing NKJV, which means that after I completed all 66 books of NKJV, I can add another entry to my read list.

Part of the reason why I maintain such a tracker is to validate this statement that I keep hearing from many people: ``Oh! I have read the whole Bible more than ten times'' (emphasis mine).

I'm just wondering if it is possible to read ``the whole Bible more than ten times''. Maybe there are some books that keep getting revisited so many times due to their importance in doctrine and/or theology that it feels as though they have read the whole Bible more than ten times.

Since I have doubts, I set up some kind of data collection and see what I get.

Notice that some books have fractional distributions. This came about because while I was on the Bible in One Year 2020 with Nicky Gumbel set of readings, there were times that I spent roughly half the book reading using ESV, while I spent roughly the other half using NKJV. So it felt more accurate to just mark the book's coverage as being shared across versions. This also means that the vertical coverage of versions end up not counting such fractional coverage, which is reasonable I think.

------

It's the end of month two of my sabbatical. Frankly, it doesn't feel like anything other than ``natural''. Is a little strange to just wake up, and plan about three big things to do (each thing covering about 2.5--3.0 hours), do them, and then turn in for the night. No need to scramble and panic due to uncooperative people, mind is significantly less foggy due to the relative freedom to just think about things without having to worry about how to sugar-coat things to make excuses instead of actually finding a solution.

Really seductive to keep this going on for as long as it is possible. Again, I don't have apartment/wife/children/care to ``feed'', so monthly expenses can be kept low enough that whatever I have lying around can be made to stretch for a while.

Mmmm.

Funny enough, I haven't been gaming much for the past month. Yes, I played The Outer Worlds, but after that, I kinda just went back to reading, playing some flute/笛子 here and there, and watching YouTube videos of cool people doing cool stuff that I might like to do, had I have more space to run a physical workshop.

Alas, I am stuck with only a mental/virtual one over my computer, in which case is Eileen-II.

I did think about why people are more drawn to things that involve mechanical engineering (think gears, rolling marbles, big builds and the like), and the answer seemed obvious to me: people are drawn to things that involve mechanical engineering because mechanically engineered things can be filmed well. I mean, yes, people like ElectroBOOM and Mark Rober do some cool electronics projects, but the types of electronic projects that they choose (and the way that they present them) are those that can be filmed easily.

Imagine, if you will, a video showing the type of lab that a computer scientist would work in, messing around and building [say] a toy Huffman encoder, a type of compression software.

Most of the things are going on in the computer scientist's head, and wanting to film that would require the said computer scientist to pull up a white board and start to draw things out using technical jargon just to save four more white boards of pre-cursor information.

And unlike the visceral view of someone getting hurt [in a controlled way] (I'm looking at you, ElectroBOOM), watching a computer scientist doing debugging is super boring since it is a lot of sitting in front of the screen and staring at code, writing random-looking state dumping statements to check for various invariants. Unless said computer scientist monologues the thought processes, which may make for either a short video, or a confusing one due to jargon.

I mean, the closest example of the monologuing is from the LockPickingLawyer, who demonstrates how he picks certain locks by sounding off the steps that he is taking, and verbally confirming what his fingers are feeling on the lock pick ``nothing on one; two feels binding, got a nice click out of him; nothing on three; four feels binding, got a click on that, but there is some counter-rotation, so we'll ease up on that a bit; nothing on five; going back to one...''.

Hmm.

Anyway, that's all I have for today. Again, for those who suddenly appear here and read what I am writing, it is not the case that I write here daily---it is just that I am on a sabbatical for now, and I promised myself that I would write something once a day. Most of the time, it would appear that writing a blog entry in this blog is the thing to write, though sometimes I do write some poems, or even stories.

Here's to another fruitful month in my sabbatical. Till the next update then.

Sunday, March 14, 2021

Happy π-day!

Happy π-day everyone!
I love π-day---it is a day where, no matter where I was working at and who I was working with, I would find the time to scour around for a [large] pie to share them.

I love π-day because it is a great day to share my inner (hahaha... ``inner'') geekiness with those whom I spend a lot of time with. It is one of the few geek-oriented festival days that can be easily understood and associated with (try explaining Star Wars Day without explaining the whole story of the Star Wars canon, or the even weirder Mario Day without explaining who Mario is) since most people will have some kind of passing familiarity with π through their interactions with any level of mathematics.

π is one of the first ``strange'' mathematical constants that many would know of when they were learning about circles and their associated areas and diameters. Some would happily remember it as 227 as the first approximation, before the non-repeating decimals of 3.14... are taught. Bigger nerds will remember the next best approximation as 355113, and then fall in the rabbit hole that is continued fractions.

Those who go further than primary school mathematics will learn of all the different fun of π. Firstly in the form of the change of ``natural'' angle units into radians, where a full revolution is 2π rad or just 2π (radians are so natural that they are technically a dimensionless quantity). Then π will start appearing as seemingly ``magical'' constants when various summations and integrals are taken into account, especially in the world of statistics (normal distribution, anyone?).

Those who aren't that mathematically inclined will remember some nerd whose claim to fame is the dubiously useful ability of reciting the digits of π to a thousand places or more, when about 15 decimal places of it is good enough for Jet Propulsion Laboratories (JPL) in their space applications, and also from the article, 40 decimal places of it are good enough to figure out the circumference of the visible universe with an absolute accuracy equal to the diameter of the hydrogen atom. Nowadays, we often hear of how fast a computer computes a certain [large] number of digits of π as a type of benchmark for the computer's computation speed, or as a way of stress-testing the machine.

There are those who pooh-pooh π-day, claiming that π is a usurper of the True Constant of the Circle that is τ (τ=2π), and that we should be celebrating τ-day (June 28) instead. Personally, I don't really care much about that particular line of thought---everyone has their choices of course. However, since τ-day was created almost in defiance to π-day's success, it has a strong Johnny-come-lately vibe to it that makes it just a tad more contemptible, though I would not stoop to making that an active sabotage.

Anyway, this year's π-day is a quiet one. It falls on a Sunday, and I am not working for anyone at the moment. So I will just enjoy this circle (2 pies, i.e. 2π, get it?) my own today.

Oh, this post is deliberately set to go out on March 14, 15:56hrs (SGT). This corresponds to the mixed base number of 3.141592-ish. The minutes is 56 because there isn't such a thing as 92.653589793 minutes, so I just used that to mimic the percentage of the hour.

Saturday, March 13, 2021

``Almost Surely''

I could be writing a file I/O module to support the ghetto Huffman encoder/decoder I wrote this evening, but I think I will save it for tomorrow instead, where I will then think about how to further enhance my understanding of flute/笛子 harmonics for devising a more systematic set of advanced techniques on the much lower flutes/笛子.

I still haven't played a video game. Strange huh?

Anyway, I want to talk a little bit about a thought I have regarding the resolution of the apparent contradiction of the sovereign nature of God against the free will that is apparently available in that of a human. This concept came to me as I was listening to the message as presented by the pastor at church earlier this evening.

When people think about God's will, two fallacies are committed. The first is that God's will is always about doing things that they (i.e. the person thinking about this) will see immediate benefits to whoever is thinking about God's will. This is often a central point of many refutations against those who ask things like ``if God is all-knowing, then why does He not help me now when I need it `the most' ''. Primarily, God's will isn't about furthering any single human's life in the sense that we understand---it is about furthering His overall plan for humanity to drop their sinful nature and then to glorify Him. Secondarily, it is often a problem of what I call ``temporal scale mismatch''---God is the definition of asymptotic time since He exists outside of time and space as we know it. So the time-horizon for the fulfilment of God's will is at least א‎0, i.e. at least countably infinite (the units do not matter if we are talking about infinities, since a unit is just some finite scalar, which is nothing when compared to infinity), while our puny mortal time-horizon is limited to only about 100 years, if we are lucky. The Bible, the source of God's Word, does not hint on anything remotely relating to specific deadlines in terms of prophecies---all it often does is to set up a series of signs that one needs to observe before the main event. But note that even these set of signs only declare their order [sometimes], and not the duration that spans between the signs.

Given that, it is thus very unlikely for the prophecies made of God to happen in any specific person's life-time, which is alluded to with the metaphor of ``...like a thief in the night...'' (Revelation 16:15, 1 Thessalonians 5:2, and 2 Peter 3:10, to name a few).

That segues into the second fallacy: the assumption that God's will is deterministic. I think that a lot of the big arguments about the collision between God's sovereignity over how the universe operates (or more microcosmicly, how people operate) is the assumption that God's will is like a computer program, a formulaic antecedent→outcome ``machine''. With that fallacious assumption, people get understandably uncomfortable when they try to reason about free will, arguing that if God ``is real'' (conflating existence with determinism), then free will is not possible because God's all-knowing nature would render individual thought and decisions impossible.

I don't think that God's will is deterministic. I don't think that the Bible portrays God's will as being deterministic. Don't get me wrong, God has defined rules that are clearly of the form of antecedent→outcome, but the caveat is that very few such rules have a hard deadline. The rules that have some kind of ``hard'' deadline involve those of rituals in the Old Testament, but those are rather cyclical and are largely done/led by the priests of old. There are, however, very little indication of the time duration between antecedent and outcome, and is exemplified within the Bible itself (see the time duration between when King David committed a sin against God and when he was punished (2 Samuel 11:28, then 2 Samuel 12:18)---we only know the order of the events, but not necessarily specifically when).

God's will, based on my current understanding of the Bible, can be understood as the set of ``almost surely'' temporal events. This has several implications: it means that God's will does not contradict the prophecies by virtue of the fact that the prophecies are the temporal events that will occur ``almost surely'', but the actual path through the temporal event space by the universe is still subjected to the statistical effect of combining the multitude of individual free will. Put in another way, our free will can still allow us to make localised decisions that do not affect the overall thematic movement that is characterised as God's will.

Without going through all these mathematical concepts, that is basically what the pastor said at church today. There is no contradiction because God's view of the universe is unfathomably larger (in both space and time) as compared to us, that the free will that exists within us can still be exercised without necessarily screwing up God's will, i.e. in the end, God is still in control, no matter what we believe we can do.

So if a series of action now leads to, for the sake of argument, World War III, it is not because God has forsaken us, but that World War III (while detrimental to those involved in it) itself is a catalyst for yet another ``almost surely'' prophecy of God's will (communicated or otherwise).

I think perhaps part of the reason why the Bible is written in the way it is (and getting the misinterpretation that it probably does not deserve) comes from the limitation inherent in trying to record and communicate the big concept of God within the very primitive and limited media that is the written word in the Bible.

I wonder if things would have been different had Jesus's first coming, crucifixion, and resurrection appeared at an era where it was possible to capture and retransmit more than mere words, maybe as a podcast. Would that have made it less likely to be misinterpreted?

I suppose that there's no way to know. After all, God sent His Son at the time that He did because He had a reason to do so at the time and manner that He did. Perhaps it was time because the sending of His Son was how He could redeem all of humanity, both the Jews and the Gentiles, and sending His Son at any other time would not have as great an impact as compared to when He did it. But there is no way for any of us puny mortals to know about this.

Friday, March 12, 2021

Removing the Lint

I promise this is the last entry for the day.

I didn't play any games, preferring to watch more ESA 2021 Winter VODs, well specifically the Pokémon X one. I've always enjoyed the Pokémon runs in general---they are long relative to most other games that are speedrun, but a lot of thought goes into the routing of which Pokémon to pick up, what statistics to look out for, what items to get, and movement optimisations. Pokémon speedruns are also where the ``X-items'' (X-ATTACK, X-SPEED, specifically) and ``repel items'' are extensively used. And since the runs are usually at least an hour or two, the couch commentary is usually very chill with lots of funny conversations going on as they explain the mechanics for that particular generation of Pokémon and tease each other. It's a very relaxing watch most of the time.

I did spend some time working through pylint results on the recent Huffman code, the sitemap generator code, and the basic database object for my Bible text mining set up.

I've used linters before, but never one for Python3. Let's just say that I've learnt quite a few things from it that may make me reconsider the style that I have been using for Python3 till thus far.

Anyway, it's shower time, then bed time.

Till the next update.

Nostalgia from School Songs

Okay, a post at stupid o'clock is probably not as fun as it might be. So here's something a little bit more nostalgic.

In Singapore, we have schools, and schools have school songs. These are something akin to the national anthems, except at the scale of the schools instead.

The one thing that we don't usually talk about is how we usually sing them every day at the start of the school day---no pop song even survives this level of intensity. With that, of course, comes some serious nostalgic vibes. To me, this nostalgic feeling is really quite agathokakological (my new favourite word after defenestration)---there is the good of something familiar from a time long ago that was a part of my childhood, but there is also the somewhat bad of the levels of conformity that have been ingrained from a very young age by this specific society that I grew up in.

Anyway, I brought this up because I had been digitally remastering the lead sheets of the school songs, because I can.

First up is from my primary school. For reasons of avoiding getting smacked down with automated copyright take downs, I will refrain from naming the school in writing (it is in the image though, so see for yourself and nod your head quietly).
This is circa 1997. The school song is printed behind the front covers of the old A5-sized ruled writing books that had brown covers with the school crest up front. This one was remastered from one of those old [thin] writing books that I found while I was spring cleaning and preparing my shelf to finally reclaim my own space at home.

This next one was only remastered today.
This is circa 2001, and is from the speech day booklet. The original quality was terrible---it seemed like a facsimile of a facsimile of the original handwritten version that was handed down through the ages. The lyrics were hand-written (not a problem), but the staves had poor definition, with note heads, accidentals, and stems a smeary mess. It is the most sophisticatedly set up lead sheet, since it actually has four-part harmony on it. I could have improved on the remaster by combining rests and maybe reducing the fermata to only appearing once per clef, but it feels a little too much effort. I remember that every time we sang this school song, we always ended up about an octave higher, and that the feel of this piece was less rousing and more like some drunken poet reciting his poem, which is probably less far away from the truth than expected (except maybe for the drunken bit).

The final one is from the time I was in junior college.
This had a full concert band backing it ``live'' on Fridays(?) when we would assemble in the school hall for the morning assembly. I think it actually shares the same song as the affliated secondary school with it. I have had lots of interesting and happy times at my junior college, even volunteering to return for nearly two years after that while I was serving out my national service to train up the existing students for competitive programming at the National Olympiads in Informatics, and even the National Software Competition (NSC) held by Singapore Polytechnic, though the format of that competition now is different from the past (and so I'm not linking to them). The old NSC was more like the ACM ICPC, but geared towards secondary school students instead of undergraduates in that one fielded a three-person team and with one computer to program on using languages of the team's choice. In the old days, it was a choice of [Turbo] C, Microsoft QBasic, or [Turbo] Pascal, but it then evolved to also include Java. The competition was very algorithm-heavy, with speed as a major factor as well.

Anyway, nostalgia is just a rose-tinted window to the past. There are lots of good things there to reminisce fondly, but there are also many, many bad things from the past that I would rather not remember, except for the fact that they too have contributed to the me that is today.

It is said that those who forget history are doomed to repeat it, but I think that it is more of a case of how we, both individually and as groups/mobs, have certain thought patterns that keep recurring in an imperfect manner. Some of these thought patterns are beneficial to us, but there are some that are not, either through context or otherwise. In either case, ``knowing/remembering history'' is less about memorising the details of what had happened, but about being made aware of the thought patterns that one had gone through then, together with their consequences.

That last paragraph is important to myself because as I am starting to re-discover who I am, really, it is important to not fall into the traps that un-mindful thinking would lead me to due to the old thought patterns.

As I might have pointed out before, it is really seductive to just hermit up and ignore the world outside; as weakly introverted-dominant thinker, this temptation is real. But it is not beneficial to future-me---mostly because I am not rich nor powerful enough to continue to stay hidden from the world this way. Despite the treachery of the world, it is impossible to stay completely segregated from it, since I live right smack in the middle of an urban city, and have the ``highest skill levels'' [relatively] in things that require working at so-called higher industries.

Unless of course if I off myself. Then all these things are academic in nature and have no other use. =)

But no, suicide is distinctively off the menu.

I just realised that I have not actually played any video games in a while, having defaulted to doing more reading and pursuing other semi-random geeky interests. Maybe I should rectify that.

Just maybe.

...and Suddenly, Huffman is Basically Ready

Okay okay, I know it's stupid o'clock.

Remember how I said a few hours ago that I was pending the canonical Huffman codes?

Well, I finished writing the generalised canonical Huffman code generator. I actually went one step further and made it bi-directional---I could transform from the generalised canonical Huffman code into the code book that was generated by the normal Huffman encoding algorithm.

I went even further than that though---I added a rudimentary [lazy] encoder that emits output symbols based on an iterable input, and also a rudimentary [lazy] decoder that emits source symbols based on an iterable of coded symbols.

In short, I have a working [abstract] Huffman encoder/decoder. I just need some file I/O related support routines, and some means of generating the first order statistics that the Huffman encoder needs to generatee the relevant encoding.

And it's only nearly 0200hrs. Urgh.

I should go take a shower and turn in for the night.

Till the next update.

Thursday, March 11, 2021

Python Takes the Tedium Out of C

The Thursday came and is just about gone.

I continued reading a little bit more of On Playing the Flute: The Classic of Baroque Music Instruction (2nd Edition), and spent a little time watching various YouTube videos, but I had a concept of something to work on at the back of my mind.

A long time ago (end November 2014), I started on a small side project that was tentatively called filemanip. The side project was supposed to be explorations on various compression techniques, using a ``universal'' wrapper that would provide backward compatibility to any of the previous compression algorithms. Part of the reason for starting on that project was to explore the use of online machine learning techniques to provide better compression.

However, the last commit to that code base was some time in September 2016.

Part of the reason was that I was writing it in C99, and even though I love the C programming language, it was rather... cumbersome for something that was more research-y.

That was why even at the end of the last commit, all I had was run-length encoding with some bitstream I/O using Elias gamma coding for certain unbounded integers. And even then, the RLE was only for the encoding, and not the decoding.

In short, it was a bloody mess.

So I am starting from a different tack. This time, I'm just going to rely on good old Python3 as the main language, and writing the algorithms in some abstract way, before doing bit-stream I/O using the struct module. And to start things rolling, I just completed the code for generalised Huffman coding, or at least, the tree-building part. It runs fast enough, even when we have ridiculous input (265536 counter sizes anyone?). It's currently missing the generation of the canonical Huffman code, as well as other support modules to feed information in and out of the encoder/decoder.

Part of working with struct is a way of getting my hands dirty with the idea of using Python3 as a tool for lower-level programming. Most of the Python3 programming that I have done is very high-level in comparison---think writing RESTful services and/or orchestrating numerical computations. Most of the I/O that I have done are very text-centric---the concept of low-level byte or even bit I/O is something that I am not so familiar with in Python3.

But re-implementing bit I/O when I already have that set up in the C version seems like re-inventing the wheel. Perhaps what might happen is that I do some hybrid thing, where the C parts provide the lowest-level operations, but they call Python3 modules via an embedded Python3 interpreter to run the algorithms with the associated niceties.

Hmmm. That actually sounds fun. But maybe I will look into that if performance becomes more of an issue.

Anyway, that's all I have for today. Tomorrow's going to be a Friday---perhaps I should go cycling; I have not done so in a while thanks to really bad skin at the ankles where my sandal strap rubs on.

If it rains though... then it's back to being at home all over again.

Ah well, till the next update then.

Wednesday, March 10, 2021

6 Pints of Guinness Down the Hatch

Today began strangely.

A pigeon flew at high speed through the apartment from the west-side windows and exited through the east-side windows just as I was sitting down to chug a mug of instant coffee. It was a quick swoop through of less than a second, with a short pause of grabbing a low-hanging horizontal drying rack bar for re-orientation before exiting.

It was some class A flying that was more exhilarating than terrifying. At least the pigeon was observant enough to not ram its head into the glass.

I did more reading for a while before heading out to ``Georges @ TS'', a franchise outlet of the Georges brand for some beer, food, and of course, reading. I could have read OpenStax College: Organisational Behaviour, but I chose to read the dead-tree version of On Playing the Flute: The Classic of Baroque Music Instruction (2nd Edition) by Johann Joachim Quantz instead.

I like that particular bar because it was actually very close to the headquarters of the company that I was working for, and it was the place that I would often head to after work to just unwind with a Guinness (or three), some food, and lots of reading on whatever I had lying around. The location of ``Georges @ TS'' was where the old ``Meats N Malts'' bar was located. The location may be the same, but the vibes were definitely different.

Eventually the owner [of the outlet] and the staff figured me out as a regular and I had been going there at least once a week ever since. That is, until I resigned from my position at the company to go on my sabbatical.

Missing out a little on some Guinness and the ambience, I decided to head out there in the afternoon/evening for old time's sake.

The owner wasn't there, but he did have an assistant manager running the place. I think she learnt about me as a regular before I finally tapped out of the company, and among the first few things that she asked when she saw me earlier today was ``woah, haven't seen you in a while''.

On a tangentially related side track, I was infamous as a regular mostly because I was the only idiotnerd who would actually read at a bar during happy hour. To be fair, I was also drinking like a fish while reading, but it seems that I made my mark partly also because I wasn't one of those folks who would sexually harass the wait staff, as told to me by a wait-staff-turned-friend.

I just raised an eyebrow. So my claim to infamy was being an über-nerd and not being a dick. That's really odd to be remembered for.

Anyway, I spent a nice afternoon with the reading, and based on the old eye-balling, am about halfway through On Playing the Flute: The Classic of Baroque Music Instruction (2nd Edition).

Serendipitously, just as I was about done for the day [with 6 pints of Guinness down with two meals and one snack], a couple of my ex-colleagues happened to pass by the bar, and somehow managed to recognise me. They stopped by to say hi, and asked me if I had a job already, to which I naturally replied ``nope'' in the most cheerful countenance I could have.

I think that's about it for today. Till the next update I suppose.

Tuesday, March 09, 2021

Missing the Pasar Malam

I had a bible study session with my care group today. It was a little detour from the study of Romans, heading back to the Old Testament for some background information for the upcoming Romans 9.

Other than that, it was mostly watching more VODs for ESA 2021 Winter, and some light reading.

I did head out of the apartment for a short walk to get some light snacks (there goes OMAD... but I will catch up on it), and realised that I missed the whole pasar malam concept. It's all that different food that was available---like the kebabs, the Ramly burgers, the Thai iced teas, the Taiwanese sausages, the grilled mushrooms, the ersatz ``bird's nest'' drink.

Then there's all the sundry pop-up shops with some haberdashery stuff, cooking utensils...

I don't know if the pasar malam will ever return. It does feel like the kind of thing that would just quietly die away if there is too much inertia from its return.

This whole idea of having stopping inertia making things harder to return scares me on many levels.

But it is getting late, so I may write more about this some other time instead.

Here's to the pasar malam.

Till the next update.

Monday, March 08, 2021

Giving Thanks

I've just had my dinner, and am just sitting quietly in my room, looking out of the window with OpenStax College: Organisational Behaviour open next to me in SumatraPDF.

I spent the day watching some videos from Linus Tech Tips, a Youtube channel that I have heard of before, but have not really spent any measure of time looking into. Being on a sabbatical afforded me with the time to really pick up some of the videos randomly. The coverage on enterprise-level hardware was definitely very eye-opening, and I think I have learnt quite a few new things of hardware that I would not have easily known otherwise.

Of course, nothing beats studying some basic electronics engineering, and that is on my list of things to look into at some point. For now, the focus is on ``organisational behaviour'', or ``How to be a Manager 101''. I see it less of learning to be a manager and more of reminding myself what the literal textbook definition of a good manager is, as a type of rebellion against the multitude of dysfunctional management-types that I have the [mis-]fortune of having to deal with.

But the purpose of today's entry isn't about criticising what has happened. Today, I want to write about things to give thanks for.

I'm not a very expressive person---I have been told that I am ``very hardcore'', ``very intense'', ``very serious'', and other epithets that depict me more as some kind of unrelenting mechaniod faking to be a human. I don't know nor do I care too much about how true those are, but ah, I'm getting side tracked again. As I was saying, I'm not a very expressive person, and because of that, I am not one who would be ready to give thanks to the good things that happen to me.

I am, however, seemingly masochistically comfortable with acknowledging the bad that happen to me. No, I do not derive pleasure from bad things that happen to me---it's more of a situation where I am unsurprised when bad things happen to me, and not if.

Anyway, I digress once more. Giving thanks, right.

Among the deep muck that I find myself in (mentally), there are many other good things that I should be giving thanks for. Naturally, giving thanks to God is a must, but I don't think that's a big reason why anyone would continue to read this blog of mine. Among other things to give thanks for (remembering that the final attribution is always back to the Lord), are that I actually have the privilege to be in a position where I can actually be on a sabbatical in the middle of a pandemic which is happening in the middle of yet another somewhat catastrophic adjustment of the economy.

The truly poor will never have the means to ``take time to rethink things'' the way I am doing now. Remember that my nett income now is zero---I am literally not doing any paying jobs. I am still alive and somewhat angsty through the twin privilege of having jobs that paid me well enough that I could save up for rainy days (like this one), and leveraging upon the already paid-for living abode that my parents have.

That is why, despite not having a job now, I am not in a state of panic in looking for one and am relatively calm in allowing myself to actually take this sabbatical.

I am also thankful that despite all the health issues that I had/have, I still managed to get my undergraduate and Masters degree from internationally reputable universities. Maybe those degrees will prove to be less useful to me now with the heavy focus on hiring yes-men in Singapore companies, but at least it is a stamp of approval of a [superior] society that I am capable of hard work in a highly technical (yet very general) field that is computer science.

I am also thankful for the musical talents that I was given, together with the teachers and peers who have taught me many things that I needed to know to master music-making on my favoured instrument of the 笛子 and other flutes. I am also thankful for the various opportunities that I was provided to play with amazing people despite being an ungraded, and unlicensed amateur player.

I am thankful too for the companionship of those who had walked with me, either as friends, or as acquaintances. I know that not all of them will walk with me from when we first met till ``forever'', I am still thankful for the short time that we had together. To those who decided that our life paths were not well aligned to keep the friendship alive and thus move on, I am still thankful for choosing to spend their precious time with me during the times that we were still [close] friends. To those who somehow are still walking with me now, I am thankful for their steadfastness and loyalty.

Despite my frustrations at those who have questionable ethics, I am thankful that their actions made observable to me, so that I can, from their negative example, learn how not to be the person that I do not wish to be. And for those who are good role models in their specific contexts, I am thankful for them being there so that I can learn from their positive examples.

I am thankful, in general, for all who have taken up a teaching role in my life thus far, be it explicitly, or implicitly, and am thankful for the lessons that they have taught me, whether they realised it or not. In many ways, I cannot become who I am if not for all the people whom I have interacted with both directly and indirectly.

I am also thankful for all the lovely animals who had befriended me; in many ways, I think that they could sense my true nature better than anyone else can. Despite meeting them only very shortly, they have always extended a paw to me in welcome, even those whom their very owners knew not to be of the gregarious sort.

I think that's all I would like to write for today. It's time for yet another shower, and then probably more reading. Till the next update.

Sunday, March 07, 2021

Eliana is Anomalously Designed?

Hmm. I think I have an anomalously designed alto flute.

Here's the context. I was checking out entries in the Flute Forum in Facebook when I stumbled upon this picture post of the Muramatsu alto flute as put up by a member. It was a pretty picture of the Muramatsu alto flute, and I was enjoying it very much when I noticed something strange about this particular picture. I will replicate it here for ease of reference:
Look at the upper right corner of the picture of the alto flute---this is where the upper part of the flute (i.e. the part of the flute body closest to the head joint) is located.

There are keys attached to levers that actuate the covers that cover the tone holes for the entire left hand there.

On Eliana (my alto flute), I instead have this particular set up:
Don't mind the yellowish colour---it is reflective of the wall colours than any type of tarnish. Look carefully at the upper right corner of the picture as well---notice that Eliana does not have those levers that I saw. In fact, the keys are what I would call ``direct driven'', in that my fingers immediately actuate the covers that cover the various tone holes for the left hand.

I got confused. Was the Muramatsu alto flute special or was Eliana weird?

I went to the Muramatsu alto flute page, and looked up their alto flute schematic. I will replicate it here for ease of reference:
The picture is correct; the Muramatsu alto flute does have levers in the left hand that actuate the tone hole covers.

What about alto flutes by other makers then?

A quick check with Altus' alto flutes showed the same. I replicate the image here for ease of reference:
Yep, levers in the left hand.

Another quick check with Kotato's and Fukushima's alto flutes showed the same too. I replicate a rotated version of one of alto flutes here
Yes, levers in the left hand.

Dizhao's alto flutes? Replicating the rotated and cropped image here for ease of reference:
Yes, levers in the left hand also.

I was getting confused. The last major flute maker that I knew that made alto flutes was Eva Kingma. This is where I was a little amused. Looking at the details of the left hand, we see the levers. I replicate the image here for ease of reference:
But if we scroll down the main alto flutes page to the section on ``open hole'' version of the alto flute, we find that the left hand are also ``direct drive'' on the key covers. I replicate that image here for ease of reference:
This sort of makes sense because the idea of the ``open hole'' alto flute is to allow better venting like the open-hole versions of the regular concert flute.

There was one more thing I had to check, and it was The Flute and Flute-Playing by Theobald Boehm, father of the modern concert flute design. In it, he references the ``bass flute in G'', which is what we call in modern times as the ``alto flute''. In it, on p127, he shows his mechanism schematic for the left hand (or upper parts of the flute).
From this, it is clear that everyone who was making alto flutes were basically following this idea of using levers.

I mean, even the Wikipedia entry's picture of the Yamaha alto flute shows the same left levers. I replicate the image here for reference:
It is therefore rather clear that Eliana's design is indeed anomalous.

Eliana's design seems to follow closer to that of an upsized concert flute than one that is based off of Boehm's design, possibly as a way of avoiding the need to fabricate longer and more complex parts.

That said, she still plays like a charm, and I was glad that I had enough knowledge to figure out what was going on. I suppose the lever mechanism helps reduce the arm stretch that might be needed for the left hand, which can help in the support of the rather long instrument, but for me, there really isn't that much of a difference. It is possible that I'm just used to the correct support from playing the 倍大 D 笛子, which is roughly of the same tuning as that of the alto flute.

In either case, that is all for today, I suppose; I'm kinda sorry that I nerded out again. Till the next update.