วันศุกร์ที่ 10 สิงหาคม พ.ศ. 2561

Classes of ANN

Feedforward neural network VS. Recurrent neural network:
Networks such as the previous one are commonly called feedforward, because their graph is a directed acyclic graph. Networks with cycles are commonly called recurrent.

Cf. wiki

วันอังคารที่ 7 สิงหาคม พ.ศ. 2561

Simulation VS. Emulation


  • Simulation focuses on modeling for analysis and study but Emulation aims for usage as a substitute.
  • An emulator can replace the original for 'real' use. A simulator is a model for analysis.A remote desktop emulates a PC. If a flight-simulator could transport you from A to B then it would be a flight-emulator.
  • Simulation:
Definition: A simulation is an approximate imitation of a system or process.
Purpose: It aims to model the behavior or characteristics of a system without necessarily reproducing its exact internal workings.
Level of abstraction: Simulations often operate at a higher level of abstraction, focusing on overall behavior rather than exact replication.
Performance: Generally faster and less resource-intensive than emulation.
Accuracy: May sacrifice some accuracy for speed and simplicity.
Example: A flight simulator that mimics the experience of flying an aircraft without replicating every detail of the actual aircraft's systems.
  • Emulation:
Definition: An emulation is a more exact replication of a system, typically at a lower level.
Purpose: It aims to recreate the functionality of a specific system as accurately as possible.
Level of detail: Emulators typically operate at a lower level, often replicating hardware or software components in detail.
Performance: Generally slower and more resource-intensive than simulation due to the higher level of detail.
Accuracy: Strives for high accuracy, often aiming to be indistinguishable from the original system.
Example: A software emulator that allows you to run games from an old gaming console on a modern computer by replicating the original console's hardware.

  • In summary, simulation focuses on modeling overall behavior, while emulation aims for a more exact replication of a system. 

วันอาทิตย์ที่ 5 สิงหาคม พ.ศ. 2561

Bitcoin



วันพุธที่ 1 สิงหาคม พ.ศ. 2561

วันพฤหัสบดีที่ 26 กรกฎาคม พ.ศ. 2561

วันเสาร์ที่ 14 กรกฎาคม พ.ศ. 2561

วันจันทร์ที่ 18 มิถุนายน พ.ศ. 2561

การปรับตัวของมหาวิทยาลัย

จำนวนนักศึกษา​ลดลง สอดคล้อง​กับจำนวนเด็กเกิดใหม่ที่ลดลง และเป็นปรากฏการณ์​ที่กำลังเกิดขึ้นกับ Aging Society ทั่วโลก..​
ต่อไปนี้มหาวิทยาลัยต้อง  focus ต้องหาจุดเด่นหรือสิ่งที่ตนเชี่ยวชาญเพื่อทำให้เป็นเลิศและเป็นจุดขาย
คนวัยทำงาน 38ล้านคน ครึ่งหนึ่งไม่จบปริญญาส่วนใหญ่เป็นปวช. ปวส. จะต้องเอามาพัฒนาศักยภาพ reskill upskill upgrade เพื่อตอบโจทย์ตลาดแรงงานที่ต้องการคนที่มีคุณภาพสูงขึ้น สามารถใช้เทคโนโลยีขั้นสูงได้
มหาวิทยาลัยต้องเริ่มทำ Training  มากขึ้นเน้น Non-degree สำหรับ workforce เพื่อให้ภาคการผลิต ปรับตัวมุ่งสู่ industry 4.0 และ Service 4.0 เป็น Digital Transformation ด้วยครับ... ตลอดจนต้องปรับตัวสร้าง radical change สำหรับการผลิตกำลังคนที่มีคุณภาพสูง และ การสร้างนวัตกรรมจากการวิจัย ต่อยอดไปเป็นสินค้าที่มีมูลค่าเพิ่มเชิงพาณิชย์ จึงจะทำให้ประเทศหลุดจากกับดักประเทศรายได้ปานกลางครับ
คนสูงอายุก็ต้องมาเรียน upgrade ตัวเองให้ทำงานได้อย่างมีศักดิ์ศรีและมีคุณภาพชีวิตที่ดี ไม่ใช่ให้อยู่บ้านเฉยๆ

วันอาทิตย์ที่ 17 มิถุนายน พ.ศ. 2561

วันอาทิตย์ที่ 10 มิถุนายน พ.ศ. 2561

ลำดับชั้นของกฎหมาย

