<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>Kayaking Lifestyle</title>
	<atom:link href="http://www.kayakinglifestyle.jp/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kayakinglifestyle.jp</link>
	<description>物心ついた時からパドリングライフにどっぷり浸かり、仕事も生活もカヌーのメッカ御岳渓谷に置いている。</description>
	<lastBuildDate>Tue, 17 Apr 2012 15:17:29 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kayakinglifestyle.jp/feed" />
		<item>
		<title>Google Maps API V3のルートサービスを使う時のサンプル</title>
		<link>http://www.kayakinglifestyle.jp/google-maps-api-v3%e3%81%ae%e3%83%ab%e3%83%bc%e3%83%88%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9%e3%82%92%e4%bd%bf%e3%81%86%e6%99%82%e3%81%ae%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab/533</link>
		<comments>http://www.kayakinglifestyle.jp/google-maps-api-v3%e3%81%ae%e3%83%ab%e3%83%bc%e3%83%88%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9%e3%82%92%e4%bd%bf%e3%81%86%e6%99%82%e3%81%ae%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab/533#comments</comments>
		<pubDate>Tue, 17 Apr 2012 15:15:52 +0000</pubDate>
		<dc:creator>shunpei</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.kayakinglifestyle.jp/?p=533</guid>
		<description><![CDATA[Google Maps API V3のルートサービスを使った地図を表示させる時のサンプルコードです。 座標データをxmlファイルから読み込む形にして、地図上に「ウェイポイント」（中継地点）を表示させます。 マーカーをクリ [...]]]></description>
			<content:encoded><![CDATA[<p>Google Maps API V3のルートサービスを使った地図を表示させる時のサンプルコードです。<br />
座標データをxmlファイルから読み込む形にして、地図上に「ウェイポイント」（中継地点）を表示させます。<br />
マーカーをクリックした際に出てくる吹き出しの中身を自由に書き換えたかったのですが、その辺のコードがapiのガイドには出ていませんでした。<br />
ただ、吹き出しの中身を変更すると、Directions Panel（右側の案内テキスト）を表示させた際の表示で、出発地点のみ吹き出しの中身とDirections Panelの中身が共通になってしまう問題が未解決。</p>
<p><strong>ルートサービスのルートをカスタマイズするには、DirectionsServiceにリクエストを送信した際に受け取るDirectionsResultsオブジェクトをいじると大体の事はできそう。</strong></p>
<p><iframe src="/eee/ramen.html" height=400 width=690></iframe></p>
<p><a href="http://www.kayakinglifestyle.jp/eee/ramen.html">サンプルを表示</a></p>
<p><a href="http://www.kayakinglifestyle.jp/eee/ramen.xml">読み込んでるxml</a>（青梅のラーメン屋さんめぐり）</p>
<p><strong>javascript</strong><br />
jqueryを使ってます。</p>
<pre class="brush: jscript; title: ; notranslate">
rendererOptions = {
	draggable: false,
	preserveViewport: false
};
var directionsDisplay = new google.maps.DirectionsRenderer(rendererOptions);
var directionsService = new google.maps.DirectionsService();

var map;

function initialize() {
	var center = new google.maps.LatLng(35.793206,139.286213);
	var zoom = 12;
	var mapTypeId = google.maps.MapTypeId.ROADMAP

	var opts = {
		center: center,
		zoom: zoom,
		mapTypeId: mapTypeId
	};

	map = new google.maps.Map(document.getElementById(&quot;map_canvas&quot;), opts);
	directionsDisplay.setPanel(document.getElementById(&quot;directionsPanel&quot;));

	directionsDisplay.setMap(map);
	loadXml();
}

function loadXml() {
	var mapid = $('#map_canvas').attr('map');
	$.ajax({
		url: 'ramen.xml',
		type: 'GET',
		dataType: 'xml',
		timeout: 1000,
		error: function () {
			alert(&quot;xmlファイルの読み込みに失敗しました&quot;);
		},
		success: function (xml) {
			var data = new Array();
			data['waypoints'] = new Array();
			var mk = new Array();

			$(xml).find(&quot;origin&quot;).each(function () {
				data['origin'] = {
					'location': $(this).find('location').text(),
					'address': $(this).find('address').text(),
					'name': $(this).find('name').text()
				};
			});
			$(xml).find(&quot;destination&quot;).each(function () {
				data['destination'] = {
					'location': $(this).find('location').text(),
					'address': $(this).find('address').text(),
					'name': $(this).find('name').text()
				};
			});
			var i = 1;
			$(xml).find(&quot;waypoints&quot;).each(function () {
				var shop = {
					'location': $(this).find('location').text(),
					'address': $(this).find('address').text(),
					'name': $(this).find('name').text()
				};
				data['waypoints'].push(shop);
				i++;
			});
			calcRoute(data);
		}
	});
}

function calcRoute(data) {
	var points = new Array();
	for (var i in data['waypoints']) {
		points.push({
			location: data['waypoints'][i]['location'],
			stopover: true
		});
	}
	var request = {
		origin: data['origin']['location'],
		destination: data['destination']['location'],
		waypoints: points,
		travelMode: google.maps.DirectionsTravelMode.DRIVING,
		unitSystem: google.maps.DirectionsUnitSystem.METRIC,
		optimizeWaypoints: false,
		avoidHighways: false,
		avoidTolls: false
	};

	directionsService.route(request, function (response, status) {
		if (status == google.maps.DirectionsStatus.OK) {
			var route = response.routes[0];
			route.legs[0].start_address = &quot;&lt;strong&gt;&quot; + data['origin']['name'] +&quot;&lt;/strong&gt;&lt;br /&gt;&quot;+ data['origin']['address'] + &quot;&lt;br /&gt;&quot;;//1件目の吹き出しを設定（directionsPanelもこれになっちゃう）
			var o = 0;
			for (var i in data['waypoints']) {
				route.legs[o + 1].start_address = &quot;&lt;strong&gt;&quot; + data['waypoints'][i]['name'] + &quot;&lt;/strong&gt;&lt;br /&gt;&quot; + data['waypoints'][i]['address'] + &quot;&lt;br /&gt;&quot;;//waypointsの吹き出しを設定
				o++;
			}
			route.legs[o].end_address = &quot;&lt;strong&gt;&quot; + data['destination']['name'] +&quot;&lt;/strong&gt;&lt;br /&gt;&quot;+ data['destination']['address'];//最終地点の吹き出しを設定（directionsPanelもこれになっちゃう）

			directionsDisplay.setDirections(response);
		}
	});
}
</pre>
<p><a href="https://developers.google.com/maps/documentation/javascript/services?hl=ja#Directions" target="_blank">APIのドキュメントに大体書いてある。</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kayakinglifestyle.jp/google-maps-api-v3%e3%81%ae%e3%83%ab%e3%83%bc%e3%83%88%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9%e3%82%92%e4%bd%bf%e3%81%86%e6%99%82%e3%81%ae%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab/533/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kayakinglifestyle.jp/google-maps-api-v3%e3%81%ae%e3%83%ab%e3%83%bc%e3%83%88%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9%e3%82%92%e4%bd%bf%e3%81%86%e6%99%82%e3%81%ae%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab/533" />
	</item>
		<item>
		<title>御岳発電所駐車場脇にオープンした「YOSHIZO Cafe」に行ってきた</title>
		<link>http://www.kayakinglifestyle.jp/%e5%be%a1%e5%b2%b3%e7%99%ba%e9%9b%bb%e6%89%80%e9%a7%90%e8%bb%8a%e5%a0%b4%e8%84%87%e3%81%ab%e3%82%aa%e3%83%bc%e3%83%97%e3%83%b3%e3%81%97%e3%81%9f%e3%80%8cyoshizo-cafe%e3%80%8d%e3%81%ab%e8%a1%8c/523</link>
		<comments>http://www.kayakinglifestyle.jp/%e5%be%a1%e5%b2%b3%e7%99%ba%e9%9b%bb%e6%89%80%e9%a7%90%e8%bb%8a%e5%a0%b4%e8%84%87%e3%81%ab%e3%82%aa%e3%83%bc%e3%83%97%e3%83%b3%e3%81%97%e3%81%9f%e3%80%8cyoshizo-cafe%e3%80%8d%e3%81%ab%e8%a1%8c/523#comments</comments>
		<pubDate>Sat, 07 Apr 2012 08:48:49 +0000</pubDate>
		<dc:creator>shunpei</dc:creator>
				<category><![CDATA[days]]></category>

		<guid isPermaLink="false">http://www.kayakinglifestyle.jp/?p=523</guid>
		<description><![CDATA[御岳発電所駐車場脇に今日（4月7日）オープンのYOSHIZO Cafeに行ってきました。 武蔵増戸にある薪釜屋YOSHIZO(ヨシゾー)の御岳店です。 薪釜屋YOSHIZOには以前からちょくちょく食べに行っていたのですが [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.kayakinglifestyle.jp/wp-content/uploads/2012/04/IMG_0759-642x480.jpg" alt="" title="IMG_0759" width="642" height="480" class="alignnone size-large wp-image-524" /></p>
<p>御岳発電所駐車場脇に今日（4月7日）オープンのYOSHIZO Cafeに行ってきました。<br />
武蔵増戸にある<a href="http://www.pizza-yoshizo.com/" target="_blank"><strong>薪釜屋YOSHIZO(ヨシゾー)</strong></a>の御岳店です。</p>
<p>薪釜屋YOSHIZOには以前からちょくちょく食べに行っていたのですが、本場の釜焼きピザが食べられるPizzeriaです。<br />
そんなピザが御岳で食べれるってことで、僕の中では超盛り上がってます。（しかもお店はウチから見える距離）</p>
<p>休日には隣の駐車場が一杯になるほど川遊びに人が集まる場所なので、テイクアウトメニューも充実させているようです。<br />
<img src="http://www.kayakinglifestyle.jp/wp-content/uploads/2012/04/IMG_0761-642x480.jpg" alt="" title="IMG_0761" width="642" height="480" class="alignnone size-large wp-image-526" /></p>
<p>YOSHIZOに来たら絶対に外せないのがピッツァマルゲリータ！<br />
モッツアレーラとトマトソース、バジルとシンプルな素材で美味しいイタリア料理が大好きです。<br />
チーズは本場の水牛のモッツアレーラを使ってるみたい。<br />
もちろん生地は薄いやつですよ。</p>
<p><img src="http://www.kayakinglifestyle.jp/wp-content/uploads/2012/04/IMG_0758-642x480.jpg" alt="" title="IMG_0758" width="642" height="480" class="alignnone size-large wp-image-528" /></p>
<p>とりあえずの情報は「<a href="http://ameblo.jp/pizza-yoshizo/" target="_blank">YOSHIZO BOSSの日記</a>」に載るのかも。<br />
場所はこちら<br />
<iframe width="642" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.jp/maps/ms?msa=0&amp;msid=210780761234936094734.0004bd12c078179b0be73&amp;hl=ja&amp;brcurrent=3,0x60193ac1dabf5163:0x7a9bb459daae690c,0&amp;ie=UTF8&amp;t=m&amp;iwloc=0004bd12c29777d65bcbc&amp;ll=35.798763,139.177825&amp;spn=0,0&amp;output=embed"></iframe><br /><small>より大きな地図で <a href="http://maps.google.co.jp/maps/ms?msa=0&amp;msid=210780761234936094734.0004bd12c078179b0be73&amp;hl=ja&amp;brcurrent=3,0x60193ac1dabf5163:0x7a9bb459daae690c,0&amp;ie=UTF8&amp;t=m&amp;iwloc=0004bd12c29777d65bcbc&amp;ll=35.798763,139.177825&amp;spn=0,0&amp;source=embed" style="color:#0000FF;text-align:left">YOSHIZO Cafe</a> を表示</small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kayakinglifestyle.jp/%e5%be%a1%e5%b2%b3%e7%99%ba%e9%9b%bb%e6%89%80%e9%a7%90%e8%bb%8a%e5%a0%b4%e8%84%87%e3%81%ab%e3%82%aa%e3%83%bc%e3%83%97%e3%83%b3%e3%81%97%e3%81%9f%e3%80%8cyoshizo-cafe%e3%80%8d%e3%81%ab%e8%a1%8c/523/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kayakinglifestyle.jp/%e5%be%a1%e5%b2%b3%e7%99%ba%e9%9b%bb%e6%89%80%e9%a7%90%e8%bb%8a%e5%a0%b4%e8%84%87%e3%81%ab%e3%82%aa%e3%83%bc%e3%83%97%e3%83%b3%e3%81%97%e3%81%9f%e3%80%8cyoshizo-cafe%e3%80%8d%e3%81%ab%e8%a1%8c/523" />
	</item>
		<item>
		<title>CakeEmailのエラーを取得する</title>
		<link>http://www.kayakinglifestyle.jp/cakeemail%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%82%92%e5%8f%96%e5%be%97%e3%81%99%e3%82%8b/521</link>
		<comments>http://www.kayakinglifestyle.jp/cakeemail%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%82%92%e5%8f%96%e5%be%97%e3%81%99%e3%82%8b/521#comments</comments>
		<pubDate>Tue, 27 Mar 2012 14:41:17 +0000</pubDate>
		<dc:creator>shunpei</dc:creator>
				<category><![CDATA[CakePHP2.x]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.kayakinglifestyle.jp/?p=521</guid>
		<description><![CDATA[CakePHP2.xから追加になった超便利なCakeEmailクラス。 使い方は後でまとめるとして、メール送信エラー時のハンドリングをメモ。 例外処理を使います 参考サイト http://www.milestree.co [...]]]></description>
			<content:encoded><![CDATA[<p>CakePHP2.xから追加になった超便利なCakeEmailクラス。<br />
使い方は後でまとめるとして、メール送信エラー時のハンドリングをメモ。</p>
<h3>例外処理を使います</h3>
<pre class="brush: php; title: ; notranslate">
		$email = new CakeEmail('default');
		try{
		$email-&gt;config(array('log' =&gt; 'emails'))
			-&gt;template('mail', 'default')
			-&gt;emailFormat('text')
			-&gt;from(array('info@kayakinglifestyle.jp' =&gt; 'info@kayakinglifestyle.jp'))
			-&gt;to($tomail)
			-&gt;subject('メールタイトル')
			-&gt;send();
		}catch(Exception $e){
			//エラー時の動作。別のアドレスに送信とか
		}
</pre>
<h3>参考サイト</h3>
<ul>
<li><a href="http://www.milestree.com/php/cakeemail-could-not-send-email-cakephp-error" target="_blank">http://www.milestree.com/php/cakeemail-could-not-send-email-cakephp-error</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.kayakinglifestyle.jp/cakeemail%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%82%92%e5%8f%96%e5%be%97%e3%81%99%e3%82%8b/521/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kayakinglifestyle.jp/cakeemail%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%82%92%e5%8f%96%e5%be%97%e3%81%99%e3%82%8b/521" />
	</item>
		<item>
		<title>CakePHPのisUniqueメソッドで複数フィールドでの一意性</title>
		<link>http://www.kayakinglifestyle.jp/cakephp%e3%81%aeisunique%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%a7%e8%a4%87%e6%95%b0%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%83%89%e3%81%a7%e3%81%ae%e4%b8%80%e6%84%8f%e6%80%a7/516</link>
		<comments>http://www.kayakinglifestyle.jp/cakephp%e3%81%aeisunique%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%a7%e8%a4%87%e6%95%b0%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%83%89%e3%81%a7%e3%81%ae%e4%b8%80%e6%84%8f%e6%80%a7/516#comments</comments>
		<pubDate>Tue, 27 Mar 2012 14:07:13 +0000</pubDate>
		<dc:creator>shunpei</dc:creator>
				<category><![CDATA[CakePHP2.x]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.kayakinglifestyle.jp/?p=516</guid>
		<description><![CDATA[データの保存時のバリデーションで一意性を保ちたい時に使うisUniqueメソッドで、複数フィールドにまたがって一意性をチェックしたい時のメモ。 モデルに独自メソッドを追加 独自メソッドでのバリデーション 更新時に使う際に [...]]]></description>
			<content:encoded><![CDATA[<p>データの保存時のバリデーションで一意性を保ちたい時に使うisUniqueメソッドで、複数フィールドにまたがって一意性をチェックしたい時のメモ。</p>
<h3>モデルに独自メソッドを追加</h3>
<pre class="brush: php; title: ; notranslate">
function checkUnique($data, $fields) {
	if (!is_array($fields)) {
		$fields = array($fields);
	}
	foreach($fields as $key) {
		$tmp[$key] = $this-&gt;data[$this-&gt;name][$key];
	}
	return $this-&gt;isUnique($tmp, false);
 }
</pre>
<h3>独自メソッドでのバリデーション</h3>
<pre class="brush: php; title: ; notranslate">
var $validate = array(
	'bookmark' =&gt; array(
			'notEmpty' =&gt; array(
				'rule' =&gt; 'notEmpty',
				'message' =&gt; '必須'
			),
			'unique' =&gt; array(
				'rule'=&gt;array('checkUnique', array('bookmark', 'user_id')), //ユニークチェックしたいフィールド
				'message' =&gt; '違う名前にしてください。'
			)
	)
);
</pre>
<p>更新時に使う際にコントローラ側で、<br />
$this->Model->id = $id<br />
するとそのid以外でのチェックをしてくれる。</p>
<h3>コントローラ側の例</h3>
<pre class="brush: php; title: ; notranslate">
function edit($id) {
	if ($this-&gt;request-&gt;is('post') || $this-&gt;request-&gt;is('put')) {
		$this-&gt;Test-&gt;id = $id;
		$this-&gt;Test-&gt;save($this-&gt;request-&gt;data);
	}
	$this-&gt;data = $this-&gt;Test-&gt;findById($id);
}
</pre>
<h3>参考サイト</h3>
<ul>
<li><a href="http://stackoverflow.com/questions/2461267/cakephp-isunique-for-2-fields" target="_blank">http://stackoverflow.com/questions/2461267/cakephp-isunique-for-2-fields</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.kayakinglifestyle.jp/cakephp%e3%81%aeisunique%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%a7%e8%a4%87%e6%95%b0%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%83%89%e3%81%a7%e3%81%ae%e4%b8%80%e6%84%8f%e6%80%a7/516/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kayakinglifestyle.jp/cakephp%e3%81%aeisunique%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%a7%e8%a4%87%e6%95%b0%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%83%89%e3%81%a7%e3%81%ae%e4%b8%80%e6%84%8f%e6%80%a7/516" />
	</item>
		<item>
		<title>CakePHP2.0でブラウザを閉じた時にセッションを破棄させたいとき</title>
		<link>http://www.kayakinglifestyle.jp/cakephp2-0%e3%81%a7%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%82%92%e9%96%89%e3%81%98%e3%81%9f%e6%99%82%e3%81%ab%e3%82%bb%e3%83%83%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e7%a0%b4%e6%a3%84%e3%81%95%e3%81%9b/514</link>
		<comments>http://www.kayakinglifestyle.jp/cakephp2-0%e3%81%a7%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%82%92%e9%96%89%e3%81%98%e3%81%9f%e6%99%82%e3%81%ab%e3%82%bb%e3%83%83%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e7%a0%b4%e6%a3%84%e3%81%95%e3%81%9b/514#comments</comments>
		<pubDate>Mon, 26 Mar 2012 15:23:21 +0000</pubDate>
		<dc:creator>shunpei</dc:creator>
				<category><![CDATA[CakePHP2.x]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.kayakinglifestyle.jp/?p=514</guid>
		<description><![CDATA[Security.levelをmediumのままブラウザを閉じた時にセッションを破棄させたい時はsession.cookie_lifetimeの値を0にする。 app/Config/bootstrap.php]]></description>
			<content:encoded><![CDATA[<p>Security.levelをmediumのままブラウザを閉じた時にセッションを破棄させたい時はsession.cookie_lifetimeの値を0にする。</p>
<p>app/Config/bootstrap.php</p>
<pre class="brush: php; title: ; notranslate">
Configure::write('Session', array(
    'defaults' =&gt; 'database',
    'cookie' =&gt; 'CAKEPHP',
    'timeout' =&gt; 259200,
    'ini' =&gt; Array(
        'session.cookie_lifetime' =&gt; 0, //ブラウザを閉じた時にセッションを破棄
        'session.gc_maxlifetime' =&gt; 2580000,
        'session.gc_probability' =&gt; 1,
        'session.gc_divisor' =&gt; 100
    )
));
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kayakinglifestyle.jp/cakephp2-0%e3%81%a7%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%82%92%e9%96%89%e3%81%98%e3%81%9f%e6%99%82%e3%81%ab%e3%82%bb%e3%83%83%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e7%a0%b4%e6%a3%84%e3%81%95%e3%81%9b/514/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kayakinglifestyle.jp/cakephp2-0%e3%81%a7%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%82%92%e9%96%89%e3%81%98%e3%81%9f%e6%99%82%e3%81%ab%e3%82%bb%e3%83%83%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e7%a0%b4%e6%a3%84%e3%81%95%e3%81%9b/514" />
	</item>
		<item>
		<title>井田川のリアルタイム水量計グラフ</title>
		<link>http://www.kayakinglifestyle.jp/%e4%ba%95%e7%94%b0%e5%b7%9d%e3%81%ae%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%bf%e3%82%a4%e3%83%a0%e6%b0%b4%e9%87%8f%e8%a8%88%e3%82%b0%e3%83%a9%e3%83%95/509</link>
		<comments>http://www.kayakinglifestyle.jp/%e4%ba%95%e7%94%b0%e5%b7%9d%e3%81%ae%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%bf%e3%82%a4%e3%83%a0%e6%b0%b4%e9%87%8f%e8%a8%88%e3%82%b0%e3%83%a9%e3%83%95/509#comments</comments>
		<pubDate>Thu, 22 Mar 2012 11:07:45 +0000</pubDate>
		<dc:creator>shunpei</dc:creator>
				<category><![CDATA[canoe/kayak]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.kayakinglifestyle.jp/?p=509</guid>
		<description><![CDATA[http://www.kayakinglifestyle.jp/wlevel.php 毎年この時期になると井田川の水量が気になるので、作ってみた。 水量の目安になる井田川杉原橋観測所のデータの過去三日分を取ってきてグラフ [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.kayakinglifestyle.jp/wlevel.php"><img src="http://www.kayakinglifestyle.jp/wp-content/uploads/2012/03/-e1332427121397.jpg" alt="" title="井田川の水量ふえろー" width="649" height="332" class="alignnone size-full wp-image-510" /></a><br />
<a href="http://www.kayakinglifestyle.jp/wlevel.php" target="_blank">http://www.kayakinglifestyle.jp/wlevel.php</a><br />
毎年この時期になると井田川の水量が気になるので、作ってみた。</p>
<p>水量の目安になる<a href="http://www1.river.go.jp/cgi-bin/DspWaterData.exe?KIND=9&#038;ID=304081284408090" target="_blank">井田川杉原橋観測所</a>のデータの過去三日分を取ってきてグラフにしてます。</p>
<p>Canvasの勉強も兼ねてライブラリ探してたんだけど、Google Chart Toolsがあまりにも出来過ぎてるので、グラフはGoogle Chart Toolsを使うことにした。</p>
<p><strong><a href="http://code.google.com/intl/ja/apis/chart/interactive/docs/quick_start.html" target="_blank">Google Chart Tools</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kayakinglifestyle.jp/%e4%ba%95%e7%94%b0%e5%b7%9d%e3%81%ae%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%bf%e3%82%a4%e3%83%a0%e6%b0%b4%e9%87%8f%e8%a8%88%e3%82%b0%e3%83%a9%e3%83%95/509/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kayakinglifestyle.jp/%e4%ba%95%e7%94%b0%e5%b7%9d%e3%81%ae%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%bf%e3%82%a4%e3%83%a0%e6%b0%b4%e9%87%8f%e8%a8%88%e3%82%b0%e3%83%a9%e3%83%95/509" />
	</item>
		<item>
		<title>CakePHP2.0のAuthコンポーネントの設定を変更する</title>
		<link>http://www.kayakinglifestyle.jp/cakephp2-0%e3%81%aeauth%e3%82%b3%e3%83%b3%e3%83%9d%e3%83%bc%e3%83%8d%e3%83%b3%e3%83%88%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%82%92%e5%a4%89%e6%9b%b4%e3%81%99%e3%82%8b/504</link>
		<comments>http://www.kayakinglifestyle.jp/cakephp2-0%e3%81%aeauth%e3%82%b3%e3%83%b3%e3%83%9d%e3%83%bc%e3%83%8d%e3%83%b3%e3%83%88%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%82%92%e5%a4%89%e6%9b%b4%e3%81%99%e3%82%8b/504#comments</comments>
		<pubDate>Mon, 19 Mar 2012 10:48:05 +0000</pubDate>
		<dc:creator>shunpei</dc:creator>
				<category><![CDATA[CakePHP2.x]]></category>
		<category><![CDATA[days]]></category>

		<guid isPermaLink="false">http://www.kayakinglifestyle.jp/?p=504</guid>
		<description><![CDATA[CakePHP2.xでのAuthコンポーネントのセットアップをメモしとく。 認証に使うモデル、カラム等を変更したい場合はAppControllerで下記の様に設定する。 参考 http://book.cakephp.or [...]]]></description>
			<content:encoded><![CDATA[<p>CakePHP2.xでのAuthコンポーネントのセットアップをメモしとく。</p>
<p>認証に使うモデル、カラム等を変更したい場合はAppControllerで下記の様に設定する。</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
class AppController extends Controller{

	public $components = array(
			'Session',
			'Auth' =&gt; array(
				'authenticate' =&gt; array(
					'Form' =&gt; array(
						'userModel' =&gt; 'Member', //ユーザー情報のモデル
						'fields' =&gt; array('username' =&gt; 'email') //認証をusernameからemailカラムに変更
					)
				),
				'loginAction' =&gt; array('controller' =&gt; 'pages','action' =&gt; 'login'), //ログインを行なうaction
				'loginRedirect' =&gt; array('controller' =&gt; 'pages', 'action' =&gt; 'index'), //ログイン後のページ
				'logoutRedirect' =&gt; array('controller' =&gt; 'pages', 'action' =&gt; 'index') //ログアウト後のページ
			)
		);

}
</pre>
<h2>参考</h2>
<p><a href="http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html" target="_blank">http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html</a></p>
<p><a href="http://book.cakephp.org/2.0/ja/tutorials-and-examples/blog-auth-example/auth.html" target="_blank">http://book.cakephp.org/2.0/ja/tutorials-and-examples/blog-auth-example/auth.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kayakinglifestyle.jp/cakephp2-0%e3%81%aeauth%e3%82%b3%e3%83%b3%e3%83%9d%e3%83%bc%e3%83%8d%e3%83%b3%e3%83%88%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%82%92%e5%a4%89%e6%9b%b4%e3%81%99%e3%82%8b/504/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kayakinglifestyle.jp/cakephp2-0%e3%81%aeauth%e3%82%b3%e3%83%b3%e3%83%9d%e3%83%bc%e3%83%8d%e3%83%b3%e3%83%88%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%82%92%e5%a4%89%e6%9b%b4%e3%81%99%e3%82%8b/504" />
	</item>
		<item>
		<title>POST from Twitter : twitter独自の画</title>
		<link>http://www.kayakinglifestyle.jp/post-from-twitter-twitter%e7%8b%ac%e8%87%aa%e3%81%ae%e7%94%bb-14/488</link>
		<comments>http://www.kayakinglifestyle.jp/post-from-twitter-twitter%e7%8b%ac%e8%87%aa%e3%81%ae%e7%94%bb-14/488#comments</comments>
		<pubDate>Sun, 16 Oct 2011 16:14:40 +0000</pubDate>
		<dc:creator>shunpei</dc:creator>
				<category><![CDATA[days]]></category>

		<guid isPermaLink="false">http://www.kayakinglifestyle.jp/post-from-twitter-twitter%e7%8b%ac%e8%87%aa%e3%81%ae%e7%94%bb-14/488</guid>
		<description><![CDATA[像アップロードの仕様がわからんち。]]></description>
			<content:encoded><![CDATA[<p>像アップロードの仕様がわからんち。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kayakinglifestyle.jp/post-from-twitter-twitter%e7%8b%ac%e8%87%aa%e3%81%ae%e7%94%bb-14/488/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kayakinglifestyle.jp/post-from-twitter-twitter%e7%8b%ac%e8%87%aa%e3%81%ae%e7%94%bb-14/488" />
	</item>
		<item>
		<title>POST from Twitter : ぷらぷらウィ</title>
		<link>http://www.kayakinglifestyle.jp/post-from-twitter-%e3%81%b7%e3%82%89%e3%81%b7%e3%82%89%e3%82%a6%e3%82%a3/427</link>
		<comments>http://www.kayakinglifestyle.jp/post-from-twitter-%e3%81%b7%e3%82%89%e3%81%b7%e3%82%89%e3%82%a6%e3%82%a3/427#comments</comments>
		<pubDate>Fri, 14 Oct 2011 20:34:05 +0000</pubDate>
		<dc:creator>shunpei</dc:creator>
				<category><![CDATA[days]]></category>

		<guid isPermaLink="false">http://www.kayakinglifestyle.jp/post-from-twitter-%e3%81%b7%e3%82%89%e3%81%b7%e3%82%89%e3%82%a6%e3%82%a3/427</guid>
		<description><![CDATA[ンの教会 http://twitter.com/shunpeister/status/125081955132915712/photo/1]]></description>
			<content:encoded><![CDATA[<p>ンの教会 <a href="http://twitter.com/shunpeister/status/125081955132915712/photo/1" target="_blank">http://twitter.com/shunpeister/status/125081955132915712/photo/1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kayakinglifestyle.jp/post-from-twitter-%e3%81%b7%e3%82%89%e3%81%b7%e3%82%89%e3%82%a6%e3%82%a3/427/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kayakinglifestyle.jp/post-from-twitter-%e3%81%b7%e3%82%89%e3%81%b7%e3%82%89%e3%82%a6%e3%82%a3/427" />
	</item>
		<item>
		<title>Big Mitake!!</title>
		<link>http://www.kayakinglifestyle.jp/big-mitake/370</link>
		<comments>http://www.kayakinglifestyle.jp/big-mitake/370#comments</comments>
		<pubDate>Sat, 03 Sep 2011 14:58:12 +0000</pubDate>
		<dc:creator>shunpei</dc:creator>
				<category><![CDATA[days]]></category>

		<guid isPermaLink="false">http://www.kayakinglifestyle.jp/?p=370</guid>
		<description><![CDATA[台風による御岳の大増水も名残惜しいけど、ブラチスラバの世界選手権に行ってきます。]]></description>
			<content:encoded><![CDATA[<p>台風による御岳の大増水も名残惜しいけど、ブラチスラバの世界選手権に行ってきます。<br />
<a href="http://www.kayakinglifestyle.jp/wp-content/uploads/2011/09/IMG_41311.jpg"><img src="http://www.kayakinglifestyle.jp/wp-content/uploads/2011/09/IMG_41311-300x225.jpg" alt="" title="IMG_4131(1)" width="300" height="225" class="alignnone size-medium wp-image-372" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kayakinglifestyle.jp/big-mitake/370/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kayakinglifestyle.jp/big-mitake/370" />
	</item>
	</channel>
</rss>

