Wednesday, November 16, 2016

Javascript

JavaScript was created in Netscape and incorporated into Netscape browser in 1995.  It was initially called Mocha and Livescript. Later on a marketing deal was made between Netscape and Sun whom own Java, it was named to Javascript.  To justified for the name, all Java keywords are reserved words in Javascript.  Javascript's standard library also uses the naming convention as Java.  It'd Msth and Date functions also based on the standard class of Java 1.0 objects.  ECMA standardised Javascript and it is called ECMAscript.  So Javascript is like a dialect of ECMAscript.  Likewise Microsoft's JScript is also a dialect of ECMAscript but there are some incompatibilities.

Monday, October 10, 2016

Greek Mythology

Orion

He is a son of king of Thrace whom was initially childless.  He was liked by Gods and in return, the Gods grant him a son.  They asked him for the hide of a bull he has scarified.  Zeus, Poseidon and Hermes urinated on the hide and buried it.  Nine month later, Orion was born from the spot and his father named him Urion or Orion, i.e. "urine boy".

Amazon

A tribe of worrier women who lived in distant shore of Black Sea.  When a child is born and is a boy, he would be killed.  If it was a girl, the tribe would accept it as one of them and raise it.  When the girl reached puberty, they would cut off her right breast for her to have a better draw of bow.  The "a" means no and "mazos" means breast.

Pan

Son of Hermes and a nymph called Dryope.  When he was born, the laughing child has feet of goat. horns and a full beard.  Hermes brought him to show to the Gods of Olympus and they were delighted, naming him Pan which mean "all" in Greek.  He chased a nymph called Syrinx whom ran way.  When pan nearly caught up, she prayed to the river nymph for help and they transform her to reed.  Pan cut the reed to different length and invented the pan pipe.  Pan would bring terror to those that offended him and thus "panic" means uncontrollable fear.


Sunday, July 24, 2016

Oracle redo and undo

Changing data in database generated both redo and undo records. The undo record is saved in the undo tablespace. These undo records provide the read consistency feature will allow another transaction to refers to the old version of data while it is being changed (and not committed) depending on the isolation level. The undo record is also used for roll back. The undo record is tied to the data block via pointers (undo block address and record number). The pointer is recorded in the interested transaction list with a limited size. When the list is exceeded, oracle will return error message saying old version data is not accessible. 

Writing the undo record to undo tablespace generated redo records too. The redo records for the real change and the undo record are combined when writing to the log files. 

Each transaction has a private redo (strand) and undo buffer to reduce latch contention to the public redo log buffer. The redo and undo record will be written to the public buffer when transaction commits.