Ȥ Blog

Ruby,C#

2010ǯ03

ɥ---̱ؤ400

˴ؤܤʤơؤιֵɤǰǤ
ޤTVǺԤб餷ƤƤΤǡޤˤϤΤɤǤߤ褦ʡȻפ޽ۤǼڤޤͤ餤ԤäΤǷ빽͵Τʤ

ʡդνꤢ꤫顢ǯνľޤǤƤǤ

ǡǤˤĤơܤΥޥߤܿͤƤ⡢Ǥʤ¤ꡢǤ̤ˤʤʤȤΩ򼭤Ǥ̤ȤˤʤäƤ롢ȻŦƤޤƱǤ
ޤȥޥߤƻФƱսս꤬¿ޤ
̱ޤξĹθˤĤơ䡢θ򤽤ΤޤήƤΥޥߤߤƤȡ̱ϼˤƤȻפƻʤ褦˻ˤϻפޤǰʤ顢դܺ٤˽񤱤ۤɤ̤ϤʤΤǤƱ褦ʴͤäƾʤʤ󤸤ʤΤʤȻפޤ


ȥɥ---̱ؤ400
//Artist
, 1,680 Ͻн˼
ɾ
 2010-03-29

ƾҲ

ֹ񲦻ҡפΰΤǿƤޤTBS饸̾ʪԤʡǤȷ̱ޤǤɤ΢¦! ̱޴ĹϺꥤ󥿥ӥ塼Ǻܡ

ơʡBOOKץǡ١ˡ

󡻡ȬǯʡμǤȯɽ߰ˡ̱ɽμǤơǤ̱ްФơȷդޤǤλ͡TBS饸̾ʪԤݡȤɥȡ

⹻ ǤɬפʤƤΤ

ޤʬʤĤǡʤͤԤˤʤäߤǤ͡

˾Ĥʤ˸¤ޤ󤬡ˤ򤷤ƤͤˤȤäơȤΤޤ󤬡μϤǤɶ˾夬ʤФơ餱櫓ˤϹԤʤסȻפΤϻδǡ餱ΤѡסȼʬФƲݤ뤯餤ΤȤϡʤˤݡĤäƤͤʤ齽ʬäǤ
褷ʤƤ櫓ǤʤΤˡפʤơ500ֵáʤʤˤ500äƤä褦ʵˤΤϡ¿ʬиΤʤãʤȻפޤ

ƥӤǼպ񸫤Ƥ򸫤ޤľ˼ʬεƤ褦˸ޤ ºݤο˾ϸ褦Ǥ


ˤƤ500ȤΤϡʤƱãưƤΤʤȤפäƤޤäꤷޤʤ󤫲Ǥ⤤оݤõƤͤʤǤ礦 
 
Ǥ⡢θλ21Ȥι⹻Ϥʤ路ߤǤ͡⤷顢⹻Ĥθդդ˻ɷˤʤäΤʡʤƻפäꡣºݤʤȸ줿ܿͤϡָ֤ƤפȻפΤǤ硣ȻפޤϷ褷ưȤǤϤʤȻפޤ

֥֥פʤƸΤǤ礦 ʤȤ⤢δĤϷ褷ϤƤʤȻפޤפȹĤꡢˡ֤ʤȸƤ뤾֤Ƥ졪פȷ夷äݤɤΤˡ
 
餱⹻ϵդ꤬äΤ⤷ʤ 

Ǿ򿩤 ǯ֤ΥҥåȺ

޽ۤԵ̣ʥȥ˼椫ƼڤƤߤޤ
ʤΤǡԤΤۤκʤΤޤ

ɤǤƻפäΤϡ򤤺ʤȤΤϤäѤоʪߤ̥ŪʤʡäƤȡκʤо줹ϡʤ󤫡餬ϤʤȤ̥ŪƤʤȸȤˤǤʤ¾оʪ⡢Ǥ⤫á Ƥ̥ۤϤʤȡ꡼ŸɤޤƤФޤɤäΤǤ̤˶äŸ櫓Ǥʤ

AmazonΥӥ塼ǤߤʹɾäΤǤ

ȥǾ򿩤
//Artist ů
, 1,890 ޥޥ
ɾ
 2010-03-25

ơʡBOOKץǡ١ˡ

֤Τޤֱ𤫤鵢줿ֲͥҡסιɤƽסٻȿ¤㿩˴ԡѳФᤫ줿ˡߤݺԡƥλǦᡣơĤͺܾסϤԤΰƮ̤̻ͭͤȯФؤȤĤʤäƤʪζݤѤΥΥ롦ߥƥ꡼

