2019年11月5日 星期二

python (3) GUI 圖形介面 tkinter

python (3) GUI 圖形介面 tkinter

查詢 博客來網路書店,大部分的書都是講 tkinter 或 PyQt5

但是搜尋 谷歌:

7 Top Python GUI Frameworks
https://insights.dice.com/2017/08/07/7-top-python-gui-frameworks/


What are the best Python GUI frameworks/toolkits?
https://www.slant.co/topics/6620/~python-gui-frameworks-toolkits


看來是 Kivy 最好


tkinter
https://docs.python.org/3/library/tkinter.html

python 內建製作視窗 GUI 的好工具,Windows, Raspberry Pi 樹莓派, Ubuntu, 都可以用!


這本書值得參考:



用 tkinter 很快就可以寫出不錯的視窗程式!





Windows 與 Ubuntu 環境都可以執行,滿讚的!





2019-06-27
2019-11-05

python (2) 相關套件 與 相容性

python (2) 相關套件 與 相容性

稍微多研究一點 python, 發現 python 雖然說是跨平台,

支援 Windows, Mac OS X, Linux/UNIX, 等,

python 官網:
https://www.python.org/

但是,python 2 與 python 3 並不相容,

然後在安裝相關 pygame, pillow, matplotlib, 等等函式庫時,並沒有很順利,

常有版本不大相容的問題。

pygame
https://www.pygame.org/news

指令:
python -m pip install pygame


pillow
https://python-pillow.org/

好用的圖形庫,但是我個人的經驗,感覺相容性好像不大好。

指令:
python -m pip install pillow




matplotlib
https://matplotlib.org/

製作圖表好用。

指令:
python -m pip install matplotlib




tkinter
https://docs.python.org/3/library/tkinter.html

python 內建製作視窗 GUI 的好工具,Windows, Raspberry Pi 樹莓派, Ubuntu, 都可以用!





Python GUI之tkinter視窗視窗教程大集合
https://www.itread01.com/content/1547705544.html



人工智慧 AI 常用的 Anaconda, 看來不能用於 ARM 硬體,

像 Raspberry Pi 樹莓派 這類的,應該不能用。

https://www.anaconda.com/distribution/

只支援 Windows, macOS, 與 Linux (x86, Power8, 與 Power9)


可以用 jupyter
https://helloshiau.blogspot.com/2019/09/tensorflow-keras-jupyter-raspberry-pi-3.html



好像可以用

Docker
https://www.docker.com/


2019-06-26
2019-11-05

python (1) 利用一點時間學一下 python 電腦語言 ( Windows 版 )

今天利用一點時間,學了一下 python 電腦語言 ( Windows 版 ),

python 官網:
https://www.python.org/

Python 3.7.3
https://www.python.org/downloads/

初學使用內建的  Python IDLE 編程介面:



抄了書上幾個範例程式:



谷歌搜尋常用的編譯器:

新手Python編譯器推薦/IDLE、Sublime Text3、Notepad++、pycharm、anaconda下載安裝/Python新人必看
https://www.itread01.com/content/1544301014.html

10款好用的 Python IDE總結與推薦
https://www.itread01.com/content/1548827668.html


下載了  emacs 感覺檔案太大,又刪除了。

又下載了 Sublime Text 3 感覺很好用,滿高興的!
https://www.sublimetext.com/3


很快就可以有 GUI 視窗介面的程式了,滿高興的!




2019-06-14



安裝 Pygame 這組 框架時,遇到了版本不相容的問題,

試了幾次,才安裝成功。

參看網頁:
https://www.pygame.org/wiki/GettingStarted

用了這個指令,終於成功了:

python -m pip install -U pygame --user





2019-06-23
2019-11-05

2019年11月1日 星期五

Raspberry Pi 3+ 安裝 Tensorflow + Keras + jupyter 成功!2019-09

Raspberry Pi 3+ 安裝 Tensorflow + Keras + jupyter 成功!

