PIXNET Logo登入

歡迎~ 程式設計 學生 作業 專題製作 程式外包 家教...

跳到主文

(1)ASP.NET C# 專案/程式維護、開發、設計、架設網站等等
(2)程式家教.家教採一對一教學方式,主要以ASP.NET、C#、SQL SERVER..等為主,家教包含異業轉行、非本科系轉行、無基礎但欲踏入程式設計領域者。
*****若有以上需求請至留言板留言*****

部落格全站分類:圖文創作

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 4月 03 週二 201819:00
  • 如何設定「中一刀」格式

undefined
Step 1
1. 請點選「開始」->「控制台」->「裝置和印表機」
2. 隨意點選任一台印表機,再點選視窗上方的「列印伺服器內容」(要先點印表機,選項才會出現)。
(繼續閱讀...)
文章標籤

Roger 發表在 痞客邦 留言(0) 人氣(185)

  • 個人分類:其它-程式相關
▲top
  • 3月 24 週六 201823:00
  • [.NET] 程式設計題目

[C#]
C# 程式設計題目 -- 斜紋地磚
C# 程式設計題目 -- 成績評等
C# 程式設計題目 -- 陣列排序
C# 程式設計題目 -- 印出由1到200,所有能被13所整除的整數。
C# 程式設計題目 -- 計算從1加到100的總和
C# 程式設計題目 -- 九九乘法表
C# 程式設計題目 -- 找出數值陣列中最大值與最小值
C# 程式設計題目 -- 拆解數字做加、減、乘的計算
C# 程式設計題目 -- 找零錢、零錢兌換
C# 程式設計題目 -- 判斷是不是質數
C# 程式設計題目 -- 列出所有質數
C# 程式設計題目 -- 調和級數 1/1+1/2+1/3+1/4+……+1/n = ??
C# 程式設計題目 -- 費氏數列(Fibonacci) 遞迴
C# 程式設計題目 -- 費氏數列(Fibonacci) FOR 迴圈
C# 程式設計題目 -- 1+1/2+1/4+1/8+....+1/128=?
C# 程式設計題目 -- 調和級數 1/1+1/2+1/3+1/4+……+1/n = ??
C# 程式設計題目 -- [C#] 1/2+3/4+7/6+13/8+21/10+...+n/100=? 分子是前一項分子加分母
C# 程式設計題目 -- [C#] 1/1! + 1/3! + 1/5! + 1/7! + ... + 1/n! =?
C# 程式設計題目 -- [C#] 計算從1到100之間是3和5的倍數之和,但不包括10的倍數  
(繼續閱讀...)
文章標籤

Roger 發表在 痞客邦 留言(0) 人氣(8,889)

  • 個人分類:其它-程式相關
▲top
  • 4月 01 週六 201723:00
  • [HTML] HTML 標籤的組成及常用標籤

標籤簡介
<p>我的第一個html介紹</p>
標籤一定有一個開始標籤及結束籤。
開始標籤:先打大於和小於的符號 "< >",裡面再放入標籤名稱。例如上面的例子 "<p>"。
結束標籤:在元素名稱前面多斜線 "/" 。代表結束標籤。
內容:以上面的例子來說,內容就是「我的第一個html介紹」。
標籤有「屬性」
<p class='MyCar'>我的車很大</p>
屬性: class='MyCar'
在標籤和屬性之間有一個空格(如果有多個屬性,屬性之間也要有空格)。
屬性名稱後面接著等於符號「=」。
屬性包在起始標籤裡面。
(繼續閱讀...)
文章標籤

Roger 發表在 痞客邦 留言(0) 人氣(19)

  • 個人分類:其它-程式相關
▲top
  • 3月 25 週六 201722:00
  • [HTML] HTML簡介及基本架構

HTML簡介
想要擁有屬於自己的網站,首先要先了解 HTML 是什麼
(繼續閱讀...)
文章標籤

Roger 發表在 痞客邦 留言(0) 人氣(38)

  • 個人分類:其它-程式相關
▲top
  • 2月 04 週六 201200:00
  • Windows Server 2003 自動登入設定

Windows Server 2003 每次開機都要輸入"Ctrl+Alt+Del",然後再輸入用戶名和密碼才能登錄。
這樣設定總是感覺很麻煩。網路搜尋了許久,終於讓我找到方法啦~~
可以透過以下方法實現自動登錄: 
1.點選 開始 > 執行
(繼續閱讀...)
文章標籤

Roger 發表在 痞客邦 留言(0) 人氣(2,310)

  • 個人分類:其它-程式相關
▲top
  • 4月 26 週二 201100:54
  • NPOI 新增多個 Sheet

        Dim workbook As New HSSFWorkbook()
        Dim sheet As HSSFSheet = workbook.CreateSheet("Sheet111")
        Dim rowItem As HSSFRow
        rowItem = sheet.CreateRow(0)
        rowItem.CreateCell(0).SetCellValue("測試資料111")
(繼續閱讀...)
文章標籤

Roger 發表在 痞客邦 留言(0) 人氣(1,874)

  • 個人分類:其它-程式相關
▲top
  • 2月 14 週日 201020:44
  • 去除 Google 病毒提示


 
若在google 用關鍵字搜尋,一定會有看過 該網站可能含有惡意程式,有能會危害到您的電腦...
 
解決方法

首先,確認自己是否需要提出申請,http://www.stopbadware.org/home/reportsearch,輸入驗證碼及網址,若顯示您所輸入的網址,那就需要提出申請。


 
1.可直接到http://www.stopbadware.org/ 重新提出申請。
2.由個人帳號提出申請 https://www.google.com/webmasters/sitemaps/
 

 
(繼續閱讀...)
文章標籤

Roger 發表在 痞客邦 留言(0) 人氣(186)

  • 個人分類:其它-程式相關
▲top
  • 10月 05 週一 200900:35
  • DOCTYPE使用方法

DOCTYPE使用方法
DOCTYPE 切換運作的方式:
若有完整 URI 的 XHTML DOCTYPE,則切到標準模式,用 W3C 規則來讀網頁裡的 CSS 與 XHTML。
若有不完整或過時的 DOCTYPE 或沒有 DOCTYPE,就切成相容模式,
用傳統方法來處理網頁。
完整的長得像這樣,會讓瀏覽器切到標準模式:
<!DOCTYPE html PUBLIC "-/W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
這是 XHTML 1.0 Strict DOCTYPE,還有 Transitional 跟 Frameset DOCTYPE。
(繼續閱讀...)
文章標籤

Roger 發表在 痞客邦 留言(0) 人氣(419)

  • 個人分類:其它-程式相關
▲top
  • 8月 04 週二 200900:21
  • 防盜鏈IHttpHandler

本文地址:http://qzone.qq.com/blog/101766959-1217965179
/*
*
* 防盜鏈IHttpHandler
*
*
* 增加了對檔關鍵字的選擇(即僅對檔案名存在某些關鍵字或不存在某些關鍵字進行過濾)
* 設置web.config中<appSettings>節以下值
* string eWebapp_NoLink 如果檔案名符合該正確表態式將進行過濾(不設置對所有進行過濾)
* string eWebapp_AllowLink 如果檔案名符合該正確表態式將不進行過濾(優先權高於AllowLink,不設置則服從AllowLink)
* bool eWebapp_ AllowOnlyFile 如果為False,(默認true)則不允許用戶直接對該檔進行訪問建議為true
*
*
* :)以下設置均可省略,設置只是為了增加靈活性與體驗
* eWebapp_NoLink_Message 錯誤資訊提示:默認為Link From:功能變數名稱
* eWebapp_Error_Width 錯誤資訊提示圖片寬
* eWebapp_Error_Height 錯誤資訊提示圖片高
*
*
*
* 垃圾豬 2005-9-11 創建
* http://ewebapp.net
*/
using System;
using System.Web;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Configuration;
using System.Text.RegularExpressions;
namespace eWebapp
{
     /// <summary>
     /// 防盜鏈IHttpHandler
     /// 參考http://www.softat.org/archiver/tid-52114.html
     /// 垃圾豬 2005-9-12 修正
     /// </summary>
     public class NoLink : IHttpHandler
     {
         private string eWebapp_NoLink = string.Empty;
         private string eWebapp_AllowLink = string.Empty;
         private bool eWebapp_AllowOnlyFile = true;
         private string eWebapp_NoLink_Message = string.Empty;
         private bool error = false;
         public NoLink()
         {
             //
             // TODO: 在此處添加構造函數邏輯
             //
         }
         public void ProcessRequest(HttpContext context)
         {
             eWebapp_NoLink_Message = ConfigurationSettings.AppSettings["eWebapp_NoLink_Message"];
             string myDomain = string.Empty;
             error = errorLink(context, out myDomain);
             if (Empty(eWebapp_NoLink_Message))
             {
                 eWebapp_NoLink_Message = "Link from :" + myDomain;
             }
             if (error)
             {
                 //Jpg(context.Response,eWebapp_NoLink_Message);
                 Jpg(context.Response, eWebapp_NoLink_Message);
             }
             else
             {
                 Real(context.Response, context.Request);
             }
         }
         public bool IsReusable
         {
             get
             {
                 return true;
             }
         }
         /// <summary>
         /// 輸出錯誤資訊
         /// </summary>
         /// <param name="Response"></param>
         /// <param name="_word"></param>
         private void Jpg(HttpResponse Response, string _word)
         {
             int myErrorWidth = _word.Length * 15;
             int myErrorHeight = 16;
             try
             {
                 int _myErrorWidth = Convert.ToInt32(ConfigurationSettings.AppSettings["eWebapp_Error_Width"]);
                 if (_myErrorWidth > 0)
                 {
                     myErrorWidth = _myErrorWidth;
                 }
             }
             catch
             {
             }
             try
             {
                 int _myErrorHeight = Convert.ToInt32(ConfigurationSettings.AppSettings["eWebapp_Error_Height"]);
                 if (_myErrorHeight > 0)
                 {
                     myErrorHeight = _myErrorHeight;
                 }
             }
             catch
             {
             }
             Bitmap Img = null;
             Graphics g = null;
             MemoryStream ms = null;
             Img = new Bitmap(myErrorWidth, myErrorHeight);
             g = Graphics.FromImage(Img);
             g.Clear(Color.White);
             Font f = new Font("Arial", 9);
             SolidBrush s = new SolidBrush(Color.Red);
             g.DrawString(_word, f, s, 3, 3);
             ms = new MemoryStream();
             Img.Save(ms, ImageFormat.Jpeg);
             Response.ClearContent();
             Response.ContentType = "image/Gif";
             Response.BinaryWrite(ms.ToArray());
             g.Dispose();
             Img.Dispose();
             Response.End();
         }
         /// <summary>
         /// 輸出真實檔
         /// </summary>
         /// <param name="response"></param>
         /// <param name="context"></param>
         private void Real(HttpResponse response, HttpRequest request)
         {
             FileInfo file = new System.IO.FileInfo(request.PhysicalPath);
             response.Clear();
             response.AddHeader("Content-Disposition", "filename=" + file.Name);
             response.AddHeader("Content-Length", file.Length.ToString());
             string fileExtension = file.Extension.ToLower();
             //這裏選擇輸出的檔格式
             //可以參考http://ewebapp.cnblogs.com/articles/234756.html增加對更多檔格式的支持.
             switch (fileExtension)
             {
                 case "mp3":
                     response.ContentType = "audio/mpeg3";
                     break;
                 case "mpeg":
                     response.ContentType = "video/mpeg";
                     break;
                 case "jpg":
                     response.ContentType = "image/jpeg";
                     break;
                 case "bmp":
                     response.ContentType = "image/bmp";
                     break;
                 case "gif":
                     response.ContentType = "image/gif";
                     break;
                 case "doc":
                     response.ContentType = "application/msword";
                     break;
                 case "css":
                     response.ContentType = "text/css";
                     break;
                 default:
                     response.ContentType = "application/octet-stream";
                     break;
             }
             response.WriteFile(file.FullName);
             response.End();
         }
         /// <summary>
         /// 確認字串是否為空
         /// </summary>
         /// <param name="_value"></param>
         /// <returns></returns>
         private bool Empty(string _value)
         {
             if (_value == null | _value == string.Empty | _value == "")
             {
                 return true;
             }
             else
             {
                 return false;
             }
         }
         /// <summary>
         /// 檢查是否是非法鏈結
         /// </summary>
         /// <param name="context"></param>
         /// <param name="_myDomain"></param>
         /// <returns></returns>
         private bool errorLink(HttpContext context, out string _myDomain)
         {
             HttpResponse response = context.Response;
             string myDomain = context.Request.ServerVariables["SERVER_NAME"];
             _myDomain = myDomain;
             string myDomainIp = context.Request.UserHostAddress;
             eWebapp_NoLink = ConfigurationSettings.AppSettings["eWebapp_NoLink"];
             eWebapp_AllowLink = ConfigurationSettings.AppSettings["eWebapp_AllowLink"];
             try
             {
                 eWebapp_AllowOnlyFile = Convert.ToBoolean(ConfigurationSettings.AppSettings["eWebapp_AllowOnlyFile"]);
             }
             catch
             {
                 eWebapp_AllowOnlyFile = true;
             }
             if (context.Request.UrlReferrer != null)
             {
                 //判定referDomain是否存在網站的IP或功能變數名稱
                 string referDomain = context.Request.UrlReferrer.AbsoluteUri.Replace(context.Request.UrlReferrer.AbsolutePath, "");
                 string myPath = context.Request.RawUrl;
                 if (referDomain.IndexOf(myDomainIp) >= 0 | referDomain.IndexOf(myDomain) >= 0)
                 {
                     return false;
                 }
                 else
                 {
                     //這裏使用正則表達對規則進行匹配
                     try
                     {
                         Regex myRegex;
                         //檢查允許匹配
                         if (!Empty(eWebapp_AllowLink))
                         {
                             myRegex = new Regex(eWebapp_AllowLink);
                             if (myRegex.IsMatch(myPath))
                             {
                                 return false;
                             }
                         }
                         //檢查禁止匹配
                         if (!Empty(eWebapp_NoLink))
                         {
                             myRegex = new Regex(eWebapp_NoLink);
                             if (myRegex.IsMatch(myPath))
                             {
                                 return true;
                             }
                             else
                             {
                                 return false;
                             }
                         }
                         return true;
                     }
                     catch
                     {
                         //如果匹配出錯,鏈結錯誤
                         return true;
                     }
                 }
             }
             else
             {
                 //是否允許直接訪問檔
                 if (eWebapp_AllowOnlyFile)
                 {
                     return false;
                 }
                 else
                 {
                     return true;
                 }
             }
         }
     }
}
(繼續閱讀...)
文章標籤

Roger 發表在 痞客邦 留言(0) 人氣(448)

  • 個人分類:其它-程式相關
▲top
  • 5月 25 週一 200900:55
  • 身份證驗證規則

第一位為英文字母
第二個數字是男女生之分,男生為 1,女生為 2
 
身份證字號後面八個數字之中,前面七個可以隨便打
最後一位為檢查碼,必須經過之前一個字母與8個數字的組合計算後得出
 
檢查碼的運算原則:
 
英文代號以下表轉換成數字
       A=10  台北市       J=18 新竹縣         S=26  高雄縣
       B=11  台中市       K=19 苗栗縣         T=27  屏東縣
       C=12  基隆市       L=20 台中縣         U=28  花蓮縣
       D=13  台南市       M=21 南投縣         V=29  台東縣
       E=14  高雄市       N=22 彰化縣         W=32  金門縣
       F=15  台北縣       O=35 新竹市         X=30  澎湖縣
       G=16  宜蘭縣       P=23 雲林縣         Y=31  陽明山
       H=17  桃園縣       Q=24 嘉義縣         Z=33  連江縣
       I=34  嘉義市       R=25 台南縣
 
(1)英文轉成的數字, 個位數乘9再加上十位數
(2)各數字從右到左依次乘1、2、3、4....8
 
(1)與(2)的和,除10求出餘數
用10減該餘數,結果就是檢查碼,若餘數為0,檢查碼就是 0。
 
例如: 身分證號碼是 Z12345678?
 
             Z 1 2 3 4 5 6 7 8 
       3 3
         X  X  X  X X  X  X  X  X X
         1  9  8 7 6 5 4  3  2  1 
      ─────────────────────
         3 + 27 + 8 + 14 + 18 + 20 + 20 + 18 +14 + 8 = 150
         150/10=15....0 (餘數)
         10-0=10 (檢查碼為0)
          ∴身份證字號為Z123456780
(繼續閱讀...)
文章標籤

Roger 發表在 痞客邦 留言(0) 人氣(2,886)

  • 個人分類:其它-程式相關
▲top
12»

BloggerAds

文章分類

toggle 網站 & 部落格 (2)
  • SEO (3)
  • 部落格相關 (1)
toggle 程式語言 & HTML (11)
  • Asp Net (54)
  • C# Net (95)
  • Crystal Report (4)
  • CSS (10)
  • Java Script (34)
  • VB NET (16)
  • VB 6 程式語言 (6)
  • 其它-程式相關 (14)
  • 資料庫 (50)
  • 程式實例 (16)
  • 個人程式作品 (11)
  • 生活情報 (1)
  • 親子育兒 (2)
  • 好文分享 (5)
  • 軟體分享 (1)
  • 創業相關 (0)
  • 軟體概念 (6)
  • 投資理財 (5)
  • 未分類文章 (1)

文章搜尋

參觀人氣

  • 本日人氣:
  • 累積人氣:

友站推薦