「outer」を含む日記 RSS

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

2020-07-14

7/16 追記 好きなもの

毛布

いつも寝るときに抱えてる毛布。いまだに指しゃぶりが治らない(もう治す気もない)のでそれとセットで。

アレク

「あっちの電気つけて」って言ったら「あっちですか?」って聞き返してくるアレクサ好き。

家系ラーメン

最近ハマってる。お金がないから控えめだけど。

Outer Wildsのサントラ

宇宙を探索するゲームサントラSpotifyにもあるから聞いてみて。Travelersって曲がすごく好き。

つや姫

山形のお米。美味しい。

ゾイド

カッコいい。外骨格を付ける前の状態もすごく好き。最近電池入れてないけど。

辛い麺類

中本北極とか好き。辛すぎて途中で味が分からなくなるけど。カレーとかよりは辛い汁物が好み。

漫画

何でも読む。ジョジョは4部が好き。最近すごいなって思った漫画カラーズと明日ちゃんセーラー服

アニメ原画集

綺麗な線をみるとドキドキする。アニメ制作会社はボンズが好き。

ペンギン

特にアデリーペンギンかわいい

音ゲー

ゲーセンでも家でも。好きな曲もいっぱいあるし、いろんなタイプ音ゲーを遊んでる。

夕方

夕暮れ時。夕日と夜が一緒に見れる時間帯らへん。

浅草

美味しいものもあるし雰囲気が好きでよくいく。

文庫本

紙に印刷されてる読み物が好き。文字を一つ一つ追っていく感覚気持ちがいい。

プール

もともとなんとなく始めた水泳部。いつの間にか水の中にいることが好きになった。泳ぐのは遅い。

お酒

一人でも飲むし人とも飲む。一人でスマホいじりながら味を楽しむのも好きだし、わいわい人と飲むのも好き。

うざいイヌ

Undertaleというゲームに出てくるイヌ。うざい。しかしかわいいので好き。

ミスドロイヤルミルクティー

すごくおいしい。どうやったらあんなにおいしい紅茶ができるんだろう。

インク緑色ペン

学校に併設されてた文具屋で買ったんだけどいい色が出る。もう買えないので残りを大事に使ってる。

くじら

実は実際に見たことがない。でもすごく大きい生き物というだけでロマンを感じる。生き物としてのデザインも好き。

鎌倉

海に行くときはいつも鎌倉水族館にもいく。去年サーフィンに初挑戦してすごく楽しかった。

一緒にゲームしてくれる友人達

いつもありがとうゲームがへたくそだけどそれでも楽しく一緒に遊んでくれるからこっちも楽しい

辞書

暇なときぱらぱらとめくる。文字がいっぱいで楽しい

美術館

立体物のアートにはあまり興味がないけど絵画は好き。よく展覧会に行く。

変な印刷がされてる服

ウーパールーパースーパーパーカーピーターパーカー

スマブラの参戦PV

どれも好き。あんなにわくわくさせてくれるPVスマブラじゃないとできないね

人のルーティン動画

言い方が悪いけど人の生活を覗くのが好き。たまに「こんな丁寧な暮らし出来るか!!!」ってなる。

Steamチャット

めったに使うことないけど。なんかあのUIサイズ感が好き。

------

しゅうまい

やったー!

鶏肉コーラ醤油で煮込んだやつ

肉は柔らかくなるしおつまみにもおかずにも合う。美味しい。

タン

小学生の頃から焼き肉屋に行けばタン塩ばかり食べていた。歯ごたえがたまらない。

愛用しているメッセンジャーバッグ

手が塞がるのが嫌で長いこと使ってる。トラックカバーに使われていたという素材でできているので丈夫。

------------

ジェンツーは?

ジェンツーペンギンも飛び切り可愛いしかアデリーペンギンちょっとあほっぽいフォルムもたまらない。

うちの3歳児がまだ指しゃぶりしてるのでそろそろやめようと言い続けてたのだが

早いうちに止めさせた方がいい。自分はならなかったけどやはり出っ歯になるしあまりメンタル的にも良くないと聞く。

思い出したら追記していく

2020-07-08

ようやくLive Goldを36か月分入れたので、ゲームパスアップグレードしてちょっと話題になってたOuter Wildsをやり始めたんだけど

めちゃくちゃ操作がムズイし何をどうすればいいかよくわからんしで早くもつらい

出てくる人たちの目が4つあるのもなんつーか生理的にキツいものがある・・・そっちは序盤過ぎればほとんど見なくて済むけど

まあ他のゲームインスコしつつ攻略見ないでやれるだけやってみよ・・・

2020-06-03

[]2020年5月はてブあとで読むトップ30リスト

はてブホットエントリ(総合)で月内に数多く[あとで読む]タグを集めたエントリ

225あとで/1710users Windowsの「タスクマネージャー」を開発した本人が直々に使い方や知られざる機能を伝授 - GIGAZINE

151あとで/1895users Google社のテクニカルライティングの基礎教育資料がとても良かったので紹介したい - Qiita

136あとで/1235users Amazon従業員が学ぶ伝わる文章構成の極意|Sangmin Ahn|note

131あとで/1221users 社畜も唸るアマプラ邦画 - はてな匿名ダイアリー

122あとで/2599users アフリカ出身京都精華大サコ学長 コロナ問題でわかった「日本人のホンネ」 (1/4) 〈dot.〉|AERA dot. (アエラドット)

121あとで/1823users 普段使ってる便利なWebサービス教えて - はてな匿名ダイアリー

111あとで/1207users エンジニアはどのようにして技術を学べば良いのか | /etc/motg

110あとで/527users 第1回 CDN の 仕組み (CDNはどんな技術で何が出来るのか) | REDBOX Labo

110あとで/2292users いったい検察庁法改正案の何に抗議しているのか|徐東輝(とんふぃ)|note

110あとで/1539users 発信するということ|村本大輔note

109あとで/748users 伝わる提案書の書き方(スライド付)~ストーリーコピーデザイン法則 | knowledge / baigie

102あとで/1821users #検察庁法改正案に抗議します Q&A : 東京法律事務所blog

101あとで/962users 競技プログラミングで解法を思いつくための典型的な考え方 | アルゴリズムロジック

100あとで/552users JavaScriptの非同期処理Promise、AsyncとAwaitの仕組みをGIFアニメ解説 | コリス

100あとで/568users 便利なツールWebサービス - JavaScript勉強会

99あとで/605users 短編映画カメラを止めるな!リモート作戦!』本編 - YouTube

99あとで/807users 『無敗営業』の著者が語る営業のコツが学びが深すぎてヤバい!! - Togetter

99あとで/1342users AWSの膨大で複雑なサービス群をすべて「たった1行」で説明していくとこうなる - GIGAZINE

99あとで/1506users 太陽系消滅までの22分をループし続けるオープンワールド宇宙ADVOuter Wilds」がとんでもない傑作だった|てっけん|note

98あとで/1360users 【朗報iPadを使って英語論文10倍のスピードで読むライフハック発見される - Togetter

98あとで/1400users 八木啓代ひとりごと 黒川弘務の正体

97あとで/962users どうやってテクノロジーを追いかけていますか?ジュニアソフトウェア開発者として応募したときCI/CDクラウドコンピューティングDockerとか大量のことを要求されました。もういっぱいいっぱいです。 - Quora

96あとで/537users タダで学べるデータサイエンス名著5冊 【日本書は高額でも英語ができれば怖くない】 - Qiita

96あとで/516users 『みんなのデータ構造』でデータ構造の基礎を学んだ - valid,invalid

96あとで/561users 自動テスト限界を感じた私がなぜ形式手法に魅了されたのか - 若くない何かの悩み

94あとで/833users たった20万円で作ったサイトが6ヶ月後に月間300万PVを達成した方法SEO】|阿部隼也|note

93あとで/588users プロダクトの成功必要な 3 つのステージ20タスクについて:現場の動き方をまとめました|Fritz | Product Manager @ Mercari|note

92あとで/847users 大体いい感じになるKeynoteGoogleスライド無料テンプレートAzusa 3』作った - SANOGRAPHIX BLOG

91あとで/1353users 趣味電子工作をする前に知っておきたかたこと - izm_11's blog

91あとで/1291users コロナに乗じて町内会の属人業務改善しまくった一人のおばあちゃんの話 | Books&Apps

文章資料の書き方ハウツーが目立つ。今月もあとで読むタグは減少したままだが下げ止まり、少し反転した感じも。

2019-11-20

The Game AwardsのGOTYにノミネートされた和ゲー数の推移

「今年は和ゲーが元気だったね!」とかついつい言いがちだけれど、2016年悲惨なだけで他の年も割とコンスタントにGOTYノミニーに送り込んでいる。とはいえ2019年和ゲー4本は過去最多。あと国別にカウントすると、なんとアメリカ合衆国(累計11ノミネート)よりも日本(累計13本ノミネート)の方が多かったりする。

