WebDriverIO Version 5 vs Version 4 Differences

I used webdriverIO library in my programming. Recently I upgraded from version 4 to version 5. To my horror so many breaking changes and not much explanation on the internet. So I put some difference on it.

WebDriveIO – Version 4

  const options = {
    desiredCapabilities: {
        browserName: 'firefox'
    }
  };

  const browser = webdriverio.remote(options);
  await browser.init();

  const select = "a";
  const attribute = "href";

  let results = await browser.getAttribute(selector, attribute);
  results = await browser.getHTML(selector);

WebDriverIO – Version 5

const options = {
    capabilities: {
        browserName: 'firefox'
    }
  };

  const browser = await webdriverio.remote(options);


  const select = "a";
  const attribute = "href";

  let elements = await browser.$(selector);
  let results = await elements.getAttribute(attribute);

  elements = await browser.$(selector);
  results = await elements.getHTML(selector);

The Difference

  1.  In version 5, options desiredCapabilities change to capabilities
  2.  In version 5, need to put await in remote and no need to declare init() anymore as it is deprecated.
  3. In version 5, use $(selector) to select elements before getting elements content or attribute.

Reference

Breaking Change WebDriverIO from Version 4 to Version 5

WebDriver version 5 Release Announcement

Real Kids 2020 Pre-school Education Fees

At this third quarter of the 2019 schooling, we received letter from school requesting confirmation for our son next year enrollment.

They need confirmation so they can plan out next year opening seats for new registration. They offered us a complimentary custom-made poncho for swimming classes and apron for art and culinary classes for confirmation before end October 2019.

I share with you all Real Kids 2020 fees for your market survey or reference if you are looking for the rates.

Realkids 2020 fees
Real kids 2020 education fees
Supplementary and other fees realkids 2020
Supplementary and Other fees – Real kids 2020

Embayu Damansara West Review

Scale Model

embayu damansara west scale model
embayu damansara west scale model
embayu damansara west scale model block A & block B
embayu damansara west scale model block A & block B
embayu damansara west scale model - swimming pool and planned block C
embayu damansara west scale model – swimming pool and planned block C
embayu damansara west scale model - pond garden
embayu damansara west scale model – pond garden
embayu damansara west scale model - pond garden
embayu damansara west scale model – pond garden
embayu damansara west surrounding price per sqft
embayu damansara west surrounding price per sqft

Show Unit with 3 Bedrooms

embayu damansara west show unit - living room 2
embayu damansara west show unit – living room
embayu damansara west show unit - living room
embayu damansara west show unit – living room
embayu damansara west show unit - dining area
embayu damansara west show unit – dining area
embayu damansara west show unit - third bedroom
embayu damansara west show unit – third bedroom
embayu damansara west show unit - second bedroom
embayu damansara west show unit – second bedroom
embayu damansara west show unit - master bedroom
embayu damansara west show unit – master bedroom

Layout of Type A1

embayu damansara west show unit - layout
embayu damansara west show unit – layout

Price List

embayu damansara west price list
embayu damansara west price list

Agent Contact

James – 011 3245 9299

No More Maid i-Kad Issuance – Starting August 2019

For 2019, as usual my maid permit needs to be renewed before her work permit expiry by middle of September 2019.

I proceed with MyEG Services and chose to self collect at MyEG office. Not like 2018, this time they have change office to its own MyEG Tower at Empire City. That new building is on the opposite road of Ikea, Cycle and Carriage, Mutiara Damansara or easiest same row with MOFAZ Damansara.

myeg tower new office
myeg tower new office

Depending on which side of the road your driving from, I was from Penchala Link and waze direct me to other side of entrance. Easier for you to get waze direction since that driveway still messy with MRT under construction.

Back to my point, after MyEG staff settled putting the work permit sticker on passport, I was informed that ‘government’ no longer issue ikad to maid.

But to get clearer picture on why? I also dont know. There is nothing stated as well on immigration websites . I am still digging but no online results found … sigh..

News on Why No More i-Kad Issuance

 

Node Red Set POST Parameters for HTTP Request

It is easy to set POST parameters for HTTP request.

The Flow Diagram

node red set post parameters for http request flow diagram
node red set post parameters for http request flow diagram

Steps To Set Get Parameters

1) Inject Node

– Payload – can set to anything. In my case I use timestamp

node red inject node
node red inject node

2) Function Node

– Set POST parameters value here
– msg.headers must set the content type.
– All the POST parameters are set inside msg.payload and the parameter names must correspond to RESTFUL API that you query.

