Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/webadm/public_html/w20120921/lf/class/action/blogaction.class.php on line 306

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/webadm/public_html/w20120921/lf/class/action/blogaction.class.php on line 308

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/webadm/public_html/w20120921/lf/class/action/blogaction.class.php on line 310

Warning: Cannot modify header information - headers already sent by (output started at /home/webadm/public_html/w20120921/lf/class/action/blogaction.class.php:306) in /home/webadm/public_html/w20120921/lf/class/view/view.class.php on line 328

Warning: Cannot modify header information - headers already sent by (output started at /home/webadm/public_html/w20120921/lf/class/action/blogaction.class.php:306) in /home/webadm/public_html/w20120921/lf/class/view/view.class.php on line 175
樹心幽徑 http://oldwww.kmvs.km.edu.tw/lf/index.php?blogId=70 20200326在Bitcom.com當比特幣礦工 20200326在Bitcom.com當比特幣礦工 (2) 2020年十大最佳挖礦加密貨幣 (1) https://www.bitcoin.com/ http://oldwww.kmvs.km.edu.tw/lf/index.php?op=ViewArticle&articleId=577&blogId=70 Thu, 26 Mar 2020 11:43:57 +0800 20200324使用Google的AutoDraw與QuickDraw (1)Google-AI-Lab的AutoDraw https://www.autodraw.com/   (2)  google ( 限時塗鴉 )Quick,Draw 線上遊戲 (3) http://playground.tensorflow.org http://oldwww.kmvs.km.edu.tw/lf/index.php?op=ViewArticle&articleId=576&blogId=70 Tue, 24 Mar 2020 15:54:18 +0800 20200311在UBuntu更新firefox (1) $ sudo apt-get update (2) $ sudo apt-get install flashplugin-installer (3)$ sudo apt-get install firefox (4)$ firefox & http://oldwww.kmvs.km.edu.tw/lf/index.php?op=ViewArticle&articleId=572&blogId=70 Wed, 11 Mar 2020 20:26:34 +0800 20200309讓Ubuntu可列印成pdf檔案 (1)$ sudo apt-get install cups-pdf (2)$ sudo chmod +s /usr/lib/cups/backend/cups-pdf (3)System/Administration/Printing/New Printer/ (4)解決無法列印的問題訊息「cups-insecure-filter」: $ sudo chown -hR root /usr/lib/cups/filter $ sudo chown -hR root /usr/lib/cups/backend $ sudo chgrp -hR root /usr/lib/cups/filter $ sudo chgrp -hR root /usr/lib/cups/backend (5)終於列印成pdf檔成功如下: ls  ~/PDF -l 總計 376 -rw------- 1 treehrt treehrt 381672  3月  9 20:19 252.pdf     REF: https://www.itread01.com/content/1548432908.html http://oldwww.kmvs.km.edu.tw/lf/index.php?op=ViewArticle&articleId=571&blogId=70 Mon, 09 Mar 2020 20:00:49 +0800 20200317使用LibreOffice calc並將指定列印範圍的內容列印成pdf檔 (1) LibreOffice可 自 https://zh-tw.libreoffice.org/download/ 下載LibreOffice 6.3.3安裝程式 (LibreOffice_6.3.3_Win_x64.msi, 303MB)並安裝之. (2-1)執行calc/按CTRL+ALT+DEL/工作管理員/處理程序/按ALT+PRTSCR將現況視窗截圖/貼入在CALC的A2:J36範圍中成第1圖 (按 「ALT+TAB 鍵 」 可切換AP;按 「視窗+方向鍵」 可用一半的螢幕來顯示AP)   (2-2)工作管理員/效能/CPU/按ALT+PRTSCR將現況視窗截圖/貼入在CALC的A38:J72範圍中成第2圖   (2-3) 工作管理員/效能/GPU/按ALT+PRTSCR將現況視窗截圖/貼入在CALC的A74:J108範圍中成第3圖     (2-4) 工作管理員/效能/記憶体/按ALT+PRTSCR將現況視窗截圖/貼入在CALC的A110:J144範圍中成第4圖。   (2-5) 工作管理員/效能/乙太網路/按ALT+PRTSCR將現況視窗截圖/貼入在CALC的A146:J180範圍中成第5圖。   (2-6) 工作管理員/效能/磁碟0(C:)/按ALT+PRTSCR將現況視窗截圖/貼入在CALC的A182:J216範圍中成第6圖。 (2-7)於「工作表1」處按右鍵/選「重新命名工作表」/將「工作表1」改名為「工作表1-工作管理員」   (3)製作三種CPU工作排程圖:在LIbreOffice的CALC新增另一工作表,並改名為「工作表2-CPU工作排程」 並在其中輸入如下圖的資料 (3-1)FCFS先到先執行: A(19)B(3)C(8) 平均等待時間=(0+19+22)/3=13.67 (3-1a)按CTRL+A(全選)/拖曳任一欄格線可改變所有欄的寬度 (3-1b)在A3輸入A01/在右下角往右拖曳直到A19出現。 (3-1c)在T3輸入B01/在右下角往右拖曳直到B03出現。 (3-1d)在W3輸入C01/在右下角往右拖曳直到C08出現。 (3-1e)在A4輸入0/在右下角往右拖曳直到30出現。 (3-1f)點選第2列頭並拖曳到第5列來選取連續四列並按CTRL+C複製/點選A6並按CTRL+V貼入剛複製的4列 並調整內容以表示「 C(8)B(3)A(19) 平均等待時間=(0+8+11)/3=6.33 」。   (3-2)SJF最短工作優先 B(3)C(8)A(19) 平均等待時間=(0+3+11)/3=4.67   (3-3)有優先權者優先 C(8)A(19)B(3) 平均等待時間=(0+8+27)/3=11.67   (3-3a)選A1:AE17/格式/列印範圍/定義 (3-3b)檔案/預覽列印/設定頁面格式/頁面:選 橫向 /工作表:顯示比例/縮放模式:選列印符合1頁寬及1頁高。 (3-4) 下載PDFCreator 繁體中文4.0.3版 安裝版 (31.5MB) 並安裝之。 (3-5)CALC/檔案/列印/印表機挑「PDFCreator」/列印成PDF檔在桌面,檔名給20200317-2.pdf 詳如範例檔:20200317-2.pdf 下載 (69 KB) | created 17 三月, 2020   (3-6)在CALC點選「工作表1-工作管理員」/選取範圍A1:J218/格式功能表/列印範圍/定義,並參考(3-3b)預覽列印/設定頁面格式/頁面:選 縱向 /工作表:顯示比例/縮放模式:選列印符合1頁寬及 3頁高 。    (3-7)同3-5操作將3-6的內容列印成桌面的20200317-1.pdf  詳如範例檔:20200317-1.pdf 下載 (410 KB) | created 17 三月, 2020     (4)TCPIP畫面截圖: (4-0) 在LIbreOffice的CALC新增另一工作表,並改名為「工作表3-TCPIP」 並在其中貼入如下操作畫面的截圖 (4-1)執行cmd/輸入ipconfig/按ALT+PRTSCR將現況視窗截圖/貼入CALC「工作表3-TCPIP」的 A2:J36 範圍中成第d1圖 (4-2)WIN10/控制台/網路連線/內容/TCPIPv4/內容/按ALT+PRTSCR將現況視窗截圖/貼入CALC「工作表3-TCPIP」的 A38:J72 範圍中成第d2圖   (4-3)執行cmd/輸入nslookup/ 輸入 www.ntu.edu.tw/ 輸入 www.kmvs.km.edu.tw/ 輸入 quit/按ALT+PRTSCR將現況視窗截圖/貼入CALC「工作表3-TCPIP」的 A74:J108 範圍中成第d3圖   (4-4a)選取工作表3的A1:J108/格式功能表/列印範圍/定義 (4-4b)檔案/預覽列印/設定頁面格式/頁面:選 橫向 /工作表:顯示比例/縮放模式:選列印符合1頁寬及2頁高。 (4-4c)檔案/列印/印表機挑「PDFCreator」/列印成PDF檔在桌面,檔名給20200317-3.pdf , 詳如如下範例檔: 20200317-3.pdf 下載 (151 KB) | created 17 三月, 2020 (5)將CALC存在桌面為20200317你名你號.ods, 詳如如下範例檔: 20200317calc.ods 下載 (468 KB) | created 17 三月, 2020   REF: 20200309讓Ubuntu可列印成pdf檔案 http://oldwww.kmvs.km.edu.tw/lf/index.php?op=ViewArticle&articleId=570&blogId=70 Thu, 05 Mar 2020 07:13:26 +0800 20200225用LibreOffice的writer製作組裝一台中階個人電腦的零件選購清單     REF0:歐飛先生部落格-如何選購組裝一台高CP值的電腦 https://ofeyhong.pixnet.net/blog/post/222532089 (一)中央處理器(CPU):   INTEL i7-9700K【8核/8緒】3.6GHz(↑4.9GHz)/UHD630/ 12M/14nm/65W/約1.2萬元 //LGA 1151插槽 買性能好的可以玩高速的電動。 Ref 1 :CPU選購與推薦: https://ofeyhong.pixnet.net/blog/post/59877783   (二)RAM主記憶體(Main Memory): DDR4-2666  8GB*2條=16GB  可跑雙通道,一條8GB約1100元,二條計2200元。 Transcend 創見 DDR4 2666 8G JETRAM PC用 Ref 2 :RAM選購與推薦: https://ofeyhong.pixnet.net/blog/post/59851482   (三)主機板(MotherBoard): 技嘉 H370 AORUS GAMING 3 WIFI (ATX/1D1H/I網/ac+BT5/註五年) 約5000元。 採 H370 晶片組、有WIFI   、ATX機殼、 、1個DVI視訊接頭、1個HDMI 視訊接頭 、內建Intel網路晶片、支援 802.11ac無線及 藍牙5、註冊後可享五年保固。 USB插孔六個:分別是USB-3.1、USB-TYPE-C各一 (粉紅) 、   USB-2.0二個 ( 黑) 、 USB-3.0二個 (藍) 。 Ref 3 :主機板選購與推薦: https://ofeyhong.pixnet.net/blog/post/59878626   (四a)固態硬碟(SSD,Solid State Disk)   :安裝作業系統及應用程式。 美光 MX500 500GB/2.5" 7mm/讀:560M/寫:510M/TLC , 約2500元。 Ref 4a :SSD選購與推薦: https://ofeyhong.pixnet.net/blog/post/193264786   (四b)硬碟(HARD DISK):用來放資料。 Seagate 1TB 【新梭魚】 64M/7200轉/三年保  約2000元。 Ref 4b :硬碟選購與推薦: https://ofeyhong.pixnet.net/blog/post/59288574   (四c)DVD燒錄機(DVD-RW): 華碩 藍光COMBO機 12X 藍光讀/16X DVD燒 (約 2千元) Ref 4c : DVD燒錄機 選購與推薦: https://ofeyhong.pixnet.net/blog/post/60337962     (五)獨立顯示卡: GTX 16 6 0Ti GAMING OC 6G  (1860MHz/28cm) 約5000元。 也可不買,使用「主機板內建的顯示晶片」。 Ref 5 : 顯示卡 選購與推薦: https://ofeyhong.pixnet.net/blog/post/58511370 (六)電源供應器(PowerSupply): 全漢 黑騎士 550W   /  80+銀牌/ 全日系電容 2200元 Ref 6 電源供應器 選購與推薦: https://ofeyhong.pixnet.net/blog/post/57302139 (七)機殼(Case):   酷碼  N400  (ATX/5.25槽*2/內建風扇前1後1/顯卡320mm/塔散164mm) 約1500元。 Ref 7 機殼 選購與推薦: https://ofeyhong.pixnet.net/blog/post/57221160 (八)液晶顯示器(LCD): ASUS VA24EHE 24吋   (有附HDMI線) 約4000元 Ref 8 液晶顯示器 選購與推薦: https://ofeyhong.pixnet.net/blog/post/60350154 (九a)鍵盤(keyboard) 與滑鼠(Mouse): :Pchome: 羅技 MK200 有線鍵鼠組  約600元 (九b) 喇叭(Speaker):Pchome: 羅技Z150 多媒體音箱 約700元 Ref 9 鍵盤 滑鼠 喇叭 選購與推薦: https://ofeyhong.pixnet.net/blog/post/62410674   ( 十 )作業系統(OS)、辦公室軟體、防毒軟體: Ref 10 作業系統 選購與推薦: https://ofeyhong.pixnet.net/blog/post/206658040 (a)作業系統 :MS-Win10家用彩盒版約5000元 (也可下載安裝免費的自由軟體 ubuntu Linux) (b)辦公室軟體 : MS- Office 2019 家用版  約4500元 (也可 下載安 裝免費的自由軟體 LibreOffice ) (c) 防毒軟體: MS-Windows Defender(win10內建) (十一)其他:光華商場報價網站  http://www.arclink.com.tw/   20180106PC-DIY清單 (十二)用LibreOffice的writer製作選購清單如下截圖: LibreOffice可 自 https://zh-tw.libreoffice.org/download/ 下載LibreOffice 6.3.3安裝程式 (LibreOffice_6.3.3_Win_x64.msi, 303MB)並安裝之.   http://oldwww.kmvs.km.edu.tw/lf/index.php?op=ViewArticle&articleId=567&blogId=70 Tue, 18 Feb 2020 13:44:35 +0800 20200131用JavaScript將文字盒中的大地座標轉為 kml 或 gpx 航跡檔   (1)JS網頁程式碼:js2kmlgpx.txt 下載 (5 KB) | created 01 二月, 2020 js2kmlgpx.txt檔案下載後將txt副檔名改為htm副檔名即可用firefox瀏覽器開啟並使用之。   (2 )產生KML航跡檔文字的執行結果並提供kml檔下載,可選用GOOGLE-EARTH開啟。   (3 )產生GPX航跡檔文字的執行結果並提供gpx檔下載,可選用MapSource或BaseCamp開啟。   REF: 20200124安裝魯地圖、MapSource、BaseCamp、GoogleEarth並用LIBRE-OFFICE 的CALC試算表及notepad記事本來製作伊加之蕃的kml及gpx航跡檔 http://oldwww.kmvs.km.edu.tw/lf/index.php?op=ViewArticle&articleId=566&blogId=70 Fri, 31 Jan 2020 19:50:46 +0800 20200124安裝魯地圖、MapSource、BaseCamp、GoogleEarth並用LIBRE-OFFICE 的CALC試算表及notepad記事本來製作伊加之蕃的kml及gpx航跡檔     (1)在 魯地圖 Taiwan TOPO  下載Install_MOI_Taiwan_TOPO_camp.exe(186MB) [mirror Rex] / [mirror KCWu] / [mirror Happyman] 並安裝 Taiwan TOPO   魯地圖 (2a)下載並安裝 MapSource 6.16.3更新程式(要先裝有GARMIN 定位器附的MAPSOURCE) (2b)執行MapSource並按CTRL+U選用(1)所裝的 Taiwan TOPO   魯地圖 。 (3a)使用MapSource的航點標定功能自行標定一序列想要去的航點路線(例如下二圖, 編輯功能表/偏好設定 分別為WGS84及TWD67)並複製取得自訂航點的WGS84大地座標及TWD67大地座標。     (3b)用LIBRE-OFFICE 的CALC製作如下試算表,詳如20200127_0208eplus.ods 下載 (51 KB) 如下NAME,twd67,wgs84三欄為取自(3a)所標定的航點資料。 如下x67欄D2的公式為=MID(B2,1,6)  如下y67欄E2的公式為=MID(B2,8,7) 如下x97欄 F2的公式為= D2 + 807.8 + 0.00001549 * D2 + 0.000006521 *E2 如下y97欄 G2的公式為 =E2 - 248.6 + 0.00001549 * E2 + 0.000006521 *D2 如下lon欄h2的公式為=MID(C2,2,8) 如下lat欄i2的公式為=MID(C2,12,9) 如下gpxWPT欄J2的公式為 ="<wpt lon='" & I2 & "' lat='" & H2 & "'> <name>" & A2 & "</name>  </wpt>" 如下gpxTrkpt欄k2的公式為 ="<trkpt lat='" & H2 &"' lon='" & I2 & "'> <ele>1800</ele>  </trkpt>" 如下kmlWPT欄L2的公式為  ="<Placemark><name>" & A2 &"</name><Point><coordinates>" & I2 & "," & H2 & "</coordinates></Point></Placemark>" 如下kmlTrkpt欄M2的公式為 =I2 & "," & H2   (3c)20200127_0208eplus.ods 試算表的內容欄位如下: A1 NAME B1 TDW67 C1 WGS84 D1 X67 E1 Y67 F1 X97 G1 Y97 H1 lon I1 lat J1 gpxWPT K1 gpxTrkpt L1 kmlWPT M1 KMLTrkpt e00 244925 2560594 N23.14545 E120.95866 244925 2560594 245,753 2560387 23.14545 120.95866 <wpt lon='120.95866' lat='23.14545'> <name>e00</name> </wpt> <trkpt lat='23.14545' lon='120.95866'> <ele>1800</ele> </trkpt> <Placemark><name>e00</name><Point><coordinates>120.95866,23.14545</coordinates></Point></Placemark> 120.95866,23.14545 e01 244760 2560524 N23.14482 E120.95705 244760 2560524 245,588 2560317 23.14482 120.95705 <wpt lon='120.95705' lat='23.14482'> <name>e01</name> </wpt> <trkpt lat='23.14482' lon='120.95705'> <ele>1800</ele> </trkpt> <Placemark><name>e01</name><Point><coordinates>120.95705,23.14482</coordinates></Point></Placemark> 120.95705,23.14482 e02 244621 2560461 N23.14425 E120.95569 244621 2560461 245,449 2560254 23.14425 120.95569 <wpt lon='120.95569' lat='23.14425'> <name>e02</name> </wpt> <trkpt lat='23.14425' lon='120.95569'> <ele>1800</ele> </trkpt> <Placemark><name>e02</name><Point><coordinates>120.95569,23.14425</coordinates></Point></Placemark> 120.95569,23.14425 e03 244466 2560429 N23.14396 E120.95418 244466 2560429 245,294 2560222 23.14396 120.95418 <wpt lon='120.95418' lat='23.14396'> <name>e03</name> </wpt> <trkpt lat='23.14396' lon='120.95418'> <ele>1800</ele> </trkpt> <Placemark><name>e03</name><Point><coordinates>120.95418,23.14396</coordinates></Point></Placemark> 120.95418,23.14396 e04 244333 2560310 N23.14288 E120.95288 244333 2560310 245,161 2560103 23.14288 120.95288 <wpt lon='120.95288' lat='23.14288'> <name>e04</name> </wpt> <trkpt lat='23.14288' lon='120.95288'> <ele>1800</ele> </trkpt> <Placemark><name>e04</name><Point><coordinates>120.95288,23.14288</coordinates></Point></Placemark> 120.95288,23.14288 e05 244135 2560205 N23.14194 E120.95095 244135 2560205 244,963 2559998 23.14194 120.95095 <wpt lon='120.95095' lat='23.14194'> <name>e05</name> </wpt> <trkpt lat='23.14194' lon='120.95095'> <ele>1800</ele> </trkpt> <Placemark><name>e05</name><Point><coordinates>120.95095,23.14194</coordinates></Point></Placemark> 120.95095,23.14194 e06 244073 2560130 N23.14126 E120.95035 244073 2560130 244,901 2559923 23.14126 120.95035 <wpt lon='120.95035' lat='23.14126'> <name>e06</name> </wpt> <trkpt lat='23.14126' lon='120.95035'> <ele>1800</ele> </trkpt> <Placemark><name>e06</name><Point><coordinates>120.95035,23.14126</coordinates></Point></Placemark> 120.95035,23.14126 e07 244046 2560017 N23.14024 E120.95008 244046 2560017 244,874 2559810 23.14024 120.95008 <wpt lon='120.95008' lat='23.14024'> <name>e07</name> </wpt> <trkpt lat='23.14024' lon='120.95008'> <ele>1800</ele> </trkpt> <Placemark><name>e07</name><Point><coordinates>120.95008,23.14024</coordinates></Point></Placemark> 120.95008,23.14024 e08 243952 2559698 N23.13736 E120.94916 243952 2559698 244,780 2559491 23.13736 120.94916 <wpt lon='120.94916' lat='23.13736'> <name>e08</name> </wpt> <trkpt lat='23.13736' lon='120.94916'> <ele>1800</ele> </trkpt> <Placemark><name>e08</name><Point><coordinates>120.94916,23.13736</coordinates></Point></Placemark> 120.94916,23.13736   (3d)TWD67及TWD97的座標互換公式如下: x67=x97-807.8-0.00001549*x97-0.000006521*y97; y67=y97+248.6-0.00001549*y97-0.000006521*x97; x67 y67 x97 y97 Qilis 275034.084586792 2582984.79386616 275863 2582778 x97 = x67 + 807.8 + 0.00001549 * x67 + 0.000006521 * y67; y97 = y67 - 248.6 + 0.00001549 * y67 + 0.000006521 * x67; Qilis 275034.0846 2582984.79387 275,863 2582778   (4a)將如下 gpxWPT及 gpxTrkpt二個欄位的內容貼入如下gpx檔的適當位置中即可製作出如下的gpx檔: 20200121伊蕃wptTrk3.gpx 下載 (17 KB) gpxWPT gpxTrkpt <wpt lon='120.95866' lat='23.14545'> <name>e00</name> </wpt> <trkpt lat='23.14545' lon='120.95866'> <ele>1800</ele> </trkpt> <wpt lon='120.95705' lat='23.14482'> <name>e01</name> </wpt> <trkpt lat='23.14482' lon='120.95705'> <ele>1800</ele> </trkpt> <wpt lon='120.95569' lat='23.14425'> <name>e02</name> </wpt> <trkpt lat='23.14425' lon='120.95569'> <ele>1800</ele> </trkpt>   (4b)20200121伊蕃wptTrk3.gpx內容摘述如下: <?xml version="1.0" encoding="UTF-8" standalone="no" ?> <gpx xmlns="http://www.topografix.com/GPX/1/1" creator="MapSource 6.15.7" version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"> <metadata>     <link href="http://www.garmin.com">       <text>Garmin International</text>     </link>     <time>2020-01-22T00:46:18Z</time>     <bounds maxlat="23.1454495" maxlon="120.9586646" minlat="23.0881861" minlon="120.8897781"/> </metadata> <wpt lon='120.95866' lat='23.14545'> <name>e00</name>  </wpt> <wpt lon='120.95705' lat='23.14482'> <name>e01</name>  </wpt> <wpt lon='120.95569' lat='23.14425'> <name>e02</name>  </wpt> : <trk> <name>20200127-0208gPLUS</name>     <extensions>       <gpxx:TrackExtension xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3">         <gpxx:DisplayColor>Green</gpxx:DisplayColor>       </gpxx:TrackExtension>     </extensions> <trkseg> <trkpt lat='23.16128' lon='120.92484'> <ele>1800</ele>  </trkpt> <trkpt lat='23.16198' lon='120.92435'> <ele>1800</ele>  </trkpt> <trkpt lat='23.16214' lon='120.92345'> <ele>1800</ele>  </trkpt> <trkpt lat='23.16232' lon='120.92215'> <ele>1800</ele>  </trkpt> <trkpt lat='23.16270' lon='120.91963'> <ele>1800</ele>  </trkpt> <trkpt lat='23.16334' lon='120.91780'> <ele>1800</ele>  </trkpt> <trkpt lat='23.16377' lon='120.91587'> <ele>1800</ele>  </trkpt> <trkpt lat='23.16478' lon='120.91550'> <ele>1800</ele>  </trkpt> <trkpt lat='23.16685' lon='120.91489'> <ele>1800</ele>  </trkpt> <trkpt lat='23.16797' lon='120.91485'> <ele>1800</ele>  </trkpt> <trkpt lat='23.16946' lon='120.91400'> <ele>1800</ele>  </trkpt> <trkpt lat='23.17115' lon='120.91195'> <ele>1800</ele>  </trkpt> <trkpt lat='23.17135' lon='120.91100'> <ele>1800</ele>  </trkpt> <trkpt lat='23.17210' lon='120.90991'> <ele>1800</ele>  </trkpt> <trkpt lat='23.17422' lon='120.90997'> <ele>1800</ele>  </trkpt> <trkpt lat='23.17521' lon='120.91003'> <ele>1800</ele>  </trkpt> <trkpt lat='23.17697' lon='120.90937'> <ele>1800</ele>  </trkpt> <trkpt lat='23.17906' lon='120.90887'> <ele>1800</ele>  </trkpt> <trkpt lat='23.18001' lon='120.90908'> <ele>1800</ele>  </trkpt> <trkpt lat='23.18072' lon='120.90938'> <ele>1800</ele>  </trkpt> </trkseg> </trk> </gpx> (4c)用MapSource 開啟(4a)所製成的20200121伊蕃wptTrk3.gpx( 下載 )成功。   (5a)將如下 kmlWPT及kml Trkpt二個欄位的內容貼入如下kml檔的適當位置中即可製作如下的kml檔: 20200127-0208eplus5.kml 下載 (15 KB) kmlWPT KMLTrkpt <Placemark><name>e00</name><Point><coordinates>120.95866,23.14545</coordinates></Point></Placemark> 120.95866,23.14545 <Placemark><name>e01</name><Point><coordinates>120.95705,23.14482</coordinates></Point></Placemark> 120.95705,23.14482 <Placemark><name>e02</name><Point><coordinates>120.95569,23.14425</coordinates></Point></Placemark> 120.95569,23.14425 (5b)   20200127-0208eplus5.kml 內容摘述如下: <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2"> <Document> <name>GPS device</name> <Style id="lineStyle"> <LineStyle> <color>FF0000EF</color> <width>3</width> </LineStyle> </Style> <Folder> <name>Waypoints</name> <Placemark><name>e00</name><Point><coordinates>120.95866,23.14545</coordinates></Point></Placemark> <Placemark><name>e01</name><Point><coordinates>120.95705,23.14482</coordinates></Point></Placemark> <Placemark><name>e02</name><Point><coordinates>120.95569,23.14425</coordinates></Point></Placemark> <Placemark><name>e03</name><Point><coordinates>120.95418,23.14396</coordinates></Point></Placemark> : : <Placemark><name>g20</name><Point><coordinates>120.90938,23.18072</coordinates></Point></Placemark> </Folder> <Folder> <name>Tracks</name> <Folder> <snippet/> <description> <![CDATA[<table> <tr><td><b>Distance</b> 8.0 mi </td></tr> </table>]]> </description> <Placemark> <name>20200122EPLUS </name> <styleUrl>#lineStyle</styleUrl> <LineString> <tessellate>1</tessellate> <coordinates> 120.95866,23.14545 120.95705,23.14482 120.95569,23.14425 :  120.94141,23.12871 120.93987,23.12681 120.93898,23.12482 120.93842,23.12279 :  120.88978,23.10096 </coordinates> </LineString> <LineString> <tessellate>2</tessellate> <coordinates> 120.93904,23.11520 120.93846,23.11436 120.93707,23.11286 :  120.94065,23.08841 </coordinates> </LineString> <LineString> <tessellate>3</tessellate> <coordinates> 120.92484,23.16128 120.92435,23.16198 :   120.90887,23.17906 120.90908,23.18001 120.90938,23.18072 </coordinates> </LineString> </Placemark> </Folder> </Folder> </Document> </kml> (6a)下載並安裝 google earth (6b)用google earth 開啟(4a)所製成的20200121伊蕃wptTrk3.gpx( 下載 )成功。 (6c)用google earth 開啟(5a)所製成的20200127-0208eplus5.kml ( 下載 )成功。   (7a)下載並 安裝BaseCamp(安裝完成重開機才會生效)。 2019/10/30 BaseCamp 4.7.1版軟體更新下載 下載軟體(61.58 MB) (7b)執行BaseCamp並於地圖功能表中選用(1)所裝的 Taiwan TOPO   魯地圖 。 (7c)用BaseCamp 開啟(4a)所製成的20200121伊蕃wptTrk3.gpx( 下載 )成功。 REF : 20191113延伸標示語言(XML)和gpx航跡檔及安裝並使用BaseCamp 20191006可將gpx航跡檔轉為kml檔的c語言程式 gpx2kml.c 20190517用c語言程式kml2gpx.c將20140829南勢溪源頭拳頭母山松蘿湖.kml轉為gpx檔 20180925xml2e.c將gpx航跡檔轉存為csv文字檔 20180919程式xml2b.c:解讀gpx航跡檔並另存為xmlout.gpx 20180910-13安裝xml程式庫libxml2-dev並設計測試程式xml2.c用來解讀gpx航跡檔 http://oldwww.kmvs.km.edu.tw/lf/index.php?op=ViewArticle&articleId=564&blogId=70 Fri, 24 Jan 2020 17:16:38 +0800 20200112設計第一個Android APP:自訂程式標題、文字物件與按鈕 REF1  : https://readandplay.pixnet.net/blog/post/140001110 ref2 : 把APP安裝到手機裡 ref3: 新增一個按鈕、加上點擊的事件 ref4: <Android> Button OnClickListener 事件三種做法 ref5: 【APP/Android】onClick事件的5種實現方式   (1)下載Android Studio  App 開發工具( android-studio-ide-191.6010548-windows.exe) https://developer.android.com/studio 3.5.3 for Windows 64-bit (718 MB) (2)安裝完成並啟動IDE/下載各式組件(約573MB)「...COMPONENTS: SDK Tools、 Patch Applier、 emulator(262MB)、platform(75MB) 、build-tools(38MB)、 Intel x86 Emulator Accelerator (HAXM installer)、 sources(38MB)...」 : Downloading https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip Downloading https://dl.google.com/android/repository/3534162-studio.sdk-patcher.zip Downloading https://dl.google.com/android/repository/emulator-windows-6110076.zip Downloading https://dl.google.com/android/repository/platform-tools_r29.0.5-windows.zip Downloading https://dl.google.com/android/repository/extras/intel/haxm-windows_v7_5_4.zip Downloading https://dl.google.com/android/repository/platform-29_r04.zip Downloading https://dl.google.com/android/repository/build-tools_r29.0.2-windows.zip Downloading https://dl.google.com/android/repository/sources-29_r01.zip Running Intel® HAXM installer : (3-1)「Start a new Android Studio project」:建立新專案/「Creates A New Empty Activity」 (3-2)輸入並設定如下內容:「name: TreeHeartFirst」/「Package name:com.example.treeheartfirst」/「Save Location:C:\Users\treehrt\AndroidStudioProjects\TreeHeartFirst」/「Langauage: java 」/「Minimum API level : API 15」 (3-3)syncing :下載gradles distribution (3-4)下載Kotlin plugins (3-5)允許存取「OpenJDK Platform binary」   (4-1) 點選app/res/layout/下的「activity_main.xml」或「content_main.xml」並修改TextView物件預設的顯示文字. < TextView android :layout_width ="wrap_content" android :layout_height ="wrap_content" android :text ="H黑熊問候大家好!" app :layout_constraintBottom_toBottomOf ="parent" app :layout_constraintLeft_toLeftOf ="parent" app :layout_constraintRight_toRightOf ="parent" app :layout_constraintTop_toTopOf ="parent" /> (4-2) 點選「app/res/values/strings.xml」並修改app_name如下: < string name ="app_name" >Treehrt5:TaiwanBlackBear台灣黑熊</ string > < string name ="buttonText" >BlackBear!黑熊來了</ string > < string name ="buttonOnClickMessage" >按了</ string >   (4-3) 點選app/res/layout/下的「content_main.xml」的TextView下加入如下文字: < Button   android :layout_width ="wrap_content" android :layout_height ="wrap_content" android :text =" @string/buttonText" android :onClick ="buttonOnClick /> (4-4)開啟 app/java/[專案id]/MainActivity .java void buttonOnClick(View view) { Toast toast = Toast. makeText ( this , R.string. buttonOnClickMessage , Toast. LENGTH_SHORT ); toast.show(); } (5-1)新增ANDROID模擬器:「Open AVD Manger」/CreateVitualDevice/選「Phone: Pixel 3a」/選「Android 10.0」 (5-2)下載並安裝Google Play Intel x86 Atom System Image第8版 (system-images;android-29;google_apis_playstore;x86) API LEVEL: 29   約1.1GB (5-3) AVD NAME: Pixel 3a API 29 (5-4)按下「Pixel 3a模擬器」旁的執行鈕即可出現執行結果。   (6) 如果執行的APP一直卡在「 Waiting for Target Device to Come Online 」,進行如下操作即可解決: AVD Manager---Right Click Emulator----Wipe Data----Run App Again http://oldwww.kmvs.km.edu.tw/lf/index.php?op=ViewArticle&articleId=563&blogId=70 Sun, 12 Jan 2020 11:49:27 +0800 20200109自selldb資料庫的custs資料表選擇要刪除的資料錄來刪除的PHP程式(c3.php) (1)c3.php程式碼: <body bgcolor=green> <?php function exeSQL($con,$sql){ if( $query= mysqli_query($con, $sql) ) {echo " $sql 成功!<br> "; } else { echo " $sql Failure!<br> "; }     return $query; } function dumpTableForDel($table,$con,$bgcolor){     $sql= "select * from $table";     $query=exeSQL($con,$sql);     echo "<table bgcolor=$bgcolor border=7>";     echo "<tr bgcolor=cyan>";     $fc= mysqli_num_fields($query) ;     while ($field = mysqli_fetch_field($query)){         printf("<td bgcolor=pink>%s", $field->name);         }     echo "<td>DEL";     $rowc=0;     while ($row = mysqli_fetch_array($query)){         echo "<tr bgcolor=purple>";         for ($i=0;$i<$fc;$i++){             echo  "<td bgcolor=gray>" . $row[$i];         } echo "<td><a href=c3.php?id=" . $row[0] .">DEL</a>";         $rowc++; } echo "</table>"; echo "total $rowc records <br><br>"; } $con = mysqli_connect('127.0.0.1', 'root', 'w??????', 'selldb'); if (!$con) { echo "Error"; exit(); } $sql = 'set names utf8;'; $query= exeSQL($con,$sql); dumpTableForDel("custs",$con,"yellow"); $id=$_GET['id']; if ($id<>NULL){     $sql="delete from custs where id=$id";     $query= exeSQL($con,$sql);     echo "刪掉 id=$id 的資料錄後,custs資料表內容如下<br>";     dumpTableForDel("custs",$con,"cyan"); } mysqli_close ($con); ?> </body> (2)執行結果: set names utf8; 成功! select * from custs 成功! id name amount tel DEL 10001 小狗 156 08-233375 DEL 10002 小貓 256 08-233375 DEL 10001 小草 1000 08-233375 DEL 10002 天牛 3000 03-933375 DEL 20002 天牛 3000 03-933375 DEL 30002 天牛 3000 03-933375 DEL total 6 records delete from custs where id=10001 OK! 刪掉 id=10001 的資料錄後,custs資料表內容如下 select * from custs 成功! id name amount tel DEL 10002 小貓 256 08-233375 DEL 10002 天牛 3000 03-933375 DEL 20002 天牛 3000 03-933375 DEL 30002 天牛 3000 03-933375 DEL total 4 records   http://oldwww.kmvs.km.edu.tw/lf/index.php?op=ViewArticle&articleId=562&blogId=70 Thu, 09 Jan 2020 09:53:16 +0800