自從開始使用Android手機後, 很久沒有更新過自己的Blog, 都忙著使用app與朋友互相傳送訊息, 工作上現在使用Python 與 Sikuli IDE寫測試程式, Sikuli IDE的影像辨識有時會發生錯誤, 但是在GUI上的操作, 很容易上手直覺化.
這個網誌中的熱門文章
Automatically classify folders by file name (windows Bash)
REM List file names, sorted by file name--------- dir /b /on > list.txt REM Find JPG files findstr ".JPG" list.txt > target.txt rem delete file extension------------------------- @echo off & setlocal enabledelayedexpansion rem reads all the contents of target.txt for /f "eol=* tokens=*" %%i in (target.txt) do ( rem sets variable a to the content of each line set a=%%i rem If the line has .JPG, change it to set "a=!a:.JPG=!" rem saves all modified lines into $ echo !a!>>$) rem replaces the original a.txt content with the content of $ move $ target.txt REM Create folder----------------------------- rem reads all the contents of target.txt for /f "eol=* tokens=*" %%i in (target.txt) do ( set string=%%i echo "%%i" for /f "tokens=1,2 delims=_" %%a in ("%%i") do ( set BEFORE_UNDERSCORE=%%a set AFTER_UNDERSCORE=%%b echo %%a md %%a rem Move files to folder move %%i*.* %%a )) del list.txt del target.txt
Esxi increase hard drive size (Ubuntu none LVM)
1 . Install parted if you don't have them using CI-Server:~$ sudo apt-get install cloud-guest-utils 2. T urn off swap. we gonna remove it's partition! CI-Server:~$ sudo swapoff -a CI-Server:~$ sudo parted get partitions list with print all: (parted) print all Model: Virtio Block Device (virtblk) Disk /dev/vda: 752GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 528GB 528GB primary ext4 boot 2 528GB 537GB 8588MB extended 5 528GB 537GB 8588MB logical linux-swap(v1) remove none root partitions with rm (part-index): (parted) rm 5 Warning: Partition /dev/vda5 is being used. Are you sure you want to cont...
留言