browse by category or date

Updates on measures for work pass holders, and reminder on the seriousness of Stay Home Notice (SHN):

[Sent by Gov.sg – 19 Mar]

MOM entry approval for work pass holders
– From 20 Mar, 2359 hours, all work pass holders (incl dependants) planning to enter S’pore from any country, will need MOM’s approval before they commence their journey
– Upon arrival in S’pore, all affected work pass holders will be placed on a 14-day Stay-Home Notice (SHN)
More: go.gov.sg/momentry

Advisory for all persons issued SHN
– Remain in place of residence at all times
– Don’t leave to buy food and essentials; Opt for home delivery or ask neighbours/grassroots for help
– Minimise contact with people, avoid visitors
– Maintain record of people in close contact with
– Take temperature twice daily; monitor for respiratory symptoms

Penalties for non-compliance
– Fine of up to $10,000 and/or 6-mth imprisonment for 1st offence
– SG PR, Long-Term Pass Holders: Re-entry permit/passes may be revoked
– Foreign employee: Work pass may be revoked
– Employers: May be banned from applying work passes

More: go.gov.sg/govsg-shn

Updates on measures on schools:

[Sent by Gov.sg – 19 Mar]

COVID-19: Measures in schools

23 Mar: Schools/kindergartens will re-open as planned

14-day Leave of Absence (LOA)
For all students/staff who have been out of SG on/after 14 Mar

14-day Stay-Home Notice (SHN)
For all returning travellers, WEF 20 Mar 2359hr

During the LOA/SHN
– Students supported via home-based learning
– Parents will need to take leave if childcare is needed; employers encouraged to be flexible

For the next 2 wks
– Suspension of Co-Curricular Activities
– Deferment of SYF
– Assigned/exam-style seating + wipe-down routine in class, canteen

At preschools
– Frequent temp checks, restrict visitors
– Field trips, large grp/communal activities suspended
– Limit deployment of staff across centres

More: Go.gov.sg/moe19mar

MFA encourages S’porean students studying overseas to return home soon:
go.gov.sg/overseas-students

Updates on confirmed and discharged cases:

[Sent by Gov.sg]

COVID-19: 19 Mar Update

As of 12pm:
New cases: 32
Total cases in Singapore: 345
Discharged today: 7
Total discharged: 124
Total remaining in Hospital: 221

Of the new cases, 24 are imported cases with travel history to Europe, North America and ASEAN. 1 is linked to a known cluster, 1 is linked to previous cases, and 6 are currently unlinked.

Most in hospital stable or improving. 15 in ICU.

go.gov.sg/moh19mar

Stay home and stay safe everyone!

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

Possibly relevant:

Since I reported the bug of JSON Table Editor on Microsoft Edge/Internet Explorer (SCRIPT462: The remote server machine does not exist or is unavailable), I kept on digging on how to solve it. Last night, I finally found the bug and resolved it. Here’s how I found the solution to this bug.

So when the child window of JSON Table Editor clicked , it will update the record on the parent window using below method:

// window.opener -> parent Window
// window.opener.childs -> array of child windows
for (var i = 0; i < window.opener.childs.length; i++) {
	var o = window.opener.childs[i];
	// window -> the child window
	if (o.wh === window) {
		// o.record is a reference to record being edited in this child window		
		o.record.set(o.column, _a); // set column value with _a. _a -> array of records in this child window
		window.opener.fnJTEOutput(); // call parent's function to update
		window.opener.Ext.getCmp('btnOutput').enable().break; // Enable parent's btnOutput
	}
}

When we clicked [Finish Editing] on the first child, it works. The parent’s JSON output is showing the updates done in the child window. But when we open another child window, and clicked [Finish Editing], below exception happened on the parent Window:

Edge / Internet Explorer Exception

The remote server machine does not exist or is unavailable

Below is where the exception was thrown:

I googled for this error, but the result is mostly VBA/Excel error. Then I saw a discussion on GitHub that says object referenced from pop-up throws error after the pop-up close, in Internet Explorer.