為了學習 AI 人工智慧,試著在 樹莓派 安裝 Tensorflow + Keras + jupyter


參考:

http://regishsu.blogspot.com/2018/09/raspberry-pi-3b-tensorflowkerasopencv.html


先更新Raspbian:

sudo apt update
sudo apt upgrade

sudo apt autoremove

安裝TensorFlow:

sudo apt install libatlas-base-dev
pip3 install --user tensorflow
如果沒出現error,就繼續下一步。 
如果有錯誤訊息,可能需要重來。
也有可能要用

pip3 install tensorflow

才可以





安裝OpenCV

sudo apt install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev
sudo apt install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt install libxvidcore-dev libx264-dev
sudo apt install qt4-dev-tools

pip3 install --user opencv-python

安裝Keras

sudo apt install python3-h5py
pip3 install --user keras

安裝其他工具、繪圖與影像處理模組:

pip3 install --user pillow lxml jupyter matplotlib
安裝jupyter後,
用nano ~/.bashrc把export PATH=$PATH:~/.local/bin加入到最後一行。
然後輸入source .bashrc,
不然會出現 command not found!!


安裝順利!

執行 jupyter notbook





2019-09-04
2019-11-01

Raspberry Pi 樹莓派 軟體安裝 2019

Raspberry Pi 樹莓派 軟體安裝

(1) 官網下載 系統檔的映像

例如:
2019-04-08-raspbian-stretch-full.img


(2) 用 Win32DiskImager 將上述的「映像檔」寫入 SD卡 (目前多用 16GB以上的)

Win32DiskImager 下載點建議



** 如果 SD卡的格式化有故障,可以用 SDFormatter 格式化,
    但這個步驟通常是不用的。

SDFormatter  下載點建議

https://www.azofreeware.com/2013/12/sd-formatter-40-sd.html



(3) SD卡插入 Raspberry Pi 開機

(4) 首次開機,建議用 HDMI 線接 LCD螢幕觀看,成功率會比較高

如果開機成功,會開機到桌面,


接著依照系統的問答設定,就可以完成 Raspberry Pi 桌面的系統設定。


************************************

Raspberry Pi 桌面設定完成之後,建議安裝 VNC, winSCP, SSH

以方便「無頭模式」(不用再接 LCD 螢幕的使用方式)

偏好設定 -->  Raspberry Pi 設定 -->  打開 SSH 與 VNC 功能


點擊 「Set Resolution」 --> 點選  「DMT mode 35」 --> 確定
這個對 VNC 的顯示畫面比較大而清晰:




************************************

ipscan-win32  --> 用以掃描 樹莓派 的 ip 位址
https://sourceforge.net/projects/ipscan/files/ipscan3-binary/3.2/ipscan-win32-3.2.exe/download


VNC viewer 下載點
https://www.realvnc.com/en/connect/download/viewer/

SSH Xshell  家庭學校免費版
https://www.netsarang.com/en/free-for-home-school/

winSCP -- PC 與 樹莓派 之間的檔案網路傳輸
https://winscp.net/eng/download.php


************************************

安裝系統更新 Updating and upgrading Raspbian

sudo apt update

sudo apt upgrade  或  sudo apt full-upgrade



安裝 matplotlib:
sudo apt-get install python3-matplotlib


2019-11-01

2019年10月13日 星期日

醫學 是什麼? 2019-10-13

醫學 是什麼?

    


  



 




醫學 是什麼?

醫學是以診斷、治療和預防生理和心理疾病和提高人體自身素質為目的的應用科學。
狹義的醫學只是疾病的治療,但也有說法稱預防醫學為第一醫學,臨床醫學為第二醫學,復健醫學為第三醫學。
醫學的科學面是應用基礎醫學的理論與發現,例如生化、生理、微生物學、解剖、病理學、藥理學、統計學、流行病學等,來治療疾病與促進健康。

https://zh.wikipedia.org/wiki/%E5%8C%BB%E5%AD%A6https://zh.wikipedia.org/wiki/%E5%8C%BB%E5%AD%A6



