2013年3月19日火曜日

bootstrap datepicker defaultValue


https://github.com/eternicode/bootstrap-datepicker

これ使った場合、restした時、困ったので、
とりあえず以下を追加して対応。

$.fn.datepicker.Constructor.prototype.setDefaultValue=function(value){
   var formatted = this.getFormattedDate();
   if (!this.isInput) {
       if (this.component){
           this.element.find('input').get(0).defaultValue=formatted;
       }
       this.element.data('date', formatted);
   } else {
       this.element.val(formatted);
   }
  };

2010年12月19日日曜日

C# DataGridView DataGridViewComboBoxColumn でのBindingSource 使用時。

DataRowView rv = (DataRowView)column.BindingSource.AddNew();
rv.BeginEdit();
rv[column.ValueMember] = dlg.Value;
rv.EndEdit();



どうやら DataGridViewComboBoxColumn に BindingSource で
DataSet を連結したとき、BeginEdit、EndEdit
しないと DataGridView に直接

grid.CurrentCell.Value = dlg.Value;

のように値をぶち込むと

DataGridViewComboBoxCell の値が有効ではありません


とエラーが出てしまう。

2009年12月13日日曜日

usb マウント 半自動

/dev/sdc1 /media/usb0 ntfs user,noauto,umask=0022 0 0
/dev/sdd1 /media/usb1 ntfs user,noauto,umask=0022 0 0
/dev/sde1 /media/usb2 ntfs user,noauto,umask=0022 0 0

2009年12月12日土曜日

squeeze の ggl-qt

ガジェットでろくなのが無いし、ウェブのガジェットをダウンロードしてもすぐに実行できなかったりして不便。

linux コマンド

which ★★★ ← locate a command

2009年12月11日金曜日

squeeze compiz

nautilus のリスト表示中にアイテムをドラッグ&ドロップしたときにx毎落ちる現象が直っていた。

squeeze nvidia

【ドライバ】


nvidia より ダウンロードしたものを使うと楽。その時、xが起動してるとインストールできないので、gdm のランレベルを設定してxが起動しないようにしておいた方がいい。


【ランレベルの設定】


sysv-rc-conf をインストールして設定するのが楽。スペースでチェック の on/off できる。

ELEMENT

とむぼーい