原创 常用SQL Datetime

-- 0 = 19000101 -- 得到某月的第一天 SELECT DATEADD(m, DATEDIFF(m, 0, GETDATE()), 0) -- 去除DateTime的時間部分 SELECT DATEADD(d, DATE

原创 SHA1 & MD5

            string a = "123456";             byte[] buffer = Encoding.UTF8

原创 如何將實現類中的方法移動至接口

Idea 使用 Pull Members up 點贊 收藏 分享 文章舉報 李必勝 發佈了36 篇原創文章 · 獲贊 0 · 訪問量 1萬+ 私信

原创 【開發日誌】2014年10月9日

1. 寫一個web程序,一個webapi程序,webapi部署在虛擬目錄下。 OK 2014-10-9 10:54:50 Index.cshtml <script>     $(document).ready( function() {

原创 [2017-11-11]讀書筆記 Web API

RESTful Services Client-server constraint Stateless constraint Cache constraint Layered constraint Uniform interface c

原创 CentOS初始設置

CentOS初始設置 添加用戶 #useradd demo 注意 adduser 在不同的linux發行版上可能與useradd的功能不是完全一致 設置密碼 #passwd demo 設置用戶擁有sudo 權限 #gpasswd -a

原创 [2017-11-07]相應頭 X-ReqId

公共相應頭 相應頭 X-ReqId 在Nginx中實現 作用:上傳請求的唯一 ID。通過該 ID 可快速定位用戶請求的相關日誌。 要求: nginx version v1.11以上 配置方法: 1.在http內部添加map map $

原创 安裝Nginx(From Source Code)

Setting up Pre-requisites to compile from source yum -y install gcc gcc-c++ make zlib-devel pcre-devel openssl-devel #

原创 刪除svn目錄

在FreeCommander中, 選擇Timestamp/Size/Attr, Attributes中選擇Directory和Hidden。 對查找出的文件夾進行刪除。 如果用的是TortoiseSVN客戶端,則先在另外一處建立一個新目

原创 [2017-11-12]讀書筆記 Web API

Message Handler Filter Filter 比 Message Handler 晚, Message Handler 在指定的路由上所有的action或者所有的action上都運行。 Message Handler 也

原创 [2018-06-26] bash 2 : xargs, reload .bashrc

xargs xargs 讀取stdin, 作爲參數調用utility 。 默認行爲是空格分割,對多行進行合併。 xargs的一個選項-I,使用-I指定一個替換字符串{},這個字符串在xargs擴展時會被替換掉,當-I與xargs結合使用

原创 JDK 安裝

JDK 安裝 存在OpenJDK 和 Oracle Java 2個版本。 Step 1 下載 cd ~ wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24

原创 [2018-06-27]  bash 顏色及y or n

change the fore color of echo .———- constant part! vvvv vvvv– the code from above RED=’\033[0;31m’ NC=’\033[0m’ # No C

原创 [2017-11-10]讀書筆記 Web API

ASMX-based web service & WCF <======> SOAP message <=====> TCP, MSMQ ... <====> WSDL file Confidentiality Encrypting

原创 File Nesting

File Nesting extension - Visual Studio Gallery - Microsoft 插件地址 下載 視頻介紹