Skip navigation.
Home
Write anything I want to write...

Programming

Influenza A(H1N1) -- Current Situation in Malaysia

Last Updated: 13-Aug-2010 14:31 MYT

H1N1 has invaded Malaysia, and the threat is not over yet. So in addition of keeping track of the current global situation, I have also created this post to illustrate the current situation in Malaysia.

** The number of death cases

** The number of confirmed cases (Obsolete! I have stopped updating this as it seems that the updated figures are not updated regularly after 12-Aug-2009)

Important updates:

  • 15-May-2009: First confirmed case
  • 18-Jun-2009: First locally transmitted case
  • 13-Jul-2009: First time that a daily H1N1 count shows more locally transmitted cases
  • 17-Jul-2009: WHO said that the pandemic has been spreading at an unprecedented speed. Ministry of Health will focus on cases that require treatments in hospitals and clusters of ILI (Influenza-Like Illness). Statistics since 18-Jul-2009 reflect only these two situations.
  • 23-Jul-2009: First A(H1N1)-related death case [thestar.com.my] occurred on 21-Jul-2009. A(H1N1) was not the direct cause as he died from cardiac arrest due to ventricular fibrillation.
  • 27-Jul-2009: Second A(H1N1)-related death case [thestar.com.my] occurred on 26-Jul-2009.
  • 28-Jul-2009: Third death case [thestar.com.my].
  • 28-Feb-2010: A new death case is found to be related to A(H1N1) [h1n1.moh.gov.my]. It's diagnosed as "Septicemic Shock with Acute Respiratory Distress Syndrome secondary to H1N1 Infection". If I interpreted the document correctly, it was not counted a death case caused directly by A(H1N1) and was thus not included into the statistics in the official update by MOH.
  • 13-Apr-2010: The 78th victim [thestar.com.my] is reported on the news. I have failed to find the related report from the official site. (I have probably missed it.)

Source: H1N1 Situation [h1n1.moh.gov.my] (Ministry of Health Malaysia)

I use Gnuplot [gnuplot.info] to generate the charts with the help of a script and a data file (in which I updated it manually). I have also written a python script to automate the update process: Generates, previews, and uploads the chart to the website.

Influenza A(H1N1) -- Current Global Situation

Last Updated: 11-Aug-2010 (Graphs: 13-Aug-2010 06:31 UTC)

Update: The H1N1 pandemic is officially over. Hopefully it's really over and I don't need to update this post again!

The threat of Influenza A(H1N1) is not over yet. I have created the charts below to illustrate the current situation, and will update them regularly with my scripts (That's why I put this post under 'Programming' too, and see below if interested).

Other important updates:

** The number of death cases

** The number of confirmed cases (Up to 22-Nov-09 only)

** The mortality rate (Up to 22-Nov-09 only) (Note: The figures are obtained simply by dividing the number of death cases by the number of confirmed cases. Since confirmed cases need not be reported after July-2009, the mortality rate after that does not really reflect the actual situation.)

Source: WHO updates on Influenza A(H1N1) [www.who.int]

I use Gnuplot [gnuplot.info] to generate the charts with the help of a script and a data file. I used to use a python script to automate the entire update process: Fetches the latest updates from WHO website, parses the page, generates the latest data file, generates the charts, and finally uploads the charts. However, since the format became less well-formatted starting from update 60, I have since abandoned the script and update the data manually.

[Refresher] Object Model in PHP 5

Official References (From the online PHP Manual):

  • Classes and Objects (PHP 5): http://www.php.net/manual/en/language.oop5.php
  • Type Operators: http://www.php.net/manual/en/language.operators.type.php
  • Class/Object Functions: http://www.php.net/manual/en/book.classobj.php

Basic

[Refresher] POSIX.1 Advisory File Locking

The sample code here demonstrates the following techniques:

  • The use of POSIX fcntl() to perform file locking
  • The realization of mutual exclusion via file locking

[Refresher] TCP/IP with Multiple Clients and Concurrent Server

The sample codes here demonstrate the following techniques:

  • Concurrent FTP Server
  • The use of standard I/O with POSIX sockets
  • The handling of Unix signal SIGCHLD to prevent terminated children from becoming zombies
  • The handling of system calls interrupted by caught signals

[Refresher] Pipes and FIFO Special Files (in POSIX)

Use pipes (nameless/unnamed) and FIFO files (named pipes) in POSIX.

[Refresher] I/O Multiplexing with select()

Last Updated: 12-Nov-08

We want to make a Unix system call select() and proceed only when

  • some file descriptors are ready for reading, or
  • some file descriptors are ready for writing, or
  • after 2.3 seconds (maximum) have elapsed.
Syndicate content