年度GOTYノミネート和ゲーGOTYノミネート和ゲー(国・開発会社
20142本ベヨネッタ2任天堂プラチナ
DARK SOULS IIフロム
【GOTY】Dragon Age: Inquisition(米・バイオウェア
Hearthstone(米・ブリザード
Shadow of Mordor(米・モノリス
20153本Bloodborneフロム
メタルギアソリッドV(コナミ
スーパーマリオメーカー任天堂
【GOTY】The Witcher 3(ポーランドCDプロジェクトレッド
Fallout 4(米・ベセスダ)
20160本【GOTY】Overwatch(米・ブリザード
Doom(米・id
INSIDE(デンマーク・Playdead)
Titanfall 2(米・リスポーン
Uncharted 4(米・ノーティドッグ
20173本【GOTY】ゼルダBotW(任天堂
ペルソナ5アトラス
スーパーマリオオデッセイ任天堂
Horizon Zero Dawnオランダゲリラゲームズ)
PUBG(韓国・PUBG Corporation)
20181本モンハンワールドカプコン【GOTY】God of War(米・SIEサンタモニカ
Assassin's Creed Odyssey(カナダ・UBIケベック
Celeste(カナダMatt Makes Games)
Marvel's Spider-Man(米・インソムニアック)
Red Dead Redemption 2(複数国・Rockstar Games
20194本デススト(コジプロ
スマブラSP任天堂、ソラ、バンナム
バイオRE2(カプコン
SEKIRO(フロム
Control(フィンランド・レメディ
The Outer Worlds(米・Obsidian)

ついでに過去和ゲーの各賞受賞リスト

2014 Developer of the Year任天堂
2014 Best Fighting Gameスマブラfor Wii U任天堂、ソラ、バンナム
2014 Best Family Gameマリオカート8任天堂
2014 Best Sports/Racing Gameマリオカート8任天堂
2015 Best Action/AdventureメタルギアソリッドV(コナミ
2015 Best Family Gameスーパーマリオメーカー任天堂
2015 Best Multiplayerスプラトゥーン任天堂
2016 Best VR GameRez Infinite(エンハンス)
2016 Best Fighting GameストVカプコンディンプス
2017 Best Game DirectionゼルダBotW(任天堂
2017 Best Score/Musicニーアオートマタスクエニプラチナ
2017 Best VR/AR Gameバイオ7(カプコン
2017 Best Action/AdventureゼルダBotW(任天堂
2017 Best Role Playing Gameペルソナ5アトラス
2017 Best Family Gameスーパーマリオオデッセイ任天堂
2018 Best VR/AR GameASTRO BOT(SIEジャパンスタジオ
2018 Best Role Playing Gameモンハンワールドカプコン
2018 Best Fighting Gameドラゴンボールファイターズバンナムアーク

追記ブコメの指摘を受けてベヨネッタ2スクエニから任天堂修正。ニーアとごっちゃにしてたっぽい。

2019-11-08

秋葉原エロゲ広告について思うこと

あるいはouter-insideさんへのラブレター

献血ポスター擁護してエロゲ広告非難する人へ

本質的には献血ポスター非難している人間と変わらないのでは?

非難するならする問題点をしっかり提示しろ

作品18禁からダメ派へ

作品18禁なこととそれの広告18禁であることは別だろ。

エロゲメディアミックスアニメ化漫画化されたら18禁でなく流通するのは現に行われており、問題になってないよね。

該当エロゲ広告単独18禁になるべき構成要素を持ってるならそれを提示してくれ。

子供に悪影響を与えるからダメ派へ

悪影響が起きた子供大人を屏風からだしてくれ。

あと、悪影響を想定しているときに、広告以上のエロゲ本体イメージをしてないか

もしそうなら条件反射で考えすぎ。

作品本体子供には手に入らないようになってるから広告の絵と文字以上は子供は受け取れない。

アングラを外に出すな派へ

半分同意

このような形とタイミングだと風当たりが強くなっていいことないし。

今回の手のひら返し非難する人へ

というかouter-insideさんへ。

ダブスタという意見に完全に同意

そのうえであいちトリエンナーレ献血ポスターも今回の広告問題ないと考えてる人間がいることを知ってほしい。

規制すな自制するな非難はされろと思ってる。

表現の自由戦士なんて便利なラベルでくくらないでくれ。

(同じことをフェミウヨサヨ男女LGBTって言葉にも思ってる)

自分漫画AVモザイクなしの性器が出てても良いし、18歳って雰囲気で決まってるようなアクセス制限はいらないと考えてる。

それらの規制になんら合理性はないと思ってるから

法律条例で決まっちゃった以上しかたないとあきらめてもいるけれど。

あなたの考える表現の自由という憲法上の権利を教えてくれ。

2019-04-06

いまのFalloutへの文句

けものフレンズ2が大いに荒れているそうだ。まー見てないけど。

から振り返って1のおはなし。あと、これけもフレに云々言うのではなくFO3/4への文句なのでご注意。

1のエンディングみゆはんの「ぼくのフレンド」。

歌詞はとりあえず置いといて映像を見る。

遊園地モチーフになっているように、世界観方面不安を煽っていく。

実際作中でも露骨ポストアポカリプス的な要素が散見されて、実際人類は滅んだとまで作中で言われているわけで。

でも、それでも前向きに話が終わっているから、逆にFalloutへの不満が思い出されてしまった。

ちょっと話は変わるが、「ポストアポカリプス」的なフェチめいたものはわりと歴史的サブカルチャーの中にあり続けた。

たとえば「ヨコハマ買い出し紀行」。最近だと「少女終末旅行」とか。

海外でいえば「マッドマックス」。ただこれはだいぶカルチャーの部分なのでゲームを見てみると、その中には「Fallout」という傑作が燦然と輝いている。

冷戦真っただ中で明日いきなり核兵器が頭の上に落っこちてくるっていうのがまああり得ない話ではなかった時代に生まれ作品が、そうした懸念が晴れた後の世代に影響を与えてできた作品と言えるのかもしれない。

Fallout」はどちらかといえば「1984」とか「すばらしい新世界」の方向かもしれないが、ジョーク的なレトロフューチャー世界に準じているし、そういうロマンが詰まっている。

ことにこれらの作品に顕著なのが、「破壊のあとに生きる人間」というテーマだ。

Fallout」の1、2を製作した製作会社の作品には特にこれが現れている。「war never changes」という言葉は「第三次世界大戦は石で殺し合う」という意味もあるのだが、大事なのは世界が終わっても人びとは生きるために殺し合う」という明確なテーマを指すものだった。

わたしが初めて「Fallout」に触れたのは3だった。もともと「Oblivion」が大好きだったのでこれにも結構ハマったわけだが、もっとハマったのは「New Vegas」だった。そしてあとになってやった「4」は救いようのない駄作だと感じた。

なにが不満かと言えば、結局は「古い世界への郷愁」をわざわざ誘うような展開ばかりだったからだ。そのうえローカライズは「人は過ちを繰り返す」と訳した。

3のマップデザインを見てほしい。廃墟ばっかじゃん。戦争から何百年とか経ってるのに、ビル建物あんまり風化してない。

何が言いたいかといえば、「人が住んでない」ようにしか見えないのだ。

レイダーにはまともな拠点とかないし、ウェイストランド人の居留地なんていうのも生活感がまったくと言っていいほどない。

4はもっとひどい。風景が「せいぜい戦後20年とかじゃない?」という程度なのだおかしいだろ!

その上4ではロールプレイの幅があまりにも狭すぎる。

オンラインのヤツはやっていないのだが、正直こんなゲームを出していくのならBETHESDAには二度とFalloutシリーズを作らないでほしい。

まあ、それは無理があるのでわたしはNVのスタッフが作ってる「The Outer Worlds」を楽しみにしておくということで、愚痴おしまい

https://www.youtube.com/watch?v=O4UEOhcbb20

2017-05-31

http://anond.hatelabo.jp/20170530233852

SQL意識して書かないと死ぬほど読みにくくなるのが気に入らない。

前の職場には何もかも全部大文字表記し、ろくに改行も入れないバカが居て死ぬほどつらかった。あろうことか、読みづらいクエリを書ける自分プライドを持ってるっぽかった。ああいう奴とは二度と仕事をしたくないよ。

SELECT COL0,COL1,COL2 FROM TABLE0 WHERE COL0=1000 AND COL2 IN (100,102)

これを少しでも読みやすくするために予約語大文字カラム名テーブル名を小文字表記している (カラム名テーブル名が大文字で決め打ちされているなら、予約語を小文字統一している)。

SELECT col0,col1,col2
FROM table0
WHERE col0=1000
  AND col2 IN (100,102)

しかしこの方法も万全ではなくて、例えば複数テーブルが関連するクエリ

SELECT t0.col0, t0.col1, t0.col2, t1.col0
FROM table0 t0
  LEFT OUTER JOIN table1 t1 ON t0.col3=t1.col3
WHERE t0.col0=1000
  AND t0.col2 IN (100,102)

みたくなってしまう (テーブル名のtable0、仮名t0、カラム名col0が全部小文字になっているため、なかなか読みづらい)。

皆さん、どうやって工夫されてますか?

2016-11-04

IT界隈の動物たち

GitHubの謎生物が気になり、せっかくなのでIT界隈の動物(?)を用いた名前ロゴの由来など調べてみた。

※追記あり:Gopherファンに襲われそうなので。ごめんねGopher

GitHub

種類:octocat(ネコタコ

名前:monalisa

Q.どうしてタコなのに8本足じゃないの?

A.なにも考えずに描いたからね!

もともとデザイナーはoctopussと呼んでいたが、いくら訂正してもGitHub社員がoctocatと呼ぶため、octocatで落ち着いた。

octocatはあの生物種の名称であり、monalisaという名前社員の娘が学校課題で名付けたもの

Python

種類:ニシキヘビ

名前: -

イギリスコメディ番組空飛ぶモンティ・パイソン』より。

またPythonという英単語はニシキヘビを意味するため、マスコットとしてヘビが用いられる。

オライリーの本とかすごい表紙だよね。

PHP

種類:ゾウ

名前:ElePHPant

PHP」という字面が、横から象を見たような感じなので。

PostgreSQL

種類:ゾウ

名前:slonik

動物ロゴにしたいなら、象なんてどうだい?アガサ・クリスティ小説にもある『象は忘れない』だ」

   ― PostgreSQL発足時のメーリスより

Evernote

種類:ゾウ

名前: -

象は記憶力が非常に優れた動物のため。PostgreSQLと同じで、象の優れた能力あやかっている。

GNU

種類:ヌー

名前: -

GNU is Not Unix.

Mozilla Firefox

種類:キツネ

名前: -

もともとPhoenixという名前だったが、商標権侵害していたので、公募Firebirdという名前に決定。

しかし今度はDBに同じ名前があったので、Firefoxレッサーパンダの別名)に改名

みなさん命名は慎重に。

Docker

種類:クジラ

名前Moby Dock

白鯨Moby-Dick)』より。クジラ採用した理由デザイン見れば納得。

個人的に一番センスのある名前デザインだと感じる。

Linux

種類:ペンギン

名前Tux

名前タキシードTuxedo)を着ているように見えるから

ロゴコンテストで決定されたが、他の作品を見ればなぜ選ばれたのかよくわかる。デザインって大事

https://www.cs.earlham.edu/~jeremiah/linux-pix/linux-logo.html

Twitter

種類:鳥

名前:ラリー・バード

名前NBAのラリー・バード選手より。社員ファンだったらしい

ちなみに初期のTwitterデザインGitHubデザイナーが手掛けたもの。すごいっすね。

Seaser

種類:シーサー

名前: -

開発者出身地沖縄だったので。

MySQL

種類:イルカ

名前:Sakila

データ大海原を進む、という意味をこめてイルカ採用

Apache Tomcat

種類:ネコ

名前: -

オライリーの本に載ることを考慮して動物マスコットにしようと考え、「自立した強かさ」を持つという意味Tomcat(雄猫の愛称)を採用

しかし、猫はオライリーUML本で使われてしまい、念願のTomcat本にはユキヒョウが使われたという…。

が、最近Tomcat本には猫が使われた。めでたし。

Apple

種類:Dogcow(イヌ+ウシ)

名前:Clarus

昔々、Mac OSで用紙の向きや色を表示するために使用されていたらしい。

知らんわ。

Plan 9 from Bell Labs

種類:ウサギ

名前:Glenda

OS名前であるPlan 9~」はエド・ウッドの『Plan 9 from Outer Space』に由来。

ウサギ名前であるGlendaはエド・ウッドの『グレンとグレンダ』に由来。

どんだけエド・ウッド好きなんだよ。

Go

種類:ホリネズミ

名前Go Gopher

彼の歴史Goプロジェクトよりずっと前、1999年に遡る。

ニュージャージーのWFMUラジオで、Renee Frenchによって宣伝用のTシャツに描かれたのが、彼の初登場。

その後、Bell labsのメールシステムアバターとして起用もされた。

(ちなみにReneeはBell labsのGlendaを描いた人。Glendaもアバターの一員だった)

そうして2009年Goプロジェクトが発足し、ロゴ検討していたメンバーにReneeが無償で描いてあげたのが「Go gopherである

みんなGo Gopherと呼ぶので、特に固有の名前は無いらしい。

由来は下記サイトにありました。

https://blog.golang.org/gopher



調べてみた感想:週末にエド・ウッド作品見てみようかな、と思いました。

2016-03-30

climactic feat in “The Avengers.”) In Snyder’s new film, Superman appears, from the sff

But while pundits have occasionally contorted themselves into logical pretzels to explain away Ford’s casual racism and misogyny — “He was just drunk!” “He always fights for the little guy!” — none has ever been able to explain away his deliberate and calculated anti-LGBT statements and actions.

Ford never hid anti-LGBT animus. From his earliest days on council, when he opposed funding small grants to diversity and AIDS-prevention campaigns, he made it explicit that his opposition stemmed from disgust with LGBT people, not from a desire to protect the public purse.Superman grany przez Cavilla to ten sam poziom, co w Człowieku ze Stali - moim zdaniem Cavill bardzo się stara, żeby jak najciekawiej zagrać Supermana, ale to i tak jedna z najnudniejszych postaci w całym komiksowym uniwersum, więc niektóre wysiłki pozostaniezauważone. Moim zdaniem to wina postaci i fani muszą się do tego przyzwyczaić.

Trzecią postacią, która ma szanse zaprezentować nam się trochę dłużej na ekranie jest oczywiście “ten zły”, czyli Lex Luthor, który grany przez Eisenberga kojarzył się raczej z o wiele bardziej szalonym Zuckerbergiem z The Social Network, niż komiksowym czarnym charakterem. Być może się czepiam, ale gdyby Luthor się w tym filmie nie przedstawił, nie miałbym pocia kim właściwie jest ten rudy gość, który z jakiegoś powodu postanowił być bardzo złośliwy.

he astonishments of the quasi-Biblical clashes and catastrophes in the director Zack Snyder’s “Man of Steel” left me impatient to see hisBatman v Superman: Dawn of Justice.” The earlier film conveyed an awed and even terrified sense of the colossal, a delight in the cinematic ability to realize wrenching destruction and, at the same time, to shiver at the very imagination of it. Snyder turned the superhero universe around on itself, constructing backstories and out-there stories of an apocalyptic force; it was silly but potent, shallow but thrilling. Perhaps Snyder’s new film is the victim of great (or any) expectations, but “Batman v Superman: Dawn of Justice” remains literally Earth-bound, and this fair planet is where Snyder bumps up against the limits of his vision.

Where “Man of Steel” opens big, with an intergalactic origin story that has the heightened tone of pseudo-scripture, the first big set piece in “Batman v Supermanis a catastrophe from home, a virtual replay of the 9/11 attack on the World Trade Center, with Bruce Wayne (Ben Affleck) looking on with horror and hatred as the tower of Wayne Industries collapses (vertically) into a blinding gust of light-gray powderas a result of the battle waged by Superman (Henry Cavill) against the Kryptonian usurper General Zod.

That start gives off a strange whiff of competition with—or emulation of—Marvel’s irrepressibly successful “Avengers” films, the first of which, in particular, is an unabashed post-9/11 allegory. (The connection is surprisingly direct. One of the climactic moments of “Batman v Superman”—a leap from the ground that vaults through the atmosphere and into outer space—is a virtual duplication, both dramatically and visually, of a similar climactic feat in “The Avengers.”) In Snyder’s new film, Superman appears, from the start, as a hopeless naïf, a battler for good who doesn’t admit to his own capacity to do incidental evil, a blinkered warrior who deploys his nearly infinite powers according to his unquestioned moral intuition rather than to the prudent calculation of results.

O Wonder Woman, która zgodnie z obietnicami zadebiutowała w tym filmie mogę w sumie napisać tylko tyle, że… do tej roli wybrano świetną aktorkę. Przynajmniej z wyglądu, bo po tych strzępkach dialogów, które pojawiają sie na ekranie z jej udziałem ciężko się zorientować kim właściwie jest ta pani, która w pewnym momencie pojawia się z tarczą i mieczem u boku Supermana i Batmana.

http://www.chatakatka.sk/mega-hqtvdownload-batman-v-superman-dawn-of-justice-full-movie-hdq/

http://www.chatakatka.sk/mega-hqtvdownload-batman-v-superman-dawn-of-justice-full-movie-hdq/

2015-09-19

色々な瞑想まとめ

~ānāpāna-sati(安般念)によって紹介されている呼吸瞑想

Breathing in long, he discerns, 'I am breathing in long'; or breathing out long, he discerns, 'I am breathing out long.' Or breathing in short, he discerns, 'I am breathing in short'; or breathing out short, he discerns, 'I am breathing out short.' He trains himself, 'I will breathe in sensitive to the entire body.' He trains himself, 'I will breathe out sensitive to the entire body.' He trains himself, 'I will breathe in calming bodily fabrication.' He trains himself, 'I will breathe out calming bodily fabrication.'

長く息を吸っているときには「私は長く息を吸っている」とはっきり知り(pajānāti)、長く息を吐いているときには「私は長く息を吐いている」とはっきり知る。短く息を吸っているときには「私は短く息を吸っている」とはっきり知り、短く息を吐いているときには「私は短く息を吐いている」とはっきり知る。「私は全身の感覚を把握しながら(paisaṃvedī)息を吸おう」と訓練する(sikkhati)。「私は全身の感覚を把握しながら息を吐こう」と訓練する。「私は身行(=吸う息)を静めて息を吸おう」と訓練する。「私は身行(=吐く息)を静めて息を吐こう」と訓練する。

~Maha-satipatthana Sutta(大念住経)の瞑想方法

"And how does a monk remain focused on the body in & of itself?

では、比丘たちよ、比丘はどのようにして、体そのもの気づきを保ち続けるのでしょうか?

"There is the case where a monk — having gone to the wilderness, to the shade of a tree, or to an empty building — sits down folding his legs crosswise, holding his body erect and setting mindfulness to the fore [lit: the front of the chest]. Always mindful, he breathes in; mindful he breathes out.

ここにある比丘がいます — 彼は森へ行き、木の陰へ行き、あるいは空家に行き — 腰を下ろして足を組みます。背をまっすぐに伸ばし、そして気づきを(胸の)前部へと向けます。そして、常に気づきをもって、彼は入息します。気づきをもって、出息します。

"Breathing in long, he discerns, 'I am breathing in long'; or breathing out long, he discerns, 'I am breathing out long.' Or breathing in short, he discerns, 'I am breathing in short'; or breathing out short, he discerns, 'I am breathing out short.' He trains himself, 'I will breathe in sensitive to the entire body.' He trains himself, 'I will breathe out sensitive to the entire body.' He trains himself, 'I will breathe in calming bodily fabrication.' He trains himself, 'I will breathe out calming bodily fabrication.' Just as a skilled turner or his apprentice, when making a long turn, discerns, 'I am making a long turn,' or when making a short turn discerns, 'I am making a short turn'; in the same way the monk, when breathing in long, discerns, 'I am breathing in long'; or breathing out long, he discerns, 'I am breathing out long' ... He trains himself, 'I will breathe in calming bodily fabrication.' He trains himself, 'I will breathe out calming bodily fabrication.'

長く息を吸っているときには「私は長く息を吸っている」とはっきり知り、長く息を吐いているときには「私は長く息を吐いている」とはっきり知ります。短く息を吸っているときには「私は短く息を吸っている」とはっきり知り、短く息を吐いているときには「私は短く息を吐いている」とはっきり知ります。「私は全身の感覚を把握しながら息を吸おう」と訓練します。「私は全身の感覚を把握しながら息を吐こう」と訓練します。「私は身行(=吸う息)を静めて息を吸おう」と訓練します。「私は身行(=吐く息)を静めて息を吐こう」と訓練します。あたかも熟練したろくろ工、あるいはその弟子が、ろくろの紐を長く引っぱれば、「私は紐を長く引っぱる」と知り、紐を短く引っぱれば、「私は紐を短く引っぱる」と知るように。これと同じように、比丘が長く息を吸っているときには「私は長く息を吸っている」とはっきり知り、長く息を吐いているときには「私は長く息を吐いている」とはっきり知ります・・・「私は全身の感覚を把握しながら息を吸おう」と訓練します。「私は全身の感覚を把握しながら息を吐こう」と訓練します。

"In this way he remains focused internally on the body in & of itself, or externally on the body in & of itself, or both internally & externally on the body in & of itself. Or he remains focused on the phenomenon of origination with regard to the body, on the phenomenon of passing away with regard to the body, or on the phenomenon of origination & passing away with regard to the body. Or his mindfulness that 'There is a body' is maintained to the extent of knowledge & remembrance. And he remains independent, unsustained by (not clinging to) anything in the world. This is how a monk remains focused on the body in & of itself.

このように、比丘は内部から、体そのものに対して気づきを保ちます。あるいは、外部から体そのものに対して気づきを保ちます。あるいは、内部・外部両方から、体そのものに対して気づきを保ちます。あるいは、比丘は体に関する現象の発生に気づきを保ちます。体に関する現象の消滅に気づきを保ちます。あるいは、体に関する現象の発生と消滅に気づきを保ちます。あるいは、比丘の「体が存在する」という気づきは知識と想起の範囲で保たれます。そして比丘独立を保ち、世界の何物にも執着しません。これが比丘が体そのもの気づきを保つ方法です。

"Furthermore, when walking, the monk discerns, 'I am walking.' When standing, he discerns, 'I am standing.' When sitting, he discerns, 'I am sitting.' When lying down, he discerns, 'I am lying down.' Or however his body is disposed, that is how he discerns it.

さらに加えて、比丘が歩いているとき、この比丘は「私は歩いている」とはっきりと知ります。立っているとき、この比丘は「私は立っている」とはっきり知ります。座っているときには、「私は座っている」とはっきりと知ります。横たわっているときには、「私は横たわっている」とはっきりと知ります。あるいは、体がどのような状態になるのであれ、はっきりとその状態を知ります

"In this way he remains focused internally on the body in & of itself, or focused externally... unsustained by anything in the world. This is how a monk remains focused on the body in & of itself.

これが比丘が体そのものを内部から、あるいは外部から、あるいはその両方から気づきを保つ方法です。そして・・・世界の何物にも執着しません。これが比丘が体そのもの気づきを保つ方法です。

"Furthermore, when going forward & returning, he makes himself fully alert; when looking toward & looking away... when bending & extending his limbs... when carrying his outer cloak, his upper robe & his bowl... when eating, drinking, chewing, & savoring... when urinating & defecating... when walking, standing, sitting, falling asleep, waking up, talking, & remaining silent, he makes himself fully alert.

さらに加えて、比丘が前に進むとき・戻ってくるとき、この比丘自身に完全に注意を払います。何かに目を向けるとき・目をそむけるときも同様に・・・手足を伸ばすとき・曲げるときも同様に・・・自分外套コートなど)を運ぶとき自分の上着・お椀を運ぶときも同様に・・・食べるとき、飲むときに、噛むとき・味わうときも同様に・・・排尿するとき・排便するときも同様に・・・歩くとき、立つとき、座るとき、眠りに落ちる時、起きるとき、話すとき沈黙するとき比丘自身に完全な注意を払います

"In this way he remains focused internally on the body in & of itself, or focused externally... unsustained by anything in the world. This is how a monk remains focused on the body in & of itself.

これが比丘が体そのものに対して気づきを保つ方法です。あるいは体そのものを外部から・・・世界の何物にも執着しません。これが比丘が体そのものに対して気づきを保つ方法です。

2015-04-06

ヴィパッサナー瞑想とはなにか

瞑想とは何か・・・上座部仏教徒にとって、瞑想とはなにかというテキスト的な役割を果たすのは清浄道論です。しかしながら、より実践的な瞑想方法を学ぶためには他の仏典が参照されることもあります。今回は清浄道論でない仏典を参考にしつつ、より具体的に、瞑想とはどんなことをすればいいのかを見てみましょう。

さて、ヴィパッサナー瞑想の詳しい紹介に入る前に・・・そもそも、ヴィパッサナー瞑想はなぜ行われるのでしょうか。それに関して、例えば古代仏典であるMaha-satipatthana Sutta(大念住経)にお釈迦様の言葉があります

以下はブログ多摩丘陵林住記様による和訳版より抜粋

比丘たちよ、ここに一つの道がある。その道とは、人々を清め、悲しみと悲泣を乗り越え、肉体と精神の痛みを滅し、聖なる道を得、涅槃を観るための唯一の道である。それは「四つの念住」である

・この四つとは何か ? 比丘たちよ、比丘は、努力して、正しく知り、気づきをもって、そして世間の貪欲と憂いから離れて、「身」をただ(自分でもない、自分のものでもない、自我でもない、ただ現象に過ぎない)身であると絶え間なく知覚して住むことである

努力して、正しく知り、気づきをもって、そして世間の貪欲と憂いから離れて、「受(感覚)」をただ(自分でもない、自分のものでもない、自我でもない、ただ現象に過ぎない)受であると絶え間なく知覚して住むことである

努力して、正しく知り、気づきをもって、そして世間の貪欲と憂いから離れて、「心」をただ(自分でもない、自分のものでもない、自我でもない、ただ現象に過ぎない)心であると絶え間なく知覚して住むことである

努力して、正しく知り、気づきをもって、そして世間の貪欲と憂いから離れて、「法(ダンマ)」をただ(自分でもない、自分のものでもない、自我でもない、ただ現象に過ぎない)法であると絶え間なく知覚して住むことである

すなわち、ヴィパッサナー瞑想をすることによって、知恵(insight あるいは understanding)が強まり、「自身」という存在をより正しく知ることができるのです。そして、その道を極めることによって、最終的には悟りすら得られる瞑想です。

それでは、ヴィパッサナー瞑想とはどんな瞑想なのでしょうか。ヴィパッサナー瞑想・・・といったときに、もっとも有名なのが呼吸を対象とする瞑想です。この呼吸瞑想はどこで紹介されているのかというと、やはり古代仏典である、ānāpāna-sati(アーナパーナサティ)に記されています。このānāpāna-satiは、日本では安那般那念という名前で知られています

wikipedia - 安那般那念

Anapanasati Sutta(Thanissaro Bhikkhuによる英訳版)

さて、安那般那念の該当部分を見てみましょう。ここにはこう書いてあります。(以下はwikipediaから抜粋

Breathing in long, he discerns, 'I am breathing in long'; or breathing out long, he discerns, 'I am breathing out long.' Or breathing in short, he discerns, 'I am breathing in short'; or breathing out short, he discerns, 'I am breathing out short.' He trains himself, 'I will breathe in sensitive to the entire body.' He trains himself, 'I will breathe out sensitive to the entire body.' He trains himself, 'I will breathe in calming bodily fabrication.' He trains himself, 'I will breathe out calming bodily fabrication.'

長く息を吸っているときには「私は長く息を吸っている」とはっきり知り(pajānāti)、長く息を吐いているときには「私は長く息を吐いている」とはっきり知る。短く息を吸っているときには「私は短く息を吸っている」とはっきり知り、短く息を吐いているときには「私は短く息を吐いている」とはっきり知る。「私は全身の感覚を把握しながら(paisaṃvedī)息を吸おう」と訓練する(sikkhati)。「私は全身の感覚を把握しながら息を吐こう」と訓練する。「私は身行(=吸う息)を静めて息を吸おう」と訓練する。「私は身行(=吐く息)を静めて息を吐こう」と訓練する。

これは呼吸瞑想を紹介する部分です。

しかし、瞑想について具体的に紹介しているのはānāpāna-satiだけではありません。Maha-satipatthana Sutta(大念住経)にも瞑想方法が紹介されています。ここには呼吸瞑想以外の瞑想方法が紹介されています。それを引用してみましょう。以下は英訳版Maha-satipatthana Suttaから引用と、私による(英文の)和訳です。

"And how does a monk remain focused on the body in & of itself?

では、比丘たちよ、比丘はどのようにして、体そのもの気づきを保ち続けるのでしょうか?

"There is the case where a monk — having gone to the wilderness, to the shade of a tree, or to an empty building — sits down folding his legs crosswise, holding his body erect and setting mindfulness to the fore [lit: the front of the chest]. Always mindful, he breathes in; mindful he breathes out.

ここにある比丘がいます — 彼は森へ行き、木の陰へ行き、あるいは空家に行き — 腰を下ろして足を組みます。背をまっすぐに伸ばし、そして気づきを(胸の)前部へと向けます。そして、常に気づきをもって、彼は入息します。気づきをもって、出息します。

"Breathing in long, he discerns, 'I am breathing in long'; or breathing out long, he discerns, 'I am breathing out long.' Or breathing in short, he discerns, 'I am breathing in short'; or breathing out short, he discerns, 'I am breathing out short.' He trains himself, 'I will breathe in sensitive to the entire body.' He trains himself, 'I will breathe out sensitive to the entire body.' He trains himself, 'I will breathe in calming bodily fabrication.' He trains himself, 'I will breathe out calming bodily fabrication.' Just as a skilled turner or his apprentice, when making a long turn, discerns, 'I am making a long turn,' or when making a short turn discerns, 'I am making a short turn'; in the same way the monk, when breathing in long, discerns, 'I am breathing in long'; or breathing out long, he discerns, 'I am breathing out long' ... He trains himself, 'I will breathe in calming bodily fabrication.' He trains himself, 'I will breathe out calming bodily fabrication.'

長く息を吸っているときには「私は長く息を吸っている」とはっきり知り、長く息を吐いているときには「私は長く息を吐いている」とはっきり知ります。短く息を吸っているときには「私は短く息を吸っている」とはっきり知り、短く息を吐いているときには「私は短く息を吐いている」とはっきり知ります。「私は全身の感覚を把握しながら息を吸おう」と訓練します。「私は全身の感覚を把握しながら息を吐こう」と訓練します。「私は身行(=吸う息)を静めて息を吸おう」と訓練します。「私は身行(=吐く息)を静めて息を吐こう」と訓練します。あたかも熟練したろくろ工、あるいはその弟子が、ろくろの紐を長く引っぱれば、「私は紐を長く引っぱる」と知り、紐を短く引っぱれば、「私は紐を短く引っぱる」と知るように。これと同じように、比丘が長く息を吸っているときには「私は長く息を吸っている」とはっきり知り、長く息を吐いているときには「私は長く息を吐いている」とはっきり知ります・・・「私は全身の感覚を把握しながら息を吸おう」と訓練します。「私は全身の感覚を把握しながら息を吐こう」と訓練します。

"In this way he remains focused internally on the body in & of itself, or externally on the body in & of itself, or both internally & externally on the body in & of itself. Or he remains focused on the phenomenon of origination with regard to the body, on the phenomenon of passing away with regard to the body, or on the phenomenon of origination & passing away with regard to the body. Or his mindfulness that 'There is a body' is maintained to the extent of knowledge & remembrance. And he remains independent, unsustained by (not clinging to) anything in the world. This is how a monk remains focused on the body in & of itself.

このように、比丘は内部から、体そのものに対して気づきを保ちます。あるいは、外部から体そのものに対して気づきを保ちます。あるいは、内部・外部両方から、体そのものに対して気づきを保ちます。あるいは、比丘は体に関する現象の発生に気づきを保ちます。体に関する現象の消滅に気づきを保ちます。あるいは、体に関する現象の発生と消滅に気づきを保ちます。あるいは、比丘の「体が存在する」という気づきは知識と想起(注1)の範囲で保たれます。そして比丘独立を保ち、世界の何物にも執着しません。これが比丘が体そのもの気づきを保つ方法です。

"Furthermore, when walking, the monk discerns, 'I am walking.' When standing, he discerns, 'I am standing.' When sitting, he discerns, 'I am sitting.' When lying down, he discerns, 'I am lying down.' Or however his body is disposed, that is how he discerns it.

さらに加えて、比丘が歩いているとき、この比丘は「私は歩いている」とはっきりと知ります。立っているとき、この比丘は「私は立っている」とはっきり知ります。座っているときには、「私は座っている」とはっきりと知ります。横たわっているときには、「私は横たわっている」とはっきりと知ります。あるいは、体がどのような状態になるのであれ、はっきりとその状態を知ります

"In this way he remains focused internally on the body in & of itself, or focused externally... unsustained by anything in the world. This is how a monk remains focused on the body in & of itself.

これが比丘が体そのものを内部から、あるいは外部から、あるいはその両方から気づきを保つ方法です。そして・・・世界の何物にも執着しません。これが比丘が体そのもの気づきを保つ方法です。

"Furthermore, when going forward & returning, he makes himself fully alert; when looking toward & looking away... when bending & extending his limbs... when carrying his outer cloak, his upper robe & his bowl... when eating, drinking, chewing, & savoring... when urinating & defecating... when walking, standing, sitting, falling asleep, waking up, talking, & remaining silent, he makes himself fully alert.

さらに加えて、比丘が前に進むとき・戻ってくるとき、この比丘自身に完全に注意を払います。何かに目を向けるとき・目をそむけるときも同様に・・・手足を伸ばすとき・曲げるときも同様に・・・自分外套コートなど)を運ぶとき自分の上着・お椀を運ぶときも同様に・・・食べるとき、飲むときに、噛むとき・味わうときも同様に・・・排尿するとき・排便するときも同様に・・・歩くとき、立つとき、座るとき、眠りに落ちる時、起きるとき、話すとき沈黙するとき比丘自身に完全な注意を払います

"In this way he remains focused internally on the body in & of itself, or focused externally... unsustained by anything in the world. This is how a monk remains focused on the body in & of itself.

これが比丘が体そのものに対して気づきを保つ方法です。あるいは体そのものを外部から・・・世界の何物にも執着しません。これが比丘が体そのものに対して気づきを保つ方法です。

基本的には上記がヴィパッサナー瞑想だと考えればよいでしょう。このヴィパッサナー瞑想近代指導者たちに、さまざまに解釈されています

注1 ここで、「想起」という言葉は「思い出す」という意味です。

http://surleconomiejp.blogspot.jp/2015/04/blog-post_5.html

2015-02-16

よみがえれ! エドしぐさ

時泥棒

エドの映画では、1カット撮影は1回だけ。たとえ昼夜の辻褄が合わなくても、セットや演技がいい加減でも、そんなことは気にしなかったんだ。エドは時間を大切にしながらきびきびと生活していたんだよ。

ふいるむ大事

エドが作っていたのは、見事なほどお金をかけない、循環型エコ映画だったんだ。だからひとつ映像をかけがえのないものとして大切に使い回していたんだ。お金が足りなくても映画を作ってしまう、エドらしいしぐさたね。

べらる腰うかせ

落ちぶれたかつての名優と友情をはぐくみ、自らの映画に起用する……エドにはそんな先人への敬意と気遣いはあたりまえだったんだ。だから、主演のはずの名優が途中で亡くなっても『Plan 9 from Outer Space』をがんばって完成させたんだ。

盆踊り

どんな相手も敬うのがエドのしぐさの基本だよ。相手が亡くなった人だったらなおのこと。そんなエドの死者への敬意は、死霊という設定の女性たちが衣装を着ないで踊るだけの映画を生み出したんだ。今では唯一無二の映画として伝説作品になっているよ。

2014-08-04

何処へ行くの、あの日 感想

どこかで感想を発散したいのでここに書く

思ったこと適当に、熟読してないので理解不足はあると思われる

2004年MOON STONEから発売された『何処へ行くの、あの日』をプレイ

霜月はるかが歌うOP曲「追憶の破片」が大好きであった自分はいつかプレイすると心に決めていた。

夕焼け象徴的だったためにシナリオは間違いなくしんみり系だろうと期待大。


・桐季ルート

一葉狙いで選択したつもりが1週目は彼女ルートに。

典型的なおっとりお姉ちゃんキャラで印象は良い、多少アダルトな下着に面食らう。

結末は、多少のリアル犠牲にした上でのハッピーエンドかな。

(この時点では他のルートをやっていないため、消える可能生世界だと知らなかったのだが)

・一葉ルート

攻略を見た感じネタバレはなかったため参考にしてルートを確定。

北都南、明るい、ダークな一面、双子設定とき素晴らしき日々の希実香と若槻姉妹の元なのではと。

精神科医の話と性的虐待の件でネタ想像がつくだろう、勿論すぐに種明かしが来るわけですが。

声優補正もあってキャラの可愛さは随一かな。

立ち絵は可愛らしい感じなのに、一枚絵では大人の女性っぽさを受けるが悪く無いと思う。

・智加子ルート

色々と残念。

まず立ち絵が他のキャラと比べて異質、一枚絵でも髪型が悪さしてプラスな印象にはならない。

共通や他のルートでも図書委員という設定が地味で目立たない、弟君がいなかったらサブキャラでも問題ないレベル

また、endはかなりのbadなため救いようがない不遇なキャラ


サブヒロイン3人を攻略した時点では

マージは戻った過去自分が行う可能性のある範囲で行動し未来を変え得る

②各ルートはおそらく異なる世界線、outer planetが流れる妹が自殺した世界本来世界という仮説

③妹の手術が失敗した回想(世界線)が中盤で挟まれる、これの意味は不明

サンデーは異常、千尋が絵馬とパケで並んでいるため物語の鍵か

こんな感じで頭の中で整理が付く

・千尋ルート

共通ルートを済ませてからは全体シナリオの「転」に当たる部分がやってくる。

千尋の正体が判明しアレと同様の可能性の世界を消す存在とわかる、同時に千尋がいない世界が本当の現実とわかる。

立ち絵は好みではないが一枚絵で可愛さが際立つ。

序盤のネタキャラ的な一面はうーんとなるが、終盤の重要キャラとしてのギャップはありかな。

絵麻ルートでも多くは彼女と一緒におりしっかり好きと伝えられる、直前ルートが千尋なため絵馬に集中できない。

・絵麻ルート

千尋ルート後のデータで再開することで、妹が自殺した世界に千尋がいるとわかる。

まり妹が自殺する可能性の世界も本当の世界ではないと判明。

今までの可能性として追ってきた世界は全て絵麻(幼少期の絵麻?)が見ている世界

絵麻ルート終わりでは絵麻ルート最後に可能性を全て見終わったと伝えられる。

一部不快な展開や幼なじみが離れていったりと割と暗い、最終でこの展開はどうなんだろうか。

その後

世界…絵麻が手術で助かるが自殺し、恭介の心に無理矢理居場所を作る世界(千尋が存在している)

世界…絵麻が手術で助からず、そこまで後ろ向きな気持でない恭介のいる世界(千尋が存在しないため本当の世界

演出されていきスタッフロール

・トゥルー

現代と幼少期の絵麻と千尋の会話が交互に展開。

絵麻が外にいるため手術から快復、千尋はアレの摂理から外れ独立した存在になった(消えない可能性の世界or本当の世界

その場合現実だったはずのB世界をどう取ればいいかわからなくなる。

可能性でない本当の世界が2つあるように思え、トゥルーは単に消されないだけの可能性の世界でいいように思える。

智久は落下事故から救われてはいるが、一葉の家族は離散、桐季の妹は事故死したのだろうか。

ヒロインについては今後恋人になる可能性が示唆されていたのでおそらくは智久生存以外は変わっていないか。


幼なじみの智久が死亡している時点で、トゥルーは生きている世界だろうとは想像していた

妹が兄への恋心を諦め、仲間との友情を取りトゥルーとい流れは自然

しかし、心情の変化は丁寧に描写していても直前にB世界が本当と受け取れる見せ方のために少しご都合過ぎかなと

妹ゲーと評されているようだがそこまで妹を人気になるような破壊力はなかったかなー(妹が全てのシナリオって事か)

暴力団お嬢様ガリ勉眼鏡、一葉の兄、サンデー、色々あるが詰め込みすぎて情報が増えすぎてる

シマタケ君はかなり良い印象なキャラだっただけに幼なじみグループに混ざれなかった事が可哀想、実家地元なのに

シナリオは全て込みで高水準、普通に今どきのギャルゲーなんかより面白い

パッケージopから受け取れる印象通りの仕上がりで期待は裏切らない

選択肢で頻繁に日常パートが変化する作りこみも熱意が感じられて非情にいいと思う

システム面も2004年作品にしては十分かな、セーブスロットもっとしかったけど

Bgmは場面ごとに適切な雰囲気の曲が当てられいた、ぐっとくるものは少ないがmissing place、outer planetagainは良い

おわり

2014-06-04

http://anond.hatelabo.jp/20140604145225

NULL 可の列はなるべく持たないに限る、に同意データの値が分からん状態でそもそも登録するな、もしくはテーブル分割しろという話。

OUTER JOIN したときに NULL 列で返ってきたり、NULLを生かしたSQL関数をたくさん駆使できるので (MSSQL の COALESCE とか ORACLE の NVL とか) 、NULL の概念自体厄介者にする意見とは私は違うけどね。

http://anond.hatelabo.jp/20140604142859

NULL 可の列はなるべく持たないに限る、に同意データの値が分からん状態でそもそも登録するな、もしくはテーブル分割しろという話。

OUTER JOIN したときに NULL 列で返ってきたり、NULLを生かしたSQL関数はたくさんあるので (MSSQL の COALESCE とか ORACLE の NVL とか) 、NULL の概念自体厄介者にする意見とは私は違うけどね。

2012-01-18

Python vs Ruby vs PHP vs Haskell プログラミング言語バトル part1

 

42 : デフォルト名無しさん : 2011/11/12(土) 23:53:51.20

Pythonの方が弄れる対象が多いのに、なんでウェブ系だとPHPの方が流行ってんだろ

端末からテキスト処理も楽だし、数値計算周りのライブラリも充実しているのに

PHPが優遇されているのって歴史的な経緯以外に何か他の理由でもあるのか?

けどまぁ、情弱文系SEが大半を占めているバカだらけの日本じゃ別にPHPで困ることもないか

45 : デフォルト名無しさん : 2011/11/13(日) 01:41:24.25

数値計算や端末からテキスト処理なんてWeb系じゃ大して使わないからなあ…

43 : デフォルト名無しさん : 2011/11/13(日) 00:04:23.30

PHPが未だに現役なのは、単に歴史的な経緯でしかないだろ

Pythonに関しては、ZopeさえコケていなければWebサーバLLとして大成功していたはずなのに、

Railsなんかが登場したおかげで、すっかり影が薄くなってしまますた....

44 : デフォルト名無しさん : 2011/11/13(日) 00:49:55.28

zopeってコケてたんだ

ってか、railsインスパイアされたフレームワークって今じゃ幾らでもあるよね

djangoとかCakePHPとか。rubyってRoRを使いたいユーザを除くと、

pythonPHPの方がユーザー数は圧倒的に多いと思うんだけど

本家railsって、他を遥かに越えるほど良いものなんだっけ?

48 : デフォルト名無しさん : 2011/11/13(日) 08:30:25.68

44

Zopeが登場した当時、RDB+PHPはもう古い、これからOODB+ZopeWebの中軸になる!」

さかんに宣伝され、雑誌でもZope特集が組まれていた

 

少なくとも自分ZopeからPythonという言語を知ったし、その時点でRubyは知らなかった

そして、その後のORM(RDB)+Railsの出現と華々しい革新性への注目は、誰もが知っているだろう

今でもZopeの開発は継続されてはいるが、結果的に当初の期待が大きく裏切られたという事実は動かしがたい

 

djangoCakePHPについては実際に触っていないので憶測になるが、おそらく技術水準ではRailsと同等だろう

しかしRailsはRailsコミュニティの活動が活発だし、その進化は異常に早い

 

Railsに何か致命的なトラブルが発生して開発が停滞する、あるいはdjangoCakePHPから

何かのイノベーションが提示されでもされない限り、後発のdjangoCakePHPRailsに追いつくのは無理

Railsは決して技術的に完璧Webフレームワークではないんだけどね....(たとえばSeaSideのような.... )

 

からこそ「もしもZopeが....だったなら」という「たら・れば」感はPythonコミュニティの潜在認識になっている

51 : デフォルト名無しさん : 2011/11/13(日) 12:55:40.83

 C a k e P H P は う ん こ   

遅い、設計が古い、動作がおかしいの3重苦

日本では流行ってないけど海外だとYiiが流行ってきてる

55 : デフォルト名無しさん : 2011/11/13(日) 17:31:12.14

CakePHP使ってんの?

可哀そうにw

53 : デフォルト名無しさん : 2011/11/13(日) 14:44:48.55

求人PHPばかりだからPHPやるしかないだろ。

57 : デフォルト名無しさん : 2011/11/13(日) 19:34:04.95

でもやっぱりいつもの使い慣れたLL(Python/Ruby)で

Webサービスを書きたいってのがある

73 : デフォルト名無しさん : 2011/11/15(火) 17:32:46.07

アメリカ言語ユーザー数は

Python>>>>>>>>Ruby

求人数は

Ruby on Rails>>>>>>>>Django

http://www.indeed.com/jobtrends?q=django%2Cruby+on+rails&l=

どういうことなの?

74 : デフォルト名無しさん : 2011/11/15(火) 17:48:15.59

RubyRails以外に使い道がないか

75 : デフォルト名無しさん : 2011/11/15(火) 17:54:35.50

海外ではRubyは昨今のRailsバブルのお陰で

もはやWebスタートアップ共通語になってるらしいからね

求人数が多いのはそのためだと思うよ

76 : デフォルト名無しさん : 2011/11/15(火) 18:03:23.05

なんかのミスかと思ったがアメリカでもRuby on Railsは人気があるのかなあ・・・

Pythonのほうが使いやすいと思うのだがフレームワークRailsが優位なんだろうか

77 : デフォルト名無しさん : 2011/11/15(火) 18:23:14.33

Djangoは周辺ライブラリ微妙だし本体も鈍くさい感じがする。

でも、FlaskはSinatraより好きだからPythonが嫌いってわけではない。むしろ好き。

 

ただ、いざ作り始めるとやっぱりRailsが楽だなあってなって、Railsを使い続けている。

78 : デフォルト名無しさん : 2011/11/15(火) 18:38:46.28

同感だ

同じように思っている人が他にもいて安心した

79 : デフォルト名無しさん : 2011/11/15(火) 18:54:37.13

PHPJavaScalaには

Railsみたいなフレームワークあるのに

Pythonはいいのないんだよな

80 : デフォルト名無しさん : 2011/11/15(火) 21:19:09.89

PHPフレームワークが乱立しすぎているから、RailsPHPで実装してみようというやつが出てきた。

Scalaも注目されだしたのはつい最近のことだしな。

それに比べてPythonは、Zopeというデファクトスタンダードが既に存在していたけど、

つの間にかフェードアウト

ただ、どうやってもRailsもどきRailsを超えることはできないのは間違いない。

83 : デフォルト名無しさん : 2011/11/15(火) 21:25:38.55

パクリオリジナルを超えられない(キリッ って定型句だけど、

これってキリッって言いたいだけだと思う。

後発品が先に出たものを超えたものなんていくらでもあるから

84 : デフォルト名無しさん : 2011/11/15(火) 21:30:04.39

D言語って超えたって?

85 : デフォルト名無しさん : 2011/11/15(火) 21:31:12.00

B言語って超えたって?

86 : デフォルト名無しさん : 2011/11/15(火) 21:53:33.76

でもRailsRubyの黒魔術を使いまくりから

PHPで同じ事をできないわけではないだろうけど、Ruby on Railsほど簡潔にはできない

90 : デフォルト名無しさん : 2011/11/15(火) 22:50:07.81

スタートアップなんて根無し草の集まりにとって、

googleが囲った言語coolさを見出せないんだろ

123 : デフォルト名無しさん : 2011/11/20(日) 11:32:16.79

まあくだらねえWEBサービス作って喜んでる情弱は早く死ねって事だよ

91 : デフォルト名無しさん : 2011/11/15(火) 22:52:42.98

そういう理由じゃなくてRailsのほうが単純に情報プラグインも多いからでしょ

3 : デフォルト名無しさん : 2011/11/15(火) 23:07:07.67

linuxじゃデフォのツールなんだし、ツールとの連携を考えたらpython一択じゃん

わざわざ不合理で不完全な言語を使うなんて

社会からハミ出た奴らの精神的な作用によるものじゃないの?

95 : デフォルト名無しさん : 2011/11/15(火) 23:20:20.21

django情報プラグインが増えないという、

現実に対する鬱憤を吐いてるようにしか聞こえないな

もしも

linuxじゃデフォのツールなんだし、ツールとの連携を考えたらpython一択じゃん

真実であるのなら、今頃はdjango情報プラグインが溢れかえっているはず

104 : デフォルト名無しさん : 2011/11/16(水) 01:20:49.05

Python信者乙。

yumや、gdbgnome拡張pythonであるからといって、それをwebアプリでも使いたいと思う人は少ないというだけのこと。

ソースからインストールする必要があったとしても、web開発ではrubyを使いたいという人が多いというだけのこと。

94 : デフォルト名無しさん : 2011/11/15(火) 23:15:11.93

というか、世界中Pythonプログラマが Remeber Zope!! を合い言葉

打倒RailsたるWebフレームワークを開発しているはずだけど、

いまだにRailsを超えるプロダクトが登場しないのはナゼ?

Railsも登場してから、かなりの年月が経過しているんだけどなぁ....

その間にもRailsRails 3が登場して、REST/AJAXの強化等の進化継続しているよ

347 : デフォルト名無しさん : 2011/12/09(金) 10:16:35.22

Ruby では

ary.map {|x| x**2}

となるものが、Python では

map(lambda x: x**2, ary)

となり、lambda の本体が1つの式では表現しきれなくなると

def mapper(x):

.....

map(mapper, ary)

書き換える必要があります

348 : デフォルト名無しさん : 2011/12/09(金) 10:24:20.94

Pythonのlambdaを用いた階乗計算

f = lambda x:(x and f(x-1)*x)or 1

RubyにはPythonのように「lambda本体は式でなければならない」という限定がありませんから

andやorを使った不自然記述をしなくても

f = lambda{|x|if x == 0 then 1 else x*f.call(x-1) end}

または

f = lambda{|x|x == 0 ? 1 : x*f.call(x-1)}

と書けます。lambda内でreturnが使えますから、書きたければ

f = lambda{|x|if x == 0 then return 1 else return x*f.call(x-1) end}

でもOKです。

390 : デフォルト名無しさん : 2011/12/10(土) 15:35:41.62

348

これはPythondisっているように見せかけてRubydisっているのか? と一瞬思ってしまったw

だってRubyのほうが長くない?CLのfuncallみたいなcall()がちょっとうざいし…

そしてどっちもlambda式の中で束縛変数名前再帰可能、と

350 : デフォルト名無しさん : 2011/12/09(金) 11:12:13.28

要素に対する関数適用と、抽出を組み合わせる場合

Python

print [x*2+100 for x in [1,2,3,4,5] if x > 2 and x < 5]

暗号のように見える。

Ruby

puts [1,2,3,4,5].select{|i| i > 2 and i < 5}.map{|i| i*2+100}

思考の流れと、コードの流れが一致しているので書きやすい。

351 : デフォルト名無しさん : 2011/12/09(金) 11:22:55.04

だれだPythonなら書き方はひとつとか言ってるのは

map(lambda x: x*2+100, filter(lambda x: x > 2 and x < 5, [1,2,3,4,5]))

354 : デフォルト名無しさん : 2011/12/09(金) 12:22:07.37

pythonて可読性が高いのをうたってる割にはそこいまいちだよね

353 : デフォルト名無しさん : 2011/12/09(金) 12:10:08.46

Ruby場合には、左から右へと無名関数データフローあるいは

パイプラインのように並ぶからコードが読みやすい

 

関数型プログラミングに不慣れな初心者でも、参照透明性のあるコード自然に書ける

プログラマにとって優しい or プログラミングの楽しさを教えてくれるのがRuby

 

それと比較すると、Pythonコードは、関数型プログラミングというもの

いかに高度で難解なものであるかという事をもったいぶってプログラマ押し付け

 

もしもPythonしか知らないプログラマであれば、関数型 = 難解 という印象を持つだろう

356 : デフォルト名無しさん : 2011/12/09(金) 12:53:45.66

階乗計算くらいだと単純すぎて、ナゼ重要なのかが分かりづらいと思うのでコードで示す

result_list = source_list.map { |elem|

  x = foo(elem.x)  # ここが局所宣言を書く部分

  y = bar(elem.y)  # ここも局所宣言の続き

  x + y       # 最後に評価された式の値が、無名関数のリターン値になる

}

Rubyでは、map等に与える無名関数の中で局所的な環境(クロージャ)が作られるから

x = foo(...) のような代入文がいくつでも(= 複雑な処理でも)書ける

このポイントは、実用的なプログラム関数型風で書こうとした時に、威力を発揮する

357 : デフォルト名無しさん : 2011/12/09(金) 12:59:21.07

余計分かりづらくなった

358 : デフォルト名無しさん : 2011/12/09(金) 13:17:26.54

リスト内包表記が暗号みたいと言ってる奴は

高卒ドカタなんだろうなぁと可哀想になる

大学数学に触れる機会があれば

集合の表記に似せてることが分かるから

386 : デフォルト名無しさん : 2011/12/10(土) 01:41:34.46

数学とかで慣れてるし区切りが関数のがわかりやすい

359 : デフォルト名無しさん : 2011/12/09(金) 13:46:31.97

355

map/filterはfor/ifと同じだと言っているだけだから、難解という印象は持たない。

関数型プログラミングに慣れた、あるいは得意な人であれば、そういった印象なんだろね

Rubyの魅力はこれから関数型プログラミングを学ぼうとする初心者、 あるいはそんな初心者へ教える立場から見た、優しさ or 分かりやすさなんだ

360 : デフォルト名無しさん : 2011/12/09(金) 13:53:28.85

Rubyだと直感的に書けるコード

[1,4,3,2].sort.reverse.map{|x| x.to_s}.join('-')

Pythonだと読みにくい。

'-'.join(map(str, reversed(sorted([1,4,3,2]))))

361 : デフォルト名無しさん : 2011/12/09(金) 14:07:17.88

360

Pythonでは思考の流れと一致しないばかりか、「カッコだらけ」のコードになると.....

364 : デフォルト名無しさん : 2011/12/09(金) 14:28:55.99

カッコだらけのコードを分かりやすくする基本的な方法静的単一代入じゃないか

Rubyのやり方は基本ではなく玄人のやり方だろ

372 : 369 : 2011/12/09(金) 16:21:03.82

Pythonでは組み込みの型でメソッドチェインはやって欲しくないな

listにmap,filterメソッドができたとしても、

似たようなコレクションtuple,deque,array,queue等にも同じメソッドが必要になってくるし。

シーケンスプロトコルの利点が活かせない。

383 : デフォルト名無しさん : 2011/12/10(土) 01:17:28.39

372

外部のライブラリでも列挙可能なものは、たいていEnumerableモジュールをimportしてます

Rubyユーザーは列挙可能なものmapselectできて当然だろって思ってる気がしま

377 : デフォルト名無しさん : 2011/12/09(金) 18:41:51.79

Pythonは「何かを便利に書くためのしわ寄せ」をはっきり寄せてくる

得意と不得意を言語レベルではっきり主張するのでメリケン好みと言えなくもない

Rubyは全方位になんとなく八方美人なので、全体的になんとなく書きやすくてなんとなくキモくて遅い

379 : デフォルト名無しさん : 2011/12/09(金) 18:48:52.27

Pythonユーザー調教っぷりは異常

「書きにくいってことはその処理に向いてないってことだから諦めろ」を地で行く

387 : デフォルト名無しさん : 2011/12/10(土) 13:40:40.74

リストの内包表記はシンプルに書けるときは使うけど

基本その場でdefするのがPython風なんだと思う。

389 : デフォルト名無しさん : 2011/12/10(土) 14:40:31.04

無名関数が文を使うほど複雑なら名前を付けるのが Python 流と想像

384 : デフォルト名無しさん : 2011/12/10(土) 01:23:49.48

outer(center(inter( arg )))

これを読みづらいと感じるのは、左から右に流れる

日本語文に慣れているからだと思うが、

もしかしてアラビア語ネイティブな人からすると逆に読みやすいのか?

385 : デフォルト名無しさん : 2011/12/10(土) 01:34:57.89

なるほど、ということは右から左、左から右どっちでも行ける言語が最高ですね

F#パイプライン演算子最高ということで

2011-12-29

Portable electronic equipment battery technology

1, about the trickle charge, rapid charging and stable battery charging algorithm

According to the energy requirements of the final application, a battery may contain up to 4 lithium ion or lithium polymer battery core, its configuration will have a variety of change, at the same time with a mainstream power adapter: direct adapter, USB interface or car charger. Remove the core quantity, core configuration or power adapter type difference, the battery has the same charge characteristics. So they charge algorithm. Lithium ion and li-ion polymer battery best charging algorithm can divided into three phases: trickle charge, rapid charging and stable charge.

trickle charge. For depth discharge core to charge. When core voltage in less than about 2.8 V, use a constant 0.1 C of the current charging for it.

fast charging. Core voltage trickle charge more than the threshold, improve the charging current rapid charging. Fast charging current should be lower than 1.0 C.

stable voltage. In the fast charging process, once the core 4.2 V voltage, stable voltage phase began. This is through the minimum charge current or timer or of the two joint to interrupt charge. When the minimum current below about 0.07 C, can interrupt charge. The timer is to rely on a default to trigger the timer interrupt.

Advanced battery charger with additional security function normally. For example, if the core temperature exceeds the given window, usually 0 ℃-45 ℃, charge will be suspended.

Remove some very low-end equipment, now on the market/li-ion polymer lithium ion battery solutions are integrated with the outer components or, in accordance with the characteristics of the charging to charge, this is not just to get better effect charge, but also for safety.

lithium ion/polymer battery charge is an example of applications-double input 1.2 A lithium battery charger LTC4097

LTC4097 can be used to exchange adapter or USB power supply for single quarter/polymer lithium ion battery. Figure 1 for double input 1.2 A lithium battery charger LTC4097 schemes. It USES constant current/constant voltage algorithm charging, from exchange adapter power charge, programmable filling up to 1.2 electric current A, and with USB power can be as high as 1 A, at the same time, automatic detection in each input voltage whether there. This device also provide USB the current limit. Applications include PDA, MP3 players, digital camera, light portable medical and test equipment and big color cellular phone. The performance characteristics: no external micro controller charging termination; The input power automatic detection and choice; Through the resistance from the exchange of charging adapter input can be as high as 1.2 A programming charge current; The resistance of programmable USB charging current is up to 1 A; 100% or 20% USB charging current set; The input power output and existing bias NTC (VNTC) pin as a 120 mA drive ability; NTC thermistors input (NTC) pin for temperature qualified charged; Pre-settings battery voltage with floating plus or minus 0.6% accuracy; Thermal regulation maximize charge rate and free hot air LTC4097 can be used to exchange adapter or USB power supply for single quarter/polymer lithium ion battery. The use of constant current/constant voltage algorithm charging, from exchange adapter power charge, programmable filling up to 1.2 electric current A, and with USB power can be as high as 1 A, at the same time, automatic detection in each input voltage whether there. This device also provide USB the current limit. Applications include PDA, MP3 players, digital camera, light portable medical and test equipment and big color cellular phone.

2, lithium ion/polymer battery scheme

Lithium ion/polymer battery charge scheme for different number of core, core configuration, and power types are different. At present mainly have three main charging scheme: linear, Buck (step-down) switch and SEPIC (booster and step-down) switch.

2.1 linear scheme

When the input voltage in big with the charger with sufficient clearance of core after opening voltage, it is linear scheme, especially 1.0 C fast charging current than 1 A big too much. For example, MP3 players usually only one core, capacity from 700 to 1500 mAh differ, full charge voltage is open 4.2 V. MP3 player power is usually the AC/DC adapter or USB interface, the output is the rule of 5 V; At this time, the linear scheme is the most simple, most charger of the efficiency of the scheme. Figure 2 shows for lithium ion/polymer battery solution linear scheme, basic structure and linear voltage neat device.

linear scheme charger application examples-double input Li + charger and intelligent power source selector MAX8677A

MAX8677A is double input USB/AC adapter linear charger, built-in Smart Power Selector, used for rechargeable single quarter by Li + batteries portable devices. The charger integration of the battery and the external power source and load switch charging all the power switch, so that no external MOSFET. MAX8677A ideal used in portable devices, such as smart phones, PDA, portable media players, GPS navigation equipment, digital camera, and digital cameras.

MAX8677A can work in independent USB and the power input AC adapter or two input either one of the input. When connecting external power supply, intelligent power source selector allows the system not connect battery or can and depth discharge battery connection. Intelligent power source selector will automatically switch to the battery system load, use the system did not use the input power supply parts for battery, make full use of limited USB and adapter power supply input. All the needed electric current detection circuit, including the integration of the power switch, all integration in the piece. DC input current highest limit can be adjusted to 2 A and DC and USB input all can support 100 mA, 500 mA, and USB hung mode. Charge current can be adjusted to as high as 1.5 A, thus support wide range of battery capacitive. Other features include MAX8677A thermal regulation, over-voltage protection, charging status and fault output, power supply good surveillance, battery thermistors surveillance, and charging timer. MAX8677A using save a space, hot enhanced, 4 mm x 4 mm, 24 of the pins TQFN encapsulation, regulations, work in exceptional temperature range (40 ~ + 85 ℃).

2.2 Buck (step-down) switch scheme

When A 1.0 C of the charging current more than 1 A, or the input voltage of the core than with high voltage open many, Buck or step-down plan is A better choice. For example, based on the hard drive in the PMP, often use single core lithium ion battery, the full of open is 4.2 V voltage, capacity from 1200 to 2400 mAh range. And now PMP is usually use the car kit to charge, its output voltage in a 9 V to 16 between V. In the input voltage and battery voltage is the voltage difference between high (minimum 4.8 V) will make linear scheme lowers efficiency. This kind of low efficiency, plus more than 1.2 A 1 C fast charging electric current, have serious heat dissipation problems. To avoid this kind of situation, will the Buck scheme. Figure 3 for lithium ion/polymer battery charger scheme Buck diagram, basic structure with Buck (step-down) switching voltage regulators completely the same.

2.3 SEPIC (booster and step-down) switch scheme

In some use of three or four lithium ion/polymer core series equipments, charger of the input voltage is not always greater than the battery voltage. For example, laptop computers use 3 core lithium ion battery, full charge voltage is open 12.6 V (4.2 V x3), capacity is 1800 mAh to 3600 mAh from. Power supply input or output voltage is 1 6 V AC/DC adapter, or is car kit, the output voltage in a 9 V to 16 between V. Apparently, the linear and Buck solutions are not for this group of batteries. This is about to use SEPIC scheme, it can in the output voltage is higher than when the battery voltage, can be in the output voltage less than when the battery.

3, and power detection algorithm is proposed

Many portable products use voltage measurements to estimate the remaining battery power, but the battery voltage and surplus power relationship but will with the discharge rate, temperature and battery aging degree of change, make this kind of method can top 50% margin of error. The market for longer to use product demand unceasingly strengthens, so the system design personnel need more accurate solution. Use capacity check plan come to measure battery or consumption of electricity, will be in a wide range of application power to provide more accurate estimate of the battery power.

3.1 power detection algorithm is one of the examples of application, function complete list, double the battery portable battery application design

power detection principle. Good capacity check plan at least to have battery voltage, temperature and battery electric current, measuring method; A micro 9 a; And a set of and the verification of the punishment power detection algorithm is proposed. Bq2650x and bq27x00 is full capacity check program function, with a measuring voltage and temperature of the digital converter (ADC) and a measuring electric current and charging sensor the asp. These capacity check plan also has a microprocessor, is responsible for the implementation of the Texas instruments power detection algorithm is proposed. The algorithm can compensate the lithium ion battery life.low self-discharge, aging, the temperature and discharge rate, and other factors. Chip embedded microprocessor as host system processor save these calculation burden. Capacity check program can provide remaining power state information, bq27x00 series products also offer surplus can Run Time (Run Time to Empty) host may at any Time to capacity check plan these information query, then LED indicator light through or displays will inform the user battery. Capacity check meter is very easy to use, the system processor need only configuration 12 C or HDQ communication drive can.

The battery circuit description. Figure 4 (a) can be used for identification of IC functions with typical application circuit batteries. According to the use of IC testing program is different, the battery needs to have at least three to four outside the terminal.

VCC and BAT pins will even to the battery voltage, so that for, C power and the battery voltage measurement. The battery is connected a grounding resistance smaller detection resistors, let capacity check meter high impedance SRP and SRN input can monitor sensor resistance on both ends of the voltage. Through testing the current flows through a resistor can be used to judge the battery or release the amount of electricity. Designers choose detection resistance value must be considered when resistance on both ends of the voltage can't more than 100 mV, low resistance may be more hours in current errors. Circuit board layout must ensure that SRP and SRN to testing from as close as possible to the connection of the resistor sensor resistance end; In other words, they should be the Kelvin attachment.

HDQ pin need external and resistors, this resistance should be located the host or the main application, such capacity check plan to the battery and portable devices when sleep function enable connection broken. Advice and resistance choose 10 k Ω.

battery identification. A low cost WeiMao batteries are getting more and more serious, these cells may not contain OEM requirements of security protection circuit. So, genuine battery may contain figure 4 (a) shows the appraisal circuit. When to identify the battery, the host to contain IC (bq26150, the function is cyclic redundancy check (CRC)) issued the battery packs a ask value (challenge), the CRC will contain battery according to this inquiry value and, in the building of the IC in CRC polynomial calculation the CRC value. CRC is based on the host of command and IC secret in the query of the definition of the CRC polynomial completed, the host in CRC values calculated with the calculation result of well battery comparison to identify the appraisal success.

Once the battery through the appraisal, bq26150 will issue commands to ensure that the host and quantity test plan of material lines between normal communication. When the battery connection interruption or to connect, the whole the identification process will be repeated again.

double the battery application. Figure 4 (b) for use bq26500 support double the typical application of lithium ion battery circuit. In order to support more battery, and this circuit is adding a adjustable regulators. Capacity check millions of BAT pin and the bottom of a battery anode linked to complete the variable voltage measurement of the battery.

Host to be able to read capacity check plan of variable voltage measurement battery, to make sure the end of discharging threshold and charging terminate threshold. As for the remaining state power (RemainingStateofCapacity), do not need to read can use directly.

The above bq2650x and bq27x00 etc capacity check plan provides the battery manufacturer a simple to use options, this scheme L [just measuring battery voltage to be precise, so these capacity check plan can be applied to various battery framework, and can support the battery identification and double the battery application '

3.2 power detection algorithm is an example of applications another, can apply to all kinds of general voltmeter new IC.

Today's many manufacturers can provide a variety of voltmeter IC,, the user can choose the suitable function device, to optimize the product price. Use voltmeter measurement of storage battery parameters, the separate architecture allows users in the host custom power measurement algorithm within. Eliminating embedded processor battery cost. On this to Dallase semicconductor company called cases of DS2762 chip for typical analysis. A new separate voltmeter IC, its structure see chart 5 (a) below.

DS2762 application characteristics

DS2762 is a single quarter of lithium battery voltmeter and protection circuit, integrated into a tiny 2.46 mm x 2.74 mm inversion of packaging. Due to internal integration for power detection of high precise resistance, this device is very save a space. It is the small size and incomparable high level of integration, for mobile phone battery and other similar handheld products, such as PDA, etc, are all very ideal. Integrated protection circuit continuously monitoring the battery voltage, over voltage and flow fault (charging or discharge period). Different from the independent protection IC, DS2762 allow main processor surveillance/control protection FET conduction state, such, can DS2762 through the protection of the power system and the control circuit implementation. DS2762 can also charge a battery consumption has depth, when the battery voltage within three V, provide a limit of the charging current recovery path.

DS2762 accurate monitoring battery current, voltage and temperature, the dynamic range and resolution of common satisfy any mobile communication product testing standards. The measurement of current for internally generated when the integral, realize the power measurement. Through the real-time, continuous automatic disorders correct, the precision of power measurement can be increased. The built-in measuring resistance due to eliminate manufacturing process and temperature and cause resistance change, further improve the precision of the voltmeter. Important data stored in 32 bytes, can add the lock EEPROM; 16 bytes of SRAM are used to keep dynamic data. And DS2762 all communication all through the 1-Wire, more communication interface node, minimize the battery and the connection to the host. Its main features for; Single quarter of lithium battery protector; High precision current (power measurement), voltage and temperature measurement; Optional integrated 25 m Ω measuring resistance, each DS2762 after fine-tuning alone; 0 V battery restore charge; 32 bytes can lock EEPROM, 16 bytes SRAM, 64 a ROM;

1-Wire, node, digital communication interface; Support more battery power management, and through the protection system control FET power; Dormancy mode power supply current only 2 µ A (most); Work mode power supply current for 90 µ A (most); 2.46 mm x 2.74 mm inversion of packaging or 16 feet SSOP package led, and both are can choose with or without detection resistance; After has with e

2011-03-21

[][][][]

ガイガー=ミュラー計数管 - Wikipedia

端窓型管には二種類ある:ガラスマントル型と雲母窓型である

ガラス窓型は、アルファ線ガラス窓を通過できないのでアルファ線は検出できないが、大抵はより安価であり、ベータ線X線を検出する用途で使われる。

雲母窓型ははアルファ線も検出できるが、壊れやすい。

プルトニウム - Wikipedia

半減期プルトニウム239の場合約2万4000年(アルファ崩壊による)。

プルトニウムアルファ線放出するため、体内に蓄積されると強い発癌性を持つ。

反射体のない球状プルトニウム臨界量は16kgだが

中性子を反射するタンパーを用いると核兵器中のプルトニウムピットは10kg(直径10cmの球に相当)まで減らすことができる。

1kgのプルトニウムが完全に反応したとすると、20キロトンのTNT相当の爆発エネルギーを生むことができる。

アルファ粒子 - Wikipedia

放射線の一種のアルファ線α線alpha ray)は、アルファ粒子の流れである

電離作用が強いので透過力は小さく、紙や数cm空気層で止められる。

しかし、その電離作用の強さのため、アルファ線を出す物質を体内に取り込んだ場合内部被曝には十分注意しなければならない。

雲母 - Wikipedia

薄くはがれるのが特徴で、外見上の色から雲母、黒雲母、金雲母などに分類される。

内部被ばくの“証拠”撮影 長崎大研究グループ - 47NEWS(よんななニュース)

Youtube 死の灰の成分はプルトニウム

ゴフマン博士は、もっとも控えめな試算として、25歳喫煙者に対する同じアルファ放射能であるプルトニウム239の肺癌吸入量(100%の確率で致死的な肺癌が生じる吸入量)は、0.255マイクログラムであるとしています。

アルファ線は人体の中を極めて短い距離しか透過しない(組織の中で約40ミクロン、骨では約10ミクロン)。

they can travel only a few centimetres in air. They can be absorbed by tissue paper or the outer layers of human skin (about 40 micrometres, equivalent to a few cells deep).

Plutonium is more dangerous when inhaled than when ingested. The risk of lung cancer increases once the total dose equivalent of inhaled radiation exceeds 400 mSv.

時事ドットコム:機動隊員ら13人、内部被ばくなし=原発3号機で放水作業−放医研

マスコミは決して語らない、内部被曝の危険性 : MotoJazz

テレビが嘘つきなので、内部被曝のリスクを無理やり計算してみた - 起業ポルノ

「内部被曝」について

http://anond.hatelabo.jp/20110320090725

http://anond.hatelabo.jp/20110321030609

[][][][][]

ガイガー=ミュラー計数管 - Wikipedia

端窓型管には二種類ある:ガラスマントル型と雲母窓型である

ガラス窓型は、アルファ線ガラス窓を通過できないのでアルファ線は検出できないが、大抵はより安価であり、ベータ線X線を検出する用途で使われる。

雲母窓型ははアルファ線も検出できるが、壊れやすい。

プルトニウム - Wikipedia

半減期プルトニウム239の場合約2万4000年(アルファ崩壊による)。

プルトニウムアルファ線放出するため、体内に蓄積されると強い発癌性を持つ。

反射体のない球状プルトニウム臨界量は16kgだが

中性子を反射するタンパーを用いると核兵器中のプルトニウムピットは10kg(直径10cmの球に相当)まで減らすことができる。

1kgのプルトニウムが完全に反応したとすると、20キロトンのTNT相当の爆発エネルギーを生むことができる。

アルファ粒子 - Wikipedia

放射線の一種のアルファ線α線alpha ray)は、アルファ粒子の流れである

電離作用が強いので透過力は小さく、紙や数cm空気層で止められる。

しかし、その電離作用の強さのため、アルファ線を出す物質を体内に取り込んだ場合内部被曝には十分注意しなければならない。

雲母 - Wikipedia

薄くはがれるのが特徴で、外見上の色から雲母、黒雲母、金雲母などに分類される。

内部被ばくの“証拠”撮影 長崎大研究グループ - 47NEWS(よんななニュース)

Youtube 死の灰の成分はプルトニウム

ゴフマン博士は、もっとも控えめな試算として、25歳喫煙者に対する同じアルファ放射能であるプルトニウム239の肺癌吸入量(100%の確率で致死的な肺癌が生じる吸入量)は、0.255マイクログラムであるとしています。

アルファ線は人体の中を極めて短い距離しか透過しない(組織の中で約40ミクロン、骨では約10ミクロン)。

they can travel only a few centimetres in air. They can be absorbed by tissue paper or the outer layers of human skin (about 40 micrometres, equivalent to a few cells deep).

Plutonium is more dangerous when inhaled than when ingested. The risk of lung cancer increases once the total dose equivalent of inhaled radiation exceeds 400 mSv.

時事ドットコム:機動隊員ら13人、内部被ばくなし=原発3号機で放水作業−放医研

マスコミは決して語らない、内部被曝の危険性 : MotoJazz

テレビが嘘つきなので、内部被曝のリスクを無理やり計算してみた - 起業ポルノ

「内部被曝」について

http://anond.hatelabo.jp/20110320090725

http://anond.hatelabo.jp/20110321051958

2011-03-20

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

プルトニウム - Wikipedia

半減期プルトニウム239の場合約2万4000年(アルファ崩壊による)。

プルトニウムアルファ線放出するため、体内に蓄積されると強い発癌性を持つ。

反射体のない球状プルトニウム臨界量は16kgだが

中性子を反射するタンパーを用いると核兵器中のプルトニウムピットは10kg(直径10cmの球に相当)まで減らすことができる。

1kgのプルトニウムが完全に反応したとすると、20キロトンのTNT相当の爆発エネルギーを生むことができる。

Plutonium - Wikipedia, the free encyclopedia

Plutonium is more dangerous when inhaled than when ingested.

The risk of lung cancer increases once the total dose equivalent of inhaled radiation exceeds 400 mSv.[89]

The U.S. Department of Energy estimates that the lifetime cancer risk

for inhaling 5,000 plutonium particles, each about 3 microns wide, to be 1% over the background U.S. average.

アルファ粒子 - Wikipedia

放射線の一種のアルファ線α線alpha ray)は、アルファ粒子の流れである

電離作用が強いので透過力は小さく、紙や数cm空気層で止められる。

しかし、その電離作用の強さのため、アルファ線を出す物質を体内に取り込んだ場合内部被曝には十分注意しなければならない。

ベータ粒子 - Wikipedia

透過力は弱く、通常は数mmアルミ板や1cm程度のプラスチック板で十分遮蔽できる。

ただし、ベータ粒子が遮蔽物によって減速する際には制動放射によりX線が発生するため、その発生したX線についての遮蔽も必要となる。

ガンマ線 - Wikipedia

X線とは波長領域(エネルギー領域)の一部が重なっており、ガンマ線X線との区別は波長ではなく発生機構によっている。

そのため、波長からガンマ線X線かを割り出すことはできない。

中性子線 - Wikipedia

中性子線を止めるためには鉛や水やコンクリートなど大きな質量の厚い壁が必要である

ガイガー=ミュラー計数管は、GM計数管あるいはガイガー・カウンター(Geiger counter)

GM管は通常は端窓型管と呼ばれる形状である

この型は、管の一方の端に放射線が容易に通過できるように窓があることからこう呼ばれる。

反対側の端には通常は電気系のコネクターが付いている。

端窓型管には二種類ある:ガラスマントル型と雲母窓型である

ガラス窓型は、アルファ線ガラス窓を通過できないのでアルファ線は検出できないが、大抵はより安価であり、ベータ線X線を検出する用途で使われる。

雲母窓型ははアルファ線も検出できるが、壊れやすい。

ほとんどのGM管はガンマ線と2.5MeV以上のベータ線を検出する。

GM管はガンマ線も検出できるが、感度はよくない。

GM管内のガス密度が低いため、透過力の高いガンマ線は相互作用をしにくいためである

ガンマ線を測定する目的では、NaIシンチレーション検出器の方が適しているが、逆にシンチレーション検出器は窓が厚くベータ線は透過できないので、ベータ線の検出には適していない。

シンチレーション検出器 - Wikipedia

内部被ばくの“証拠”撮影 長崎大研究グループ - 47NEWS(よんななニュース)

Youtube 死の灰の成分はプルトニウム

ゴフマン博士は、もっとも控えめな試算として、25歳喫煙者に対する同じアルファ放射能であるプルトニウム239の肺癌吸入量(100%の確率で致死的な肺癌が生じる吸入量)は、0.255マイクログラムであるとしています。

アルファ線は人体の中を極めて短い距離しか透過しない(組織の中で約40ミクロン、骨では約10ミクロン)。

they can travel only a few centimetres in air. They can be absorbed by tissue paper or the outer layers of human skin (about 40 micrometres, equivalent to a few cells deep).

Plutonium is more dangerous when inhaled than when ingested. The risk of lung cancer increases once the total dose equivalent of inhaled radiation exceeds 400 mSv.

時事ドットコム:機動隊員ら13人、内部被ばくなし=原発3号機で放水作業−放医研

マスコミは決して語らない、内部被曝の危険性 : MotoJazz

テレビが嘘つきなので、内部被曝のリスクを無理やり計算してみた - 起業ポルノ

「内部被曝」について

2011-03-14

福島原子力発電所CNNコメント欄 MIT科学者科学者見解1【東日本巨大地震

結論:大丈夫

MvK2010

I'm going to copy paste a full blog post of a research scientist at MIT here, who explains the situation at Fukushima much better than anyone else has, his message: no worries.

This post is by Dr Josef Oehmen, a research scientist at MIT, in Boston.

He is a PhD Scientist, whose father has extensive experience in Germany’s nuclear industry. I asked him to write this information to my family in Australia, who were being made sick with worry by the media reports coming from Japan. I am republishing it with his permission.

It is a few hours old, so if any information is out of date, blame me for the delay in getting it published.

This is his text in full and unedited. It is very long, so get comfy.

I am writing this text (Mar 12) to give you some peace of mind regarding some of the troubles in Japan, that is the safety of Japan’s nuclear reactors. Up front, the situation is serious, but under control. And this text is long! But you will know more about nuclear power plants after reading it than all journalists on this planet put together.

There was and will *not* be any significant release of radioactivity.

By “significant” I mean a level of radiation of more than what you would receive on – say – a long distance flight, or drinking a glass of beer that comes from certain areas with high levels of natural background radiation.

I have been reading every news release on the incident since the earthquake. There has not been one single (!) report that was accurate and free of errors (and part of that problem is also a weakness in the Japanese crisis communication). By “not free of errors” I do not refer to tendentious anti-nuclear journalism – that is quite normal these days. By “not free of errors” I mean blatant errors regarding physics and natural law, as well as gross misinterpretation of facts, due to an obvious lack of fundamental and basic understanding of the way nuclear reactors are build and operated. I have read a 3 page report on CNN where every single paragraph contained an error.

We will have to cover some fundamentals, before we get into what is going on.

Construction of the Fukushima nuclear power plants

The plants at Fukushima are so called Boiling Water Reactors, or BWR for short. Boiling Water Reactors are similar to a pressure cooker. The nuclear fuel heats water, the water boils and creates steam, the steam then drives turbines that create the electricity, and the steam is then cooled and condensed back to water, and the water send back to be heated by the nuclear fuel. The pressure cooker operates at about 250 °C.

The nuclear fuel is uranium oxide. Uranium oxide is a ceramic with a very high melting point of about 3000 °C. The fuel is manufactured in pellets (think little cylinders the size of Lego bricks). Those pieces are then put into a long tube made of Zircaloy with a melting point of 2200 °C, and sealed tight. The assembly is called a fuel rod. These fuel rods are then put together to form larger packages, and a number of these packages are then put into the reactor. All these packages together are referred to as “the core”.

The Zircaloy casing is the first containment. It separates the radioactive fuel from the rest of the world.

The core is then placed in the “pressure vessels”. That is the pressure cooker we talked about before. The pressure vessels is the second containment. This is one sturdy piece of a pot, designed to safely contain the core for temperatures several hundred °C. That covers the scenarios where cooling can be restored at some point.

The entire “hardware” of the nuclear reactor – the pressure vessel and all pipes, pumps, coolant (water) reserves, are then encased in the third containment. The third containment is a hermetically (air tight) sealed, very thick bubble of the strongest steel. The third containment is designed, built and tested for one single purpose: To contain, indefinitely, a complete core meltdown. For that purpose, a large and thick concrete basin is cast under the pressure vessel (the second containment), which is filled with graphite, all inside the third containment. This is the so-called “core catcher”. If the core melts and the pressure vessel bursts (and eventually melts), it will catch the molten fuel and everything else. It is built in such a way that the nuclear fuel will be spread out, so it can cool down.

This third containment is then surrounded by the reactor building. The reactor building is an outer shell that is supposed to keep the weather out, but nothing in. (this is the part that was damaged in the explosion, but more to that later).

Fundamentals of nuclear reactions

The uranium fuel generates heat by nuclear fission. Big uranium atoms are split into smaller atoms. That generates heat plus neutrons (one of the particles that forms an atom). When the neutron hits another uranium atom, that splits, generating more neutrons and so on. That is called the nuclear chain reaction.

Now, just packing a lot of fuel rods next to each other would quickly lead to overheating and after about 45 minutes to a melting of the fuel rods. It is worth mentioning at this point that the nuclear fuel in a reactor can *never* cause a nuclear explosion the type of a nuclear bomb. Building a nuclear bomb is actually quite difficult (ask Iran). In Chernobyl, the explosion was caused by excessive pressure buildup, hydrogen explosion and rupture of all containments, propelling molten core material into the environment (a “dirty bomb”). Why that did not and will not happen in Japan, further below.

In order to control the nuclear chain reaction, the reactor operators use so-called “moderator rods”. The moderator rods absorb the neutrons and kill the chain reaction instantaneously. A nuclear reactor is built in such a way, that when operating normally, you take out all the moderator rods. The coolant water then takes away the heat (and converts it into steam and electricity) at the same rate as the core produces it. And you have a lot of leeway around the standard operating point of 250°C.

The challenge is that after inserting the rods and stopping the chain reaction, the core still keeps producing heat. The uranium “stopped” the chain reaction. But a number of intermediate radioactive elements are created by the uranium during its fission process, most notably Cesium and Iodine isotopes, i.e. radioactive versions of these elements that will eventually split up into smaller atoms and not be radioactive anymore. Those elements keep decaying and producing heat. Because they are not regenerated any longer from the uranium (the uranium stopped decaying after the moderator rods were put in), they get less and less, and so the core cools down over a matter of days, until those intermediate radioactive elements are used up.

This residual heat is causing the headaches right now.

So the first “type” of radioactive material is the uranium in the fuel rods, plus the intermediate radioactive elements that the uranium splits into, also inside the fuel rod (Cesium and Iodine).

There is a second type of radioactive material created, outside the fuel rods. The big main difference up front: Those radioactive materials have a very short half-life, that means that they decay very fast and split into non-radioactive materials. By fast I mean seconds. So if these radioactive materials are released into the environment, yes, radioactivity was released, but no, it is not dangerous, at all. Why? By the time you spelled “R-A-D-I-O-N-U-C-L-I-D-E”, they will be harmless, because they will have split up into non radioactive elements. Those radioactive elements are N-16, the radioactive isotope (or version) of nitrogen (air). The others are noble gases such as Xenon. But where do they come from? When the uranium splits, it generates a neutron (see above). Most of these neutrons will hit other uranium atoms and keep the nuclear chain reaction going. But some will leave the fuel rod and hit the water molecules, or the air that is in the water. Then, a non-radioactive element can “capture” the neutron. It becomes radioactive. As described above, it will quickly (seconds) get rid again of the neutron to return to its former beautiful self.

This second “type” of radiation is very important when we talk about the radioactivity being released into the environment later on.

What happened at Fukushima

I will try to summarize the main facts. The earthquake that hit Japan was 7 times more powerful than the worst earthquake the nuclear power plant was built for (the Richter scale works logarithmically; the difference between the 8.2 that the plants were built for and the 8.9 that happened is 7 times, not 0.7). So the first hooray for Japanese engineering, everything held up.

When the earthquake hit with 8.9, the nuclear reactors all went into automatic shutdown. Within seconds after the earthquake started, the moderator rods had been inserted into the core and nuclear chain reaction of the uranium stopped. Now, the cooling system has to carry away the residual heat. The residual heat load is about 3% of the heat load under normal operating conditions.

The earthquake destroyed the external power supply of the nuclear reactor. That is one of the most serious accidents for a nuclear power plant, and accordingly, a “plant black out” receives a lot of attention when designing backup systems. The power is needed to keep the coolant pumps working. Since the power plant had been shut down, it cannot produce any electricity by itself any more.

Things were going well for an hour. One set of multiple sets of emergency Diesel power generators kicked in and provided the electricity that was needed. Then the Tsunami came, much bigger than people had expected when building the power plant (see above, factor 7). The tsunami took out all multiple sets of backup Diesel generators.

When designing a nuclear power plant, engineers follow a philosophy called “Defense of Depth”. That means that you first build everything to withstand the worst catastrophe you can imagine, and then design the plant in such a way that it can still handle one system failure (that you thought could never happen) after the other. A tsunami taking out all backup power in one swift strike is such a scenario. The last line of defense is putting everything into the third containment (see above), that will keep everything, whatever the mess, moderator rods in our out, core molten or not, inside the reactor.

http://anond.hatelabo.jp/20110314030613

へ続く

2008-02-03

http://anond.hatelabo.jp/20080203114053

なんで悩んでるのかもわからん・・・

select 
**
from 
都道府県 tb1
left outer join 
地方 tb2
on tb1.地方コード = tb2.地方コード
order by tb1.地方コード

でいいんじゃないの??

無駄データって何?

地方コードで引きたいってこと?

select 
**
from 
地方 tb2
left outer join 
都道府県 tb1
on tb1.地方コード = tb2.地方コード
where 
tb2.地方コード = 北海道
order by tb2.地方コード

みたいなことか?

無駄データ……ってなんのこっちゃろ?

CREATE function get_地方名(w_地方コード varchar(32)) RETURNS varchar(64)

RETURN

(select

地方名

from

地方

where

地方コード = w_地方コード )

;

こうやっといて、

select 
**,
get_地方名(地方コード) 地方名
from 
都道府県 tb1
order by tb1.地方コード

こんな感じにやるとか、

いろいろやりかたはあるんでねぇの。

もちろん一覧で取得したいなら外部結合のほうがいいにきまっとる。

んじゃ!そんなわけでがんばって!!

SQLインジェクションには気をつけないと怖い増田に怒られるぞ!

追記。

あれ、スーパープレ記法にすると*が二重になる・・・

脳内解釈してちょ

**

2007-09-27

[]11日目

前回までのあらすじ

[Ruby]10日目

http://anond.hatelabo.jp/20070925223241

id/passの再発行を申請したら届いたのはなんとブログid/passだった!!

はたして締め切りに間に合うのか!!


はい、間に合うはずもありませんね。

夏休み宿題夏休みがおわってからやる主義の増田ですこんにちは

一応エントリーだけはしておきました。

サービス開始できてないけどな!


今日Ruby(正確には24時間ぐらいまえの)

next if  :nextcontinueみたいな感じ。この表記に違和感

unless  :こんな書き方にはなにかなじめない。

一行if文が嫌いな増田には余計耐えられない。

@user = params[:id].nil? ? @myuser : User.find(params[:id])

こういう書き方が嫌い。意味わからん。

画像DB格納で苦戦

正直嵌った。

win環境がどうのがいけなかったのかと、

あれこれいじってみたのだけど、そうではなかったようだ。

start_form_tagに :multipart => true がぬけていた。

あと、{}で引数位置指定しないといけないんだと…。

http://techno.hippy.jp/rorwiki/?HowtoUploadFiles
http://www.fdiary.net/ml/rails/msg/1375/0/
start_form_tag({:action => 'create'}, :multipart => true)

これは結構やりがちなミスかもしれない。

ちなみに、本のサンプルも間違っていたので余計嵌った。

image_tagで拡張子なしのファイルを読み込むと勝手png拡張子がついてくる。

おかげさまで表示されない。

http://mumrik.air-nifty.com/blog/2007/05/16_r185r186_6.html

どうやら画像ファイル拡張子が指定されていない URL だと自動的に png として扱うよ、ということらしいので、image_tag のところで url_for( ) した部分に追加修正をしてみる。

url_for(:action => 'xx', :id => 'xx', :extension => '.jpg')

対処療法でしかない。これだとjpgしかできないので正直どうしたものか。

:content_typeを一応保存しているので後から拡張子をつくることもできるが、

きっとなにかいいものがそのうちできるはず!!というかあるはず!!

→時間がなかったのでうっちゃった

redirect_back_or_defaultの使いどころに悩む。

ruby画像を描画させているばあい、画像にもどってしまうからだ。

この挙動は最初意味わからなかったぜ。

→時間がなかったので最初の画面に飛ばして誤魔化した

テーブルでjoinで名前だけでももってきたいとき、元のテーブルにはどうやって別名つけたらいいんだろう??

例えば、user名をuserテーブルからくっつけてもってきたい場合rubyは次みたいな

感じになるんだけど、正直気持ち悪い。

@catchcopy_pages, @catchcopy = paginate :catchcopies,

:conditions => contitions_str,

:select => 'catchcopies.id,user_id,users.login,catchcopies.catchcopy,catchcopies.created_at,vote,catchcopies.updated_at,item_id',

:joins => 'left outer join users on user_id = users.id ',

:order => 'created_at DESC' ,

:per_page => 10

ところでSchema.rbとかみるかぎりFKにも指定されていないんだが、大丈夫なのだろうか。

belongs_toとかではそこまでやってくれないものなのか。

ちなみにmigrateファイルでのalterとかの書き方はまだわかっていない。できるのかもしらない。

大会サーバアクセスできた

パスワードメールで送ってもらってアクセスできるようになった!

ftpは公開してないのね…? FTPあけてくれよ!!!

しかたないのでSSHアクセス

われながら情けないが、SSH越しのファイル転送のしかたがわからなかった。

rcpもscpもうまくできない。

これが環境の問題なのか、自分が悪いのか、やりかたが悪いのか、

問題の切り分けがそもそもできないので諦めた。

SSHで向こうのコマンドからrcpを蹴ってるってことはこっちが開けてないとダメってことだよね?

こっち閉じてるもの…。

wgetは生きていたので他のレンタルサーバー経由ファイルを取得。

ちなみにrcpができないのであげっぱなしさ!

が、しかし。unzipがはいってない。

tarで圧縮して、

tar xvf xxxx.tar

unzipがないのでzがつかえない。

フォルダの権限設定などをして、ローカライズ

せっかく

ENV['RAILS_ENV'] ||= 'production'

みたいなymlがあるのに、

dispatch.cgi

dispatch.fcgi

に書かれた

#!c:/ruby/bin/ruby

#!/usr/bin/ruby

に変更しなきゃいけないのは、何かあれだなと思った。

これかえてまわってたら本番とローカルで世代が分岐しちゃうじゃないか…。

ちなみにmysqlのソケットの位置も違うようなので、

/tmp/mysql.sock

socket: /var/run/mysqld/mysqld.sock

をymlに設定。

できればconfファイルフラグの書き換えだけで乗り換えしたかった。

最近linuxとかにもめっきり触っていなかったのでコマンド表を一生懸命見た。

witch ruby でインストールフォルダを割り出したり、

・・・findというコマンドが思い出せないときは情けなかった。

viコマンドも同様。

そうこうしながら設定完了

本番環境テスト動作

あれ、動かない・・・500エラーが出てる。

wget経由でdispatch.cgiをそのまま配置したのが原因でした。

中身みたらcgiエラー出力が書いてあった。

中継サーバで動いちゃったみたい。tarで固めてからわたしなおしましたとさ。

うごいたーー!!

でも、登録すると文字化けしている。

SQLで中身をみる。中身も文字化けしている。

おかしいなぁ……。

SQL>status

DBがlatin1になっていた…。

CREATE DATABASEも権限ないし…。

my.cnfも読み込み専用だった。

alter database XXXX DEFAULT CHARACTER SET utf8;

alter table XXXX DEFAULT CHARACTER SET utf8;

みたいな悪あがきもしてみたけど適わぬ夢。

SET NAMES utf8;

でもコネクションのところあたりでやってあげたいのだけど、

こういうときにRailsみたいなのは何がどこにあるのかわからない。

しょうがないので運営に問合わせしてみました。

ratin1は正直太刀できるきがあまりしない。

感想

unixとかlinuxとかそこらへん全然わからん…。

8日(のんびり)の勉強と2日(ほぼ徹夜)と1日(半日)のサーバー設定で、

アプリっぽいのはできあがった。

が、どうなのさ・・・。RonR

また今度Ruby感想でもくっちゃべるよ。

[Ruby]タグでもひいておくれ。

なんていうか消化不良。

もっとちゃんとしたものつくりたいな……。

ログイン ユーザー登録
ようこそ ゲスト さん