Showing posts with label productivity. Show all posts
Showing posts with label productivity. Show all posts

This Week I Learned 2019 - Week 09

Previous week post or something from the past.

What else I've learned this week not within this post? Going through the seventh week of ornamental fish culture on Phytoplankton, feeding schedule, Infosuria and Rotifier. The review paper of this week is on using fruit fly maggots as an alternative food source for breeding Betta splendens. We also looked into two Perl modules, Carp and Carp::Always.

What is a FrakenPad? (via HN) The nicest thing about Thinkpad lappy is modularity where each computer components are interchangeable in some way of another with minor hack. Till today, many still preferred the classic ideal keyboard layout instead of the island-style keyboard layout even though the focus group study proved the later style is preferable. No doubt, based on the study, tactile and audio feedback is better with island-style, but the new keyboard layout is way better with classic-style. And yet, till today, it still puzzled me why can't Lenovo create a T25 with good screen and hardware specification which leads to the creation of FrakenPad or mods from China? Perhaps it's manufacturing processes or costs? Or maybe it's because of Apple?

Should you ditch your phone? (via HN) No. And you should focus on features that enrich your life instead of making you additive. There are many ways to reduce the addiction, for example, switch your phone screen to grayscale. By doing so, you still retain those smart phone features (e.g. Maps) that you need and at the same time, reduce your phone usage. For those who prefer more constraints but still retain Internet connectivity, the newly released Nokia 210 feature phone is a good choice. Instead of creating intervention on your device, perhaps we should create our own self-constraints, discipline.

为什么传统武术这么弱? 看了《倭寇的踪迹》,现实的武术其实一点都不浪漫,脱离实战。整套电影颠倒了传统武侠片的浪漫情怀,更倾向冷幽默及反思的电影。


What is a Magpie developer? Do you love latest greatest shinny new tech? If yes, then high chances that you're a Magpie developer. And contrary to the article, there is nothing wrong being one. The world is moving fast and attention span is short and expensive. One thing about tech after all these Interweb years, we kept re-discover and re-label existing tech with fancy new names.

How hard is to line breeding your Betta sp.? Hard, especially on certain species. Furthermore, you must obtain good broodstock with quality traits and ensuring the at least four generations. The next challenge we normally faced is the broodstock won't breed, even though both fishes were healthy and well-conditioned. The obtain pure quality traits, you must ensure the broodstock still alive during these periods (2 till 3 years) to breed again with the next generation fishes.

What is something no one really tells you about getting older? Focus right, eat correctly, and sleep well.

This Week I Learned 2019 - Week 06

Last week post or you can going through some earlier stuff.

Happy new year again or rather, happy Chinese New Year. The weather was blazing hot compare to all the previous year even though there is no fire haze from our neighbouring country.

What else I've learned this week not within this post? Going through the sixth week of ornamental fish culture on fish breeding techniques such as selective breeding and biotechnology. Since this is a short lecture notes, I've decided to continue with week 7 study notes which discuss on seed production on factors affecting larvae rearing and feeding (species and water medium). The review paper of this week is the masculinization of the ornamental Siamese fighting fish with oral hormonal administration. SMS::ClickSend is the Perl module of the week to be reviewed.

Is Nokia 6303c still available these days? The most memorable and funny post I've read so far this year. I'm not sure under what context the poster needs to use a durable normal dump phone, but moving from Nokia 6303c, Nokia 216, Nokia 150, and lastly CAT B30 His perseverance is commendable and definitely should be the coolest post (not coolest use) of Perl usage writeup. I miss the old monochrome dumb or feature phone which is durable, have long lasting battery, and purposeful usages (call, text, and defend). Does affordable dumb phones still exists (as in 2019) these days? Yes, there are quite a lot and the one that caught my attention are from Alcaltel model 10.54, 20.08, 20.51, 10.50. Why dump phone still have a market these days? Four words. Africa and senior citizen.

为何程序员找工作要有个黑名单?这是Github每星期的邮件里推荐的一个流行的Repo。看见这个Repo竟然有十多千个Star,没想到还蛮多大陆的同胞在使用Github。

What are the differences among the subroutines in Carp module? Carp is a Perl module that provides alternative subtitutions to to `warn` and `die` in Perl? The screenshot below summarizes it the best. If you want the similar backtrace feature but don't or can't change your Perl code, there is always a Carp::Always module that will patch the `warn` and `die` subroutine.


What does a long time developer want? "Build more long lasting artifacts." How? Contribute more to FOSS then, is as simple as that.

Is Makefile redundant? In some context, yes. Because if you've a shell available, any shell scripts should be sufficient enough to emulate a Makefile as shown below.
#!/bin/sh
    set -e

    case "$1" in
        up)
            docker-compose up -d
            ;;

        build)
            docker-compose rm -vsf
            docker-compose down -v --remove-orphans
            docker-compose build
            docker-compose up -d
            ;;
        *)
            echo "unknown verb: $1"
            ;;
    esac

Write and publish a book in ten minutes per day? (via HN) Is this doable? Yes, you can just sit there and stare at it for ten minutes. However, the ten minutes is just the appetizer, to get your started. Maybe you can be in the zone or maybe not but you did something, even through you're just sitting there. The thing is you must do it every day, and every day it get easier. Remember the Jogging Baboon?

However, your brain still works on the task subconsciously even after the time frame. If you're not writing a book, what else can you do in ten minutes per day then? Doubt so as you brain still process the task the whole day even after the timed duration. Hence, the ten minutes is just to bootstrap the task and you've spend a few hours later doing it subconsciously.

There is another important lesson here. When to stop. If you don't have any juice left, stop. Or if you doing very well like in the zone, stop so you can look forward to continue tomorrow.

What else can you do during the ten minutes duration? There are plenty of things such as writing a dairy journals (via Lobsters), pick up any new habits, 5BX exercise plan, core wars kata.

This Week I Learned 2019 - Week 04

Last week post or something else from the past.