msg.headers={ 
    'Content-Type': 'application/x-www-form-urlencoded'
};
msg.payload = {};
msg.payload={ 
    'ID': 1159
};
node red - function node setting post parameters for http request
node red – function node setting post parameters for http request

3) HTTP Request Node

– Choose method: POST
– Set the correspondent RESTFUL endpoint.

node red - http request node properties
node red – http request node properties

4) Debug Node

– Use to display the output

node red http request post output
node red http request post output

Notes:

Node Red version used – v0.20.7

Node Red Pass GET Parameters for HTTP Request

It is easy to set GET parameters for HTTP request. You need to use the mustache brackets inside the URL itself.

The Flow Diagram

node red http request flow diagram
node red http request flow diagram

Steps To Set Get Parameters

1) Inject Node

– Payload – can set to anything. In my case I use timestamp

node red inject node
node red inject node

2) Function Node

– Set parameter GET value here
– In my case I use parameter name “path” and “limit”, set as msg.path and msg.limit
– You can use any name for your parameter name but it be the same as in HTTP Request Node

node red function node set get http request parameters
node red function node set get http request parameters

3) HTTP Request Node

– Choose method: GET
– In the URL, use mustache brackets to declare your variable {{{path}}}
– The parameter name must be same as in the Function Node

node red http request node
node red http request node

4) Debug Node

– Use to display the output

node red debug output with GET parameter value
node red debug output with GET parameter value

Notes:

Node Red version used – v0.20.7

Node Red Set Parameters HTTP Request GET – Flow File Example

House Wiring Guidelines

I do a lot of new wiring for my properties. Usually I just hire electrician or civil contractors to do wiring without much thought whether the wires they used are suitable or not in term of ampacity (the maximum current the conductor can carry continously).

Until one day, one electrician told me the wires that I used for my fan and lamps are too thin to carry the current. It could pose fire risks. This is eyes opener.

Few days after I got the advise, one of new wiring was overloaded. The wires inside were burnt.

wires burnt due to overload - it is used for fridge and air fryer using 0.75mm wires
wires burnt due to overload – it is used for fridge and air fryer using 0.75mm wires

So I did my own studies as a guidelines to me, so when I hire an electrician I would know whether the wires and the way they connect to the electric power is able to support or no the possible current usage.

Guidelines on Wires Size

This is a guidelines only better check with your trusted or certified electrician.

If the same wire use for fan, lamps, fridge etc, you must add all the amperes and from the derive the required wire cross sectional area.

Of course usually, electrician will put extra buffer for the wire size.

UsageExpected Power (Watts)Expected Current (Ampere)Expected Wire Size - Cross sectional area (mm2)Advisable Connection Type
Ceiling Fan750.31250.5Direct / Plug
Aircond (1 HP)7503.1251.5Direct
Water Heater3,600152.5Direct
Fridge (450L)460.19170.5Direct / Plug
Air Fryer1,4005.832.5Direct
Lamps750.31250.5Direct / Plug
Washing Machine5002.0831.5Direct
Ampacity based on single phase

Connection Type

This is my own definition not electrician definition.  There are two types of connection:-

  1. Use plug to existing plug point
  2. Tap direct into existing wires in plug point.

Use Plug

The maximum current is 13 ampere as the fuse can only handle up to that ampere.

use plug of 13 amp
use plug of 13 amp

Direct Loop to Existing Plug Point

This is better at maximum if not mistaken it is loop directly to existing cable of 2.5mm2 or supported maximum current of around 22 ampere.

loop direct to plug point
loop direct to plug point

What to Avoid For Wiring

Water Heater

For water heater, don’t use plug better use direct loop to existing wires. Especially water heater produces vapor that might cause short circuit and easily makes the wiring wear and tear faster.

burnt plug where water heater using plug
burnt plug where water heater using plug

What is Watt, Ampere & Volts?

Watt is power unit with formula as below:

Watt (W)= Amperage (A) x Voltage (V)

Analogy with water garden hose:-

Water come out from garden hose (watts) = Water volume (Amperage) x Water pressure (voltage)

Recommendation on Wire Size

Ligthing & Ceiling Fan: 1.5mm2
Aircond 1.5HP and below: 2.5mm2
Adding new plug / power point: 2.5mm2

Recommended Wiring Contractor

Below is my recommended wiring contractor for Shah Alam or Kota Damansara area.

Azworld Tech (Azrin) – 0 17-376 0530

  • Appointment on time
  • Expert and reasonable charging

References

Formula Wheel Electrics
Formula Wheel Electrics – reference sengpielaudio.com
Wire Size - Cross sectional area (mm2)Maximum Current (A)Maximum Powers (Watts)
0.53720
0.7561,440
1.0102,400
1.25133,120
1.5153,600
2.522Can't find the information
4.030Can't find the information
Ampacity based on single phase

