<< September 2014 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 >>
スポンサーサイト
2010.04.28
この広告は45日以上更新がないブログに表示されております。
新しい記事を書くことで広告を消すことができます。
GAE
2010.04.28
 http://d.hatena.ne.jp/ikasamaH/20080612/p1#c

yamlファイルを編集する】
★app.yaml
→私はpost用とreply用の二つを動かしたいので、下のように編集しました。
application: 自分の設定したアプリケーションID

version: 1

runtime: python

api_version: 1



handlers:

- url: /cron/post

script: post.py

login: admin



- url: /cron/reply

script: reply.py

login: admin


<注意すること>
・YAMLはインデントで階層を読む言語なので、scriptの行とloginの行の頭がurlの「u」の字と揃うようにします。
・urlはどのように作っても構いません。(/post や /reply だけでも大丈夫だと思いますが、二つは区別するように)
・scriptに書いた.pyファイルは後ほど作ります。
http://mitsukuni.org/blog/2009/04/04/gae-datastore%E3%81%AE%E5%88%B6%E9%99%90%E3%81%A8%E5%9B%9E%E9%81%BF%E6%96%B9%E6%B3%95/

デプロイする(オンライン上で使えるようにする)】
GAEのSDKを入れたときに勝手についてくるGAE Launcherを使うとGUIで分かりやすくて良いのでしょうが……。
私はあいつとどうも相性が悪いので(エラーに慌てさせられて以来怖くて使えない。笑)、Windowsのコマンドプロンプトを使っています。
※以下、Cドライブ直下に「gae」という名前のフォルダを作り、その中にGAE用のファイルを入れている設定で書きます。

・コマンドプロンプトを立ち上げる
・cd C:¥ と入力(gaeフォルダの一つ上を指定)
→C:¥>と出ると思います
・appcfg.py update gae/ と入力(appcfg.pyを使って、gaeの中身をupdateしなさい、という意味)
→Googleのメールアドレスとパスワードを求められるので、入力

409エラーが出て上げられなかった時は(滅多にないですが一度だけ遭遇したのでメモ)
appcfg.py rollback gae/
と打ちこんでやると、元の状態に戻せて再アップロードすることが出来るようになります。
★コマンドプロンプトを立ち上げたまま何度も同じアップロード作業をするなら
「↑」キーを押してやるとひとつ前に入力したコマンドがもう一度入ります。
マウス使わなくても「↑+Enter」で上げられるので、Launcher使うより楽なんじゃないかな、と。私見ですが。

cronさえ何とかなれば、bot制作はぐっとやりやすくなるんじゃないかと思います……。
私も色々と試行錯誤した結果この形で落ち着いただけ、というものなので、もっとスマートな方法もあるのではないかと…。色々と試してみるのをお勧めしま す。
pspdowngrade
2010.04.28
 

東芝は3月18日、地上、BS、 110度デジタル放送対応の単体チューナー「レグザチューナー D-TR1」を発表した。USB HDDと接続しての番組録画機能などを備える。発売は4月下旬から。店頭想定価格は2万5000円前後となる。

 高さ33.0mm×幅238.0mm×奥行き160.8mmの本体には、HDMI出力端子1系統、USB端子1系統、SD カードスロットを装備。USB経由で外付けHDDを接続すれば、地上、BS、110度CS放送の録画ができる。USB HDDは最大4台まで接続可能だ。

 SD カードスロットを利用すればSDカードへのワンセグ録画も可能。対応のポータブルDVDプレーヤーや携帯電話などで再生ができる。

 EPGは、液晶テレビ「REGZA」同様の「レグザ番組表・ファイン」を搭載。超解像技術採用「レゾリューションプラス2」も備え、画素数がフルHDに満たない映像に対して、画素を復元し、高密度で緻密な映像描写ができるとのことだ。

