TypeScript Convert unknown[] to number

I use knex to update and returning number of rows been updated. It seems that knex returning update return unknown[]. But when I do checking using typeof it is actually number.

But apparently Typescript not allowed me to simply convert it.
So below is the solution.

 //change the unknown[] to number[]
 const result = await query.run() as number[]; 
 
 //check if result is array, and do proper conversion
 const result1 = (Array.isArray(result)) ? result[0]: result;

Stop Motion Animation For Kids

I was watching Netflix Holiday Movies with Liesha. The show was about The Nightmare Before Christmas.

The movie was made using stop motion technique. Knowing Lisha loves arts, I challenged her to do stop motion and asked her to do some studies before doing one.

Below are the outcomes after her studies.

Lego & Others Stop Motion By Liesha

Bridge Stop Motion By Lisha, Deef and Dien

After Dien and Deef saw the Lego Stop Motion they were also interested and did the stop motion together.

Dien: building the bridge
Deef: Photographer and videographer
Lisha: Director

making of stop motion by kids
making of stop motion by kids

Genting Utilities & Services Sdn Bhd Contact Number

I hava a condo unit at Genting Highlands. The electricity at Genting Highlands is supplied by Genting Utilities Services Sdn Bhd. When I searched the internet, I couldn’t get their contact number.

Fortunately found the contact number on their utilities bill. So sharing this info for anyone who haven’t got their first bill and who have inquiry.

Contact Details

Billing Matters: 03 2333 6265 / 6810

Payment Matters: 03 2333 6246

Technical / Utility Meter Matters: 03 6105 2039

Email: creditcontrol@rwgenting.com

Unifi Mesh Wifi Booster Package Comparison

Everyone must have been facing weak wifi coverage inside their home including me. That is why I’m considering installing mesh wifi booster.

Unifi Mesh Wifi Booster Package

Unifi offers mesh wifi TP Link Deco M9 (3 pack) package at RM35 per month for 24 months totaling at RM840.

For TP Deco M4 (2 pack), Unifi offers RM15 per month for 24 months and totaling at RM360

I did comparison which one is better buying upfront from any IT hardware shop or paying monthly to Unifi.

Buying Upfront of TP Link Deco Mesh Wifi

All IT Hypermarket is selling Deco M9 plus (3 pack) at RM1,269

deco m9 tp link mesh wifi
deco m9 tp link mesh wifi

For Deco M4, All IT Hypermarket is selling it at RM379.

tp link deco m4 mesh wifi booster
tp link deco m4 mesh wifi booster

Comparison

 Unifi Mesh Wifi PackageBuy Mesh Wifi Device Upfront
M9 - PriceRM840RM1,269
M9 - Price difference (Unifi Mesh as baseline)0+RM429
M9 - Percentage difference (Unifi Mesh as baseline)0%+51%
M4 - PriceRM360RM379
M4 - Price difference (Unifi Mesh as baseline)o+RM19
M4 - Percentage difference (Unifi Mesh as baseline)0%+5.3%

Conclusion

Deco Mesh Wifi M9 (3 pack)

Unifi Mesh Wifi is worth to subscribe to as it is 50% cheaper vs buying upfront.

Deco Mesh Wifi M4 (2 pack)

Unifi Mesh Wifi package still wins but cheaper at only by 5%.

Buying Maid Protector Insurance with discount

I received maid protector renewal notice which last time I bought the policy during renewal of her passport.

Last time I bought two years maid insurance coverage at post office from RHB Insurance provider. I totally forgot the premium amount that I paid last time, but for this time renewal the coverage details as per below;

  1. Accidental death/ permanent disablement – RM20k
  2. Medical expenses – RM750
  3. Hospital and surgical expenses -RM3k
  4. Weekly hospital income benefits – RM110
  5. Repatriation benefits – RM3.5k
  6. Vicarious liability – RM2k
  7. Termination expenses – RM250

Maid Insurance Options Renewal

Since I received the letter I have two options of making renewal which are;

  1. by visiting RHB Insurance branches/RHBI agents
  2. or email direct to rhbi.general@rhbgroup.com

Discount if Buy Direct with RHB

So I decided to only email RHB and to my surprise received their quick reply. Furthermore, if I purchase direct I can get discount of 25%. Instead of paying RM121.30 per year,  I only need to pay for RM93.48 per year coverage.

I just need to make payment online via Jompay and email all the necessary documentations such as maid passport, employer IC copy and payment receipt.

Now I just need for them to provide me with cover note or policy details.

That is all.

Note: Maid Protector is no longer issued by POS Malaysia.