Wire Size & Ampacity
Wire Size & Ampacity 2
Wire Size & Ampacity 3
Wire Size & Ampacity 4

Lowyat Forum Discussion on Wiring

How To Renew Indonesian Maid Permit In Malaysia Using MyEG in 2019

Easy Peasy,

Lemon Squeezy, 

With MYEG,

Make life easy!

 Haahaa.. This year, 2019 is my Indonesian helper 10th years in service. Not like last year (2018) this time, it was way easier to do permit renewal because I didn’t need to send her for FOMEMA check-up.  steps for maid permit renewal

Since she just got back from her hometown for two months break, her work permit validity only left about one month.

To make things easy for us before she went back for her hometown, I cleared all the processes. Below is how to renew maid permit for 2019:-

  1. Prepare employment contract with Indonesian Embassy.
  2. Renew her passport. (Because to renew her work permit with immigration, her passport validity must no less than 3 months of expiry from her 1 year renewal term of work permit).
  3. Transfer work permit sticker from old passport to new passport. (with cost).
  4. Updating an immigration systems of all latest passport information and interlinked with MyEG for upcoming MyEG renewal process.

When she returned from her break, I only need to logon to MyEG service website and key in all the information for renewal with payment.  That’s all!

MyEG website for maid permit renewal
MyEG website for maid permit renewal
  • Choose immigration and click at Maid Permit Renewal
MyEG website for maid permit renewal
MyEG website for maid permit renewal
  • Fill up all your details
MyEG website for maid permit renewal
MyEG website for maid permit renewal
  • Choose your collection method
MyEG website for maid permit renewal
MyEG website for maid permit renewal
MyEG website for maid permit renewal
MyEG website for maid permit renewal
  • Cost Involvement for Maid Permit Renewal

Total cost for Work Permit Renewal is RM610. Cost inclusive of Pass Charge RM60.00, Levy Charge RM 410, Visa Charge RM15, and Process Charge RM125.

MyEG website for maid permit renewal
MyEG website for maid permit renewal
  • Choose Your Payment Method. Make sure you disabled pop up blocker for this website for payment gateway to pass through.
MyEG website for maid permit renewal
MyEG website for maid permit renewal
  • At the end of transaction you will receive payment summary and if successful you can print your online receipt.
  • Keep receipt number so it will be easier for you to follow up if needed.
  • collection

 

What To Eat at Genting Highland- Delicious Thai Cuisines > choice#1

We have been making few staycation trips at Genting Highland just to have feel of living and enjoying view up the hills.

Within month of August 2019, we make 2 trips. Each stay around 2 to 3 nights using AirBNB booking facilities for homestay. Only one of the homestays provides induction stove for cooking which we decided not to spent time on cooking but just eat out and explore food places.

I will share one good place, we hunt for food up here.

Choice #1: NOK SOKMO GENTING TOMYAM – Restoran Masakan Thai dan Masakan Kampung

Location: Genting Permai, in front of GEO38 Condominium.

Latitude Longitude: 3.386584, 101.774920

This restaurant serving delicious halal Thai cuisines which most of the night time all tables are taken. Make sure you come early for dinner (before 7.30pm) so your order come quick and no need to wait for vacant table.

We ate few times there just because of its satisfying flavours and at affordable price.

Ordered same dishes were never bored for me laa.  Hehehe. So this was the food that we ate repeatedly.

Tomyam Ayam, Telur Dadar, Kailan Ikan Masin, Kangkung Belacan and Ayam Pad Krapow
Tomyam Ayam, Telur Dadar, Kailan Ikan Masin, Kangkung Belacan and Ayam Pad Krapow
Ikan siakap masak tiga rasa at Genting Permai
Ikan siakap masak tiga rasa at Genting Permai

Price range for all of the above within RM91 – RM94, with 5 bowls of plain rice and ice water or maybe with additional 1 or 2 glasses of teh tarik and kopi O. Food deliciously cook and worth the price. Cheaper for that 5-6 lauk.

It is cheap and good food especially in Genting now the food price is expensive.

You may explore other foods which they also serve ‘masakan kampung’. tapi belum try lagi sebab yang atas tu sedap sangat. ;P

OTHER MENU:

Aneka Nasi Menu at Genting Permai
Aneka Nasi Menu at Genting Permai
Masakan Ayam at Genting Permai
Masakan Ayam at Genting Permai
Masakan daging and seafood at Genting Permai
Masakan daging and seafood at Genting Permai
lain - lain specialty at Genting Permai
lain – lain specialty at Genting Permai