Medicine is the science and practice of establishing the diagnosis, prognosis, treatment, and prevention of disease.
Medicine encompasses a variety of health care practices evolved to maintain and restore health by the prevention and treatment of illness.




古希臘神話中的醫神 -- 阿斯克勒庇俄斯

Asclepius (/æsˈkliːpiəs/; Greek: Ἀσκληπιός Asklēpiós [asklɛːpiós]; Latin: Aesculapius) or Hepius[1] is a hero and god of medicine in ancient Greek religion and mythology. 
He is the son of Apollo and Coronis (or Arsinoe).


醫學之父 -- 希波克拉底

希波克拉底(古希臘文:Ἱπποκράτης,前460年-前370年),為古希臘伯里克利時代之醫師,約生於公元前460年,後世人普遍認為其為醫學史上傑出人物之一。
在其所身處之上古時代,醫學並不發達,然而他卻能將醫學發展成為專業學科,使之與巫術及哲學分離,並創立了以之為名的醫學學派,對古希臘之醫學發展貢獻良多,
故今人多尊稱之為「醫學之父」。

Hippocrates of Kos (/hɪˈpɒkrətiːz/; Greek: Ἱπποκράτης ὁ Κῷος, translit. Hippokrátēs ho Kṓos; c. 460 – c. 370 BC), also known as Hippocrates II, was a Greek physician of the Age of Pericles (Classical Greece), who is considered one of the most outstanding figures in the history of medicine. 
He is often referred to as the "Father of Medicine"[1] in recognition of his lasting contributions to the field as the founder of the Hippocratic School of Medicine.

東方的名醫


扁鵲(約前407年-約前310年),原姓秦,名越人[3],一名緩,號盧醫、扁鵲,中國戰國時代醫師。約生於周威烈王十九年(公元前407年)前後,卒於周赧王五年(公元前310年)。傳說中東周戰國時期姜齊勃海郡莫州(今河北省任丘市鄚州鎮)人。[4]與華佗、張仲景、李時珍並稱中國古代四大名醫。





華佗(145年?-208年),字元化,幼名旉,沛國譙縣(今安徽亳州市)人,東漢末年的方士、醫師。華佗與董奉和張仲景被並稱為「建安三神醫」。與扁鵲、張仲景及李時珍並稱中國古代四大名醫。




張仲景(150年-219年),名機(《歷代神仙通鑑》作璣),字仲景,南陽郡涅陽縣(今河南鄧州市和鎮平縣一帶)人,東漢末年著名醫學家。張仲景與董奉和華佗被並稱為「建安三神醫」。與扁鵲、華佗及李時珍並稱中國古代四大名醫。




李時珍(1518年7月3日-1593年),字東璧,晚年自號瀕湖山人。蘄州(今湖北省黃岡市蘄春縣蘄州鎮)人,生於蘄州亦卒於蘄州。李時珍是中國明朝也是中國歷史上最著名的醫學家、藥學家和博物學家之一,其所著的《本草綱目》是本草學集大成的著作,對後世醫學和博物學研究影響深遠。李時珍與扁鵲、華佗、張仲景並稱中國古代四大名醫。




西方的名醫


現代外科學之父 -- 約翰‧杭特



John Hunter FRS (13 February 1728 – 16 October 1793) was a Scottish surgeon, one of the most distinguished scientists and surgeons of his day. He was an early advocate of careful observation and scientific method in medicine. He was a teacher of, and collaborator with, Edward Jenner, pioneer of the smallpox vaccine.


https://en.wikipedia.org/wiki/John_Hunter_(surgeon)




發明消毒的方法,微生物學之父 -- 路易‧巴斯德



Louis Pasteur (/ˈluːi pæˈstɜːr/, French: [lwi pastœʁ]; December 27, 1822 – September 28, 1895) was a French biologist, microbiologist and chemist renowned for his discoveries of the principles of vaccination, microbial fermentation and pasteurization. He is remembered for his remarkable breakthroughs in the causes and prevention of diseases, and his discoveries have saved many lives ever since. He reduced mortality from puerperal fever, and created the first vaccines for rabies and anthrax.

