DSC S4E3

A solid famX1!

I want to comment on the improvement in production of discovery, but I suppose it is to be expected by season 4. The self-intertwining epic mythologic tale of the good versus the universe unravels itself in front of us. It might be my own stage of life but these episodes of endings of lives, endings of a whole planet, this story resonates with me. It could also just be that sound effects, editing and music has gotten a whole lot better, maybe by 900-some years, idk, the show is quite cinematic now.

The movements of Star Treks:

  • TOS: getting there and back alive, the righteous way, with friends.
  • TNG: getting there, making friends and making it a lot better for everyone
  • DS9: getting there and staying there
  • VOY: getting back alive
  • ENT: getting somewhere in one piece
  • DSC: break things, pick up pieces, die or not, and put everything back together with ever present anticipation of total loss.
  • PIC: …
  • PRD: wohooo!

The reference to ending of paths seems to have very strong roots in human mythologies. I’m not sure where these writers get their inspirations but the teachings sound quite vogue “… one must be radically candor with one’s self at the end of a path… “ and “…we’re just play the instruments, let’s hope director knows the orchestra…” I can definitely see a young child picking up on this and repeatedly thinking in all kinds of situations as I did with teachings like “the good of many outweigh the good of one,” and many sentiments like “I’m a doctor, not a…”, “you have always been and shall always remain my friends…”, “I want to be more human”, “…wanting is not as good as having”, …

The show is probably not for me. All but one Asian actors have character that remain 900 years later, and he is still a lieutenant… Capitan Lorca claims to have yellow-face ancestry related to fortune cookies, but he was as crooked as the mirror universe. Anyways, no biggie, I still learned a lot watching Trek even with few important Asian crew. The show still has lasting cultural and creative value not caring too much about Asians… I mean I don’t want to repeat the comment but they are about 35% of current human population right now. There must be a story some where that kills them off to <10% of Starfleet human population, a devastating decimation that will last into the next millennium.

So, overall withh huh FAMx1, I give

👍🏻👍🏻👍🏻

…with…

😣

It happened again

Fell asleep during takeoff enroute home from Honolulu. Fussy child also mysteriously falls Al sleep for the entire trip. I wonder if there are any side effects to this “sleep machine” they like to use on airplanes ?

Japanese wave painting

Visiting Honolulu for vacation, I chanced upon a view of the sun shinning on Pacific ocean waves. I see a certain pattern of light that shines only upon top part of waves. I think i finally understand what these japanese artists are trying to depict. Japanese painting of waves have a portion of white on top of the waves. Previously I had imagined that they were trying to draw foam produced by crashing waves. But now I see, the white parts are actually golden or silver colored reflection of the bright sun. They’re so bright that white probably is the closest color we can use to draw them in contrast to parts of the waves that do not receive the same amount of sun.

Amazon accepts only negative reviews

I have, around thanksgiving of 2021, posted a slew of very positive reviews on Amazon products. These products were all non-American brand products, obviously made in China or India. My review pointed out their many many faults, but also included positive aspects and 3 or 4 stars.

In one particular instance, I purchased a flugelhorn (that’s just German for the trumpet). It was clearly made in India based on seller name and many many comments complaining about its country of origin. This item’s name starts with “New…”, but it’s price is $160ish which is about half the price of the next flugelhorn more expensive than it. The next horn with higher price is plastic.

I happily ordered one, and then 3 more, after discovering the first “New..” horn stinks of saliva. The next 3 were also not new and all stinks. I can see white residue that could be mold or rust or mildew in the bell of the horn. But the horn makes a nice sound. So I kept the best looking one.

Needless to say, I had to do a lot of work to get it playable. First a warm soapy bath. Oil and grease everything. Buy a new mouthpiece since the one it came with is way too small. Then I appoint played on it for an hour or two before discovering that I couldn’t empty spit out of it. These horns make a crackling sound when there’s liquid inside. The water key spit outlets all look right, except after careful inspection I finally understand why these horns were all returned with saliva inside: their foremost water key closest to the bell have the external anatomies of a water key spit drain, but under the cap there is no hole.