We wanted it than Green pocket Monster. we change
2009.12.11
PSP monster hunter 3 300millon
  • 18:09 President Obama in Norway to accept Nobel bit.ly/8hnMDH #
  • 21:48 President Obama receives Nobel Peace Prize. bit.ly/6PQnAZ #
  • 02:39 Midwest bracing for more heavy snow. bit.ly/8fpS4D #
  • 03:40 Judge hears Joe Jackson's request for monthly allowance. bit.ly/7Wv6Jt #
  • 04:30 FBI: 5 missing from Washington area in custody in Pakistan bit.ly/4ydbIf #
  • 10:36 Winter storm moves on, but anothe r is brewing in Sierras and could move eastward bit.ly/5tVbEk #
  • 10:49 A man accused of posting nude videos of ESPN's Erin Andrews will plead guilty guilty to a stalking charge. bit.ly/5PArQl #
Automatically shipped by KIDS GAME Automatically shipped by ADSLNET
We wanted it than Green pocket Monster. we change
2009.12.10
PSP monster hunter 3 300millon
  • 01:44 Hundreds of flights canceled, travelers stranded as winter storm crashes across U.S. bit.ly/5UoZb1 #
  • 02:16 Chicago man pleads not guilty, says he did not plan Mumbai terror attacks. bit.ly/6v3hOD #
  • 06:09 Iraqi prime minister replaces Baghdad commander a day after bombs killed 127. bit.ly/5323Tw #
  • 06:17 South Carolina House committee rejects resolution to impeach Gov. Mark Sanford. bit.ly/7Qivyi #
  • 06:37 Five people arrested in Pakistan had been reported missing in the United States. bit.ly/6TYEVu #
  • 10:55 Honduran official: Deposed president Zelaya asks for safe passage to Mexico. bit.ly/5WbHTY #
Automatically shipped by KIDS GAME Automatically shipped by ADSLNET
We wanted it than Green pocket Monster. we change
2009.12.09
PSP monster hunter 3 300millon
  • 20:41 Bombings in Baghdad, Iraq, kill at least 112, wound 198. bit.ly/6zsZco #
  • 21:22 Paramedics respond to medical call on Tiger Woods' street, county official says. bit.ly/5g81ug #
  • 01:08 Bryant Gumbel says he had lung cancer surgery. bit.ly/4DkPhc #
  • 01:25 Tiger Woods' mother-in-law admitted to hospital with stomach ailment. bit.ly/5g81ug #
  • 02:20 Ohio executes convicted killer using untested one-drug method. bit.ly/7tiZDT #
  • 07:46 Senate rejects tighter limits on federal funds for abortion in health care bill. bit.ly/7S4JUU #
  • 10:04 Accused White House party crashers won't testify if subpoenaed, lawyer says. bit.ly/88EU8e #
  • 11:07 Sen. Harry Reid: Liberal, moderate Dems reach "broad agreement" on health care. bit.ly/7S4JUU #
  • 12:42 Sen. Russ Feingold casts doubt on deal sources say would drop public option. bit.ly/7S4JUU #
Automatically shipped by KIDS GAME Automatically shipped by ADSLNET
We wanted it than Green pocket Monster. we change
2009.12.08
PSP monster hunter 3 300millon
  • 22:59 Four U.S. military teens arrested in Japan on attempted murder charges. bit.ly/561k3f #
  • 23:06 Ten killed, 36 injured in suicide bombing in Peshawar, Pakistan. bit.ly/8Yrf3S #
  • 23:09 Major winter storm to wallop central U.S. bit.ly/71vo58 #
  • 01:15 Texas inmate who used wheelchair but escaped on foot is recaptured. bit.ly/4Tp0QJ #
  • 03:18 15 dead in market blasts in Lahore, Pakistan. bit.ly/6fUGna #
  • 06:25 Northwest pilots who overshot Minneapolis airport blame air traffic controllers. bit.ly/4Z1uAg #
  • 06:43 Poll: Republicans largely account for rise in U.S. skepticism on global warming. bit.ly/7nRz1S #
  • 07:07 Researchers: New cancer cases, mortality rates have fallen for most U.S. groups. bit.ly/8c3t5G #
  • 15:28 Gates makes surprise visit to Afghanistan bit.ly/7hOCXJ #