ά (BOOKԾҲפ)

ů 1959ǯ216ޤ졣㡼ʥꥹȡƴɾȤȤƤư(ܥǡϤνҤԤ줿˷ǺܤƤΤǤ)

ActiveRecord ֥ơ֥ѤΥ

⤤Ĥ˺ƤޤΤǤ
ȤСȤ֥ӥ
Member :
Article : ֥
ȤĤΥǥ뤬ꡢ
ˤǤеȤ˲ϢդơεΡɼԡפȤǥǡȻפäϡ֥ơ֥ѤȻפΤǤRailsξϤʴǤޤ
 
֥ơ֥ΥǥȤơArticlesMember ǥޤ
̤̾Ϥ줸ʤƤ⤤ΤǤRailsε˽äƤޤ
 
ŪˤĤMemberArticleID֥ơ֥Ǥ
֥ơ֥Τ˿ǥɬפΤ Ȼפ⤷ޤ󤬡㤨СФɼԤɾʤ褯ޡߤʥġˤȤ¾°ʤ륱褯ȻפޤȤäѤǥȤƻΤȻפޤ
 
줾Υǥ¿ʬʴ
has_manythroughȤޤ 
# ɼԤϲȵ°Ƥ
class ArticlesMember < ActiveRecord
  belongs_to :member
  belongs_to :article
end

#֥ơ֥ readers(Readerǥ)̤ɼԤˤʤäƤ뵭(ArticleǥˤäƤ
class Member < ActiveRecord
  has_many :articles_members
  has_many :articles, :through => :articles_members, 
end

# Ʊ ֥ơ֥ articles_members(ArticlesMemberǥ̤Ʋǡ(MemberǥˤäƤ
class Article < ActiveRecord
  has_many :articles_members
  has_many :members, :through => :articles_members
end
Ǵñ˵ǡɼԤȤƤβ˥ޤ ʴ
# Ȥ뵭ɼԤΥե͡ɽ
article = Article.find(1)
article.members.each do |member|
  p "εɼԤ #{member.full_name} Ǥ"
end
article.members Ȥ̾ɼԾ˥Ƥޤñɼ==Memberǥ顢members Ȥ̾ˤʤäƤǤ äľŪ readers(ɼԤʤ)Ȥϡ source ץѤOKǤ
class Article < ActiveRecord
  has_many :articles_members
  has_many :readers, :through => :articles_members, :source => :member
end

#ȡƱ褦ˡ

article = Article.find(1)
article.readers.each do |reader|
  p "εɼԤ #{reader.full_name} Ǥ"
end
ʴˤʤޤ
⤦˺ʤǤ硣 

Dz 㡼åۡॺ ѤƤޤ

ޤɤܤǺǹκʤ٤ȸ줿顢ϤʤʤФޤ󤬡Ǥ⡢ַ֤ɤʤʤ顢¨ǥ㡼åۡॺޤ
ʸ빽ܥܥˤʤۤɤǤޤ
Ȥ櫓ǡ㡼åۡॺ繥ʹ֤ȤƤϡαDz򸫤ʤ櫓ˤϹԤޤ
Ѥ˹ԤäƤޤ

ۡॺȥȥδطȤϤʤۤʤäƤơä˥ۡॺϡ빽ʥʹ֤ߤƤޤ 
Ǥ⡢줬դ˿򤫤äǤ
ʥ㡼åϤɤפΤΤޤ󤬡ϳڤޤ
1˹Τˡ2󤷤ʤʤȤʤο͵֤Ǥ
饹Ȥ쥹ȥ졼ɷ⡢֤֡á ʤǤ⸶̵뤷פȤפäΤǤǤϤʤۤäȤޤ
ǸΥХϡäˤϤ桼ΤǤ͡
ȤˤѳڤDzǤ
 

PHPͳȤȤ

ȤAttacking PHPȸˤäPHPͳΥꥹȤޤĤȤ椭ҤΤǤ
  • ʤΤfalseäꤹ뤻ǡӱ黻ҡ===פɬ
  • hashlistobject̤Ǥʤ
  • ֥ȻظǽƤ
  • lambda(̵̾ؿ)ʤcreate_functionlambdaʤ
  • short_open_tagssafe_moderegister_globalsonˤʤäƤ뤫⤷ʤ
  • Τʤ̾(str_replace,strlen,parse_strȤ)
  • ν֤狼ˤ(in_arrayȤstrposȤ)
  • strpos('abcd','a')0֤0ϵǤ
  • PHPǽ񤫤줿Υץ꤬뤬ɤHTMLȥåʬΥƤʤ()
  • PHPϽ鿴Ԥ˳ؤӤ䤹פȸ롣Τˤ⤷ʤ ǤɤSQL󥸥XSSȼ顢 Ҥɤɤ֤Ƥ뤳Ȥ
  • Х롣Ȥ󤸤ʤäƤС