That one is easy to fix, an eighth inch metal drill from the Home Depot did the trick. And honestly, I never realized drilling metal, even into the thin wall of a brass pipe, is much harder than drilling wood. It took a solid minute to make it through the wall of the tubing. I almost wonder if this horn is made of steel instead of brass. Because I’ve seen some light bumps dent brass instruments, I can’t imagine them being this hard. Anyways, it drains now. Another two baths, vinegar followed by baking soda, to remove white chunky mildew and de-acidify the inside of the horn. and the horn now plays and smells great.

After another week of play, I discover that the leadpipe leaks air. This is an unexpected bug for me as the trumpet I played in my pubescent years did not have a tuning leadpipe. This is a piece of popping that plugs into the horn before the mouthpiece. It is adjustable and you can pull it out for a longer horn. Anyways, this is a hard problem because the water keys also leaked air. I had to re-cork them by gluing two 4mm cork pads together to increase the spring tension. But after plugging those three hole, it still took too much air to play. Finally, I took my saliva soaked fingers and placed it next to the leadpipe and felt a leak. This particular problem was fixed by gingerly wrapping. The unthreaded sliding tuning pipe with plumbers thread seal tape, again from Home Depot. (This is the 2” white tape you put around a pipe before screwing on the bolt-end. The process can be aided by inserting a toothpick between the screw holders to temporarily widen the outer tubing) Alas, the horn plays again, and I can actually hold a high-C for more than a few seconds. But sadly the pipe seal tape has a slightly dampening effects that makes sounding out notes slightly harder for me.) anyways, it works now…

I write my experience on Amazon with a 4 star, because I feel the horn actually does play fine. I don’t care if it was Indian made or not. (There are, btw, Chinese made horns costing north of >$600. These obviously benefit from western productization and QA management thinking. Everything is beautifully packaged, completely clean, correctly sized mouthpiece, well made and easy to play in every sense. The improvement in experience from <$200 to >$600 makes me want to try all those European horns at >$3k price, but, alas, I cannot afford that experimentation.) Amazon flatly rejected the review and the 4-star review including some short instructions on how to make the cheaper horn work completely.

Later I repost a all negative review with 1 star and it is quickly accepted.

A few other flugelhorn horn replaced purchases like the mouthpiece all suffered similar fate. Positive reviews from me are invariably rejected due to non-compliance with posting guidelines. Completely negative reviews are accepted quickly with gratitude.

I know Amazon have been banishing many Chinese companies from their market place. But this kind of editorial intervention is very manipulative. I should be permitted to be encouraging to the seller if I want to be. By providing information I give value to the company by improving other customers shopping experience. I mean I review my posts very carefully, they probably have better spelling and grammar than this blog.

I guess this is partially to say that I feel I owe Amazon’s services a statement of gratitude. All this free next day shipping and free returns. I am pampered beyond my wildest dreams before Amazon. I mean, I believe a lot of human culture around frugality and acceptance of the present (you get what you get and you don’t complain) exists because we didn’t have Amazon all those millennia. We couldn’t try pants and socks and return without causing grotesque disruption to the sellers, makers and marketers of products. We had to build curbs to our enthusiastic desires in order for our society to be viable. No, Amazon is not evil and it is not making people evil by offending some common traditional personal ethical prescriptions. For these I am very grateful.

But, we must now contend with modern ethical dilemmas of fairness with liberty. It would be unethical for Amazon to deny positive reviews based on country of product origin. It would also be unfair to me if it restricts my reviews in a specific way to reduce the influence of opinions of people based on my protected attributes. It is also kind of disappointing for amazon to claim that it made the decision “after very careful review” without being able to expend just slightly more effort (either human or AI based) to justify the decisions to me. We can choose to prioritize this over flying to Moon and Mars, imho.

Get floored!

This another episode of friends don’t let friends commit bugs into main. I was reading a previous post here on the FAM blog. It gave me a flash back of the one time when I discovered hash tables.

…to bucket a String, s, say in the jvm, you might like writing “s.hashCode() % bucketCount”

Except that expression will produce, as you will quickly discover if you had the whole hash table, negative numbers half of the time for strings with just a few characters.

The ‘%’ operator returns a remainder that has the same sign as the dividend of the division in question, and in this case the dividend is the hash code which is negative sometime due to overflow of 32-but integer range. One replacement operator you probably can use is “math.floorMod(s.hashCode(), bucketCount)”. The floor modulo operator produces remainders that always has same sign as the divisor, in this case the bucket count. This behavior is well documented since C and backwards, so hopefully you will find this information corroborated by many webpages.

