COVID-19: Good practices to adopt
Advice from infectious disease expert Dr Leong Hoe Nam
1. Can I catch COVID-19 from a healthcare worker’s clothes?
Healthcare workers are trained professionals. In the hospital, they are gowned up with protective equipment. What they wear underneath would be kept clean
2. Should I be worried about my medical appointment at the hospital?
The chances of picking up COVID-19 at the hospital is low. Make an appointment to see your doctor. Stick to your schedule, go for the appointment and come back quickly.
3. Why shouldn’t we doctor-hop?
When you doctor-hop, the doctor may fail to appreciate the gravity of your case if you have been infected and the changes in you as the disease progresses.
Update on number of confirmed and discharged cases:
[Sent by Gov.sg]
COVID-19: 23 Feb Update
As of 12pm: New cases: 0
Total confirmed: 89
Discharged today: 2
Total discharged: 51
Total still in hospital: 38
Most in hospital are stable or improving. 5 are in the intensive care unit.
More: Go.gov.sg/moh23feb
Travel advisory
With the situation in Korea, MOH advises travellers to avoid non-essential travel to Daegu and Cheongdo. MOH also reminds the public to exercise caution when travelling to the rest of Korea.
From 23 Feb, the definition of suspect cases will be expanded to include persons with pneumonia or severe respiratory infection with breathlessness who had been to Daegu and/or Cheongdo, within 14 days before onset of symptoms.
Details: Go.gov.sg/moh23feb-rok
This is a good news. No new cases means the virus is hopefully somewhat contained. But considering that MOH haven’t reduce the DORSCON level, we must remain vigilant and extremely careful with our hygiene.
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.
This is the continuation of my previous post. On that post I found that the exception was thrown on this line:
store = Ext.create('Ext.data.Store', {
storeId: 'modelStore',
model: 'mdl'
});
By logging the exception into console, we can see the stack trace:
So I put a breakpoint inside functionFactory and clicked the “Load to Grid” button again. From there, I can see functionFactory throws error because of the strings it received from its caller.
Its caller was buildRecordDataExtractor:
buildRecordDataExtractor: function() {
var c = this,
a = c.model.prototype,
b = {
clientIdProp: a.clientIdProperty,
fields: a.fields.items
};
c.recordDataExtractorTemplate.createFieldAccessExpression = function() {
return c.createFieldAccessExpression.apply(c, arguments)
};
return Ext.functionFactory(c.recordDataExtractorTemplate.apply(b)).call(c)
}
From there we can see that the string template is declared inside recordDataExtractorTemplate:
By observing the string array template above and comparing it with the generated string, we can find that method createFieldAccessExpression is responsible for generating portion of the string which throws exception.
createFieldAccessExpression: (function() {
var a = /[\[\.]/;
return function(o, d, e) {
var b = o.mapping,
m = b || b === 0,
c = m ? b : o.name,
p, g;
if (b === false) {
return
}
if (typeof c === "function") {
p = d + ".mapping(" + e + ", this)"
} else {
if (this.useSimpleAccessors === true || ((g = String(c).search(a)) < 0)) {
if (!m || isNaN(c)) {
c = '"' + c + '"'
}
p = e + "[" + c + "]"
} else {
if (g === 0) {
p = e + c
} else {
var j = c.split("."),
l = j.length,
k = 1,
n = e + "." + j[0],
h = [n];
for (; k < l; k++) {
n += "." + j[k];
h.push(n)
}
p = h.join(" && ")
}
}
}
return p
}
}())
In order to access the property using array index, we must add our condition into this line:
After a few tries, here's the code that solved it:
g = String(c).search(a);
h = String(c).indexOf(".");
while (h>0 && !i) {
i = parseInt(c[h+1])>=0;
h = String(c).indexOf(".", h+1);
}
if (this.useSimpleAccessors === true || g < 0 || i) {
// ... SNIP ...
}
Now it works!
I hope it helps!
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.
Items like masks and hand sanitisers have been in higher demand.
If you are looking to purchase online:
– Check the credibility of sellers
– Avoid making advance payments
– When in doubt, purchase only from reputable sellers
If you think you’ve been scammed, call the helpline: 1800-722-6688
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.