インデックスの再構築とか断片化解消とかそのへんのスクリプトをまとめておく。 もう本当にAzure関係ねぇ。
1年半振りの更新とか('A`)しかもazure関係ねぇし…。 CentOSにDockerをインストール sudo yum install docker -y お手軽お気軽。ここでインストールしたdockerは一般ユーザーで docker ps とかすると Cannot connect to the Docker daemon. Is the docker dae…
I met the same problem and I resolved it by setting CopyLocal to true for the following libs:System.Web.Http.dll System.Web.Http.WebHost.dll System.Net.Http.Formatting.dllI must to add that I use MVC4 and NET 4answered Dec 17 '14 at 14:30 …
ViewModel的なものを作るときに必ず出てくるのがINotifyPropertyChanged インターフェイス (System.ComponentModel) WindowsFormsでの単項データバインドまわり | tocsworld これを実装するのが定跡ではあるんだけど案外面倒くさい。C# - INotifyPropertyCha…
10.hateblo.jp ローカルのSSMS*1から直接クエリを実行すると普段通りのパフォーマンスが出てる。クエリキャッシュを考えてランダムのパラメータでロードしても速度は普通。 これどういった話なんだろうと調べた結果そのものずばりな記事があった。 When I re…
10.hateblo.jp の詳細について見つけた記事を軽く和訳。 この記事はQuery Performance and multi-statement table valued functions - CSS SQL Server Engineers - Site Home - MSDN Blogs の雑な和訳です。
早くProfilerに対応してください(´;ω;`) クエリで出力 パフォーマンスを監視するクエリ SQL Azureに限らず SQL Server でも使えるスクリプトですが、プロファイラを現在使うことのできない SQL Azureでは下記のスクリプトが便利です。このスクリプトを使…
やめて! 障害は突然に 安定稼働してたサービスのユーザーから一部の機能が急に遅くなったとクレームが。 試してみると確かに遅い。 Webサービス側を再起動や再デプロイしてみても状況は変わらず。 更にローカルの開発環境からSQLAzureに接続しても同様の現象…
.Netが標準で用意しているEmailAddressAttribute(System.ComponentModel.DataAnnotations)で本来は必要十分なんだが、Docomoやauの過去の遺産であるRFC違反アドレスは今もまだ使用されており、ひょんなことからコイツが現れてエラーを巻き起こす。 NTTドコモ…
業務プログラムだとMaster-Detailモデルのエンティティの更新履歴を保存したいなんてのは良くある話。 そこはDBのTriggerあたりを使ってやるのも手ではあるんだけど、もうちょっと手軽にやる方法は無いもんかと。 | \ __ / _ (m) _ピコーン |ミ| / .`´…
IIS オート スタート設定による ASP.NET Web アプリケーションの初回実行時のパフォーマンス向上 - THE TRUTH IS OUT THERE - Site Home - MSDN Blogsをやってて罠に嵌りまくった腹いせエントリ。すいません言い過ぎました。 ● Windows Azure クラウドサービ…
DFAgent.exeが起動に失敗してntdll.dllのメモリエラーがうんたらかんたら('A`)ンモー
エラーになってもタブを勝手に開いてくれないのかよ(´・ω・`) $("#reserveeditform").submit(function () { $elem = $(".input-validation-error:first"); $elem.parents().filter(".collapse").collapse("show"); //tab上にある if ($elem.parents().filte…
なんてこった。 In the new version of jQuery validation plugin 1.9 by default validation of hidden fields ignored. I'm using CKEditor for textarea input field and it hides the field and replace it with iframe. The field is there, but valida…
i am using jquery's unobtrusive validation plugin in with asp.net mvc. the problem is that all the fields that are rendered server side gets validated with this scheme but if i dynamically add a field in the form using javascript it is not…
VSで使えるMVCの非同期アクション用のスニペット。 コードスニペットマネージャーでインポートして使える。
しかも"たまに" (# ゚Д゚)ふぁーーっく!!! こんな状況 //---model--- public class StayType{ public int id{get;set;} public string name{get;set;} } public class Reserve{ [いろいろ] public ICollection<ReserveItem> items{get;set;} } public class ReserveItem{ [</reserveitem>…
これで何をわかれと言うのか(# ゚Д゚)
The issue is easily reproduced in the default asp.net project template by setting the validateInterval parameter of the OnValidateIdentity to 1 minute, and then waiting 1 minute before clicking the log off button. If the call to the action…
それなりに大規模なミッションでボトルネックになるデータベースを保護するためにキャッシュ機構を作る必要に迫られて、ならばとAzure Redis Cacheを使ってみた。 Redis Session State Providerは普通に動くし動作も快適。単純なテストでRedisに読み書きする…
列挙型プロパティのEditとかでDropdownを使いたいけどSelectListItemを毎回作るコードを書くのは面倒なのでユーティリティ化 public static class ViewHelper { public static IEnumerable<SelectListItem> toList<T>() where T : struct, IConvertible { if (!typeof(T).IsEnum</t></selectlistitem>…
ガントチャート The jQuery.ganttView plugin is a very lightweight plugin for creating a Gantt chart in plain HTML...no vector graphics or images required. The plugin supports dragging and resizing the Gantt blocks and callbacks to trap the …
RDゲートウェイは便利なんだけど、備え付けのオレオレ証明書発行が半年の証明書しか作れなかったのでこれをOpenSSLで作って楽しようというログ 下ごしらえ openSSLのオプションだけだとextendedKeyUsaseが設定できないので、configに拡張設定しておく #/etc/…
このサンプルが一番わかりやすい。 Type.ContainsGenericParameters プロパティ (System) public class Base<T, U> { } public class Derived<V> : Base<int, V> { } public class Test { public static void Main() { Type derivedType = typeof(Derived<>); DisplayGenericT</int,></v></t,>…
LinqToCSVとか色々あるんだけど帯に短し襷に長し。 もっと簡単に使いたいんだよな。と、思ったのでリフレクションの復習も兼ねて自作してみる。 仕様 IEnumerable<T>から出力 基本的にはClassの設計通りに出力する 1:1の参照だったらリンク先のオブジェクトも処</t>…
でかいサイズの画像アップロードを作ってて、RequestLengthOverが出たのでWeb.configの設定を POSTされるアップロードの上限を設定するには、Web.configのhttpRuntime要素のmaxrequestlength属性に値を設定する。 なにも設定しない場合は、デフォルトのサイ…
工場研修の生産性のなさに嫌気が差してきたので「ボ」「ン」「ジョ」「ヴィ」をランダムに表示して「ジョン・ボン・ジョヴィ」が揃ったら終了するプログラム作りました pic.twitter.com/xX4pyLbq3s— YaGi (@yagiyyyy) 2014, 6月 2 public partial class Form1 : Form {…
外部からのパラメータでリストの表示順位を変えたいなんてのは比較的ありがちなんだけど、EF+LINQでやろうとしてもいまいち方法がわからん。 ケース 素直にやるとこうなる。 public class ViewModel{ public string SearchText {get;set;} public int? age {…
前からこんなだっけ?
アップデートのたびにこういうのが起きるの本当に勘弁して欲しい('A`)