ก๊วนซอฟท์แวร์ </softganz> SoftGang (Gang Software)

Web &amp; Software Developer Gang.

602 items|« First « Prev 1 (2/61) 3 4 5 Next » Last »|
โดย Little Bear on 10 ก.ย. 65 14:12
cd /usr/local/directadmin/scripts
./getLicense.sh 123 1234
service directadmin restart

หากติดเรื่อง ssl

echo 1 > /root/.insecure_download

อีกวิธีคือ

cd /usr/local/directadmin/conf
cp -f license.key license.key.old
wget -O license.key --no-check-certificate 'https://license.directadmin.com/licenseupdate.php?uid=123&lid=1234'
chown diradmin:diradmin license.key
chmod 600 license.key

ที่มา Updating your DirectAdmin License manually

โดย Little Bear on 31 ส.ค. 65 21:15

ติดตั้ง DevExpress

Download และติดตั้ง Create a DevExtreme Application

npx -p devextreme-cli devextreme new angular-app app-name
cd app-name
npm run start
โดย Little Bear on 14 ส.ค. 65 21:40

1.ติดตั้ง Docker

ดาวน์โหลดและติดตั้ง Docker

ปรับ config เพิ่ม ram เป็น 4GB

  1. ติดตั้ง SqlServer Express

ขั้นตอนตาม How to Install SQL Server on MacOS

Step 1: Pull the Docker Image Download the Azure SQL Edge image to your system:

docker pull mcr.microsoft.com/azure-sql-edge

Step 2: Run the Docker Container When the image successfully downloads to your machine, run the container using the following command:

docker run --cap-add SYS_PTRACE -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=Strong.Pwd-123' -p 1433:1433 --name sqledge -d mcr.microsoft.com/azure-sql-edge
docker run --cap-add SYS_PTRACE -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=Strong.Pwd-123' -p 1433:1433 --name sqlexpress03 -d mcr.microsoft.com/azure-sql-edge

Step 3: Check the Container Ensure that the Azure SQL Edge container is running properly:

docker ps

Step 4: Access the Container with Bash Shell With the container running, you can connect to Azure SQL Edge by using the docker exec command:

sudo docker exec -it sqledge "bash"

Step 5: Connect to the Database Once inside the container, connect to the database using the sqlcmd tool:

/opt/mssql-tools/bin/sqlcmd -S localhost -U SA

อ้างอิง:

โดย Little Bear on 27 พ.ค. 65 18:01

https://www.iphonemod.net/erase-all-content-and-settings-on-mac.html

โดย Little Bear on 3 เม.ย. 65 23:53

Regex find

Multi Line Search, eg. call function with multiline parameter

(?s)inlineEdit((.?))
(?s)new Form\((.?)Object \[

  • (?s) causes the dot to also include newlines

Not contain some word : have word new Form( and not follow with [

new Form((?![)

Comma after last function parameter

,\s*\)

ที่มา:

โดย Little Bear on 10 ธ.ค. 64 22:10

หลังจากติดตั้ง Flutter บน Macbook M1 pro ก็เกิดอาการ Exception: Error running pod install ตอนสั่ง flutter run บน iOS

ทางแก้ที่ลองแล้ว work คือ

1.Run คำสั่งในครั้งแรก (ครั้งเดียว)

sudo arch -x86_64 gem install ffi

2.ติดตั้ง pods

cd Project/ios
arch -x86_64 pod install

จากคำสั่ง ดูเหมือนจะเป็นการติดตั้ง x86 แต่มันสามารถใช้งานได้ เลยไม่แน่ใจเหมือนกันว่าเป็นวิธีการแก้ปัญหาที่ถูกต้องไหม

ที่มา:

โดย Little Bear on 20 พ.ย. 64 15:12

เพิ่งลองเอามาเล่นดู จากปัญหาเมื่อเปิดเครื่องกลับจาก sleep บางครั้ง app จะถูกย้ายจาก extend display มากองรวมกันอยู่ที่หน้าจอของ laptop display ต้องมาเสียเวลาลากแต่ app ไปยังตำแหน่งประจำ

Hammerspoon สามารถทำเรื่องนี้ได้ แต่ต้องเขียนโปรแกรม ลองดูอยู่เป็นชั่วโมง ก็สามารถทำอะไรได้หลายอย่าง ลองดูจาก Getting Started with Hammerspoon

ได้มาประมาณนี้ แต่ยังไม่ work ตามที่ต้องการ คงต้องเขียนอีกเยอะ

hs.hotkey.bind({"cmd", "alt", "ctrl"}, "R", function()
    hs.reload()
end)

function reloadConfig(files)
    doReload = false
    for _,file in pairs(files) do
        if file:sub(-4) == ".lua" then
            doReload = true
        end
    end
    if doReload then
        hs.reload()
    end
end
myWatcher = hs.pathwatcher.new(os.getenv("HOME") .. "/.hammerspoon/", reloadConfig):start()
hs.alert.show("HammerSpoon config loaded")

hs.application.enableSpotlightForNameSearches(true)
local laptopScreen = "Built-in Retina Display"
local BenQScreen = "BenQ EW3270U"
local DellScreen = "S2718H/HX"
local windowLayout = {
    {"Safari",  nil,  BenQScreen, nil, nil, hs.geometry.rect(1800, 0, 1000, 1400)},
    {nil,  "LINE",    BenQScreen, nil, nil, hs.geometry.rect(1800, 1430, 800, 800)},
    {"ForkLift",  nil,    BenQScreen, nil, nil, hs.geometry.rect(2500, 1200, 1600, 980)},
    {nil,"Users", BenQScreen, hs.layout.right50, nil, nil},
    -- {"Google Chrome", nil,         BenQScreen, nil, nil, hs.geometry.rect(2200, 0, 1000, 1400)},
}
hs.layout.apply(windowLayout)

print("APPLICATION " , hs.application.frontmostApplication())
print(hs.window.focusedWindow():application():title())

สรุป ณ ตอนนี้คือ ติดตั้ง โปรแกรม Stay มาใช้งานไปก่อน

ที่มา:

โดย Little Bear on 19 พ.ย. 64 11:23

Update: ยังติดตั้งไม่สำเร็จ

Update: ลอง copy meld จาก folder Application ของเครื่องเดิม มาไว้ใน folder Application เครื่องใหม่ ผลคือใช้งานได้เฉยเลย (แต่ทำหลังจากได้ติดตั้งตามขั้นตอนด้านล่างเรียบร้อยแล้ว เลยไม่รู้ว่าถ้า copy มาเลยโดยไม่ต้องทำตามขั้นตอนด้านล่าง จะ work ไหม?)

Meld เป็นเครื่องมือสำหรับตรวจสอบความแตกต่างของข้อความใน text file สามารถเปรียบเทียบความแตกต่างระหว่าง 2 หรือ 3 ไฟล์ ได้ในครั้งเดียว สามารถเปรียบเทียบระหว่าง 2 หรือ 3 folder ได้

ดูรายละเอียดเพิ่มเติมได้จาก https://meldmerge.org/

ก่อนติดตั้ง จะต้องทำการติดตั้ง MacPorts ให้เรียบร้อยก่อน แล้วจึงเริ่มติดตั้งผ่าน macOS terminal

sudo port install meld

ดูว่าไฟล์อะไรบ้างที่ถูกติดตั้งโดย meld

port contents meld

ตั้งค่าให้ meld upgrade อัตโนมัติ

sudo port selfupdate && sudo port upgrade meld

ที่มา:

602 items|« First « Prev 1 (2/61) 3 4 5 Next » Last »|