His medical discoveries provided direct support for the germ theory of disease and its application in clinical medicine. He is best known to the general public for his invention of the technique of treating milk and wine to stop bacterial contamination, a process now called pasteurization. He is regarded as one of the three main founders of bacteriology, together with Ferdinand Cohn and Robert Koch, and is popularly known as the "father of microbiology".



一晃就老了 ~~ 神奇的素描

一晃就老了 ~~ 神奇的素描

https://www.facebook.com/groups/1430434070553414/permalink/2529999027263574?sfns=mo

2019-10-13


2019年10月12日 星期六

急性心肌梗塞 2019

急性心肌梗塞 是 106年國人十大死因排行榜的第二名!

主因是提供心臟血液與氧氣的「冠狀動脈」阻塞,心臟肌肉沒有氧氣的供給就會開始壞死,

發做後六小時內,如果沒有送到醫院內開始治療,死亡率很高,請大家注意!

https://zh.wikipedia.org/wiki/%E5%BF%83%E8%82%8C%E6%A2%97%E6%AD%BB



認識冠心病
https://www.hpa.gov.tw/Pages/Detail.aspx?nodeid=632&pid=1188


七大危險因子 預防心肌梗塞

冠心疾病的危險因子包括:

年齡。大於四十五歲的男性,以及大於五十五歲或停經後的女性。

家族史。家族有心臟病猝死或腦中風的案例。

高血壓、糖尿病或高血脂。有其中之一都是擁有危險因子。黃瑞仁解釋,血脂包括中性脂肪與膽固醇兩項,兩者最好都不要超過兩百;而膽固醇包括好的膽固醇及不好的膽固醇,一般來說不好的膽固醇最好低於一三○單位;而好的膽固醇男性至少要四○單位以上,女性要在五○單位以上。研究發現,好的膽固醇太低,也是台灣罹患冠心病的主要指標之一。

抽煙、肥胖或少運動。

這七個危險因子中有三個及以上的人,就要小心冠心病的發生。同時,要積極診斷,定期健康檢查。



急性心肌梗塞 的 症狀:

急性心肌梗塞的症狀,常見包括:急性胸痛、冒冷汗、暈眩、嘔吐、心律不整等。

疼痛有時會散布到一側的手臂、肩、頸部、下巴、上腹部或背部,

但也有人沒有明顯症狀。 









預防心肌梗塞...4關鍵要留意

https://www.commonhealth.com.tw/article/article.action?nid=76018



急性心肌梗塞 掌握治療黃金6小時

https://rmim.com.tw/news-detail-6879




心肌梗塞的預防與治療 - 馬偕紀念醫院

http://www.mmh.org.tw/taitam/car_su/education/AMI.pdf


衛生福利部中央健康保險署

https://www1.nhi.gov.tw/mqinfo/Content.aspx?Type=AMI&List=1


衛生福利部國民健康署 -- 認識冠心病

https://www.hpa.gov.tw/Pages/Detail.aspx?nodeid=632&pid=1188


** 檢查 **

急性心肌梗塞 心電圖 ST-T 節段的變化

https://www.google.com.tw/search?q=%E6%80%A5%E6%80%A7%E5%BF%83%E8%82%8C%E6%A2%97%E5%A1%9E+%E5%BF%83%E9%9B%BB%E5%9C%96&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjhg6na8_7iAhVI2LwKHYtZD4YQ_AUIECgB&biw=1426&bih=856




心肌肌鈣蛋白 Troponin I/T 在臨床上主要使用於心肌梗塞 (MI) 的診斷與評估

http://www.accuspeedy.com.tw/A16_search_items/006_sp_biochem/200_Troponin.htm



** 治療 **


認識冠心病和心導管介入性治療