1.       กฎหมายรัฐธรรมนูญ
คือ   กฎหมายสูงสุดในการจัดระเบียบการปกครองประเทศ     ซึ่งจะวางระเบียบแห่งอำนาจสูงสุดของรัฐ
หรืออำนาจอธิปไตย ได้แก่ อำนาจนิติบัญญัติ อำนาจบริหาร และอำนาจตุลาการ ตลอดจนการกำหนดสิทธิเสรีภาพและหน้าที่ของชนชาวไทย
2.       พระราชบัญญัติ (พ.ร.บ.)
คือ   กฎหมายที่พระมหากษัตริย์ทรงตราขึ้นโดยคำแนะนำและยินยอมของรัฐสภา เป็นกฎหมายหลักที่สำคัญ
ที่บังคับใช้อยู่ในปัจจุบัน พระราชบัญญัติเป็นกฎหมายที่มีลำดับชั้นรองลงมาจากกฎหมายรัฐธรรมนูญ พระราชบัญญัติที่สำคัญที่รัฐสภาตราออกมาใช้บังคับ เช่น พระราชบัญญัติสงวนและคุ้มครองสัตว์ป่า พ.ศ. 2535 พระราชบัญญัติคุ้มครองสุขภาพของผู้ไม่สูบบุหรี่ พ.ศ. 2535 เป็นต้น
3.       ประมวลกฎหมาย
คือ     กฎหมายลายลักษณ์อักษรที่ได้บัญญัติหรือตราขึ้นโดยรวบรวมจัดเอาบทบัญญัติเกี่ยวกับกฎหมายที่
เป็นเรื่องเดียวกันเอามารวบรวมเป็นหมวดหมู่ วางหลักเกณฑ์ให้อยู่ในที่เดียวกันและมีข้อความเกี่ยวเนื่องติดต่อกันอย่างเป็นระเบียบ เช่น ประมวลกฎหมายอาญา ประมวลกฎหมายแพ่งและพาณิชย์ ประมวลรัษฎากร เป็นต้น
                       ประมวลกฎหมายมีฐานะเท่าเทียมกับพระราชบัญญัติ         
4.       พระราชกำหนด (พ.ร.ก.)
คือ   กฎหมายที่พระมหากษัตริย์ทรงตราขึ้นตามคำแนะนำของคณะรัฐมนตรี การตราพระราชกำหนดให้
กระทำได้เฉพาะเมื่อคณะรัฐมนตรีเห็นว่าเป็นกรณีฉุกเฉินที่มีความจำเป็นเร่งด่วนอันมิอาจหลีกเลี่ยงได้ และต้องเป็นกรณีเพื่อจะรักษาความปลอดภัยของประเทศหรือความปลอดภัยสาธารณะ หรือความมั่นคงในทางเศรษฐกิจของประเทศ หรือป้องปัดภัยพิบัติสาธารณะ หรือเป็นพระราชกำหนดเกี่ยวด้วยการภาษีอากรหรือเงินตราซึ่งจะต้องได้รับการพิจารณาโดยด่วนและลับเพื่อรักษาผลประโยชน์ของแผ่นดินและเมื่อได้ประกาศใช้แล้วต้องเสนอพระราชกำหนดนั้นต่อสภาทันทีถ้ารัฐอนุมัติก็มีผลใช้บังคับเป็นพระราชบัญญัติต่อไป ถ้ารัฐสภาไม่อนุมัติก็ตกไป แต่ถ้าไม่กระทบกระเทือนกิจการที่ได้เป็นไปในระหว่างที่ใช้พระราชกำหนดนั้น การประกาศใช้พระราชกำหนดให้ประกาศในราช-กิจจานุเบกษา โดยมีนายกรัฐมนตรีเป็นผู้ลงนามสนองพระบรมราชโองการ
5.       พระราชกฤษฎีกา (พ.ร.ฎ)
คือ   กฎหมายที่พระมหากษัตริย์ทรงตราขึ้นตามคำแนะนำของคณะรัฐมนตรี พระราชกฤษฎีกาจะออกได้
ต่อเมื่อพระราชบัญญัติซึ่งถือเป็นกฎหมายแม่บทให้อำนาจไว้ พระราชกฤษฎีกาจึงเป็นเสมือนกฎหมายที่ไม่สามารถจะออกมาให้ขัดหรือแย้งกับกฎหมายแม่บท และถ้ากฎหมายแม่บทถูกยกเลิก พระราชกฤษฎีกานั้นก็ถือว่าถูกยกเลิกไปด้วย การประกาศใช้พระราชกฤษฎีกาให้ประกาศในราชกิจจานุเบกษา
 6.       กฎกระทรวง