Python, (and other scripting languages like Perl and Ruby) on the other hand, has the opposite convention. ‘%’ operator is C/Java’s floorMod. In the python ecosystem, ‘numpy.mod’, ‘tf.math.mod’ and ‘torch.remainder’ all correspond to floor division and return remainder having same sign as the devisor. Confusingly, to get C/Java ‘%’ method in python, you have to call something these all call ‘fmod’.

Some websites suggest masking the number to take the lower bits then %, which may be slightly different from computing the hash in long integers followed by %. Another (stack) overflow post adds the module calculation inside the String.hashCode implementation so that only remainders accumulate, thus avoiding the negativity entirely.

In any case, if you had to write this, mostly likely the slight imbalance between positive and negative numbers would not bother you and floorMod is easiest method to call on any generic “hashCode()” implementation.

Friends don’t let friends drink and drive.

Friends don’t let friends err and merge.

The sad thing about sad things

A few years ago, I stopped being a W4 employee. I had a midlife crisis that I feel too much of me do not want to work in this economy and politics. (That was long before this post-Covid anti-Asian movement) I am sad about it, as we Chinese-Pennsylvanian Americans are steeped, doubly , in work ethics indoctrination. It is the modus operandi for generations and it is for me.

But the opposition in my mind was great, and for many varieties of reasons, and so I stopped working.

Recently, President Biden announced a second round of raising benefits for seniors. The first round already hit my parents monthly deposits. This is some serious money movement that people can see and feel. I feel it because my parents spends more on me, yes even when I’m fast on my way to my semi-centennial.

Today, I feel an ever so slight bump within, like that earthquake I felt sitting on the toilet, it shook me in a weird way: a sudden thought of, “wait, I want to do that.” stirs. I don’t resent taxes as much as before. (Don’t worry, I’m sure that will recover though) It feels good that this happened. It feels good that a suffering populous is treated with dignity and deserved priority.

The sad thing about this is that I can definitely see my own and many other peoples selfishness eventually push us all to vote against the next president who want to continue these elderly benefits.

Sad that it is good but will surely be both hated and terminated. Even sadder, is the fact that I actually like these increase in elderly benefit. Am I so old? Or am I dreading poverty in old age? Are my happiness mere faint echos of those of my parents? Why do I like it? Is it because I’m Chinese ?

So sad !

And I don’t even know why.

When you can’t beat them

First instincts are, as Jackie Chen suggests in one movie of his, “run!”

But there are other options. The less manly men might be able to conjure the idea to “get help” before the rumble.

Also, my contemporaries may know of many forms of bribery or coercion available to them that work great without the actual physical act of conflict and infliction. (Most prominently things like dozing, hacking,… and other forms of intimidation)

And if all that fails, maybe then join them, huh?

Or, I guess the thing that can happen is one can just take a beating. But we probably want to avoid that if possible.

What? But why? Wow! Wow! Wowah!!!!

Interesting news late Q3 2021, the US federal just reached some kind of agreement with a Chinese company named Huawei to release her by requesting extradition from Canada.

It’s kind of strange to think the whole thing through. On the one hand, she was captured due to her involvement in a company that allegedly sells equipment to Iranian government. Iran was then a terrorizing enemy of USA and… presumably stopping Huawei from selling equipment to Iran because that equipment when used in Iran could cause USA harm.

However, at the same time, under the same former president Trump, the US lead several countries such as Canada, France and England to officially ban purchase of Huawei equipment for use in their countries. Because presumably the equipment is substandard for some reason.

The details of these political decisions are not clear. From a technical perspective, it might be really interesting to know exactly what spying capabilities Huawei equipment has. On the other hand, it would also be very interesting to find out why that same disabling capabilities are not useful to us when sold to Iran.

The US being unable to deal with Huawei network equipment might be a technical failing as well. One wonders why we couldn’t develop mitigating systems to counter sabotage the alleged spying capabilities? I may be very naive, but honestly, didn’t the US invent wire tapping? I mean we invented the wires and telephones to start with… and who invented the internet but the American military? why is it that we can’t deal with a few piece of internet equipment ?