So I did another round of debugging and monitored records on the parent window. I was editing the timelines column. After I modified the array of records under timelines column, I clicked [Finish Editing]. After the child window closed, I inspect the records on the parent window. Bingo!

I repeat above experiments just to make sure. I confirm that before the child window close timelines value was array of records. The moment the child window closed, it becomes like what is shown above. NOTE: This is not happening in other browser (Chrome, Firefox, Opera).

So I changed my code. Instead of passing an object, we serialize it then deserialize using JSON.

for (var i = 0; i < window.opener.childs.length; i++) {
	var o = window.opener.childs[i];
	if (o.wh === window) {
		o.record.set(o.column, Ext.JSON.decode(Ext.JSON.encode(_a)));
		window.opener.fnJTEOutput();
		window.opener.Ext.getCmp('btnOutput').enable().break;
	}
}

But it still didn't work. I then realize my stupid mistake 😀 As long as the updating of parent Window's value is done by the child Window, parent Window still consider the updated value as belongs to the child Window.

So I modified my code again, this time the value update is done on the parent Window:

// checkedOpener -> window.opener
if (checkedOpener) {
	// call parent Window's function
	checkedOpener.fnUpdateStoreRecord(window, Ext.JSON.encode(_a));
	if (window.childs && window.childs.length == 0)
		closeWindow();
}

The value update is now in a new function

var fnUpdateStoreRecord = function (w, _a) {
	for (var i = 0; i < window.childs.length; i++) {
		var o = window.childs[i];
		if (o.wh === w) {			
			// Deserialize before assigning value
			o.record.set(o.column, Ext.JSON.decode(_a));
			window.fnJTEOutput();
			window.Ext.getCmp('btnOutput').enable().break;
		}
	}
}

That's all folks! I hope it helps. It's really like having splinter removed from my finger 😀

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

Possibly relevant:

Updates on Malaysia’s Movement Control Order:

[Sent by Gov.sg – 18 Mar]

Update on M’sia’s Movement Control Order (MCO)
– S’pore-M’sia Special Working Committee on COVID-19 established to coordinate continued flow of goods, cargo, and food supplies between S’pore and M’sia.

Can S’poreans currently in M’sia leave the country during the MCO period?
Yes, but they should be prepared for significant travel inconveniences due to the restrictions; and will not be allowed to re-enter M’sia during the MCO period.

Are S’poreans allowed to enter M’sia during the MCO period?
All foreigners who are not employed under “essential services” in M’sia will not be allowed to enter.

Will there be flights operating out of M’sia during MCO period?
Based on current avail info, various airlines are still operating flights out of M’sia. Please check directly with respective airlines.

go.gov.sg/mco

Update on the number of confirmed and discharged cases:

[Sent by Gov.sg]

COVID-19: 18 Mar Update

As of 12pm:
New cases: 47
Total cases in Singapore: 313
Discharged today: 3
Total discharged: 117
Total remaining in Hospital: 196

Of new cases: 33 imported, 9 linked to previous cases, 5 currently unlinked

Most in hospital stable or improving. 15 in ICU.

go.gov.sg/moh18mar

Additional measures to reduce imported cases

About 70% of recent new cases imported; most S’poreans and residents returning from travel

👉 With immediate effect, S’pore residents are advised to defer all travel abroad. Avoid being infected abroad and spreading infection here.

14-day Stay-Home Notice (SHN) for all entering SG

From 20 Mar 2359hrs, all S’poreans, PRs, Long-Term Pass Holders, Short-Term Visitors entering S’pore will be issued 14-day SHN

Short-term visitors who have visited Mainland China, France, Germany, Italy, Iran, Republic of Korea, Spain in the last 14 days will not be allowed to enter or transit

go.gov.sg/travel18mar

Singapore just have its biggest number of confirmed cases in a single day!!! Stay safe everyone!

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

Possibly relevant: