Skip to main content

Posts

Showing posts from August, 2018

Hello World, GitHub

GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere.       GitHub ก็คือ platform ที่ทุกคนสามารถมาฝาก code เอาไว้ เพื่อแบ่งปันกับคนอื่นแล้วก็สามารถใช้งานร่วมกันกับคนอื่นได้ ซึ่งช่วยให้เราได้เรียนรู้ skill ใหม่ ๆ จากคนอื่นได้ แล้วก็สามารถช่วยทำ project ของคนอื่นที่เราสนใจได้ โดยก่อนอื่นก็ต้องมี GitHub.com account  หรือ install Git (version ที่มี GitHub) แล้วทำตามขั้นตอนด้านล่างได้เลย Step 1 : Create a Repository       ปกติ repository จะเป็นที่เก็บรวบรวม folder, file, รูปภาพ, วิดีโอ , spreadseet และอื่นๆที่ใช้ใน project ซึ่ง GitHub ก็ได้แนะนำให้ใช้ README (ไฟล์ข้อมูลที่อธิบายเกี่ยวกับ project ของเรา) ควบคู่กับการสร้าง repository ใหม่ ๆ ด้วย       วิธีสร้าง repository       1. click + ที่มุมขวาบน แล้วเลือก New repository       2. ตั้งชื่อของ repository       3. เขียนคำอธิบายสั้น ๆ เกี่ยวกับ repository นี้       4. เลือก Initialize this repository with a README Step 2 : Create a Bra

Bounce with Processing

Processing is a flexible software sketchbook and language for learning how to code within the context of the visual arts. processing.org ตัวอย่างที่เขียนลง blog สามารถหาได้จาก  https://processing.org/examples/ Code

A running light using TinkerCad's Circuits

Tinkercad is a free online collection of software tools for help people all over the world think, create and make. We're the ideal introduction to Autodesk, the leader in 3D desigm, engineering and entertainment software. Tinkercad        พูดสั้น ๆ ก็คือ Tinkercad เป็น online software ที่ช่วยออกแบบงานในรูปแบบเสมือนจริง ซึ่งงานเราจะใช้ Tinkercad ในการออกแบบไฟกะพริบกัน และเนื่องจากเป็นครั้งแรกที่ได้ทดลองใช้ Arduino program เพื่อสร้าง block สำหรับ 8-bit LED ที่ LED จะกะพริบจากซ้ายไปขวา จึงไปหาข้อมูลวิธีการใช้งานจนมาเจอ Channel ที่ชื่อ Autodesk Tikercad ใน Youtube ซึ่ง ส อนต่อวงจรที่ลักษณะคล้ายกับวงจรที่ต้องกา ร        สามารถทำได้ดังนี้        เลือก Sign in(สำหรับคนที่มี account อยู่แล้ว) หรือ Join now(สำหรับคนที่ยังไม่มี account ของ Tinkercad)         เลือก Circiut ทางซ้ายมือ แล้วเลือก Create new Circuit        เลือก Components จากทางขวา โดยต่อสายไฟเข้ากับช่อง 5V ของ Arduino และ แถว red (+) power ใน board แล้วต่อ GND เข้ากับ black (-) power        วางให้ขาขอ

Game using Scratch

Scratch is a free programming language and online community where you can create your own interactive stories, games, and animations. Scratch         Scratch เป็น program ที่ใช้สร้าง animation หรือ game ซึ่งเด็กก็สามารถใช้งานได้(ผู้ใหญ่อย่างเราก็ใช้ได้นะ) โดยเราจะสร้างเกมมีชื่อว่า Knight Run         แนวคิดของ Knight Run เริ่มมาจากการที่อยากสร้างเกมที่เหมือนกับเกมไดโนเสาร์ของ Chrome ที่เล่น offline ระหว่างที่รอการเชื่อมต่อของ internet ส่วนตัวละครในเกม มาจาก sprite ที่มีอยู่ใน Scracth 2 อยู่แล้ว ใน theme castle วิธีการเล่นคือ จะให้ Knight กระโดดหลบ fire ด้วยการกดปุ่ม space bar ถ้าหาก Knight ถูก fire เกมก็จะจบลง สามารถเริ่มเกมใหม่ได้ ด้วยการกด space bar อีกครั้ง ขั้นตอนการสร้าง    Example You can try it. Follow this link  https://scratch.mit.edu/projects/240319275/

Install Ubuntu

    Ubuntu is a complete Linux operating system, freely available with both community and professional support Ubuntu         Ubuntu ก็คือ ระบบปฏิบัติการ Linux ซึ่งสามารถใช้งานได้ฟรี มี software มากมาย ทั้ง word processing, spreadsheet, web server software, email software, programming languages เป็นต้น        ก่ อนที่จะทำการติดตั้ง Ubuntu ลงในคอมพิวเตอร์ เราจะต้องมี version ของ Ubuntu ที่เราต้องการติดตั้งใน  DVD  หรือ USB flash drive ก่อน สามารถดาวน์โหลดได้จากเว็บไซต์ของ Ubuntu ตาม link  https://www.ubuntu.com/download/desktop        จากนั้นใส่ DVD หรือ USB flash drive ต่อเข้ากับคอมพิวเตอร์ แล้ว restart คอมพิวเตอร์ ในกรณีที่ใช้ USB flash drive เมื่อเครื่อง power on หลัง restart ให้กด esc ( เครื่อง ASUS K555L series) เพื่อเลือก USB drive จาก boot menu         เลือก  Install Ubuntu  จากนั้นเลือก  Keyboard layout         แล้วเลือก  Normal installation  Installation type          เลือก  install Ubuntu alongside Windows 10  แล้วปรับขนาด  drive  ตามความเหมาะสม