「PUSH」を含む日記 RSS

はてなキーワード: PUSHとは

2011-12-15

Critical Thinking: Film Critics Across the Country Name Their Top Movies and Actors

"The Artist"? "The Descendants"? "Hugo"? There was no critical consensus following a day of intense voting yesterday when a gaggle of critics groups voted their top honors. These included the Los Angeles Film Critics Association (LAFCA), the Boston Society of Film Critics (BSFC), and the New York Film Critics Online (NYFCO), as well as critics in San Francisco, Detroit and Indiana. The American Film Institute also announced its annual top 10, typically taking no risks.

Best Picture: "The Descendants" got a strong push with a win at the LAFCA, but "The Artist" took the top prize at the BSFC and the NYFCO. Both titles will make the final Academy shortlist. Fortified by nominations for their respective directors Martin Scorsese and Terrence Malick, "Hugo" and "The Tree of Life" should get nominations. The critics groups didn't get "The Help," any more than "The Blind Side," but the Civic Rights-era drama did make the American Film Institute top ten this year, so don't discount it yet.

Best Actor: Michael Fassbender is coming up fast with an LAFCA win. Why should we care about that group in particular? They're on a six-year roll predicting the Oscar winner for Best Actor. Brad Pitt's also a contender for "Moneyball," getting an art-house bump from "The Tree of Life," with Gary Oldman coming up on the outside thanks to the critical and box-office success of "Tinker, Tailor, Soldier, Spy" and a nod from the San Francisco Film Critics. How about George Clooney for "The Descendants"? He's still in the race, but not at the forefront. Like going for long shots? Then bet Michael Shannon for "Take Shelter," which won NYFCO. And if there's a sweep for "The Artist," add in Jean Dujardin.