What else I've learned this week not within this post? Going through the fourth week of ornamental fish culture on nutrition for ornamental fishes on live and formulated feeds. Different nutrients of protein and amino acids; lipids and fatty acidscarbohydrates and minerals; and vitamins and carotenoids were discussed. Meanwhile, this week paper for literature review looked into the optimal crude protein level for feeding juvenile Betta fish. The week was concluded with a review of Reply module, a REPL tool for Perl.

Is what we read on Internet written by insane people? (via HN) Discussions in any communities either physical or virtual are driven by selected outspoken few, off course, with their own agendas, either paid or not.

Stuck and don't know what to do next? Write things down (via HN), question until you reach an obvious answer on what to do next. Writing as well as programing is a creative endeavour, occasionally, you will get stuck, be it a writer block or code block. Don't feels like writing, talk to your rubber duck aka Rubber Duck method. Explain the problem to yourself, part by part or line by line.

Relatedly, how do you organize/track your personal goals? Always analogue way, just pen and paper. Nothing can beat the old fashioned writing it down and make it happen. Subconsciously our mind will keep us in check of what we've written down.

Is modern PHP (via HN) still relevant for web development? Yes, and very much very relevant. Yes, it's not as fancy as other programming language, but it have came a long way. Laravel (with all the side projects), even though will all the magics behind it, is as good or surpass Ruby on Rails or Django. Needs asynchronous programming framework or coroutine like Node.js or Golang? Well, you can check out Swoole. Furthermore, the language is simple enough for beginner to pick up and finding or train talents using PHP is way more easier within the local MY tech scene. But off course, some people don't use it because PHP is not the shinny new toy anymore, lacking the sexy factor. Nevertheless, for a simple and pragmatic web development stack, nothing so far can beat PHP. If you're venturing into PHP, read through both the right way and the wrong way.

How do you find text in database with HeidiSQL? "Just press Ctrl+Shift+F to call the "table tools" dialog."

Should you replace Facebook with email? (via HN) Yes, if you're going old school. Nevertheless, one thing I agree with with the writer, emailing leads to more intimate and better conversations.

How to teach Git? (via HN) The best written explanation with good visualization of any Git tutorial I've read so far.

This Week I Learned 2019 - Week 03

Last week post or something else instead.

What else I learned this week in separate posts? The third week of ornamental fish culture MOOC on quality characteristics determination on GoldfishKoi and DiscusAngelfish and schooling fish. Continue with literature review on paper of feeding frequency effects on Betta fish growth and fecundity. The week was concluded with a review of MP3::Daemon Perl's module.

What is the best written comment I've read this year? Motivation and willpower is not sustainable compare to just chop wood and carry water. Just do things (as quoted below), one step (or 5 minutes) at a time. However, do check for any health issues. Be kind to yourself. Move, sleep, and eat well.
One day, you will be dead. Each year that passes after your death, fewer and fewer people will remember who you were, what you did or what your face looked like. Eventually, you'll be completely forgotten. Who cares if that side project you put out sucked or not. Might as well put it out there and see what people think. There's a good chance too that the project won't even be remembered even by the time you die.
The best way to get experience is to do things, so given that no one is going to remember, might as well try to do it. Your successes won't be remembered along with your failures.
Should you dump unwanted pet fish into the river? Definitely no. The Amazon sailfin catfish (also known locally as DBKL fish), which is not an indigenous species, have invade our local rivers, ponds, or lakes. The bigger issue is that most people don't know or don't want to euthanize (humanely dispose) of unwanted pet fishes but revert to aquarium dumping instead. Perhaps, sell back these fishes to fish stores or donate to other hobbyist. If all these fail, just use Clove oil.

How does fish farm in SG looks like? Let Ah Hua tells you.



How to breed shrimp? The most important lesson from the video is not about breeding shrimp, but understanding water parameters and maintaining good water quality. Rare we stumbled upon good video in YouTube on breeding fish.



Is luck real? Not really, is only one of many external factors in life as in what they say, "lucks favour the prepared mind". Choose personal empowerment (focus on who you are, choose your own race, and love what you do). Accept those ideas that growth you and reject those which drag you down.

How do you organize everything you want to do? Regardless what system you've implemented, the system should be simple and easy for constant repeated review. Complex system discourage usage and reviewing. Without reviewing, there will be no awareness on the progress on your to-do list, hence stagnance of what you've planned to do.

If not SICP, then what? Maybe HTDP? (via HN) The endless argument on why SICP is not the right entry material for those who want to venture into computer science or software engineering and HTDP is probably a better choice instead.

This Week I Learned 2019 - Week 01

Happy new year 2019! Another year, another new TWIL post.

For those who miss out the previous post of the series, check out the last TWIL post of previous year or the whole year review. As usual, go through some legacy TWIL posts as well.

What else I learned this week in separate posts? First, ornamental fish culture in terms of overview, industry, popular tropical fish species through our local online MOOC. Second, the literature review of the paper on the effect of salinity and diet on Betta fish growth and survival. And lastly, the start of Perl Module(s) of the Week (plMOTW) series which we review the Data::Money Perl's module.

What is a mental model? According to Wikipedia, mental model "is an explanation of someone's thought process about how something works in the real world." In other words, a mental model is a systematic thought process that helps you to make better decisions. There are several list of mental model catalogues, Gabriel Weinberg's list (for Anki as well), Kent Beck's list, Slava Akhmechet's list, and Farnam Street's list. Similarly, there are cognitive tricks or  "brain hacks" that you can use on daily basis to manage your life. Contrary, the discussion on these "brain hack" is more philosophical rather than systematic to approach any issues. Nevertheless, good mental exercises for anyone, especially those on writing which I should adhere strictly. This reminded me of a research on when is the best time to write.

