Ȥ Blog

Ruby,C#

2009ǯ07

Ųγ

ǯǯϢ٤ѤֿͤŲγ˹ԤΤˤʤäƤΤǤǯԤäƤޤ
ŷۤǤ˼()ΤǡȤޤǤϹԤޤǤߤ餺ˤ˳ڤޤ

ιۡʵƥʥ٤­2֤Ǥ
Ϥä䤿äʡ
ǯ黲äνҤޤǤǯϳΩƸȤ᤿ȤǤ
Фʤɡ
Ǥ23񤷤ȤǤ

ʤߤ˺ϻ˭ҤΤɤǤޤ
1Q84ïäߤƤ


gem install mysql

ɤRails2.2MysqlΥɥ饤Фɸफ鳰줿餷gem install mysql ¹ԤƤ͡Ūʥ顼åɽƤޤΤǡäƤߤ顢ޤʤ
gem install mysql --with-mysql-lib=/usr/lib/mysql

äƤäƤܡ
ѥϤäƤϤʤɤʤ
ɤ⥪ץƬ -- ɬפȤǡ

gem
install mysql -- --with-mysql-lib=/usr/lib/mysql

Ǥޤޤ

ѡȻפΤϻǤ礦

dzιԡ

ޤ褦ˡ



Rails

äRailsǺȤαѤϡmongrel_clusterʣRails󥹥󥹤ươapacheproxyܥХ󥵤ǥꥯȤʬƤʤȤäƤޤ passenger ʤΤ¸ߤΤޤ
褯褯Ĵ٤ƤߤȡΤΤۤɻȤʤͳĤʤᡢ®Ƴޤ
ɤȤȡmongrelȤɬפʤapacheΤߤDZѤǤ褦ˤʤޤ
Rails󥹥󥹤ʣưեɤ˷פäƤޤ
ApacheΥСۥȤǤĤǤⱿѲǽ
ѥեޥ󥹤mongrelϤäȤ
EnterpriseRubyʤΤȤХ30︺ǤȤȤäƤʤɡ
CapistranoȤϢȤʤ ƤmongrelǤñ
Ǥϼ±ѤmongrelʤƤ⤦ޤ ƤʴǤ
Ȥˤapache + mongrel_clusterǤڤǤ
ä᤯ΤäƤɤä

Ŭܸɤ륵ȤĤʤäΤǡ
RedmineΥȤҲ


DNS

СοƤƤhostsե򤤤ΤݤˤʤäΤǡDSNСƤޤ
СΩƤƤΤǤΤƳ褦ȤϻפäƤΤǤ졢ڤɤǤ͡

unboundȤϡ



ץ

ǶͷǤʤäΤ(ߤϽ줯餤ΥڡǤΤǤ)Ͽ²ۤץ˹ԤäƤޤ
硼ȥ륫硼򸫤ΤǤηݤˤϤФǡ륫ηݤˤϤäФǤäơΤۤߤǤ
ľʴԤϤƤʤäΤǤԤäɤäǤ䡼򤫤ä

äФäƤ˸ޤ餸ʤɡ
󥿥ͤ󤬤褯äꡢ



륫αưǽϤϰǤ
ȥ졼ʡ륫˻ؼư䤱ˤä褫ä



Prototype getElementsByClassName

ǶJavaScriptäФäꡢ
HTML5document.getElementsByClassNameȤʸ̤ΰ̣Υ᥽åɤɲäȸȤǡǶо줷ChromeFirefoxκǿǤϤǤбƤ褦ǤIEϡʥ֥饦ää
PrototypeϰdocumentgetElementsByClassNameȼƤΤǤбƤ֥饦ξȤǤʤͤ㤤ޤΤƤߤȡбƤϤΤޤޤäƤǡ̤бξΤȼ򤷤Ƥޤ

HTML5̤бΥ֥饦ξ: Array
HTML5бΥ֥饦ξ: NodeList

