如果你今天的專案需要引用一個並不在網上,而是自己 localhost 的 module時要如何做?
2022-06-30
2022-06-16
2022-06-15
如何讓 tomcat 執行 php
因為某些緣故,需要有個 wordpress 環境,為了方便,所以想說本來電腦就有 tomcat 就看看能不能用 tomcat 直接執行 php。
結果上網查了查,還真的有辦法,在此紀錄一下:
2022-05-24
Rust 的“error: linker `link.exe` not found”錯誤
這是照著官網的新手入門,一步一步來時發生的問題。
照著官網建立hello-rust
專案後,執行cargo run
,就會跳出以下錯誤(我的環境是 win10)
C:\hello-rust> cargo run
Compiling hello-rust v0.1.0 (C:\hello-rust)
error: linker `link.exe` not found
|
= note: program not found
note: the msvc targets depend on the msvc linker but `link.exe` was not found
note: please ensure that VS 2013, VS 2015, VS 2017, VS 2019 or VS 2022 was installed with the Visual C++ option
error: could not compile `hello-rust` due to previous error
2021-12-17
2021-12-15
2021-10-21
2021-09-02
紀錄一下自己用 Spring Boot 是如何建立一個控制台應用程式(命令列工具/console application)
如題,最近因為工作需求,要建立一個控制台應用程式。
基於環境已經有安裝 Java 了,所以沒用自己愛用的 go 來寫。
既然要用 Java ,為求方便,所以用 Spring Boot。沒想到用 Spring Boot 寫控制台應用程式的教學資源這麼少。所以在此紀錄,
2021-05-05
2021-03-15
visibilitychange event
今天在搜尋某些資料時,發現到一個叫「程序猿甜品店」的網站。
這網站有個很有趣的效果:當你瀏覽器轉到其他分頁時,該網站的 tab 標題會變成「我失宠了」;如果回到該 tab,又會變成「我被宠了」(維持2秒,之後變回原本標題)。
2021-02-03
2021-01-22
Go 中,各種複製 slice 的方法的效能比較
Go 中,與 slice 相關的原生 func 有 func copy(dst, src []Type) int
、func append(slice []Type, elems ...Type) []Type
這兩個。
這兩者都能夠用來複製 slice (clone)。
那這樣的話效能呢?
訂閱:
文章 (Atom)