What is the morning writing effect? (via HN) Discussion and research on what is the best optimum hours to write. Not surprising, morning is the preferable schedule but because for those who were interviewed, they worked as a full time writer or writing is a major part of their works. Hence starting to work or write in the morning is obviously answer. Discussion at Reddit seemed to have different opinions. For those who have a day job and write casually, night time is the most suitable hours, where everything have slow and quiet down. The discussion on best hours to write relates to our sleep hours and quality.

What is circadian rhythms? It's our internal biological clock responses corresponding to external environment factors like light, temperature, and others. Your health and productivity will be affected if there are any disturbances in your circadian rhythm, for examples, jet lag or blue LEDs light (mobile phone or PC) which affects our sleep (secretion of melatonin hormone which regulates circadian rhythms) leading to drowsiness. To achieve good health and improve our quality of life, not only we need to eat well and exercise adequately, we also need to sleep satisfactory. Does fishes have circadian rhythms? Not really but there was a research suggesting that fishes may have.

This Week I Learned 2018 - Week 52

Last week post or every damn thing from the past. As this is the last week of year 2018, this will be the last second post of this year before the reflection post at the eve of the new year.

What is the plural of fry (a group of little fish)? Is fries, as in like french fries. Every time when I jotted down my observation note on Betta fish breeding, I always confuse about the grammar.

The use of carcinogenic pesticides in our local rice, will this ever get regulated and monitored? Doubt so but our neighbour country, SG will surely let us know. While pesticide residues found in our food sources (especially beloved chili) and diet is still worrisome, there is still lack of conclusive evident linking pesticides to cancer.

Who is Larry Wall and how he is like? The creator of Perl programming language, the author of "The Three Virtues of a programmer", whose favourite colour is Chartreuse, an INFP, and unassuming. Also, some said he is Weird Al in disguise..

How to Get Things Done When You Don't Feel Like It? Use and apply these five strategies: (1) Gamify your process. Start with the smallest possible step that you don't have any excuses not to start. (2) Reserve calendar time for every project. Mark it in the calendar as any other important items in your life. Allocated a short period to do your next smallest item. (3) Get other people involved. Accountability is the key here. We will likely follow through what we promise others. Example is the daily scrum. (4) Talk about it. Externalizing problems by venting it out. (5) Practice the art of "precrastination". Do something else satisfying that release "dopamine" like checking off a to-do list or a short break.

This Week I Learned 2018 - Week 49

Last week post or some old posts.

How to identify and utilize the hidden pocket time available? Surprisingly, there are 13 time slots available. Generally, how do we to shed unnecessary time off your daily schedule, for examples, choosing what to wear or 40 minutes per day on buying stuff? Planning, automation, and limit the choices you've to make. Plan your week ahead, preps your meals up front, or wear the same type of clothing everyday. All these to prevent decision fatigue by removing yourself to make unnecessary decisions in your daily life.

What are you thankful for? I share the same sentiment with this person. Of course, personally, be content.

Does quitting social medias like Instagram or Facebook make you happier? (via HN) Indeed, as the author experienced, it will make your lighter and thus happier. I believe the same experience you felt when going for vegetarian food for a period, your stomach felt lighter. As usual, moderation is the key but take note, these apps were explicitly designed to "consume" you. Start slowly. Instead of drastic changes, disconnect yourself during the weekend, then weekday, and finally totally remove yourself from it.

How does one living with less? Fit everything you own into one carry-on bag. As usual, there always a subreddit, r/onebag, exists. If you travel a lot for a long period of time, the author list of items is a good way to start or reduce the "stuff" you owned to the essential bare minimum.

How smooth jazz took over the '90s? When you mix the technicality of Jazz and melodically of Pop music, then you have Smooth Jazz.

Is Microsoft Edge (Spartan render engine) or Internet Explorer (Trident render engine) going to be replaced by Microsoft own version of Chromium? Yes and finally bloody yes. (via HN) The demise of Edge/IE browser allows me to check off an item from my to-do item after so many, many years of painful experiences and wasted numerous hours trying to get web sites / web apps to work correctly with Edge/IE and numerous hacks and workarounds (remember the stupid box model and their refusal to fix it?). Maybe right now we can have a consistent and standardize web browser render engine with minimum differences. Yes, they may pull another "embrace, extend, and extinguish" strategy again but at least right now we have a FOSS web browser and Firefox.

Why you should switch to Firefox web browser? (via HN) If you values and concerns about privacy. First, Mozilla values your privacy. All the browser data (bookmark, browser history, and etc) synced through Mozilla Sync cannot access by any parties except you. Second, the Firefox Multi-Account Containers extension where cookies are not shared and kept within the container tab itself. This means that each tab is a new browser session and isolated from other tabs where you can use multiple identities and accounts simultaneously. For Google Chrome, there is this extension, SessionBox that did the same but do you trust a third party vendor instead of Mozilla? Third, tracking protection is already built into the browser itself.

This Week I Learned 2018 - Week 46

Last week post or something else from the past instead.

What I say to people who are looking for a job? (via HN) Is not about job hunting but a good step-by-step guide on identifying on what you want to do with your life or career instead. The advice is useful to evaluate the reality of what you think you love to do and actually doing it for a long period of time. Very much suitable for fresh graduates who don't know what they want to do with their life. For example, most young people with some programming knowledge dream to be a game developer but once they start building their first game, the initial passion will die down and most will quit after a while. Maybe they don't have the lack of right exposure, support, and environment. Nevertheless, passion, interest, and enthusiasm varies from person to person.

Meanwhile, if you had two months off between jobs what would you be doing? Do nothing but eat, sleep, shit, and repeat (just to unwinding) or travel (not the usual tourist type trip but maybe solo trip). Or go through your long postponed someday list and finally pick something up and pursuit it. Perhaps, "work" as usual but at home doing your thing as usual.

What is like to survive a month without computer? (via HN) He is not the first who tried this before, someone else did it for two months, and another one, a year without Internet. We're left wonder what it's like without any exposure to any electronic devices these days. Can we survive a day without our mobile phone? Doubt so for most people these days. Can you imagine the anxiety of not having your phone next to you? It used to be a norm last time. At the end of the digital sabbath, the author felt that it's not that special or spiritual as he hoped. He did, however, recommend that instead of two months, try digital detox or going analogue for two weeks.

