Showing posts with label startup. Show all posts
Showing posts with label startup. Show all posts

This Week I Learned 2018 - Week 39

Last week post or some old stuff.


What is the worst pain you've ever experienced? For a woman, giving child labour. For a human, kidney stones. Contrary to the headline, (via HN), it's NOT beautiful at all but excruciating painful and can put a tough guy down to his knee.  Imagine coral reef passing your kidney or being stabbed in your kidney. If you're facing financial issue, maybe you should try roller coaster to get those stones out. Yes, it works and it's proven scientifically. What can you do right now? Prevention is still better than cure. Less salty food and drink plenty of water, like 2 litres per day.

How many books you should read at a time? Three. One hard, one easy, and one very easy. Currently I'm reading just one hard book (the material is so dry). The next step is to find another easy (fiction perhaps?) and very easy (manga?) book. Which time slot I should allocate to? Judging from my almost daily progress, is it possible to finish three books per month?

What is the most additive game in this year's JS13kGames competition? (via HN1024 Moves and I'm quite surprised and addicted to the games. The creativity shown in some of the submissions have reminded me how computing power have changed since the early days of computing.

How do we prevent muscle loss as we age? (via HN) Nothing but strength training. Every single fscking day. The MRI image below tells a lot about the importance of exercise towards maintaining your muscle flexibility regardless your age. The usual exercise regime should be 150 minutes and 3 times per week. Instead of cardio, maybe I should focus on strength training (weight lifting). Furthermore, building muscle actually burns more fat.

So Good They Can't Ignore You? (via HN) I can relate to the opposite view instead what of the book preaches. Is the book worth it? Yes, it's a popular-science writing made easy for layman. Once you've done with the book, you should explore something deeper like Flow: The Psychology of Optimal Experience. Read both book and the scientific papers published. Regardless your passions or skill sets, reality have to step in.

What is the dark side of working at a successful startup? Not surprisingly, money and lots of money. Money changed people. Sadly, towards the evil side of human nature. Some may argue this is reality of life. Perhaps.

Does four days work week possible? (via HN) Yes, either four-tens or you take a pay cut. Possible for those working in Asia region? Doubtful.

Which type of programmer you are? There are two types, starter and finisher.

Next.js? If you need a proper framework than the bare essential React. The frontend is so crowded and mess right now.

This Week I Learned 2018 - Week 05

Last week post or something from the archive.

New week and we're embracing the second month of 2018. The summer (for Southern Hemisphere, summer starts from December 1 till February 28 or 29) wind was blowing gently indicating the near of Chinese New Year. 活了大半辈子,原来南半球的季节正好跟北半球相反,真的是受教了!俗语说,“一年之计在于春,一日之计在于晨”, 自己要好好检讨及规划!

Going through my daily steps count, less activity this week due to sickness. Icy cold drinks during midnight and middle-age guy don't was not a good combination. But luckily we have long vacation, good to catch up with my needed rest and recovery. Comparison of total steps walked as illustrated below. (Yes I know the missing legend) Target for next week is to average out the steps till 5000 steps and above.

Dropsy and the whole body is pineconing? Nothing much we can do besides except humanely euthanize the fish. We lost three this week and unexpectedly the Blue Mable is going down also. The typical treatment is daily water changes combines with aquarium salt, Methylene blue, or Malachite green. We're not sure but I suspicious was due to overfeeding which leads to stress and constipation as well as infection.

When visited enough Aquarium shops, you will learn a thing or two. First, antibiotic powder (yellowish colour, suspect the main ingredient is Sodium Nifurstyrenate) usage was quite common especially expensive tropical fish like Discus (not a fan and seriously, a moving water pancake?!). Second, fish sellers in Market Road packed their fishes in plastic bags treated green water (suspect is Malachite green) and unpack it again in plastic square tank for selling each water in plain water. You can achieve profit if you can sustain the longevity of the fishes until they are sold to the customer.

More conversations breeders. It seems that female Bettas are far more expensive than male and fellow breeders don't want to sell their precious female Bettas to retain their quality breed of lines. Only for those who have financial gains from doing this. I wish more breeders should focus partially on the locally Malaysian Bettas. There is one breeder and I wish him all the best. Wild Bettas found locally may not be that colourful but it's good to breed and increase the population.

You know the play was so good that even the opposite bench players applauded it. This reminded me of Kobe Bryant's baseline reverse dunks. Along with Giannis AntetokounmpoBen Simmons is another NBA player to watch out for in the coming few years. Only time will tell.

Too many blockchain wannabe tech startups in Malaysia. Enough said. The never ending of startups chasing the next hype cycle.

How do you unstaged changes in Git? There are cases where merging or rebasing kind of messed up and you're left with a list of modified files.
$ git stash save --keep-index --include-untracked

Meanwhile, you can clean up your local working repository in Git through interactive mode or Git clean interactive.
$ git clean -di