คือ    กฎหมายที่รัฐมนตรีผู้รักษาการตามพระราชบัญญัติอันเป็นกฎหมายแม่บทออกมาเพื่อดำเนินการให้
เป็นไปตามพระราชบัญญัตินั้น ๆ กฎกระทรวงจึงเป็นกฎหมายบริวารที่กำหนดรายละเอียดของกฎหมายแม่บทอีกต่อหนึ่ง กฎกระทรวงจะออกมาขัดแย้งกับกฎหมายแม่บทไม่ได้และถ้ากฎหมายแม่บทถูกยกเลิก กฎกระทรวงนั้นถือว่าถูกยกเลิกไปด้วย คณะรัฐมนตรีเป็นอนุมัติกฎกระทรวง การประกาศใช้กฎกระทรวงให้ประกาศในราชกิจจานุเบกษา
7.       ประกาศ ระเบียบ ข้อบังคับ และคำสั่ง
คือ    กฎหมายปลีกย่อยประเภทที่เป็นเรื่องเล็ก ๆ น้อย ๆ  ได้แก่เรื่องที่เกี่ยวกับระเบียบการปฏิบัติราชการ
ภายในและการที่จะนำกฎหมายปลีกย่อยเหล่านี้ไปประกาศในราชกิจจานุเบกษา ต้องเป็นกรณีที่กฎหมายกำหนดไว้ให้ประกาศในราชกิจจานุเบกษา แต่ถ้าในกฎหมายไม่ได้กำหนดเช่นนั้นก็อยู่ในดุลยพินิจของผู้มีอำนาจว่าการจะประกาศลงในราชกิจจานุเบกษาหรือไม่ ซึ่งประกาศ ระเบียบข้อบังคับ และคำสั่งเหล่านั้นก็เป็นกฎหมายได้เช่นกัน
8.       กฎหมายที่ออกโดยองค์กรปกครองตนเอง
ได้แก่   ข้อบัญญัติกรุงเทพมหานคร  ข้อบัญญัติเมืองพัทยา  ข้อบัญญัติจังหวัด  เทศบัญญัติ  และข้อบังคับ
สุขาภิบาล เป็นกฎหมายที่มีพระราชบัญญัติการจัดตั้งองค์กรปกครองตนเองอันเป็นการบริหารส่วนท้องถิ่นนั้น ๆ ให้มีอำนาจออกกฎหมายบังคับใช้เฉพาะท้องถิ่นเท่านั้น

วันอาทิตย์ที่ 3 มิถุนายน พ.ศ. 2561

Progressive Web App (pwa)

Mobile or desktop webapps that can be installed locally (add to mobile home screen or pc desktop) and can work offline, running a background process, and adding a link to the device home screen (Rich offline experiences, periodic background syncs, push notifications) -  to provide an 'native mobile or desktop app like' user experience.
https://medium.com/@firt/progressive-web-apps-on-ios-are-here-d00430dee3a7

https://developers.google.com/web/progressive-web-apps/

https://developers.google.com/web/fundamentals/primers/service-workers

https://aws.amazon.com/th/blogs/mobile/building-progressive-web-apps-with-the-amplify-framework-and-aws-appsync/

During offline, requests from webapp will be batched by background service worker for later sync with server when online.
https://medium.com/@iamgique/service-worker-%E0%B8%84%E0%B8%B7%E0%B8%AD%E0%B8%AD%E0%B8%B0%E0%B9%84%E0%B8%A3-5ddcde2a329e

Appcache is file extension of HTML5 cache manifest and will be removed from pwa and html5.
https://html.spec.whatwg.org/#manifests

Service worker's cache API (replacing Appcache)
https://codelabs.developers.google.com/codelabs/your-first-pwapp/#4

Types of mobile apps and web apps
https://aws.amazon.com/th/mobile/mobile-application-development/

วันพุธที่ 30 พฤษภาคม พ.ศ. 2561

MVC

  • A view can be any output representation of information, such as a chart or a diagram. Multiple views of the same information are possible, such as a bar chart for management and a tabular view for accountants. So view is UI.
  • A controller, accepts input and converts it to commands for the model or to update view. So controller pass input to a corresponding model.

  • A model is the central component of the pattern. It expresses the application's behavior in terms of the problem domain, independent of the user interface. It directly manages the data, biz logic and rules of the application. So model is a biz logic processing component.
cf. wikipedia


วันอาทิตย์ที่ 27 พฤษภาคม พ.ศ. 2561

ประโยชน์ของการจด VAT

https://aommoney.com/stories/ภาษีธุรกิจ/ก่อนจะถามว่าจด-vat-ดีไหม-มาเข้าใจภาษีมูลค่าเพิ่มกันก่อนดีกว่า/16905#jho7qoix90

วันศุกร์ที่ 25 พฤษภาคม พ.ศ. 2561

General Data Protection Regulation (GDPR)

What is the GDPR?

The General Data Protection Regulation (GDPR), which comes into force on May 25th, 2018, aims to protect the fundamental right to privacy and the protection of personal data of European Union (EU) citizens. 
This regulation affects any entity (including websites) that processes EU citizens' personal data. Whether or not you or your business is located in the EU, if you have EU site visitors, or if your marketing campaigns target EU citizens, this affects you. 

What does the GDPR mean for you?

Transparency and communication with your site visitors are key elements of the GDPR. As part of the new regulation, you must let your site visitors know how you collect, store, and use their data, in a clear and transparent way. In addition, you must comply with your site visitors' requests to receive a copy of their data that is processed on your site. 
Source: https://support.wix.com/en/article/preparing-your-wix-site-for-the-gdpr?referralAdditionalInfo=BIZ_MANAGER_HOME_LB