<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/erebos/">
    <title>erebos @ ウィキ</title>
    <link>http://w.atwiki.jp/erebos/</link>
    <atom:link href="https://w.atwiki.jp/erebos/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>erebos @ ウィキ</description>

    <dc:language>ja</dc:language>
    <dc:date>2010-11-09T11:54:12+09:00</dc:date>
    <utime>1289271252</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/erebos/pages/43.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/erebos/pages/42.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/erebos/pages/41.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/erebos/pages/40.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/erebos/pages/39.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/erebos/pages/38.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/erebos/pages/37.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/erebos/pages/36.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/erebos/pages/35.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/erebos/pages/34.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/erebos/pages/43.html">
    <title>test</title>
    <link>https://w.atwiki.jp/erebos/pages/43.html</link>
    <description>
      &lt;table&gt;&lt;tr&gt;&lt;td&gt;test1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;test2&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;    </description>
    <dc:date>2010-11-09T11:54:12+09:00</dc:date>
    <utime>1289271252</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/erebos/pages/42.html">
    <title>csharp_vsts</title>
    <link>https://w.atwiki.jp/erebos/pages/42.html</link>
    <description>
      *Visual Studio 2005 Team System（以下、VSTS）について

-同値チェックを行うためのアサーション
-インスタンスの同値チェックを行うためのアサーション
[[第2回 アジャイル開発者から見たVSTSテスト機能&gt;http://www.atmarkit.co.jp/fdotnet/vststester/vststester02/vststester02_02.html]]

-型チェックを行うためのアサーション
-状態テストを行うためのアサーション
-文字列比較を行うためのアサーション
[[第2回 アジャイル開発者から見たVSTSテスト機能&gt;http://www.atmarkit.co.jp/fdotnet/vststester/vststester02/vststester02_03.html]]    </description>
    <dc:date>2010-09-08T18:33:11+09:00</dc:date>
    <utime>1283938391</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/erebos/pages/41.html">
    <title>mysql_command</title>
    <link>https://w.atwiki.jp/erebos/pages/41.html</link>
    <description>
      *クライアントのキャラクタセットの文字コードを確認する
#highlight(){
mysql&gt;status
}

*クライアントのキャラクタセットの文字コードを変更する
#highlight(){
mysql&gt;set NAMES sjis;
}

*データベースの設定情報確認
#highlight(){
mysql&gt;show variables like &quot;%&quot;;
}

*テーブルの構成確認
#highlight(){
mysql&gt;show columns from table;
}

*テーブルのレコードを全削除
#highlight(){
mysql&gt;delete from category;
}    </description>
    <dc:date>2010-10-04T11:55:39+09:00</dc:date>
    <utime>1286160939</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/erebos/pages/40.html">
    <title>csharp_halfadjust</title>
    <link>https://w.atwiki.jp/erebos/pages/40.html</link>
    <description>
      *指定した精度の数値に四捨五入

#highlight(c){{
/// &lt;summary&gt;指定した精度の数値に四捨五入します。&lt;/summary&gt;
/// &lt;param name=&quot;dValue&quot;&gt;丸め対象の倍精度浮動小数点数。&lt;/param&gt;
/// &lt;param name=&quot;iDigits&quot;&gt;戻り値の有効桁数の精度。&lt;/param&gt;
/// &lt;returns&gt;iDigits に等しい精度の数値に四捨五入された数値。&lt;/returns&gt;
static double ToHalfAdjust(double dValue, int iDigits)
{
    double dCoef = System.Math.Pow(10, iDigits);

    return dValue &gt; 0 ? System.Math.Floor((dValue * dCoef) + 0.5) / dCoef :
                        System.Math.Ceiling((dValue * dCoef) - 0.5) / dCoef;
}
}}    </description>
    <dc:date>2010-04-16T17:18:54+09:00</dc:date>
    <utime>1271405934</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/erebos/pages/39.html">
    <title>csharp_currentdir</title>
    <link>https://w.atwiki.jp/erebos/pages/39.html</link>
    <description>
      *作業フォルダをアプリケーション実行フォルダに設定

#highlight(c){{
// 作業フォルダをアプリケーション実行フォルダに設定
System.IO.Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory);
}}    </description>
    <dc:date>2010-04-16T16:46:38+09:00</dc:date>
    <utime>1271403998</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/erebos/pages/38.html">
    <title>csharp_csv</title>
    <link>https://w.atwiki.jp/erebos/pages/38.html</link>
    <description>
      *CSVを扱うクラス

#highlight(c){{
public class CSVOperate
{
    #region 変数
    private System.Data.DataTable dt = new DataTable();
    private System.Data.OleDb.OleDbDataAdapter da = null;
    private int iRowLength = 0;
    private int iColLength = 0;
    #endregion

    #region プロパティ
    /// &lt;summary&gt;
    /// 行数
    /// &lt;/summary&gt;
    public int RowLength
    {
        set { this.iRowLength = value; }
        get { return this.iRowLength; }
    }

    /// &lt;summary&gt;
    /// 列数
    /// &lt;/summary&gt;
    public int ColLength
    {
        set { this.iColLength = value; }
        get { return this.iColLength; }
    }
    #endregion