Automatically shipped by KIDS GAME Automatically shipped by ADSLNET
We wanted it than Green pocket Monster. we change
2009.12.07
PSP monster hunter 3 300millon
  • 00:19 Iran warns of crackdown in case of protests marking anniversary of killing of 3 students. bit.ly/8pip8t #
  • 01:21 Karzai: U.S. must have patience if Afghanistan not ready to take over security. bit.ly/6yTtmT #
  • 02:05 Weezer lead singer hospitalized after upstate NY bus accident. bit.ly/7LgYf4 #
  • 08:02 Bolivian President Evo Morales handily won re-election Sunday, according to exit polls. bit.ly/91qkfz #
  • 13:04 Consumers warned to avoid oysters from San Antonio Bay,Texas, after oysters found to cause highly contagious virus bit.ly/67xHMG #
Automatically shipped by KIDS GAME Automatically shipped by ADSLNET
We wanted it than Green pocket Monster. we change
2009.12.06
PSP monster hunter 3 300millon
  • 19:49 Victim's family satisfied with Amanda Knox guilty verdict bit.ly/4E8NC1 #
  • 02:02 Two people, 65 horses killed in barn fire at Ohio racetrack. bit.ly/81sx6B #
  • 10:38 No. 2 Alabama defeats No. 1 Florida 32-13 to win the SEC football title. bit.ly/91F8f5 #
Automatically shipped by KIDS GAME Automatically shipped by ADSLNET
We wanted it than Green pocket Monster. we change
2009.12.05
PSP monster hunter 3 300millon
  • 19:01 Jury deliberating in Amanda Knox murder case bit.ly/6fLNuj #
  • 20:29 Dozens killed in Pakistan mosque attack. bit.ly/7XxSlN #
  • 21:31 Filmmaker Roman Polanski granted bail by Swiss authorities. bit.ly/8vMrVB #
  • 22:28 NATO promises up to 7,000 more troops to fight war in Afghanistan. bit.ly/4JMaDy #
  • 22:54 Official U.S. jobless rate falls to 10 percent in Nov. with 11,000 jobs lost. bit.ly/8kRoNG #
  • 03:11 USA drawn in same group as England in 2010 Word Cup. bit.ly/7Xccov #
  • 03:28 USA will play England, Algeria and Slovenia in 2010 soccer World Cup. bit.ly/7Xccov #
  • 05:48 Amanda Knox verdict expected about 6 p.m. ET Friday, two lawyers in case say. bit.ly/6fLNuj #
  • 07:26 Explosion at a nightclub in Russia kills at least 100, state-run media report. bit.ly/5Jf7ZF #
  • 08:12 American student Amanda Knox found guilty in killing of Briton Meredith Kercher. bit.ly/6fLNuj #
  • 08:16 Amanda Knox sentenced to 26 years in prison for Kercher killing. bit.ly/6fLNuj #
  • 08:27 Amanda Knox and her ex-boyfriend will appeal murder convictions, attorneys say. bit.ly/6fLNuj #
  • 08:47 Publicist: Ex-anchor Tom Brokaw in crash that killed one person; Brokaw not hurt. bit.ly/8M69Sw #
Automatically shipped by KIDS GAME Automatically shipped by ADSLNET
We wanted it than Green pocket Monster. we change
2009.12.04
PSP monster hunter 3 300millon
  • 17:21 Lawyer of woman who denied Tiger Woods affair to discuss allegations bit.ly/6q8F1J #
  • 20:52 Comcast to buy controlling stake in NBC Universal. bit.ly/8t1s1O #
  • 01:29 Cleveland man enters not guilty, insanity plea in deaths of 11 women found in home. bit.ly/8CD8Cz #
  • 03:01 Amanda Knox tells Italian murder trial jury "I'm not an assassin." bit.ly/8xlSp8 #
  • 05:26 Obama called on business leaders to help the administration kickstart hiring at job summit bit .ly/8qBLEw #
Automatically shipped by KIDS GAME Automatically shipped by ADSLNET
Recent Entries
Categories
Archives
Recent Trackback
Link
Powered