Skip to main content

Posts

Showing posts from April 20, 2021

Three Baskets of Buddhism

  ព្រះត្រៃបិដកជាភាសាខ្មែរ ខ្មែរបានប្រែព្រះត្រៃបិដកចប់មុនគេក្នុងចំណោមប្រទេសពុទ្ធសាសនាក្នុងលោក សាសនាធំៗ សុទ្ធតែមានគម្ពីរ ដែលស្តីពីវចនៈរបស់មេសាសនា ។ គម្ពីរនេះ គេប្រកាន់ទុក​ជាគម្ពីរស័ក្តិសិទ្ធ ស្មើនឹងមេសាសនាដែរ ។ គម្ពីរព្រាហ្មណ៍ឈ្មោះ វេទ គេទុកជា “គ្រុតិ” (ការបានស្តាប់ឮមក=Révélation) ពីព្រះមហេឝ្វរ (អាទិទេព) ។ គម្ពីរនេះ ចាស់បរមបូរាណបំផុតក្នុងលោក ដែលមនុស្សលោកអាចធ្វើឲ្យកើតឡើង​បាន តែមិនដែលមានការរើរៀបចំ (ផ្ទៀងផ្ទាត់) ពីអតីតកាលទេ ទើបតែមានការរើរៀបចំក្នុងពេល​ដែលគម្ពីរនេះ មានប្រែប្រួល ក្រោមជាលើ លើជាក្រោមទៅហើយ ប្រមានជា ៧០០ ឆ្នាំកន្លងទៅ​នេះ ។ គម្ពីរគ្រិស្តឈ្មោះ ប៊ីប (Bible)។ គម្ពីរនេះ ក្រោយមរណកាលព្រះយេស៊ូភ្លាម គេមិនទាន់​បាន​រៀបចំចងក្រងជាគម្ពីរនៅឡើយទេ តមកយូរបន្តិច ទើបមានសាវ័ករើរៀបចំចងក្រងទុកជាគម្ពីរ ហើយមានការបន្ថែមមន្ថយច្រើន មិនគង់វង្សនៅត្រង់តាមដើមទាំងស្រុងទេ ។ គម្ពីរ ប៊ីប នេះ​ទៀតក៏ជា “Révélation” (ការបានឮមក) ពីព្រោះអាទិទេពដែរ ។ គម្ពីរឥស្លាមឈ្មោះ កូរ‑អាន (Qor An) ប្រៃថា “ការអាន” (Lecture) ។ គម្ពីរនេះ មានលក្ខណៈ​ជាច្បាប់សម្រាប់ប្រទេសជាតិ ច្រើនជាជាងលទ្ធិសាសនា ដោយពិសេស ជាច្បាប់សង្គមស្តីពី​គ្រូសារ ឬទ្រព...

Three Ways to Insert CSS

There are three ways of inserting a style sheet: External CSS Internal CSS Inline CSS External CSS With an external style sheet, you can change the look of an entire website by changing just one file! Each HTML page must include a reference to the external style sheet file inside the <link> element, inside the head section. Example External styles are defined within the <link> element, inside the <head> section of an HTML page: < !DOCTYPE  html > < html > < head > < link  rel ="stylesheet"  href ="mystyle.css" > < /head > < body > < h1 > This is a heading < /h1 > < p > This is a paragraph. < /p > < /body > < /html > Try it Yourself » An external style sheet can be written in any text editor, and must be saved with a .css extension. The external .css file should not contain any HTML tags. Here is how the "mystyle.css" file looks: "mystyle.css" body  {   backg...

The CSS class Selector

The class selector selects HTML elements with a specific class attribute. To select elements with a specific class, write a period (.) character, followed by the class name. Example In this example all HTML elements with class="center" will be red and center-aligned:  .center  {   text-align :  center ;   color :  red ; } Try it Yourself » You can also specify that only specific HTML elements should be affected by a class. Example In this example only <p> elements with class="center" will be red and center-aligned:  p.center  {   text-align :  center ;   color :  red ; } Try it Yourself » HTML elements can also refer to more than one class. Example In this example the <p> element will be styled according to class="center" and to class="large":  < p  class ="center large" > This paragraph refers to two classes. < /p > Try it Yourself » Note:  A class name cannot start with a numbe...

CSS Selectors

CSS selectors are used to "find" (or select) the HTML elements you want to style. We can divide CSS selectors into five categories: Simple selectors (select elements based on name, id, class) Combinator selectors (select elements based on a specific relationship between them) Pseudo-class selectors (select elements based on a certain state) Pseudo-elements selectors (select and style a part of an element) Attribute selectors (select elements based on an attribute or attribute value) This page will explain the most basic CSS selectors. The CSS element Selector The element selector selects HTML elements based on the element name. Example Here, all <p> elements on the page will be center-aligned, with a red text color:  p  {   text-align :  center ;   color :  red ; } Try it Yourself » The CSS id Selector The id selector uses the id attribute of an HTML element to select a specific element. The id of an element is unique wit...

CSS Syntax

  A CSS rule consists of a selector and a declaration block. CSS Syntax The selector points to the HTML element you want to style. The declaration block contains one or more declarations separated by semicolons. Each declaration includes a CSS property name and a value, separated by a colon. Multiple CSS declarations are separated with semicolons, and declaration blocks are surrounded by curly braces. Example In this example all <p> elements will be center-aligned, with a red text color: p  {   color :  red ;   text-align :  center ; } Try it Yourself » Example Explained p  is a selector in CSS (it points to the HTML element you want to style: <p>). color  is a property, and  red  is the property value text-align  is a property, and  center  is the property value You will learn much more about CSS selectors and CSS properties in the next chapters!

Creating Variables in R

Variables are containers for storing data values. R does not have a command for declaring a variable. A variable is created the moment you first assign a value to it. To assign a value to a variable, use the  <-  sign. To output (or print) the variable value, just type the variable name: Example name <-  "John" age <-  40 name    # output "John" age     # output 40 Try it Yourself » From the example above,  name  and  age  are variables, while  "John"  and  5  are values. In other programming language, it is common to use  =  as an assignment operator. In R, we can use both  =  and  <-  as assignment operators. However,  <-  is preferred in most cases because the  =  operator can be forbidden in some context in R. Print / Output Variables Compared to many other progamming languages, you do not have to use a function to print/outp...