    #region コンストラクタ
    /// &lt;summary&gt;
    /// コンストラクタ
    /// &lt;/summary&gt;
    /// &lt;param name=&quot;csvPath&quot;&gt;CSVファイルパス(ヘッダー無しのCSV対象)&lt;/param&gt;
    public CSVOperate(string csvPath)
    {
        string baseDirectory = AppDomain.CurrentDomain.BaseDirectory;

        // 作業フォルダをCSVのあるフォルダに設定
        if (Directory.Exists(System.IO.Path.Ge    </description>
    <dc:date>2010-04-16T16:38:22+09:00</dc:date>
    <utime>1271403502</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/erebos/pages/37.html">
    <title>csharp_ngram</title>
    <link>https://w.atwiki.jp/erebos/pages/37.html</link>
    <description>
      *Ngramでテキスト比較

#highlight(c){{
public class Ngram
{
    /// &lt;summary&gt;
    /// Bigramで比較
    /// &lt;/summary&gt;
    public static float Compare(string strA, string strB)
    {
        return Compare(2, strA, strB);
    }

    public static float Compare(int n, string strA, string strB)
    {
        if (strA == null) throw new ArgumentNullException(&quot;strA&quot;);
        if (strB == null) throw new ArgumentNullException(&quot;strB&quot;);

        List&lt;string&gt; blistA = new List&lt;string&gt;();
        for (int i = 0; i &lt; strA.Length - (n - 1); i++)
        {
            string ngitem = strA.Substring(i, n);
            if (!blistA.Contains(ngitem)) { blistA.Add(ngitem); }
        }
        if (blistA.Count == 0) return 0;

        int found = 0;
        List&lt;string&gt; blistB = new List&lt;string&gt;();
        for (int i = 0; i &lt; strB.Length - (n - 1); i++)
        {
            string ngitem = strB.Substring(i, n);
            if (blistB.Contains(ngitem)) continue;
            if (blist    </description>
    <dc:date>2010-11-22T13:29:25+09:00</dc:date>
    <utime>1290400165</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/erebos/pages/36.html">
    <title>csharp_excel</title>
    <link>https://w.atwiki.jp/erebos/pages/36.html</link>
    <description>
      *Excelファイルを開き、指定のセル値を取得
#highlight(c){{
public class ExcelUtil
{
    #region メンバ変数
    private Excel.Application oXls;
    private Excel.Workbook oWBook;
    #endregion

    #region プロパティ
    /// &lt;summary&gt;
    /// ワークブック
    /// &lt;/summary&gt;
    public Excel.Workbook Book
    {
        get { return this.oWBook; }
    }
    #endregion

    /// &lt;summary&gt;
    /// コンストラクタ
    /// &lt;/summary&gt;
    public ExcelUtil()
    {

    }

    #region メソッド
    /// &lt;summary&gt;
    /// 指定されたExcelファイルを開く
    /// &lt;/summary&gt;
    /// &lt;param name=&quot;fname&quot;&gt;Excelファイル名&lt;/param&gt;
    public bool Open(string fname)
    {
        this.oXls = new Excel.Application();
        this.oXls.DefaultFilePath = AppDomain.CurrentDomain.BaseDirectory;
        //this.oXls.Visible = true; // 確認のためExcelのウィンドウを表示する

        try
        {
            // Excelファイルをオープンする
            this.oWBook = (Excel.Workbook)(oXls.Workbooks.Open(
              fname,  // オープンするExcelファイル名
              Type.Mis    </description>
    <dc:date>2010-04-16T15:22:07+09:00</dc:date>
    <utime>1271398927</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/erebos/pages/35.html">
    <title>win_tips</title>
    <link>https://w.atwiki.jp/erebos/pages/35.html</link>
    <description>
      *Windows Tips

-アプリケーションを終了させるときには，確認ダイアログを無視したい場合の設定
#divstyle(background-color:#eeeeee;){
ITpro http://itpro.nikkeibp.co.jp/article/COLUMN/20080929/315573/?ST=win&amp;P=3
+レジストリ・キーHKEY_CURRENT_USER\Control Panel\Desktopを選ぶ
+アプリケーションが応答しない場合に，ダイアログを出すことなく強制終了させたいという場合は，右の領域から［AutoEndTasks］値をデフォルトの「0」から「1」に変更する。これで，アプリケーションが一定時間応答を返さない場合，強制的にシャットダウン処理が続行される。
+アプリケーションを強制終了するかどうかのダイアログを出すまでの時間を変えるには，［HungAppTimeout］値を編集する。（1000分の1秒単位）
+終了メッセージを送っても、なんの応答もない場合、そのアプリケーションを強制終了するかどうかのダイアログを表示するまでの猶予時間を［WaitToKillAppTimeout］値で設定する。（1000分の1秒単位）
}

-Windows7でIISインストールする際
#divstyle(background-color:#eeeeee;){
Windows7ではWindowsファイアウォールの許可されたプログラムに IIS を追加しないと、外部のデバイスからアクセスができない。下図設定にてファイアウォール規制対象外にできる
#image(win7_iis_firewall.jpg)
}    </description>
    <dc:date>2010-02-17T11:58:24+09:00</dc:date>
    <utime>1266375504</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/erebos/pages/34.html">
    <title>csharp_fileshare</title>
    <link>https://w.atwiki.jp/erebos/pages/34.html</link>
    <description>
      *オープン中のファイルにアクセスするには？

以下参照
・.NET TIPS オープン中のファイルにアクセスするには？［C#、VB］
　[[http://www.atmarkit.co.jp/fdotnet/dotnettips/707shareread/shareread.html]]

・開くファイルへの他のプロセスからのアクセスを制限する
　[[http://dobon.net/vb/dotnet/file/fileshare.html]]    </description>
    <dc:date>2009-09-04T11:28:38+09:00</dc:date>
    <utime>1252031318</utime>
  </item>
  </rdf:RDF>
