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.

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

Or to get directly your softcopy bill:

nadilah.mranai@rwgenting.com
shahira.rahim@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.

Typescript – Builder Pattern and Inheritance

Using Typescript, I want to make a class of Builder of abstract class and follow a Builder Pattern and the child class will implement the details.

The parent abstract class:

The child class:

If you notice, you need to change the return of build() function into child class name.

typescript builder pattern and inheritance - child class
typescript builder pattern and inheritance – child class

Selenium – This version of ChromeDriver only supports Chrome version 85 error on Ubuntu

I use Selenium web driver to scrap some website data that I need for my property analysis. In this case I use chromedriver.

When I want to run it after I upgraded my Chrome browser on Ubuntu I found this error.

My steps to resolve this

1) Check my Chrome browser version and found it is 87.

google browser version
google browser version

2) Check my chromedriver version by typing

ubuntu check chromedriver version
ubuntu check chromedriver version

I found my version is 85 not same as my browser.

3) Check the location of the chrome driver by typing

In my case I found my chrome driver at /usr/local/sbin

chrome driver location on ubuntu
chrome driver location on ubuntu

4) Download the latest chromedriver at

Google ChromeDriver Website  till version 114

5) After extracting the latest chromedriver, replace the old one.

ubuntu replace old chromedriver
ubuntu replace old chromedriver

Then when I run back my program, it works!

World Biggest Technology Companies by Countries

I want to compare which countries have the most influence in technology. So I did my studies based on world biggest technology companies.

world biggest technology companies
world biggest technology companies

US still dominates technology with 50% of world biggest technology companies come from this country.

Followed by Japan (3), China (2), South Korea (2) and Taiwan (1).

From Y2018 to Y2019, number of companies from each country remains the same but China technology companies share in term of revenue increase marginally by 0.91% at the expenses of South Korea and the United States.

Besides, only US represents the Western countries which have biggest technology companies while the rest are all from Far East.

Reference:

Wikipedia – World Biggest Technology Companies

Surat Rayuan Pengurangan Cukai Taksiran Majlis Perbandaran

Saya amat terkejut dengan kadar cukai taksiran di Bentong sebanyak RM1,077.30 setahun untuk sebuah kondominium bersaiz 818 kaki persegi.

Ianya amatlah mahal jika dibandingkan dengan kadar cukai taksiran di Shah Alam di mana rumah teres hanyalah RM280.80.

Disertakan contoh surat bantahan cukai taksiran untuk mereka yang ingin menyerahkan bantahan kepada mana-mana majlis perbandaran.

Contoh Surat Bantahan Cukai Taksiran

contoh surat bantahan cukai taksiran majlis perbandaran
contoh surat bantahan cukai taksiran majlis perbandaran

Klik sini untuk contoh dalam PDF surat bantahan cukai taksiran Majlis Perbandaran.

Proses Bantahan

  1. Majlis Perbandaran akan menghantar surat kepada pemilik mengenai kadar cukai taksiran yang dikenakan.
  2. Pemilik hendaklah menghantar surat bantahan kepada Majlis Perbandaran
  3. Menghadiri sesi bantahan dan menerangkan dari segi fakta kenapa pemilik menganggap cukai taksiran adalah tinggi seperti perbandingan dengan Majlis Perbandaran yang lain.
  4. Majlis Perbandaran akan menggunakan akta kerajaan negeri tempatan untuk mempertahankan kadar cukai taksiran yang diberi.
  5. Majlis Perbandaran akan menghantar surat mengenai pengurangan atau mengekalkan kadar cukai taksiran selepas sesi bantahan tersebut.
  6. Jika Majlis Perbandaran telah menghantar bil cukai taksiran  anda hendaklah membayar terlebih dahulu.Jika bantahan cukai taksiran berjaya, Majlis Perbandaran akan mengubah dan mengambil kira bayaran yang terlebih untuk bayaran bil akan datang.

