Python Circular Import Error if Import CSV or Pandas read_csv

I faced issue of circular import error when import CSV or pandas to read cvs file.
My python file name is csv.py

To rectify this is very easy. Ensure your file name is not CSV. If file name is CVS it will cause circular import.

Circular Import when file name is csv.py

python import csv or pandas cause circular import
python import csv or pandas cause circular import

No more circular import error when file name change to csv-reader.py

python import csv or pandas caused circular import if file name is csv
python import csv or pandas caused circular import if file name is csv

Why Shopee is more expensive than Lazada even from same company?

I want to buy Samsung computer monitor. I compared between Shopee and Lazada from same company. I noticed that Shopee is more expensive compared to Lazada.

Of course, I don’t take into account any discount provided by Shopee or Lazada.

Samsung Monitor 27 inch from EIT Store

shopee samsung monitor eit store more expensive than lazada
shopee samsung monitor eit store more expensive than lazada
lazada samsung monitor eit store cheaper than shopee
lazada samsung monitor eit store cheaper than shopee

Product link Shopee

Product link Lazada

Lazada: RM637.90 (monitor) + RM6.50 (delivery) = RM644.40

Shopee: RM695 (monitor) + RM5.60 (delivery) = RM700.60

Lazada is 8% cheaper vs Shopee.

Samsung Monitor 27 inch from CS Computer Shoppe

shopee samsung monitor cs computers shopee more expensive than lazada
shopee samsung monitor cs computers shopee more expensive than lazada
lazada samsung monitor cs computers shoppe cheaper than shopee
lazada samsung monitor cs computers shoppe cheaper than shopee

Product link Shopee

Product link Lazada

Lazada: RM639 (monitor) + RM11 (delivery) = RM650

Shopee: RM659 (monitor) + RM3.20 (delivery) = RM662.20

Lazada is 2% cheaper than Shopee.

Semak Cukai Taksiran Majlis Bandaraya Shah Alam MBSA

Saya puas mencari kat Google (menggunakkan desktop) pautan untuk semakan cukai taksiran Majlis Bandaray Shah Alam (MBSA). Malangnya tak jumpa.Tapi bila Google menggunakan phone jumpa pula pautan untuk menyemak cukai taksiran.

Pautan tersebut: https://pbtpay.kpkt.gov.my/

Pilih Majlis Bandaraya Shah Alam

semak cukai taksiran majlis bandaraya shah alam MBSA - cari shah alam
semak cukai taksiran majlis bandaraya shah alam MBSA – cari shah alam

Masukkan Akaun anda & Keputusan Semakan akan dipaparkan

semak cukai taksiran majlis bandaraya shah alam MBSA - hasil semakan
semak cukai taksiran majlis bandaraya shah alam MBSA – hasil semakan

 

NodeJS How To Have Unique Array of Objects

I want to have unique array of objects. So if I add an object, any objects which have same values won’t be added twice.
So I try use Set() data structure.

Adding Object directly to Set()

Output

Conclusion:

As you can see, the Set result is 3. It should be 2. So it doesn’t work

Adding a stringify Object to Set()

Output:

Conclusion:

The Set size is 2 with no duplicate values.

Overall Conclusion

So you can use Set but first stringifiy the objects than convert back the string to object by using JSON.parse() function

You can try thecoding yourself here:
Typescript Playground

Configure 16A Smart WIFI Plug Socket Power Switch APP Remote Control Timer UK Home Automation

I bought 2 WIFI sockets from Lazada and configured them accordingly. Last Friday my house’s electricity trip then suddenly I can’t connect anymore to the socket using Smart Life mobile application.

Lazada smart wifi plug
Lazada smart wifi plug

I have to reset back the WIFI connection of the WIFI sockets.

Add as If Want to Add New Device

smart life - add new device
smart life – add new device

Choose WIFI Socket

smart life - choose wifi socket
smart life – choose wifi socket

Power On the Device After It is Off for 10s

smart life - press and hold for 5s
smart life – press and hold for 5s

 

Press Hold The Power Off/On on the Device for 5s

smart life - press and hold for 5s
smart life – press and hold for 5s

LED will start blinking after press hold for 5s

If Blinking click Confirm and click Next

smart life - LED is blinking
smart life – LED is blinking

Key In Your WIFI Password

If you have multiple WIFI AP, the Smart Life mobile application will follow your current smart phone connected WIFI AP. If you want to choose different WIFI AP, change it via your smart phone.

smart life - key in wifi password
smart life – key in wifi password

 

Wait Until It Is Successfully Connected

smart life - finding the socket
smart life – finding the socket

After Successfully Connected, Smart Life will use back previous Device name and won’t create new

Panasonic Wifi Aircond Network Error using Panasonic Smart Wifi Control CZ-TACG1 Network Adaptor

Last Friday my house’s electricity trip then suddenly I coudn’t swith on my Panasonic wifi aircond. It shows Network Error.