Similarly, Vipassana retreat is harder and requires more mental power but maybe too extreme for most people. Another approach, Mauna, the practicing observing the silence is worth trying as well. For us mere mortal, start small. Away from any digital devices or Internet during the weekend. Off everything after 6pm during the weekday. Start from there, slowly but surely.

I've been investigating digital detox for quite some time and implement some of these strategies with moderate success and failure. Still, more adjustments needed as we're trying different approaches.

Is "not doing anything at all is the most productive thing you can do"? Boredom may be good for your creativity. As they said, "an idle mind is the devil's workshop". If you're stuck with a problem do something else not relevant and does not engage your brain. You subconscious mind will do all the works. I was wondering what if we dont do nothing and just stay in a very quiet place, where you have nothing else to do except engaging and confront your own thoughts, will you go crazy? Yes, in 45 minutes, in the world quietest place.

Do you know how Red Hat was initially funded? 8 credit cards with a debt of 50k. Crazy as it sounds but it seemed this was quite common practices for business that can't get proper loans. The sales of Red Hat to IBM did pinque some interests on its founders and humble beginning (via HN). While I believe they should have use apt as the package manager instead of reinventing another subpar package manager, rpm. They have proven themselves to be the most successful companies or poster boy of FOSS world.

How do you keep track of the articles you want to read? Instead of overwhelmed yourself with pending reading list, the best approach is just "now or never". Why put off when you can do it today? If any articles are important enough or worth your attention, read it now. If you have more then 10-plus tabs opened, then you're setting yourself up for information overload. Often, we save too many articles but never get the chance to read it. Most of these articles are mildly interesting and should be put it someday anyway.

Is there anything else like Memepool? Yes, we have Useful Interweb, "which brings only the best links every day".

What is the worse code base you've seen so far? Oracle Database 12.2. The insight shared by an ex-employee did shed some lights on maintaining extremely large legacy software project, in this case, a database management system. While this mess can traced back to overseas Indian team but US team should shares the blame as well. However, it was mess to start with in the first place. And, as usual, there is always a xkcd comic to describe such insane scenario.

This Week I Learned 2018 - Week 44

Last week post or something else from the past.

如果女人的情敵是男人?【誰先愛上他的】接近年尾发现的一套好戏,题材新鲜,值得推薦。自从台湾合法化同性恋后,值得一看的一套喜剧。我们应该同情他,还是指责他呢?感情之事,谁可定论呢?

What is GNU Kind Communication Guidelines? (via HN) The first comment (shown below) caught my attention of effective communication. However, there are always exceptions.
This is excellent; using love and persuasion to help someone improve is so much better than by force, compulsion, and fear. How many children rebel against restrictive and domineering parents? but a child who is loved and taught, but allowed to make choices and pursue independence usually ends up much healthier and happier.
Why digital detox is still more than essential these days in digital era? Repeated interruption leads to lost concentrationDiscussions at HN thread proposed several ways but is there a way to reduce this impact? Yes, but without discipline and life style changes as we're too digitally connected. For a start, take life slowly and be more patience. For example, reading a dead tree book is harder these days we have alternative and faster way to do so. But, isn't it nice to just slow and enjoy the smell and texture of the book while doing so?

When does education stop? (via HN) An essay of justification for studying liberal arts against the practical Science, Technology, Engineering and Mathematics (STEM). Regardless the choice you made in your life or career path, love what you do, and do what you love, provided you don't starve yourself and your family to death. Note the article is hosted in David Bull's site, a very dedicate gaijin woodblock printmaker on preserving and populating Japanese woodblock printmaking.

How to write a technical paper (pdf)? (via HN) The advice on writing good abstract was the best I've read so far. Easy, step-by-step, and straight to the point. Not to mention several other ways such as rules, formula, or algorithm as recommended for further reading.

What do you do in your 1-on-1s with your direct reports? Build trust.

How to check the React version of the app using it? There are many ways (depends on the ReactJs library was minified or not). The simplest way so far (may not work for all) is as follow. Is Facebook is using the latest greatest version? Seemed so.


This Week I Learned 2018 - Week 30

Last week post or something random from the past.

Is MySQL an ACID compliant database? On paper yes, but in reality, not quite. For example, database dumping using mysqldump have an issue where did not backup tables with proper single quote escape. This was quite a tricky bug I've encountered where MySQL silently ignore inserting certain records due to quoting issue. Only when certain records were missing from the application, I only realized that database restoration did not work as intended. I wouldn't have figure this out if not for the need of the record. In the end of the day, a workaround was added but unfortunately, wasted a whole day to track this down through numerous dumping and restoring the database.

How do you organize/track your personal goals? Pen and paper, nothing more and nothing less. Write it down and make it happen. Off course, the usual productivity systems like SMART or GTD but to what extend? Sometimes you just need to chill and don't pressure yourself so much.

What is PERMA? Basically this represents an acronym of a theoretical model to achieve well-being or happiness by Martin Seligman in the field of positive psychology. The components of the model are position engagement (there is a difference between pleasure and enjoyment), engagement (in the 'flow', they said), relationships, meaning (doing something other than yourself), and lastly accomplishments. Does the application of this model in online learning platform have an implication on learning ability of these online learners?

What is one anime adaptation worth watching? Monster by Urasawa Naoki. I was quite late to discover this anime but the the style and story line was worth it and way different from the conventional Shōnen manga.

This Week I Learned 2018 - Week 28

Last week post or something else from archive.

Why Aloha shirt is still not a common official men wear here? Via HN. We're living in a tropical country and yet our normal office wear is following western style. On the related note, the history of Aloha shirt was an interesting read as well.

Looking to get started in medication but don't want to fork our money? Look into the UCLA's Guided Meditations audio tracks. Download all and make it a playlist.