https://www.cch.org.tw/cchhec/knowledge_detail.aspx?oid=121


心導管治療缺血性心臟病

http://www.kmuh.org.tw/www/kmcj/data/10005/15.htm


心肌血管重建治療的發展及現今臨床實務

http://www.tsim.org.tw/journal/jour29-1/02.PDF






冠狀動脈繞道手術復健

https://www.chimei.org.tw/main/cmh_department/59012/info/5100/A5100222.html




冠狀動脈旁路移植

https://zh.wikipedia.org/wiki/%E5%86%A0%E7%8A%B6%E5%8A%A8%E8%84%89%E6%97%81%E8%B7%AF%E7%A7%BB%E6%A4%8D


2019-06-23
2019-10-12
2020-02-16

2019年10月9日 星期三

2019年10月9 - 10日 有 ISS 國際太空站 SSTV 圖像無線電發訊活動

2019年10月9 - 10日 有 ISS 國際太空站 SSTV 圖像無線電發訊活動

Orbitron 預測:

Time Satellite Azm Elv Mag Range S.Azm S.Elv
--------------------------------------------------------------------------
2019-10-09 10:50:41 ISS 332.2 1.0 2.1 2268 271.6 -18.3
2019-10-09 10:55:40 ISS 44.9 26.4 ecl 836 272.1 -19.4
2019-10-09 11:00:37 ISS 116.9 1.0 ecl 2262 272.7 -20.5

2019-10-09 12:27:42 ISS 294.4 1.0 ecl 2263 283.6 -40.1
2019-10-09 12:32:10 ISS 235.0 14.5 ecl 1228 284.3 -41.0
2019-10-09 12:36:37 ISS 175.7 1.0 ecl 2255 285.0 -42.0

2019-10-10 10:02:29 ISS 340.8 1.0 2.2 2268 266.2 -7.6
2019-10-10 10:07:00 ISS 41.0 14.5 0.7 1233 266.7 -8.6
2019-10-10 10:11:30 ISS 101.3 1.0 ecl 2258 267.1 -9.6

2019-10-10 11:38:45 ISS 306.2 1.0 2.1 2265 276.7 -29.4
2019-10-10 11:43:45 ISS 232.6 29.9 ecl 762 277.3 -30.5
2019-10-10 11:48:44 ISS 159.2 1.0 ecl 2259 277.9 -31.6

有興趣的朋友可以試試:

MAI-75 SSTV Event

An SSTV event employing the Russian MAI-75 experiment is planned for Oct 9 from 09:50 to 14:00 UTC and on Oct 10 from 08:55 to 15:15 UTC. The orbits during these times will cover Europe, Asia, Australia and S. America. The far eastern US should get part of the last pass on the last day.

This event is expected to be on the regular frequency of 145.800 MHz using the PD120 SSTV mode. Those receiving images are invited to post them at the ARISS SSTV Gallery found online at https://www.spaceflightsoftware.com/ARISS_SSTV/ .

Wishing everyone solid downlinking,

Dave, AA4KN

ARISS PR


2019年10月1日 星期二

輔大校園拍到 大概是「黑冠麻鷺」 2019-10-01

輔大校園拍到的,大概是「黑冠麻鷺」吧?

https://drive.google.com/uc?export=view&id=1T_jwrHooXsGHYG9yi6MzFfLkdHhv1c1C


https://drive.google.com/uc?export=view&id=1_qzHSMHnGjO00iDncLqjuVd8HulDhWF9


https://drive.google.com/uc?export=view&id=1ULEtPQKQbuocwxSjeGUMaHS7xGAuIihH


以前在師範大學校園,還有其他地點也曾經看過。

2019-10-01

Dr. Shaw YC Shiau PhD 蕭醫師 蕭博士 蕭同學 首頁 置頂文 標籤 分類搜尋

There will be Advertisement  (personalized)   inserts in Google Blog. Sorry!  谷歌 的 部落格 會有 置入廣告 (個人化的) ,請見諒!    Information Service   b...