發表文章

centos 圖形介面、文字介面切換

圖形介面:                 #systemctl set-default graphical.target 文字介面:                #systemctl set-default multi-user.target

[Windows] 遠端桌面 重開機

遠端桌面 重新開機指令 在 開始 執行 或命令提示字元 輸入 shutdown /r /t 1 即立即重新開機 參數說明  /r 重新開機  /t  1 下指令後 1 秒 就執行重開

iis 允許其他mime type ( .atlas .woff .woff2)

圖片
step1:開啟IIS 開啟MIEI類型 step2:使用右上方的新增 step3:將以下資訊填入 Extension: .atlas MIME type:text/atlas svg as "image/svg+xml" ttf as "application/x-font-ttf" or "application/x-font-truetype" otf as "application/x-font-opentype" woff as "application/font-woff" woff2 as "application/font-woff2" (proposed by W3C) eot as "application/vnd.ms-fontobject" sfnt as "application/font-sfnt" (existing in IANA, as of 2013-03-29) apk as "application/vnd.android.package-archive"

BMI值計算

BMI值計算公式:     BMI = 體重(公斤) / 身高 2 (公尺 2 ) 身 高:  體 重: 你的BMI為: 正常體重範圍: ~ 身體質量指數 (BMI) (kg/m2) 腰圍 (cm) 體重過輕 BMI < 18.5 - 正常範圍 18.5 ≦ BMI < 24 - 異常範圍 過重: 24 ≦ BMI < 27 輕度肥胖: 27 ≦ BMI < 30 中度肥胖: 30 ≦ BMI < 35 重度肥胖: BMI ≧ 35     男性: ≧ 90 公分 女性: ≧ 80 公分

[ASP.net] 使用動態圖片 套 Colorbox 效果打開後亂碼

圖片
動態產生的圖,套用colorbox 會呈現一堆亂碼的樣子: 解決方式有兩種 1.由JS解決: $(document).ready(function(){ $(".group3").colorbox({ photo:true }); }); 2.動態產生圖要記得下ContentType Response.ContentType = "image/JPEG"

[Windows][Linux] 查詢連線數量(connections & sessions)

Linux: 看全部: netstat -aunt | wc -l 只看 TCP: netstat -ant | wc -l 只看 UDP: netstat -aut | wa -l Windows: 只看TCP: netstat -an | find "TCP" /c 只看UDP: netstat -an | find "UDP" /c

jQuery UI: Datepicker 設定下拉選單年份區間 set year range dropdown

 $(".txtDate").datepicker({ changeMonth: true, changeYear: true, dateFormat: 'yy-mm-dd', yearRange: "-100:+0" }); 又或著是固定年份區間: yearRange : '1950:2013' , 參考網址: http://api.jqueryui.com/datepicker/#option-yearRange