The list reduction functions in List::Util. Some good examples:
$foo = reduce { $a > $b ? $a : $b } 1..10       # max
$foo = reduce { $a gt $b ? $a : $b } 'A'..'Z'   # maxstr
$foo = reduce { $a < $b ? $a : $b } 1..10       # min
$foo = reduce { $a lt $b ? $a : $b } 'aa'..'zz' # minstr
$foo = reduce { $a + $b } 1 .. 10               # sum
$foo = reduce { $a . $b } @bar                  # concat

More effed up stuff in our beloved MySQL. This time, "SQL Error (1451): Cannot delete or update a parent row: a foreign key constraint fails ....". To quote from the documentation (emphasis added),
If ON UPDATE CASCADE or ON UPDATE SET NULL recurses to update the same table it has previously updated during the cascade, it acts like RESTRICT. This means that you cannot use self-referential ON UPDATE CASCADE or ON UPDATE SET NULL operations. This is to prevent infinite loops resulting from cascaded updates. A self-referential ON DELETE SET NULL, on the other hand, is possible, as is a self-referential ON DELETE CASCADE. Cascading operations may not be nested more than 15 levels deep.

In other words, self-referenced foreign key(s) or recursive deletes doesn't work in MySQL (it WORKS in a PROPER database management system like PostgreSQL). You have to create another new table to link the relationship, something like many-to-many data model. If you needs deep nested hierarchy data structure, use Closure Table.

This Week I Learned 2018 - Week 01

Last year post or something from the past.

Happy new year 2018! Wedding is always an interesting and peculiar event, especially for someone like me. Nevertheless, it was a good short and simple ceremony.

Down with illness. Most likely due to infection of trying to culture Infusoria for your tiny frys. Wash your hand thoroughly. A few unlucky fellows didn't manage to survive the overcrowded tank and succumbed to the stress and infection leading to Dropsy (YouTube) and Fin rot. While the S1 solution (Malachite Green. Warning, it was banned for food fish and the dye is carcinogenic. You will notice that no ingredient was stated behind the bottle label.) or sea salts (boosts up the immune systems) did help but not for all cases. There is no cure for late stage infection. Still, prevention is better than cure. However, lack of experience, no quarantine procedures, diligence, it's very hard to maintain good water quality and acceptable temperature for each species in the tank.

What are the available methods of spawning Bettas? The are so many and each one of them have pros and cons. While the local experience breeders prefer the Thai way, those living in the city without access to open spaces have to stick with the Shallow Method. The one thing we learned was patience and preparation are crucial for a successfully spawning without killing the Betta pairs as well as the frys. There are so many steps in conditioning the Betta pairs and make sure male don't kill the female and eat those hatched frys.

The Looming Storm. It has been a while since the last good suspend thriller film coming from mainland China.

Kong kong kong kong kong kong kong kong kong kong kong. Being a native Hokkien speaker, I still can't get it right. This reminded me of the Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo, a good example of homonyms and homophones.

To people who are doing startups, read the story of how DropBox started as a Minimal Viable Product (MVP). The one particular slide (screenshot captured below) contains enough good advice on how to release your MVP to test the market, adjust, and re-release to grab the market share. An MVP maybe even be an Excel sheet with clickable user interface. Yes, there are people who use Excel sheet as good prototyping tool. Did I mentioned that most web apps are glorified Excel sheet?

What did you work on in 2017 and what are your 2018 resolutions? The usual annual reflection and future projection. The GarageScript and Hacker Dojo looks interesting but make a world a better place? Doubt so, do we need more software engineers? Meanwhile, this should be in the bucket list of most tech person, take a sabbatical year, move to smaller town, down sizing everything, and do things you want to do there. Best way to summarize THE 2018 resolution.
"Less consuming, more creating. Doesn't matter what it is, doesn't matter if it's bad."
piu piu SH. Horizontal shooter game written in Bash! Yes, Bash! Impressive indeed.


"A few points to note though: Tech people there are smart, educated, and very, very hard working. However the number one thing they all value is "efficiency", or rather: "the efficiency of getting things done". I've talked to people from Tencent, and one guy laughed at American companies approach of writing good, scalable, maintainable but very often over-engineered code. Over at Tencent they very often do whatever it takes to be first to market, and if needed to be, refactor everything 6 months down the road, and rinse wash repeat. It's the only approach that works for them in a hugely competitive market (also the largest one in the world). Company management wouldn't tolerate coding practices that very often serves no purpose other than to stroke the ego of senior software architects."
-- Cookingboy, emphasis added
When you're in a fast-growing competitive market with lots of talents and cheap labour, getting done fast is always preferable over get it done right. Given the options of fast, good, and cheap, and you can pick only two, everyone will go for fast and cheap.  Profitability always triumph over quality.

On a side note, Tencent, the mentioned company, is famously known  for the popular instant messenger QQ in mainland China.

Startup Lessons

Via HN. While I am not working in a startup, totally agree with the development lessons 45 - 53. Firm believer in weekly development sprint. The advantages of adhering to a weekly development and release cycle are shorter feedback time and breaking down of bigger tasks into smaller and manageable chunk.

How I wish I can introduce this into my personal life and projects. Tried a few times but failed miserably. Time is running up and age is catching up on me.