Best Actress: Michelle Williams of "My Week With Marilyn," solidifies her spot with a win at the Boston Film Critics Association. Los Angeles went way out for Yung-Jun Hee in "Poetry" (what?) in their 'we're cool and uncorrupted by the Oscar race' vote. NYFCO went classic with Meryl Streep for "The Iron Lady." She's the Streep, but neither she nor Williams will be helped by an apparent lack of enthusiasm for their moves as a whole. Ditto Viola Davis ("The Help"), who will nonetheless make the top five Oscar nominees. Either SF winner Tilda Swinton ("We Need to Talk About Kevin") or multiple-runner-up Kirsten Dunst ("Melancholia") may slip in or come in sixth or seventh. Keep an eye out for Charlize Theron ("Young Adult"), Elizabeth Olsen ("Martha Marcy May Marlene") and Felicity Jones ("Like Crazy) as wild-card entries.

Best Supporting Actor: This is a two-man race between octogenarian Christopher Plummer and Albert Brooks playing against type as a cold-blooded hands-on killer. On the fringes: Patton Oswalt ("Young Adult"), Kenneth Branagh ("My Week with Marilyn") and Andy Serkis ("Rise of the Planet of the Apes").

Best Supporting Actress: Coming up on the inside is Melissa McCarthy for "Bridesmaids." Hurray for comedy! Bolstered by a best ensemble award from the LAFCA, this may push McCarthy into the five Oscar nominees. The LAFCA got behind Jessica Chastain, the NYFCO Breakthrough Performer, who was in every movie from "The Tree of Life" to "The Help," where she'll be competing against her popular co-star Octavia Spencer. The San Francisco critics supported Vanessa Redgrave for "Coriolanus," and Janet McTeer ("Albert Nobbs") was an LAFCA runner up in the category.

Who's out of the running in these five major categories? The Girl With the Dragon Tattoo, War Horse, J. Edgar and Midnight in Paris all underwhelmed. The X-Factor remains Scott Rudin's buzzy "Extremely Loud and Incredibly Close," which has not been screened widely after the New Yorker's David Denby flagrantly broke embargo on Rudin's other major film, "The Girl with the Dragon Tattoo." Pack the Kleenex box for this one.

http://www.chargerbatteryshop.co.uk/panasonic-cga-s002-digital-camera-battery-cbbs.html

http://www.gobatteryonline.com/canon-powershot-sd500-battery-charger-gose.html

http://www.keyboard-store.com/asus-04gncb1kusa4-laptop-keyboard.html

Critical Thinking: Film Critics Across the Country Name Their Top Movies and Actors

"The Artist"? "The Descendants"? "Hugo"? There was no critical consensus following a day of intense voting yesterday when a gaggle of critics groups voted their top honors. These included the Los Angeles Film Critics Association (LAFCA), the Boston Society of Film Critics (BSFC), and the New York Film Critics Online (NYFCO), as well as critics in San Francisco, Detroit and Indiana. The American Film Institute also announced its annual top 10, typically taking no risks.

Best Picture: "The Descendants" got a strong push with a win at the LAFCA, but "The Artist" took the top prize at the BSFC and the NYFCO. Both titles will make the final Academy shortlist. Fortified by nominations for their respective directors Martin Scorsese and Terrence Malick, "Hugo" and "The Tree of Life" should get nominations. The critics groups didn't get "The Help," any more than "The Blind Side," but the Civic Rights-era drama did make the American Film Institute top ten this year, so don't discount it yet.

Best Actor: Michael Fassbender is coming up fast with an LAFCA win. Why should we care about that group in particular? They're on a six-year roll predicting the Oscar winner for Best Actor. Brad Pitt's also a contender for "Moneyball," getting an art-house bump from "The Tree of Life," with Gary Oldman coming up on the outside thanks to the critical and box-office success of "Tinker, Tailor, Soldier, Spy" and a nod from the San Francisco Film Critics. How about George Clooney for "The Descendants"? He's still in the race, but not at the forefront. Like going for long shots? Then bet Michael Shannon for "Take Shelter," which won NYFCO. And if there's a sweep for "The Artist," add in Jean Dujardin.

Best Actress: Michelle Williams of "My Week With Marilyn," solidifies her spot with a win at the Boston Film Critics Association. Los Angeles went way out for Yung-Jun Hee in "Poetry" (what?) in their 'we're cool and uncorrupted by the Oscar race' vote. NYFCO went classic with Meryl Streep for "The Iron Lady." She's the Streep, but neither she nor Williams will be helped by an apparent lack of enthusiasm for their moves as a whole. Ditto Viola Davis ("The Help"), who will nonetheless make the top five Oscar nominees. Either SF winner Tilda Swinton ("We Need to Talk About Kevin") or multiple-runner-up Kirsten Dunst ("Melancholia") may slip in or come in sixth or seventh. Keep an eye out for Charlize Theron ("Young Adult"), Elizabeth Olsen ("Martha Marcy May Marlene") and Felicity Jones ("Like Crazy) as wild-card entries.

Best Supporting Actor: This is a two-man race between octogenarian Christopher Plummer and Albert Brooks playing against type as a cold-blooded hands-on killer. On the fringes: Patton Oswalt ("Young Adult"), Kenneth Branagh ("My Week with Marilyn") and Andy Serkis ("Rise of the Planet of the Apes").

Best Supporting Actress: Coming up on the inside is Melissa McCarthy for "Bridesmaids." Hurray for comedy! Bolstered by a best ensemble award from the LAFCA, this may push McCarthy into the five Oscar nominees. The LAFCA got behind Jessica Chastain, the NYFCO Breakthrough Performer, who was in every movie from "The Tree of Life" to "The Help," where she'll be competing against her popular co-star Octavia Spencer. The San Francisco critics supported Vanessa Redgrave for "Coriolanus," and Janet McTeer ("Albert Nobbs") was an LAFCA runner up in the category.

Who's out of the running in these five major categories? The Girl With the Dragon Tattoo, War Horse, J. Edgar and Midnight in Paris all underwhelmed. The X-Factor remains Scott Rudin's buzzy "Extremely Loud and Incredibly Close," which has not been screened widely after the New Yorker's David Denby flagrantly broke embargo on Rudin's other major film, "The Girl with the Dragon Tattoo." Pack the Kleenex box for this one.

http://www.chargerbatteryshop.co.uk/panasonic-cga-s002-digital-camera-battery-cbbs.html

http://www.gobatteryonline.com/canon-powershot-sd500-battery-charger-gose.html

http://www.keyboard-store.com/asus-04gncb1kusa4-laptop-keyboard.html

2011-09-05

ももいろクローバーZに私がハマる理由(わけ)関連サイトまとめ

はじめに

友人にももいろクローバーZの魅力を伝える為に関連サイトをまとめました。

これを見てただのアイドルじゃないぞっていうのが伝われば嬉しい。

動画はいつ削除されてもおかしくないので早めに見ましょう。



プロフィール

ももいろクローバーZ - Wikipedia

http://bit.ly/gCbDql


まずは基本。


ミュージックビデオ

YouTube Mix for ももいろクローバー

http://bit.ly/pZw0A4


今までのシングルカップリングなど色々。前山田健一作曲の「行くぜっ!怪盗少女」はオリコンデイリーランキング最高位1位。


ライブ

2010年8月8日TOKYO IDOL FESTIVAL 2010

その1:http://www.youtube.com/watch?v=wVK21Dmvepo

その2:http://www.youtube.com/watch?v=cHn13XmkVc4

その3:http://www.youtube.com/watch?v=rDYX5EFEOq4

その4:http://www.youtube.com/watch?v=ByGER29TBS0

その5:http://www.youtube.com/watch?v=G0-gDmvpUCQ

その6:http://www.youtube.com/watch?v=hq_o-W9bAbg


ここらへんからアイドル戦国時代の中で、一気に抜け出した感じ。

2011年2月25日ももクロとかまってちゃん

ニコニコ動画http://www.nicovideo.jp/watch/sm13710143

その1:http://www.youtube.com/watch?v=sqZ_w8-UeIg

その2:http://www.youtube.com/watch?v=H_F6y6iZvuQ

その3:http://www.youtube.com/watch?v=Kh_-_XP-oIM

その4:http://www.youtube.com/watch?v=v37Sk-DhuCI

その5:http://www.youtube.com/watch?v=0PJJRV3A2_o

その6:http://www.youtube.com/watch?v=H1ecvZxXHas

その7:http://www.youtube.com/watch?v=YMwVCxOxHSA


神聖かまってちゃんとの対バンライブ。オープニングからMCなどの休憩を一切挟まず、7曲連続で歌ってます。飛ばしたりせずに見て欲しい。彼女達がいかに凄いかわかるはず。

2011年4月10日中野サンプラザ大会 ももクロ春の一大事 ~眩しさの中に君がいた~

その1:削除済み

その2:http://www.youtube.com/watch?v=96Yyl0AN6n4

その3:http://www.youtube.com/watch?v=r0PzcQpdhz8

その4:http://www.youtube.com/watch?v=MnojR1ergrs

その5:http://www.youtube.com/watch?v=OY-2IkgMv5g

その6:http://www.youtube.com/watch?v=fD57RUnOZ44

その7:http://www.youtube.com/watch?v=jXjhQWCuTfk


早見あかり卒業ライブバナナマン設楽いわく、"ショーシャンクの空に"や"ライフイズビューティフル"を超えた感動。


バラエティ

ゴッドタン

・照れカワ芸人更生プログラム

その1:http://dai.ly/jT90gs

その2:http://dai.ly/mdWieC

その3:http://dai.ly/iqVGbs


矢作に腹かかえて笑ったwww歌う前から盛り上がんない事考えるバカいるかよっ!!

バナナマンのブログ刑事

・結束力バトル

その1:http://www.youtube.com/watch?v=n27grLdP5ok

その2:http://www.youtube.com/watch?v=W0dhhPl3QuY



萌え萌え更正プラン

その1:http://www.youtube.com/watch?v=5-SfqbY9E7Q

その2:http://www.youtube.com/watch?v=G6G-Cn-dUeA


うなぎパイ女王様w

ダウンタウンDX

http://www.youtube.com/watch?v=OEh30MKwaJU


ダウンタウンのフォローの上手さ

Mujack

その1:http://www.youtube.com/watch?v=LrjhqGyktUo

その2:http://www.youtube.com/watch?v=puCh6lT6AtM


たかみな×ももクロ

▽さきっちょ

その1:http://www.youtube.com/watch?v=6-fgTYuHA8w

その2:http://dai.ly/nXKyhk


設楽との絡みは安心して見れる

コサキンDEラジオ!

http://www.youtube.com/watch?v=etAiDirf6Zo


小堺さんも関根さんも優しい。やっぱりZは納得いっていなかったんだなw

▽別冊ももクロchan

http://dai.ly/pkK9SN


ドッキリやライブの裏顔など素顔に近い彼女達が見れます

▽momocloTV

http://www.ustream.tv/channel/momoclotv


USTREAMで公開されているネット限定動画です生放送です過去動画も見れます。かなことペヤではライブの裏話や感想などをたくさん話してくれているのでファンは必見。


ラジオ

山里亮太の不毛な議論

・輝け!2010年不毛な議論ベスト10!

その1:http://www.youtube.com/watch?v=nh9T2GUZqXU

その2:http://www.youtube.com/watch?v=vnAxED1YGmA



早見あかりももクロ脱退を熱く語る!

http://www.youtube.com/watch?v=14H-3uypkzw



早見あかり卒業直前スペシャル

その1:http://www.youtube.com/watch?v=HYP4T-6U4No

その2:http://www.youtube.com/watch?v=8R3rLtdGeTI

その3:http://www.youtube.com/watch?v=K5FE6gaNHRw

その4:http://www.youtube.com/watch?v=rDSHKJuwFss

その5:http://www.youtube.com/watch?v=8l2Wsn-SEwA



山里亮太 × ヒャダイン ももクロについて語る

http://www.youtube.com/watch?v=cK-z4z-BVE8



山里亮太が語るももクロZeppTokyo 7/3ドキュメント

http://www.youtube.com/watch?v=T98TVwewU0c


卒業直前スペシャルではメンバー号泣

バナナマンバナナムーンGOLD

その1:http://www.youtube.com/watch?v=a5rERFnen_w

その2:http://www.youtube.com/watch?v=Zao8bWjbhy8

その3:http://www.youtube.com/watch?v=7GhHZLajHgM

その4:http://www.youtube.com/watch?v=DHbUaKVJb2U

その5:http://www.youtube.com/watch?v=fwFtBip12ls

その6:http://www.youtube.com/watch?v=xZoQ5aK3c1s


Z伝説のヒムペキバージョン最高wwww

爆笑問題の日曜サンデー

その1:http://www.youtube.com/watch?v=ScxoWi8I28c

その2:http://www.youtube.com/watch?v=20_3elvsVu4

その3:http://www.youtube.com/watch?v=Lr9euldYq-4


爆笑問題も大絶賛


その他おすすめ動画

ももいろクローバーに全く興味がない人も応援したくなっちゃ動画

http://www.youtube.com/watch?v=TmCnKVcY2GY



▽曲途中でPA故障・・オケなしでも歌い切る ももクロ

http://www.nicovideo.jp/watch/sm15231608



ももクロ本人が「Chai Maxx」踊ってみた。

http://www.youtube.com/watch?v=uLMmqpTtPIA



キングオブコメディももいろクローバーZ を語る

http://www.youtube.com/watch?v=CKO50QBvTBE



オケなしで歌っている動画はめちゃくちゃ好感度高いです


ももクロ関連おすすめエントリー

にわかファン自分が、ももクロの魅力を全力で紹介してみる。

http://d.hatena.ne.jp/karatedou/20110516#p1



ももクロ入門しませんか?「ももいろクローバースターターキット」をまとめました

http://d.hatena.ne.jp/antipop/20110830/1314725165



ももいろクローバーアイドル戦国時代

http://d.hatena.ne.jp/hurricanemixer/20110831/p1



ももいろクローバーZにハマっている件について

http://d.hatena.ne.jp/sugyan/20110808/1312732845



AKBファンですが、正直ももクロに圧倒されました

http://blog.livedoor.jp/insidears/archives/52437593.html



ナタリー - [Power Push] ももいろクローバー

http://natalie.mu/music/pp/momoclo



ここまで見ればなぜももクロが今アイドル界に旋風を巻き起こしているのかなんとなくわかるはず。
ファンのノリも日本一。あーりんわっしょい。

2011-08-21

http://anond.hatelabo.jp/20110821200835

不意打ちでいろんな要素が出てくるのは何も韓流だけじゃない。

おれはアメリカぎらいなんだが、

不意打ちでアメリカアーティスト流行ファッションやその他いろんな要素が流れる。

はっきり言ってアメリカ映画ドラマなんか韓流よりも流れてるぞ。

テレ東なんかマジでひどい。

だけどそんなのいちいち叩いてたってキリがないだろ。

一体何度デモ行進しなきゃならん?

HIPHOPなんか聴きたくないぞー!」ってね。

仕方ないんだよ、テレビってのはpush型のメディアなんだから

いかい、テレビ自分が気に入る番組ばかり流れるわけじゃないんだ。

自分の好きな情報だけ流れるに違いないってのは幻想なんだよ。

そんな幻想をとっとと捨てちまえ。

チャンネルを変える勇気

テレビを消す勇気

そう、ちょっと勇気を出せば明日からテレビなんて必要ないさ。

叶わない幻想いつまでも追っかけてるんじゃない。

自分で「変わる」んだよ。

キミ自身が変わらなきゃ!

2011-07-27

古い手紙

僕が死ぬ死ぬ病を発病していた頃に書いた手紙アウトライン

- [ ] I don't feel angry and hate.

- [ ] I still cry, worry and sad. That is ok. Life is not that simple to anybody

- [ ] What I really want is for you to be happy.

- [ ] I still want to disappear sometimes because I can't imagine I can be happy without you. You changed my life definition of happiness.

- [ ] this line needs to be considered

- [ ] But I always could not do it. There are too many people around me to do that.

- [ ] this line is not good.

- [ ] So I'm very lucky that I got a lot of friends and words that I need at the moment I need. I was thinking in a different way sometimes. But now I can see I am very lucky.

- [ ] You changed me a lot. There's a lot of things i know in my mind. You gave me a chance to make that happen.

日付は 2008 年 4月になってる。

2011-05-31

いい年した社会人が弁えなければいけない仕事ネットを使うルール

http://anond.hatelabo.jp/20110531102025

増田を読んで、少々気になったので俺ルールをここに開陳することにする。

メールは内容の確認のためだけに使え

基本、社会人毎日山ほどメールを読み、山ほどメールを廃棄している。なので、よほど緊急性のある内容でない限り、メールの内容により行動の優先順位が変わることはない。

お前が送ったメールはその人に対しての命令文ではない。

メールそのものは回覧板程度の意味合いしか持たない。メールクリティカルな連絡手段である人間はまずいない。

あくまで、お互いの言質を取る為の手段としてのみメールは使用しよう。

メールPOP型のメディアメディアにはPUSH型とPOP型のものが存在する。POP型のメディアは書類管理PUSH型のメディアは司令に使う。メールだけでは連絡は完結しない。

メールした電話しろ

メールを読むプライオリティが来た順番ではなく、タイトル重要そうな順であるのは最初に述べた通り。そしてそのプライオリティメールを読む人間が決める。

なので、優先すべき事項があるなら外部から強制的にそのプライオリティを変更しなくてはいけない。そのために使用するのがPUSH型のメディアである

PUSH型のメディア電話がそうであるように、逐次処理しなければ次の情報へと遷移しない仕組みになっているのでYES/NOの返事を取得するのに向いている。

メールを読ませるため、メールの内容を確認したかを確認するため、メールの内容の返答を得るため。必要に応じた回数電話しよう。

電話番号の記載が無い? なら、メールの末尾に自分の連絡先を記載し、「○日17:00までに連絡を下さい」と付記すること。

これで、最悪でも「1か月放置された」事態は防げる。

打ち合わせはSkypeなどのメッセンジャーを活用しろ

仕事の受発注に関しては電話メールを併用するのが基本だと述べたが、然し其れでは集中的に情報をやり取りするには不向きである

そういった場合には本質的には顔を突き合わせての打ち合わせを実施するべきであるが、それが出来ない場合Skypeなどのメッセンジャーの利用を考慮に入れよ。

Skypeといっても別にカメラ越しにビデオチャットしろと言っているのではない。ログが残るチャットをするのだ。

多くのメッセンジャーは履歴機能が充実しており、3か月前の発言でも探せば履歴を辿れる。

メールよりは記録性が低いメディアではあるが、喧々囂々とした議論で纏めるために複数人を交えたチャットは有用である

twitterfacebookは基本公開されている情報。フックにのみ使え

twitterなどのソーシャルメディアでは、常に名前のない匿名集団anonymousが非匿名ビジネスマンの失態を狙っている。

失態ではなくても、実態を探ろうとする動きが潰えることはない。彼らの活動はtogetter等で頻繁に目撃することができる。

彼らに目をつけられ、中途半端に追われてしまうと対処が面倒である。よって、顕名で活動する限りにおいては活動の主戦場としてtwitterを利用することは避けたい。

普段は「ご飯食った」とか「おっぱいぷるんぷるん」とかを呟くにとどめ、お仕事の依頼はmail@xxx.xxx.comまでといった様に情報の一部を晒すに留めておこう。

ネットを積極的に活用するのならば、早々に「メールが使えればおk」という考えを捨てるべきなのである。以上。

2011-05-15

そろそろNexus SiPhone4について語っておくか…

この記事(http://www.drk7.jp/MT/archives/001769.html)が話題になっているので、自分も書いてみます。まずは自分属性

自分の結論は、圧倒的な差でNexus Sの勝ちです

そもそもNexusSは国内で販売されてないので、NexusSとiPhone4のどちらがイイですか?と人に聞かれることは全くないですが、

NexusSの方が圧倒的によいと"私は思う"と(もし聞かれたら)答えます。今後の機種変も間違いなくGalaxy S2、3?、と買い続け

ていくと思います。一方で別の技術はもうわかったのでiPhone4は手放そうと思っており、iPhone5が出たら誰かに触らせてもらい

たいです。※NexusSは技適未通過端末なので、帰国前の使用感レポとなります


体感速度、OSの安定度、充電池、カメラ性能、電波

元記事に異論なし。音質は音楽聞かないから知らない。AndroidiPhoneよりもっさりしてるし、落ちるし、電池減る。

画面

Nexus S解像度WVGA(800x480)とiPhone4(960x640)より劣るのに、画面自体が大きい分広く感じる。Nexus Sは4インチiPhone4

は3.5インチで、だいぶミスタイプが減った。Xperia arcは4.2インチなので確かに大きすぎるかも。Nexus Sはちょうど良い。

アプリマーケット

だいたい元記事通り。ランキングサイトを見て色々試すのが自分楽しいiPhoneスクエニゲーム買ったけど、結局スマホ

ゲームなんてやりにくいし放置ゲーム3DSPSPで良い。


で、大事なのはここから!速度・安定・電池を差し引いても自分Androidを選ぶ理由。



Androidアプリの良いところは、アプリ間の連携シームレスなところ。写真とる→ギャラリー(iPhoneでいうアルバム)→共有から

直接twitterなどにうp、が可能。(http://www.gazo.cc/up/37699.jpg)iPhone写真とる→アルバムは移動出来るけど、うpする

には各アプリを立ち上げないといけない。ブラウザもメニュー→共有で、そのページを色んな方法でシェアできる。アプリ連携

すぎ。あとページ内検索とかも地味に便利。



他にも良いアプリとしてはIMESimeji。←→キーソーシャルIMEが便利すぎ。iPhoneだとiとiの間にカーソル合わせるとかほぼ

無理。ツイートする時に少し戻りたいとかもよくあるので、←→は不可欠ソーシャルIMEの効果は

(http://www.gazo.cc/up/37694.jpg)参照。スマホ数字・記号が混ざった入力だるいので助かる。



GoogleMapは拡大・縮小した時にコンパスが元に戻らないのが良い。(ブラウザにもついてる)- +ボタン便利。本来はマルチタッチ

対応端末用だけど、片手で縮小出来るのが十分便利。iPhoneだと縮小時に左手に持ち替えるとかよくやってた。他にマイマップ

とか様々なレイヤが重ねられる。Latitudeは友人0だから意味無いんだけど、mixiAndroidアプリ(上の画像の)みたいな感じで4sq

情報アイコン表示で重ねれたらと妄想すると夢が広がる。


インテント・戻る機能

iPhoneは他のアプリが起動すると投げっぱなしで戻れないし、1つのアプリ内でも戻れなくて迷子になることがよくある。

だいたい左上が「戻る」系ボタンがあることが多いけどそうでないアプリもあるし、左上とか遠くて画面を覆い隠してしまう。

今では「戻るボタンが無いなんて、ブラウザバック禁止でブラウザ見るぐらいストレスだろ…」と思っている。

通知機能

色んなアプリの新着がステータスバーに表示される通知機能が死ぬほど便利。twitterにおける通知(とウィジェット)の良さはこ

れ(http://ran.private.coocan.jp/omusubi/log/2010/12/android-twicca-beta.html)あたりを参照。iPhoneにもPush通知はあるけ

どすぐ見なくて良いものを保留、とかが出来ない。強制的にアクティブになるのが鬱陶しいインテントと組み合わさると最強で

、こんなこと(http://www.gazo.cc/up/37695.jpg)が出来る。

ウィジェット

上のtwitterクライアントエントリでもあるようにウィジェットが便利で、ホームから色々設定変更が出来る。自分は家帰ったら

NoLockウィジェットロックオフしてすぐ操作出来るようにしてるし、布団でごろごろ使う時にはScreenFilterウィジェットで好

みの程度暗くする。あと計画停電があった時はホームに付箋メモ貼ってすぐ確認出来るようにしてた。この辺はiPhoneでもJBすれ

ば出来る範囲なのかな。

その他

他にもFLASHが動くとか、NFCがついてるとか、電源ボタンがサイドについてて使いやすいとか、丸っこくて可愛いとか、Macがなく

てもアプリ作れるとか、色々良いところはある。代わりに先に述べた体感速度、OSの安定度、充電池の悪さの他に、フォントが変

、そして日本で使えないという大きな欠点がある。


元々NexusSはAndroidアプリ開発用にと買っただけで、予想以上に気に入ってしまったのは誤算。久しぶりにiPhone使ったら「戻れ

ない」「←→ない」「通知ない」が死活問題だし、最近Softbank電波はさらに悪化したのか屋外ですら300~500Kbpsしか出てい

ないことも多く、人が多いと100Kbpsも出てない。(前は1Mbpsとか普通に出てたので、ここ最近何かあったのか、場所時間帯に

よるのか、Softbankユーザはぜひレポして欲しい


結論

"自分は" Nexus SiPhone4だが、我慢してiPhone4を使っている。iPhoneにはAndroidのようなワクワク感が無いのが残念だが、

カスタム面倒な人・初心者にはiPhoneを勧めているし、無難だとは思う。2.2か2.3以降のAndroidなら、用途や好みによってはオス

スメ。色々出来るから本当楽しいアプリアドオンで強化出来るとか感動したし!個人的には「iPhoneに貼る電子マネーシール

」「iPhoneでも音の組み合わせで決済」「iPhoneFlash」「iPhone赤外線」とかにエネルギー使うのは勿体無いので、より自由

Androidが普及して技術が発展すると良いと思っている。

余談

じゃあ何を使うべきか迷っている。Softbankは解約して本体売るつもり。回線docomoか、b-mobile+WiMaxか、auのEVO WiMax

(CDMA+WiMax)が良い気がしている。EVO WiMaxはかなり魅力的だけど、CDMA通信時の安定性が不安なのと、端末がHTC EVO一択にな

ってしまう。docomoの最新はXperia arcだけど、なんかぺりあってダサい感あるしGalaxy Sの方がNexus Sと似てて良さげ。ただ来

Galaxy S2が出るのに買う気にはなれない。


この記事(http://weekly.ascii.jp/elem/000/000/038/38214/)のように、SIMフリーの技適通過済みAndroid端末をデータ通信

みで使うのが安いし早いのは魅力。でもIDEOSは小さいしスペックが…

この辺(http://gpad.tv/phone/docomo-sc02c-samsung-galaxy-s2/)を見るに、Galaxy S2の発売とレポを待つのが良いと思うので

、たぶんそうする。本当はすぐにでも変えたいので辛い。

2011-03-21

http://anond.hatelabo.jp/20110320223445

21. 分散SCMを使え

なにはともあれまずはコミット

粒度だクソだはpushするときにかんがえろ

1コミットで合わせて全然関係ない別の場所を変更したおまえは死刑

2010-11-14

K-Pop動画まとめ (女性編)

少女時代 「Into The New World」

http://www.youtube.com/watch?v=V5Axa_j391s

少女時代少女時代

http://www.youtube.com/watch?v=oXwqHrL61NA

少女時代 「kissing you」

http://www.youtube.com/watch?v=tCTDXnrqdPg

少女時代 「Chocolate Love

http://www.youtube.com/watch?v=A2NkGHkqDZk

少女時代Genie

http://www.youtube.com/watch?v=6SwiSpudKWI

少女時代 「Oh!」

http://www.youtube.com/watch?v=TGbwL8kSpEk

少女時代 「Run Devil Run」

http://www.youtube.com/watch?v=MON0BrDxOuw

少女時代 「Gee」

http://www.youtube.com/watch?v=U7mPqycQ0tQ

少女時代 「Hoot」

http://www.youtube.com/watch?v=F4-SxcCO5d0

少女時代&Super JuniorSeoul Song」

http://www.youtube.com/watch?v=NLcjt916Qak

■f(x) 「NU ABO

http://www.youtube.com/watch?v=E8ZrPFMr_nY

■f(x) 「Chu」

http://www.youtube.com/watch?v=Cnz2n5VcV4

■f(x) 「Chocolate Love

http://www.youtube.com/watch?v=g9JzbG7FfkM

■f(x) 「LA chA TA

http://www.youtube.com/watch?v=H7MHZpSNJQc

2NE1「CAN'T NOBODY」

http://www.youtube.com/watch?v=Ihi_kJJj_8A

2NE1GO AWAY

http://www.youtube.com/watch?v=3yW13T2sfKg

2NE1LAP YOUR HANDS」

http://www.youtube.com/watch?v=ZTw-UM5Jy4E

2NE1「FOLLOW ME」

http://www.youtube.com/watch?v=0q62LBAbphk

2NE1「I DON'T CARE」

http://www.youtube.com/watch?v=zdZya6yATn0

2NE1FIRE (Street Ver.)」

http://www.youtube.com/watch?v=49AfuuRbgGo

2NE1FIRE (Space Ver.) 」

http://www.youtube.com/watch?v=I3tuZF1qizQ

■Girl's Day 「Nothing Lasts Forever」

http://www.youtube.com/watch?v=6nk7vZazdL8

Brown Eyed Girls「Abracadabra」

http://www.youtube.com/watch?v=ofwFr8o8p0Y

■T-araBo Peep Bo Peep」

http://www.youtube.com/watch?v=9403-9CptH8

■T-ara 「I Go Crazy Because Of You

http://www.youtube.com/watch?v=tKIqEqRsGt0

■T-ara with 超新星TTL(Time To Love)」

http://www.youtube.com/watch?v=5ikSQgDs7zE

BoA 「COPY&PASTE」

http://www.youtube.com/watch?v=hhBwPj7NpBk

KARA 「Jumping」

http://www.youtube.com/watch?v=sInThxYjDnM

KARA 「Jumping」 (Japanese Version)

http://www.youtube.com/watch?v=mK0FlhP6rAg

KARA 「Jumping」 (AU Version)

http://www.youtube.com/watch?v=UC5T1EjnxxQ&

KARA 「Lupin」

http://www.youtube.com/watch?v=bT_ypLGVVtI

KARA 「Pretty Girl」

http://www.youtube.com/watch?v=4lMnKPTCDuU

KARA 「Honey」

http://www.youtube.com/watch?v=yGR40fZvwSM

KARARock U」

http://www.youtube.com/watch?v=KlSZn5_3Jyo

■miss A 「Bad Girl, Good Girl」

http://www.youtube.com/watch?v=8TeeJvcBdLA

■miss A 「Breathe」

http://www.youtube.com/watch?v=wTnwjlDhAY4

■Sistar 「Shady Girl」

http://www.youtube.com/watch?v=PCD7begtqjI

■Sistar 「Push Push

http://www.youtube.com/watch?v=pW59HmRiXzM

■Secret「Madonna

http://www.youtube.com/watch?v=0kIeBBpwFZI

■Secret「Magic」

http://www.youtube.com/watch?v=M90dhpo4DKo&

RainbowGossip Girl

http://www.youtube.com/watch?v=wJ097A6eN7o

■Tensi LoveCake House

http://www.youtube.com/watch?v=-G-8Vl_uWws

■IU 「Marshmallow

http://www.youtube.com/watch?v=qhlBZFNwI6o

■IU 「Boo

http://www.youtube.com/watch?v=EZl5xrDTc_w

■After School 「Let's Do It!」

http://www.youtube.com/watch?v=hcMXBSI-0rI

■after school「Diva

http://www.youtube.com/watch?v=-Q7utzjQKKc

■after school「LOVEマシーン

http://www.youtube.com/watch?v=qVafkeL37w4

Orange Caramel 「Magic Girl」

http://www.youtube.com/watch?v=SojvsEJlvf0

■Wonder Girls 「Tell me

http://www.youtube.com/watch?v=3vVHy0XoIN4

■Wonder Girls 「NOBODY」

http://www.youtube.com/watch?v=BA7fdSkp8ds

■Wonder Girls 「"Nobody" Jason Nevins Remix

http://www.youtube.com/watch?v=c7ON9Gn5gJE

4Minute「FIRST」

http://www.youtube.com/watch?v=P1L8k4KXmbs

4Minute「I My Me Mine

http://www.youtube.com/watch?v=OGvwy3qhjDM

4Minute「HUH」

http://www.youtube.com/watch?v=kRbIZtUS2Ag

4Minute「Hot Issue」

http://www.youtube.com/watch?v=nPPKwg5eQ4o

4Minute「Muzik」

http://www.youtube.com/watch?v=aNYImwBU4f4

2010-08-16

http://anond.hatelabo.jp/20100816013309

そりゃまぁ、関数コールは、本当にCall命令がコールされれば レジスタスタックへのPUSHが走るからなメモリコピー関数レジスタ文はGotoよりも重いよ。(レストンクス 元増田です。)

2010-05-15

起業するなら心に留めておきたい5つの秘訣

1. ビジネスを立ち上げる日を設定する。BeckySheila場合は、5月会社をその年の9月に設立すると決めた。最初は「どんなにか大変だろう」と思ったのだが、それほどでもないことに気づいたが、日付にはこだわった。信念を持って計画を達成しよう。

2. 自分たちに完璧を求めないこと。努力するのはよいことだけど、顧客のための自分のドアを開く方法を見つけた方がよい。

3. テスト期間中に収益をあげよう。ビジネスを立ち上げ、ビジネスを始めるときには、すでに顧客からのフィードバック、何を売るのか、何に優れているのか、何が収益が高いのか、自分が何がしたいのか、ということが土台になっているように。

4. 狭いターゲットに絞ろう。これは非常に難しいことだ。なぜなら、人間の傾向として、巨大な市場の後についていって成長するほうが簡単だと、考えがちだからだ。小さな市場サービス提供するという信念は、最もよいチャンスに注力することや、とてもよい製品ソリューションを作るときに役立つはずだ。そうすれば顧客クチコミによってそれを広め売上がついてくるだろう。

5. 顧客課題を解決するために自分たちのツールを売り込むことよりも、顧客課題自体に集中しよう。この心構えは、ビジネスプランを練ったり、製品顧客ニーズに合わせることに役立つはずだ。これは、異なる製品サービスビジネスを成長させるためのソリューションになるかもしれないということを気づかせるかもしれない。

http://d.hatena.ne.jp/momoco-f/20100507/1273163950

5 Secrets from a Profitable Start-Up business

 A year ago, Becky McCray and Sheila Scarborough were entrepreneurs with their own businesses who attended the SOBCon conference and decided to partner to start a business. By September 2009, they had launched Tourism Currents to teach tourism professionals how to use social media. In their first month, they generated a profit. Today, they came back to SOBCon and shared the secrets of their success, with the caveat ? these are not rules, the path has not been perfect, but it worked for them, so it could work for you too:

 

 1.Set a deadline to launch your business. They decided in May that they would launch in September, and stuck to the deadline even as they learned their initial expectations of “How hard could it be?” were inaccurate. Push forward and…

 2.Don’t expect perfection of yourself. It is good to strive for this, but is better to find a way to open your doors to customers so you can…

 3.Generate revenue while you test. Launch and iterate on your business based on feedback from your customers, what sells, what you’re good at, what is profitable, what you want to do.

 4.Solve for a narrow target. This is very difficult because our natural tendency is to think it is easier to grow by going after a big market. Trust that solving for a narrow market helps you focus on the best opportunities and will help you create great products and solutions that your customers help you sell through word of mouth.

 5.Focus on your customer’s problems rather than the tools you’re selling to solve them. Having this mindset allows you to evolve both your business plan and products to meet their needs. This allows you to see that a different tool (your product or service), rather than a better one, might be the solution that helps you grow your business.

 http://blog.quickbooksonline.com/2010/05/01/5-secrets-from-a-profitable-start-up-business/

2010-02-25

これだったら、迷わず購入します。 auスマートフォン

スマートフォンが欲しい大学生です。

ガラパゴス携帯になれてしまったため、踏み足すことができません。

先日、6月以降にauandroid携帯出すというニュースを見ました。

そこで、この機能があったら迷わず買うというのをまとめてみた。

1.必ず欲しい

ガラパゴス携帯のような制限(自由にアプリインストールできない など)がない。

ezwebアドレスが欲しい。そして、push対応

赤外線通信 ← 大学生は、アドレス交換が多くてないと不便

2.あったらうれしい

android 2.x系に対応

・常にandroidバージョンが最新に

携帯サイトを見れるようにしてほしい (携帯専用クーポンなどが使えるように)

・基本料を安く

 

この機能がついたauスマートフォンが出たら迷わず買います。

auさん、期待しています。

2010-02-22

http://d.hatena.ne.jp/faith_and_brave/20100220/1266673222

C++0x 読んだが ダメっぽいな。

まず第一にエンタープライズでの開発が考慮されていない。エンタープライズの開発だと100人200人 マスタークラスから ジュニアーまで様々なレベル開発者が携わる。

その中で重要になってくるのは可読性。

はっきり言って、歴史的な可読性を犠牲にして効率が上がるならともかく、気持ちの問題程度の効率では意味がない。

第2に

スレッドファイバーの違いぐらいわかれ、わざわざスレッド起こしたらコンテキストスイッチにどれだけコスト食うんだよ。

関数コールするとレジスタとかが、スタックPUSHされるんだよってわからん奴が、IF書くなと同じで、スレッドってコンテキストスイッチの塊なんだよってのがわかんないのに下手にスレッド書かせるな。

3にラムダ式・・・いらん・・・必要なのは曲芸じゃない、可読性。可読性を犠牲にして早くなるならともかく・・・

4にforeachではlastを変数に取るな。途中でReallocしたり、eraseしたりしたときに余計なバグを生んで面倒だ。レビューの時も邪魔。速度?速度が必要な背景でSTLVector使うな。配列使うかポインタ使え。

なんつーか、トータルで見て、次はC++と各種OpenCLとかGLとかのライブラリの集合だな。C++0xはまともに使う人もいなさそう。正規表現とかもライブラリ使えば良いし、そもそもC系列ならBisonとかLRとかだろうと。C系列の使い手ならBNFを使え。正規表現使いたければそれこそ、Perl使え。

2010-01-13

http://okajima.air-nifty.com/b/2010/01/post-abc6.html

少し遅れた感があるけど、解いてみた。

出力がテキストでないけど・・・。

仕事の合間を使ってやったものの、昼前に始めたのが5時頃にようやくできる程度。

これを25分とは尋常じゃないな、大口叩くだけあってよっぽど優秀なんだろう。



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;

<html&gt;

<head&gt;
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis"&gt;
<meta http-equiv="Content-Language" content="ja"&gt;
<meta http-equiv="Content-Script-Type" content="text/javascript"&gt;
<meta http-equiv="Content-Style-Type" content="text/css"&gt;
<style type="text/css"&gt;
<!--

pre {
  font-family: monospace;
}

--&gt;
</style&gt;
<script type="text/javascript"&gt;
<!--

window.onload = function() {

  var q = new Map();
  q.load("maptest.txt");
  q.search();

  var answer = document.getElementsByTagName("pre").item(0);
  var answerText = "\r\n";
  for(var ix = 0; ix < q.route.length; ix++) {
    answerText += q.route[ix].join("") + "\r\n";
  }
  answer.firstChild.data = answerText;

  alert("終了しました。");
};

/** マップオブジェクト
 */
function Map() {
  this.ymap = [];
  this.route = [];
}

//マップの読み込み
Map.prototype.load = function(filePath) {
 //ファイルシステム
  var fileSystem = new ActiveXObject("Scripting.FileSystemObject");

 //ファイル読み込み
  var file = fileSystem.OpenTextFile(filePath);
  while(!file.AtEndOfLine) {
    var fileBuffer = file.ReadLine();
    this.ymap.push(fileBuffer.split(""));
  }
  file.Close();

  fileSystem = null;
};

//マップの探索
Map.prototype.search = function() {

  var that = this;

 //マップコピー
  var ymap = this.ymap.concat();
  for(var y = 0; y < ymap.length; y++) {
    ymap[y] = ymap[y].concat();
    for(var x = 0; x < ymap[y].length; x++) {
      if(ymap[y][x] == "S")
        var start = new MapNode(y, x);
      if(ymap[y][x] == "G")
        var goal = new MapNode(y, x);
    }
  }

  var openList = [];
  var closeList = [];

  start.costf = start.distance(goal);
  openList.push(start);

 //経路探索
  while(openList.length &gt; 0) {
    var node = openList.shift();
   //探索終了
    if(goal.equal(node)) {
      createRoute(node);
      break;
    }
    closeList.push(node);

   //隣接ノードの作成
    var tonari = [];
    if( ymap[node.positionY][node.positionX - 1] == " "
     || ymap[node.positionY][node.positionX - 1] == "G" )
      tonari.push(new MapNode(node.positionY, node.positionX - 1, node));
    if( ymap[node.positionY - 1][node.positionX] == " "
     || ymap[node.positionY - 1][node.positionX] == "G" )
      tonari.push(new MapNode(node.positionY - 1, node.positionX, node));
    if( ymap[node.positionY][node.positionX + 1] == " "
     || ymap[node.positionY][node.positionX + 1] == "G" )
      tonari.push(new MapNode(node.positionY, node.positionX + 1, node));
    if( ymap[node.positionY + 1][node.positionX] == " "
     || ymap[node.positionY + 1][node.positionX] == "G" )
      tonari.push(new MapNode(node.positionY + 1, node.positionX, node));

   //隣接ノード検索
    for(var tx = 0; tx < tonari.length; tx++) {
      var openIn = false;
      var closeIn = false;
      tonari[tx].cost = node.cost + 1;
      var costf = tonari[tx].cost + tonari[tx].distance(goal);
      tonari[tx].costf = costf;

     //オープンリストから検索し入れ替える。
      for(var ox = 0; ox < openList.length; ox++) {
        if(tonari[tx].equal(openList[ox])) {
          openIn = true;
          if(costf < openList[ox].costf) {
            openList.splice(ox, 1);
            push(openList, tonari[tx]);
          }
          break;
        }
      }
     //クローズリストから検索し、オープンリストへ移す。
      for(var cx = 0; cx < closeList.length; cx++) {
        if(tonari[tx].equal(closeList[cx])) {
          closeIn = true;
          if(costf < closeList[cx].costf) {
            closeList.splice(cx, 1);
            push(openList, tonari[tx]);
          }
          break;
        }
      }
     //どちらにもない場合、オープンリストへ追加する。
      if(!openIn &amp;amp;&amp;amp; !closeIn)
        push(openList, tonari[tx]);
    }
  }

 //適切な位置に追加する。
  function push(array, item) {
    for(var ix = 0; ix < array.length; ix++) {
      if(item.costf < array[ix].costf) {
        array.splice(ix, 0, item);
        return;
      }
    }
    array.push(item);
  }

 //ルートマップの作成
  function createRoute(lastNode) {
    var node = lastNode.parent;
    while(node.parent) {
      ymap[node.positionY][node.positionX] = "$";
      node = node.parent;
    }
    that.route = ymap;
  }
};

/** マップノード
 */
function MapNode(y, x, parentNode) {
  this.positionY = y;
  this.positionX = x;
  this.parent = parentNode;
  this.cost = 0;
  this.costf = 0;
}

//同一ノードかチェックする。
MapNode.prototype.equal = function(targetNode) {
  if( this.positionY == targetNode.positionY
   &amp;amp;&amp;amp; this.positionX == targetNode.positionX )
    return true;
  return false;
};

//直線距離を求める。
MapNode.prototype.distance = function(targetNode) {
  sabunY = this.positionY - targetNode.positionY;
  sabunX = this.positionX - targetNode.positionX;
  return sabunY ^ 2 + sabunX ^ 2;
};

// --&gt;
</script&gt;
<title&gt;経路探索:A*</title&gt;
</head&gt;
<body&gt;

<pre&gt;&amp;nbsp;</pre&gt;

</body&gt;
</html&gt;

2009-12-10

PHPのあの関数Perlでやるには?

元ネタ http://phpspot.org/blog/archives/2009/12/phpjavascriptph_1.html



面白そうだと思ったので僕もやってみた。モジュールPerl5.8系の標準モジュールのみ利用可という制限。

全部はキツイので関数処理関係の関数(http://php.benscom.com/manual/ja/ref.funchand.php)だけ実装してみた。

use strict;
use warnings;

=head2 call_user_func

 $ret = call_user_func($function,@param);
 $ret = call_user_func([$class,$method],@param);

example1

 sub plus { $_[0] + $_[1] }
 print call_user_func('plus',10,20); # 30

example2

 package Foo;
 sub plus { $_[1] + $_[2] }
 package main;
 print call_user_func(['Foo','plus'],10,20); # 30

=cut

sub call_user_func {
    my $proto = shift;
    if ( ref $proto eq 'ARRAY' ) {
        return $$proto[0]->${\$$proto[1]}(@_);
    }
    else {
        require Pod::Functions;
        if ( $Pod::Functions::Flavor{$proto} ) {
            return eval qq{$proto(\@_)};
        }
        else {
            no strict 'refs';
            return $proto->(@_);
        }
    }
}

=head2 call_user_func_array

 $ret = call_user_func_array($function,\@param);
 $ret = call_user_func_array([$class,$method],\@param);

example

 sub plus { $_[0] + $_[1] }
 print call_user_func_array('plus',[10,20]); # 30

=cut

sub call_user_func_array {
    return call_user_func(shift,@{+shift});
}

=head2 create_function

 $code = create_function($args_str,$code_str);

example

 $code = create_function('$c,$d=1','print $c+$d');
 $code->(10); # 11

=cut

sub create_function {
    my $args = shift;
    my $code = shift;
    my $default = 0;
    my @args = split /,/,$args;
    my $code_str = 'sub {';
    for my $arg (@args) {
        if ( $arg =~ /^\s*(\$[a-zA-Z][\w]*)\s*(?:=\s*(.+))?\s*$/ ) {
            my $val = $1;
            my $def = $2;
            if ( defined $def ) {
                $default = 1;
                $code_str .= qq{my $val = \@_ ? shift : $def;\n};
            }
            else {
                die 'parse error' if $default;
                $code_str .= qq{my $val = shift;\n};
            }
        }
    }
    $code_str .= $code . '}';
    my $sub = eval $code_str;
    die $@ if $@;
    return $sub;
}

=head2 forward_static_call

 $ret = forward_static_call($function,@param);
 $ret = forward_static_call([$class,$method],@param);

=cut

sub forward_static_call {
    call_user_func(@_);
}

=head2 forward_static_call_array

 $ret = forward_static_call_array($function,\@param);
 $ret = forward_static_call_array([$class,$method],\@param);

=cut

sub forward_static_call_array {
    call_user_func_array(@_);
}

=head2 func_get_arg

 $arg = func_get_arg($no)

example

 sub foo { print func_get_arg(1) }
 foo(100,200); # 200

=cut

sub func_get_arg {
    my $n = shift;
    package DB;
    @DB::args = ();
    () = caller(1);
    return defined $DB::args[$n] ? $DB::args[$n] : undef;
}

=head2 func_get_args

 @args = func_get_args()

example

 sub foo { print join ':', func_get_args() }
 foo(11,22,33); # 11:22:33

=cut

sub func_get_args {
    my $n = shift;
    package DB;
    @DB::args = ();
    () = caller(1);
    return @DB::args;
}

=head2 func_num_args

 $arg_count = func_num_args()

example

 sub foo { print func_num_args() }
 foo(11,22,33); # 3

=cut

sub func_num_args {
    my $n = shift;
    package DB;
    @DB::args = ();
    () = caller(1);
    return scalar @DB::args;
}

=head2 function_exists

 $bool = function_exists($func)

example

 sub foo {}
 print function_exists('foo');  # 1
 print function_exists('bar');  # 0
 print function_exists('rand'); # 1

=cut

sub function_exists {
    my $func = shift;
    return 1 if exists &$func;
    require Pod::Functions;
    return $Pod::Functions::Flavor{$func} ? 1 : 0;
}

=head2 get_defined_functions

 $funcs = get_defined_functions()

=cut

sub get_defined_functions {
    require Pod::Functions;
    return {
        internal => [ keys %Pod::Functions::Flavor ],
        user     => [ grep { exists &$_ } keys %:: ],
    };
}

=head2 register_shutdown_function

 register_shutdown_function($func,@param);
 register_shutdown_function([$class,$method],@param);

=cut

{
    my $REGISTER_SHUTDOWN_FUNCTION = [];
    sub register_shutdown_function {
        my $proto = shift;
        push @$REGISTER_SHUTDOWN_FUNCTION, [
            do {
                if ( ref $proto eq 'ARRAY' ) {
                    $$proto[0]->can($$proto[1]);
                }
                else {
                    require Pod::Functions;
                    if ( $Pod::Functions::Flavor{$proto} ) {
                        sub { eval qq{$proto(\@_)} };
                    }
                    else {
                        no strict 'refs';
                        \&$proto;
                    }
                }
            },
            [@_]
        ]
    }
    END {
        $_->[0]->(@{$_->[1]}) for @$REGISTER_SHUTDOWN_FUNCTION;
    }
}

思ったよりも難しかった。標準関数一覧を取る手段がなかったので標準モジュールを利用して標準関数の一覧を取得した。

あと文字列から標準関数を呼び出すスマートな手段が思いつかなかったのでeval便りに。

create_functionはかなりゴリ押し。myを勝手に付けたりデフォルト引数にも対応してたり細かい芸が光る(自分で言うな)

forward_static_callはぶっちゃけPerl的にcall_user_funcと殆ど処理が変わらないのでそのまま利用。

func_get_arg系は結構クリティカルだなー。@DB::argsをリアルに使ったの初めてだよ。

register_shutdown_functionはちょっとねー。ENDブロックを利用してるわけなんだけど当然mod_perlとかではうまく動かない。あとシグナルとか使った方が良いのかもしれない。

ヒマがあったら他の関数とかも実装してみたいかも。



プログラ増田のあなぐら

2009-08-10

iPhone 3Gダメダメなところまとめ改訂しろよ

iPhone 3Gダメダメなところまとめ

http://www.omoshiro-news.net/memo/iPhone3G.html

このサイトアンチっぷりが頭来るので訂正しておく。3GSの事も混ざってるので注意。

つーか意味のない質問大杉

Q.iPhone本体に、メールは保存できますか?
A.30日で自動的に削除されない仕様改善されたとのこと。
  なお、保存容量が200MB以上になったり、
  5000件を超えたメールは、古いものから削除されるとのこと。
	
Q.iPhone は、携帯専用サイトは見れますか?
A.無料アプリで見れます。AppStoreやiTunesStoreで事足りるけどな

Q.iPhone は、FLASHJAVA が含まれている WEB サイトは見れますか?
A.見れません。ガラケーでも見れるのはFlash liteだからフルFlashサイトはみれねぇよ。

Q.iPhone は、絵文字は使えますか?
A.使えます。

Q.iPhone は、デコメールは使えますか?
A.ドコモサービスなんか使えるわけねーだろ。ガラケーでiTunesStore見れるのかよ。

Q.iPhone は、着メロ着うたは使えますか?
A.自分で作れる。

Q.iPhone に、ストラップをつけれますか?
A.つけれません。ストラップホール付きのケースカバーを使って下さい。

Q.iPhone で、ドコモAU の友達と携帯メールやりとり普通にできますか?
A.出来ます。softbank.ne.jpでもi.softbank.jpでもどちらでも可能です。

Q.iPhone で、メールの返信の際、返信文が必ず引用されてしまうみたいですが?
A.MMS(携帯メール)はそんなもの付きません。

Q.iPhone は、メールは手動操作しないと15分おきにしか端末に来ませんが?
A.MMSとi.softbank.jppushで来ます。i.softbank.jpを通知専用として使えばGMailだって疑似pushに出来ます。

Q.iPhone は、受信メール一覧の差出人表示が、メールアドレス表示になっていて、誰からのメールかわかりにくいのですが?
A.MMS(携帯メール)はそんなではないです。普通電話帳の登録名で表示されます。

Q.iPhone は、単語登録や定型文登録できますか?
A.アプリで出来ます。電話帳を整理して使うので汚れません。

Q.iPhone は、漢字変換の文節の区切りを変更できますか?
A.出来ます。

Q.iPhone は、公衆電話や非通知拒否等の設定はできますか?
A.できません。 どうしてもやりたかったらJB

Q.iPhone は、電話の音量設定を記憶しておけないのですか?
A.記憶されています。

Q.iPhone は、メール着信(受信通知)を知らせるランプやイルミネーションはありますか?
A.ありません。画面にはメールの着信のおしらせが表示されますので見おとすことはありません。

Q.iPhone は、不在着信でランプやイルミネーションはありますか?
A.ありません。不在着信があったこと自体は表示されているので分かります。

Q.iPhone は、ワンセグ機能は付いてますか?
A.ついてません。 外付けのワンセグチューナはあります。もしくはOrbliveというソフト回線使ってみるかです。

Q.iPhone は、赤外線通信機能はありますか?
A.ありません。自分アドレスQRコードを使ったアプリで送れますが、相手のアドレスメールで送ってもらうなり自分で書き写すなりしなければ行けません。

Q.iPhone は、QRコードは読み取れますか?
A.アプリで読めます。小さいのは厳しかったりします。

Q.iPhone は、モバイルスイカとかお財布機能ありますか?
A.ありません。

Q.iPhone の電池交換は自分でできますか?
A.できません。有料で交換になります。

Q.iPhone は、メール作成中に受信したメールを見れますか?
A.MMSは送られてきた相手のメールチャット状に見えている状態で書けます。

Q.iPhone は、S!メールには対応してますか?
A.softbank.ne.jpアドレスMMSで使えます。というかS!メール=MMSです。

Q.iPhone は、電話メールともに、発着信履歴の選択削除ができますか?
A.電話履歴の選択削除が出来ません。メールは出来ます。

Q.iPhone は、オフライン状態でメールを読むことはできますか?
A.出来ます。

Q.iPhoneカメラにはオートフォーカスや手ぶれ補正ありますか?
A.3GSで画面上の指定位置をタップすることで場所指定を出来るオートフォーカスが付きました。手ぶれの補正はありません。一部アプリで疑似手ぶれ補正があります。

Q.iPhoneカメラ動画撮れますか?
A.3GSで対応されました。

Q.iPhone は、メモリカードを使えますか?
A.最低モデルで8GB、最高モデルで32GBが選べるしUSBケーブルでPC接続できるんだけどメモリーカードが何のために必要なの?メモリーカードがないとろくに記録出来ないガラケーとは違います。

Q.iPhone で、音楽を聴きながら、safariブラウジングしていると頻繁に固まりますが?
A.そんな固まらねーよ。訳の分からない質問するな。どんなマシンだって過剰な動かしかたすれば止まる。

Q.メールボックスを開くたびに通信が発生しているみたいですが?
A.MMSではそんなことしてません。

Q.iPhone は、ブルートゥースが付いているそうですが、無線音楽を聴けますか?
A.聴けます。

Q.iPhone無線 LAN を使う場合、どこかの無線 LAN サービスに加入する必要はありますか?
A.iPhoneユーザならば無料で使えるスポットが多くあります。むしろiPhone以外の携帯では有料の契約をする必要があります。

Q.iPhone 3Gで通信中、登録していない無線(Wi-Fi)電波を
A.拾わない設定にすればいいだけです。この質問なんか意味あるのですか?

Q.iPhone は、ノートパソコンモデムとして利用できますか?
A.普通はできません。この質問にも意味があるのでしょうか?

Q.iPhone は、マルチタスク処理ですか?
A.音楽再生以外は同時にアプリを立ち上げることは出来ません。メモリが貧弱な携帯端末ではむしろ自動タスクを切る機能が付いている事の方が有用です。

Q.iPhone に、勝手アプリを入れられますか?
A.入れられません。アップルの許可したアプリのみですが、そこにあるアプリを使うだけのユーザには何の問題もありません。

Q.iPhoneアプリは誰でも作れますか?
A.Intel Mac を所有している方なら誰でも作れます。ウィンドウズでは無理です。
	
Q.iPhone は、片手で操作できますか?
A.手の小さなお子様以外は片手で問題ありません。相当手の小さい人以外は片手で十分です。両手じゃないとダメなんて都市伝説みたいなもん。

Q.iPhone は、他の携帯SIMを共用して使えますか?
A.専用だから使えません。普通機種変更すればいいだけの話ですが。

Q.iPhone 3G液晶って、昔の iPhone液晶と比べて黄色くないですか?
A.ロットによる差です。

2009-08-07

2択系

http://anond.hatelabo.jp/20090807091544

2. Which is worse, failing or never trying?

* (失敗するのと、やらないの。ダメなのはどっち?)

3. If life is so short, why do we do so many things we don’t like and like so many things we don’t do?

* (人生がそんなに短いんだとしたら、やりたくないことばかりして、やりたいのにやらないことがこんなに多い必要ってあると思う?)

4. When it’s all said and done, will you have said more than you’ve done?

* (すべて終えて振り返ったときに、やったことよりも、言ったことのほうが多くなってるって思う?)

7. Are you doing what you believe in, or are you settling for what you are doing?

* (あなたは今本当にやりたいことをしてる?それとも、今やっていることに落ち着いてるだけ?)

10. Are you more worried about doing things right, or doing the right things?

* (物事をちゃんとやるのと、正しいことをするのと、あなたにとってどっちがより大切?)

13. Would you break the law to save a loved one?

* (あなたは愛する人を救うために法律を犯すと思う?)

14. Have you ever seen insanity where you later saw creativity?

* (最初に見たときはクレイジーだ!と思ったことが、後になってみたらクリエイティブだ!と思うようなことってない?)

18. Are you holding onto something you need to let go of?

* (忘れないといけないもの、手放さないといけないものなのに、いつまでも持ってるものってない?)

20. Do you push the elevator button more than once? Do you really believe it makes the elevator faster?

* (エレベーターボタンを一回以上押すことある?それでエレベーターが早くなると思う?)

21. Would you rather be a worried genius or a joyful simpleton?

* (悩み多き天才と、単純でハッピーな人。どっちになりたい?)

23. Have you been the kind of friend you want as a friend?

* (あなたが友達になりたいような友達に、あなた自身がなったことある?)

24. Which is worse, when a good friend moves away, or losing touch with a good friend who lives right near you?

* (仲の良い友人が遠くへ行ってしまうのと、仲の良い友人が近くにいるのに疎遠になるのと、どっちが悲しい?)

26. Would you rather lose all of your old memories, or never be able to make new ones?

* (昔の記憶の全部が無くなってしまうのと、新しい思い出が作れないのと、どっちを選ぶ?)

27. Is it possible to know the truth without challenging it first?

* (やってみもしないで、ホントはどうかなんて、わからなくない?)

28. Has your greatest fear ever come true?

* (最も恐れていることが、ほんとに起こってしまったことってある?)

29. Do you remember that time 5 years ago when you were extremely upset? Does it really matter now?

* (5年前とかに、ものすごく腹が立ったことって何か覚えてる?それって、今も大切なこと?)

34. Have you ever been with someone, said nothing, and walked away feeling like you just had the best conversation ever?

* (かつて出会った人で、言葉を交わす機会はなかったけど、最高の会話をしたみたいに感じた人っていなかった?)

36. Is it possible to know, without a doubt, what is good and what is evil?

* (一片の迷いもなく、善悪を判断することってできる?)

37. If you just won a million dollars, would you quit your job?

* (一億円の宝くじが当たったら、仕事をやめたいと思う?)

38. Would you rather have less work to do, or more work you actually enjoy doing?

* (仕事の量を減らすのと、楽しい仕事をもっとやるのと、どっちを選ぶ?)

39. Do you feel like you’ve lived this day a hundred times before?

* (今日という日を、もう何回も繰り返してるみたく感じたことってない?)

42. Would you be willing to reduce your life expectancy by 10 years to become extremely attractive or famous?

* (ものすごく有名か、ものすごく魅力的な人になれるとしたら、寿命を10年縮めてでもなりたいと思う?)

ややこしい答えが必要なのは除いた。「何?」とか「いつ?」ってのは答えづらいけど「どっち?」なら即断可能かな?って。

翻訳ちょっと違和感あった。

思考の自由度チェック

心に自由を与える50の質問 - Free Your Mind! | 口コミ発信!モノ人

http://monojin.com/50-questions-that-will-free-your-mind/

思考の束縛を解く50の質問 - finalvent日記

http://d.hatena.ne.jp/finalvent/20090806/1249525203

考え方って、案外、型にはまってしまいがちなんだよね。だから、あなたはきっとこんな風に答えるだろうなって、何となく想像できる気がした。それに対して、僕はこんな風に反応するよ。でもまずは、下の質問を読んで答えてみてね。ここはまるまるhttp://monojin.com/50-questions-that-will-free-your-mind/からのコピペだよ。

  1. How old would you be if you didn’t know how old you are?
    • 自分の年齢を知らないとしたら、何歳でいたい?)
  2. Which is worse, failing or never trying?
    • (失敗するのと、やらないの。ダメなのはどっち?)
  3. If life is so short, why do we do so many things we don’t like and like so many things we don’t do?
    • 人生がそんなに短いんだとしたら、やりたくないことばかりして、やりたいのにやらないことがこんなに多い必要ってあると思う?)
  4. When it’s all said and done, will you have said more than you’ve done?
    • (すべて終えて振り返ったときに、やったことよりも、言ったことのほうが多くなってるって思う?)
  5. What is the one thing you’d most like to change about the world?
    • (世の中でたった一つだけ変えられるとしたら、何を変えたい?)
  6. If happiness was the national currency, what kind of work would make you rich?
  7. Are you doing what you believe in, or are you settling for what you are doing?
    • (あなたは今本当にやりたいことをしてる?それとも、今やっていることに落ち着いてるだけ?)
  8. If the average human life span was 40 years, how would you live your life differently?
    • (もしも、人間寿命が40年だとしたら、どんな人生を生きたい?)
  9. To what degree have you actually controlled the course your life has taken?
  10. Are you more worried about doing things right, or doing the right things?
    • (物事をちゃんとやるのと、正しいことをするのと、あなたにとってどっちがより大切?)
  11. You’re having lunch with three people you respect and admire. They all start criticizing a close friend of yours, not knowing she is your friend. The criticism is distasteful and unjustified. What do you do?
    • (あなたは尊敬する3人のひとたちとランチを食べている。その3人が一斉にあなたのとても身近な友人を批判し始めた。その3人はあなたとその人が友人であることを知らない。批判は品がなく、不当なもの。どう反応する?)
  12. If you could offer a newborn child only one piece of advice, what would it be?
    • (新たに生まれてくる子供にひとつだけアドバイスを上げられるとしたら、何て言ってあげたい?)
  13. Would you break the law to save a loved one?
    • (あなたは愛する人を救うために法律を犯すと思う?)
  14. Have you ever seen insanity where you later saw creativity?
  15. What’s something you know you do differently than most people?
    • (他の多くの人とくらべてみて、自分なら違うふうにやれると思うものって何?)
  16. How come the things that make you happy don’t make everyone happy?
    • (なんであなたが幸せだと思うことを、みんな幸せだと思わないんだろう?)
  17. What one thing have you not done that you really want to do? What’s holding you back?
    • (本当はやりたいけどまだやってないことってある?それをやってない理由は?)
  18. Are you holding onto something you need to let go of?
    • (忘れないといけないもの、手放さないといけないものなのに、いつまでも持ってるものってない?)
  19. If you had to move to a state or country besides the one you currently live in, where would you move and why?
    • (もしどこにでも引っ越せるとしたら、どこに行きたい?それはなぜ?)
  20. Do you push the elevator button more than once? Do you really believe it makes the elevator faster?
  21. Would you rather be a worried genius or a joyful simpleton?
  22. Why are you, you?
    • (なんで、あなたはあなたなの?)
  23. Have you been the kind of friend you want as a friend?
    • (あなたが友達になりたいような友達に、あなた自身がなったことある?)
  24. Which is worse, when a good friend moves away, or losing touch with a good friend who lives right near you?
    • (仲の良い友人が遠くへ行ってしまうのと、仲の良い友人が近くにいるのに疎遠になるのと、どっちが悲しい?)
  25. What are you most grateful for?
    • (あなたが最も感謝するものって何?)
  26. Would you rather lose all of your old memories, or never be able to make new ones?
    • (昔の記憶の全部が無くなってしまうのと、新しい思い出が作れないのと、どっちを選ぶ?)
  27. Is it possible to know the truth without challenging it first?
    • (やってみもしないで、ホントはどうかなんて、わからなくない?)
  28. Has your greatest fear ever come true?
    • (最も恐れていることが、ほんとに起こってしまったことってある?)
  29. Do you remember that time 5 years ago when you were extremely upset? Does it really matter now?
    • (5年前とかに、ものすごく腹が立ったことって何か覚えてる?それって、今も大切なこと?)
  30. What is your happiest childhood memory? What makes it so special?
    • 子供の頃の思い出で一番幸せだったのは?その思い出が特別なのはなんで?)
  31. At what time in your recent past have you felt most passionate and alive?
    • 最近、一番やる気が湧いてきて、やるぞっ!って感じたことはなに?)
  32. If not now, then when?
    • (今じゃないとしたら、いつ?)
  33. If you haven’t achieved it yet, what do you have to lose?
    • (まだ手に入れてないんだとしたら、失うものってないんじゃない?)
  34. Have you ever been with someone, said nothing, and walked away feeling like you just had the best conversation ever?
    • (かつて出会った人で、言葉を交わす機会はなかったけど、最高の会話をしたみたいに感じた人っていなかった?)
  35. Why do religions that support love cause so many wars?
    • (愛を訴えているはずの宗教が、いつも戦争の原因になるのはなんでだと思う?)
  36. Is it possible to know, without a doubt, what is good and what is evil?
    • (一片の迷いもなく、善悪を判断することってできる?)
  37. If you just won a million dollars, would you quit your job?
    • (一億円の宝くじが当たったら、仕事をやめたいと思う?)
  38. Would you rather have less work to do, or more work you actually enjoy doing?
  39. Do you feel like you’ve lived this day a hundred times before?
    • 今日という日を、もう何回も繰り返してるみたく感じたことってない?)
  40. When was the last time you marched into the dark with only the soft glow of an idea you strongly believed in?
    • (強く信じるかすかな明かりだけを頼りに、暗闇に踏み込んでいくようなことを最後にしたのはいつ?)
  41. If you knew that everyone you know was going to die tomorrow, who would you visit today?
    • (もし、あなたの知ってる人全員が明日死んでしまうとしたら、今日あなたは誰に会いに行く?)
  42. Would you be willing to reduce your life expectancy by 10 years to become extremely attractive or famous?
    • (ものすごく有名か、ものすごく魅力的な人になれるとしたら、寿命を10年縮めてでもなりたいと思う?)
  43. What is the difference between being alive and truly living?
    • (命があるだけなのと、本当に生きているのの違いって何?)
  44. When is it time to stop calculating risk and rewards, and just go ahead and do what you know is right?
    • リスクと見返りを天秤にかけるのをやめて、自分が正しいと思うことをとにかくやってみる、っていうような時はいつ来るの?)
  45. If we learn from our mistakes, why are we always so afraid to make a mistake?
    • (失敗から学ぶことができるんだとしたら、なんでいつもそんなに失敗することを怖がるの?)
  46. What would you do differently if you knew nobody would judge you?
    • (だれにも批評されないって知ってたらもっと違うやり方したのに、っていうことある?)
  47. When was the last time you noticed the sound of your own breathing?
    • (一番最近自分の吐息を聞いたのを覚えてるのっていつ?)
  48. What do you love? Have any of your recent actions openly expressed this love?
    • (あなたが大好きなことって何?最近あなたがとった行動であなたがそれを大好きだって、誰の目から見てもわかるようなことってあった?)
  49. In 5 years from now, will you remember what you did yesterday? What about the day before that? Or the day before that?
    • (今から5年後、あなたは昨日したことを覚えていると思う?一昨日のことは?その前の日は?)
  50. Decisions are being made right now. The question is: Are you making them for yourself, or are you letting others make them for you?
    • 決断はたった今下された。問題は、その決断をあなたが自分で下したのか、誰か他の人が下したのかってこと。)
  1. 「○○歳」と答えてたら、思考がかなり固定化されているかも。年齢なんて便宜的なもの。体力なのか、精神面なのか、はたま社会的な立場だとか、何とリンクさせて考えるのかも自由だからね。
  2. 「どっち?」って問いに、提示された選択肢の中からしか選べなかったなら、かなり頭が固くなっている可能性があるよ。ついでに言うと、本当にダメなのかどうかも疑ってみてね。
  3. 主客転倒というか、やりたくないことばかりして、やりたいのにやらないことが多いから、人生が短く感じられれるのかもしれないね。ところで、あなたのやりたいこととやりたくないことってそんなにはっきりわけられるもの?やりたいことの中にやりたくないことが混じっていたり、やりたくないことだって、実はほんの一部が面倒なだけだったりしない?
  4. やろうと思ったことを一つ残さず叶えている人なんているのかな。それって自然なことかな。確実にできることしか発言しなくていいのかな。誰かの力を借りる必要があるときってどんなときだろうね。
  5. 提示された条件の中でしか……(以下略)。変えたいという願望、本当はとっくに変える力を持っていたりするんじゃない?
  6. 名前のついた職業ばかりが「仕事」じゃないからね。そして、どんな通貨であれ、誰かのところに沢山集まってくることが理想的な状態かどうかってことも考えておきたいよね。
  7. 立ち止まって見えるか、前に進んで見えるのか、捉え方次第だよね。いろんなスパン自分の変化を見てみると面白いよね。
  8. 提示された条件の……(以下略)。残りが後これくらいしかなかったら、っていうことだけじゃないよ。自分に使える時間が分かっている場合と分からない場合で行動が変わるの?という問いかけだよ。
  9. 思った通りになることが唯一の正解だと考える性格だから、かなり低い値をだしてるでしょ。結果をきちんと受け止めてみると、自分コントロールしてきた割合って多分もっと大きくなるはずだよ。 自分人生の判断は自分で下すという覚悟の度合いでもあるよね。謙虚になりすぎるのも、結果から目を反らしている気持ちの現れかもしれないよ。
  10. 提示された……(以下略)。物事をちゃんとやるのと、正しいことをするのと、そこに違いがある世の中って不条理だよね。どちらを優先するかが大事なんじゃなくて、そう考える理由があなたの世の中の捉え方を反映しているかもねっていう話ね。
  11. 品がなくて不当な批判(誹謗中傷ってことだよね)をするような「尊敬できる」人を想像できたなら、あなたにとって「尊敬」という言葉定義を再確認してみる必要がありそう。逆に、想像できなかったなら、身近な人と意見が食い違ったときにどう振る舞う?って考えてみるとどうだろう。いろんなケースを想定して、自分の心に負担にならない考え方を見つけておくと、実際の場面で楽になるよ。
  12. たった一つだけ(しかできないの)?」と思うのも、「たった一つだけ(で全てを伝えたい)!」と考えるのも自由だよね。
  13. 法律ではなく、法、あるいは真理であったらどう?正しいと信じてきたものと戦ってみる覚悟はある?ねじ曲げてやる度胸はある?
  14. 「ある」からといって、おかしいと感じる直感を鈍らせてはいない?批判は否定じゃないので、遠慮しないでどんどん伝えて良いと思うよ。
  15. 自分が他人と違うと気付くっていう話じゃないよ。ただやり方が異なっているという事実と、それに伴う変化を見比べてみようね、というだけの話。自分の行動に理屈が伴っているかどうかの確認作業だね。
  16. 昔のあなたはそれを不満に感じていたよね。今のあなたは、もっと純粋な興味で見ているような気がするよ。どうしてそれを疑問に感じたんだろうね、どうしてそれを考えるんだろうね。
  17. 理由なんて本当にあったのかな。むりやり理由をつけてない?なりたい自分がたくさんあって、手が回らないってだけでもいいんだよ。
  18. 気付いているのなら、じきに卒業する時が来るよ。でもきっとまだ気付いていないだろうね。離れられたときに、しがみついたままでは見えなかったいろんな姿が見えてくるものだよ。
  19. 特定の地名じゃなくて、気候や近所の雰囲気や便利さや快適さで答えても良いんだよ。どうしても引っ越さなきゃいけない場面、必要は無いけど引っ越したくなる場面、思い描く行き先は同じかな。
  20. あなたは押さない人でしょ。なんでも無理に教訓を得なくてもいいんだよ。
  21. どっちかに偏らなきゃだめかな。あなたなら、どれくらいの割合で混ぜ合わせてみたい?
  22. 「なぜ?」って聞かれると、動揺しちゃうのはなぜなんだろうね。Whyって何?areってどういうこと?youって誰?わからないことは逆に聞き返してみるのもありだよ。
  23. その友達と同じような自分がいたとして、その自分とあなたは友達になりたいと思う?
  24. 悲しくなる気持ちはあなたの優しさの現れだと思うよ。でも友人はあなただけのものじゃないよね。変わっていくことは悲しいこと?そうなるべくしてそうなった人たちの門出をこれからもまた笑顔で見送ってあげようね。
  25. 誰に感謝するのかではなくて、どういう状況に対して感謝するのか、だよ。本当に尊敬に値する相手は、感謝の表し方や対象にはこだわらないものだと思うよ。
  26. そうなった時にどう振る舞うかを決めてしまえば、どっちでも価値のあるものにしてしまえるよね。
  27. 誰もがやらなかったことにも理由はあると思うんだ。やってみもしないのにわかっちゃうっていう体験もあるでしょ?そうなるように考えるトレーニングも大切だと思うんだ。
  28. 人一倍怖がりのあなたには、逆に、恐れていたけれど起こらなかったことが、世の中にどれほどたくさんあるのかも、数えてみて欲しいと思う。
  29. 多分それは腹が立ったことじゃなくて、自分の中で消化できなかった出来事だよね。時間をかけて結論を出していくこともあれば、あるときふいにすっきりすることもあるんじゃないかな。あなたは忘れたと言ってたけれど、僕は5年前にあなたを怒らせてしまったこと、いまでも覚えているし、あなたを理解する上で、それは大切なことだと感じてる。
  30. 幸せで特別な思い出、その出来事と理由が、もしいつまでも変わらずにあるとしたら、僕らは本当に成長しているのかなあ。
  31. やる気の形は一種類じゃないよね。どんな種類のやる気を持ってる?どんなふうに使い分けてる?周りの人をちゃんと利用してる?
  32. 焦らなくていいよ。そのときが来たら、あなたは考える前にもう始めているよ。大丈夫
  33. 「減るもんじゃないんだから、見せてよ」っていうのと同じでさ、失うものを怖れているなら、何か大事なものを既に手に入れているってことかもしれないね。それを手放してでも手に入れたいものは何?って考えるべきかもね。
  34. 願わくば、それが自分であって欲しいな、なんて。といいつつ、自分だって、すごくたくさんのそういった人たちがいるからなあ。
  35. 自分達だけは違うって、きっと誰もがそう主張していると思うよ。確かにみんなそれぞれ違っているんだろうね。でも、もしそうならさ、尊敬する対象完璧でなくちゃいけないかな。一人一人が完成された世界を目指す必要はあるのかな。みんなで力を合わせて、老若男女、入れ替わり立ち替わり補い合うのでは幸せにはできないかな。思った通りにならない状況は、そんなに受け入れがたいことかな。
  36. 「できない。けどやってしまう」って言わされちゃうよね。でも、できないからやらなくていいのかな。多分、そうではないと思うんだよね。結果を受け入れる覚悟のありかたじゃないかな、やっぱり。
  37. 一億円の価値をどんなふうにみたのかな。自分が生活するお金として見たのかな、それとも何かに使うお金として見たのかな。あなたのことだから、きっと自分のものにはしないだろうね。でも、自分の判断で最大限に有効に運用してやろうという考え方からも逃げていたりはしないかな。
  38. 選択肢を提示されたら……(以下略)。自分に見合った配分を知りたいよね。
  39. 感じるかどうかを問うているだけですよ。それが正しいとか正しくないとか考えてなかった?あなたのそのジャッジは必要だったかな?
  40. 世の中、タイミングでことが運ぶってこと、よくあるよね。自分の意志だけでそれができていたのかどうか、うまいこと誰かに背中を押されたのかもしれないし、違ったタイミングで振り返ると、また違ったものが見えてくるかもしれないね。
  41. 誰かに会いにいく以外のアクションも可能ですよ。今日と明日の区切りなんて便宜的なものですよ。
  42. 有名、魅力的、寿命。これらの言葉を、どんなふうにイメージ定義)した?言葉ってとってもカラフルだよ。一つの言葉にいろんなイメージを添えてみたいものだよね。
  43. この質問にみじんも疑問を抱かなかったなら、「〜の違いは何?」と尋ねられることで、違っていることを前提として刷り込まれているかもしれないね。
  44. これもまた「いつやるの?」と問うことでやることを前提に考えさせるトリックだよね。
  45. これも同様に。この手の質問を重ねることで、無意識のうちに、まるで自分が、どんな失敗をも怖がっているものと思い込まれされていたりしない?平気な顔で失敗していること、身近に意外とあるのでは?
  46. 「ある」と答えることに躊躇いを覚えたのは、自分の意志がない人だって指摘されたと脅えているからじゃない?誰にだって重みの違う用件があるものだから、ルーズ決断っていうものもあってもいいと思うんです。じゃないとくつろげないよね。逆にまるっきり「ない」のであれば、ひとりよがりすぎるかも。第三者視点を活用するということを意識してみようか。
  47. 尋ねられた瞬間に、反射的に意識してしまうよね、こういうことって。尋ねることで無意識顕在化させるのは相手をコントロールする手段としてはポピュラーなんですよ。とはいえ、我に返る方法を各々が独自に見つけ出すと役立つから、自分なりに探してみると良いかも。
  48. 四六時中、大好きなことを持っていなくちゃ充実していないとか、気持ちを素直に表現しなくちゃいけないだとか、そういったきまりはないと思うな、ねんのため。なかったなら「ない」でいいんだよ。とはいえ、大好きとかloveってどういうことなのかを考えるのもまた楽しいよね。
  49. Can you?じゃなくてwill you?と尋ねているということは、「覚えていられる?」ではなくて「覚えていようと思う?」という意志の問いかけなんだろうね、多分。ひょっと「覚えていられる?」と問われていたとしても、「覚えていたいと思う」ではなくて、「覚えていられる」と答えたのであれば、質問に対して受け身になり過ぎているかもしれないね。
  50. 決断の最終段階でそれを問うようなら、その決断自分で下したものではなくなるのでしょうね。で、それがどれほど大事なの?とさらに問うてみましょうか。結果よりもプロセスを重視する思考の偏りがみつかるかもしれないよ。頑張ったら必ず報われるのは公平なのかなとか、努力の方向はそれでいいのかなっていうことは、折に触れて考えていきたいね。

そもそも、この質問の一つ一つに律儀に反応している時間が勿体ないと思えるくらい、目の前にやりたいことが待ち構えているようになるのが理想なんだろうけど。そういう意味では、あなたのように、途中で飽きてここまで読み飛ばしてくるようなずぼらさも、自由な思考の一つの形なのかもね。

2009-08-01

http://anond.hatelabo.jp/20090801073824

うん、まぁここであえて言わせてもらうが、じゃあ俺はpull型マンセーかというと別にそこまででもないんだけどね。

google先生を駆使して興味を持った分野だけ調べ続けて、できあがるのはいわゆるヲタクネガティブ意味で、偏った人間)だろう。

社会常識とか、話題とか、なんだかんだ人間はある程度共有しないとやっていけない。

まぁだから、push型のメディアをかじるということも、ある程度までなら意義のあることだとは思っている。

いわゆる「社会義務教育」みたいなもんっていうのかなぁ、そういうベース的なものをpushメディアを通して

最低限は築きつづけた上で、かと言ってそれらに流され続けて自分を見失うようなことはない程度のリテラシーは持つ。

その上で先に述べたように情報をうまくpullし、興味のあること・必要なことを伸ばしていく…ってのが理想

2009-06-18

GitHubにあるプロジェクトをいじりたい

という場合、どーゆーブランチを切って普段どういう pull や commit をすればいいの?

ブランチよくわからなかったから全部 master にして自分のスペースに push したら変な履歴ごと公開されて寝込みそうなんだけど

2009-04-14

アジア21世紀の成長センター

 アジアの成長を日本の成長につなげる為に、アジア総合開発計画の策定や、アジアの広域インフラ整備への支援などをぶち上げたらしい。

 アジアが成長するならば、それを世界にとって望ましい方向に誘導する為に関わるべきであろう。しかし、成長しない物を成長させる為に、日本国民血税を他国に注ぎ込むODAのばら撒きや工場の移設、技術供与は、必要ない。当然、仮にアジアが成長するとしても、世界にとって望ましい方向に誘導する為の発言力は、資金や技術の提供で得るべきではない。

 アジアには、経済を成長させる前に、民度を成長させなければならない国家が多すぎる。そして、民度を上げるには、政治体制が障害になっている場合が多い。

 政治体制放置たま経済を成長させたり、生活水準を快適化したりすると、好ましくない政治体制を延命させる事に繋がる。好ましくない政治体制をとっている国家には、民度を引き上げる為の方策が必要になる。内政干渉にならずに、政治体制の欠陥を自覚させるには、国境の無いメディアであり、しかも、閲覧者の閲覧行為が無ければ見れないwebが望ましい。これは、pushメディアでない事が有利になる使い方となる。

 web上のコンテンツを充実させる事と、コンテンツクリエイターを増やし、その活動を秋葉原等に集約して観光資源とする事は、つまるところ、お金の問題でしかなく、新しいスポンサーを作り出す事は不可能であるから、既存のお金の流れを、権利を独占してピンはねしている既得権者から実際に物作りをしている人へと渡るように調整する事が手段となる。

 ド田舎温泉地を観光資源化しても、一度行けばそれで終わりであり、パリロンドンNYのような、リピーターが確保できる観光地にするには、毎日進化し、変化する芸術や学術を、観光資源としなければならない。ハコ物を作ればそれでおしまいという考え方とは正反対であるし、何が支持されるかわからないので、税金でやらせるようなやり方は、失敗しか生み出さない。

 低炭素革命については、低炭素化の為に買い換えるのでは、逆効果である。需要を生み出す為の手段としては、確実に間違っている。使える物は最後まで使いきるという考え方こそが、低炭素な考え方であり、これは、需要活性化とは、正反対になる。すくなくとも、需要を生み出せるような話では無い。なんでこの話が出てくるのか、理解しがたい。燃費の良い自動車に買い換えるならば25万円を税金から補助するという話みたいな物で、自動車を買い替えた時にかかる費用と、節約できるガソリン代から算出できるメリットとを比べれば、タクシー業者並に走り回らないと元が取れないという間抜けな話になる。自動車を処分して、必要な時にレンタカーを借りるというやり方の方が、駐車場代の高い都会ではコスト的に有利になってしまうし、自動車製造する時に発生する炭素を排除できる。一人だけの移動手段としては、バイクの方が安いし燃費も良いとなる。

 あとは、健康長寿社会という話であるが、健康に気を使う人を増やすには、まず、企業従業員使い捨てにしない事である。また、健康に気を使いたくとも、代わりは幾らでも居るという雇用側の態度では、まともな労働者は居なくなる。外国人労働者を使わなければならないほど国民に嫌われている企業は、日本から出て行くか、行動を改めるかの二者択一をせまるべきである。

 公害を撒き散らし、従業員使い捨てにして国際競争に勝つのならば、経営者は誰でも良いとなる。公害を防ぎ、多くの人が従業員になりたがる雇用環境を維持しつつ、国際競争に勝ってこそ、高額の役員報酬を受け取れる人材となる。同様に、財政赤字を撒き散らし、賄賂とりまくって政権を取り、維持するのであれば、政治家地域にばら撒きを持ってきてくれる人ならば誰でも良いとなる。財政を黒字に保ち、身辺に一片の曇りも無い状態を維持しつつ、国益を増進させてこそ、高額の歳費を受け取れる人材となる。

 目的を達成する手段の選択や、役職や地位にふさわしい行動を取っているかどうかを、客観的にわきまえられる能力は、民度の基礎である。

2009-03-24

http://anond.hatelabo.jp/20090323132410

できた。

def every_case(arr, *args)
  if(arr.length&gt;1)
    arr.each do |elm| #~\尾1~A~A~A~B~K~A~A~[~^~A~Y~@~B履歴~A第2~U~U~A~]~L~A
      every_case(arr-[elm], args.push(elm))
      args.pop #使~T~L~A履歴~H~N
    end
  else
    p args.push(arr).flatten
  end
end

sample = (1..8).to_a
every_case(sample)

2009-03-18

公明党都議選重視?

コピーして、test.htaのような拡張子HTAで保存

HTAプログラム

 ↓

<html&gt;

<head&gt;

<style type="text/css"&gt;dt{float:left;clear:left;width:10em;}</style&gt;

<meta content="charset=Shift_JIS"/&gt;

</head&gt;

<body&gt;

<script type="text/javascript"&gt;</p&gt; <p&gt;window.onload = init;</p&gt; <p&gt;var url = [</p&gt; <p&gt; "<a href="http://www.senkyo.metro.tokyo.jp/h19sangiin/san_kekka/h19san_hkai.html"&gt;http://www.senkyo.metro.tokyo.jp/h19sangiin/san_kekka/h19san_hkai.html</a&gt;",</p&gt; <p&gt; "<a href="http://www.senkyo.metro.tokyo.jp/h17shugiin/sokuhou/7kaijyo_s.htm"&gt;http://www.senkyo.metro.tokyo.jp/h17shugiin/sokuhou/7kaijyo_s.htm</a&gt;",</p&gt; <p&gt; "<a href="http://www.senkyo.metro.tokyo.jp/h17togisen/sokuhou/2kaijyo_s.htm"&gt;http://www.senkyo.metro.tokyo.jp/h17togisen/sokuhou/2kaijyo_s.htm</a&gt;",</p&gt; <p&gt; "<a href="http://www.senkyo.metro.tokyo.jp/data/h16san_hkai.html"&gt;http://www.senkyo.metro.tokyo.jp/data/h16san_hkai.html</a&gt;",</p&gt; <p&gt; "<a href="http://www.senkyo.metro.tokyo.jp/data/h15shu_hkai.html"&gt;http://www.senkyo.metro.tokyo.jp/data/h15shu_hkai.html</a&gt;",</p&gt; <p&gt; "<a href="http://www.senkyo.metro.tokyo.jp/data/data01_01_03.html"&gt;http://www.senkyo.metro.tokyo.jp/data/data01_01_03.html</a&gt;",</p&gt; <p&gt; "<a href="http://www.senkyo.metro.tokyo.jp/data/data01_02_05.html"&gt;http://www.senkyo.metro.tokyo.jp/data/data01_02_05.html</a&gt;",</p&gt; <p&gt; "<a href="http://www.senkyo.metro.tokyo.jp/data/data03_04.html"&gt;http://www.senkyo.metro.tokyo.jp/data/data03_04.html</a&gt;",</p&gt; <p&gt; "<a href="http://www.senkyo.metro.tokyo.jp/data/data01_05_05.html"&gt;http://www.senkyo.metro.tokyo.jp/data/data01_05_05.html</a&gt;"</p&gt; <p&gt;];</p&gt; <p&gt;var base = "<a href="http://www.senkyo.metro.tokyo.jp/data/tokuhyo_23ku/"&gt;http://www.senkyo.metro.tokyo.jp/data/tokuhyo_23ku/</a&gt;";</p&gt; <p&gt;var file = ["chiyoda","chuou","minato","shinjyuku","bunkyo",</p&gt; <p&gt; "taitho","sumida","koutho","sinagawa","meguro",</p&gt; <p&gt; "ohta","setagaya","shibuya","nakaono","suginami",</p&gt; <p&gt; "toshima","kita","arakawa","itabashi","nerima",</p&gt; <p&gt; "adachi","katushika","edogawa"];</p&gt; <p&gt;for(var i=0; i<23; i++){</p&gt; <p&gt; url.push(base + file[i] + "\.html");</p&gt; <p&gt;}</p&gt; <p&gt;var id = [</p&gt; <p&gt; "2007 参院比", "2005 衆院比", "2005 都議会", "2004 参院比", "2003 衆院比",</p&gt; <p&gt; "2001 参院比", "2001 都議会", "2000 衆院比", "1998 参院比", "1997 都議会"</p&gt; <p&gt;];</p&gt; <p&gt;var ku = [</p&gt; <p&gt; "千代田","中央","港","新宿","文京",</p&gt; <p&gt; "台東","墨田","江東","品川","目黒",</p&gt; <p&gt; "大田","世田谷","渋谷","中野","杉並",</p&gt; <p&gt; "豊島","北","荒川","板橋","練馬",</p&gt; <p&gt; "足立","葛飾","江戸川"</p&gt; <p&gt;];</p&gt; <p&gt;var regexku = new RegExp("(" + ku.join("|") + ")区");</p&gt; <p&gt;var iframe = [];</p&gt; <p&gt;var data = {};</p&gt; <p&gt;var parse = [ function(){</p&gt; <p&gt; var d = iframe[0].contentWindow.document;</p&gt; <p&gt; var td = d.getElementsByTagName("td");</p&gt; <p&gt; for(var i=0, l=td.length; i<l; i++){</p&gt; <p&gt; if(regexku.test(td[i].firstChild.nodeValue)){</p&gt; <p&gt; for(var j=0, e=td[i]; j<10; j++){</p&gt; <p&gt; e = e.nextSibling;</p&gt; <p&gt; }</p&gt; <p&gt; data[RegExp.$1 + "0"] = e.firstChild.firstChild.nodeValue.replace(/\.\d+/,"");</p&gt; <p&gt; }</p&gt; <p&gt; }</p&gt; <p&gt; show();</p&gt; <p&gt;}, function(){</p&gt; <p&gt; var d = iframe[1].contentWindow.document;</p&gt; <p&gt; var nobr = d.getElementsByTagName("nobr");</p&gt; <p&gt; for(var i=0, l=nobr.length; i<l; i++){</p&gt; <p&gt; if(regexku.test(nobr[i].firstChild.nodeValue)){</p&gt; <p&gt; for(var j=0, e=nobr[i].parentNode; j<4; j++){</p&gt; <p&gt; e = e.nextSibling;</p&gt; <p&gt; }</p&gt; <p&gt; data[RegExp.$1 + "1"] = e.firstChild.nodeValue;</p&gt; <p&gt; }</p&gt; <p&gt; }</p&gt; <p&gt; show();</p&gt; <p&gt;}, function(){</p&gt; <p&gt; var d = iframe[2].contentWindow.document;</p&gt; <p&gt; var nobr = d.getElementsByTagName("nobr");</p&gt; <p&gt; for(var i=0, l=nobr.length; i<l; i++){</p&gt; <p&gt; if(regexku.test(nobr[i].firstChild.nodeValue) &amp;&amp; nobr[i].parentNode.tagName == "SPAN"){</p&gt; <p&gt; for(var j=0, e=nobr[i]; j<6; j++){</p&gt; <p&gt; e = e.parentNode;</p&gt; <p&gt; }</p&gt; <p&gt; var e2 = e.nextSibling.nextSibling.firstChild.childNodes[2].firstChild;</p&gt; <p&gt; var k = 0;</p&gt; <p&gt; data[RegExp.$1 + "2"] = 0;</p&gt; <p&gt; while(e2){</p&gt; <p&gt; if(e2.firstChild.firstChild.nodeValue.indexOf("公明党") != -1){</p&gt; <p&gt; data[RegExp.$1 + "2"] += parseInt(e2.parentNode.nextSibling.childNodes[k+2].firstChild.nodeValue.replace(",",""), 10);</p&gt; <p&gt; }</p&gt; <p&gt; e2 = e2.nextSibling;</p&gt; <p&gt; k++;</p&gt; <p&gt; }</p&gt; <p&gt; data[RegExp.$1 + "2"] = int2str(data[RegExp.$1 + "2"]);</p&gt; <p&gt; }</p&gt; <p&gt; }</p&gt; <p&gt; show();</p&gt; <p&gt;}, function(){</p&gt; <p&gt; var d = iframe[3].contentWindow.document;</p&gt; <p&gt; var td = d.getElementsByTagName("td");</p&gt; <p&gt; for(var i=0, l=td.length; i<l; i++){</p&gt; <p&gt; if(regexku.test(td[i].firstChild.nodeValue)){</p&gt; <p&gt; for(var j=0, e=td[i]; j<19; j++){</p&gt; <p&gt; e = e.nextSibling;</p&gt; <p&gt; }</p&gt; <p&gt; data[RegExp.$1 + "3"] = e.firstChild.firstChild.nodeValue.replace(/\.\d+/,"");</p&gt; <p&gt; }</p&gt; <p&gt; }</p&gt; <p&gt; show();</p&gt; <p&gt;}, function(){</p&gt; <p&gt; var d = iframe[4].contentWindow.document;</p&gt; <p&gt; var td = d.getElementsByTagName("td");</p&gt; <p&gt; var regexku2 = /(大田|世田谷|練馬|足立|江戸川)/;</p&gt; <p&gt; for(var i=0, l=td.length; i<l; i++){</p&gt; <p&gt; if(regexku.test(td[i].firstChild.nodeValue)){</p&gt; <p&gt; data[RegExp.$1 + "4"] = td[i].nextSibling.nextSibling.firstChild.nodeValue.replace(/\.\d+/,"");</p&gt; <p&gt; continue;</p&gt; <p&gt; }</p&gt; <p&gt; if(regexku2.test(td[i].firstChild.nodeValue)){</p&gt; <p&gt; data[RegExp.$1 + "4"] = (data[RegExp.$1 + "4"] || 0) </p&gt; <p&gt; + parseInt(td[i].nextSibling.nextSibling.firstChild.nodeValue.replace(",","").replace(/\.\d+/,""));</p&gt; <p&gt; }</p&gt; <p&gt; }</p&gt; <p&gt; for(var j=0; j<5; j++){</p&gt; <p&gt; data[ku[[10,11,19,20,22][j]]+"4"] = int2str(data[ku[[10,11,19,20,22][j]]+"4"]);</p&gt; <p&gt; }</p&gt; <p&gt; show();</p&gt; <p&gt;}, function(){</p&gt; <p&gt; var d = iframe[5].contentWindow.document;</p&gt; <p&gt; var td = d.getElementsByTagName("td");</p&gt; <p&gt; for(var i=0, l=td.length; i<l; i++){</p&gt; <p&gt; if(regexku.test(td[i].firstChild.firstChild.nodeValue)){</p&gt; <p&gt; for(var j=0, e=td[i]; j<10; j++){</p&gt; <p&gt; e = e.nextSibling;</p&gt; <p&gt; }</p&gt; <p&gt; data[RegExp.$1 + "5"] = e.firstChild.firstChild.nodeValue.replace(/\.\d+/,"");</p&gt; <p&gt; }</p&gt; <p&gt; }</p&gt; <p&gt; show();</p&gt; <p&gt;}, function(){</p&gt; <p&gt; var d = iframe[6].contentWindow.document;</p&gt; <p&gt; var td = d.getElementsByTagName("td");</p&gt; <p&gt; for(var i=0, l=td.length; i<l; i++){</p&gt; <p&gt; if(regexku.test(td[i].firstChild.firstChild.nodeValue)){</p&gt; <p&gt; for(var j=0, e=td[i]; j<7; j++){</p&gt; <p&gt; e = e.nextSibling;</p&gt; <p&gt; }</p&gt; <p&gt; data[RegExp.$1 + "6"] = e.firstChild.firstChild.nodeValue.replace(/\.\d+/,"").replace("-","0");</p&gt; <p&gt; }</p&gt; <p&gt; }</p&gt; <p&gt; show();</p&gt; <p&gt;}, function(){</p&gt; <p&gt; var d = iframe[7].contentWindow.document;</p&gt; <p&gt; var td = d.getElementsByTagName("td");</p&gt; <p&gt; for(var i=0, l=td.length; i<l; i++){</p&gt; <p&gt; if(regexku.test(td[i].firstChild.firstChild.nodeValue)){</p&gt; <p&gt; for(var j=0, e=td[i]; j<9; j++){</p&gt; <p&gt; e = e.nextSibling;</p&gt; <p&gt; }</p&gt; <p&gt; data[RegExp.$1 + "7"] = e.firstChild.firstChild.nodeValue;</p&gt; <p&gt; }</p&gt; <p&gt; }</p&gt; <p&gt; show();</p&gt; <p&gt;}, function(){</p&gt; <p&gt; var d = iframe[8].contentWindow.document;</p&gt; <p&gt; var td = d.getElementsByTagName("td");</p&gt; <p&gt; for(var i=0, l=td.length; i<l; i++){</p&gt; <p&gt; if(regexku.test(td[i].firstChild.firstChild.nodeValue)){</p&gt; <p&gt; data[RegExp.$1 + "8"] = int2str(td[i].nextSibling.firstChild.firstChild.firstChild.nodeValue);</p&gt; <p&gt; }</p&gt; <p&gt; }</p&gt; <p&gt; show();</p&gt; <p&gt;}, function(n){ return function(){</p&gt; <p&gt; var d = iframe[n+9].contentWindow.document;</p&gt; <p&gt; var td = d.getElementsByTagName("td");</p&gt; <p&gt; data[ku[n]+"9"] = 0;</p&gt; <p&gt; for(var i=0, l=td.length; i<l; i++){</p&gt; <p&gt; if((((td[i].firstChild || 0).firstChild || 0).nodeValue || "").indexOf("公明") == 0){</p&gt; <p&gt; data[ku[n]+"9"] += parseInt(td[i].parentNode.lastChild.firstChild.firstChild.nodeValue.replace(",",""));</p&gt; <p&gt; }</p&gt; <p&gt; }</p&gt; <p&gt; data[ku[n]+"9"] = int2str(data[ku[n]+"9"]);</p&gt; <p&gt; show();</p&gt; <p&gt;}}];</p&gt; <p&gt;function init(){</p&gt; <p&gt; for(var i=0; i<23; i++){</p&gt; <p&gt; var dl = document.createElement("dl");</p&gt; <p&gt; dl.appendChild(document.createTextNode("\n【" + ku[i] + "区における公明票】\n"));</p&gt; <p&gt; for(var j=0; j<10; j++){</p&gt; <p&gt; var dt = document.createElement("dt");</p&gt; <p&gt; var dd = document.createElement("dd");</p&gt; <p&gt; dt.innerText = id[j];</p&gt; <p&gt; dl.appendChild(dt);</p&gt; <p&gt; dl.appendChild(dd);</p&gt; <p&gt; }</p&gt; <p&gt; document.body.firstChild.appendChild(dl);</p&gt; <p&gt; }</p&gt; <p&gt; for(var i=0; i<32; i++){</p&gt; <p&gt; var e = document.createElement("iframe");</p&gt; <p&gt; iframe[i] = e;</p&gt; <p&gt; e.style.display = "none";</p&gt; <p&gt; if(i<9) var f = parse[i];</p&gt; <p&gt; else var f = parse[9](i-9);</p&gt; <p&gt; e.attachEvent("onload", f);</p&gt; <p&gt; e.src = url[i];</p&gt; <p&gt; document.body.appendChild(e);</p&gt; <p&gt; }</p&gt; <p&gt;}</p&gt; <p&gt;function show(){</p&gt; <p&gt; for(var i=0; i<23; i++){</p&gt; <p&gt; var dl = document.body.firstChild.childNodes[i];</p&gt; <p&gt; for(var j=0; j<10; j++){</p&gt; <p&gt; var dt = dl.childNodes[j*2+1];</p&gt; <p&gt; dt.innerText = id[j] + " " + (data[ku[i]+j] || "");</p&gt; <p&gt; dt.nextSibling.innerText = bar(data[ku[i]+j], j);</p&gt; <p&gt; }</p&gt; <p&gt; }</p&gt; <p&gt;}</p&gt; <p&gt;function int2str(num){</p&gt; <p&gt; return new String(num).split("").reverse().join("").replace(/(\d{3})/g,"$1,").split("").reverse().join("");</p&gt; <p&gt;}</p&gt; <p&gt;function bar(str, flag){</p&gt; <p&gt; str = str || "";</p&gt; <p&gt; if(str == "" || str.length < 5) return "";</p&gt; <p&gt; var num = parseInt(str.match(/\d+/)) + 1;</p&gt; <p&gt; var arrow = (flag == 2 || flag == 6 || flag == 9) ? " ←" : "";</p&gt; <p&gt; var _bar = new Array(num).join("|") + arrow;</p&gt; <p&gt; return _bar;</p&gt; <p&gt;}</p&gt; <p&gt;</script&gt;

</body&gt;

</html&gt;

2009-03-11

[][][][][][]

Deploy Merb, Sinatra, or any Rack App to Heroku

http://blog.heroku.com/archives/2009/3/5/32_deploy_merb_sinatra_or_any_rack_app_to_heroku/

http://heroku.com/pages/quickstart

http://heroku.com/docs

http://heroku.com/


HerokuをGit経由で使ってみる

http://d.hatena.ne.jp/aki-s-119/20081110/1226335713

http://github.com/guides/using-git-and-github-for-the-windows-for-newbies

Windows から Git を使う方法

http://d.hatena.ne.jp/kusakari/20080715/1216091060


msysgit - Google Code

http://code.google.com/p/msysgit/


PuTTYssh2プロトコルを使ってssh接続

http://net-newbie.com/putty.html


&gt;heroku help
=== General Commands

 help                         # show this usage

 list                         # list your apps
 create [<name&gt;]              # create a new app

 keys                         # show your user's public keys
 keys:add [<path to keyfile&gt;] # add a public key
 keys:remove <keyname&gt;        # remove a key by name (user@host)
 keys:clear                   # remove all keys

=== App Commands (execute inside a checkout directory)

 info                         # show app info, like web url and git repo
 open                         # open the app in a web browser
 rename <newname&gt;             # rename the app

 sharing:add <email&gt;          # add a collaborator
 sharing:remove <email&gt;       # remove a collaborator

 domains:add <domain&gt;         # add a custom domain name
 domains:remove <domain&gt;      # remove a custom domain name
 domains:clear                # remove all custom domains

 rake <command&gt;               # remotely execute a rake command
 console <command&gt;            # remotely execute a single console command
 console                      # start an interactive console to the remote

 restart                      # restart app servers
 logs                         # fetch recent log output for debugging
 logs:cron                    # fetch cron log output

 bundles                      # list bundles for the app
 bundles:capture [<bundle&gt;]   # capture a bundle of the app's code and dat
 bundles:download             # download most recent app bundle as a tarba
 bundles:download <bundle&gt;    # download the named bundle
 bundles:animate <bundle&gt;     # animate a bundle into a new app
 bundles:destroy <bundle&gt;     # destroy the named bundle

 destroy                      # destroy the app permanently

=== Example story:

 rails myapp
 cd myapp
 (...make edits...)
 git init
 git add .
 git commit -m "my new app"
 heroku create myapp
 git remote add heroku git@heroku.com:myapp.git
 git push heroku master
- 転職ならen
- 派遣ならen
2ページ中1ページ目を表示(合計:37件)