ʤΤDzΤ褦ʥɤ񤤤ƤΤǤưʤʤäƤޤäΤǡ˾ǤäƤޤޤ

var items = document.getElementsByClassName("hoge");
if ( items.find (.....)).....

줬NodeListˤfindʤƥ᥽åɤʤǤ莰ܤƤޤޤ
ʤߤfindPrototypeʤȤǽ)Фĥ᥽åɤǤ
Ȥ櫓$AѴƤޤв衢

var items = $A(document.getElementsByClassName("hoge"));

APrototypeΥɥȤɤǤ



checkbox[checked=true]

JavaScriptΤäǤGmailΤ褦ʣΥ쥳ɤåܥå򤷤ƺΰ򤵤ˡС˥ꥯȤJavaScript򤵤Ƥǧ1򤵤ƤʤС򤷤ƤŪʥåФ褦ʤȤ¿Ȼפޤ
Τ褦ʵǽڡΥե󥰤򤷤ƤΤǤJavaScriptޤˤҤɤΤäΤǡclass̾ղäƤäjQueryCSS쥯ȤäƼޤ
ʴ

if(jQuery(".class_for_checkbox[checked=true]").length == 0) alert("ʤ򤷤Ƥ");

̤Prototype

if($$(".class_for_checkbox[checked=true]").length == 0) alert("ʤ򤷤Ƥ");



ǤɤäΤǤjQueryƳľȸȤ⤢虜虜ȤäƤޤ

ΥץȤIE6ǤưޤFirefox,SafariʤChromeˤǤưޤ󡣾0Ǥ
checked°ʤ鵡ǽäƤȻפΤǤΤäƤͤ鶵Ƥ

ξ:checked CSS饹ȤäƤȤޤ褦Ǥ

jQuery(".class_for_checkbox:checked").length

ε饹ǥǻȤȤܤäݤǤ
ȤϳǧƤޤ󤬡

饹äa:hoverȤ٤Τʤä
enabled, disabledȤemptyʤƤΤ⤢Ǥ͡ٶˤʤޤ




۸¦ξڿ (Ѽʸ)

ΤͤΤ̾ǡ
ΤطʤΤäȤϻפ碌ʤǤ
90ǯκɤǤƤ⡢ʤ󤫥ŤʎȤפäƤޤȤͤ顢Ȥ⤷ʤ
Ƥ֤ ɤȡפƤʴ ǤΤ˺ʤȤƤäꤷƤ뤳Ȥϴޤ
Ǥ⡢ߥߥäƤʤ衢äƴǤϤޤ

ȥ۸¦ξڿ (Ѽʸ)
//Artist
, 580 Ѽ
ɾ

2009-07-05

ڡBOOKץǡ١
̡ɥ󥵡ΥߥߥҤȬȶθʡɧ̤˾äʡʿĹ³ʤäǤ硦ζǷԤ˻줿ΤȿͤïʤΤ?۸¦ڿͤᤰäơҤˡǤƮϤޤ롣۸¦ξڿ͡פȤϲ̤ƲԤʤΤ?ܥߥƥ꡼ˤ˻ȵ̾ᴤ롣




äȥԥ󥯤ηӤޤ


äޤꤿߤꥹȥ졼Ȥ饤ɤɤǤ͡


ĿĹؤֶ

Ĥ̤ʤ Ƥޤ ۥȥȥפФ뿥ĿĹǥե奢ΤΤ֤ʤꤵֶ硢
Ĥ̤ʤ Ǥ ۥȥȥס
ФäƤޤޤ
ܿͤͤΤɤ꤫ǤϤޤ󤬡
ǤǤ͡

ץե

Ȥ

C#ɻŻRubyФʳȯԡ
ǶDockerȤؿȤAngularJS˥ϥޤäƤ롣
¢ȤĮȤȤ˽ס

QR
QR
  • 饤֥ɥ֥