Check Issues
catertsai / note Goto Github PK
View Code? Open in Web Editor NEWMy Note
My Note
在需要使用canvas繪製或是分享圖片時,會遇到需要將image轉為blob的情況。
即便同網域,在iOS Safari上若是使用canvas搭配toBlob,會跳出Security error,原因是Tainted canvases
iOS Version:17.4.11
crossorigin=anonymous
→無效crossorigin='anonymous'
→無效,影片本身也無法顯示Socket Server在127.0.0.1的本地端可以正常運作,但是給予IP時就無法連線
撰寫Server Side時,無論是使用Socket, TcpListener, UdpClient
初始化IPEndPoint時請都使用IPAddress.Any
部分教學有看到IPAddress.Loopback的,會導致只有使用127.0.0.1才能正常接收
openssl pkcs12 -export -in .\certificate.crt -inkey .\private.key -certfile .\ca_bundle.crt -out {xxx}.pfx
預設Excel的CSV會是ASNI編碼,而JS匯出的CSV為UTF-8
在匯出的CSV加上BOM標頭
Example
let csvDataArray = []
let universalBOM = "\uFEFF";
let csvContent = "data:text/csv;charset=utf-8," + encodeURIComponent(universalBOM + csvDataArray.map(e => e.join(",")).join("\r\n"))
window.open(csvContent);
builder.Services.AddDbContext<Context物件>(options => {})
dotnet ef migrations add <名稱> --context <Context物件名稱>
建立Migrationsdotnet ef database update --context <Context物件名稱>
發佈至DB中app.UseDefaultFiles();
以及app.UseStaticFiles();
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.