2012-03-01から1ヶ月間の記事一覧

get value from radio button

<% @hoge.hages do |hage| -%> <div lass='select_radio_hage'> <%= radio_button_tag "hages", hage.id, false, -%> <%= hage.name -%> </div> <% end -%>jQuery("#hoge_list").navGrid('#hoge_pager',{ edit:false,add:false,del:false,search:false }).navButtonAdd('#hoge_pager',{ caption:"…

jqGrid; add export button to table

views/hoges/show.html.erb <table id="hoge_list" class="scroll"></table> <div id="hoge_pager" class="scroll"></div>javascripts part jQuery("#hoge_list").navGrid('#hoge_pager',{ edit:false,add:false,del:false,search:false }).navButtonAdd('#hoge_pager',{ caption:"", title:"Export to CSV", buttonicon:"u…

ブランチの削除

svn delete http://svnurl/svn/hoge/branches/br-hoge -m "delete br-hoge"

jqGrid; no method error; total_entries

users_controller.rb in def index respond_to do |format| format.html # index.html.erb format.json { render :json => users.to_jqgrid_json([:id, :pseudo, :firstname, :lastname, :email, :role], params[:page], params[:rows], users.total_entries…

json, jqGrid

jqGrid は、Ajax 対応の JavaScript コントロールで、ウェブ上に表のデータを表示させたり操作することが可能です。 http://www.jqueryhelp.net/JSON(ジェイソン、JavaScript Object Notation)は、JavaScriptにおけるオブジェクトの表記法をベースとした軽…

restful_authentication

In the case of two setting files for new user account varidation,1, vendor/plugin/restful_authentication/lib/authentication.rb self.login_regex = /\A\w[\w\.\-_]+\z@/ # ASCII, strict2, lib/restful_authentication/authentication.rb self.login…

NCL; NCAR Command Language

NetCDF Network Common Data Formatの略で、気候データを取り扱う際の標準的なデータ形式の1つ 気候データのフォーマット; http://www.ccsr.u-tokyo.ac.jp/~masakazu/memo/format.htmNCL; NCAR Command Language; http://www.ncl.ucar.edu/ a free interpret…

Rails2; will_paginate params

{:hoge=>nil} -%>

Subversion + Apache Digest Authentication; Add new user

OS; Redhatdigest file; /var/lib/svn/svn.digestadd new user to existent digest file /var/lib/svn$ sudo htdigest svn-auth.digest "Subversion Repository" user_name [sudo] password for svn: Adding user user_name in realm Subversion Repository …