ϰڻȤޤ󤬡ŻǣۤPHPäȤޤ2ǯ餤äʤ˽񤤤ƤؤɤΤȤ´ޤ
ĿŪˤϡ
ѿ̾ˤĤʤФʤʤ
Х.(ɥå)ǤϤʤ ->
ȤΤݤʤȴޤ
ɽ񤤤ƤȤä夦Shift򲡤ʤФʤʤʤޤ٤ʤȤǤΤäƿͤˤäƤϰճȥȥ쥹ˤʤޤޤñ˻ιǤ

Ǥ⡢ŦƤ褦˴ؿ̾˰ʤΤˤϤۤȤˤ󤶤ꤷޤ ν֤ʤ줵Ƥʤơ٥إפdzǧϤˤʤޤ
ˡʤ󤫤Ϲߤդޤ̿̾§ʤɤ˰̵ȤΤϡȤƽäƤ롣äƥץȤäƤεĤƽ񤯤ΤˡοθΥ饤֥꤬ʤ󤸤㡣
äƤ֤⤦,θ졢ܤʡפȲ٤פޤ

ۡ [DVD] ...Ĥޤʤ

ԤϤǤƤ̵褦
׷Υ饹ȡʤƸäƤ뤫ԤΤˡʤȤ
ۼϿ=RevelationϳΤˡ˽פäự⤢ޤ˽äƤȤʤΡ
ä׷Ǥ
ᤷޤ

ȥۡ [DVD]
//Artistʥ
, 3,990 ߥ塼եȥ󥿥ƥ
ɾ
 2010-03-20

ƾҲ

ޤĤθȤΤʤǥƥåڥ󥹡顼!Τ“ߤ”Ӥ˿ޤϢ³ͻԤġ׷Υ饹!!ڥȡ꡼ۺʤλ塢ͤ©ҤȤ˵ΥǤƤޤäΥ֥쥺बôҤȤĤλϡͽˤۼϿλ͵ΤʤäȻפϢ³ͤȯŸ롦ܺʤˤĤ졢줾λˤϥåƤ뤳Ȥͤߤ롣“͵”“̵ط4ͤﳲ”“줾λ˱Ƥˤ̩”Ƹ˻Ĥ줿“Come and See”ʸơԤӤˡϤ붦⤫Ӿ夬餻Τä…ŵۡͽ(ơܥС):ʥ:ޥ롦٥

ơʡ֥ͥ޽ҡץǡ١ˡ

󡦥ĥĴ񻦿Ȥ餸ڥ󥹥顼COME AND SEE(褿)פȤåĤ줿Ϣ³ͻ郎ȯΥ֥쥹ϻ郎ϥͤۼϿˤʤ館ȺȸȴΤ…

ȥӥ塼~ǥ

ϸΥǥ̿Ǥ
פ֤İƤߤޤ
ϡɥåˤ˻Ĥ̾פǤ
ǤQueen2ܤʤޤ
ǥڴȤƤΥ¸ʬ̣廊ޤ
ץ˥󥰤Ǥ륪դΡ֥ߥʡ֥顼ʡפ "I Don't Know' ؤήϸȤ褦ޤ
֥ߥ꡼פ֥٥졼פΥĻȩΤǤǤʤ˶ʳΤϤʤ⤷ʤƥ˥åʤƥǥˤä褫äİƤ⤫äɡ
ƥ˥åʤʾΥꥹȤϤǤ⤤ޤʾ˥ǥǶʳƤ륮ꥹȤˤ̤в񤨤ޤ
Եʤ󤫾ʤСȻפäͤɤۤɤȤ
ǿͤưŷͤȻפޤ

䤬äƤΤϡ178ǯ餤CDǡޥפФƤ뤽ʤΤǡʸƤޤޤ

ȥȥӥ塼~ǥ
//Artistܡ
, 1,785 ˡߥ塼åѥ󥤥󥿡ʥʥ
ɾ
 1992-03-19

[Disc 1]
1. ɥȡΥ
2. 쥤ȥ쥤
3. ӥ꡼С
4. ߥ꡼(ֿ)
5. ե饤󥰡ϥ
6. 쥤(ŷۼ)(ޥ)
7. ƥ롦(ʥ)(ɥࡦ)
8. ɡ塼()
9. 󡦥ޥ
10. ɥ󡦥֡쥤
11. ѥΥ
12. åХȥޥ
13. Ρܡ󡦥ࡼӡ
14. ǥ(ǥȡƥ)