What the difference between informational support and emotional support? If your SO talked to you about her problems, just shut up and listen. Do not offer any solutions to her problem. Just listen and understand. Discussion at Reddit agreed with that. Don't assume. Ask or request what you want, if possible, explicitly. If you consult a doctor, are you going to tell the doctor that you're sick and he/she should know what sickness you've without you disclosing more specific details?

Stuck at your current tasks or your goals during the weekend? Chop wood, carry water.

Looking for food pyramid in the context of MY? Yes, it seemed we have a guide or alternative summarized version that from Ministry of Health. While we at it, there is another guide for low cholesterol diet as well. Why they don't provide a printable PDF version or compile everything into a booklet instead?

You know what is craziness when comes to set up your home network? Unnecessary and over-engineered enterprise level setup.

Joining the Utrawide Master Race but short on moolah? On first look, the LG 29WK600-W looks like a good choice if you're short of cash. However, it's best to check the actual specifications of the monitor before making any purchase. The panel bit depth is actually 6-bits + RFC and not really 8-bits, hence the 16.7 millions colours is overstatement. While the split screen functionality is nice, it has it's own security issue if you're running Windows. For GNU/Linux, there is Fake Xinerama or gTile (if you're using GNOME) that simulates several virtual monitors.

Setting up a home audio studio? This advice is a good way to start.

Is Anabas testudineus (also known as Puyu in Malay) suitable for consumption? Yes, and it's being massed produced as ornamental fish (gold colour variation) or as food source. I've long knew this fish but never realized that it actually travel through dry land to mate as shown in video below. And the hormone that the breeder used is most likely Ovaprim or GnRH, a spawning agent to induce breeding for fishes in captivity.


Do no feed the female Betta a day before breeding and let mating happened after 6pm because cooler temperature is good for bredding Betta? The issue with online resources when come to fish breeding procedures is it's quite hard to differentiate anecdotal experience or scientific result.

This Week I Learned 2018 - Week 25

Week 24 post and something from archive.

中国最后的剑圣, 于承惠。在中文影坛里,在也找不到另一个演员能诠释演出这个角色,从霸气的恶人角色到闭山修行的一代宗师。可惜,晚年在影坛没参与任何武侠片。

How to Survive Your 40s? (via KH). As someone who going to take a leap into this new decade, I can probably relates (the screenshot below tells quite a lot as well) to the author experience. Since few years back, younger people have started to call me "uncle" (my choice of clothing did contribute to that as well). It's a sudden but natural shift that comes with your age. The article reminded me of a Korean movie (can't remember the name) I've watched few weeks back. Basically the protagonist (someone in his 50s) said you need to see this milestone as the second 20s. The second time for you to reflect or follow up with what you've done (differently this time) in your 20s. The to-do list since so many years ago is still so long and it will keep me occupied for so some times.



What the difference between Perl and Python? If you need a comparison between both programming languages, this book, "Scripting with Objects: A Comparative Presentation of Object-Oriented Scripting with Perl and Python", while quite dated (it was written in 2008), provides some insights on differences between these both programming languages. In the end, the rising popularity of Python and emergence of Perl 6 shown that, opinionated or there should be a standard way of doing things won.

Why you need to set default value in `sub` in Moo or Moose? Because having a subroutine wrapper returns a unique reference every time you create a new object.

How do you boot from USB thumb drive from Grub itself? Yes, this is possible (do read the whole discussion). You must go to the Grub console by pressing 'c'. Remember that you can tab to find out which removable media and partition to use. It's quite annoying that sometimes the BIOS cannot detect the removable media (thumb drive) and can't boot from the device itself.
grub> ls
grub> set root=(hd1, msdos2)
grub> chainloader +1
grub> boot

On a related note, migration from Fedora 27 to Fedora 28 was such a painful experience. The keyboard and mouse did not work and were very lagging. I'm not sure, but Fedora 28 was such a let down. In the end, have to wipe out the whole installation and replaced it with Ubuntu 18.04 and everything works as intended. Seriously, Fedora, what is going there with 28 release?

Why they said Perl is a more advanced scripting language for system administrator? See App::GitHubPullRequest, a Perl console tool that glues together three different console tools of git, stty, and curl.

