Productivity Notes

3P – Plan. Prioritize. Perform

Time wasters – recognize them and develop strategies to deal with them

  1. perfectionism – focus first on doing right things, before doing all things right
  2. multitasking- use time block to focus on one thing at a time
  3. procrastination
    1. confusing activities with accomplishment
    2. apply 80/20 rules to prioritize and get important things done fast
    3. break to smaller achievable tasks
    4. take the first step. just do it
  4. interruption
  5. looking for things
  6. meetings
  7. too much time spend for management

Server Management Tool

If you have VPS and don’t know much on linux command to manage, you have option to use server management tools like the following

    1. come with 5 day free trial for PRO
    2. free package available with limited features
  3. laravel forge – no trial or free package

good reading on review of those tools

Property investment resources for Malaysian

if you are looking for information, below are some resources that might be useful

To look for property – to buy or to sell


To get information and discussion

  1. Lowyat PropertyTalk
  2. PropCafe

Check for market price


Mortgage calculator

  2. propertyguru

Check CCRIS and CTOS

  1. CTOS Credit

Mortgage rates

  1. imoney


Ways to avoid duplicates due to browser refresh

Below are scenarios that may cause duplicates

  1. browser refresh upon successful form submission
  2. browser refresh while the page still processing/loading
  3. resubmit the form again (by clicking on the button more than once)


  1. Post-redirect-get (PRG) – on wikipedia
  2. One easy way is to have injected a hidden parameter with a random hash/number (e.g called token). Upon submission you’ll have to check that the token you expect (which you’ll have probably stored in the http session) is being sent together with the other POST parameters. On valid submission you’ll remove/invalidate this token. That way when a POST comes which a non recognised token then it’s most probably a duplicate or out of date request. source
  3. To check whether the data submitted exist in the database. This is the most tedious part to do and you need to have a unique data for this. i.e. the data must be unique in the table or create a unique data for this purpose sent together with other data.
  4. Add a one-time token to your forms and save it to the $_SESSION-variable. Then if it is used (form is submitted), remove it from the session (or create a new token). If the form is then sent again, the two tokens don’t match and you have a duplicate entry (you can ignore the second for example). source 


Notes on Azure

Some notes on Microsoft Azure

3 type of services provided

  1. App Service –  Scalable Web Apps, Mobile Apps, API Apps, and Logic Apps for any device
  2. Cloud Service – Highly available, scalable n-tier cloud apps with more control of the OS
  3. Virtual Machines – Customized Windows and Linux VMs with complete control of the OS

Important steps you should know in creating an application

  1. Create a “resource group”. All your services will be grouped under this resource group
  2. Create an “app service plan” – package of data center location, cpu and memory size
  3. Create an “web app service” – based on plan and under resource group created in step 1 and 2

More resources and references

  1. More info on services
  2. Azure calculator
  3. VM sizing options – compute, memory
  4. Azure roadmap – see what’s in preview and what have gone generally available (GA)

Summary of Azure services (click to enlarge)

Other readings/resources:

  1. Running a High Volume Website on Azure Infrastructure Services
  2. Azure documentation
  3. Step by step PHP on azure (starting from create resource, web app, transfer file via git, mysql etc)


Some general info for reference regarding MRSM TAR (MRSM Tun Abdul Razak), Pekan Pahang

Jadual pulang bermalam (2017)

  1. 22/07 – 23/07
  2. 26/08 – 03/09
  3. 07/10 – 8/10
  4. 21/10 – 22/10
  5. 26/11 – 31/12

Download borang pulang bermalam
(untuk tarikh yg tidak tersenarai di atas)

Cara penghantaran borang

  1. Isi borang PB di atas
  2. Scan dan email kepada mrsm_pekan @
  3. Minta anak pergi ke pejabat pada hari Khamis/Jumaat untuk semak keputusan



Maktab Rendah Sains MARA Tun Abdul Razak
KM 29, Jalan Kuantan-Pekan,
Pulau Serai,
43100 Pekan,
Pahang Darul Makmur


No Tel Pejabat: 09-4260163/175/176
No Tel Pengetua: 09-4260170
No Fax: 09-4260170

Related links

  2. sync
  3. FB official
  4. FB muafakat
  5. – last updated 2012