Pengalaman Menghadiri Sesi Bantahan Cukai Taksiran Majlis Perbandaran Bentong pada 23 September 2020

sesi bantahan cukai taksiran majlis perbandaran bentong 23 september 2020
sesi bantahan cukai taksiran majlis perbandaran bentong 23 september 2020
cukai taksiran majlis perbadaran bentong 2020
cukai taksiran majlis perbadaran bentong 2020

Majlis Perbandaran Bentong masih membenarkan pemilik untuk hadir sesi bantahan walaupun tidak menghantar surat. Cukup hanya menghantar email sebelum sesi bermula.

Sesi dimulakan dengan pengenalan kepada ahli-ahli majlis perbandaran yang hadir untuk mendengar sesi bantahan.

Pemilik menerangkan kenapa kadar cukai taksiran dianggap tinggi:

  • Perbandingan dengan kadar cukai taksiran Majlis Perbandaran yang lain
  • Fakta yang berkaitan dengan peribadi contoh telah  bersara, kos hidup yang tinggi.
  • Skop kerja Majlis Perbandaran tidak banyak terutama untuk kondomium di mana kebersihan kawasan dan landscaping diuruskan sendiri oleh JMB.

Majlis Perbandaran akan mempertahankan kadar cukai taksiran berdasarkan akta kerajaan negeri tempatan yang telah diluluskan di mana cukai taksiran dikira berdasarkan kadar dan harga rumah.

 

 

 

Resipi Nasi Goreng Tomyam

Long due to update blog on recipe and cookery. Sebenarnya i can say my cooking dah upgraded sket from before disebabkan pandemik COVID-19 lama sangat bertapa kat rumah macam-macam buat dari mengemas, make over, repainting sampai laa exploring resipi-resipi baru.

Slowly i will update mana-mana menu yang best and my family suka. Bila dah bosan dengan masakan bibik atau beli makanan luar mula akan google apa yang mudah dan sedap untuk di makan. Tomyam sup memang la common sangat kalau dah tak tau nak masak apa – match dengan telur dadar dan sayur pun dah cukup.

resipi nasi goreng tomyam
resipi nasi goreng tomyam

Hari ni i buat kelainan iaitu Nasi Goreng Tomyam

Pertama sekali masak nasi supaya bila nak campur dengan rencah nanti nasi tak superhot dan lembik.

Bahan – bahan;

  1. bawang merah + bawang putih + halia + cili api (kisar untuk dijadikan bahan tumisan)
  2. paste tomyam
  3. sos ikan
  4. ayam potong kecil atau ikut suka (utk siapa yang suka seafood boleh tukar accordingly)
  5. daun limau purut (hiris halus)
  6. carrot (potong mancis)
  7. sawi
  8. hirisan halus serai
  9. telur
  10. garam
  11. lada sulah
paste tomyam
ready made paste tomyam

Cara memasak;

  1. Masukkan minyak dan tumis bahan tumisan (bawang merah, bawang putih, halia dan cili api) sehingga kuning keemasan.
  2. Masukkan paste tomyam dalam 3-4 sudu besar dan hirisan serai (agak mengikut banyak  nasi yang akan dicampurkan kemudian)
  3. Apabila paste dah sebati dengan bahan tumisan barulah masukkan ayam dan carrot kacau sehingga masak. Pada masa yang sama boleh masukkan sos ikan, daun limau purutdan garam.
  4. Bila ayam sudah masak baru masukkan telur – kacau (2) teknik i guna biasanya dalam kuali sama just split side untuk stir telur tanpa mix dengan rencah tadi.
  5. Kemudian campurkan sayur sawi dan nasi – gaul rata sampai perencah sebati dengan nasi.
  6. Hidangan Nasi Goreng Tomyam selesai. Boleh add on keropok, telur mata atau ayam goreng untuk dimakan bersama. Tak nak add apa pun takpe. Selamat mencuba ya!