How to train your kids to do house chores voluntarily? (via HNEmpowerment since toddler.

Dreadful tasks? Just try, give it a while.

Which Perl modules to use when making HTTP requests? There are so many.

How does you do dispatch table in Perl? Found an old discussion (2010) in HN. The book High-Order Perl have a whole chapter (PDF) on this topic.

This Week I Learned 2018 - Week 18

Last week post or something else from the archive.

最近无意看了汤浅政明《春宵苦短,少女前进吧!》,那个诡异及天马行空的画风及离奇爱情故事,非常值得一看及收藏的动画电影。导演另一个作品,《四疊半神話大系》,也值得一提。


FORMS. Interesting concept on how to manage your week. In other words, you have a daily theme or something you're going to focus on each day. For example,
  • Monday: Finances 
  • Tuesday: Operations 
  • Wednesday: Research & Development 
  • Thursday: Marketing 
  • Friday: Sales
Interesting learning experience with Perl and Travis CI. From how-should-i-start, to why-this-is-not-working, and finally-something-is-working, Axel Beckert's guide is a definitely must read material. Furthermore, the Travis-CI testing helper for Perl modules does help a lot. However, like most Perl modules out there, documentation and maintenance is still a major issue. No worry, there is a tool to bootstrap the `.travis.yml` file, just install App::CISetup and use `setup-travis-yml.pl`.

Having fun coding and can't seem to stop. Moderation is the key here.

kwalitee. Yes, kwalitee or Test::Kwalitee.

Facepalm. Totally speechless when using Dzil and Perl::Critic. You cannot put the package name in the first line of the code otherwise Perl::Critic will complain.
use strict;
use warnings;
package Foo;
# ABSTRACT: This is a Foo.
# KEYWORDS: foo bar baz

use frobnitz;
use OtherStuff;
...

This Week I Learned 2018 - Week 15

Last week post or grab something from the archive.

Travelling. Short and late write-up for this week.

一年一度的大自然环境“欣赏”周。水上活动总是有它的危险性。任何这类的活动都必须去注意团队的每个人的安全。如果一旦出现什么差错,到时要怪罪何人?关于个人安全,东方人及西方人的文化都明显都所差异。这是我们必须认真去检讨的。发展中国家的旅游胜地,虽然是经济的消费,但是也显出人民之间的贫富差距。罪该祸首还是不完善的教育体制,过于注重宗教而不注重论理學等知識。简单的算数,对某些孩子却是何苦艰难。

Travis CI and Perl. Some minor hiccup but I managed to get the Continuous Integration (CI) to work correctly. Unfortunately, I can't seem to find a way to test the CI within the local development environment.

The history of React.js. Didn't realize that React have came a long way, since 8 years ago. Yes, you got it right, 8 long years ago! The competition of the front-end Javascript libraries have settled down to either React, Angular, and Vue. Due to some "compelling" circumstances, this is a good time for "reacting" (pardon the pun), and nothing better to start with the fundamental basis (via HN).

"Manage your energy, not your time." How you manage your day (especially the morning) determine the productivity for the whole day, week, month, and year.

This Week I Learned 2018 - Week 13

Last week post or something from the past. This going to be a very long weekly post. So many things written down this week and might as well put everything together.

又是那个季节。每当这个时候,都会想起唐代杜牧的著名诗句。以前倒是没什么去注意了解,但是没想到,根据百科解说,每一句都是诗者高明的写法。随着年龄增长,是时候重读起唐诗宋词,陶冶性情。
“清明时节雨纷纷”。第一句,交代情景、环境、气氛。
“路上行人欲断魂”。第二句,写出了人物,显示了人物的凄迷纷乱的心境。
“借问酒家何处有”。第三句,提出了如何摆脱这种心境的办法。
“牧童遥指杏花村”。第四句,写答话带行动,是整篇的精彩所在。
The Nightmare Letter: A Subject Access Request under GDPR (via HN). GDPR (General Data Protection Regulation), the new data protection law coming into force on 25th May, 2018. Ironically, an article posted in a site that making profit from our shared data. There always this saying I read online many moons ago regarding privacy, "If you have done nothing wrong, then why you need to worry about people tracking your Internet usage?". And the counter argument to this question is "Everyone knows what we did in the toilet, then why we still need to close our door?". Corporations have long monitored and tracked our daily movements and behaviours and people needs to be educated and aware of such activities and their right to erasure, also known as "the right to be forgotten".

Off course, all these discussions was due to the recent social media data breaching. And usual things was, some noises were made, another call for deletion of your social media account, and things will cool down, and live goes on. Nothing drastic will happen, people still will keep their social media account and no one will delete it. Social media site will be replaced by another social media site, somehow or another.

Surprising to find out about this on feeding Betta fish (emphasis added). And we were feeding the Betta fishes with more than 2 to 3 pellets! Pellets will expand in their stomach. No wonder some of the Bettas were having constipation issue.
Adult bettas can be fed once a day and babies (young) can be fed twice a day. It may not seem enough, but many pellets expand to more than 2x their size when they get wet. To put this in a further perspective, the stomach of a betta fish is about the size of their eye! Additional power supplies may be necessary depending on the level of activity and personality of your betta.
Read the story about the origin of Giant Betta. Most of the new Betta type was due to anomaly of breeding and continuous selective breeding.

Reality when comes to management as described below:
In this case, it's management giving the impression that they are "doing something." We see the same thing with, "can we add more developers to speed this up?" The answer is almost universally "no" and, presumably, any manager in the modern era should have read (or at least be familiar with) the over 40 year-old book, "The Mythical Man Month." But, from a senior management position, there aren't many levers to pull--and when the heat is on, they have to be seen to "do something."
Write or build your own software projects. Yes, is a time waster to re-implement something from scratch, but you will gain valuable insights by doing so. Build your own React is probably something relevant that everyone should look into if they wish to understand what the hype about front-end development using React and the like.

Thought provoking post on how Lisp, the programming language ruined a person development career (via HN). Are you a software plumber or software developer? The comment did raise an interesting question on how once see his or her software development career. If you're doing mostly business software or glorified spreadsheet, then you're a plumber, not the later. If remember correctly, long ago, there was this discussion about software developers who are producer and those who are consumers.

Is the ability to focus the key skill that separate successful and unsuccessful people. This HN user think so. The next question is how to increase your focus?
Pretty awesome! If I ever had to say the one thing that differentiates successful people from unsuccessful people it wouldn't be intelligence, or even perseverance, or passion. It'd be focus. With focus, you can be amazingly successful in so many types of occupations.
(That being said, passion / perseverance / intelligence can often lead to focus)
How to tell great story? Feeling stuck or suck? Just follows the Pixar’S 22 rules of storytelling. Rule number 4 or the The Story Spine way is the most common and popular.
Once upon a time there was ___. Every day, ___. One day ___. Because of that, ___. Because of that, ___. Until finally ___.
Meanwhile, while reading about writing, saw this post about whether we can start a sentence with a conjunction? Definitely yes. Good examples shown below:
It’s a pretty smart and progressive budget. But do you think those changes go far enough?
Some people are calling this film the worst movie ever. And who are we to argue?
Dworkin’s answer is no. But why not?
Who would have thought it? And is it really true?
While we at it, this week vocabulary list. Lots of similar words and it was quite hard to link these words up into a cohesive paragraph.
When sedition (煽动叛乱) law have been applied selectively, societies will slowly disintegrated (瓦解) from within rather by external influences. Inconsistency and partially interpretation this law will result in serious crisis in the legislation and judicature (司法) of our country or worse, the ridicule (奚落) of our judicial (法庭的) system. Therefore, there should be a judicial review of the law should be an integral (整体) part of the to the rule of law. That was David, an adjunct professor (副教) of law, judicious (有见识的) closing statement before the class adjourned (休庭) for lunch break. While he was discussing remaining details with his fellow students, Mary, his personal assistant, interjected (插话) their discussion to remind Davis about his itinerary (行程) for today. He should be in the transit (中转) lounge at the airport in two hours and additional amendment of this law was not be the ambit (范围) of their discussion right now.

This Week I Learned 2018 - Week 11

Last week post or something from the past.

Another week, another compilation of vocabulary list. The list of words were a bit tricky to cohere (一致,连贯) together into a convincing paragraph. Just let your imagination go wild then!
The island have been inhabited (居住在) by the isolated indigenous (土著) peoples since long before it was discovered by foreign outsider. Strangely enough, the tribe was hospitable (好客的) and willing to embrace outsider even though there was some resistant initially. People in the island are not herbivore (草食动物) due to the climate and available food source. Within the cold climate with little greens available, tuna fish is their daily source of protein. Tuna fish, due to its distinct smelly fishy odor inhere (存在) can lead to to halitosis (口臭), which can be quite put off to outsider. The people in the island adhere (持有信仰) to a strange religious ritual where they don't inhume (埋葬) the death but instead leave it open in the wild wrapped in Tuna fish skin in a helical (螺旋) way. Everyone was inhibited (抑制) from getting near to the burial ground forever as it will bring bad luck for those who ignore the rule.
看了《港督最後一個保鑣》,戏中的一首“好诗”,搞笑令人佩服。有些戏你要重看几次才能深深体会戏中奥妙。看似喜剧,其实是在挖苦当时朝政。
小樓昨夜又春風,雲雨巫山數落紅。
花徑不曾緣客掃,蓬門今始為君開。
除清衫褲去游水,留得餘香有陣除。
游完上岸偷清晒,行路回家只為貧。
家中只得兩個人,乾柴烈火周身痕。
搵勻唔見杜蕾斯,勇者無懼打真軍。
古來薄幸是郎君,珠胎暗結你鬆人。
有緣千里能相會,可憐已是揼波人(可憐歲月已催人)。
Ask HN: Were we more productive 10, 15, or 20 years ago? The question raised was related to development works itself. Were we? When comes to web development, not really, more marketing hype and too many choices available. Furthermore, too many tools, and too many abstractions. In other words, paralysis by analysis or decision fatigue, which made us ends up doing nothing.  What worse, we were bombarded by so-called news these days which read like tabloid instead. Technology made things done faster but at a price, we're more disconnected and distracted. Or maybe we (those reaching middle age) are more grumpier.

The Pilot System rule. The first system will always developed incorrectly somehow due to lacking of understanding and edge cases. Focus on the programmer productivity instead of focusing on optimizing the system itself.

Lesson learned when breeding Betta fish. We've made a few mistakes by our self and pretty much can relate to the breeder himself.

While we're talking about fish, the best video so far on using salt in your aquarium or towards your fish. We must be using salt wrongly, no salts are created equally, even chemical components are different!

This Week I Learned 2018 - Week 04

Last week post or the archived stuff.

Fourth week of the new year and we've reached also the end of first month. Interesting that time flies and progress of the pending to-do list items still slow but moving ahead.

人生的長尾效應:25、35、45的生涯落點。职业的第二个阶段,你要如何去面对?当然我在多年前就清楚我擅长什么,热爱什么,及那些是备受肯定的能力。如何在自己的生涯中找到自己的落点? 职业生涯长达45年,在你人生中占据了一大半的岁月,自己好好去规划。记得,任何计划都必须有健康的身体去扶持。注意你本身的健康吧!

《人生密密缝》是一套每个妈妈都应该去看的戏。非常认同影片评价!《新女友》也是类似的戏。

According to the discussion I have with different breeders and the show owners around Jalan Pasar, depends on the type of Betta fish, arrival of new stocks depends on the prices. Tuesday or Thursday (MYR 2.50) and Thursday or Saturday (MYR 5.00/6.00). Do not that more of these cheaper Bettas are rejected low grade fish. On a rare occasion you will have higher grade Bettas like Koi or Dumbo which is priced around MYR 20.00 - MYR 35.00.

Go for those less than MYR 10.00 if you're starting to raising Betta but don't want to fork out a lot of money. When I saw those kids buying these Betta with their clueless parent, definitely those Bettas will not survive long. Betta are quite sensitive to water parameters. Without keen monitoring, most of these bought fishes will die of infection due to bad water quality.

Forgot that I supposed to review my weekly steps walked. Hence, going to start this week with reflection and review. The plan is to try to walk 6,000 steps per day. This is doable if you walk more in the office, drink more water, eat more fruit, and go to rest room more often. You can gain more steps if you walk to eat your lunch and travel by train instead of motorcycle. A minor changes in your daily habit can have a significant improvement of total steps walked.

This week progress was quite good. Good if we can have 6000 steps per day. That the essential bare minimum. If you can hit 10000 steps per day that would be nice but that is optional. Experiences have shown when you walked more step a day before, you should let your body rest the following day. Awareness is the key here and that is the plan for next week. Compare to last time, aware of your weight and food intake. In short, move and don't stay stagnant.



Yes, it's almost one month into the year 2018. What are you looking forward to? What are you new year resolutions? CrushEntropy, my friend.

Steve Yegge left Google for Grab (via Reddit) Interesting comment about his guitar playing skill. Joke aside, we do need more vocal people to voice out somehow. I believe he is right, on the consumer side, Google is not really gaining any advantages over the competitors.

Surprising and shocking. I wondered if the video have been viral enough, what would the manufacturer of the said "healthy" drink would do? Lawyer up and sue?


This Week I Learned 2018 - Week 03

Last week stuff and all the archive posts.

大水冲了龙王庙 (一家人不认一家人)。看了几套大陆片,一直听到这句歇後語(英文应该是Idiom吧?)非常适合那些说话不直截了当,话中有话的人。另外还有几句普遍的,例如:
  • 有事鍾無艷,無事夏迎春
  • 豬八戒照鏡子(裏外不是人)
  • 秀才遇到兵(有理說不清)
  • 無事獻殷勤 (非奸即盜)
  • 泥菩薩過江(自身難保)
  • 快刀斬亂麻 (乾淨俐落)

Chinese New Year is around the corner, surprisingly this year, the weather is getting colder and not warmer especially after the Dongzhi festival. Several fishes have died due to infection and we suspected that tank contamination from other fishes without quarantine and cold weather may be the root cause. Water parameters are a dead and life issue for these fishes.

All the Bettas have been quarantines and water changes done on almost daily basis. Some of them are recovering and seems more active. We have change our approach to water changes and sea salt, which are good practices to keep the fishes healthy. Unless necessary, no more chemical like Malachine Green (debatable toxicity issue, it can kill both bacteria or fishes). Methylene Blue or Formaldehyde (aka Formalin) are still safe to use. Even so, each antimicrobials have their own safety issue and met with apprehension issue in the fishing industry, especially aquaculture (fishes breed for eating). Aquarium medication is an interesting area for investigating. Expect more future discussions on this.

Overfed your fishes? Expect bloating and constipation issue to follow suit. Nothing but pea to help them with their digestion. Surprisingly these fishes crave pea. Well, pea should be on their weekly diet then.

cron.weekly is no more. It's not easy to continuously writing up and weekly aggregate posts. Definitely you're going to burn out somehow or another. I've tried different approach and the only possible way is to do it on daily basis, sit down in front of you computer for 15 minutes and write something up. Consistency is the key here, whether you like it or not.

Cal Newport have a good write-up on digital de-cluttering. Find and cultivate high-quality leisure instead of instant gratification low-quality digital distractions (news feeds, social media posts, or videos). A deliberated and strategic pause of using your mobile devices will have quite a significant effect on your daily life. What are your analog activities? These is something I need to reflect upon. For a start, rediscover what you like to do when you're young? Long forgotten hobbies? That's a good start!

Yes, I've installing and setting up my printer and scanner drivers the wrong way (using the official M2070W drivers from Samsung) for so long. There always this conflict between the printer and scanner driver everything I've upgraded my Ubuntu distro. It took me a while, but I was made aware there have been this The Samsung Unified Linux Driver Repository since 2015. Adding a repository, update, and install the necessary drivers and everything works as intended.

Timezone cheatsheet in MySQL. Timezone is always tricky and to do it correctly or explain it persuasively to layman.

This Week I Learned - 2017 Week 50

Last week post or something from the archive.

Two more weeks to go and we can start the new year. Meet quite a few talented and inspiring people around. Wish I pick up illustration at a younger age. It never too old to try venture into something totally new.

The Second-system effect, where simple and efficient system was replaced by over-engineered systems due to personal agendas, preferences, and career advancement. The Mythical Man-Month book is within my reach and every time I saw the book cover, it reminded me of the profound insights of Fred Brooks. The Hack story at Facebook done everything correctly and to prevent such effect (Facebook should have just buy Zend last time and replace PHP with Hack instead). Software architecture is more leans towards theoretical, common sense, and management rather than practical hands-on stuff. Most of the recommended reading literature indicate this.

PostgreSQL Exercises. Yup, someone have helped me to check off one item of my bucket list. PostgreSQL should gain more traction and exposure comparable to MySQL. I'm glad someone made some contributions towards that direction. History always repeat itself, this time, unfortunately, the worse (MySQL) is always better.

License compliance. A concept so foreign for so many software house, let alone those startups or companies without even a human resource department.

Not really time management but mission, GTD, energy management, and automation.

Three girls in kitchen by William Gedney via (RD). When times were simpler and photography was manual, constraints, limited, and more humane. Roger May have a good write-up on his photography works.

Embroidery, potential new hobby for the coming new year? Example of a work (screenshot captured and cropped by me) by glazier-heart shown below. Not that hard, you just need patience and tracing ability. What if you combines your masterpiece with sarcasm and cynicism? Surely it going to be an awesome gift. Note to self, remember the Wheaton's Law.


This Week I Learned - 2017 Week 40

Last week post or the usual archive stuff.

Week 40. Twelve more weeks to go before the end of the year.


The case against open office when people just copy without including the subtle details of the design and layout. While many organization sugarcoat the many benefits of of open office layout, the main advantage is the organization save a significant money using such layout.





200 productive hours per month? (via HN) Research shown that it's possible on daily basis, if a worker can concentrate 4 hours on deep work and remaining 4 hours on shallow work (meetings, random discussions, surfing, and slacking off). However, deep work requires more solitary environment, which is not possible in a open office environment.


Via Reddit. You always have to be suck at something before you can be better at it as shown in the quote below. But, unless you're constantly improving, you will stuck at the expert beginner level.
"Successful writers are people who allow themselves the freedom to suck—unrepentantly, happily, even."

What are the best combination (budget and feature wise) to setup a desktop music system? Below are the list of components:

(1) JBL LSR305 active speaker
(2) Lexicon Alpha audio interface / Behringer UCA222 / HIFIME(DIY) DAC
(3) XLR-to-3.5mm cable / TRS-to-3.5 mm cable / XLR male to RCA male cables

You should look into the issue of balanced audio.


Slashdot is 20 years olds! Ironically, good discussion was found in HN instead! I found the site when it was going through it second year and getting more popular due to discussion of FOSS. And off course, those idiotic memes, Anonymous Cowards, and BOredAtWork comments. Man I feel so old.


Audio gd is an interesting audio equipment manufacturer. The website still looks like those site Geocities era and you have to wait for a while for your order to be processed and built. While relatively unknown in some part of the world, Audio gd is one of those China manufacturers who build good audio equipment or parts.


How to increase gain in FX-Audio DAC X6. Some Redditor found a tiny little hack that increases the overall gain of the amplifier.