發表文章

面積單位換算小工具(Unit Converter tool)

圖片
這是個單位換算的小工具(Unit Converter tool) 常用面積自動換算,請輸入您想要換算多少面積與單位,我們會自動幫您換算成另一個單位的面積 輸入數值 平方公尺 坪 公頃 甲 平方公里 sqft = 數值 平方公尺 坪 公頃 ...

Windows 磁碟機發現有Thumbs.db:encryptable無法刪除該如何處理呢?

圖片
Windows 磁碟機發現有Thumbs.db:encryptable無法刪除該如何處理呢? 1. 如果發現磁碟機內有Thumbs.db:encryptable,可是卻無法處理。按下刪除或執行del指令也回應找不到這個檔案的訊息。可以執行CHKDSK(command line指令:chkdsk /r /x /f)。 CHKDSK: 參數: /f: 表示修復任何發現的錯誤。 /x: 表示強制磁碟機在開始執行CHKDSK前先從系統卸載。 /r: 表示找到磁碟的壞軌並修復可讀訊息。 可能需要重新開機後先執行chkdsk之後再進入系統。如果做完後進入系統,可以發現原本無法處理的Thumbs.db:encryptable檔案已經消失不見,且可以正常使用檔案系統。

淺談 使用Cron Expressions

圖片
淺談使用Cron Expressions cron 為一個軟體。 為在unix like 系統使用的一種語法,用來設定排程。設定完成後可以自動執行任務。 cron Expressions: 為Cron用來設定的語法。 在安裝  cron  到你的Ubuntu之前,你可以使用下面的語法來安裝cron到Ubuntu系統: sudo apt update 安裝  cron  使用下面這個指令: sudo apt install cron 需要讓系統啟用cron: sudo systemctl enable cron Ubuntu的cron 格式: Field Allowed Values minute 0-59 hour 0-23 Day of the month 1-31 month 1-12  or  JAN-DEC Day of the week 0-6  or  SUN-SAT 範例: 30 17 * * 2 curl http://www.google.com 上面表示在每個月內的每周2的17:30執行後面的curl http://ww.google.com指令。 Uipath的Orchestrator的trigger設定也支援使用cron語法去設定執行時間: 而Uipath的Orchestrator有6個欄位,如下: Field Mandatory Allowed Values Allowed Special Characters seconds Yes 0  -  59 ,   -   *   / minutes Yes 0  -  59 ,   -   *   / hours Yes 0  -  23 ,   -   *   / day of the month Yes 1  -  31 ,   -   *   /   ?   L   W month Yes 1  -  12  or  JAN ...

On Ubuntu how to set folder permission?

圖片
On Ubuntu  how to set folder permission? you can using the command on below: sudo chown -R username:group directory for example, user tommy on Homegroup: sudo chown -R tommy:Homegroup directory but the group is not a required parameter. ref:  https://askubuntu.com/questions/6723/change-folder-permissions-and-ownership how to list all  local  users? cut -d: -f1 /etc/passwd ref:  https://askubuntu.com/questions/410244/is-there-a-command-to-list-all-users-also-to-add-delete-modify-users-in-the

Linux solve the mount disk partition's problem , Error opening directory: Permission denied

圖片
 Error opening directory: Permission denied if you mount a disk partition. and can't access the data. the computer shows the error message:  Error opening directory: permission denied here is the solution  if your partition's path is  media/user-name/your-partition-name using the command in terminal: sudo chmod g+rw /media/user-name/your-partition-name

RPA軟體測試:Ui-Path 語法:Assign Activity

圖片
 RPA軟體測試:Ui-Path 語法:Assign 程式語言的等號(=),不是相等的意思,而是對變數賦予值。 在判斷式的等號,是判斷是否為真,回傳布林值,Truth or False。 Java與Python使用=去對變數賦值(Assign)。Java使用2個等號(==)作為判斷式。在if activity中的等號才會被當作判斷式。 而在Ui-Path中則使用Activity中的Assign Activity去對變數賦值。 Ui-Path的Assign有2種如下圖: Ui-Path的Activity有2種Assign。 Assign: 只對一個變數賦值。 Multiple Assign: 可以對多個變數賦值。 如果喜歡在某個Sequence的開頭宣告一堆變數的,可以使用Multiple Assign,看起來比較整齊,程式比較有可讀性。

RPA軟體測試:UI-Path 語法:And 與 AndAlso的區別

圖片
對於學習Ui-Path的新手,可能會需要知道這個,所以這篇文章給學習Ui-Path的新手一個參考。 Ui-Path 語法:Ui-Path 中的Operator的 And 與 AndAlso Ui-path借用了VB.Net的語法:  And 與 AndAlso JAVA則是 & 與 && ,分別代表 And 與 AndAlso。 And表示判斷在And前面的判斷式如果是False仍會再去判斷And後面的判斷式是否為Truth。 AndAlso則表示如果AndAlso前面的判斷式如果已經為False,則不需要再去判斷後面的判斷式是否為Truth,因為整條判斷式已經為False,所以一定會走False的那條路線,不需要再去判斷AndAlso後面的判斷式,如此可以省一點CPU的時間。 如上圖,num2=and後面的判斷式,因為s_empty是空的,如果對沒有宣告的變數操作,會拋出nullpointerException,所以表示有去判斷後面的判斷式。 錯誤訊息如下: Source: If Message: Object reference not set to an instance of an object. Exception Type: System.NullReferenceException RemoteException wrapping System.NullReferenceException: Object reference not set to an instance of an object.     at lambda_method(Closure , ActivityContext )    at Microsoft.VisualBasic.Activities.VisualBasicValue`1.Execute(CodeActivityContext context)    at System.Activities.CodeActivity`1.InternalExecuteInResolutionContext(CodeActivityContext context)    at System.Activities.R...