This Week I Learned - 2017 Week 47

Last week post or random stuff from the archive.

Certain kind of food and my body does not like each other. Age related issue or just simple bad food? On the bright side, got the well deserved rest. More travelling. I can check off one item in my bucket list. Write it down and make it happen.

Never let an inexperience personnel to change your guitar strings. Sloppy works causing the guitar can't stay in tune. How to get the new guitar string to stay in tune then? Just two simple ways. Stretch all guitar strings either vertically (YouTube) or horizontally (YouTube). If this still fail, then you have intonation issue, which is quite tricky to fix or some other problems.

Numerous people have recommend Nujabes, some claimed he is the father of chillhop. Definitely worth adding this genre to your daily playlist.

The fake Facebook profile industry. (via HN). Even in the early days of IRC chat. Social engineering at its best.

What are some interesting papers in CS for a beginner? So many papers to read yet so little time.

Probably the biggest unnoticed item in the cloud right now. AWS have shifted the hypervisor used for the AWS cloud platform, from Xen to KVM. While is may seems like a blow to Xen but there is another new virtualization solution based on Xen called LightVM.

Example of implementing a web development stack based on microservices. (via HN) Overly and unnecessary complex? Perhaps but it serves as a good example of what can be done but not really recommended.

Don't have proper exception handling in Perl? Use eval() then. I finally grok this `eval()` thing in Perl. Example as shown below.
eval {
     # code that might throw exception
     1;  # always return true to indicate success
}
or do {
    # this block executes if eval did not return true (bacuse of an exception)

    # save the exception and use 'Unknown failure' if the content of $@ was already
    # removed
    my $error = $@ || 'Unknown failure';

    # report the exception and do something about it
};

"Just use jquery. In a few years jquery will be rediscovered and praised all over again." While I don't think this is possible but it's funny as hell.

Fricking annoying preview mode in Visual Studio Code. Disable it.

React control and uncontrolled form inputs. Good for beginner to start with React.

That really says a lots about Silicon Valley, especially the part on a peculiar form of McCarthyism.

This Week I Learned - 2017 Week 46

Last week post or something from the archive. For something interesting related to a week, visualize your life in week. How many weeks do you still left?

So much things I've learned and observed this week. Some were the same old same old, others were quite eye opening instead, if you pay close attention.

Encountered this message, "expected, at character offset 2 (before "(end of string)")", when processing the JSON file during encoding. It turned out the root cause is how we use the read_file subroutine in File::Slurp module. Passing the right parameter, you can have multiple ways to either read the whole file or multiple lines. There even a research done on finding the optimized way to do do.

You’re working in the wrong place. (if you’re working in an open office)". When most of the employee are wearing headphones, that sufficiently shows that open floor plan have failed to reach its original intention, which to promote so-called information sharing and collaboration. Why open office don't work? Have you ever been to a library to study? If everyone keeps talking or making noise, do you think you can concentrate on your stuff?

The Amazing $1 Microcontroller. (via HN) The author should have written a book instead of a very lengthy blog post. I agree with the author, it's an exciting time for picking up electronic.

Looping through an array in JavaScript. A simple programming language construct, yet so many ways and workarounds. Add to that, you have JQuery way (.each()) of looping through DOM elements with its own quirk. Not to mention the let vs. var. No wonder so many JavaScript transpilers exists. And I was thinking PHP or Perl was bad, JavaScript is even more mind boggling. Forget about JavaScript, just stick to TypeScript which is gaining momentum these days.

The LEBRON stack. Anyone still remember the MEAN stack? I believe only Node.js survived the hype so far. Something similar, do you know Slack is using PHP for its server-side application logic?

Getting things done? (via HN) There are just two steps. However, till today, I'm still struggle with the execution of the system. Refine and more refine.

1/ Start something simple, the first step.
2/ You can stop if you want to.

This Week I Learned - 2017 Week 45

Last week post or something from the archive.

So many things to learn and yet, so little time. But once you've understand it, most of these stuff are rather quite straightforward.

The local startup scene have moved from the early days of cloning social network and shopping to the current day of big data, machine learning, artificial intelligent, and blockchain. History will repeat itself again as illustrated in Gartner Hype Cycle. The hype cycle will eventually die down and new shinny things will emerge again. Does the local startups works? Partly yes and no. Only time will tell.

SSDD. Probably the best term I can think of describing the web stack right now, especially on the front end part. Endless things "reinvented" or rediscovered again and again and again. One thing for sure, there is a clear distinctive separation between the Front End and the Back End development.

NBA Go, the finest NBA score from command line. Sadly, it still doesn't display well under different terminals and the dependency on Node.js. Is Node.js is the new PHP? Is Node.js going to dethrone PHP? Yes, my survey and gut feeling indicates so.

Agile Product Ownership in a Nutshell. It's going to be a long adjustment and readjustment process to get it done, if possible, right. Managing requirements and stakeholders expectations outweighs the implementation. Furthermore, it's even more challenging for flat organization with different geographical offices and working cultures. Interesting development indeed and can't wait for the growth and expansion.

MSP430FR2433. Another new board from TI.

This Week I Learned - 2017 Week 44

Last week post or the past stuff.

SMS bulk notification is a sunset industry right now in MY. I doubt people are still using SMS for communication except to receive notification from the banks, telcos, or something else. Companies or these value-added service providers are struggling to sustain their business and finding ways to pivot their core business to something else. However, I still fail to see how they going to evolve from there.

I've been travelling to a certain part of KL these days and every time I'm around that area, these service providers will spam me with SMS message relating to the services in that area. Suspected my telco provider have been sharing my preferences and location to these third party value-added service providers. Not to mention recent mobile data leaked.

Diet change seems to work somehow. Will continue with it and keep monitoring the progress.

Recent events, unfortunately, reinforced my prejudice regarding certain beliefs. The research summary shown below (emphasis added) best described it. Lesson learned. Move on.
"People are quick to change their moral values depending on which rule means more cash for them instead of others, a study shows. The researchers conclude that the "Pursuit of self-interest is tempered by the constraints of coordination. People seek not only to benefit themselves but also to persuade other people that they are morally right in doing so."
The "Rules' of Writing. (via HN) Definitely agree with the minimize the usage of adjectives and adverbs or better, kill it. Overuse is a sign of lazy writing, for examples:
"The man moved slowly."

Where you can rewrite using more vivid and stronger verbs.
"The man sneaked."
"The man strolled."
"The man limped."

Mastery is the side effect of deliberate and constant practices. You may or may not achieve it but nevertheless, if you enjoy doing it, then just continue as it. You can always start with technical writing.

What Python stack should you use? AWS Lambda, Python, AWS Cognito, Postgres and ReactJS. Interesting conclusion that goes against the bare-bone frameworks like Flask or Bottle.

Nature is both brutal and weird. What will happen when these eggs grow into mature adult bettta fish? (emphasis added by me)
"During and after spawning, the male uses his mouth to retrieve sinking eggs and deposit them in the bubble nest (during mating the female sometimes assists her partner, but more often she simply devours all the eggs she manages to catch). Once the female has released all of her eggs, she is chased away from the male's territory, as she will likely eat the eggs. If she is not removed from the tank then she will most likely be killed by the male."