วันพฤหัสบดีที่ 15 มิถุนายน พ.ศ. 2560

Conference committee structure and roles/responsibilities

https://www.ieee.org/conferences_events/conferences/organizers/roles_responsibilities.html

วันพฤหัสบดีที่ 25 พฤษภาคม พ.ศ. 2560

Structures of data


  • Structured content ใช้ predefined data model e.g. RDBs
  • Semi-structured structure content มี tag บอกความหมายภายใน เช่น XML tags แต่ไม่มี predefined data model รองรับ e.g. Word document, source code
  • Unstructured content ไม่มี predefined data model e.g. video, image

วันพฤหัสบดีที่ 18 พฤษภาคม พ.ศ. 2560

Machine learning frameworks


Google's Deepmind research group uses Tensorflow framework
Tensorflow is a python/C open-source machine learning framework

https://venturebeat.com/2016/04/29/deepmind-ai-group-moves-from-torch-framework-to-googles-own-tensorflow/

ML tutorial by Google
https://developers.google.com/machine-learning/crash-course/

AWS and Azure support MXNet
https://mxnet.apache.org/
Many other machine learning frameworks available:
https://en.wikipedia.org/wiki/Comparison_of_deep_learning_software

Spark MLlib is Apache Spark's scalable machine learning library i.e. machine learning for big data.
Spark is comparable and better than Hadoop Map Reduce.
Deep learning for Java
Just a portal

Apache Hadoop adopted a technique called mapreduce, which maps data queries across parallel processing resources and then reduces to useful results.

Keras (the Python Deep Learning library) is a high-level neural networks API, written in Python and capable of running on top of TensorFlowCNTK, or Theano. It was developed with a focus on enabling fast experimentation.

ImageAI is a State-of-the-art Recognition and Detection AI with few lines of code. http://imageai.org/

Frameworks for 

วันอังคารที่ 16 พฤษภาคม พ.ศ. 2560

ตัวอย่าง restful web service

บริการข้อมูลและสารสนเทศอุตุนิยมวิทยาและแผ่นดินไหว (TMDAPI)

http://data.tmd.go.th/api/index1.php

เป็น REST ที่ใช้ GET method ในการทำงาน เช่น GET...

แสดงข้อมูลข่าวประกาศเตือนภัยล่าสุด
http://data.tmd.go.th/api/WeatherWarningNews/v1/?uid=demo&ukey=demokey

แสดงข้อมูลข่าวประกาศล่าสดแบบ json
http://data.tmd.go.th/api/WeatherWarningNews/v1/?uid=demo&ukey=demokey&format=json

แสดงข้อมูลข่าวประกาศที่ออกประกาศในปี 2015 แบบ xml
http://data.tmd.go.th/api/WeatherWarningNews/v1/?uid=demo&ukey=demokey&format=xml&year=2015

วันจันทร์ที่ 8 พฤษภาคม พ.ศ. 2560

Convolution neural network (cnn)

An MLP with normally 3 hidden layers : convolution layer (similar to sliding window but here called filter producing output called feature map) & pooling layer (for non-linear down-sampling e.g. max pooling taking max value pixel) & fully connected layer.
Traditional MLP do not scale well to higher resolution images. For example, in CIFAR-10, images are only of size 32x32x3 (32 wide, 32 high, 3 color channels), so a single fully connected neuron in a first hidden layer of a regular neural network would have 32*32*3 = 3,072 weights. A 200x200 image, however, would lead to neurons that have 200*200*3 = 120,000 weights.
Also, such network architecture does not take into account the spatial structure of data, treating input pixels which are far apart the same as pixels that are close together. Thus, full connectivity of neurons is wasteful for the purpose of image recognition




CNN classification (by Gemini)
1. Image-Based CNNs
Classic Architectures: LeNet-5, AlexNet, VGGNet, GoogLeNet, ResNet
Specialized Architectures: MobileNet, EfficientNet, DenseNet, R-CNN, Fast R-CNN, Faster R-CNN, Mask R-CNN
Key Features: Grid-like input data, convolutional layers, pooling layers, fully connected layers.
2. Sequence-Based CNNs
1D CNNs: Used for processing sequential data like text or time series.
Key Features: 1D convolutional layers, pooling layers, fully connected layers.
3. Graph-Based CNNs
GCNs: Graph Convolutional Networks; while Image-based CNNs are designed to process data with a regular grid structure, like images, GCNs can handle data where data can be naturally represented as a graph, such as social networks, molecular structures, and knowledge graphs.
Key Features: Graph-structured input data, graph convolution operation, graph Laplacian, handling irregular data.
4. Hybrid CNNs
Combining Different Types: CNNs can be combined with other architectures like Recurrent Neural Networks (RNNs) or Long Short-Term Memory (LSTM) networks for tasks involving both spatial and temporal information.

FCNN (Fully CNN) vs Traditional CNN
  • Traditional CNN: Features extracted in early convolutional layers are passed to Fully Connected (FC) layers at the end of the network. Because FC layers require every neuron to be connected to every input, the network is restricted to a fixed input size and loses spatial context.
  • FCNN: The network contains only convolutional layers, using a combination of downsampling (for features) and upsampling (for output). This allows FCNNs to process inputs of arbitrary sizes and output spatial maps (like segmentation masks) directly.
  • Traditional CNN: FC layers account for the majority of the network's trainable parameters, making them prone to overfitting when handling high-dimensional data like large images.
  • FCNN: By maintaining a localized receptive field throughout the entire model, FCNNs are significantly more parameter-efficient, resulting in faster training times and reduced memory usage. [1, 2, 3, 4, 5]
  • zigbee

    คาร์ล ริทเท่อร์ ฟอน ฟริช (Karl Ritter von Frisch) นักวิทยาศาสตร์ชาวออสเตรีย เจ้าของรางวัลโนเบลปี 1973 ได้ค้นพบคำตอบว่า คุณผึ้งแสนขยันตัวนั้น จะกลับมาระบำด้วยสเต็ปซิกแซก (zigzag) ให้มิตรสหายดู โดยการระบำนั้นจะสามารถบอกแก่ผึ้งตัวอื่น ๆ ว่า อาหารอยู่ในทิศทางใด และมีระยะที่ไกลไปจากรังเท่าไหร่ ซึ่งจากการสื่อสารที่แหวกแนวนี้เอง ทำให้พวกผองผึ้งสามารถระดมพลกันไปขนอาหารได้อย่างถูกต้องนั่นแหละคือคำต้องว่าทำไมถึงมี โปรโตคอลที่ชื่อ Zigbee

              เทคโนโลยี Zigbee จึงถูกสร้างขึ้นมาเพื่อการสื่อสารไร้สายที่ไร้ขีดจำกัดมากขึ้นกว่าเทคโนโลยีไร้สายแบบเดิม ๆ เช่น Bluetooth Wifi หรือ Z-Wave ในแง่ของขนาดเครือข่าย เทคโนโลยี Zigbee มีความยืดหยุ่นที่จะตอบสนองความต้องการของคุณได้มากที่สุด เพราะสามารถเชื่อมต่อได้ถึง 65,000 เซ็นเซอร์ ในขณะที่เทคโนโลยี Z-Wave เชื่อมต่อได้สูงสุดแค่ 230 เซ็นเซอร์ ในแง่ของความแรงของสัญญาญเทคโนโลยี Zigbee สามารถมี range ได้ถึง 300 เมตร ในขณะที่เทคโนโลยี Bluetooth สามารถไปไกลได้สูงสุดแค่ 10 เมตร และเทคโนโลยี Wifi สามารถไปไกลได้สูงสุดแค่ 100 เมตร นอกจากนั้น เทคโนโลยี Zigbee ยังประหยัดพลังงานสูงที่สุดในเทคโนโลยี ไร้สายทั้งหมด ด้วยอุปกรณ์บางชิ้นสามารถใช้ถ่านนาฬิกาเล็ก ๆ เพียงหนึ่งก้อน และมีอายุใช้งานไปได้เป็นปีเลยทีเดียว

    www.smile-digital.com/blog/-what-is-zigbee/

    วันพฤหัสบดีที่ 4 พฤษภาคม พ.ศ. 2560

    บุคคลที่ควรบูชา

    ภิกษุทั้งหลาย ! บุคคล ๘ จำพวกเหล่านี้ เป็นผู้ควรแก่ของบูชา ควรแก่ของต้อนรับ ควรแก่ของทำบุญ

    ควรทำอัญชลี เป็นเนื้อนาบุญของโลก ไม่มีนาบุญอื่นยิ่งกว่า. ๘ จำพวกอะไรบ้างเล่า ?

    ๘ จำพวก คือ :-
    (๑) พระโสดาบัน
    (๒) พระผู้ปฏิบัติเพื่อทำให้แจ้งโสดาปัตติผล
    (๓) พระสกทาคามี
    (๔) พระผู้ปฏิบัติเพื่อทำให้แจ้งสกทาคามิผล
    (๕) พระอนาคามี
    (๖) พระผู้ปฏิบัติเพื่อทำให้แจ้งอนาคามิผล
    (๗) พระอรหันต์
    (๘) พระผู้ปฏิบัติเพื่อความเป็นอรหันต์

    ภิกษุทั้งหลาย ! บุคคล ๘ จำพวกเหล่านี้แล เป็นผู้ควรแก่ของบูชา ควรแก่ของต้อนรับ ควรแก่ของทำบุญ
    ควรทำอัญชลี เป็นเนื้อนาบุญของโลกไมมี่นาบุญอื่นยิ่งกว่า.

    “ผู้ปฏิบัติแล้ว ๔ จำพวกและผู้ตั้งอยู่ในผลแล้ว ๔ จำพวกนี่แหละ ! สงฆ์ที่เป็นคนตรง,
    เป็นผู้ตั้งมั่นแล้วในปัญญาและศีล ย่อมกระทำให้เกิดบุญอื่นเนื่องด้วยอุปธิ แก่มนุษย์ทั้งหลาย 
    ผู้มีความต้องการด้วยบุญ กระทำการบูชาอยู่ ทานที่ให้แล้วในสงฆ์ จึงมีผลมาก”.

    ปฐมธรรม หน้า ๑๕๒
    (ไทย) อฏฐก. อํ. ๒๓/๒๓๐/๑๔๙. 
    (บาลี) อฏฐก. อํ. ๒๓/๓๐๑/๑๔๙

    วันพุธที่ 26 เมษายน พ.ศ. 2560

    car crash

    ตัวอย่างเช่น

    "I crash my car" แปลตรงตัวคือ "ฉันทำให้รถของฉันกระแทก" แปลสวยๆก็คือ "ฉันขับรถชน"


    ถ้าจะบอกว่าฉันขับรถชนอะไร ให้ใส่ into ตามหลัง

    ฉันขับรถชนต้นไม้
    I crashed my car into a tree.

    นอกจากคำว่า Car Crash แล้วยังมีอีกคำที่ความหมายใกล้เคียงกันนั่นคือ Car Accident ซึ่งเป็น Noun เหมือนกัน

    จะต้องทำอะไรถ้าเกิดคุณขับรถชน
    What to do if you have a car accident? 


    ถ้าคุณไม่เคยประสบอุบัติเหตุรถยนต์เลย คุณน่ะโชคดี
    If you haven't been in a car accident, you are lucky.


    วันจันทร์ที่ 24 เมษายน พ.ศ. 2560

    Traditional web hosting VS. AWS VS. Wix.com VS. CMS

    • Wix.com is PaaS with a very easy and beautiful web app development (CMS) tool but has no DBMS.
    • Traditional web hosting is cheaptest with only web admin tool and traditional CMS (WordPress, Drupal, Joomla) but free domain name and MySQL. It is most expensive due to data-out charging.
    • AWS is IaaS with the highest availability (about 99.95% compared to traditional one, 99.9%).


    วันอังคารที่ 18 เมษายน พ.ศ. 2560

    Capture-recapture sampling method

    The capture-recapture method serves to estimate a quantity (e.g. people with a specific trait) from a population.In epidemiology it is most commonly used to conduct measurements in a population that you cannot count completely.
    The technique derives from counting animals, where a certain amount of animals where captured and marked and then released again. After a certain period of time a second sample of the animals were taken. The amount of marked animals in this second sample allows to draw conclusions about the true size of the population. (https://wiki.ecdc.europa.eu/fem/w/wiki/1218)




    วันพฤหัสบดีที่ 13 เมษายน พ.ศ. 2560

    วันศุกร์ที่ 31 มีนาคม พ.ศ. 2560

    Apache Tomcat

    An open-source Java Servlet Container, aka web container, which is the component of a web server that interacts with Java servlets. A web container is responsible for managing the lifecycle of servlets, mapping a URL to a particular servlet and ensuring that the URL requester has the correct access-rights.
    A web container handles requests to servletsJavaServer Pages (JSP) files, and other types of files that include server-side code. The Web container creates servlet instances, loads and unloads servlets, creates and manages request and response objects


    เทียบเท่า PHP processor installed on server to process PHP scripts

    ตัวอย่างการเขียน Java web app ที่ใช้ servlet, JSP และ Tomcat
    https://medium.com/@kasunpdh/sample-java-web-application-using-servlets-and-jsp-5621cad2f582

    More about Tomcat : https://www.softwaretestinghelp.com/apache-tomcat-interview-questions/

    วันอาทิตย์ที่ 26 มีนาคม พ.ศ. 2560

    Game Web App Development




































    วันเสาร์ที่ 25 มีนาคม พ.ศ. 2560

    ตลาดเฉพาะทาง

    niche market

    วันศุกร์ที่ 24 มีนาคม พ.ศ. 2560

    ทัศนคติ

    เดี๋ยวนี้องค์กรต้องรับคนที่มีทัศนคติดีที่สามารถไปสร้างคนที่มีทัศนคติที่ดีต่อไปได้ ความเก่งเป็นเรื่องพื้นฐาน รับคนเก่งเข้ามาเดี๋ยวไปเรียนรู้ต่อเองได้ไม่น่าห่วงแต่ทัศนคติสำคัญกว่า