2023年7月27日 星期四

Selenium 的 chrome driver 又出現 breaking change

 參 https://developer.chrome.com/blog/chrome-for-testing/ 及 https://github.com/SergeyPirogov/webdriver_manager/issues/536

簡言之就是安裝 chrome-for-testing ,在建構 driver 物件時指向目錄下的 chrome.exe

突然多一個小時 debug 然後處理這種鳥事實在很煩,真是莫名~~

而且過程不是很單純,首要要看抓下來的 driver 版本對不對,不對的話要調整(通常是降版)

以降版為例,win10非專業版要想版法叫出 gpedit (參 教學|Win10/Win11 家用版開啟本機群組原則編輯器(gpedit.msc) | 阿德說科技 (adersaytech.com) )

再來暫時關掉 chrome 的自動更新 (參 https://support.google.com/chrome/a/answer/6350036?sjid=2956888277725785691-AP&visit_id=638260382937341523-514623359&rd=1#zippy=%2Cget-the-google-update-policy-template)

最後抓回對應的 msi 檔,在 cmd.exe 下達

msiexec /i GoogleChromeStandaloneEnterprise64.msi ALLOWDOWNGRADE=1



2023年6月22日 星期四

win10電腦無法給airpods pro充電盒充電

 解決方法參 win10电脑无法给airpods pro充电… - Apple 社区 

簡單來說就是 airpods 被當成裝置了,沒有進行充電。解除安裝後就可進行充電




2023年3月2日 星期四

text-davinci-003 與 ChatGPT 間的不同

這篇 text-davinci-003和ChatGPT之间的不同点 - 知乎 說得很好,就不再重覆了

問了 text-davinci-003 得到差不多的答案,列在下面





2022年12月16日 星期五

三訪 text-davinci-003 -- the steps to treat hyperkalemia. 高血鉀的治療

Human: list the steps to treat hyperkalemia.

AI: The steps to treat hyperkalemia are as follows: 1. Identify the underlying cause and discontinue any medications that could be contributing to the condition. 2. Administer calcium gluconate, which can help stabilize cardiac cells exposed to excess potassium. 3. Administer glucose and insulin, which can help reduce blood potassium levels. 4. Give oral or intravenous sodium bicarbonate, which can help reduce potassium levels by exchanging it for sodium. 5. Administer diuretics or dialysis, which can help remove excess potassium from the body. 6. Administer furosemide, which can help increase urinary excretion of potassium. 7. Exercise caution when administering potassium supplements, Human:

答案是對的,順序也很正確。I'm very much impressed!


2022年12月13日 星期二

二訪 text-davinci-003

問題形式相同,但代入不同名詞時,答案的確會出現有意義的變化。 

另外不知為何,機器人三大定律的作者,它答出了一個連 Google 都找不到的名字 -·Ivan Karl Gercenko。不知是彩蛋呢,還是故意埋的專利炸彈呢?



Human: Hello, who are you?

AI: I am an AI created by OpenAI. How can I help you today?

Human: 如何把大象塞進冰箱裏

AI: 把冰箱開啟,將大象放入,然後將冰箱門關上。但我個人不建議您這樣做,因為將大象放入冰箱可能會導致大象受傷。

Human: 如何把貓塞進玻璃瓶裏

AI: 把玻璃瓶放在平坦的表面上,將貓容易進入的入口放入玻璃瓶中,然後輕輕拍打玻璃瓶,讓貓順利進入玻璃瓶中。

Human: 如何把花生塞進玻璃瓶裏

AI: 將花生倒入玻璃瓶中,然後將瓶口關緊即可。

Human: 機器人三大法則是什麼?

AI: 機器人三大法則是由科學家伊夫-卡爾·葛爾多瓦於1950年所提出的,包括:1。 一個機器人不能傷害人類或者通過其行為導致人類受到傷害,2。 一個機器人必須服從人

Human: 那不是  Isaac Asimov 提出的嗎?

AI: 是的,伊薩克·阿西莫夫於1950年提出了一系列法則,也被稱為「機器人三大法則」,此後,這三大法則已經成為機器人學的重要理論。

Human: 伊夫-卡爾·葛爾多瓦是誰?

AI:

AI: 伊夫-卡爾·葛爾多瓦(Ivan Karl Gercenko)是一位俄羅斯的資深機器人學家,他為機器人學帶來了重大貢獻,他在1950年開始提出三大法則,此後便成為了機器人學的重要指

Human: 

2022年12月2日 星期五

聊天機器人再進化--openAI的 text-davinci-003

 參 https://beta.openai.com/playground/p/default-chat?model=text-davinci-003