指令 docker command
chart
chart import
Sql特別查詢
- 35
- 0
Sql特別查詢
NoteEditor
ckeditor、summernote、quill
jquery 客制參數(array)
JQuery Custom Parameter
FromSqlRaw Data is Null
- 60
- 0
dbset.FromSqlRaw Data is Null. This method or property cannot be called on Null values.
Sql IDENTITY column of EFCore
- 39
- 0
遇到 IDENTITY column, 做 insert 、update 的情境
IIS SameSite
iis相同WebSite
DI
Dependence injector : 依賴注入
late binding、unittesting 、abstract factory、di container
將依賴關係於DI Container或第三方
CodeStyle
- 148
- 0
- Code Style
團隊中的code,經歷多代的code,慘~~~~~~~~~~~~~~~~~~~~~~,但實際面還是要解決問題。
從新的project開始
極速開發Vim
production code是pg為最基本的產出,思考時與手動寫code的配合,是否同時間產出呢?
Tdd
測試驅動開發,看似六個字,但意義很深
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Refactory-Simplify Condition Expression
簡化表達式
Decompose Conditional 分解條件表達式
Consolidate Conditional Expression 合併條件表達式
Consolidate Duplicate Conditional Fragments 合併重複條件片段
Remove Control Flag 移除控制標記
Replace Nested Conditional with Guard Clauses 保守條款取代插入
Replace Conditional with Polymorphism 多型態取代條件
Introduce Null Object 引用null物件
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SOC
Separation of concerns 關注點分離,以SRP 原則走向
Js Promise
處理非同步async 行為 https://developer.mozilla.org/zh-TW/docs/Web/JavaScript/Reference/Global_Objects/Promise
descript Promise property
action status
Promise Chaining
then (callback, callback)
Promise all、race
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Docker Sql
已裝net core及AP後,來試試DB的部份
這次選擇 SQL Server On Linux
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Security
Xss : 跨網站腳本,在網站中,可以輸入js語法,取得cookies、token或轉址方式
https://docs.microsoft.com/zh-tw/aspnet/core/security/cross-site-scripting?view=aspnetcore-3.1
XSRF or CSRF : 跨站請求偽造 https://zh.wikipedia.org/wiki/%E8%B7%A8%E7%AB%99%E8%AF%B7%E6%B1%82%E4%BC%AA%E9%80%A0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NetCore 2、3 Deploy
環境 :
net core 2.0 + jquery + Razor
net core 3.0 + angular + webapi
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Js encrypt decrypt C# SymmetricAlgorithm
- 360
- 0
- Algorithms
- 2020-04-23
frontend、backend 加解密
js CryptoJs Aes : https://cryptojs.gitbook.io/docs/
c# Aes : https://docs.microsoft.com/zh-tw/dotnet/api/system.security.cryptography.aes?view=netframework-4.8
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~