image
資料來源: [C#] 使用MD5、SHA-1、SHA-2(SHA-256、SHA-384、SHA-512) 加密資料
文中提到一些常見的加密演算法目的及c#範例, 方便有需要的人取用!!!1. 使用者輸入密碼, Hash後寫入資料庫, 因此即使資料庫被入侵, 有心人士也無法得知原始的密碼為何!2. 爾後使用者登錄輸入密碼, 同樣Hash後跟資料庫進行比對驗證範例程式: CryptographyTest.rar

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

>> ffmpeg -i INPUT_FILENAME.avi -metadata title="GTVision" -metadata artist="RyanWang" –metadata comment="COMMENT" -threads 0 OUTPUT_FILENAME.avi

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

image
C:\Program Files (x86)\Xamarin Studio\準備開始安裝記得按下Finish前勾選Lauch Xamarin Studio

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

image
選擇專案加入Windows Form, 名稱可以取有意義的名字:ColorOfInterestForm.cs加入4個HScrollBar分別為調整BGR數值以及容忍絕對誤差(Tolerence)加入4個成員變數加入四個方法Blue, Green, Red, Tolerence方便外部取得4個內部變數_blue, _green, _red, _tolerence

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

image
先確認有安裝IIS
新增移除程式->開啟或關閉Windows功能

勾選Internet Information Services

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

image
安裝Multi-Touch Vista driver前安裝Multi-Touch Vista driver前double click “Install driver”請選擇<安裝>安裝Multi-Touch Vista driver後安裝Multi-Touch Vista driver後

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

image
Download Microsoft XNA Game Studio 4.0 ============================================================================Microsoft® Surface® 2.0 SDK and Runtime

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

image
加入參考加入Microsoft.VisualBasicprivate void button1_Click(object sender, EventArgs e)
{
     timer1.Interval = 100;
     timer1.Enabled = !timer1.Enabled;
}

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

image
參考資料: Form.AcceptButton 屬性 能做什麼?
想像一下如果使用者在 textBox 填好資料後,不用滑鼠,按 Enter 就能執行下一步的動作,是不是蠻方便的。
namespace AcceptBtnTest
{
     public partial class Form1 : Form
     {
         public Form1()
         {
             InitializeComponent();
             this.AcceptButton = button1;
         }

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

image
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Finder
{
     public class Finder
     {
         public static int Find<T>(T[] items, T item)
         {
             for (int i = 0; i < items.Length; i++)
             {
                 if(items[i].Equals(item))
                 {
                     return i;
                 }
             }
             return -1;
         }
     }
     class Program
     {
         static void Main(string[] args)
         {
             int pos = 0;
             int val = 5;
             int[] seqence = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
            
             pos = Finder.Find<int>(seqence, val) + 1;
             Console.WriteLine("The position of number "+ val.ToString() + " is " + pos.ToString());
             //======================================================================
             string s = "Peter";
             string[] str = new string[] { "Jane", "Peter", "Ryan" };
       
             pos = Finder.Find<string>(str, s);
             Console.WriteLine("The position of string " + s + " is " + pos.ToString());
             Console.ReadLine();
         }
     }
}

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

image
namespace WebCam
{
     public partial class Form1 : Form
     {
         private Capture _capture = null;    // 影像機
         private bool _captureInProgress;    // 是否擷取中

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

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。