My Panasonic wifi aircond is using Panasonic Smart Wifi Control CZ-TACG1 Network Adaptor to enable its WIFI.

When I open my aircond cover, the status and link LED are blinking.

So from there I know I have to reset back my aircond WIFI setting.

Add New Aircond

To reset the WIFI setting, click as if you want to add new aircond

panasonic aircond add new wifi aircond
panasonic aircond add new wifi aircond

Connect with AP Mode

panasonic aircond wifi adaptor connect via AP
panasonic aircond wifi adaptor connect via AP

Press Set Up Button until Status LED Change to Blinking Orange

In my case, my Status and Link LED are blinking green. So based on the Panasonic mobile application it asks me to press the reset button with sharp needle and then press set up button until Status link is blinking orange.

panasonic aircond wifi adaptor select link LED blinking
panasonic aircond wifi adaptor select link LED blinking
panasonic aircond wifi adaptor reset
panasonic aircond wifi adaptor reset
panasonic aircond wifi adaptor status orange blinking
panasonic aircond wifi adaptor status orange blinking

Click Next Then The App will Ask To Join the Panasonic AP

Join the Panasonic AP

panasonic aircond wifi adaptor connect to panasonic ap
panasonic aircond wifi adaptor connect to panasonic ap

Enter Your WIFI password

panasonic aircond wifi adaptor connect to your wifi AP
panasonic aircond wifi adaptor connect to your wifi AP

Then The App will ask to enter Device ID and Password

This step you just cancel it. After this you can control back your aircond without entering the device ID and password.

All LEDs will be green if everything is OK.

Git Command For Initial Push

Useful Git commands for initial push.

In below example I use <https://gitlab.com/lvlaxpt/to-delete.git>. So change this to your Git URL.

Git global setup

Create a new repository

Push an existing folder

Push an existing Git repository

Pull From Existing Repository

Malaysia Secondary Property Buying Process

Before Booking a Property

Before you do any booking, better check with any banks your loan eligibility to avoid any problem after booking a property.

Deposit 3.18% To Book a Property

If you book via property agent, ensure you deposit to the property agent company account not the agent personal account.

Please ask the agent,  in what conditions your deposit can be forfeited.If you deal directly with owner, ensure you deposit to owner lawyer or via your lawyer.

Housing Loan Application

If via agent, you can get them to assist you to send loan applications to multiple banks.

If not, you can do it yourself.

If your loan get rejected ensure you have black and white. Most agent will want to see 2 rejected loans in order to refund your deposit.

Housing Loan Approval

When you receive your loan approval and have the cash to pay the remaining the deposit,  you can sign the S&P.

S&P Signing

If you have any additional terms and conditions agreed with owner, ensure they are included inside the S&P.

Please vet through the agreement before signing.

Vacant Possession

Vacant Possession or VP means the unit is now belong to you. You can enter and occupy the unit.

Majlis Bandaraya Shah Alam Submit General Complaint

I found main hole covers near my house area are badly bent. It is really dangerous for any vehicles passing through the road. Furthermore during heavy raining, you can’t really see the dented main holes.

So I submit my complaint to Majlis Bandaraya Shah Alam (MBSA) via Selangor Sistem Pengurusan Aduan portal.

mbsa aduan general complaint form
mbsa aduan general complaint form

My Complaint To MBSA

mbsa aduan snippet
mbsa aduan snippet

The dented main hole covers

badly bent main hole cover
badly bent main hole cover

MBSA Keeps Resident Updated

Surprisingly few days after I submitted my complaint, MBSA officer called me and informed me when they will investigate it and told me if it is true the expected timeline to repair it.

Besides MBSA keeps sending email on the progress status

mbsa keeps resident updated on the complaint
mbsa keeps resident updated on the complaint

The new and more rugged main hole cover

repaired and more rugged main hole
repaired and more rugged main hole

Conclusion

I submitted my complaint on 14th April 2021 and the main hole covers are replaced on 15th May 2021. It took MBSA 1 month to replace them.

I like to praise to MBSA for their fast response and quick action.

How To Repair Dripping Water Tap

My kitchen water tap starts to drip even after fully closed it. When I went to hardware shop they told me that a problematic cartridge might cause the water dripping.

Unscrew The Water Tap Handle

Usually the screw is hidden at the handle and it is of hex socket.

Remove the Cartridge by Turning Anti Clockwise

See whether The Cartridge Has Problem or No

Mine as you can see there is a small gap.

Replace it With New Cartridge

You can get the cartridge at RM12.90 and the cap around RM8.

water tap cup and cartridge are sold separately
water tap cup and cartridge are sold separately

 

You also can buy the cup and cartridge at Shopee or Lazada. Ensure you choose the right size.

shopee and lazada selling water tap cup and cartridge
shopee and lazada selling water tap cup and cartridge

Tighten the new Cartridge and Put back the water Tap Handle