2011-01-01から1年間の記事一覧
SVNをチェックアウトしたらフォルダのタイムスタンプが全部現在時刻だったので。 ちょっと調べてわかんなかったのでなんちゃって補正してみた。 static void Main( string[] args ) { if (args.Length != 1) { Console.WriteLine( "usage: cfp.exe <folder path>" ); retu</folder>…
実装サンプル http://msdn.microsoft.com/en-us/library/cc303707.aspxVista以降で試してみたい。
public const int BM_CLICK = 0x00F5; [DllImport( "user32.dll", CharSet = CharSet.Auto, SetLastError = true )] static extern IntPtr FindWindowEx( IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow ); [DllImport( "u…
AMD Display Library (ADL) SDK http://developer.amd.com/sdks/ADLSDK/Pages/default.aspxnvidia CUDA Tool kit http://developer.nvidia.com/cuda-downloads http://www.nvidia.co.jp/object/cuda_home_new_jp.html nvcpl.dll
ISimpleAudioVolume IAudioEndpointVolume
1,2次元配列のコピー拡張的な何か。配列のCopyToってなんで戻り値で返してくれないんだろうっていつも思ってる。 static class ArrayExtension { public static T[] CreateDeepClone<T>( this T[] source ) { if ( !typeof( T ).IsValueType ) { throw new A</t>…
はてなのカテゴリは登録された順だから多くなってくると探すのに困るのでソートしてみた。 string c=@".NET ActiveDirectory ASP.NET"; var cs = c.Split('\n'); foreach ( var item in cs.OrderBy<string, string>( s => s ) ) { Console.WriteLine(item); } 「=>」は「goes</string,>…
コードに埋め込みたくなかったんで。 うーん。いまいちだな。 終了するときに開放だしあんまり気にしなくてもいいかと安易に思ってみたり。 class MultiInstanceBlocker { static Mutex _mutex; static public void Activate( string key ) { if ( IsActivat…
自分が今何歳だったかわからなくなることはよくあるよね。 static void Main( string[] args ) { Console.WriteLine( GetAge( DateTime.ParseExact( "1900/01/01", "yyyy/MM/dd", null ) ) ); } private static int GetAge(DateTime from) { var to = DateTi…
メモリチェック用 private void button1_Click( object sender, EventArgs e ) { if ( textBox1.Text.Length == 0 ) { return; } try { if ( radioDouble.Checked ) { Show( typeof( double ) ); } else if ( radioFloat.Checked ) { Show( typeof( float ) …
Win7 64bitで動作確認。 unicode, x64, vs2010 Shell Extensionはマネージだと問題あるのでアンマネージで。*1 ファイルパスをクリップボードにコピーする。ちなみにVistaからの「シフト+右クリック」とかいうコマンドは忘却の彼方に追いやると吉。でもこれ…
テストとかに・・・。 class Program { static void Main( string[] args ) { for ( int i = 0; i < 10; i++ ) { var a = new A(); new Thread(a.Start).Start(); } Thread.Sleep( 1000 ); Console.WriteLine( "ready?" ); WHandle.Set(); Console.WriteLine…
http://support.microsoft.com/kb/192806/ja アプリケーションの追加と削除control appwiz.cpl 追加 テキスト サービスと入力言語control input.dll ユーザーアカウントcontrol userpasswords2
httpsでリモート接続 必要な証明書 接続先のサーバー証明書を発行しているCAの証明書を信頼されたルートに置く。 接続先ドメインの証明書を発行しているCAの証明書を信頼されたルートに置く。RDゲートウェイのSSL証明書 発行先が接続先のドメインとなってい…
Ajaxの読み込み部品(jQuery)とかMicrosoft Ajax Content Delivery Network Google Libraries APIほんとうに便利な世の中になったと思う。
Google Code Playground 便利かなと思ったんだけど ↓のソース start と end に日本語入れると動かない。(エラーは出ないけど) http://www.geocoding.jpから緯度経度検索してLatLngで突っ込むしかないの?? (英語で書いても大丈夫だとおもうんだけどそっ…
SQLite3 http://www.sqlite.org/index.html型 http://www.sqlite.org/datatype3.html Storage Classes and Datatypes NULL. The value is a NULL value. INTEGER. The value is a signed integer, stored in 1, 2, 3, 4, 6, or 8 bytes depending on the mag…
フリー的な意味で といってもReflectorのv6.8は今後も使えるらしいが。代わりに使えるのがJustDecompile http://www.telerik.com/products/decompiling.aspx
パソコンの再インストールついでにいつも(?)入れるものをメモブラウザ chrome http://www.google.co.jp/chrome/IME Google IME http://www.google.com/intl/ja/ime/Mail Thunderbird http://mozilla.jp/thunderbird/Explorer用 AeroBar http://www.askvg.…
Assembly.GetEntryAssembly().GetName().Version AssemblyNameって微妙だよな
いまさらかよってツッコミは置いといてpre記法中はタブをスペース4つにしてくれたりすると見やすいとおもうんだけどなー
とりあえず25番に反応してくれる人がいないと先に進まなかったので。SmtpServer 接続を待ち受ける人。 namespace SmtpStub { class SmtpServer { TcpListener _listener = new TcpListener( new IPEndPoint( IPAddress.Any, 25 ) ); List<MailProcessor> _processores = new</mailprocessor>…
権限取得 sys.database_permissions select OBJECT_NAME(major_id),USER_NAME(grantee_principal_id),* from sys.database_permissions プロシージャソース取得 sys.sql_modules select OBJECT_NAME(object_id),definition,* from sys.sql_modules sqlcmdと…
バッチ誤爆起動防止に/runとかつけさせてみる。 @echo off echo "%1" if not "%1"=="/run" goto runerr echo 処理とか echo Errorlevel %ERRORLEVEL% で終了しました。詳細はログファイルを参照ください。 goto end :runerr echo エラー。実行時には引数 "/r…
自宅でExchange2010をインストールしてみた。 いっこうにメールが送信されない。 ブロックされているというか反応がないらしいんだが・・?エラー内容 451 4.4.0 primary target IP address responded with "421.4.4.2 unable to connect."attempted failove…
基本的にアンインストールは手動で行うべきではないんだけどExchangeっていろいろ問題が多くて、リカバリもアンインストールも出来ないとかあるわけで。 http://msgsense.com/2011/01/18/manually-uninstall-last-exchange-2010-server-from-organization/+…
オレオレ詐欺用 IISを使用すると国とかいらんもん入れさせられるのでIISは使いません><certreq.exeを利用 ;----------------- request.inf ----------------- [Version] Signature="$Windows NT$ [NewRequest] Subject = "CN=" ; replace with the FQDN of…
Windows 2008 R2 GUIでFSMO転送 FSMOの役割 PDC(primary domain controller) RID インフラストラクチャ スキーマ 名前付けマスター PDCとRIDとインフラストラクチャに関しては「Active Directory ユーザーとコンピューター」で可能 ツリー3番目のドメインを…
portqry.exe http://www.microsoft.com/downloads/en/details.aspx?familyid=89811747-C74B-4638-A2D5-AC828BDC6983&displaylang=en
フォルダを消して HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ ↑再作成