Overall, another aspect is that the lack of serious competition will also slow down the democratization of internet services. In all honesty, a country like America, shouldn’t we have had a mini-musk or a mini-jobs that comes to the foreground to kick that PRCPLC company’s ass? It can even be lead by a former soldier in the Is army! Or maybe the much lauded marine can have an ex that creates a company and fights back, the proper capitalistic way.

Because for gosh sakes I sure can appreciate cheaper, or at least slower appreciating, cellphone and internet prices, equipment, subscription and all. (and I will quickly hope superfluously that it is a result of free market competition)

The fact that American intelligence can’t get basic information from Chinese counterparts about Iran, once their equipment is deployed, is quite troubling.

I would have thunken that the two country were on better terms than this. Bombs exploding on home soil is to be prevented, and our super powers should absolutely be aligned on this matter. If China knew Iran has a very successful plan to sail a ship into the Statue of Liberty, wouldn’t they tell us? It sure doesn’t hurt them any, but would save innocent peoples’ lives—obviously many of those tourist had been mostly Chinese nationals anyways. And if US has eyes o a Uighur faction setting up a bit rocket to blow up Ürümqi wouldn’t we tell somebody so all those innocent people, and many tourists of American origin, don’t have to die?

Perhaps with a new era being ushered in by this radical president Biden, the world can move to a significantly more peaceful and happy time for all. Ending the war in Afghanistan, ending this stupid and self-contradicting extradition of Huawei, … man, this real world is more exciting than watching all the Star Trek series coming out on NBC! More exciting than Dune and Foundation debuting in the same week! And definitely much more exciting than billionaires flying themselves and friends to “the space.”

Real world radical changes are afoot!

Let’s see what happens next!

A Little Vegan Recipe

Cauliflower cut into rounds of about a cubic inch in size and shape. Scallion whites cut to inch lengths, greens kept whole. Sapphire grapes washed and separated from vine. Heat a thick pan with scallion whites, grapes and oil until oil is popping hot. Add generous amount of oregano, let grill for 30 seconds or just before anything is burnt which ever comes first. Dump cauliflower in to the pan. Let it fry for a bit before stirring. Periodically stir in more salt, oregano, dill, oil, black pepper, and splashes of water for up to 30 minutes. Each time ingredient is added, turn on high heat while storing, then low to medium heat to cook. The scallion greens may be mixed in to add to the taste during cooking and removed before serving.

Serve steaming hot over steamed rice or bread.

The grape and spices all add depth to the flavor of cauliflower. An added benefit is that there is a beautiful purple color to the dish after cooking the ingredients through.

Ulteriorly, this is a good way to use that expensive organic grape you bought from farmer’s market but left out of the fridge overnight… maybe some fruit flies have developed, but it all adds to the taste and color once fully cooked through. It may work differently if you have all fresh ingredients, but what we had was dried oregano and dill.

The Rule of 240

No! It isn’t where a Chinese chef requires no more than 239 grains of sesame to be used on a 烧饼(barrel toasted pancake) lest one achieves 240 and expel excessive wind.

Instead of an undirected 20% project, one may plan for each employees to participate on two projects investing 40% of their effort into each. The extra 20% is headroom for coffee/tea drinking, context switching, teaming and other human overheads. (Such as your 20% project)

Obvious tunable parameters include whether the tasks are performed exclusively or simultaneously with prioritization at any moment. The interval of processing—beginners should start with 1 day for each task switching 4 times a week for a normal work week. Staggering project phase is usually a big plus. The usual management tools like OKR’s, setting deadlines and priorities, having daily blocker analysis, and standing up once in a while all apply.

Effectively, a lot of people already do this maybe with even more tasks at different stages of completion out of self-optimization or joy. It has similar effect as computer multitasking. When one of the tasks becomes blocked, often due to either externalities, monotony or fatigue, a different task can be worked on using available resources. It is reported by researchers that human have yet to developed widely deployable means of correctly and efficiently multitasking with one brain. But for most people, switching between just two tasks balancing cognitive and physical load is doable.

In the post-COVID work from home era, we lose some valuable commute time where our mind and body recover its depletions, this 240 rule can produce superior personal aggregate performance over extended period of time.

Let’s get 240!