memo.xight.org

日々のメモ

Manifesto for Agile Software Development - アジャイルソフトウェア開発宣言

Summary

アジャイル開発手法の精神ともいえる内容を宣言した
「Manifesto for Agile Software Development」 (アジャイルソフトウェア開発宣言)の
公式な日本語版が、英語版が公開された2001年から約10年たって、公開された。

原文

Manifesto for Agile Software Development

We are uncovering better ways of developing
software by doing it and helping others do it.
Through this work we have come to value:

Individuals and interactions over processes and tools
Working software over comprehensive documentation
Customer collaboration over contract negotiation
Responding to change over following a plan

That is, while there is value in the items on
the right, we value the items on the left more.

Kent Beck, Mike Beedle, Arie van Bennekum, Alistair Cockburn, Ward Cunningham, Martin Fowler, James Grenning, Jim Highsmith, Andrew Hunt, Ron Jeffries, Jon Kern, Brian Marick, Robert C. Martin, Steve Mellor, Ken Schwaber, Jeff Sutherland, Dave Thomas

(c) 2001, the above authors
this declaration may be freely copied in any form,
but only in its entirety through this notice.

日本語訳

アジャイルソフトウェア開発宣言

私たちは、ソフトウェア開発の実践
あるいは実践を手助けをする活動を通じて、
よりよい開発方法を見つけだそうとしている。
この活動を通して、私たちは以下の価値に至った。

プロセスやツールよりも個人と対話を、
包括的なドキュメントよりも動くソフトウェアを、
契約交渉よりも顧客との協調を、
計画に従うことよりも変化への対応を、

価値とする。すなわち、左記のことがらに価値があることを
認めながらも、私たちは右記のことがらにより価値をおく。

Kent Beck, Mike Beedle, Arie van Bennekum, Alistair Cockburn, Ward Cunningham, Martin Fowler, James Grenning, Jim Highsmith, Andrew Hunt, Ron Jeffries, Jon Kern, Brian Marick, Robert C. Martin, Steve Mellor, Ken Schwaber, Jeff Sutherland, Dave Thomas

(c) 2001, 上記の著者たち
この宣言は、この注意書きも含めた形で全文を含めることを条件に自由にコピーしてよい。

Reference

Manifesto for Agile Software Development
http://agilemanifesto.org/iso/en/

アジャイルソフトウェア開発宣言
http://agilemanifesto.org/iso/ja/

via

Publickey - 2010-04-05 - 「アジャイルソフトウェア開発宣言」公式日本語版が公開
http://www.publickey1.jp/blog/10/post_103.html

PHPでTwitter APIのOAuthを使う方法 - twitteroauth版

Summary

PEARの HTTP_OAuthを利用すると、ソースがゴチャゴチャしていたので、
twitteroauth.php を利用してみる。

Access Token, Access Token Secret を取得

http://www.sdn-project.net/ups/oauth_test.txt
$consumer_key と $consumer_secret を変更してブラウザから実行。

例えば、このようなURLで実行。
http://example.com/oauth_test.php

数字が表示されたらNG。
Twitter アプリケーションの設定を見直す。(http://twitter.com/apps)
Twitter の 「あなたの招待状」を「ブラウザアプリケーション」にしておくこと。
Callback URL に oauth_test.php へのURL (http://example.com/path/to/opauth_test.php) を記載。

Twitterへの投稿

<?php
require_once("path/to/twitteroauth.php");
require_once("path/to/conf.inc.php");

$to = new TwitterOAuth($consumer_key,$consumer_secret,$access_token,$access_token_secret);

$mes = "投稿するメッセージ";

// TwitterへPOSTする。パラメーターは配列に格納する。
// http://apiwiki.twitter.com/Twitter-REST-API-Method:-statuses%C2%A0update
// 他の操作はTwitter APIを参照。
$req = $to->OAuthRequest("https://twitter.com/statuses/update.xml","POST",array("status"=>$mes));

header("Content-Type: application/xml");
echo $req;
?>


conf.inc.php

$consumer_key = "consumer_key";
$consumer_secret = "consumer_secret";
$access_token = "access_token";
$access_token_secret = "access_token_secret";

Reference

GitHub - twitteroauth at master from abraham's twitteroauth
http://github.com/abraham/twitteroauth/tree/master/twitteroauth/

Twitter API Wiki / Twitter API Documentation
http://apiwiki.twitter.com/Twitter-API-Documentation

via

twitterのbotなどでOAuthを使う方法(PHPバージョン) | 星光のつれづれ日記
http://www.hosimitu.com/2009/11/2020-1358.php

PHP+OAuthでTwitter - SDN Project
http://www.sdn-project.net/labo/oauth.html