ơʡCD㡼ʥץǡ١ˡ

ܡΥǥ롦ޥ꡼1ơǥһεŤʥ饤ХǤפϡեΤ˥꡼٥ȥ顼ʡ

Album Details

Limited Edition Japanese pressing of this album comes housed in a miniature LP sleeve. 2007.

RailsǥͥȤǥformȤ: fields_for, accepts_nested_attributes_for

⡢ɤä ȤʤäƤޤĤ˺ƤޤΤǡ񤤤Ȥ

RailsǤ form_for ӥ塼إѡѤСΥǥHTMLեǤȡPOST줿ǡǥ˳ڤˤʤޤ
 
def create_member
  m = Member.create(
    :email => params[:email], 
    :job => params[:job], 
    :sex => params[:sex])
end
ʽ
def create_member
  m = Member.create(params[:member])
end
ǺѤǤޤޤ
ޤޤǤ̤ʤΤǤ㤨Memberν̤ΥǥƤϤɤä ȸ¿ͭꡢ˺ƤΤĴľƤޤ

ޤǥ accepts_nested_attributes ޤ
ʤȥͥȤ°äƤʤ褦ǤξMemberǥ뤬AddressǥäƤΤǡMemberǥ륯饹
accepts_nested_attributes_for :address, :allow_destroy => true
ơ
ӥ塼ϡ
<% form_for @member do |f| %>
  email: <%= f.text_field :email %> <br/>
  job: <%= f.text_field :job %> <br/>
  sex: <%= f.text_field :sex %>
  <!-- ͥȤ -->
  <% f.fields_for :address do |f2| %>
    ƻܸ: <%= f2.text_fieldf :prefecture %>
    Į¼: <%= f2.tet_field :city %>
    .....ʴ
  <% end %>
<% end %>
fields_for Ȥɤ櫓Ǥ͡

ΤʤȤϡform_forϻѤˡեɽ񤤤ơȥ顼ǤĤꤷƤޤ
 

̴򤫤ʤ륾

ᥬΥޥåλҤ˶ɤǤߤޤ
ʷȯľɤ൤ʤΤǤκʤΤ褦ʪ졢ߥʷɤƤޤޤ
ݡĥ֤ǡž֤ʤɤǤΤǤ餬ˤ䤱ƤΤޤΤѤǤ

Amazonɾ򸫤ƤߤȡĤޤʤȴΤϡʤӥͥȤʷȯɤǤ͡򥪥⥷ȻפͤϡʤΤΤɤޤʤ͡Τ褦Ǥ

ȥ̴򤫤ʤ륾
//Artist
, 1,680 Ļ
ɾ
 2010-03-15

ƾҲ

̴򤫤ʤ륾ԥȡˡ§ɤǤͤʤΤϤʤ?ˤϤʤ¿ˡ§񡢥ӥͥ񤬤դƤΤˡԤȤäʹȤޤ󡣤ʤ? äȴƤǤƤεФ1ĤβѰդΤܽǤ͸ϡֿѤ褦פȤƲϤ뤱˷˽äƤޤ꡼ޥ󡣤ܤ˥λѤ򤷤̯ʪޤ֥͡פȤ̾ġɤäƤοͤϡ͸βȤ˥ˡȤȤƽߤĤ򤷤ƤϿ֤󡢻˾ǰΥ󥿡(վ)Ǥ礦͡Ϥޤ鼫ʬФñʲꤵʤƤСϳμ¤롽ꤦ̤Υ꡼ޥȤͥ͡㡣ͤ뤿ˤϤɤ餤?ס֤⤽Ȥ?׼ʷȯΥᥤơޤ򡢽ȤϾä(Ū˸ȡͤǤ)ǿƤޤإ뵻ѡ٤衦ܤôDVDزʾʤܤ餻٤Ǥռ־ФƥˤʤפȤ򤵤˿᤿ܤ˻ž夬äȻפޤɤǤߤƤ

ơʡBOOKץǡ١ˡ

֤ʤΤޤޤ2000%Ǥؤǡץʥ꡼ޥ줿ۤ륾λѤ򤷤“͡”뤿˶줿ȤϡַߤפȤ֥ӥˤ⤹פȤ̣ʤΤФ…٥ȥ顼إ뵻ѡ٤Ԥ£롢ȾФΥե󥿥⡣

ץե

Ȥ

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

QR
QR
  • 饤֥ɥ֥