2024年4月26日 星期五

經由Groq API功能,使用Meta開放源碼Llama3-70b-8192模型,進行 日文PROMPT提示詞 查詢

藉由免費Groq API服務,橋接使用臉書Meta開放源碼LLM大語言模型,進行 日文相關查詢運用

💜步驟一:

☺💟https://console.groq.com/keys  取得API KEY

☺💟在自己的電腦環境變數,加入GROQ_API_KEY變數,指定您所取得API KEY值

💜步驟二: 備妥PYTHON執行環境

 pip install groq

💜步驟三:將下面藍色部分,另存成 PYTHON程式碼(如:testgroq.py ),並且執行它即可

import os

from groq import Groq

client = Groq(
    api_key=os.environ.get("
GROQ_API_KEY"),
)

chat_completion = client.chat.completions.create(
    messages=[
        {
            "role": "user",
            "content":
"あなたは日本語のプロで、勉強法の達人です。 {{関連表現}}の語源は教えて、漢字ははっきりとはしないが、省略しても構いません。 {{関連表現}}の文法解説・例文と類義語を簡潔な概要でまとめてください。もし、その表現はニュアンス、意志、自発、あるいは自分、他の人、その他の表現などに関連があれば、使い方を教えて暗記しやすいように、その他の類義表現文型と違いところを表形式に挙げてください。それぞれの表現に焦点を当てたYOUTUBE動画を挙げてください 関連表現: かたがた、を兼ねて、ついで、がてら、かたわら ",
        }
    ],
    model="Llama3-70b-8192",
)

print(chat_completion.choices[0].message.content) 

 

相關資訊:

Japanese relationship learning日文相關連關鍵資訊查詢,增進廣度面向之學習。

💛後記:測試結果,取得YOUTUBE連結不能使用,可能持續MachineLearning學習中?

             此種查詢傳遞方式,仍需留意資料是否含機敏資訊?

💛Temperature Control: (可於程式碼中 ,在model="Llama3-70b-8192"上方,加入 temperature  = 0.1 ,不加溫度參數效果較好)A lower temperature results in more deterministic and focused responses, while a higher temperature increases diversity and explores more unconventional possibilities.

💙回傳結果如下:

**1. かたがた (katagata)**
Meaning: and so on, and other things like that
 (略)
Example sentence: 私のかたがた、運動ですか? (Watashi no katagata, undō desu ka? - Are you doing exercise and other things like that?)

**2. を兼ねて (o kane te)**
Meaning: while doing, simultaneously
(略)
Example sentence: 私は仕事を兼ねて、ユーチューブを見ています (Watashi wa shigoto o kane te, Yūchūbu o mite imasu - I'm watching YouTube while working)

**3. ついで (tsuide)**
Meaning: by the way, while I'm at it
(略)
Example sentence: 私は店についで、雑貨を買います (Watashi wa mise ni tsuide, zakka o kaimasu - I'll buy some miscellaneous goods while I'm at the store)

**4. がてら (gatera)**
Meaning: and other things, et cetera
(略)
Example sentence: 私は料理がてら、健康について学びます (Watashi wa ryōri gatera, kenkō ni tsuite gakushū shimasu - I'll learn about cooking and other things, like health)

**5. かたわら (katawara)**

- This word means "on the side" or "in addition to."
        * Example: 「私は本業のかたわら、フリーランスの仕事もしています」(In addition to my main job, I also do freelance work on the side.)

(略)

參考資訊:

https://console.groq.com/docs/quickstart

 

'##################################################################### 

💛動態傳遞參數範例1: 使用方式  python testgroq.py 您提問的問題

#placeholder text from the dynamic value (sys.argv[1])  

import os
import sys
from groq import Groq

client = Groq(
    api_key=os.environ.get("GROQ_API_KEY"),
)

# Get the dynamic expression from sys.argv[1]
dynamic_expression = sys.argv[1]

# Replace the placeholder text with the dynamic expression
chat_completion = client.chat.completions.create(
    messages=[
        {
            "role": "user",
            "content": f"{dynamic_expression}",
        }
    ],
    model="Llama3-70b-8192",
)
# Print the generated response
print(chat_completion.choices[0].message.content)


'##################################################################### 

💛動態傳遞參數範例2:  將常用的詢問(日文文法查詢)預先作好Prompt樣版,只要將您詢問參數代入,即可查詢

python testgroq.py  如し、如く、如き

 #placeholder text from the dynamic value (sys.argv[1])  

import os
import sys
from groq import Groq

client = Groq(api_key=os.environ.get("GROQ_API_KEY"))

# Get the dynamic expression from sys.argv[1]
dynamic_expression = sys.argv[1]

# Construct the message content with the dynamic expression
user_message = {
    "role": "user",
    "content": f"あなたは日本語のプロで、勉強法の達人です。日本語の文法を徹底解説してください。例えば:文型、ニュアンス、図表、例文(専門家向け)下記の問題を徹底ステップバイステップ解説してください: {dynamic_expression}",
}

# Generate completion using Groq API
chat_completion = client.chat.completions.create(
    messages=[user_message],
    model="Llama3-70b-8192",
)

# Extract and print the generated response
generated_response = chat_completion.choices[0].message.content
print(generated_response)

 

💙回傳結果如下:

 What an honor to delve into the intricacies of Japanese grammar!

**如し (nashi)**   (小BUG錯誤🚨 ,正確應該 gotosi)

* Usage: Used to describe a comparison or analogy, often with a sense of similarity or resemblance.
* Example sentences:
       (略)
        + 彼の顔は
如し私の叔父のように見える (Kare no kao wa nashi watashi no oji no you ni mieru) - His face looks like my uncle's.    小BUG錯誤🚨終止形,詞性屬⌈文言比況助動詞⌋,通常放句尾,相當於ようだ

**如き (ki)** 

* Usage: Used to describe a hypothetical or imaginary situation, often with a sense of uncertainty or tentativeness.
* Example sentences:
        + 私は
如き億万長者のように生活している (Watashi wa ki no okuman chōja no you ni seikatsu shite iru) - I'm living as if I were a billionaire. 🚨連体形,相當於ような
  (略)

**如く (ku)**
* Usage: Used to describe a manner or method of doing something, often with a sense of following a model or example.
* Example sentences:
(略)
        + 彼は如く名選手のように球をプレイする (Kare wa ku mei senshu no you ni yakyū o purei suru) - He plays baseball like a famous player.  🚨連用形,相當於ように

(略)

2024年4月22日 星期一

將捷徑內建取得電池數據,傳給Pythonista套件工具

 經由前篇生成Pythonista專家的指導,協助瞭解如何將內建捷徑取得參數⌈取得 電池電量⌋,傳遞給Pythonista 參考資訊

階段一: (設置iPhone捷徑工作)

步驟1: 新增捷徑 | 取得 電池電量

步驟2:URL   , 參數為    pythonista://battery_status?action=run&argv= 電池狀態

步驟3:打開 URL

 

階段二: (將下面藍色部分之Python程式,在根目錄中 (通常目錄在 [ ~/Documents] $  ,另存成battery_status.py ,需儲存到  Pythonista套件,範例目錄Examples的上一層),階段一執行的數據才能順利經由sys.argv 抛給PYTHON接收

import sys
import time
import objc_util

if __name__ == '__main__':
    current_level =float(str(sys.argv[1]))
    
    print(f"Current battery level (數據來源:iPhone捷徑  電池電量): {current_level:.1f}%")  
    
UIDevice=objc_util.ObjCClass('UIDevice')
device = UIDevice.currentDevice()
batteryLevel = device.batteryLevel()

# Ensure conversion to float for calculations
#batteryLevel = #float(str(batteryLevel))


device.setBatteryMonitoringEnabled_(True)

batteryLevel = device.batteryLevel()
print(f"Current Battery Level(
objc_util 模組): {batteryLevel * 100:.1f}%")

 

💜Url Scheme電池捷徑相關設定

💜其它Battery參考資訊,不一定正確(充電器規格、溫度、電池健康度等因素) (可由Gemini Pro 查詢相關PYTHON程式碼)

initial_level = device.batteryLevel()

#Calculate Elapsed Time and Charging Rate
charging_rate = (batteryLevel - initial_level) / elapsed_time

#概估充電充飽時間
remaining_charge = 1.0 - batteryLevel
estimated_time = remaining_charge / charging_rate

   


在Pythonista環境下,安裝Stash,進入Bash-like shell

 在Pythonista環境下,安裝Stash  ,
實現Bash-like shell for Pythonista,執行下面PYTHON程式:

import requests as r; exec(r.get('https://bit.ly/get-stash').content)

根目錄下, 執行luunch_stash.py
~/Documents/launch_stash.py


或可透過iPhone捷徑程式
Run launch_stash.py with in Pythonista   ,左列新增捷徑 ,等同上面作法,進入Bash-like shell
執行wget ,自網路下載檔案

資料來源:
https://github.com/ywangd/stash



PivotTable樞鈕分析表,搭配Formula公式運用,詳列出⌈廠牌型號⌋,在各個" 部門別"之擁有 台數 報表產製

EXCEL資料表,分別有 財產設備大分類、廠牌型號、部門別、數量 等4欄位,
        A                                  B                       C                 D
1    財產設備大分類        廠牌型號              部門別           數量
2    個人電腦           HP Pro SFF 400 G9    人事               2
3    個人電腦           HP Pro SFF 400 G9     財務              2
4    個人電腦           HP Pro SFF 400 G9    行政               2
5    個人電腦           HP Pro SFF 400 G9     銷售              2
6    個人電腦           ASUS S500TE             研發               1
7    個人電腦           HP Pro SFF 400 G9     研發               1
8    個人電腦           HP Pro SFF 400 G9     資訊               2


公司部門,有人事、財務、行政、銷售、研發、資訊等6部門別

有1份報表,需臚列出  財產設備大分類,其各⌈廠牌型號⌋,分配到公司,各個部門之台數(如下方產出的結果)

,####################################################################################
以下是個人作法,先用「樞紐分析表」,將EXCEL資料 預做梳理,
 

在以下區域之間拖曳欄位:

💛篩選  拖曳  財產設備大分類、    (因為有數個「財產設備大分類」項目,如:個人電腦、筆電)
💜欄    拖曳  部門別、                    (方便掌握 各部門別,可逐欄一一列出)
💜列    拖曳   廠牌型號、              (各廠牌型號,以此例「個人電腦」大分類,呈現會有2列,

                                                   分別  為HP Pro SFF 400 G9 及 ASUS S500TE    等2類桌機
💜值    拖曳    數量                        (可幫忙預先加總,列出各部門別,各廠牌型號 電腦之台數)
'=====================================================================
💙'T1欄及O1欄,公式手動設定好
💛B1欄,為PivotTable樞鈕分析表之 大分類「財產設備大分類」,個人電腦、筆電等可供下拉(此欄位值,即為上面  篩選  拖曳,自動產生),只要下拉變動不同之大分類,樞鈕分析表之欄及列 資料,也會隨之變動。

💙T1欄(=COUNTA(4:4)),為PivotTable樞鈕分析表之總欄數   ,因為第4列為PivoteTable部門別,逐欄一一列出,此T1欄的值,為手動填入COUNTA公式
此公式之目的主要為讓後續VBA程式,清楚掌握「個人電腦」大分類中,共有多少 部門別?在PivotTable中,如該部門別沒有分配到大分類資源者,將不會列出部門別,故此欄會隨著大分類之不同,而做變動。


💙O1欄(=COUNTA(A:A)+1),為PivotTable樞鈕分析表之總列數  ,因為A欄為PivoteTable廠牌型號,逐列一一呈現,此O1欄的值,為手動填入COUNTA公式
此公式之目的主要為讓後續VBA程式,清楚掌握「個人電腦」大分類中,共有多少項?廠牌型號,此欄會隨著大分類之不同,而做變動(total_Rows)。

'####################################################################################

Sub ApplyFormula()
    Dim ws As Worksheet
    Dim lastRow As Long
    Dim total_Rows As Long
    Dim formulaRange As Range
    Dim i As Long
    
    '來源4個欄位,經過「樞紐分析表」,將資料預做梳理後,工作表名稱指定為Pivot_1
    Set ws = ThisWorkbook.Sheets("Pivot_1")
    
    '因「樞紐分析表」精靈產出後,上半段前3列已固定做標題列用途,故要扣除3後,每次下拉💛B1「財產設備大分類」後,才是實際⌈廠牌型號⌋之資料筆數。
    total_Rows = ws.Range("O1").Value - 3
    
    Sheets("Pivot_1").Select
    Columns("P:P").Select        '清空P欄,因為在下拉⌈財產設備大分類⌋,會貼不同的Formula
    Selection.ClearContents
     
    ' 預訂放置公式的起始處,預訂每次均由P5欄開始放置
    Set formulaRange = ws.Range("P5")
    
    
    ' 各列⌈廠牌型號⌋,詳列出 各個 "部門別"擁有之台數,逐一詳列出來
    For i = 1 To total_Rows    ' 第一列開始,直到最後一列
        '搭配Range & Formula ,方便每次於💛B1下拉「財產設備大分類,每列最後貼上公式
        formulaRange.Offset(i - 1, 0).Formula = "=IF($B" & i + 4 & ">0, $B$4&$B" & i + 4 & "&""台, "", """")" & _
                                                "&IF($C" & i + 4 & ">0, $C$4&$C" & i + 4 & "&""台, "", """")" & _
                                                "&IF($D" & i + 4 & ">0, $D$4&$D" & i + 4 & "&""台, "", """")" & _
                                                "&IF($E" & i + 4 & ">0, $E$4&$E" & i + 4 & "&""台, "", """")" & _
                                                "&IF($F" & i + 4 & ">0, $F$4&$F" & i + 4 & "&""台, "", """")" & _
                                                "&IF($G" & i + 4 & ">0, $G$4&$G" & i + 4 & "&""台, "", """")" & _
                                                "&IF($H" & i + 4 & ">0, $H$4&$H" & i + 4 & "&""台, "", """")"
                                '最後一列,為該大分類,各部門別彙整後之小計台數 (因為PivotTable樞鈕分析表已預先產製好)  ;最前方IF判斷式>0,即 台數>0,則顯示 部門別及台數。                                                                                                             
    Next i      
End Sub

 '&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

產出的結果 ( 💛B1欄「財產設備大分類」,下拉選擇⌈個人電腦⌋)

列標籤                 人事    財務   行政   銷售   研發    資訊

HP Pro SFF 400 G9     2         2         2        2         1          2  ,人事2台,財務2台....研發1台....(略)

ASUS S500TE                                           1               ,研發1台

 總計                     2         2         2        2         2          2  ,人事2台....................研發2台,資訊2台


'&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

PROMPT提示詞下法如下: (可將下面提示詞,貼至AI神器去詢問,取得VBA程式碼參考資訊)
處理前之樞鈕分析表,計有4欄位

篩選  拖曳  財產設備大分類、
欄    拖曳  部門別、
列    拖曳   廠牌型號、
值    拖曳    數量


經過「樞紐分析表」處理後,工作表名稱指定為Pivot_1
B1欄,為樞鈕分析表之篩選  財產設備大分類

excel表中,第4列為標題列,分別為 A4 廠牌型號、B4 人事、C4 財務、D4 行政、E4 銷售、F4 研發、G4 資訊H4 ,

T1欄,公式已設好  =COUNTA(4:4),為樞鈕分析表之總欄數
O1欄,公式已設好  =COUNTA(A:A)+1,為樞鈕分析表之總列數

下面公式為全數設備型號,我已將每列總數 放於 P5開始放置公式, 因為台數為0 ,就無需放入,請參考下面公式,寫VBA程式
    
    total_Rows = ws.Range("O1").Value - 3
    
    Sheets("Pivot_1").Select
    Columns("P:P").Select       
    Selection.ClearContents
     
    Set formulaRange = ws.Range("P5")
    
    For i = 1 To total_Rows    ' 第一列開始,直到最後一列
        '搭配Range & Formula ,方便每次於💛B1下拉「財產設備大分類,每列最後貼上公式
        formulaRange.Offset(i - 1, 0).Formula = "=IF($B" & i + 4 & ">0, $B$4&$B" & i + 4 & "&""台, "", """")" & _
                                                "&IF($C" & i + 4 & ">0, $C$4&$C" & i + 4 & "&""台, "", """")" & _
                                                "&IF($D" & i + 4 & ">0, $D$4&$D" & i + 4 & "&""台, "", """")" & _
                                                "&IF($E" & i + 4 & ">0, $E$4&$E" & i + 4 & "&""台, "", """")" & _
                                                "&IF($F" & i + 4 & ">0, $F$4&$F" & i + 4 & "&""台, "", """")" & _
                                                "&IF($G" & i + 4 & ">0, $G$4&$G" & i + 4 & "&""台, "", """")" & _
                                                "&IF($H" & i + 4 & ">0, $H$4&$H" & i + 4 & "&""台, "", """")"                                                                                                      
    Next i      



相關參考資訊:

EXCEL VBA 

樞鈕分析表查詢運用


2024年4月14日 星期日

透過AI神器(Gemini)生成Pythonista程式開發工具之專家

透過AI神器(Gemini)生成Pythonista程式開發專家,協助給予PYTHON程式建議

PROMPT生成專家提示詞,如下(藍色部分),請將它貼至AI神器 去詢問,再加入自己想瞭解的程式需求元素(如:Motion模組)


You are An experienced iPhone user and a master of Pythonista,
You can create development environments for iOS that include a built-in Python interpreter.
Reference Apple Developer Documentation and Pythonista official resources to provide python programming advice
 Or via Google engine to query
 or other relevant websites that meet your needs and refer to professional information from different countries (USA, Japan, Chinese) to provide relevant setting suggestions.
 For example:
 https://github.com/DocVaughan/Pythonista/blob/master/Examples/Overview.md
 https://github.com/topics/pythonista3
 http://omz-software.com/pythonista/

Please provide step-by-step instructions.
 
Points to Notes: Detailed step-by-step explanation (Pythonista, supported programming language introduction, function description, recommended PYTHON program example combined with iPhone and specific reasons, etc.)
Finally, please find popular information related to my needs on YouTube video websites (USA, Japan, Chinese).
 
 
"""
Needs: Please according my needs to provide python code for iPhone via Pythonista

give some sample python code (motion) to using motion module for iphone
 
"""


AI提供程式碼,如下: (可即時捉取iPhone水平、垂直數據)
import motion
import time

# Start updates from the motion sensors
motion.start_updates()

while True:
  # Get current accelerometer data (取得手機傳感數據)
  x, y, z = motion.get_gravity()

  # Print the accelerometer values
  print(f"X: {x} \n ,Y: {y}\n,Z: {z} \n\n")

  # Wait for a short interval before next reading (每0.3秒更新數據)
  time.sleep(0.3)

# Stop motion updates
motion.stop_updates()


使用前提:需先備妥PYTHON環境於iPhone上

Pythonista程式為付費軟體,Apple Store線上購買約新臺幣320元,可於iPhone上執行PYTHON程式

gemin-1.5-pro Model 實測結果,Gemini提供範例程式,可正常運作。

使用說明:請將您的需求,填寫於提示詞 Needs:  處即可。





利用iPhone內建Recognize音樂功能,透過旋律辨識出歌曲名稱

打開捷徑
💜Action動作一:
辨識音樂

💜Action動作二:
URL
鍵入  https://www.google.com.tw/search?q=この曲は教えて 辨識音樂
 

💜Action動作三:
打開URL


iPhone捷徑相關語音運用範例:
語音輸入後,直接至 教育部國語辭典網站查詢
語音輸入,直接寫至 備忘錄

中文口說,直接翻成 日文及英文

2024年4月9日 星期二

APPLE 內建強大捷徑功能(URL Schemes機制),進行 語言與地區 之 語言界面切換

運用APPLE 內建強大捷徑功能(URL Schemes機制),進行 作業系統語言界面之切換

只需3個步驟:  (可命名為 ChangeLanguage, 對Siri說 ChangeLanguage捷徑,直接跳出⌈偏好的語言⌋設定畫面)

步驟1: 開啟捷徑 | 加入動作 (下方  搜尋App 和動作  ,鍵入 URL)

步驟2:選擇  打開URL

步驟3: URL處鍵入字串  prefs:root=General&path=INTERNATIONAL/DEVICE_LANGUAGE

(需完全一樣,有區分大小寫)

 

💜另外,SIRI聲音之設定,亦可用相同機制,完成設定,只需將步驟3的字串,改成:

prefs:root=SIRI&path=LANGUAGE_ID

 

💜 可用 ⌈ 從選單中選擇⌋之捷徑,一次僅設定將它們分開各自設定。

 

其它URL Scheme設定:

電池Battery Health: prefs:root=BATTERY_USAGE&path=BATTERY_HEALTH


後記說明:

一、如不知道如何設定上面URL SCHEMES參數設定? 可參考前篇⌈生成AI捷徑專家,將您的需求,更換成下面Prompt提示詞(藍色部分)即可。

"""
default input: manual

Requirements: Chang Language Setting
By default, the volume is muted, so there is no need for the "Speak" setting.
 

URL
打開URL

URL處鍵入字串  prefs:root=General&path=INTERNATIONAL/DEVICE_LANGUAGE
"""

二、經實際試用免費版Gemini Advance(試用2個月),Advance版本其產出來的結果,通常可更加精準的產出😅

藉由AI幫忙,協助找尋iPhone優化效能設定

iPhone效能提升參考查詢,

可將下面提示詞複製,貼至AI神器去詢問,由它教導您至何處進行設定

Prompt提示詞如下:

 

你是 iPhone 資深的系統優化教學達人。

請參考 APPLE 官方 操作文件、Apple サポートコミュニティ,做為設定參照之參考依據。
如:
https://support.apple.com/ja-jp/101575

或 自Google搜索引擎 或 相關{{使用需求}}之熱門網站,參照各國(美國、日本、中文語系)專業資訊,提供相關設定建議
如:
https://www.bugsnag.com/blog/ios-performance-monitoring-best-practices/
https://www.youtube.com/watch?v=p84UKoc1yt0



請 STEP BY STEP的操作教學。

注意事項:盡可能以簡潔明瞭方式,以表列形式 進行STEP BY STEP的詳細說明(設定參數及設定位置明細、功能說明、建議推薦及設定及具體理由等


最後,請於YOUTUBE影音網站(美國、日本、中文語系),找尋 與{{使用需求}}主要相關連且POPULAR之資訊出來

""
使用需求:
iPhone動作が重い時の対処を教えて   & ベストプラクティス、
平日我是APP安裝愛好者測試者,系統效能愈來愈差,要如何解決?


Provide instructions on adjusting settings, Guide users on how to modify relevant settings.
卸載未使用 App、定期檢視電池耗電、定期整理 iPhone 儲存空間、善用捷徑程式使用、開啟減少透明度、減少自動化使用、減少 Widget 使用、重新啟動 iPhone、清除 Safari 瀏覽器快取、停用 iCloud 照片同步 (OPTION)、減少動態效果、關閉背景 App 重新整理


請依上面說明,進行專業教學,並請另提供熱門且實用之相關網站資訊
"""

2024年4月8日 星期一

運用APPLE內建語音功能 口說聽寫運用範例 (將⌈聽寫文字⌋ 傳至 教育部字典網頁 ; 逐字稿)

運用前篇 APPLE 內建口說強大功能 ,將中文口說字串,直接傳送給  教育部字典,可快速語音查詢

英文版Shortcuts捷徑 輔助設定工具


使用說明:

💜將本 捷徑 ,命名為 ⌈教育部字典⌋,用Hey Siri ,打開 教育部字典 捷徑,

☺💟Siri叫出此 捷徑後,她會詢問  文字內容是什麼  ,您只要唸出要查的字 即可


語音使用範例1:
PROMPT 提示詞如下:   (請注意:下面聽寫的文字,是選取變數,而不是用KEYIN 文字)

你是 iPhone 捷徑 Shortcuts(高级技巧)的操作使用教學達人。

請參考 APPLE 官方 捷徑操作文件(如:快捷指令使用手册、高級快捷指令、快捷指令大全、Shortcuts Gallery)做為設定參照之參考依據。
或Apple GALLERY資料庫 有現成與 {{使用需求}} 亦可直接提供
或 Google搜索引擎中搜索 shortcuts {{使用需求}}範例

請盡可能以簡潔易懂方式 STEP BY STEP的操作教學。

{{預設輸入}} 如為 人工手動 ,不藉助SIRI 語音输入功能 ,
若 {{預設輸入}} 如為 SIRI語音輸入,輸入想結合 藉由SIRI 語音输入功能,可將欲查詢KEYWORD關鍵字,做為輸入主要來源 


如果為網頁需求,請參考下面內建功能
捷徑功能 網頁 URL相關功能 JavaScript 通过使用 WEBURL 页面和 URL 相关等操作组件设置功能

以利傳送 KEYWORD 关键字,給欲查詢的網站

如果非網頁需求,請參照官方手冊,提供詳列出操作資訊

最後,請於YOUTUBE影音網站,找尋 與{{使用需求}}主要相關連之資訊出來

"""
預設輸入:人工手動

使用需求:聽寫 中文(台灣) 傳送 網站查詢

預設以 人工手動方式輸入,暫無需 使用 Siri 語音輸入


聽寫文字  語言  中文(台灣) 

打開 URL     https://dict.revised.moe.edu.tw/search.jsp?md=1&word=      聽寫的文字

"""

 

語音使用範例2:  

開會逐字稿  或可當作   語音記事本   (運用APPLE內建聽寫功能,將文字寫入  備忘錄)

"""

你是 iPhone 捷徑 Shortcuts(高级技巧)的操作使用教學達人。

請參考 APPLE 官方 捷徑操作文件(如:快捷指令使用手册、高級快捷指令、快捷指令大全、Shortcuts Gallery)做為設定參照之參考依據。
或Apple GALLERY資料庫 有現成與 {{使用需求}} 亦可直接提供
或 Google搜索引擎中搜索 shortcuts {{使用需求}}範例

請盡可能以簡潔易懂方式 STEP BY STEP的操作教學。

{{預設輸入}} 如為 人工手動 ,不藉助SIRI 語音输入功能 ,
若 {{預設輸入}} 如為 SIRI語音輸入,輸入想結合 藉由SIRI 語音输入功能,可將欲查詢KEYWORD關鍵字,做為輸入主要來源 


如果為網頁需求,請參考下面內建功能
捷徑功能 網頁 URL相關功能 JavaScript 通过使用 WEBURL 页面和 URL 相关等操作组件设置功能

以利傳送 KEYWORD 关键字,給欲查詢的網站

如果非網頁需求,請參照官方手冊,提供詳列出操作資訊

最後,請於YOUTUBE影音網站,找尋 與{{使用需求}}主要相關連之資訊出來

"""
預設輸入:人工手動

預設以 人工手動方式輸入,暫無需 使用 Siri 語音輸入

使用需求:聽寫文字   中文(台灣) 製作成 備忘錄

聽寫文字  語言  中文(台灣)
備忘錄 新增備忘錄  
製作包含     聽寫的文字  的備忘錄 

"""

2024年4月6日 星期六

藉助AI神器,生成一位iPhone相機操作設定達人

情境說明:

本篇內容是,是已預先用前篇PROMPT優化工具,請AI神器 先將iPhone相機之初步草創構想⌋預做檢視,並產製值得學習參考資訊,如:APPLE官方來源相機資訊,放進下面PROMPT中,以利它更精準產出相機詳細操作資訊。


使用說明:

您可再接續下達,您想知道的PROMPT提示詞,如:軟體後製

 

PROMPT提示詞如下:

你是 iPhone 資深的操作使用教學達人。

請參考 APPLE 官方 操作文件做為設定參照之參考依據。

如:https://support.apple.com/zh-tw/guide/iphone/iph5e602f6d6/ios
https://support.apple.com/zh-tw/guide/iphone/iph9bbc8619e/ios


或 自Google搜索引擎 或 相關{{使用需求}}之熱門網站,參照各國(美國、日本、中文語系)專業資訊,提供相關設定建議
如:https://www.youtube.com/watch?v=izjdX9uKnfo
https://www.youtube.com/watch?v=Y56N5WcZkJo


請 STEP BY STEP的操作教學。

注意事項:因iPhone分基本款、PRO版、及PROMAX版,故請各自獨立出段落,盡可能以簡潔明瞭方式,分開成不同表格進行STEP BY STEP的詳細說明(設定參數及設定明細、功能說明、佔用空間BYTES估算、建議推薦及設定及具體理由等


最後,請於YOUTUBE影音網站(美國、日本、中文語系),找尋 與{{使用需求}}主要相關連且POPULAR之資訊出來

""
使用需求:
カメラの性能を最大限に引き出すためには、調整パラメータを適切に設定する & ベストプラクティス、
平日是專業相機人員,拍攝主要為靜態畫面,偶會使用動態攝影功能,現在已改用iPhone相機進行拍攝、
主要用 4K/24fps、慢動作建議改4K/60fps 、ISO 感度 ;
增強穩定效果(手ぶれを防ぐ);ProRAW、AppleProRes等設定
請依上面注意事項,說明進行專業教學,並請另提供熱門且實用之相關網站資訊
"""

請AI(gemini、ChatGPT..)協助優化PROMPT提示詞工具

情境:因AI神器功能強大,可借助它搜尋資料的功能,網羅網路上各個國家的專業人員提供資訊,並且請AI提供PROMPT最佳化功能,修改自己想知道的事情(例如:用iPhone手機拍照設定),可將自己⌈草創構想⌋告知AI,如:

💜告知AI您想請它做什麼?(輸入來源)、

💜告知AI參照來源,做為稍後它產出資料之分析依據?(如:某知識領域,專業論文報導 或 各國家之網路資訊 ,提供AI線索)

💜 告知AI需注意事項:

☺💟有時它產出,可能會有干擾?如:產出多餘非你想要的主題或多出來的資訊,會影響你的產出?

☺💟產出可能需再補強、或再檢查 等關鍵因素

,您可適時提醒AI進行修正,俾利讓它產出您想要的資訊)

💜輸出內容樣式是什麼?

☺💟可能為某特定參數、參數內容及設定位置、具體理由等(在Prompt提示詞描述過程中,告知AI)

☺💟修正前後對照 (方便讓您知道,AI更動了什麼?)

☺💟輸出是以 表格、圖表、條例式 輸出樣態?

☺💟產出的語文結果(如:您母語為繁體中文),有時為了 取得最佳搜尋成效,可考慮先用英文或其它語系語言(可能已先MACHINE LEARNING學習,累積擁有龐大資料庫)去詢問AI,最後將結果產出後,再轉換回自己的母語。

 

使用說明:

domain themes:自己想瞭解知道領域資訊

Points to note:告知AI,針對您的主題,需注意事項

Please refer to my PROMPT link below,提供我自己連結為給AI參考輸出樣態,您可將它換成你覺得值得它學習參考之論文報告,有助於PROMPT更加優化文件或連結。

如果要優化其它領域資訊,請自行修改 domain themes 、 Points to note、您的草創構想(Specific descriptions of domain themes:)。


相關使用資源:

詢問日文提示詞工具(以iPhone口說中文 轉翻成日文 <->英文,自行指定Google Translate,2段式翻譯,前段為iPhone翻譯成日文;後段依您指定將iPhone產出之日文,再借助Google翻成英文)

🗽優化英文提示詞輔助工具

🗼優化日文提示詞輔助工具

🔍嘗試使用不同的MODEL演算法(如:Vertex AI ,Germini Pro)

 

 

以下為優化PROMPT提示詞:

You are now a PROMPT Senior Engineer & プロンプトエンジニアリングのベストプラクティス
Please find resources about {{domain themes}} that are written in {{my native language}} and deliver search results that are just as relevant.
Please using my native language to search {{domain themes}} also output
Please refer to my PROMPT link below and clone the prompt generator for {{domain themes}}
https://myblog-johnnyit.blogspot.com/2024/04/creating-ios-shortcuts-combined-with-ai.html

please list relevant esources, such as the official website, and the more popular websites on the Internet for users who go to Google to search for the {{domain themes}} in different languages (e.g. Japanese,English, Chinese).
In addition to the specific description of the {{domain themes}}, There may be special requirements that need to be considered when generating a domain name, as follows: Therefore, please confirm whether it matches or not {{Points to note:}}.

Reduce redundant, contradictory, or ambiguous expressions.

Finally, please optimize the tips provided and change them to English tips to be listed one by one.
please reorganize the optimized processing results and put them at the end.

native language:Please refer to my prompt for search results that provide the same language-related results.
domain themes: iphoneカメラ
Points to note:focus on カメラの性能を最大限に引き出すためには、調整パラメータを適切に設定する & ベストプラクティス

Specific descriptions of domain themes:  
Give me some suggestions for using prompt engineering to achieve better results

"before and after versions of the amendment, along with a step-by-step breakdown" uses parallelism to create a clear and balanced structure for the table content.

Prompt as follows:
"""
你是 iPhone 資深的操作使用教學達人。

請參考 APPLE 官方 操作文件做為設定參照之參考依據。

或 自Google搜索引擎 或 相關{{使用需求}}之熱門網站,參照各國(美國、日本、中文語系)專業資訊,提供相關設定建議
如:https://www.youtube.com/watch?v=izjdX9uKnfo

請 STEP BY STEP的操作教學。

注意事項:因iPhone分基本款、PRO版、及PROMAX版,故請各自獨立出段落,盡可能以簡潔明瞭方式,分開成不同表格進行STEP BY STEP的詳細說明(設定參數、設定位置明細、功能說明、佔用BYTES、建議推薦及設定及具體理由等


最後,請於YOUTUBE影音網站(美國、日本、中文語系),找尋 與{{使用需求}}主要相關連且POPULAR之資訊出來


"""
使用需求(Specific descriptions of domain themes):
平日是專業相機人員,拍攝主要為靜態畫面,偶會使用動態攝影功能,現在已改用iPhone相機進行拍攝、
主要用 4K/24fps、慢動作建議改4K/60fps 、ISO 感度 ;
增強穩定效果(手ぶれを防ぐ);ProRAW、AppleProRes等設定
請依上面注意事項,說明進行專業教學,並請另提供熱門且實用之美日中 相關網站資訊

"""

Android 自動化第3方工具,達到與iPhone捷徑內建功能

先前有介紹 ,經由AI神器教導如何使用iPhone捷徑 內建功能,達成Automation自動化功能。

但您手機作業系統是Android,如想知道是否有相似功能?可向AI接續下達PROMPT提示詞,即可找到相關教學操作說明資訊

 

Android天氣預報,自動化設定(前篇iPhone 捷徑專家

Prompt提示詞如下:

"""

Can the Android system achieve similar automation effects using a free tool?
(For example, shortcut maker(Rushikesh Kamewar) or shortcut creator(AlexTernHome) like "Automation APP" is a good option.)
If so, could you please provide a step-by-step guide or detailed table outlining the process?

"""


2024年4月5日 星期五

找尋Youtube影片,節錄重點工具

運用先前AI協助軟體分析檢視工具,快速掌握軟體概況( 開放源碼、Platform、優點、安裝方式、使用注意事項等)

Now that you are a software usage criticism, please analyze the content of each topic based on the resource help I have provided and write about it in a blog format.
First of all, please find out if the features are available based on the resource help I provided, and if it is an open source resource, please describe it separately.
Analyze the copyright (e.g., open source, commercial software, etc.), whether it supports cross-platform (list the details), the advantages of the software (list the supported file formats), the installation method and the matters that need to be paid attention to when you use it (do you need to prepare the environment first?). Please list them in a simple table.

Finally, please list relevant resources, such as the official website, and the more popular websites on the Internet for users who go to Google to search for the software in different languages (e.g. English, Japanese, Chinese).

Please convert the results to Traditional Chinese for a complete and detailed description and table presentation.

I provide the following resources:

"""
整理 YouTube 影片重點的工具:

    NoteGPT:NoteGPT  Chrome
    Chat YouTube:
    Otter.ai:
    thaw.ai:
    chatGPT BOX
    summarize.tech

    no-lang.com
    ScreenApp.ai
    Notta AI Summarizer
    Resoomer

"""

2024年4月4日 星期四

藉由AI神器 ,運用iPhone捷徑功能,生成 停車小幫手 之APP程式

利用前篇 經由AI(Gemini、ChatGpt..)生成的ShortCuts捷徑專家,幫您設定完成  

  🚗停車小幫手  APP程式

Prompt提示詞,如下:

"""
預設輸入:人工手動

使用需求:
拍照  儲存停車位 取得停車位 停車小幫手
預設以 人工手動方式輸入,暫無需 使用 Siri 語音輸入


取得目前位置
儲存停車位
選擇
儲存停車位
以 相機拍攝
將 照片儲存到最近項目
將停車位置設定為  目前位置

帶我回愛車停車處
取得停車位置
在地圖中打開  汽車位置


"""


藉由AI神器 ,運用iPhone內建捷徑功能,生成 中翻日 、日翻中 之APP程式

利用前篇 經由AI(Gemini、ChatGpt..)生成的ShortCuts捷徑專家,幫您設定完成  

口說聽寫  中文 轉換成 日文 APP程式

使用說明:

💜請直接說出欲翻譯的 中文句子

💜翻譯過程中,已另設定 將翻好的日文  複製到剪貼簿Clipboard上,(可傳翻好日文,將參數傳外部Google翻譯)

💜結合Google Translate (朗讀)功能,點選聆聽圖示,即可將翻譯好的日文,唸出來

💜(以iPhone口說中文 轉翻成日文 <->英文,自行指定Google Translate,2段式翻譯,前段為iPhone翻譯成日文;後段依您指定將iPhone產出之日文,再借助Google翻成英文)

😁用相同方式,另外生成反向翻譯(反向生成時需注意,日文語音輸入時,需將聽寫文字,將語言 改成  日文(日本),否則日文發音後,可能會以中文來判讀,造成翻譯失敗) ,不論遊玩或學習日文時,搖身變成 貼身翻譯員。


PROMPT 提示詞如下:

""
預設輸入:人工手動

使用需求:中文(台灣) 翻譯  日文

預設以 人工手動方式輸入,暫無需 使用 Siri 語音輸入

聽寫文字
翻譯
將 聽寫的文字 從 中文(台灣) 翻成 日文
將 已轉譯的文字 拷貝到剪貼板上
打開 URL
translate.google.com/?&sl=auto&tl=ja-jp&text=  已轉譯的文字


"""

'###############################################################

口說聽寫  日文 轉換成 中文 APP程式

步驟一 :複製上面已創建好的 中翻日  捷徑程式

步驟二: (進入 捷徑 ,做幾個下拉 微調即可)

☺💟聽寫文字    (按 > 符號)  , 語言  下拉為 日文(日本)

 ☺💟將聽寫的文字  從 日文 翻成  中文

 ☺💟將 已轉譯的文字  拷貝到剪貼板上、

 ☺💟打開 translate.google.com/?&sl=auto&tl=ja-jp&text= 已轉譯的文字,視您需要下拉翻譯語系。

2024年4月2日 星期二

Creating iOS Shortcuts to Assist with Tasks Using AI (like Gemini or ChatGPT..)

 
Comment:
💜Due to the need for AI to learn official terminology, misinterpretations can be minimized.
💜The growing use of background automation applications necessitates attention due to their potential impact on increasing power consumption.

Related information:
Scripting (official terminology)

URL Schemes with Shortcuts (iPhone Advanced Setting)
快速跳至  語言切換(偏好的語言)General → Language & Region → Device Language: prefs:root=General&path=INTERNATIONAL/DEVICE_LANGUAGE

Android system, can be achieved with the help of third-party tools


中文版本 捷徑Shortcuts輔助製作工具

AI Prompt as following:

You are an expert in using iPhone Shortcuts(Advanced Shortcuts).

Please refer to the official APPLE Shortcuts documentation (e.g. Shortcuts Manual, Advanced Shortcuts, Shortcuts Gallery, Shortcuts Gallery) for reference.
Or Apple GALLERY database can be provided directly if there are existing shortcuts and {{requirements}}.
Or search for shortcuts {{requirements}} examples in Google search engine.

Please try to make the instruction as simple and easy to understand as possible STEP BY STEP.

If {{default input}} is manual, please don't use the SIRI voice input function.

If {{default input}} is SIRI voice input, which want to combine the SIRI voice input function as the main input source for querying keywords.

If {{Requirements}} is a web page requirement, please refer to the following built-in functions.
Shortcut Function Web URL-related Function JavaScript Setting Function by Using WEBURL Page and URL-related Operation Component

For sending keywords to the site you want to query.

If {{Requirements}} is not a requirement of the web page, please refer to the official manual and list the steps by step.

Finally, please find the information related to {{Requirements}} on YOUTUBE website.

"""
default input: manual

Requirements:
volume Setting
By default, the volume is muted, so there is no need for the "Speak" setting.

Set Media volume to 60%
Set Ringtone volume to 60%

Choose from menu with  (volume setting)
OPEN,Stop the shortcut
CLOSE,  

Set Media volume to 10%
Set Ringtone volume to 10%

Speak  Mute、
Vibrate device
End Menu

"""