Skip to content

Phanix's Blog

Menu
  • About Me / 關於我

Category: 程式

node.js CORS cross domain issue

No Comments
| 學習工作, 工作, 程式

紀錄一下

Read More »

SNMP to check system uptime

No Comments
| 學習工作, 工作, 程式

Actually, check SNMP service uptime.

Read More »

ILMerge (merge .net framework .dll library files into .exe)

No Comments
| 學習工作, 工作, 程式

Sometimes, we just want to release a single .exe file without a mass of .dll library files. This makes users easier to copy the file, and does not unveil the information of libraries used in the program.

Read More »

jQuery display multiple rows of data to a web page table

No Comments
| 學習工作, 工作, 程式, 電腦網路

Backend C# side string Info = ""; if (ds.Tables[1] != null) { for (int i = 0; i < ds.Tables[1].Rows.Count; i++) { if (Info == "") { } else { Info = Info + ","; } Info = Info + String.Format("{{\"id\": \"{0}\", \"type\": \"{1}\", \"Bal\": \"{2}\"}}", ds.Tables[1].Rows[i]["id"].ToString(), ds.Tables[1].Rows[i]["type"].ToString(), ds.Tables[1].Rows[i]["Bal"].ToString() ); } } Response.Write(String.Format("{{\"username\":\"{0}\", \"credit\":\"{1}\", \"balance\":\"{2}\", […]

Read More »

Julian date 儒略日

No Comments
| 唸書, 學習工作, 工作, 研究, 程式

最近在看 google web search api(reference), 剛好看到這個東西…

Read More »

取得網頁中滑鼠油標下的元素 / Get the web element under mouse cursor

No Comments
| 學習工作, 程式

方法1: 透過 mouse events 去取得 mouse cursor position, 然後再呼叫 document.elementFromPoint var x = event.clientX, y = event.clientY, elementMouseIsOver = document.elementFromPoint(x, y); 方法2: 在比較新的瀏覽器可以用 jquery 的 querySelectorAll 取得 document.querySelectorAll( ":hover" );

Read More »

Jmeter increase the user defined variable in loop 迴圈中遞增使用者自定變數

No Comments
| 學習工作, 工作, 程式

直接看圖說故事…

Read More »

C# stack trace

No Comments
| 學習工作, 程式

using System.Diagnostics; [STAThread] public static void Main() { StackTrace stackTrace = new StackTrace(); // get call stack StackFrame[] stackFrames = stackTrace.GetFrames(); // get method calls (frames) // write call stack method names foreach (StackFrame stackFrame in stackFrames) { Console.WriteLine(stackFrame.GetMethod().Name); // write method name } } Ref: http://www.csharp-examples.net/reflection-callstack/

Read More »

Using T4 template to read resource files (.resx) and generate multiple output files

No Comments
| 學習工作, 工作, 程式

T4 (Text Template Transformation Toolkit) 可以幫忙訂出 template 並用程式輔助來產生程式碼或文件(比方說不同語言的定義檔)。 使用 T4 之前可以先去下載 T4 Toolbox,安裝之後在 Visual studio 增加新項目時就可以看到有 “T4 Toolbox” 的分類,有 Generator、Script、Template 三種可選 首先定義template檔案,在這邊用System.Xml去讀取 resource file,同時 include SaveOutput.tt 做輸出用。 <#@ template language="C#" debug="True" #> <#@ include file="SaveOutput.tt" #> <#@ include file="T4Toolbox.tt" #> <#@ assembly name="System.Xml" #> <#@ import namespace="System.Xml" #> <# // <copyright file="i18n_js.tt" company="Onelab"> // Copyright […]

Read More »

DOS Batch command file HELP

No Comments
| 學習工作, 工作, 程式

今天工作遇到,記錄一下… http://stackoverflow.com/questions/112055/what-does-d0-mean-in-a-windows-batch-file http://www.computerhope.com/forhlp.htm http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/percent.mspx?mfr=true

Read More »

Posts navigation

Previous 1 2 3 … 9 Next

Recent Posts

  • python ver HorizonNet install & performance
  • Get MIME type to return in php
  • phpmyadmin sql.lib.ph error #613
  • UI freezes in Flutter build iOS app in China
  • php handle CORS http api request in Unity WebGL project

Recent Comments

  • Domaine de Bellene & Maison Roche de Bellene Tasting | Phanix's Blog on Nicolas Potel
  • Abruzzo wine Italy on Italian wine tasting
  • Janet on [不推薦食記] A**ki Burger
  • slzzp on [食譜] 油封豬五花 Pork Belly Joint Confit
  • James on Cristom 的美妙 Pinot Noir

Archives

Tags

.net (28) 2008 (66) 2009 (91) Bordeaux (44) Bourgogne (35) c# (32) Cabernet Sauvignon (40) California (84) Chardonnay (46) dessert wine (24) food (53) France (52) France 法國 (68) French (28) French wine (22) japanese food (31) murmuring (25) photo-taking (46) photographing (48) Pinot Noir (51) portrait (21) programming (35) red wine (184) Santa Cruz (33) Syrah (22) Taiwan (38) traveling (73) USA (124) white wine (116) wine (173) wine tasting (217) 加州 (63) 勃根地 (38) 台灣 (28) 品酒 (215) 攝影 (93) 旅遊 (60) 氣泡酒 (22) 法國 (27) 波爾多 (37) 甜酒 (26) 白酒 (112) 紅酒 (181) 美國 (99) 義大利 (36)

Categories

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Phanix's Blog 2021 . Powered by WordPress