はてなキーワード: GREENとは
The green environmental protection battery is to point to in recent years has been put into use or are development, the development of kind of high performance, no pollution batteries. At present already use large nickel metal hydride battery, the lithium ion battery and is expanded use of mercury free alkaline battery manganese zinc and rechargeable batteries and is research and development of lithium or lithium ion plastic pack and fuel cells belong to this category. In addition, it is widely used and use of solar energy for photoelectric convert solar cell (also called photovoltaic power generation), can also be included in this category.
Nickel metal hydride battery (Ni-MH) and nickel cadmium battery (Ni-Cd) have the same working voltage (1.2 V), due to the adoption of rare earth alloy or TiNi alloy anode materials for the activity of hydrogen storage material, replacing the carcinogen cadmium, which not only makes this battery became a kind of green environmental protection battery, and make a battery of energy than increased nearly 40%, to 80-60 Wh/kg and 210-240 Wh/L. The battery is 90 s gradually realize industrialization PANASONIC VW-VBK360 Battery , and the first to use in the cell phone battery. At present although it on their dominance of the gradually be lithium ion battery replaced, but mobile phone applications in Europe and America, and its market share is still at about 50%.
The lithium ion battery (Li-ion) is by can make the lithium ion embedding and take off the carbon embedded as negative, reversible intercalated-li metal oxide as the positive (LiCoO2, LiNiO2 or LiMn2O4) and organic electrolyte constitute, the working voltage of 3.6 V, so a lithium-ion battery is equivalent to three cadmium nickel metal hydride battery or nickel. Thus the batteries than energy is the over 100 Wh/kg and 280 Wh/L, and considerably more than the nickel metal hydride battery than energy. In view of the above advantages, since the 1993-2000 in just a few years, its production and usage with extremely high speed growth.
Alkaline manganese zinc dry (alkaline) compared with ordinary dry cell size has higher capacity PANASONIC CGA-S005E Battery, and have high discharge current ability. In recent years has been used on mercury zinc powder, therefore make the battery become a green battery, and become the mainstream battery products, at present the alkaline xinmeng dry cell is still BP machine use most power supply. At the same time, the world is the battery charged on the sex, an American company has launched a charged battery alkali manganese, product and application of slow growth. Such batteries keep the battery discharge characteristics, but also can be recharged using a dozen times to hundreds of times (deep recharge cycles life of about 25 times).
Lithium plastic battery (LIP) is for lithium metal anode, conductive polymers of electrolyte for new battery, the energy than has reached 170 Wh/kg and 350 Wh/L. The lithium ion battery is will present plastic of organic lithium ion battery electrolyte stored in a polymer membrane, or use conductive polymer as electrolyte, make a battery in no free the electrolyte. Such batteries can use aluminum plastic composite membrane realize hot pressing encapsulation, with light weight, shape can be arbitrary change, safety better characteristics.
Fuel cells (FC) is a kind of use of fuel (such as hydrogen or contain fuel) and antioxidant (such as pure oxygen or the oxygen in air) for power generation device directly, because avoided the carnot cycle limit, this power unit is not only high efficiency (electrochemical reactions conversion efficiency can be as high as 40% or more), and no pollution discharge gas, so is the future of efficient and clean power generation method. Many companies at home and abroad are engaged in development for mobile phones, notebook computers, the PEM fuel cell, once put into application, and its economy benefit greatly.
Seal lead-acid battery is a kind of lead-acid batteries.
The following new green battery technology and related industry development is rapid.
1. Hydrogen storage material and nickel metal hydride Battery-the nimh batteries (PANASONIC CGA-S101E/1B Battery)
2. Lithium ion embedded material and liquid electrolyte of lithium ion battery
3. Polymer electrolyte of lithium battery or lithium ion battery
4. Zinc air battery and PEM fuel cell
In addition to the above, in view of the communication industry growth, China's battery industry is with extremely high speed to promote environmental protection mercury-free alkali manganese zinc original pool and rechargeable batteries and seal lead-acid battery technology development and application expansion market.
ちなみに見ている動画はゲーム実況、ゆっくり実況、TASなど。
自分でコメするときは滅多に無い(半年に1回あるかないか。あまりにコメの少ない作業用BGMとかに
大抵の場合、悪口。見ていて不快なのでNG。コメで不毛な喧嘩が始まっていたりもする。
「『女』をNGにしたら他のコメも巻き込まね?」と思うかもしれないが、ニコニコは小2文化。
主婦もスイーツも腐女子も、女だったらウゼーとおっぴらに叩いていいのである。
これらの単語は、ニコニコの特性上有益なコメもなく、ただ目障りなだけなので消去。
(いじってないので、今のverと違いがあるかも)
昔のニコニコプレーヤーで、ポチポチ押せば簡単にコメントを装飾できる、それに対応するNG
バカの一つ覚えで目立ちたい奴のほうが圧倒的に多い、そしてそういう奴に限ってロクなことを言ってない
「高校生で見てる奴いる~?」画面を埋め尽くす「ノ」「ノシ」
中高生はなぜ生まれ年を主張したいのだろう…
流れるコメへ、矢印で指摘してまで言いたいことがある…それは多くのケースが悪口である
「とりあえず覚えた言葉使ってみたい」のだろう、脈絡もないとことで「孔明の罠」や「フラグwww」
それでコメ欄で「ここ孔明じゃねーだろ」といさかいが起きていたりする。ワロス。
バカ、アホ、死ね、殺す、などは気にならないし、あまり見かけない
むしろバカなど「バカwwww」と相手のバカさ加減を褒める意味合いで使われることもある
中高生も
社会人もおっさんも
でもここ最近、明らかに見てわかる中高生が減ったような気もする。
RubyのSymbolと文字列の違いを研究室の輪講用に書いたのですが,折角なので公開したいと思います.
元々学部生に対する輪講用に書いた物なので,若干上から目線ですがご了承ください.
文字列とSymbolはよく似ています.プログラマから見ればどちらも文字列です.違いを一言で説明すると『プログラムが扱う』文字列か,『プログラマが見る』文字列かの違いです.例えば変数名は『文字列』ですが,rubyのオブジェクトである『文字列』ではないですよね?
例えば,今あなたがC言語でお絵描きライブラリを作っているとしましょう.その中に,色で塗りつぶすfillという関数があり,色を青・赤・緑の3色から選べ,fillの引数でそれを指定できるとしましょう.
fillの引数の設定方法として一番単純なのが,0を青,1を赤,2を緑として,0〜2で選択させる方法でしょう.しかし,それでは,どの数値が何色か覚えないといけないし,fill関数を知らない人から見れば,どういう意味の引数かすらさっぱり分かりません.
ではどうするかと言えば,普通はBLUE = 0, RED = 1, GREEN = 2と適当に定数を設定して,その定数を引数で指定させますよね.
こうして,fill関数の引数が意味の無い数値から意味のある文字列に変わったことによってプログラムが分かりやすい物となります.さて,ここで注意してほしいのは,ここで言う文字列はプログラムが扱うオブジェクトとしての文字列では無いということです.fill関数の引数として,"BLUE","RED", "GREEN"などとC言語の文字列を渡すということは普通しませんよね.それは,ここで言う文字列は,あくまでプログラマがプログラムコードを分かりやすくするために必要な文字列であって,プログラムがオブジェクトとして扱う(例えば,長さを求めるとかする)文字列ではないからです.
分かってきたでしょうか?
プログラムコード上では(つまりプログラマから見れば)どちらも同じ文字列(文字の列という意味で)ですが,実際に動くプログラムから見れば単なる数値と本物の文字列という大きな違いです.結局,fill関数の引数の具体的な値は何でもいいわけです.プログラマから見て文字列であればそれだけでよく,プログラムが動くときの実際のその中身は何でもいいわけです.これのために存在するのが,Symbolであり,:fooとひとたびSymbolを作成すれば:fooの実態は適当な数値となります.(この数値がいくらかなんていうことはもちろん気にする必要はありません)
そして,もちろん同じプログラム上では:foo == :fooはちゃんと成り立ちます.もうここまでくれば,Hashのkeyとして文字列でなくSymbolを使う理由が分かりますね.Hashのkeyはあくまで,プログラマが見る(プログラムコードを分かりやすくするための)文字列であってプログラムが扱うオブジェクトとしての文字列では無くて,keyの実際の値は何でもいい,からですね.(特別な場合を除いて)Hashのkeyに対してrubyのStringのメソッドを使うなんてことは無いですよね.
しかし,他の軽量言語ではSymbolなどなくHashのkeyとして普通に文字列を使うことが多いです.では,なぜrubyだけSymbolを使うのでしょうか.
その答えは一言でいうと,rubyの(プログラムコード上に直接書かれた,つまりリテラルの)文字列は他の言語と違いimmutable(不変)でない,からです.実際,pythonやjavascriptの文字列(リテラル)は破壊的に変更することはできませんが,rubyの文字列は破壊的に変更することができます. ('abc'.concat('d')の様に)
これがどういう違いを生むかというと,コード上に直接現れる文字列がimmutable(不変)であるならば,実行時に一つだけそのオブジェクトを作成し,後はそれを使いまわすという最適化ができます.
そうした時,Hashのkeyの様なプログラマから見た文字列というのは,プログラムコード上のリテラルとして現れるわけですが,これらは実行時に一つだけオブジェクトが作成され(特にコード上に現れる同じ文字列は全て一つのオブジェクトにまとめると),それらの比較はそれらに対する参照(そしてこれは大抵メモリのアドレスなど単なる数値)の比較で済むので,結局Symbolと同じ様な働きをするわけです.
本当はプログラマが見るためだけの文字列だけど,それをオブジェクトとしての文字列としても,Symbolと同じ様な働き,パフォーマンスが得られるならば,別にオブジェクトとしての文字列であってもいいわけです.
繰り返しになりますが,プログラマが見るためだけの文字列は,その中身・実態は何でもいいわけですが,その実態がオブジェクトとしての文字列でも十分なパフォーマンスが得られるならば,別にオブジェクトとしての文字列でもいいわけです.
さて,rubyに話を戻しますと,rubyはコード上に現れる文字列であっても,実行時にそのコードを通る度に毎回新たな文字列オブジェクトを作成します.
(以下のプログラムを動かすことで確認できる.)
def foo 'foo'.object_id end p foo, foo
つまり,rubyでは文字列が可変であるため,先に述べたような最適化ができない(または難しい)ので毎回新たな文字列オブジェクトが作成されるのです.
こうなると,先ほどの話とはうってかわって,プログラマが見る文字列はその実態は何でもいいのに,それを文字列リテラル(rubyのオブジェクトとしての文字列)にしてしまうと,毎回毎回文字列オブジェクトが作成されてしまうという非常にばかばかしい状況になってしまいます.我々はそれらの文字列オブジェクトに文字列としての操作は一切施さないのにも関わらず,です.
こういうわけで,rubyではプログラマが見るためだけの文字列にSymbolというruby特有のものを使うのです.
もちろん,プログラマが見るためだけの文字列を全て定数として(そしてもちろん中身は適当な値で)定義しても構わないわけですが,Hashのkeyとかで数多くのプログラマが見るためだけの文字列が現れることを考えると,とてもじゃないですけどそんなことは面倒でやってられないですよね.ですので,実行時に自動で適当な値にしてくれるSymbolというものが存在するのです.
以上で,Symbolについての説明を終えます.以下は蛇足です.
最初の方で出てきたfill関数をrubyで実装しようとしたとき,青・赤・緑の各色はその実際の値はなんでもいいのでrubyのSymbolを使って:blue, :red, :greenとしてもいいのですが,ライブラリとかでは大抵ちゃんと定数として定義されていることが多いです.
これは恐らく,定数として明示的に定義することで値の存在を明示でき,ドキュメント化の際にも役立つことによっているのでしょう.
しかし,あくまでこれは外部に公開するようなライブラリでの話であって,自分が使うちょっとしたプログラムならこういう場面でも精力的にSymbolを使っていってもいいと思います.ちなみに,僕ならSymbolを使います.
Symbolだと定義もいりませんし,定数は大文字ですから打つのが面倒ですし,あまりソースに大文字が入ると見た目がすっきりしません(主観).
Symbolは非常に便利なものですので,その意義・用途を十分に理解して,Hashのkeyにとどまらず様々な所で使えるようになりましょう.
旭茉莉(昆蟲白)、Happy New-Yearが言いたくて(南野陽子)、一直到底(Nipples)、赤い戦車(ヤプーズ)、南方蝶道(甜梅號)、
一個人的水道(甜梅號)、Air on the G string(Bach)、春夏秋(チャットモンチー)、激光中(羅文)、Merry Christmas Mr. Lawrence(坂本龍一)、
恋愛スピリッツ(チャットモンチー)、安眠藥(歐陽靖 陳奐仁)、甜蜜蜜(薛凱琪)、MAY(斉藤由貴)、ダンシング・ヒーロー (荻野目洋子)、
雙失情人節(Twins)、青山黛瑪(何韻詩)、汽水樽裡的咖啡(何韻詩)、情歌(側田)、when i listen to the field mice(my little airport)、
習慣失戀(容祖兒)、糖不甩(薛凱琪)、VALON-1(Salyu)、戀人未滿(S.H.E)、美空雲雀(何韻詩)
東風(Yellow Magic Orchestra)、Lucky(スーパーカー)、我有一段情(吳鶯音)、曙(ゲルニカ)、2EM12_KK_A09(ヱヴァ破)、
光榮之家(何韻詩)、北歐是我們的死亡終站(my little airport)、隆重登場(容祖兒)、電力組曲 C:電化の暮らし(ゲルニカ)、妮歌(何韻詩)、
Komm, Susser Tod/甘き死よ、来たれ(Arianne )、ホープ(testpattern)、給十年後的我(薛凱琪)、安靜了(S.H.E)、女朋友(歐陽靖 陳奐仁)、
体操(YMO)、You Only Live Twice(Nancy Sinatra)、小茉莉(楊丞琳)、Oh!(少女時代)、圓謊(容祖兒)、
管他什麼音樂(范曉萱&100%)、Blue Paradise(Martin Denny)、泡泡(魏如萱)、Sunny Road To Salina(Christophe)、Be True(容祖兒)、
優しいたそがれ(南野陽子)、最後的歌(楊千嬅)、Le premier chagrin d'amour(France Gall)、眼球綺譚(戸川純ユニット)、愛しのキッズ(小島麻由美)、
月世界旅行(アポジー&ペリジー)、韻律泳(何韻詩)、飛べない翼(Lily Chou Chou)、手のなるほうへ(チャットモンチー)、ヒステリヤ(ヤプーズ)、
Green Grass Of Tunnel(Mum)、夢伴(梅艷芳)、舊約(何韻詩)、再見...露絲瑪莉(何韻詩)、AXIA~かなしいことり~(斉藤由貴)、
就算世界無童話(衛蘭)、점핑(Kara)、夢のスキマ(鷺巣詩郎)、空しき流れ(鷺巣詩郎)、閉塞の拡大(鷺巣詩郎)
那年夏天寧靜的海(王心凌)、痛愛(容祖兒)、落寞莉(昆蟲白)、憤怒の河(戸川純)、惚たる蛍(チャットモンチー)、
愛一個上一課(容祖兒)、最後一課(容祖兒)、時不與我(容祖兒)、Dear. Mom(少女時代)、男孩像你(薛凱琪)、
沙堡壘(容祖兒)、A Wishful Way(Hopscotch)、ONE(斉藤由貴)、拳銃(チャットモンチー)、脆弱(謝安琪)、
立つ鳥跡を濁さず(トップをねらえ2!!)、時の河を越えて(トップをねらえ!)、親知らず(チャットモンチー)、媽媽我考試考100分(selfkill)、搜神記(容祖兒)、
想想(何欣穗)、リフトの下で逢いましょう(南野陽子)、ギルガメッシュ(ヤプーズ)、Roller Coaster Rock(selfkill)、a love song(EGO-WRAPPIN')、
愛將(梅艷芳)、手のなるほうへ(チャットモンチー)、petsounds(the beach boys)、香格里拉(魏如萱)。
RADWIMPS、相対性理論、神聖かまってちゃん、世界の終わり、androp、amazarashi、The Mirrazといった、『語るように歌う』ロックバンドが最近勢いを増している。
彼らの大きな特徴は、その歌唱法にある。
従来のヒップホップのラップでは、声にドスを効かせたり、『Yo!』『Check It Out!』といったヒップホップではお馴染みのキーワードを口にしたり、語尾でキッチリと韻を踏んだりするが、彼らの歌唱法はそれとはかなり異なる。
ヒップホップのラップほどに声を作らず、日常会話のように、朗読のように歌詞を口にする。そのままでは朗読になってしまうので、テンポを上げて、跳ねるようなリズムを取り入れている。そこに少しメロディラインを混ぜたような歌い方。これまでの音楽にはない、独特のグルーブが感じられて、新鮮味がある。
歌詞の内容も、従来のヒップホップやJ-POP、ロックバンドと比べると一風変わっている。
従来のヒップホップの大きなテーマは『自分を誇る』ことであり、歌詞の内容も、自分のラップのスキルの凄さを自慢したり、気に入らないラッパーをDisったりといった、アウトローの雰囲気を感じられる歌詞が多かった。
それとは別にJ-POPでは『恋愛』や『前向きに生きていくこと』が比較的多く歌われる。これはヒップホップが台頭して、ラップをJ-POPに取り入れるようになってからも変わっていない。ケツメイシ、GREEN、FUNKY MONKEY BABYS、遊助、ヒルクライムなどが代表的だ。J-POPでのラップは、ヒップホップほど相手を威嚇しないようにはなったものの、依然としてヒップホップ的フックの雰囲気(『Yo!』といった掛け声)は残っている。
それらと比べると、『語るように歌う』系のロックバンドの歌は、あまりに歌う内容が違いすぎる。
彼らが歌う内容で多いのは『次元の捉え方』『記号・数式』『あの世・死生観』『死にたい』『言葉遊び』『ポストモダン』などであり、そこには従来歌われていたテーマは微塵も感じられない。歌詞はひねくれているのにメロディやキャッチーで親しみやすいから、そのギャップに困惑してしまう人も多いだろう。
それともう一つ重要なのは、ヒップホップ性を意図的に排除しているということだ。彼らはヒップホップ的なフックを全く使わない。DJもターンテーブルのスクラッチ音も入れない。歌詞の内容も自分を全く自慢しない。むしろメンヘル的なイメージさえ感じられる。アウトロー性もほとんどなく、ヒップホップを象徴するアクセサリーやファッション・アートワークも用いない。その徹底的な姿勢は、まるでヒップホップから『語るような歌い方』を奪い取ろうとする姿勢さえ感じる。そういった意味では、ヒップホップへのアンチテーゼとも言えなくない。ヒップホッパーも、この現象には困惑しているだろう。
これらの歌い方をするバンドを『念仏系』と呼ぶ人がいたが、案外的を得ているかもしれない。
この歌唱法を広めたのはRADWIMPSだが、結局のところこの歌唱法は時代が要請したものだったのだろう。価値観の反転、雇用制度の崩壊、複雑化した世界――そういった時代を表現するためには、従来の歌唱法だけでは足りなかったのだ。今後この歌唱法がどのようになっていくかは分からないが、僕としては静かに見守っていく次第である。
ナルトと悟空はゲームキャラじゃねえっつーか悟空よりナルトの方がメジャーなのかと思いつつ
日本生まれキャラは21人と書いてあるけどもっと多くね?と思って数えてみた
1. マリオ (Donkey Kong,Nintendo,1981)
2. リンク (The Legend of Zelda,Nintendo,1986)
4. ソリッド・スネーク (Metal Gear,Konami,1987)
5. クラウド・ストライフ (Final Fantasy VII,Square,1997)
10. ソニック (Sonic the Hedgehog,Sega,1990)
14. サムス・アラン (Metroid,Nintendo,1986)
18. カービィ (Kirby's Dream Land,Nintendo,1992)
20. ピカチュウ (Pokemon Red/Green,Nintendo,1996)
21. ヨッシー (Super Mario World,Nintendo,1990)
23. ロックマン/メガマン (Mega Man,Capcom,1987)
25. シャドウ (Sonic Adventure 2,Sega,2001)
28. ダンテ (Devil May Cry,Capcom,2003)
29. ナルト (Naruto: Konoha Ninpoch,Bandai,2003)
31. ゼルダ (The Legend of Zelda,Nintendo,1986)
32. セフィロス (Final Fantasy VII,Square,1997)
33. ドンキーコング (Donkey Kong,Nintendo,1981)
36. レオン (Biohazard/Resident Evil,Capcom,1996)
37. サトシ/アッシュ・ケッチャム (Pokemon Red/Green,Nintendo,1996)
41. 悟空 (Dragon Daihikyo,Epoch,1987)
43. ジル・バレンタイン (Biohazard/Resident Evil,Capcom,1996)
44. ピーチ姫(Super Mario Bros.,Nintendo,1985))
47. バウザー(クッパ) (Super Mario Bros.,Nintendo,1985)
49. リュウ (Street Fighter,Capcom,1987)
何か勘違いしてる??
渡米して数年のポスドク。最近やや行き詰まり気味なので、現実逃避しつつ現状把握および打開策を見つけるためにパソコン内を再構築中。時期的に興味を持たれる人もあろうかと思ったので、恐る恐る一応公開してみることに。
([]はフォルダ)
http://anond.hatelabo.jp/20100201195714
http://a.hatena.ne.jp/tkamakura/
http://b.hatena.ne.jp/tkamakura/
# BEginer BEginer 2010/01/01CommentsAdd Star
# tkamakura tkamakura 神奈川県横浜市の建築設計事務所です。ご相談は無料です。お気軽にご相談ください。 21世紀をリードする楽しい住まいづくりをします。 / 得意用途:住宅、共同住宅、幼稚園、店舗など 2009/10/01CommentsAdd Startkamakura (green)tkamakura (green)tkamakura
http://b.hatena.ne.jp/entry/homepage2.nifty.com/kamakurakentiku/
読みにくい日本語より、読みやすい英語のほうが理解できる場合もあるんじゃね。
とりあえず次のように仕分けして単語覚えてるんだが、他にいい方法があったら教えてくれ。
1、主語やツール ex) people, economic sanction, logic, logician, normalization,
2 分析語 ex) strength:strong、color:green, normality:normal
3、変態語 ex) cut, build, create, burst, feel, get well, grow,solve, think, transform
4、移動語 ex) walk, fall, go up, speak, travel, eat, take, give, get, buy
共同住宅で、地デジ対応の37インチAquos持ってて、引っ越した先にケーブルTV/インターネット回線がなかった。
NTTの子会社運営の賃貸マンションだし、小じゃれたデザインで気に入ったので入居したのだが、Fletsにコンテンツを牛耳られた。
どれくらい小じゃれたマンションかというと、廊下が吹き抜けで植物が生えていて、部屋の中に玄関とリビングの境目がなく50平米超えてて1ルーム、という具合。いやっほー!
肝心のネットワーク環境についてはFletsに完全に依存していて、Mondo21もGreenチャンネルもDiscovery HDも見られてうほっほーい!といいたいところたが、地上波チャンネルを見てると「お使いのアナログ放送は2011年で」終了のお知らせがしばしば出てくる。
総務省に問い合わせるべー、と思ったら、「共同アンテナの住宅では管理者・オーナーとお話しください」みたいな感じで、それじゃ埒があかんから調べとんやないけ。
んー、まあテレビ見られなくても「アナログ」って書いてあっても別にいいんだよ。もう別の方法できっと地上波が見られるようになるんだ。
服はフレアのスカートをはいてみれば学生には見えなくなるよ。トップスもVネックのTシャツにカーディガンを羽織るとか。色味を抑えてモノトーンでまとめるのが無難だと思う。
高いブランドを買う必要はなく、雰囲気が大人っぽいところにはいって着れそうだと思うデザインのものを着ればよいと思う。個人的には無難で値段が安すぎも高すぎもしないのでNatural Beauty Basicがお勧め。あとはUnited Arrowのgreen labelあたりで買ってみればいいんじゃないかなー。めんどくさいなら通販でセットで頼んでみるとかでもいいかもだけど。
シンプルなワンピースを着るのなら、ちょっとヒールの靴をはいてみて、小さめのシンプルな鞄を持つようにすればそれとなく収まるような気もするけど。
ttp://www.globalresearch.ca/index.php?context=va&aid=14005
1. 40% of all workers in L. A. County (L. A. County has 10.2 million people) are working for cash and
not paying taxes. This is because they are predominantly illegal immigrants working without a green card.
L. A.郡(L. A.郡には、1020万人がいる)のすべての労働者の40%は現金のために働いていて、税を払っていると
いうわけではない。これは、彼らがグリーンカードなしで働いている主に不法移民であるから
2. 95% of warrants for murder in Los Angeles are for illegal aliens.
3. 75% of people on the most wanted list in Los Angeles are illegal aliens.
ロサンゼルスで最も多くの指名手配リストの75%の人々は、不法入国者
4. Over 2/3 of all births in Los Angeles County are to illegal alien Mexicans on Medi-Cal, whose births
were paid for by taxpayers.
ロサンゼルス郡のすべての出生の2/3以上は不法入国のメキシコ人、それらの出生は納税者の健康保険による
5. Nearly 35% of all inmates in California detention centers are Mexican nationals here illegally
YourFileHostのCAPTCHA画像をなんとかするの続き。
その後、適当にいじったら、手元環境で1枚あたり25秒くらい→だいたい2.5秒くらいで判別できるようになった。このくらいなら使えるかな。
速度向上に一番効いたのは、Token#importで画像を比較しているところの修正。他は細かい手直し。
使い方は前のやつと変わってません。
あと、テストに100枚くらいCAPTCHA画像食わせてみたけど、とりあえず全部正しく判定できた。
カレントディレクトリ以下にある*.gifなCAPTCHA画像ファイルを適当に判別するスクリプト。動作確認用にどうぞ。
後述のdecaptcha.rbと同じディレクトリに適当に置いてchmod +xしてね。
#!/usr/local/bin/ruby $LOAD_PATH << File::dirname(File::expand_path($0)) require 'decaptcha' STDOUT.sync = true Dir.glob('*.gif').sort.each do |file| correct = File::basename(file, '.*') puts "Processing file: #{file}" start_time = Time.now ret = DeCAPTCHA.decode(file) elapsed = Time.now - start_time puts " Result: #{ret} (=> #{(correct == ret) ? "Ok" : "Fail"})" puts " Elapsed time: #{elapsed}" puts end
#!/usr/local/bin/ruby require 'rubygems' require 'gd2' require 'pp' # #= CAPTCHA画像解析モジュール # CAPTCHA画像ファイルを食わすとあら不思議、Stringが出てくるよ。 # YourFileHostのやつに対応。 # #== Usage # decoded_str = DeCAPTCHA.decode("some_captcha_image.gif") #=> String # 失敗したらnilが返る。 # module DeCAPTCHA DEBUG = false #=== CAPTCHA画像デコード # file:: 画像ファイル名のパス # method:: 未指定でよい。男は細かい事を気にするな。 # returns:: CAPTCHA画像解析結果(String) or nil (デコード失敗時) def self.decode(file, method = DeCAPTCHA::Site::YourFileHost) return method.new(file).decode end #= CAPTCHA画像デコード用クラス # このクラスのサブクラスはimport, tokenize, stream_parseメソッドの # 実装を含む必要がある。 class Site def initialize(file = nil) @pix = nil self.import(file) unless file.nil? end def decode return stream_parse(tokenize()) end end #= YourFileHostのCAPTCHA画像を解析するクラス class Site::YourFileHost < Site def import(file) @pix = PixelMatrix.new.import(file) return self end # importしたイメージ(PixelMatrix)から、文字と思わしきパターンを # 抽出して上下マージンを切り取ってArrayにして返す。 # returns:: Array of PixelMatrix def tokenize ret = [] state = :initial for x in 0...@pix.width case state when :initial if !@pix.vline_blank?(x) then state = :tokenize pixel = PixelMatrix.new(0, 0, true) ret << pixel redo end when :tokenize if @pix.vline_blank?(x) then state = :initial next end x0 = pixel.width for y in 0...@pix.height pixel[x0, y] = @pix[x, y] end else raise 'NOTREACHED' end end ret.map! {|token| Token.new.import(token.cutoff_vmargin!) } end # PixelMatrixのArrayを受け取り、数字を判別。 # tokens:: Array of PixelMatrix # returns:: String (判別結果) def stream_parse(tokens) rs = tokens.map {|x| x.guess.to_s }.join('') if rs.length != 4 then rs = nil if DEBUG then puts '- guess failed. dumping guess result of each token:' tokens.each_index do |i| print "##{i}:#{tokens[i].guess} " pp tokens[i].candidate end puts end end return rs end class Token @@digits = nil attr_accessor :candidate def initialize if @@digits.nil? then # 文字画像サンプルを作っておく @@digits = DIGITS_ASSOC.map {|digit| PixelMatrix.new(0, 0, true).import_array(digit) } end @candidate = Hash.new end # PixelMatrixを受け取り、文字画像サンプルと比較して # 一致率を計算しておく。 # pixel:: PixelMatrix # returns:: self def import(pixel) @@digits.each_index do |i| digit = @@digits[i] if (digit.width - pixel.width).abs > 4 or (digit.height - pixel.height).abs > 4 then @candidate[i] = -1 # サイズが違いすぎな場合、一致させない next end correct_bits = 0 enlarged_width = [digit.width, pixel.width ].max enlarged_height = [digit.height, pixel.height].max for y in 0...enlarged_height dy = (y.to_f / digit.height * enlarged_height).to_i py = (y.to_f / pixel.height * enlarged_height).to_i for x in 0...enlarged_width dx = (x.to_f / digit.width * enlarged_width).to_i px = (x.to_f / pixel.width * enlarged_width).to_i correct_bits += 1 if digit[dx, dy] == pixel[px, py] end end @candidate[i] = correct_bits * 100 / (enlarged_width * enlarged_height) end return self end # importのときの比較結果をもとに文字を推測 # returns:: Fixnum or nil(失敗時) def guess digit, ratio = @candidate.sort {|a, b| a.last <=> b.last}.last digit = nil if ratio < 0 or ratio < 65 return digit end end end #= 画素マトリックスクラス # 画像ファイルを食わせると、各ピクセル(画素)を2値(black(1) or white(0))に # 変換して、内部で保持する。 # 以後、Matrixクラスのような感じで個々の画素にアクセスできる。 class PixelMatrix BLACK = 1 WHITE = 0 attr_accessor :width attr_accessor :height # width:: 幅 # height:: 高さ # is_flexible:: 自動的に伸張するか def initialize(width = 0, height = 0, is_flexible = false) @matrix = Hash.new {|hash, key| hash[key] = Hash.new(WHITE)} @width, @height, @flexible = width, height, is_flexible end # file:: 画像ファイル名のパス # brightness_threshold:: 画素を黒とみなす閾値 (0 - 255, default: 0x40) # returns:: self (DeCAPTCHA::PixelMatrix) def import(file, brightness_threshold = 0x40) gd = GD2::Image.import(file) @width, @height = gd.width, gd.height self.each_with_axis do |x, y| color = gd[x, y] greyscale = (color.red + color.green + color.blue) / 3 self[x, y] = (greyscale > brightness_threshold) ? WHITE : BLACK end return self end def import_array(array) array.each_with_index do |str, y| str.split('').each_with_index do |c, x| self[x, y] = c.to_i end end return self end # PixelMatrixを画像ファイルとしてexport # file:: 新たに作る画像ファイル名のパス def export(file) gd = GD2::Image::IndexedColor.new(@width, @height) gd.palette << GD2::Color::WHITE gd.palette << GD2::Color::BLACK self.each_with_axis do |x, y| gd[x, y] = { WHITE => GD2::Color::WHITE, BLACK => GD2::Color::BLACK, }[self[x, y]] end gd.export(file) return self end # 指定された位置の画素を返す。 # returns:: PixelMatrix::BLACK(1) or WHITE(0) def [](x, y) if !@flexible and !in_range?(x, y) then raise RangeError end return WHITE if !@matrix.has_key?(y) # XXX: for optimize return @matrix[y][x] end # 画素に値を設定。 # returns:: PixelMatrix::BLACK(1) or WHITE(0) def []=(x, y, val) unless in_range?(x, y) then raise RangeError unless @flexible @width = (x >= @width) ? x + 1 : @width @height = (y >= @height) ? y + 1 : @height end @matrix[y][x] = val end def in_range?(x, y) ((0...@width) === x and (0...@height) === y) end # 指定された軸をもとに画素を走査し、Arrayに変換。 # 例えば、to_a(:vertical, 10) とすると、x == 10 な列を取り出して # Arrayにして返す。 # # axis:: 軸を指定 (:vertical または :horizontal) # pos:: 位置を指定。_axis_で指定した軸と直交する軸における位置を指定。 def to_a(axis, pos) {:vertical => lambda { (0...@height).map {|y| self[pos, y]} }, :horizontal => lambda { (0...@width).map {|x| self[x, pos]} }, }[axis].call end # returns:: Array def hline(y) self.to_a(:horizontal, y) end # returns:: Array def vline(x) self.to_a(:vertical, x) end # X軸方向に画素を走査。 # y:: どの位置で走査するか # returns:: 指定された軸の上にドットが存在: false, 無い: true def hline_blank?(y) return true if @matrix.has_key?(y) == false # XXX: for optimize for x in 0...@width return false if self[x, y] == BLACK end return true end # Y軸方向に画素を走査。 # x:: どの位置で走査するか # returns:: 指定された軸の上にドットが存在: false, 無い: true def vline_blank?(x) for y in 0...@height return false if self[x, y] == BLACK end return true end # 上下のマージンを削除した新しいPixelMatrixを返す。 # returns:: PixelMatrix def cutoff_vmargin pixel = PixelMatrix.new(0, 0, true) head = 0 tail = self.height - 1 head.upto(tail) do |y| if !self.hline_blank?(y) then head = y break end end tail.downto(head) do |y| if !self.hline_blank?(y) then tail = y break end end head.upto(tail) do |y| 0.upto(self.width - 1) do |x| pixel[x, y - head] = self[x, y] end end return pixel end # 自身の上下のマージンを削除する。cutoff_vmarginの破壊版。 # 速度稼ぎのために直接@matrixを触ったり、すこしずるをしている。 # 効率は、ほんの少しだけ速くなったような誤差の範囲のような感じ。 # returns:: self (PixelMatrix) def cutoff_vmargin! head = 0 tail = self.height - 1 head.upto(tail) do |y| if !self.hline_blank?(y) then head = y break end end tail.downto(head) do |y| if !self.hline_blank?(y) then tail = y break end @matrix.delete(y) if @matrix.has_key?(y) # XXX end if head > 0 then head.upto(tail) do |y| next if !@matrix.has_key?(y) # XXX @matrix[y - head] = @matrix.delete(y) # XXX end end self.height = tail - head + 1 return self end def each_with_axis for x in 0...@width for y in 0...@height yield(x, y) end end end end end class DeCAPTCHA::Site::YourFileHost::Token DIGITS_ASSOC = [ # 0 ["00000000011111110000000000", "00000001111111111110000000", "00000011111000001111000000", "00001111111100010011110000", "00011111100000110000111000", "00111111000000100001111000", "00111111110001000001111100", "01111111000010000011111110", "01111100000110000111111110", "01111111000100000111111110", "11111100001000001111111111", "11100000001000011111111111", "11111000010000011111111111", "11111000110000111111111111", "10000000100001111111111111", "01100001000001111111111110", "01100010000011111111111110", "01100010000111111111111110", "00111100000111111111111100", "00011100001111111111111000", "00001100011111111111111000", "00001111111111111111100000", "00000011111111111111000000", "00000000111111111100000000"], # 1 ["00001", "00111", "11111", "11111", "10001", "00001", "00001", "00001", "00001", "00001", "00001", "00001", "00001", "00001", "00001", "00001", "00001", "00001", "00001", "00001"], # 2 ["0000011111111110000000", "0001111111111111000000", "0011110000000010000000", "0110000000000100000000", "1100000000001100011110", "1000000000001000001111", "1000000000010000000111", "1000000000110001111111", "1000000000100001111111", "1000000001000000011111", "0100000011000001111111", "0011000010000111111110", "0011000110000001111110", "0000001100000111111100", "0000001000011111110000", "0000011000000111100000", "0000110000000000000000", "0000111111111111111111", "0001111111111111111110", "0011111111111111111100", "0011111111111111111100", "0111111111111111111000", "0111111111111111110000"], # 3 ["000000011111111110000000", "000001111111111111100000", "000011100000011111111000", "000111000000111111111000", "000110000001111111111100", "000100000001111111111100", "000100000011111111111100", "000110000111111111111000", "000010000111111111111000", "000000001111111111100000", "000000011111111111000000", "000000011111111110000000", "000000000000001100000000", "000000000000011100011100", "000000000000111000111110", "000000000000110000001110", "000000000001110001111111", "110000000011100011111111", "111000000111000000111110", "011100000110001111111100", "001111001110000111111000", "000011111100000011100000", "000000011000111000000000"], # 4 ["0000000000011", "0000000000011", "0000000000111", "0000000001111", "0000000001111", "0000000011111", "0000000111111", "0000000110111", "0000001100111", "0000011100111", "0000011000111", "0000110000111", "0001110000111", "0001100000111", "0011000000111", "0111000000111", "0111111111111", "1111111111111", "0000000000111", "0000000000111", "0000000000111", "0000000000111", "0000000000111"], # 5 ["000000001111111111111110", "000000011111111111111100", "000000111111111111111100", "000000111111111111111000", "000001111111111111110000", "000011100000000000000000", "000011011111111110000000", "000111111111111111000000", "001111100000000111000000", "001110000000000110001100", "000000000000000100011110", "000000000000001100000110", "000000000000011000011111", "000000000000011001111111", "000000000000110000011111", "000000000001100000111111", "110000000001100111111110", "011000000011000001111110", "011100000110000011111100", "001111000110011111111000", "000111111100001111110000", "000001111100000011000000", "000000001000011000000000"], # 6 ["000000000000000110000000", "000000010001111111111000", "000001110000011100111100", "000011100000011000001000", "000111000011111000000000", "001111000001110000000000", "001110000000111100000000", "011110001111111111100000", "011100000111000011110000", "011000000010000001111000", "011000011110000011111100", "010000111100000111111110", "100000001000000111111110", "100001111000001111111111", "000011110000011111111111", "000000100000011111111111", "000011100000111111111111", "001111000001111111111110", "000010000001111111111110", "001110000011111111111100", "000111000111111111111000", "000011111111111111110000", "000000111111111111000000", "000000000111111000000000"], # 7 ["0011111111111110001111", "0011111111111100000011", "0111111111111000000110", "1111111111111000111100", "1111111111110000001100", "0000000000000000011000", "0000000000000011111000", "0000000011000000110000", "0000001110000011100000", "0000011110001111100000", "0000111100000011000000", "0001111000000110000000", "0001111000111110000000", "0011110000001100000000", "0011110000001000000000", "0011100011111000000000", "0011000001110000000000", "0001000000110000000000", "0000000111100000000000", "0000000111000000000000", "0000000011000000000000", "0000001110000000000000", "0000001100000000000000"], # 8 ["0000000111111111110000000", "0000011111111111111100000", "0000001111100000011110000", "0000000001110000000111000", "0011000011111000000011100", "0011100001111100000011100", "0011110000001110000011100", "0001111000011111000111000", "0000111100000111101110000", "0000011110000001111100000", "0000001111000011111110000", "0000111111110000011111000", "0011110011111000001111100", "0111100001111100011111100", "0111000000111110000111110", "1111000000011111000000111", "1111000000001111100011111", "1111000000000011111000010", "0111100000000001111100000", "0011110000000000111110000", "0001111110000001111110000", "0000011111111111111000000", "0000000011111110000000000"], # 9 ["000000111111111110000000", "000001111111111111100000", "000111111111111001111000", "001111111111110000010000", "011111111111110000010000", "011111111111100000100000", "011111111111000001100000", "111111111110000001000111", "111111111110000010000001", "111111111100000110000111", "011111111000000100011111", "011111111000001000001111", "001111110000011000011111", "001111100000010001111110", "000111110000100000011110", "000001111111100000111110", "000000011111000111111100", "000000000010000001111100", "000000000110000001111000", "000100001100011111110000", "000111001100001111100000", "000011111000001111000000", "000000010000110000000000"], ] end __END__
そんなわけで、みんな大好きなYourFileHostだけども、最近みてみたら、なんかCAPTCHA認証がついているわけじゃないですか。
でもこれってさーCAPTCHAといっても見るからに危ういというか、見れば見るほど簡単に破れてしまいそうな気がして、どうにもむずがゆいアンニュイな気分になってしまうわけです。
そんで、このたび適当にいじってみたところ、それなりに推測できるコードが書けたので、ここに張ってみますね。
やってることは単純で、こんな感じ
使い方は、こんな感じで
require 'decaptcha.rb' captcha_string = DeCAPTCHA.decode(filename) if !captcha_string.nil? then # 判別成功時の処理 else # 判別失敗時の処理。失敗することもあるのでよしなに。 end
あ、Ruby/GD2入れといてね。sudo gem install gd2とかで入ります。多分。
判別率はそこそこ良い感じになったんだけども、富豪プログラミングがたたってか、いかんせん遅いです。
手元だと1枚判別するのに20秒くらいかかることもある。
そんなわけで誰かチューニングしてくれるとうれしい。
実行速度を上げた改良版はこっちにうpしました。以下のコードは参考程度に。
#!/usr/local/bin/ruby require 'rubygems' require 'gd2' require 'pp' # #= CAPTCHA画像解析モジュール # CAPTCHA画像ファイルを食わすとあら不思議、Stringが出てくるよ。 # YourFileHostのやつに対応。 # #== Usage # decoded_str = DeCAPTCHA.decode("some_captcha_image.gif") #=> String # 失敗したらnilが返る。 # module DeCAPTCHA DEBUG = false #=== CAPTCHA画像デコード # file:: 画像ファイル名のパス # method:: 未指定でよい。男は細かい事を気にするな。 # returns:: CAPTCHA画像解析結果(String) or nil (デコード失敗時) def self.decode(file, method = DeCAPTCHA::Site::YourFileHost) return method.new(file).decode end #= CAPTCHA画像デコード用クラス # このクラスのサブクラスはimport, tokenize, stream_parseメソッドの # 実装を含む必要がある。 class Site def initialize(file = nil) @pix = nil self.import(file) unless file.nil? end def decode return stream_parse(tokenize()) end end #= YourFileHostのCAPTCHA画像を解析するクラス class Site::YourFileHost < Site def import(file) @pix = PixelMatrix.new.import(file) return self end # importしたイメージ(PixelMatrix)から、文字と思わしきパターンを # 抽出して上下マージンを切り取ってArrayにして返す。 # returns:: Array of PixelMatrix def tokenize getter, tokenizer = lambda {|queue| [ lambda { return queue }, lambda {|x, pixel| if pixel.nil? then x, pixel = tokenizer.call(x, PixelMatrix.new(0, 0, true)) queue << pixel return x end if !@pix.in_range?(x, 0) or @pix.vline_blank?(x) then return [x, pixel] end x0 = pixel.width @pix.vline(x).inject(0) do |y, color| pixel[x0, y] = color y + 1 end return tokenizer.call(x + 1, pixel) } ] }.call([]) x = 0 while (x < @pix.width) x = @pix.vline_blank?(x) ? x + 1 : tokenizer.call(x, nil) end getter.call.map do |token| # Token.new.import(token.cutoff_vmargin.shrink) Token.new.import(token.cutoff_vmargin) end end # PixelMatrixのArrayを受け取り、数字を判別。 # tokens:: Array of PixelMatrix # returns:: String (判別結果) def stream_parse(tokens) r = [] tokens.inject(nil) do |prev, cur| r << cur.guess end rs = r.map {|x| x.to_s}.join('') if rs.length != 4 then if DEBUG then puts '- guess failed. dumping guess result of each token:' tokens.each_index do |i| print "##{i}: " pp tokens[i].candidate end puts end return nil end return rs end class Token @@digits = nil attr_accessor :candidate def initialize if @@digits.nil? then # 文字画像サンプルを作っておく @@digits = DIGITS_ASSOC.map {|assoc| PixelMatrix.new(0, 0, true).import_assoc(assoc) } end @candidate = Hash.new end # PixelMatrixを受け取り、文字画像サンプルと比較して # 一致率を計算しておく。 # pixel:: PixelMatrix # returns:: self def import(pixel) gcd = lambda {|a, b| a, b = [b, a] if a < b return a if b == 0 r = a % b return gcd.call(b, r) } lcm = lambda {|a, b| a * b / gcd.call(a, b) } mul_to_lcm = lambda {|a, b| g = gcd.call(a, b) [b / g, a / g] } 0.upto(@@digits.size - 1) do |i| if (@@digits[i].width - pixel.width).abs > 4 or (@@digits[i].height - pixel.height).abs > 4 then @candidate[i] = -1 # 比較対象とサイズが違いすぎ next end mul_ax, mul_bx = mul_to_lcm.call(@@digits[i].width, pixel.width) mul_ay, mul_by = mul_to_lcm.call(@@digits[i].height, pixel.height) enlarged_width = @@digits[i].width * mul_ax enlarged_height = @@digits[i].height * mul_ay # 文字画像サンプルと比較対象画像のサイズをあわせる # 幅・高さをそれぞれ適当に整数倍して、最小公倍数に合わせて比較 # (めんどうだから) correct_bits = 0 (0...enlarged_width).each do |x| (0...enlarged_height).each do |y| if @@digits[i][x/mul_ax, y/mul_ay] == pixel[x/mul_bx, y/mul_by] then correct_bits += 1 end end end @candidate[i] = correct_bits * 100 / (enlarged_width * enlarged_height) end return self end # importのときの比較結果をもとに文字を推測 # returns:: Fixnum or nil(失敗時) def guess digit, ratio = @candidate.sort {|a, b| a.last <=> b.last}.last digit = nil if ratio < 0 or ratio < 80 return digit end end end #= 画素マトリックスクラス # 画像ファイルを食わせると、各ピクセル(画素)を2値(black(1) or white(0))に # 変換して、内部で保持する。 # 以後、Matrixクラスのような感じで個々の画素にアクセスできる。 class PixelMatrix BLACK = 1 WHITE = 0 attr_accessor :width attr_accessor :height # width:: 幅 # height:: 高さ # is_flexible:: 自動的に伸張するか def initialize(width = 0, height = 0, is_flexible = false) @matrix = Hash.new {|hash, key| hash[key] = Hash.new(WHITE)} @width, @height, @flexible = width, height, is_flexible end # file:: 画像ファイル名のパス # brightness_threshold:: 画素を黒とみなす閾値 (0 - 255, default: 0x40) # returns:: self (DeCAPTCHA::PixelMatrix) def import(file, brightness_threshold = 0x40) gd = GD2::Image.import(file) @width, @height = gd.width, gd.height self.each_with_axis do |x, y| color = gd[x, y] greyscale = (color.red + color.green + color.blue) / 3 self[x, y] = (greyscale > brightness_threshold) ? WHITE : BLACK end return self end # reverse function of to_assoc def import_assoc(assoc) assoc.inject(0) do |y, columns| columns.inject(0) do |x, color| self[x, y] = color x + 1 end y + 1 end return self end # PixelMatrixを画像ファイルとしてexport # file:: 新たに作る画像ファイル名のパス def export(file) gd = GD2::Image::IndexedColor.new(@width, @height) gd.palette << GD2::Color::WHITE gd.palette << GD2::Color::BLACK self.each_with_axis do |x, y| gd[x, y] = { WHITE => GD2::Color::WHITE, BLACK => GD2::Color::BLACK, }[self[x, y]] end gd.export(file) return self end def to_assoc (0...@height).map do |y| (0...@width).map do |x| self[x, y] end end end # 指定された位置の画素を返す。 # returns:: PixelMatrix::BLACK(1) or WHITE(0) def [](x, y) if !@flexible and !in_range?(x, y) then raise RangeError end return @matrix[y][x] end # 画素に値を設定。 # returns:: PixelMatrix::BLACK(1) or WHITE(0) def []=(x, y, val) unless in_range?(x, y) then raise RangeError unless @flexible @width = (x >= @width) ? x + 1 : @width @height = (y >= @height) ? y + 1 : @height end @matrix[y][x] = val end def in_range?(x, y) ((0...@width) === x and (0...@height) === y) end # 指定された軸をもとに画素を走査し、Arrayに変換。 # 例えば、to_a(:vertical, 10) とすると、x == 10 な列を取り出して # Arrayにして返す。 # # axis:: 軸を指定 (:vertical または :horizontal) # pos:: 位置を指定。_axis_で指定した軸と直交する軸における位置を指定。 def to_a(axis, pos) {:vertical => lambda { (0...@height).map {|y| self[pos, y]} }, :horizontal => lambda { (0...@width).map {|x| self[x, pos]} }, }[axis].call end # returns:: Array def hline(y) self.to_a(:horizontal, y) end # returns:: Array def vline(x) self.to_a(:vertical, x) end # X軸方向に画素を走査。 # y:: どの位置で走査するか # returns:: 指定された軸の上にドットが存在: false, 無い: true def hline_blank?(y) hline(y).find {|color| color == BLACK }.nil? ? true : false end # Y軸方向に画素を走査。 # x:: どの位置で走査するか # returns:: 指定された軸の上にドットが存在: false, 無い: true def vline_blank?(x) vline(x).find {|color| color == BLACK }.nil? ? true : false end # 上下のマージンを削除した新しいPixelMatrixを返す。 # returns:: PixelMatrix def cutoff_vmargin pixel = PixelMatrix.new(0, 0, true) head = 0.upto(self.height - 1) do |y| break(y) if !self.hline_blank?(y) end tail = (self.height - 1).downto(0) do |y| break(y) if !self.hline_blank?(y) end head.upto(tail) do |y| y0 = pixel.height self.hline(y).inject(0) do |x, color| pixel[x, y0] = color x + 1 end end return pixel end def each_with_axis (0...@width).each {|x| (0...@height).each {|y| yield(x, y)}} end end end class DeCAPTCHA::Site::YourFileHost::Token DIGITS_ASSOC = [ # 0 [[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0], [0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0], [0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1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, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0], [0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0], [0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], ] end __END__ Dir.glob('*.gif').each do |file| puts "Processing file: #{file}" p DeCAPTCHA.decode(file) end __END__
「脱ヲタ出来たのでまとめる。」の続き。
本気で胸糞悪いトラバ米・ブクマ米を読んで死ぬほどムカついた。
とは言え読み返してみると(完全に自分の文章を客観視するのは難しいけど)、前のエントリー、全体を通して
「典型的なキモヲタの書く文章」っぽく見えてヘコんだ。おそらく2年前の自分がこのエントリーを読んだら似たように煽ってるだろうとは思うが・・・精神的余裕の無さが細かいことにいちいち突っ込むようなはてブ雑魚的気質を形成してるんではないかと考えたが・・・とは言え冷静になればなるほど「書くんじゃなかった」と後悔させる。
今回、書く内容を「ボトムス編」にしようか「小物編」にしようか迷ったが、おそらく自分が思っているよりも増田のファッションはキモくない。そもそも「はてな」を使ってる時点で潜在的に「センス」を持っているため(断言)、服装に気を遣う人間は比較的多いのではないかと。そして誰かが指摘していたが「この増田『だけ』を信じるのは危ない」ってのがある。書いた当事者が言うのも何だが、まさしくその通りだと思う。だから「参考リンク」を張っておきたい{●●編とかは後日(予告。二日以内。)。}。「こんなサイト全部知ってる」「投げ槍でありがち手抜きだなあ」←それでも知らん奴が一人でもいたらそれでいいと思うから張る。
俺は何百人と数多くいる「脱ヲタ指導者(この世でもっともけまらしい指導者の一つ)」の一人に過ぎない。色々見て、「この人なら信用できそう」とか「このサイトだけ参考にした方が効率がいい」とかそういう個々にあった使い方をしてもらえたらと思う。と、どうしても押しつけがましい文章になるのは俺の中身がまるっきりヲタのまんまだからろう。一つ疑問なんだが「脱ヲタ」どうやったらできるんだ?
下の3サイトはかなり読んだ。それで今ようやく、さんざん指摘されてるとおり「格好に気を遣うようになった高校生レベル」だからなあ・・・偉そうに書いてて言うのも何だが、オサレ大学生レベルからはほど遠いよ。何年遅れだよっていう。だから俺の言ったこと全部実践したとしても「(スクールカーストで言うところの)1軍レベルが感覚・常識として自然と身についているレベル」にしかならないんじゃないかな。そりゃ今までの自分の格好知ってる奴に驚かれるのは気持ちいいものがあるがそれはある種のナルシズムとなんらかわりがない自己満足の域を出ないものだから、要は勇気がないということで、内面も徐々に変えていく必要があると思うけどそれについてはこれ読んでる増田の方が詳しいし教えてくれと思う。
ZOZOってのは服屋のまとめサイトみたいなもん。リア充じゃないと入れないようないろんな店の商品がここで買える。
実際に買わなくても全くもって問題ない。カタログ・ファッション誌的に使用すればいいから。スナップというか参考写真としてとにかく非常に使える。今も現役。ZOZOは神(「『ZOZOは神』とか言ってる時点でry」とか言われそうだが)。気になったのはお気に入りに登録(会員サービス)したり画像だけ保存したりして残しておくと実店舗での買い物時の参考にもなる。似たようなサイトで「SELECT SQUARE」てのがあるけどそれもお勧め(検索機能・ソート機能がZOZOに比べると使いにくいのでそこが不満だけど)
詳しくないけど。
(おそらく)海外でKillersマッシュアップが作られたのが一昨年だから、そのへんからムーヴメント自体はあったんじゃ?
iGot: [Mash-Up]The Killers VS. Green Leaves
痛ニュー及びはてブでは今年の7月に話題になってる。
はてなが本当に風で動いているのか確認してまいりました。
まず、日本自然エネルギー株式会社のホームページを確認いたしましたところ、
お支払いいただいた費用は、グリーン電力認証機構への申請業務等事務処理コストを考慮して、当社から契約している自然エネルギー発電事業者へ支払われます。発電事業者はこれを発電設備保守や新規発電設備の設置等自然エネルギーの普及に充てています。
と書かれておりました。
■企業のイメージアップ環境報告書やCSRレポートへの掲載や、ご契約時に提供している「Green Power」マークを利用した環境PRにより、企業のイメージアップが図れます。
ご契約いただいた電力量をある特定の建物、工場等で使用する電力の一部に置き換えることにより、「この建物で使用する電力○kWh分を自然エネルギーでまかなっています。」等のPRが可能です。また、そこで作られた製品は、「自然エネルギーから生まれた商品」と位置付けられます。
コンサート、展示会、イルミネーション等イベントで使用する電力として活用することにより、環境への配慮がアピールができます。
と書かれておりました。
つまり、はてなの「風で動いています」とは、宣伝行為以外の何者でも無いわけです。
しかも、「この建物で使用する電力○kWh分を自然エネルギーでまかなっています。」等のPRと説明されている部分を、勝手に「はてなのサービスは風で動いています」とまるではてなの全てが風で動いているような誤解を与える表現に変えています。
これは、完全に詐欺です。
したがって、「はてなのサービスは風で動いてます」は誇大広告であり、私たちは誇大広告の取り下げ訴訟を起こす準備を始める準備をしています。
「風で動いています=クリーン」というイメージを植え付けることは、本来の環境活動からかけ離れたものです。
みなさん、騙されてはいけません。
はてなは、風で動いてはいません。
http://www.nicovideo.jp/watch/sm1023673
前回の組曲は曲順書き起こしてくれた増田がいたんだが、今回は誰もアップしてないっぽいので置いとく。あったらごめん。
主にコメント見ながら聞いて書き起こしです。諸々ツッコミよろしくー。
イントロ
本編