( 在家 想學電腦程式語言嗎? 歡迎分享)
暑假 免費學習 電腦程式機會,線上學習從基礎開始:
因應科技發展趨勢,全球各國已都開始重視程式教育,因為資訊科技已滲透生活,程式軟體無所不在,造就了今日的 AI 數位世界,未來程式也將持續在人類生活當中扮演著重要關鍵的角色,
比爾蓋茲曾說過程式教育是「每個學生都應該學習的 21 世紀的基本技能」
馬和蘋果電腦前總裁賈伯斯也呼籲現在的學生每一位都必須學習程式語言:
“Everybody in this country should learn
how to program a computer because it teaches you how to think. “
1. 給國中小學生: 高雄教育局主辦
「Micro:bit-AI創意微控制 國民中小學教學推廣 活動」
簡章網址: https://tinyurl.com/110-AI-microbit
報名網址:https://tinyurl.com/110-KH-robot-reg
2. 給老師: :高雄教育局主辦
教師運算思維培養-Python線上研習
簡章網址: https://tinyurl.com/111-KHCTPY
報名網址:https://tinyurl.com/110-CT-python
3. 給中學生: 正忠文教協會主辦、佛光山普門中學承辦
110年中學生 Python 線上課程
簡章網址: https://tinyurl.com/110-HS
報名網址: https://tinyurl.com/108-HS-python
4. 給願意用英文寫程式語言的學習者: 世台基金會 (STUF)
Introduction to Scratch Programming
簡章網址: https://tinyurl.com/STUF-scratch
報名網址: https://forms.gle/DMWTMHkjkEWCBSsy5
同時也有10000部Youtube影片,追蹤數超過2,910的網紅コバにゃんチャンネル,也在其Youtube影片中提到,...
「python how to program」的推薦目錄:
- 關於python how to program 在 黃柏霖 Facebook 的精選貼文
- 關於python how to program 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的最佳貼文
- 關於python how to program 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的最讚貼文
- 關於python how to program 在 コバにゃんチャンネル Youtube 的精選貼文
- 關於python how to program 在 大象中醫 Youtube 的最佳解答
- 關於python how to program 在 大象中醫 Youtube 的最佳解答
- 關於python how to program 在 How do I get time of a Python program's execution? - Stack ... 的評價
- 關於python how to program 在 Making Choices – Programming with Python - Our Lessons 的評價
- 關於python how to program 在 300 Python Programming ideas - Pinterest 的評價
python how to program 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的最佳貼文
👨🏫 ในรูปได้ยกตัวอย่าง ช่องโหว่ของการเขียนโปรแกรม
ที่เปิดโอกาสให้ผู้ประสงค์ร้ายสามารถโจมตีด้วยวิธี
Command Injection
.
ช่องโหว่นี้เกิดจากในหลายๆ ภาษาโปรแกรมมิ่ง
ได้อนุญาติให้เรียกคำสั่งของระบบปฏิบัติการได้โดยตรง
ซึ่งสุ่มเสี่ยงให้ผู้โจมตีฉวยโอกาสนี้ฉีดคำสั่งเข้าไปในโค้ด
ด้วยการต่อท้ายด้วยข้อความ &&
จึงทำให้แทรกคำสั่งอันตรายเข้าไปได้ เช่น
:
del /F * บน window
หรือ rm -rf * บน linux
:
ในรูปได้ยกตัวอย่างโค้ดภาษา Java
ซึ่งทำงานบน Window
จะเห็นว่าสามารถใช้ && แล้วต่อท้ายด้วยคำสั่งอะไรก็ได้
เช่น && tasklist && dir เป็นต้น
.
แล้วถ้าโปรแกรมมันรันใน linux/Unix
ก็สามารถต่อคำสั่งเป็นลูกโซ่ด้วยข้อความ && หรือ ; ก็ได้
:
และไม่ใช่ Java ภาษาเดียว ที่มีช่องโหว่ประเภทนี้
มันเกิดได้หลายภาษา
ที่อนุญาติให้เรียกคำสั่งของระบบปฏิการโดยตรง
เช่น C#, Python, PHP และหลายๆ ภาษาที่ไม่ได้เอ่ยถึง
:
++++วิธีป้องกัน+++
🤔 ต้อง validate ข้อมูล input อย่างเข้มงวด เช่น
- กรอง input ที่เข้ามา กำหนดว่ามีอะไรได้บ้าง?
- input ที่เข้ามา ห้ามเป็นคำสั่งของระบบปฏิบัติการเด็ดขาด
- ห้ามมี && และ ; อยู่ใน input ที่เข้ามา
- เป็นต้น
.
😏 หรือจะเลี่ยงวิธีเขียนเรียกคำสั่งของระบบปฏิบัติการโดยตรง ไม่ต้องใช้ก็ย่อมได้
++++
เขียนโดย โปรแกรมเมอร์ไทย thai programmer
.
ดูตัวอย่างเพิ่มเติม
https://www.owasp.org/index.php/Command_Injection
👨 🏫 In the photo, for example, the loophole of programming.
Open doors for the evil wills to attack by the way.
Command Injection
.
This loophole is born in many programming languages.
Permission to call direct order of operating system
Who randomly risked this opportunity attacker to inject an order into code.
By ending with a text &&
It's so dangerous to insert like
:
del / F F on window
or rm-rf rf on linux
:
In the picture, for example, Java language code.
Which works on Window
Will see that I can use && and then end up with any order.
Like && tasklist && dir etc.
.
And if the program runs in linux / Unix
Can continue with chain order with text && or; either.
:
And not Java the only language has this type of loophole
It can be born in many languages.
Allowing to call direct command of the operational system.
Like C #, Python, PHP and many languages that are not mentioned.
:
++++ How to prevent +++
🤔 Must strictly validate input information like
- Input filter that comes to determine what's available?
- Input that comes to prohibit is an order of an operating system.
- Don't have && and; stay input that comes.
- etc.
.
😏 or avoid the way to write, call direct command of an operating system. No need to use it.
++++
Written by Thai programmer thai coder
.
See more previews
https://www.owasp.org/index.php/Command_InjectionTranslated
python how to program 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的最讚貼文
เอา AI ไปใช้เล่นเกม เคยเห็นกันไหม
อธิบายไม่ค่อยเก่ง แต่อยากแบ่งปันความรู้
ในคลิปแค่เล่าคราวๆ อยากให้เห็นแนวโน้มเทคโนโลยีด้านนี้
.
ใครสนใจศึกษาเพิ่มเติมในอินเตอร์เนตมีเยอะเลยเรื่องนี้
บทความภาษาไทยก็มี
สำหรับคำค้นหาได้แก่ Reinforcement learning กับ Deep Q-network
..
++++
ในทางเทคนิค
ถ้าใครสนใจโค้ดเกมนี้
จะเอามาเล่นดูก็ได้
ดาวน์โหลดได้ที่นี้ครับ (เป็น python นะ)
https://github.com/yanpanlau/Keras-FlappyBird
.
แต่ทว่าโค้ดจากต้นฉบับ
โมเดลยังไม่ถูกเทรนนะครับ
ต้องเสียเวลาสอนมันอีก
ถ้าใครไม่อยากเสียเวลา
.
ก็ไปเอาไปไฟล์ mdel.h5 ที่ถูกเทรนไว้แหละผมเก็บไว้ให้
https://github.com/…/Deep_Q_Lear…/flappy-bird-model/model.h5
.
แล้วนำไฟล์ mdoel.h5 ที่ได้
ไปทับไฟล์เดิมที่ดาวน์โหลดจากต้นฉบับมา (backup ของเก่าก็ดี)
วางไว้ที่โฟลเดอร์ Keras-FlappyBird\\mdoel.h5
.
แล้วให้แก้ไฟล์ qlearn.py
บรรทัดที่ 130 คอมเมนต์นี้ออกไปหน่อย
#x_t = x_t / 255.0
.
จากนั้นรันคำสั่ง
python qlearn.py -m "Run"
:
เขียนโดย โปรแกรมเมอร์ไทย thai programmer
:
++++
อ้างอิง
โค้ด: https://github.com/yanpanlau/Keras-FlappyBird/
paper: https://arxiv.org/pdf/1312.5602.pdf
youtube: https://youtu.be/TmPfTpjtdgg
:
ติดตามคลิปนี้ได้ที่ youtube อีกที
https://youtu.be/1qry87n95KU
.
.
.
+++++ขั่วโมงขายของ++++
😻 ถ้าใครสนใจเล่ม "AI ไม่ยาก เรียนรู้ด้วยเลขม. ปลาย"
ก็สั่งซื้อ ebook ได้ที่นี้ (ขออภัยยังไม่มีเล่มกระดาษขาย)
ไม่ต้องมีความรู้เรื่องโค้ดดิ้ง ขอให้มีพื้นฐานเลข ม. ปลาย ก็อ่านได้
.
👉 https://www.mebmarket.com/web/index.php…
.
ส่วนตัวอย่างหนังสือ ก็ดูได้ที่
👉 https://www.dropbox.com/s/fg8l38hc0k9b…/chapter_example.pdf…
.
ราคาขาย 295 บาท ฿
แต่ถ้าซื้อผ่านระบบของ Apple จะแพงขึ้น ราคา 329 บาท ฿
วิธีอ่าน อ่านผ่านแอพหรือโปรแกรมเท่านั้น
.
✍ เขียนโดย โปรแกรมเมอร์ไทย thai programmer
Use AI to play games. Have you ever seen it?
I don't explain well but I want to share knowledge
In the clip, I want to see this technology trend in this clip.
.
Who is interested in learning more on the internet? There are plenty of them in this story.
There is also a Thai language article.
For search quotes including Reinforcement learning with Deep Q-network
..
++++
Technically, technically.
If anyone is interested in this game code
I can play this to watch.
You can download here. (It's python)
https://github.com/yanpanlau/Keras-FlappyBird
.
But the code from the original
Model hasn't been trended yet.
Gotta waste my time teaching it again
If anyone doesn't want to waste time
.
Go get it. mdel file. h 5 that is trendy. I keep it for you.
https://github.com/adminho/machine-learning/tree/master/Deep_Q_Learning/flappy-bird-model/model.h5
.
Then bring the mdoel file. h 5 to get it
Go over the original file downloaded from the original (backup the old one is good)
Put it on the Keras-FlappyBird folder. mdoel. h 5
.
Then fix the qlearn file. py
Line 130 comment this way out please
#x_t = x_t / 255.0
.
Then run an order.
python qlearn.py -m "Run"
:
Written by Thai programmer thai coder
:
++++
Quote.
Code: https://github.com/yanpanlau/Keras-FlappyBird/
paper: https://arxiv.org/pdf/1312.5602.pdf
youtube: https://youtu.be/TmPfTpjtdgg
:
Follow this clip on YouTube again.
https://youtu.be/1qry87n95KU
.
.
.
+++++ selling stuff ++++
😻 If anyone is interested in the book ′′ AI, it's not difficult to learn with university number The end ′′
You can order an ebook here. (Sorry, paper book for sale)
Don't need to know about codeing. Let's have a base of university numbers. I can read the end.
.
👉 https://www.mebmarket.com/web/index.php?action=BookDetails&data=YToyOntzOjc6InVzZXJfaWQiO3M6NzoiMTcyNTQ4MyI7czo3OiJib29rX2lkIjtzOjY6IjEwODI0NiI7fQ
.
Personal like a book. You can see it.
👉 https://www.dropbox.com/s/fg8l38hc0k9b0md/chapter_example.pdf?dl=0
.
Selling price 295 baht ฿
But if you buy via Apple system, it will be more expensive. Price is 329 Baht. ฿
How to read through app or program only
.
✍ Written by Thai programmer thai coderTranslated
python how to program 在 Making Choices – Programming with Python - Our Lessons 的推薦與評價
How can my programs do different things based on data values? Objectives. Write conditional statements including if , elif , and else branches. ... <看更多>
python how to program 在 300 Python Programming ideas - Pinterest 的推薦與評價
Jun 15, 2019 - Links for programming in Python . See more ideas about python programming, python, computer programming. ... <看更多>
python how to program 在 How do I get time of a Python program's execution? - Stack ... 的推薦與評價
... <看更多>
相關內容