<?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/"
	>

<channel>
	<title>sharedhat - Personal blog of Noritaka Horio &#187; Mootools</title>
	<atom:link href="http://sharedhat.com/tag/mootools/feed/" rel="self" type="application/rss+xml" />
	<link>http://sharedhat.com</link>
	<description>WebデザインからPHP、Javascriptなどのプログラミングに関係する情報を掲載しています。活動中のプロジェクト情報も掲載しています。</description>
	<lastBuildDate>Mon, 11 Apr 2011 05:00:30 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Mootools Photo Galleryテンプレート1.0をリリースしました。</title>
		<link>http://sharedhat.com/project/1710/</link>
		<comments>http://sharedhat.com/project/1710/#comments</comments>
		<pubDate>Tue, 15 Feb 2011 04:01:39 +0000</pubDate>
		<dc:creator>horry</dc:creator>
				<category><![CDATA[project]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[Mootools]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://sharedhat.com/?p=1710</guid>
		<description><![CDATA[PC/iPadに対応したフォトギャラリーテンプレートを作成しました。 Mootools、PowerTools、OOCSSを利用しています。 バージョンは1.0です。 Mootools Photo Gallery Temp [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://sharedhat.com/wp-content/uploads/2011/02/temp-image.png"><img src="http://sharedhat.com/wp-content/uploads/2011/02/temp-image.png" alt="" title="Mootools Photo Gallery" width="734" height="398" class="aligncenter size-full wp-image-1714" /></a></p>
<p>PC/iPadに対応したフォトギャラリーテンプレートを作成しました。<br />
Mootools、PowerTools、OOCSSを利用しています。<br />
バージョンは1.0です。</p>
<p><a href="http://code.google.com/p/mootools-photo-gallery/downloads/detail?name=mootools-photo-gallery-1.0.zip&#038;can=2&#038;q=">Mootools Photo Gallery Template 1.0をダウンロードする</a><br />
<span id="more-1710"></span></p>
<h3>ギャラリーのメカニズム</h3>
<p>ソースコードを改造する場合は、コードを読む前に下記の内容を一通り見てもらえると理解度が変わると思います。</p>
<p><a href="http://sharedhat.com/wp-content/uploads/2011/02/mechanism.png"><img src="http://sharedhat.com/wp-content/uploads/2011/02/mechanism.png" alt="" title="メカニズム" width="734" height="314" class="aligncenter size-full wp-image-1717" /></a></p>
<p>この画像ギャラリーは下記のControl、Gallery、Controller、Serverの4つの構成で成り立っています。<br />
各項目についての役割は下記の通りになっています。</p>
<h4>コントロール(Control)</h4>
<p>コントロールはギャラリー上でのイベントを監視し、ギャラリーに適切なコンテンツを要求します。<br />
又、それに伴う表示の更新を行います。</p>
<h4>ギャラリー(Gallery)</h4>
<p>画像ギャラリーの機能を提供します。<br />
具体的な処理はコントローラーに委譲します。</p>
<h4>コントローラー(Controller)</h4>
<p>コントローラーは画像コンテンツの最適化、画像の切り替えの制御などの画像ギャラリーのすべての処理を行います。<br />
コンテンツの最適化はWebサーバーにAHAHを利用して要求します。</p>
<h4>サーバー(Server)</h4>
<p>サーバーはコントローラーからの要求を受け取り、適切な画像コンテンツを応答として返します。<br />
画像コンテンツはHTMLの断片です。</p>
<h3>テンプレートの今後</h3>
<p>今後はテンプレートのバグを修正しつつ、サーバーの処理部分をPHPのコードに置き換えたいと思います。<br />
特定のディレクトリに画像をアップロードすると、サーバーサイドで画像を最適するようにしたいです。<br />
最終的にはテンプレートではなくなります。<br />
<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sharedhat.com/project/1088/" title="Mootoolsの画像ギャラリープラグインGradually 2.0.0をリリースしました。">Mootoolsの画像ギャラリープラグインGradually 2.0.0をリリースしました。</a></li>
<li><a href="http://sharedhat.com/project/422/" title="Processing Clockのサイトを公開しました。">Processing Clockのサイトを公開しました。</a></li>
<li><a href="http://sharedhat.com/project/652/" title="Mootoolsのプラグイン「Exhibition.js」をリリースしました。">Mootoolsのプラグイン「Exhibition.js」をリリースしました。</a></li>
<li><a href="http://sharedhat.com/blog/1018/" title="コンテンツを切り替えるやつの基本的なビジュアルパターン">コンテンツを切り替えるやつの基本的なビジュアルパターン</a></li>
<li><a href="http://sharedhat.com/project/1673/" title="MootoolsとPowerToolsでPC、iPadに対応したギャラリーサイトのテンプレートを作りました。">MootoolsとPowerToolsでPC、iPadに対応したギャラリーサイトのテンプレートを作りました。</a></li>
</ul>
<p><!-- Similar Posts took 5.150 ms --></p>
<div class="wp-social-bookmark-menu"><ul class="socials"><li class="script-style"><a href="http://scriptandstyle.com/submit?url=http://sharedhat.com/project/1710/&title=Mootools Photo Galleryテンプレート1.0をリリースしました。" title="Submit this to Script & Style"> </a></li><li class="blinklist"><a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url=http://sharedhat.com/project/1710/&Title=Mootools Photo Galleryテンプレート1.0をリリースしました。" title="Share this on Blinklist"> </a></li><li class="delicious"><a href="http://del.icio.us/post?url=http://sharedhat.com/project/1710/&title=Mootools Photo Galleryテンプレート1.0をリリースしました。" title="Share this on del.icio.us"> </a></li><li class="digg"><a href="http://digg.com/submit?phase=2&url=http://sharedhat.com/project/1710/&title=Mootools Photo Galleryテンプレート1.0をリリースしました。" title="Digg this!"> </a></li><li class="furl"><a href="http://www.furl.net/storeIt.jsp?t=Mootools Photo Galleryテンプレート1.0をリリースしました。&u=http://sharedhat.com/project/1710/" title="Share this on Furl"> </a></li><li class="reddit"><a href="http://reddit.com/submit?url=http://sharedhat.com/project/1710/&title=Mootools Photo Galleryテンプレート1.0をリリースしました。" title="Share this on Reddit"> </a></li><li class="yahoo"><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=Mootools Photo Galleryテンプレート1.0をリリースしました。&u=http://sharedhat.com/project/1710/" title="Save this to Yahoo MyWeb"> </a></li><li class="stumble"><a href="http://www.stumbleupon.com/submit?url=http://sharedhat.com/project/1710/&title=Mootools Photo Galleryテンプレート1.0をリリースしました。" title="Stumble upon something good? Share it on StumbleUpon"> </a></li><li class="technorati"><a href="http://technorati.com/faves?add=http://sharedhat.com/project/1710/" title="Share this on Technorati"> </a></li><li class="mixx"><a href="http://www.mixx.com/submit?page_url=http://sharedhat.com/project/1710/&amp;title=Mootools Photo Galleryテンプレート1.0をリリースしました。" title="Share this on Mixx"> </a></li><li class="myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://sharedhat.com/project/1710/&amp;t=Mootools Photo Galleryテンプレート1.0をリリースしました。" title="Post this to MySpace"> </a></li><li class="designfloat"><a href="http://www.designfloat.com/submit.php?url=http://sharedhat.com/project/1710/&amp;title=Mootools Photo Galleryテンプレート1.0をリリースしました。" title="Submit this to DesignFloat"> </a></li><li class="facebook"><a href="http://www.facebook.com/share.php?u=http://sharedhat.com/project/1710/&amp;t=Mootools Photo Galleryテンプレート1.0をリリースしました。" title="Share this on Facebook"> </a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://sharedhat.com/project/1710/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MootoolsとPowerToolsでPC、iPadに対応したギャラリーサイトのテンプレートを作りました。</title>
		<link>http://sharedhat.com/project/1673/</link>
		<comments>http://sharedhat.com/project/1673/#comments</comments>
		<pubDate>Thu, 03 Feb 2011 17:04:48 +0000</pubDate>
		<dc:creator>horry</dc:creator>
				<category><![CDATA[project]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[Mootools]]></category>
		<category><![CDATA[powertools]]></category>

		<guid isPermaLink="false">http://sharedhat.com/?p=1673</guid>
		<description><![CDATA[MootoolsとPowerToolsでPC、IPadに対応したギャラリーサイトのテンプレートを作成しました。 閲覧するデバイスに最適な形式で表示するようにしています。 もちろんiPadの傾き変更にも対応済みです。 Po [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://sharedhat.com/wp-content/uploads/2011/02/img_ipad.jpg"><img src="http://sharedhat.com/wp-content/uploads/2011/02/img_ipad.jpg" alt="" title="Mootoolsギャラリー スクリーンショット(landspace)" width="734" height="300" class="aligncenter size-full wp-image-1674" /></a></p>
<p>MootoolsとPowerToolsでPC、IPadに対応したギャラリーサイトのテンプレートを作成しました。<br />
閲覧するデバイスに最適な形式で表示するようにしています。<br />
もちろんiPadの傾き変更にも対応済みです。<br />
PowerToolsはMootoolsのコアデベロッパーのChristoph Pojerが開発したMootoolsベースのライブラリです。<br />
Mobileデバイス用イベント、クラスユーティリティ、ツリーUIなどのコンポーネントを配布しています。<br />
<span id="more-1673"></span></p>
<h3>サイトとソースコード</h3>
<h4>Mootools Photo Gallery</h4>
<p><a href="http://gallery.sharedhat.com/">http://gallery.sharedhat.com/</a></p>
<h4>ソースコード</h4>
<p><a href="http://code.google.com/p/mootools-photo-gallery/source/checkout">http://code.google.com/p/mootools-photo-gallery/source/checkout</a></p>
<h3>ライブラリ</h3>
<p>ライブラリは下記のサイトから入手できます。</p>
<h4>Mootools</h4>
<p><a href="http://mootools.net">http://mootools.net</a></p>
<h4>PowerTools</h4>
<p><a href="http://cpojer.net/PowerTools/">http://cpojer.net/PowerTools/</a></p>
<h3>PowerToolsの使用したコンポーネント</h3>
<p>今回iPadに対応するために、PowerToolsの下記のコンポーネントを使用しました。</p>
<h4>Custom-Event</h4>
<table>
<colgroup>
<col width="230"/>
<col width="506" />
</colgroup>
<tr>
<th>名称</th>
<th>説明</th>
</tr>
<tr>
<td>Element.defineCustomEvent</td>
<td>カスタムイベントを定義できる機能を提供する。</td>
</tr>
</table>
<h4>Mobile</h4>
<table>
<colgroup>
<col width="230"/>
<col width="506" />
</colgroup>
<tr>
<th>名称</th>
<th>説明</th>
</tr>
<tr>
<td>Browser.Mobile</td>
<td>Mootools CoreのBrowserにiPad/iPhone/iPodのモバイルデバイスの情報を追加する。</td>
</tr>
<tr>
<td>Browser.Features.Touch</td>
<td>Mootools CoreのBrowserにTouchイベントのサポート情報を追加する。</td>
</tr>
<tr>
<td>Mouse</td>
<td><strong>Touchイベントに対応していないデバイスの際に、イベントmousedown, mousemove, mouseupをベースにtouchstart, touchmove, touchendイベントをカスタムイベントで提供する。<br />これによりモバイルデバイスを使用しなくてもPCで動作テストをすることができる。</strong></td>
</tr>
<tr>
<td>Touch</td>
<td>touchendイベントをベースにカスタムTouchイベントを提供する。</td>
</tr>
<tr>
<td>Click</td>
<td><strong>Touchイベントをサポートしている場合に、ClickイベントをカスタムTouchイベントに置換する。<br />これによりモバイルデバイスを使用しなくてもPCで動作テストをすることができる。</strong></td>
</tr>
<tr>
<td>Pinch</td>
<td>Touchイベントをサポートしている場合に、カスタムPinchイベントを提供する。</td>
</tr>
<tr>
<td>Swipe</td>
<td>Touchイベントをサポートしている場合に、カスタムSwipeイベントを提供する。</td>
</tr>
<tr>
<td>Touchhold</td>
<td>Touchイベントをサポートしている場合に、カスタムTouchholdイベントを提供する。</td>
</tr>
</table>
<h4>Interface</h4>
<table>
<colgroup>
<col width="230"/>
<col width="506" />
</colgroup>
<tr>
<th>名称</th>
<th>説明</th>
</tr>
<tr>
<td>Interface</td>
<td>Javaのようなインターフェース定義機能を提供する。</td>
</tr>
</table>
<h3>便利だったコンポーネント</h3>
<p>通常、iPad対応のサイトを制作する際に、iPadで途中の状態を表示して確認する必要があると思うのですが、<br />
Mobile/Mouse、Mobile/Clickの二つはTouchイベントの対応していないPCでの動作確認ができて非常に便利でした。</p>
<p>iPadの場合、Clickイベントの変わりにTouchイベントを使用してイベントを処理をする必要があり、コードもそのように書く必要がありました。<br />
しかし、<strong>Mobile/Clickを使用するとiPadの時だけ、ClickイベントをTouchイベントに置き換えてくれるので、通常のPCサイトのようにコードを書くことができます。</strong><br />
それに、<strong>Mobile/MouseでMouseイベントをTouchイベントに置き換えるので、Swipeイベントもマウスをクリックして画面をなぞるだけで実行できます。</strong></p>
<p>試しに、<a href="http://gallery.sharedhat.com/">ギャラリーサイト</a>を表示し、ページ上でマウスをクリックしてをなぞって見てください。<br />
写真がイベントに反応して切り替わると思います。</p>
<h3>サイトのスクリーンショット</h3>
<h4>縦表示(portrait)の場合</h4>
<p><a href="http://sharedhat.com/wp-content/uploads/2011/02/img_ipad2.jpg"><img src="http://sharedhat.com/wp-content/uploads/2011/02/img_ipad2.jpg" alt="" title="Mootoolsギャラリー(portrait)" width="480" height="640" class="aligncenter size-full wp-image-1679" /></a></p>
<h4>横表示(landscape)の場合</h4>
<p><a href="http://sharedhat.com/wp-content/uploads/2011/02/img_ipad3.jpg"><img src="http://sharedhat.com/wp-content/uploads/2011/02/img_ipad3.jpg" alt="" title="Mootoolsギャラリー(landscape)" width="734" height="549" class="aligncenter size-full wp-image-1680" /></a></p>
<p>最後に詳しいドキュメントを作成している途中ですので、完了次第ブログに記事として書きます。<br />
PHPの軽量なフレームワークを使用して、画像をアップロードするだけで最適表示する感じにしてもいいと思っています。<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sharedhat.com/blog/334/" title="セキュリティに関するRSS情報を提供する「RSSポータルサイト」公開">セキュリティに関するRSS情報を提供する「RSSポータルサイト」公開</a></li>
<li><a href="http://sharedhat.com/project/1710/" title="Mootools Photo Galleryテンプレート1.0をリリースしました。">Mootools Photo Galleryテンプレート1.0をリリースしました。</a></li>
<li><a href="http://sharedhat.com/project/652/" title="Mootoolsのプラグイン「Exhibition.js」をリリースしました。">Mootoolsのプラグイン「Exhibition.js」をリリースしました。</a></li>
<li><a href="http://sharedhat.com/blog/1625/" title="Google Maps API V3のMVCObjectについて">Google Maps API V3のMVCObjectについて</a></li>
<li><a href="http://sharedhat.com/blog/1377/" title="jQueryでGoogle Map API Version3のカスタムマーカーを作る">jQueryでGoogle Map API Version3のカスタムマーカーを作る</a></li>
</ul>
<p><!-- Similar Posts took 4.314 ms --></p>
<div class="wp-social-bookmark-menu"><ul class="socials"><li class="script-style"><a href="http://scriptandstyle.com/submit?url=http://sharedhat.com/project/1673/&title=MootoolsとPowerToolsでPC、iPadに対応したギャラリーサイトのテンプレートを作りました。" title="Submit this to Script & Style"> </a></li><li class="blinklist"><a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url=http://sharedhat.com/project/1673/&Title=MootoolsとPowerToolsでPC、iPadに対応したギャラリーサイトのテンプレートを作りました。" title="Share this on Blinklist"> </a></li><li class="delicious"><a href="http://del.icio.us/post?url=http://sharedhat.com/project/1673/&title=MootoolsとPowerToolsでPC、iPadに対応したギャラリーサイトのテンプレートを作りました。" title="Share this on del.icio.us"> </a></li><li class="digg"><a href="http://digg.com/submit?phase=2&url=http://sharedhat.com/project/1673/&title=MootoolsとPowerToolsでPC、iPadに対応したギャラリーサイトのテンプレートを作りました。" title="Digg this!"> </a></li><li class="furl"><a href="http://www.furl.net/storeIt.jsp?t=MootoolsとPowerToolsでPC、iPadに対応したギャラリーサイトのテンプレートを作りました。&u=http://sharedhat.com/project/1673/" title="Share this on Furl"> </a></li><li class="reddit"><a href="http://reddit.com/submit?url=http://sharedhat.com/project/1673/&title=MootoolsとPowerToolsでPC、iPadに対応したギャラリーサイトのテンプレートを作りました。" title="Share this on Reddit"> </a></li><li class="yahoo"><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=MootoolsとPowerToolsでPC、iPadに対応したギャラリーサイトのテンプレートを作りました。&u=http://sharedhat.com/project/1673/" title="Save this to Yahoo MyWeb"> </a></li><li class="stumble"><a href="http://www.stumbleupon.com/submit?url=http://sharedhat.com/project/1673/&title=MootoolsとPowerToolsでPC、iPadに対応したギャラリーサイトのテンプレートを作りました。" title="Stumble upon something good? Share it on StumbleUpon"> </a></li><li class="technorati"><a href="http://technorati.com/faves?add=http://sharedhat.com/project/1673/" title="Share this on Technorati"> </a></li><li class="mixx"><a href="http://www.mixx.com/submit?page_url=http://sharedhat.com/project/1673/&amp;title=MootoolsとPowerToolsでPC、iPadに対応したギャラリーサイトのテンプレートを作りました。" title="Share this on Mixx"> </a></li><li class="myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://sharedhat.com/project/1673/&amp;t=MootoolsとPowerToolsでPC、iPadに対応したギャラリーサイトのテンプレートを作りました。" title="Post this to MySpace"> </a></li><li class="designfloat"><a href="http://www.designfloat.com/submit.php?url=http://sharedhat.com/project/1673/&amp;title=MootoolsとPowerToolsでPC、iPadに対応したギャラリーサイトのテンプレートを作りました。" title="Submit this to DesignFloat"> </a></li><li class="facebook"><a href="http://www.facebook.com/share.php?u=http://sharedhat.com/project/1673/&amp;t=MootoolsとPowerToolsでPC、iPadに対応したギャラリーサイトのテンプレートを作りました。" title="Share this on Facebook"> </a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://sharedhat.com/project/1673/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Concrete5のパッケージ、Frontend Developer 1.1.0をリリースしました。</title>
		<link>http://sharedhat.com/project/1664/</link>
		<comments>http://sharedhat.com/project/1664/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 12:39:09 +0000</pubDate>
		<dc:creator>horry</dc:creator>
				<category><![CDATA[project]]></category>
		<category><![CDATA[1.1.0]]></category>
		<category><![CDATA[concrete5]]></category>
		<category><![CDATA[Mootools]]></category>
		<category><![CDATA[package]]></category>

		<guid isPermaLink="false">http://sharedhat.com/?p=1664</guid>
		<description><![CDATA[久しくメンテナンスしていなかったパッケージFrontend Developerの新バージョンをリリースしました。 基本的にはバグ修正と対応していなかった部分の対応を行いました。 ダウンロード Frontend Devel [...]]]></description>
			<content:encoded><![CDATA[<p>久しくメンテナンスしていなかったパッケージFrontend Developerの新バージョンをリリースしました。<br />
基本的にはバグ修正と対応していなかった部分の対応を行いました。</p>
<h3>ダウンロード</h3>
<ul class="simpleList">
<li><a title="Frontend Developer 1.1.0.tar.gz" href="https://github.com/holyshared/developer-package/tarball/1.1.0">Frontend Developer 1.1.0.tar.gz</a></li>
<li><a title="Frontend Developer 1.1.0.zip" href="https://github.com/holyshared/developer-package/zipball/1.1.0">Frontend Developer1.1.0.zip</a></li>
</ul>
<p>今回のバージョンでの対応は下記の通りです。</p>
<h3>バージョン 1.1.0</h3>
<ul class="simpleList">
<li>GithubのAPIライブラリを2.11から2.12へアップグレード</li>
<li>ブロック、Github Repogitory, Github Tags, Github Isuue用のテンプレートのバグを修正。</li>
<li>Mootoolsプラグインのダウンロードファオームのバグを修正。</li>
<li>Mootoolsプラグインの取り込み処理のリファクタリング。</li>
<li>日本語翻訳の不足部分の追加</li>
<li>日本語翻訳ファイルの追加</li>
</ul>
<p><span id="more-1664"></span></p>
<p>もしパッケージで問題があればご連絡ください。<br />
なるべく早く修正します。<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sharedhat.com/blog/1210/" title="Frontend Developer Package 1.0.1bをリリースしました。">Frontend Developer Package 1.0.1bをリリースしました。</a></li>
<li><a href="http://sharedhat.com/project/1272/" title="WordPressのフォトログ「Exhibition」の正式版1.0.1をリリースしました。">WordPressのフォトログ「Exhibition」の正式版1.0.1をリリースしました。</a></li>
<li><a href="http://sharedhat.com/project/1653/" title="MootoolsのGoogle Mapsプラグイン、MMap 0.2.1をリリースしました。">MootoolsのGoogle Mapsプラグイン、MMap 0.2.1をリリースしました。</a></li>
<li><a href="http://sharedhat.com/project/703/" title="Mootools Plugin 「MMap」をリリースしました。">Mootools Plugin 「MMap」をリリースしました。</a></li>
<li><a href="http://sharedhat.com/project/1527/" title="MootoolsのプラグインStaticMaps0.1.1をリリースしました。">MootoolsのプラグインStaticMaps0.1.1をリリースしました。</a></li>
</ul>
<p><!-- Similar Posts took 3.649 ms --></p>
<div class="wp-social-bookmark-menu"><ul class="socials"><li class="script-style"><a href="http://scriptandstyle.com/submit?url=http://sharedhat.com/project/1664/&title=Concrete5のパッケージ、Frontend Developer 1.1.0をリリースしました。" title="Submit this to Script & Style"> </a></li><li class="blinklist"><a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url=http://sharedhat.com/project/1664/&Title=Concrete5のパッケージ、Frontend Developer 1.1.0をリリースしました。" title="Share this on Blinklist"> </a></li><li class="delicious"><a href="http://del.icio.us/post?url=http://sharedhat.com/project/1664/&title=Concrete5のパッケージ、Frontend Developer 1.1.0をリリースしました。" title="Share this on del.icio.us"> </a></li><li class="digg"><a href="http://digg.com/submit?phase=2&url=http://sharedhat.com/project/1664/&title=Concrete5のパッケージ、Frontend Developer 1.1.0をリリースしました。" title="Digg this!"> </a></li><li class="furl"><a href="http://www.furl.net/storeIt.jsp?t=Concrete5のパッケージ、Frontend Developer 1.1.0をリリースしました。&u=http://sharedhat.com/project/1664/" title="Share this on Furl"> </a></li><li class="reddit"><a href="http://reddit.com/submit?url=http://sharedhat.com/project/1664/&title=Concrete5のパッケージ、Frontend Developer 1.1.0をリリースしました。" title="Share this on Reddit"> </a></li><li class="yahoo"><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=Concrete5のパッケージ、Frontend Developer 1.1.0をリリースしました。&u=http://sharedhat.com/project/1664/" title="Save this to Yahoo MyWeb"> </a></li><li class="stumble"><a href="http://www.stumbleupon.com/submit?url=http://sharedhat.com/project/1664/&title=Concrete5のパッケージ、Frontend Developer 1.1.0をリリースしました。" title="Stumble upon something good? Share it on StumbleUpon"> </a></li><li class="technorati"><a href="http://technorati.com/faves?add=http://sharedhat.com/project/1664/" title="Share this on Technorati"> </a></li><li class="mixx"><a href="http://www.mixx.com/submit?page_url=http://sharedhat.com/project/1664/&amp;title=Concrete5のパッケージ、Frontend Developer 1.1.0をリリースしました。" title="Share this on Mixx"> </a></li><li class="myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://sharedhat.com/project/1664/&amp;t=Concrete5のパッケージ、Frontend Developer 1.1.0をリリースしました。" title="Post this to MySpace"> </a></li><li class="designfloat"><a href="http://www.designfloat.com/submit.php?url=http://sharedhat.com/project/1664/&amp;title=Concrete5のパッケージ、Frontend Developer 1.1.0をリリースしました。" title="Submit this to DesignFloat"> </a></li><li class="facebook"><a href="http://www.facebook.com/share.php?u=http://sharedhat.com/project/1664/&amp;t=Concrete5のパッケージ、Frontend Developer 1.1.0をリリースしました。" title="Share this on Facebook"> </a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://sharedhat.com/project/1664/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MootoolsのGoogle Mapsプラグイン、MMap 0.2.1をリリースしました。</title>
		<link>http://sharedhat.com/project/1653/</link>
		<comments>http://sharedhat.com/project/1653/#comments</comments>
		<pubDate>Thu, 06 Jan 2011 17:42:35 +0000</pubDate>
		<dc:creator>horry</dc:creator>
				<category><![CDATA[project]]></category>
		<category><![CDATA[Gooogle Maps]]></category>
		<category><![CDATA[MMap]]></category>
		<category><![CDATA[Mootools]]></category>
		<category><![CDATA[version 3]]></category>

		<guid isPermaLink="false">http://sharedhat.com/?p=1653</guid>
		<description><![CDATA[MootoolsのGoogle Maps プラグインMMapの最新バージョン0.2.1をリリースしました。 バグと若干の仕様変更があります。 ソースコードはMMapからダウンロードしてください。 Buildディレクトリに [...]]]></description>
			<content:encoded><![CDATA[<p>MootoolsのGoogle Maps プラグイン<a href="http://mootools.net/forge/p/mmap">MMap</a>の最新バージョン0.2.1をリリースしました。<br />
バグと若干の仕様変更があります。</p>
<p>ソースコードは<a href="http://mootools.net/forge/p/mmap">MMap</a>からダウンロードしてください。<br />
BuildディレクトリにビルドしたファイルとYUI Compresserで軽量化したソースが含まれています。</p>
<h3>0.2.1の変更点</h3>
<ul class="simpleList">
<li>MMap.BaseMarkerをMMap.Marker.Coreにリネーム</li>
<li>MMap.MarkerをMMap.Marker.HTMLにリネーム</li>
<li>MMap.MarkerLoaderでHTMLマーカーが正しく読み込めないバグを修正</li>
<li>MMap.MarkerLoaderのオプションとloadメソッドの仕様を変更</li>
<li>MMap.MarkerManagerのactive/visibleメソッドを修正</li>
<li>MMap.MarkerManagerにactiveAll, activeByBounds, visibleAll, visibleByBoundsを追加</li>
</ul>
<p><span id="more-1653"></span></p>
<h3>ビルドの仕方</h3>
<p>自分でビルドしたい場合は下記のコマンドを参考にビルドしてください。<br />
事前に<a href="https://github.com/kamicane/packager">packager</a>をインストールした後、MMapをパッケージとして登録してください。</p>
<h4>MMapのみビルドしたい場合</h4>
<p>[shell]<br />
php packager build MMap/* +use-only MMap > mmap.js<br />
[/shell]</p>
<h4>MMapと必要なMootoolsコンポーネントをビルドする場合</h4>
<p>[shell]<br />
php packager build MMap/* > mmap-with-mootools.js<br />
[/shell]</p>
<p>後は少しずつ、使い方を書いていこうと思います。</p>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sharedhat.com/project/1644/" title="MootoolsのGoogle Mapsプラグイン、MMap0.2をリリースしました。">MootoolsのGoogle Mapsプラグイン、MMap0.2をリリースしました。</a></li>
<li><a href="http://sharedhat.com/review/1479/" title="MootoolsのビルドツールPackager-Webはすごく便利">MootoolsのビルドツールPackager-Webはすごく便利</a></li>
<li><a href="http://sharedhat.com/review/1588/" title="Mootoolsをコマンドラインを使用してビルドする方法">Mootoolsをコマンドラインを使用してビルドする方法</a></li>
<li><a href="http://sharedhat.com/project/703/" title="Mootools Plugin 「MMap」をリリースしました。">Mootools Plugin 「MMap」をリリースしました。</a></li>
<li><a href="http://sharedhat.com/blog/1508/" title="Mootoolsのビルドツールに自作パッケージを追加する方法">Mootoolsのビルドツールに自作パッケージを追加する方法</a></li>
</ul>
<p><!-- Similar Posts took 4.048 ms --></p>
<div class="wp-social-bookmark-menu"><ul class="socials"><li class="script-style"><a href="http://scriptandstyle.com/submit?url=http://sharedhat.com/project/1653/&title=MootoolsのGoogle Mapsプラグイン、MMap 0.2.1をリリースしました。" title="Submit this to Script & Style"> </a></li><li class="blinklist"><a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url=http://sharedhat.com/project/1653/&Title=MootoolsのGoogle Mapsプラグイン、MMap 0.2.1をリリースしました。" title="Share this on Blinklist"> </a></li><li class="delicious"><a href="http://del.icio.us/post?url=http://sharedhat.com/project/1653/&title=MootoolsのGoogle Mapsプラグイン、MMap 0.2.1をリリースしました。" title="Share this on del.icio.us"> </a></li><li class="digg"><a href="http://digg.com/submit?phase=2&url=http://sharedhat.com/project/1653/&title=MootoolsのGoogle Mapsプラグイン、MMap 0.2.1をリリースしました。" title="Digg this!"> </a></li><li class="furl"><a href="http://www.furl.net/storeIt.jsp?t=MootoolsのGoogle Mapsプラグイン、MMap 0.2.1をリリースしました。&u=http://sharedhat.com/project/1653/" title="Share this on Furl"> </a></li><li class="reddit"><a href="http://reddit.com/submit?url=http://sharedhat.com/project/1653/&title=MootoolsのGoogle Mapsプラグイン、MMap 0.2.1をリリースしました。" title="Share this on Reddit"> </a></li><li class="yahoo"><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=MootoolsのGoogle Mapsプラグイン、MMap 0.2.1をリリースしました。&u=http://sharedhat.com/project/1653/" title="Save this to Yahoo MyWeb"> </a></li><li class="stumble"><a href="http://www.stumbleupon.com/submit?url=http://sharedhat.com/project/1653/&title=MootoolsのGoogle Mapsプラグイン、MMap 0.2.1をリリースしました。" title="Stumble upon something good? Share it on StumbleUpon"> </a></li><li class="technorati"><a href="http://technorati.com/faves?add=http://sharedhat.com/project/1653/" title="Share this on Technorati"> </a></li><li class="mixx"><a href="http://www.mixx.com/submit?page_url=http://sharedhat.com/project/1653/&amp;title=MootoolsのGoogle Mapsプラグイン、MMap 0.2.1をリリースしました。" title="Share this on Mixx"> </a></li><li class="myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://sharedhat.com/project/1653/&amp;t=MootoolsのGoogle Mapsプラグイン、MMap 0.2.1をリリースしました。" title="Post this to MySpace"> </a></li><li class="designfloat"><a href="http://www.designfloat.com/submit.php?url=http://sharedhat.com/project/1653/&amp;title=MootoolsのGoogle Mapsプラグイン、MMap 0.2.1をリリースしました。" title="Submit this to DesignFloat"> </a></li><li class="facebook"><a href="http://www.facebook.com/share.php?u=http://sharedhat.com/project/1653/&amp;t=MootoolsのGoogle Mapsプラグイン、MMap 0.2.1をリリースしました。" title="Share this on Facebook"> </a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://sharedhat.com/project/1653/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MootoolsのGoogle Mapsプラグイン、MMap0.2をリリースしました。</title>
		<link>http://sharedhat.com/project/1644/</link>
		<comments>http://sharedhat.com/project/1644/#comments</comments>
		<pubDate>Sat, 25 Dec 2010 13:06:59 +0000</pubDate>
		<dc:creator>horry</dc:creator>
				<category><![CDATA[project]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[MMap]]></category>
		<category><![CDATA[Mootools]]></category>
		<category><![CDATA[version3]]></category>

		<guid isPermaLink="false">http://sharedhat.com/?p=1644</guid>
		<description><![CDATA[最新バージョンである0.2をリリースしました。 旧バージョン0.1とは互換性がありません。 又、旧バージョンでドキュメントを作成していなかったので、別途APIリファレンスを作成しました。 MMap 0.2ドキュメント M [...]]]></description>
			<content:encoded><![CDATA[<p>最新バージョンである0.2をリリースしました。<br />
旧バージョン0.1とは互換性がありません。</p>
<p>又、旧バージョンでドキュメントを作成していなかったので、別途APIリファレンスを作成しました。</p>
<p><a href="http://sharedhat.com/wp-content/uploads/2010/12/img_mmap0.jpg"><img src="http://sharedhat.com/wp-content/uploads/2010/12/img_mmap0.jpg" alt="MMap version 0.2" title="MMap version 0.2" width="734" height="350" class="aligncenter size-full wp-image-1648" /></a></p>
<h4>MMap 0.2ドキュメント</h4>
<p><a href="http://holyshared.github.com/MMap/docs/html/ja/mmap.overlayview.html">MMap 0.2ドキュメントページ</a></p>
<h4>MMap 0.2デモページ</h4>
<p><a href="http://holyshared.github.com/MMap/ja/marker.html">MMap 0.2デモページ</a></p>
<p><span id="more-1644"></span></p>
<h3>0.1からの変更点</h3>
<ul class="simpleList">
<li>マーカーを読み込むマーカーローダーの追加(MMap.MarkerLoader)</li>
<li>マーカーを管理するマーカーマネージャの追加(MMap.MarkerManager)</li>
<li>画像マーカーにスライドの再生／停止機能を追加</li>
<li>MVCObjectを利用したプロパティ監視に対応</li>
<li>描画座標の指定をgoogle.maps.Latlngに統一</li>
<li>MMapオブジェクトの削除</li>
<li>Mootools1.3(1.2下位互換無し、完全な1.3)に正式対応</li>
</ul>
<h3>次期バージョンの0.2.1について</h3>
<h4>マーカーマネージャ(MMap.MarkerManager)の仕様変更</h4>
<p>マーカーマネージャのactive/visibleメソッドの仕様を変更します。</p>
<p>現在、active/visibleメソッドにマーカーや短形オブジェクトを指定して、表示状態の変更、マーカーのアクティブ化の切り替えを実現しています。<br />
しかし、今のAPI仕様だとメソッドの名称から具体的な振る舞いがわかりづらいので、0.2.1からは下記のように変更を加えます。</p>
<p>[javascript]<br />
	//0.2(現在の最新バージョン)での実行<br />
	markerManager.visible()<br />
	markerManager.visible(marker) //MMap.Marker.Coreを継承したマーカー<br />
	markerManager.visible(bounds) //google.maps.LatlngBounds</p>
<p>	markerManager.active()<br />
	markerManager.active(marker) //MMap.Marker.Coreを継承したマーカー<br />
	markerManager.active(bounds) //google.maps.LatlngBounds</p>
<p>	//0.2.1での実行はこうなります。<br />
	markerManager.visibleAll()<br />
	markerManager.visible(marker) //MMap.Marker.Coreを継承したマーカー<br />
	markerManager.visibleByBounds(bounds) //google.maps.LatlngBounds</p>
<p>	markerManager.activeAll()<br />
	markerManager.active(marker) //MMap.Marker.Coreを継承したマーカー<br />
	markerManager.activeByBounds(bounds) //google.maps.LatlngBounds<br />
[/javascript]</p>
<h4>マーカーローダー(MMap.MarkerLoader)の仕様変更</h4>
<p>マーカーローダーのオプション指定をRequest.JSONと同じようにします。<br />
つまり、インスタンス生成時のオプションにurlやmethodオプションが使えるようになります。<br />
これでインスタンスを生成した後に、loadメソッドでurlやmetohdを指定しなくてもよくなります。<br />
具体的には下記のようになります。</p>
<p>[javascript]<br />
var loader = new MMap.MarkerLoader({<br />
	url: &#8216;/markers/&#8217;,<br />
	method: &#8216;get&#8217;<br />
});</p>
<p>loader.load({<br />
	&#8216;username&#8217;: &#8216;mootools&#8217;,<br />
	&#8216;keyword&#8217;: &#8216;interface&#8217;<br />
});<br />
[/javascript]</p>
<h3>MMapのこれから</h3>
<p>0.2.1をリリースした後に、Google Mapsの地図上に配置できるリッチなウィジットを作成していく予定です。<br />
地図上に配置できるコントロールや住所検索ができる小さな小窓などです。<br />
その後、デモ用としてウィジットを利用したアプリを公開します。<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sharedhat.com/project/1653/" title="MootoolsのGoogle Mapsプラグイン、MMap 0.2.1をリリースしました。">MootoolsのGoogle Mapsプラグイン、MMap 0.2.1をリリースしました。</a></li>
<li><a href="http://sharedhat.com/project/703/" title="Mootools Plugin 「MMap」をリリースしました。">Mootools Plugin 「MMap」をリリースしました。</a></li>
<li><a href="http://sharedhat.com/blog/1377/" title="jQueryでGoogle Map API Version3のカスタムマーカーを作る">jQueryでGoogle Map API Version3のカスタムマーカーを作る</a></li>
<li><a href="http://sharedhat.com/blog/1448/" title="Safariで発生するマーカーが表示されない問題の対処法">Safariで発生するマーカーが表示されない問題の対処法</a></li>
<li><a href="http://sharedhat.com/project/1527/" title="MootoolsのプラグインStaticMaps0.1.1をリリースしました。">MootoolsのプラグインStaticMaps0.1.1をリリースしました。</a></li>
</ul>
<p><!-- Similar Posts took 4.123 ms --></p>
<div class="wp-social-bookmark-menu"><ul class="socials"><li class="script-style"><a href="http://scriptandstyle.com/submit?url=http://sharedhat.com/project/1644/&title=MootoolsのGoogle Mapsプラグイン、MMap0.2をリリースしました。" title="Submit this to Script & Style"> </a></li><li class="blinklist"><a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url=http://sharedhat.com/project/1644/&Title=MootoolsのGoogle Mapsプラグイン、MMap0.2をリリースしました。" title="Share this on Blinklist"> </a></li><li class="delicious"><a href="http://del.icio.us/post?url=http://sharedhat.com/project/1644/&title=MootoolsのGoogle Mapsプラグイン、MMap0.2をリリースしました。" title="Share this on del.icio.us"> </a></li><li class="digg"><a href="http://digg.com/submit?phase=2&url=http://sharedhat.com/project/1644/&title=MootoolsのGoogle Mapsプラグイン、MMap0.2をリリースしました。" title="Digg this!"> </a></li><li class="furl"><a href="http://www.furl.net/storeIt.jsp?t=MootoolsのGoogle Mapsプラグイン、MMap0.2をリリースしました。&u=http://sharedhat.com/project/1644/" title="Share this on Furl"> </a></li><li class="reddit"><a href="http://reddit.com/submit?url=http://sharedhat.com/project/1644/&title=MootoolsのGoogle Mapsプラグイン、MMap0.2をリリースしました。" title="Share this on Reddit"> </a></li><li class="yahoo"><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=MootoolsのGoogle Mapsプラグイン、MMap0.2をリリースしました。&u=http://sharedhat.com/project/1644/" title="Save this to Yahoo MyWeb"> </a></li><li class="stumble"><a href="http://www.stumbleupon.com/submit?url=http://sharedhat.com/project/1644/&title=MootoolsのGoogle Mapsプラグイン、MMap0.2をリリースしました。" title="Stumble upon something good? Share it on StumbleUpon"> </a></li><li class="technorati"><a href="http://technorati.com/faves?add=http://sharedhat.com/project/1644/" title="Share this on Technorati"> </a></li><li class="mixx"><a href="http://www.mixx.com/submit?page_url=http://sharedhat.com/project/1644/&amp;title=MootoolsのGoogle Mapsプラグイン、MMap0.2をリリースしました。" title="Share this on Mixx"> </a></li><li class="myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://sharedhat.com/project/1644/&amp;t=MootoolsのGoogle Mapsプラグイン、MMap0.2をリリースしました。" title="Post this to MySpace"> </a></li><li class="designfloat"><a href="http://www.designfloat.com/submit.php?url=http://sharedhat.com/project/1644/&amp;title=MootoolsのGoogle Mapsプラグイン、MMap0.2をリリースしました。" title="Submit this to DesignFloat"> </a></li><li class="facebook"><a href="http://www.facebook.com/share.php?u=http://sharedhat.com/project/1644/&amp;t=MootoolsのGoogle Mapsプラグイン、MMap0.2をリリースしました。" title="Share this on Facebook"> </a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://sharedhat.com/project/1644/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mootoolsをコマンドラインを使用してビルドする方法</title>
		<link>http://sharedhat.com/review/1588/</link>
		<comments>http://sharedhat.com/review/1588/#comments</comments>
		<pubDate>Tue, 16 Nov 2010 04:35:27 +0000</pubDate>
		<dc:creator>horry</dc:creator>
				<category><![CDATA[review]]></category>
		<category><![CDATA[Mootools]]></category>
		<category><![CDATA[packager]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://sharedhat.com/?p=1588</guid>
		<description><![CDATA[Mootoolsのビルドツールにkamicaneの作成したpackagerというビルドライブラリがあります。 このライブラリはphpで書かれていて、packager-webでも使用されているとても便利なライブラリです。  [...]]]></description>
			<content:encoded><![CDATA[<p>Mootoolsのビルドツールにkamicaneの作成したpackagerというビルドライブラリがあります。<br />
このライブラリはphpで書かれていて、packager-webでも使用されているとても便利なライブラリです。</p>
<p>このライブラリを使用すると簡単なコマンドでMootoolsをビルドすることができます。</p>
<p>今回はこのライブラリを使用してMootoolsをビルドする方法を解説します。<br />
まず下記から必要なものをダウンロードします。</p>
<h3>必要なものリスト</h3>
<ul class="simpleList">
<li><strong>packagerライブラリ</strong><br /><a href="https://github.com/kamicane/packager">https://github.com/kamicane/packager</a></li>
<li><strong>Mootools Coreのソース</strong><br /><a href="https://github.com/mootools/mootools-more">https://github.com/mootools/mootools-more</a></li>
<li><strong>Mootools Moreのソース</strong><br /><a href="https://github.com/mootools/mootools-core">https://github.com/mootools/mootools-core</a></li>
</ul>
<p><span id="more-1588"></span></p>
<h3>packagerとMootoolsソースの配置</h3>
<p>ダウンロードが完了したら、packagerを展開します。<br />
展開したら適当なディレクトリにコピーします。<br />
ここでは、C:\var\www\toolsにコピーすることにします。</p>
<p>次にcomponentsというディレクトリをpackagerディレクトリ内に作成します。<br />
作成できたら、Mootoolsのソースを展開してこのディレクトリにコピーします。</p>
<p>ここではCoreをmootools-coreへ、Moreをmootools-moreにコピーすることにします。<br />
ディレクトリの構造は下記のような形になります。</p>
<ul class="simpleList">
<li>packager
<ul>
<li>components
<ul>
<li>mootools-core
<ul>
<li>Source</li>
<li>Docs</li>
<li>&#8230;</li>
</ul>
</li>
<li>mootools-more
<ul>
<li>Source</li>
<li>Docs</li>
<li>&#8230;</li>
</ul>
</li>
</ul>
</li>
<li>help</li>
<li>helpers</li>
<li>libs</li>
</ul>
</li>
<ul>
<h4>Windowsユーザーの人</h4>
<p>Windowsでpackagerを利用する場合は、packagerを少し修正する必要があります。<br />
packager内のソースコードpackager(拡張子なし)をテキストエディタで開き下記のコードを追加してください。(15行目付近)<br />
[php]<br />
$home = exec(&#8216;echo $HOME&#8217;);<br />
if ($home == &#8216;$HOME&#8217;) $home = array_get($_SERVER, &#8216;USERPROFILE&#8217;);<br />
[/php]</p>
<h3>packagerのコマンド</h3>
<p>packagerが配置できたので、packagerの説明に入ります。</p>
<p>packagerでは下記のコマンドが使用できます。</p>
<h4>コマンド一覧</h4>
<ul>
<li><strong>register</strong> &#8211; パッケージを登録します。</li>
<li><strong>unregister</strong> &#8211; パッケージの登録を解除します。</li>
<li><strong>list</strong> &#8211; 登録されているパッケージの一覧を表示します。</li>
<li><strong>build</strong> &#8211; パッケージの依存関係を解決した上で、コンポーネントを一つのファイルに出力します。</li>
</ul>
<h3>registerコマンド</h3>
<p>registerコマンド利用するとパッケージを登録することができます。<br />
登録されたパッケージは依存関係を解決する際に利用されます。</p>
<p>試しに下記のコマンドを利用してMootools CoreとMoreを登録してみます。</p>
<p>コマンドラインでpackagerディレクトリまで移動します。</p>
<p>[shell]<br />
cd C:\var\www\tools\packager</p>
<p>php packager register C:/var/www/tools/packager/components/mootools-core<br />
the package Core has been registered as C:\var\www\tools\packager\components/mootools-core/package.yml</p>
<p>php packager register C:/var/www/tools/packager/components/mootools-more<br />
the package More has been registered as C:\var\www\tools\packager\components/mootools-more/package.yml<br />
[/shell]</p>
<h3>listコマンドで確認</h3>
<p>registerコマンドの説明でパッケージを登録したので、無事登録されているか確認するためにlistコマンドを使って登録されているリストを表示してみます。<br />
無事登録されていれば、登録されたMootoore CoreとMoreが表示されるはずです。</p>
<p>[shell]<br />
php packager list<br />
Core: C:\var\www\tools\packager\components/mootools-core\package.yml<br />
More: C:\var\www\tools\packager\components/mootools-more\package.yml<br />
[/shell]</p>
<p>無事表示されれば登録はされています。</p>
<h3>buildコマンドでMootoolsをビルド</h3>
<p>buildコマンドを利用すると、パッケージをビルドすることができます。<br />
試しに、Core/Request、Core/Request.HTMLをビルドしてみます。</p>
<p>[shell]<br />
php packager build +components Core/Request Core/Request.HTML &gt; mootools.js<br />
Build using: Core, More<br />
Included Files/Components:<br />
- Core/Core: [Core, MooTools, Type, typeOf, instanceOf, Native]<br />
- Core/Object: [Object, Hash]<br />
- Core/Array: [Array]<br />
- Core/Function: [Function]<br />
- Core/Number: [Number]<br />
- Core/String: [String]<br />
- Core/Browser: [Browser, Window, Document]<br />
- Core/Slick.Parser: [Slick.Parser]<br />
- Core/Slick.Finder: [Slick.Finder]<br />
- Core/Element: [Element, Elements, $, $$, Iframe, Selectors]<br />
- Core/Class: [Class]<br />
- Core/Class.Extras: [Class.Extras, Chain, Events, Options]<br />
- Core/Request: [Request]<br />
- Core/Request.HTML: [Request.HTML]<br />
[/shell]</p>
<p>実行するとビルドに使用したパッケージと組み込まれたコンポーネントのリストが表示されます。<br />
このように指定したコンポーネントの依存関係も解決してくれます。</p>
<p>次のような方法でも同様です。</p>
<p>[shell]<br />
php packager build +files Core/Request Core/Request.HTML ART/ART &gt; mootools.js<br />
[/shell]</p>
<p>又、下記のように省略して実行することもできます。</p>
<p>[shell]<br />
php packager build Core/Request Core/Request.HTML &gt; mootools.js<br />
[/shell]</p>
<h4>ワイルドカード</h4>
<p>まるまるパッケージをビルドしたい場合は下記のようにワイルドカードを利用します。<br />
下記の例ではARTパッケージをすべてビルドします。</p>
<p>[shell]<br />
php packager build ART/* &gt; mootools-with-art.js<br />
[/shell]</p>
<h4>パッケージの追加</h4>
<p>時には登録していてないパッケージも一緒にビルドしたい場合もあるでしょう。<br />
そんな時は+packagesオプションを使用します。</p>
<p>下記の例では3rdpartyパッケージを追加でビルドするよう指定しています。</p>
<p>[shell]<br />
php packager build 3rdparty/Request.Iddy +packages C:\var\www\tools\packager\components\3rdparty &gt; mootools.js<br />
[/shell]</p>
<h4>パッケージの除外</h4>
<p>パッケージの追加だけでなく、逆にビルド時に特定のパッケージを除外することもできます。<br />
下記の例では、ビルドに時にCoreパッケージのコンポーネントをすべて除外します。</p>
<p>[shell]<br />
php packager build 3rdparty/Request.Iddy -packages Core &gt; mootools.js<br />
[/shell]</p>
<h4>パッケージの指定</h4>
<p>パッケージのビルド時に追加／除外以外に特定のパッケージのみ指定することも可能です。<br />
下記の例ではARTパッケージのコンポーネント以外はビルドしません。</p>
<p>[shell]<br />
php packager build ART/ART ART/Base +use-only ART<br />
[/shell]</p>
<p>又、次のようなこともできます。<br />
下記の例では、+packagesで指定したコンポネート以外はビルドしません。</p>
<p>[shell]<br />
php packager build 3rdparty/Request.Iddy +use-only +packages C:\var\www\tools\packager\components\3rdparty<br />
[/shell]</p>
<h4>ブロックの除外</h4>
<p>コンポーネント内に//&lt;ブロック名>のような書式のブロックがある場合、ビルド時に-blocksオプションを利用することで、指定したブロックで囲まれる範囲のソースコードを除外することができます。<br />
下記の例ではMootools1.2の互換コードをビルド時にソースコードから除外し、ピュアなMootools 1.3バージョンをビルドします。</p>
<p>[shell]<br />
php packager build Core/Request Core/Request.HTML -blocks 1.2compat<br />
[/shell]</p>
<p>packagerを利用すると、自分で作成したパッケージや、他のユーザーが作成したパッケージを一緒にMootoolsに組みこんでビルドしたり、特定のパッケージのみ指定した条件でビルドできるので非常に便利であることが分かると思います。</p>
<p>以上で、ビルドの方法の解説は終了です。<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sharedhat.com/project/1653/" title="MootoolsのGoogle Mapsプラグイン、MMap 0.2.1をリリースしました。">MootoolsのGoogle Mapsプラグイン、MMap 0.2.1をリリースしました。</a></li>
<li><a href="http://sharedhat.com/blog/1508/" title="Mootoolsのビルドツールに自作パッケージを追加する方法">Mootoolsのビルドツールに自作パッケージを追加する方法</a></li>
<li><a href="http://sharedhat.com/review/1479/" title="MootoolsのビルドツールPackager-Webはすごく便利">MootoolsのビルドツールPackager-Webはすごく便利</a></li>
<li><a href="http://sharedhat.com/blog/1318/" title="Concrete5で翻訳ファイルを作る早いやり方">Concrete5で翻訳ファイルを作る早いやり方</a></li>
<li><a href="http://sharedhat.com/review/1562/" title="Mootools Forgeで使用されているPluginsKitをインストールしてみた">Mootools Forgeで使用されているPluginsKitをインストールしてみた</a></li>
</ul>
<p><!-- Similar Posts took 5.254 ms --></p>
<div class="wp-social-bookmark-menu"><ul class="socials"><li class="script-style"><a href="http://scriptandstyle.com/submit?url=http://sharedhat.com/review/1588/&title=Mootoolsをコマンドラインを使用してビルドする方法" title="Submit this to Script & Style"> </a></li><li class="blinklist"><a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url=http://sharedhat.com/review/1588/&Title=Mootoolsをコマンドラインを使用してビルドする方法" title="Share this on Blinklist"> </a></li><li class="delicious"><a href="http://del.icio.us/post?url=http://sharedhat.com/review/1588/&title=Mootoolsをコマンドラインを使用してビルドする方法" title="Share this on del.icio.us"> </a></li><li class="digg"><a href="http://digg.com/submit?phase=2&url=http://sharedhat.com/review/1588/&title=Mootoolsをコマンドラインを使用してビルドする方法" title="Digg this!"> </a></li><li class="furl"><a href="http://www.furl.net/storeIt.jsp?t=Mootoolsをコマンドラインを使用してビルドする方法&u=http://sharedhat.com/review/1588/" title="Share this on Furl"> </a></li><li class="reddit"><a href="http://reddit.com/submit?url=http://sharedhat.com/review/1588/&title=Mootoolsをコマンドラインを使用してビルドする方法" title="Share this on Reddit"> </a></li><li class="yahoo"><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=Mootoolsをコマンドラインを使用してビルドする方法&u=http://sharedhat.com/review/1588/" title="Save this to Yahoo MyWeb"> </a></li><li class="stumble"><a href="http://www.stumbleupon.com/submit?url=http://sharedhat.com/review/1588/&title=Mootoolsをコマンドラインを使用してビルドする方法" title="Stumble upon something good? Share it on StumbleUpon"> </a></li><li class="technorati"><a href="http://technorati.com/faves?add=http://sharedhat.com/review/1588/" title="Share this on Technorati"> </a></li><li class="mixx"><a href="http://www.mixx.com/submit?page_url=http://sharedhat.com/review/1588/&amp;title=Mootoolsをコマンドラインを使用してビルドする方法" title="Share this on Mixx"> </a></li><li class="myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://sharedhat.com/review/1588/&amp;t=Mootoolsをコマンドラインを使用してビルドする方法" title="Post this to MySpace"> </a></li><li class="designfloat"><a href="http://www.designfloat.com/submit.php?url=http://sharedhat.com/review/1588/&amp;title=Mootoolsをコマンドラインを使用してビルドする方法" title="Submit this to DesignFloat"> </a></li><li class="facebook"><a href="http://www.facebook.com/share.php?u=http://sharedhat.com/review/1588/&amp;t=Mootoolsをコマンドラインを使用してビルドする方法" title="Share this on Facebook"> </a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://sharedhat.com/review/1588/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mootools Forgeで使用されているPluginsKitをインストールしてみた</title>
		<link>http://sharedhat.com/review/1562/</link>
		<comments>http://sharedhat.com/review/1562/#comments</comments>
		<pubDate>Sat, 06 Nov 2010 04:24:05 +0000</pubDate>
		<dc:creator>horry</dc:creator>
				<category><![CDATA[review]]></category>
		<category><![CDATA[forge]]></category>
		<category><![CDATA[Mootools]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plubinskit]]></category>
		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://sharedhat.com/?p=1562</guid>
		<description><![CDATA[githubのリポジトリにあって、前から気になっていたのですが試しに自分のレンタルサーバーに設置してみました。 PluginsKit自体はsymfonyベースのアプリケーションでgithubのリポジトリからMootool [...]]]></description>
			<content:encoded><![CDATA[<p>githubのリポジトリにあって、前から気になっていたのですが試しに自分のレンタルサーバーに設置してみました。<br />
PluginsKit自体はsymfonyベースのアプリケーションでgithubのリポジトリからMootoolsのプラグインをチェックアウトして公開できるようにするアプリケーションです。</p>
<p>Twitterアカウントでの認証機能も利用できます。</p>
<p>デモページは下記の通りです。<br />
<a href="http://pluginskit.sharedhat.com/">PluginsKit on sharedhat.com</a></p>
<p>ユーザー登録もできるようになっているので、サインアップして実際に自分のプラグインを取り込むことが可能です。<br />
Mootools Forgeを試す前のお試しだと思って自由に利用してください。</p>
<p>今回は設置方法を解説します。<br />
<span id="more-1562"></span></p>
<h3>PluginsKitのダウンロード</h3>
<p><a title="Guillermo Rauchのgithubリポジトリ" href="https://github.com/guille/PluginsKit.git">Guillermo Rauchのgithubリポジトリ</a>からダウンロードしてきます。<br />
ダウンロードしたアーカイブを解凍して適当なディレクトリに展開します。</p>
<h3>必要なものをビルドする</h3>
<p>下記のコマンドを実行して、アプリケーションに必要なものをビルドします。<br />
それぞれ、sqlファイル、モデル、フォームが生成されます。<br />
[shell]<br />
C:\var\www\git\PluginsKit\lib\vendor\symfony\data\bin\symfony propel:build-sql<br />
C:\var\www\git\PluginsKit\lib\vendor\symfony\data\bin\symfony propel:build-model<br />
C:\var\www\git\PluginsKit\lib\vendor\symfony\data\bin\symfony propel:build-forms<br />
[/shell]</p>
<h3>データベースの作成と設定</h3>
<p>MySQLでデータベースを作成して、ビルドしたsqlファイルを実行して必要なテーブルを作成します。<br />
テーブルの作成が完了したら、configディレクトリ内の設定ファイルを編集します。</p>
<h4>databases.yml</h4>
<p>dsn、username、passwordを作成したデータベースにあわせます。<br />
[text]<br />
all:<br />
  propel:<br />
    class:        sfPropelDatabase<br />
    param:<br />
      classname:  PropelPDO<br />
      dsn:        mysql:dbname=mooforge;host=localhost<br />
      username:   root<br />
      password:   1234<br />
      encoding:   utf8<br />
      persistent: true<br />
      pooling:    true<br />
[/text]</p>
<h3>フロントコントローラーの修正</h3>
<p>webディレクトリ内のフロントコントローラーを修正します。<br />
index.phpを開きrequire_onceでファイルを読み込んでいる部分のパスをmooforge/configに修正します。</p>
<p>[php]<br />
require_once(dirname(__FILE__).&#8217;/../mooforge/config/ProjectConfiguration.class.php&#8217;);</p>
<p>$configuration = ProjectConfiguration::getApplicationConfiguration(&#8216;frontend&#8217;, &#8216;prod&#8217;, false);<br />
sfContext::createInstance($configuration)->dispatch();<br />
[/php]</p>
<h3>ファイルのアップロード</h3>
<p>すべてのファイルをアップロードします。<br />
webディレクトリが公開ディレクトリですので、webディレクトリの中身をすべてドキュメントルートにアップロードします。<br />
それ以外のファイルは、パスをmooforgeに設定したので、ドキュメントディレクトリの一つ上の階層にmooforgeディレクトリを作成してそこにアップロードします。</p>
<p>これでPluginsKitを利用できるようになります。</p>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sharedhat.com/blog/1731/" title="Aptana3 Bundleを作成する &#8211; バンドル作成の準備">Aptana3 Bundleを作成する &#8211; バンドル作成の準備</a></li>
<li><a href="http://sharedhat.com/review/1479/" title="MootoolsのビルドツールPackager-Webはすごく便利">MootoolsのビルドツールPackager-Webはすごく便利</a></li>
<li><a href="http://sharedhat.com/blog/1402/" title="DooPHPをインストールしてみた。">DooPHPをインストールしてみた。</a></li>
<li><a href="http://sharedhat.com/blog/1318/" title="Concrete5で翻訳ファイルを作る早いやり方">Concrete5で翻訳ファイルを作る早いやり方</a></li>
<li><a href="http://sharedhat.com/blog/1199/" title="Concrete5のTinyMceにSyntax Highlighterプラグインを利用できるようにする。">Concrete5のTinyMceにSyntax Highlighterプラグインを利用できるようにする。</a></li>
</ul>
<p><!-- Similar Posts took 4.556 ms --></p>
<div class="wp-social-bookmark-menu"><ul class="socials"><li class="script-style"><a href="http://scriptandstyle.com/submit?url=http://sharedhat.com/review/1562/&title=Mootools Forgeで使用されているPluginsKitをインストールしてみた" title="Submit this to Script & Style"> </a></li><li class="blinklist"><a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url=http://sharedhat.com/review/1562/&Title=Mootools Forgeで使用されているPluginsKitをインストールしてみた" title="Share this on Blinklist"> </a></li><li class="delicious"><a href="http://del.icio.us/post?url=http://sharedhat.com/review/1562/&title=Mootools Forgeで使用されているPluginsKitをインストールしてみた" title="Share this on del.icio.us"> </a></li><li class="digg"><a href="http://digg.com/submit?phase=2&url=http://sharedhat.com/review/1562/&title=Mootools Forgeで使用されているPluginsKitをインストールしてみた" title="Digg this!"> </a></li><li class="furl"><a href="http://www.furl.net/storeIt.jsp?t=Mootools Forgeで使用されているPluginsKitをインストールしてみた&u=http://sharedhat.com/review/1562/" title="Share this on Furl"> </a></li><li class="reddit"><a href="http://reddit.com/submit?url=http://sharedhat.com/review/1562/&title=Mootools Forgeで使用されているPluginsKitをインストールしてみた" title="Share this on Reddit"> </a></li><li class="yahoo"><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=Mootools Forgeで使用されているPluginsKitをインストールしてみた&u=http://sharedhat.com/review/1562/" title="Save this to Yahoo MyWeb"> </a></li><li class="stumble"><a href="http://www.stumbleupon.com/submit?url=http://sharedhat.com/review/1562/&title=Mootools Forgeで使用されているPluginsKitをインストールしてみた" title="Stumble upon something good? Share it on StumbleUpon"> </a></li><li class="technorati"><a href="http://technorati.com/faves?add=http://sharedhat.com/review/1562/" title="Share this on Technorati"> </a></li><li class="mixx"><a href="http://www.mixx.com/submit?page_url=http://sharedhat.com/review/1562/&amp;title=Mootools Forgeで使用されているPluginsKitをインストールしてみた" title="Share this on Mixx"> </a></li><li class="myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://sharedhat.com/review/1562/&amp;t=Mootools Forgeで使用されているPluginsKitをインストールしてみた" title="Post this to MySpace"> </a></li><li class="designfloat"><a href="http://www.designfloat.com/submit.php?url=http://sharedhat.com/review/1562/&amp;title=Mootools Forgeで使用されているPluginsKitをインストールしてみた" title="Submit this to DesignFloat"> </a></li><li class="facebook"><a href="http://www.facebook.com/share.php?u=http://sharedhat.com/review/1562/&amp;t=Mootools Forgeで使用されているPluginsKitをインストールしてみた" title="Share this on Facebook"> </a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://sharedhat.com/review/1562/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>StaticMapsとMicroformat(hCalender)をセットで利用する</title>
		<link>http://sharedhat.com/blog/1547/</link>
		<comments>http://sharedhat.com/blog/1547/#comments</comments>
		<pubDate>Sat, 30 Oct 2010 18:24:00 +0000</pubDate>
		<dc:creator>horry</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[hCalender]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[Microformat]]></category>
		<category><![CDATA[Mootools]]></category>
		<category><![CDATA[static]]></category>

		<guid isPermaLink="false">http://sharedhat.com/?p=1547</guid>
		<description><![CDATA[リリースしたStaticMaps0.1.1とMicroformatをパースできるjavascriptライブラリSumoを利用して、動的に地図を描画するサンプルコードをjsFiddleで書きました。 Sumoは他のjava [...]]]></description>
			<content:encoded><![CDATA[<p>リリースしたStaticMaps0.1.1とMicroformatをパースできるjavascriptライブラリ<a title="Sumo" rel="tag" href="http://github.com/holyshared/sumo">Sumo</a>を利用して、動的に地図を描画するサンプルコードを<a title="jsFiddle" rel="jsFiddle" href="http://jsfiddle.net/">jsFiddle</a>で書きました。</p>
<p><a title="Sumo" rel="tag" href="http://github.com/holyshared/sumo">Sumo</a>は他のjavascriptフレームワークと一緒に利用することができます。</p>
<p>javascriptでページ内に埋め込まれている<a title="hCalender" rel="tag" href="http://microformats.org/wiki/hcalendar">hCalender</a>を解析し、その結果を元に地図を描画します。<br />
地図を表示する項目はMicroformat(hCalender)の位置情報のlocationプロパティと、より詳細な座標情報のgeoプロパティ、latitudeプロパティ、longitudeプロパティを利用します。</p>
<p><a title="Sumo" rel="tag" href="http://github.com/holyshared/sumo">Sumo</a>のデフォルトでは解析対象にhCalenderのgeoプロパティ、latitudeプロパティ、longitudeプロパティが解析対象に含まれていなかったので、別途解析対象にしました。<br />
元のソースコードは<a title="Sumo" href='http://github.com/danwrong/sumo'>Daniel MorrisonのSumoリポジトリ</a>にあります。<br />
<span id="more-1547"></span></p>
<p><iframe style="width: 100%; height: 300px" src="http://jsfiddle.net/holyshared/k5rby/embedded/"></iframe></p>
<p>Microformatを利用したサンプルはMMapのデモページでも書いたのですが、一度記述しておけばテキストを修正するだけで対応が可能なのでメンテナンスが楽ですね。</p>
<p>javascriptでパースするので、無効にされていると動作しないのが厄介ですが、非常に便利なテクニックです。<br />
<strong>Microformatのうまみは機械と人間にやさしいことと、再利用できることだと思っているので、もっと普及すればいいと思います。</strong><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sharedhat.com/project/1527/" title="MootoolsのプラグインStaticMaps0.1.1をリリースしました。">MootoolsのプラグインStaticMaps0.1.1をリリースしました。</a></li>
<li><a href="http://sharedhat.com/blog/900/" title="MootoolsのForm.Validater.Extraについて">MootoolsのForm.Validater.Extraについて</a></li>
<li><a href="http://sharedhat.com/blog/924/" title="MootoolsのForm.Validaterのプロパティを動的に指定する">MootoolsのForm.Validaterのプロパティを動的に指定する</a></li>
<li><a href="http://sharedhat.com/blog/1625/" title="Google Maps API V3のMVCObjectについて">Google Maps API V3のMVCObjectについて</a></li>
<li><a href="http://sharedhat.com/blog/389/" title="iddy.jsをリリースしました。">iddy.jsをリリースしました。</a></li>
</ul>
<p><!-- Similar Posts took 4.172 ms --></p>
<div class="wp-social-bookmark-menu"><ul class="socials"><li class="script-style"><a href="http://scriptandstyle.com/submit?url=http://sharedhat.com/blog/1547/&title=StaticMapsとMicroformat(hCalender)をセットで利用する" title="Submit this to Script & Style"> </a></li><li class="blinklist"><a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url=http://sharedhat.com/blog/1547/&Title=StaticMapsとMicroformat(hCalender)をセットで利用する" title="Share this on Blinklist"> </a></li><li class="delicious"><a href="http://del.icio.us/post?url=http://sharedhat.com/blog/1547/&title=StaticMapsとMicroformat(hCalender)をセットで利用する" title="Share this on del.icio.us"> </a></li><li class="digg"><a href="http://digg.com/submit?phase=2&url=http://sharedhat.com/blog/1547/&title=StaticMapsとMicroformat(hCalender)をセットで利用する" title="Digg this!"> </a></li><li class="furl"><a href="http://www.furl.net/storeIt.jsp?t=StaticMapsとMicroformat(hCalender)をセットで利用する&u=http://sharedhat.com/blog/1547/" title="Share this on Furl"> </a></li><li class="reddit"><a href="http://reddit.com/submit?url=http://sharedhat.com/blog/1547/&title=StaticMapsとMicroformat(hCalender)をセットで利用する" title="Share this on Reddit"> </a></li><li class="yahoo"><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=StaticMapsとMicroformat(hCalender)をセットで利用する&u=http://sharedhat.com/blog/1547/" title="Save this to Yahoo MyWeb"> </a></li><li class="stumble"><a href="http://www.stumbleupon.com/submit?url=http://sharedhat.com/blog/1547/&title=StaticMapsとMicroformat(hCalender)をセットで利用する" title="Stumble upon something good? Share it on StumbleUpon"> </a></li><li class="technorati"><a href="http://technorati.com/faves?add=http://sharedhat.com/blog/1547/" title="Share this on Technorati"> </a></li><li class="mixx"><a href="http://www.mixx.com/submit?page_url=http://sharedhat.com/blog/1547/&amp;title=StaticMapsとMicroformat(hCalender)をセットで利用する" title="Share this on Mixx"> </a></li><li class="myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://sharedhat.com/blog/1547/&amp;t=StaticMapsとMicroformat(hCalender)をセットで利用する" title="Post this to MySpace"> </a></li><li class="designfloat"><a href="http://www.designfloat.com/submit.php?url=http://sharedhat.com/blog/1547/&amp;title=StaticMapsとMicroformat(hCalender)をセットで利用する" title="Submit this to DesignFloat"> </a></li><li class="facebook"><a href="http://www.facebook.com/share.php?u=http://sharedhat.com/blog/1547/&amp;t=StaticMapsとMicroformat(hCalender)をセットで利用する" title="Share this on Facebook"> </a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://sharedhat.com/blog/1547/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MootoolsのプラグインStaticMaps0.1.1をリリースしました。</title>
		<link>http://sharedhat.com/project/1527/</link>
		<comments>http://sharedhat.com/project/1527/#comments</comments>
		<pubDate>Sat, 30 Oct 2010 05:28:22 +0000</pubDate>
		<dc:creator>horry</dc:creator>
				<category><![CDATA[project]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[maps]]></category>
		<category><![CDATA[Mootools]]></category>
		<category><![CDATA[static]]></category>

		<guid isPermaLink="false">http://sharedhat.com/?p=1527</guid>
		<description><![CDATA[StaticMapsはMootoolsのプラグインで、javascriptを利用して静的な地図を描画します。 地図の描画にはStatic Maps API V2を利用します。 地図に描画できるものはマーカーのみで、このバ [...]]]></description>
			<content:encoded><![CDATA[<p>StaticMapsはMootoolsのプラグインで、javascriptを利用して静的な地図を描画します。<br />
地図の描画には<a title="Static Maps API V2" href="http://code.google.com/intl/ja/apis/maps/documentation/staticmaps/">Static Maps API V2</a>を利用します。</p>
<p>地図に描画できるものはマーカーのみで、このバージョンではパスの描画のサポートをまだしていません。<br />
次期バージョンでサポートする予定です。</p>
<p>Mootools1.2以上で動作します。</p>
<p>ダウンロードはこちらから可能です。<br />
<a title="Mootools - StaticMaps" href="http://github.com/holyshared/StaticMaps/zipball/0.1.1">MootoolsプラグインStaticMapsのダウンロード</a></p>
<p>ではこのプラグインの簡単な利用方法を解説します。</p>
<p><span id="more-1527"></span></p>
<h3>特定の場所の地図を指定する方法</h3>
<p>まず、StaticMapsのインスタンスを生成した後、地図のサイズや地図の中心を指定します。<br />
その後、マーカーを生成して、地図に追加します。</p>
<p><iframe style="width: 100%; height: 300px" src="http://jsfiddle.net/holyshared/P4nK5/embedded/"></iframe></p>
<h3>地図のURLを取得する</h3>
<p>toQueryString()メソッドを利用して地図のURLを取得できます。<br />
リンクのhref属性を変更して、地図へのリンクを設定することが可能です。</p>
<p><iframe style="width: 100%; height: 300px" src="http://jsfiddle.net/holyshared/XJ8AM/embedded/"></iframe></p>
<h3>オプションを利用して地図の描画を簡略化する</h3>
<p>インスタンス生成時のオプションを指定するとコードを簡略化することができます。<br />
オプションを指定して、renderToメソッドで地図を挿入する要素を指定します。</p>
<p><iframe style="width: 100%; height: 300px" src="http://jsfiddle.net/holyshared/wTfpD/embedded/"></iframe></p>
<p>以上が簡単な解説です。<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sharedhat.com/project/1644/" title="MootoolsのGoogle Mapsプラグイン、MMap0.2をリリースしました。">MootoolsのGoogle Mapsプラグイン、MMap0.2をリリースしました。</a></li>
<li><a href="http://sharedhat.com/blog/1547/" title="StaticMapsとMicroformat(hCalender)をセットで利用する">StaticMapsとMicroformat(hCalender)をセットで利用する</a></li>
<li><a href="http://sharedhat.com/project/1088/" title="Mootoolsの画像ギャラリープラグインGradually 2.0.0をリリースしました。">Mootoolsの画像ギャラリープラグインGradually 2.0.0をリリースしました。</a></li>
<li><a href="http://sharedhat.com/project/996/" title="MootoolsのプラグインImageDrawer1.0をリリースしました。">MootoolsのプラグインImageDrawer1.0をリリースしました。</a></li>
<li><a href="http://sharedhat.com/blog/1318/" title="Concrete5で翻訳ファイルを作る早いやり方">Concrete5で翻訳ファイルを作る早いやり方</a></li>
</ul>
<p><!-- Similar Posts took 4.201 ms --></p>
<div class="wp-social-bookmark-menu"><ul class="socials"><li class="script-style"><a href="http://scriptandstyle.com/submit?url=http://sharedhat.com/project/1527/&title=MootoolsのプラグインStaticMaps0.1.1をリリースしました。" title="Submit this to Script & Style"> </a></li><li class="blinklist"><a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url=http://sharedhat.com/project/1527/&Title=MootoolsのプラグインStaticMaps0.1.1をリリースしました。" title="Share this on Blinklist"> </a></li><li class="delicious"><a href="http://del.icio.us/post?url=http://sharedhat.com/project/1527/&title=MootoolsのプラグインStaticMaps0.1.1をリリースしました。" title="Share this on del.icio.us"> </a></li><li class="digg"><a href="http://digg.com/submit?phase=2&url=http://sharedhat.com/project/1527/&title=MootoolsのプラグインStaticMaps0.1.1をリリースしました。" title="Digg this!"> </a></li><li class="furl"><a href="http://www.furl.net/storeIt.jsp?t=MootoolsのプラグインStaticMaps0.1.1をリリースしました。&u=http://sharedhat.com/project/1527/" title="Share this on Furl"> </a></li><li class="reddit"><a href="http://reddit.com/submit?url=http://sharedhat.com/project/1527/&title=MootoolsのプラグインStaticMaps0.1.1をリリースしました。" title="Share this on Reddit"> </a></li><li class="yahoo"><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=MootoolsのプラグインStaticMaps0.1.1をリリースしました。&u=http://sharedhat.com/project/1527/" title="Save this to Yahoo MyWeb"> </a></li><li class="stumble"><a href="http://www.stumbleupon.com/submit?url=http://sharedhat.com/project/1527/&title=MootoolsのプラグインStaticMaps0.1.1をリリースしました。" title="Stumble upon something good? Share it on StumbleUpon"> </a></li><li class="technorati"><a href="http://technorati.com/faves?add=http://sharedhat.com/project/1527/" title="Share this on Technorati"> </a></li><li class="mixx"><a href="http://www.mixx.com/submit?page_url=http://sharedhat.com/project/1527/&amp;title=MootoolsのプラグインStaticMaps0.1.1をリリースしました。" title="Share this on Mixx"> </a></li><li class="myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://sharedhat.com/project/1527/&amp;t=MootoolsのプラグインStaticMaps0.1.1をリリースしました。" title="Post this to MySpace"> </a></li><li class="designfloat"><a href="http://www.designfloat.com/submit.php?url=http://sharedhat.com/project/1527/&amp;title=MootoolsのプラグインStaticMaps0.1.1をリリースしました。" title="Submit this to DesignFloat"> </a></li><li class="facebook"><a href="http://www.facebook.com/share.php?u=http://sharedhat.com/project/1527/&amp;t=MootoolsのプラグインStaticMaps0.1.1をリリースしました。" title="Share this on Facebook"> </a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://sharedhat.com/project/1527/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mootoolsのビルドツールに自作パッケージを追加する方法</title>
		<link>http://sharedhat.com/blog/1508/</link>
		<comments>http://sharedhat.com/blog/1508/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 14:15:20 +0000</pubDate>
		<dc:creator>horry</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Mootools]]></category>
		<category><![CDATA[mootools forge]]></category>
		<category><![CDATA[packager]]></category>
		<category><![CDATA[packager-web]]></category>

		<guid isPermaLink="false">http://sharedhat.com/?p=1508</guid>
		<description><![CDATA[Mootools Forgeの使い方 – 登録する前にすることで書きましたが、MootoolsではMootools Forgeにプラグイン登録するときにディレクトリ構造、必要なファイルがあらかじめ定められています。 その [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Mootools Forgeの使い方 – 登録する前にすること" href="http://sharedhat.com/blog/1027/">Mootools Forgeの使い方 – 登録する前にすること</a>で書きましたが、MootoolsではMootools Forgeにプラグイン登録するときにディレクトリ構造、必要なファイルがあらかじめ定められています。</p>
<p>その中で、package.yml(パッケージ定義ファイル)とソースヘッダーの話を書いたと思いますが、packager-webはビルドの際にこれらを参照し、ルールに則ってビルドを行います。<br />
若干、<a title="Mootools Forgeの使い方 – 登録する前にすること" href="http://sharedhat.com/blog/1027/">Mootools Forgeの使い方 – 登録する前にすること</a>で説明した内容のほかにファイルに記述する必要があります。</p>
<p>今回説明するパッケージ定義ファイルとソースヘッダーを記述したファイルを用意しましたので参考にしてください。<br />
解凍して、componentsにアップロード、config.ymlの書き換えを行ってください。<br />
packger-webにアップロードしたパッケージが表示されるはずです。</p>
<p><strong>サンプルデータ</strong><br />
<a href="http://dl.dropbox.com/u/603849/example-package.zip">サンプルファイルのダウンロード</a></p>
<p>具体的な内容はおさらいをかねて再度説明します。<br />
<span id="more-1508"></span></p>
<h3>パッケージ定義ファイル(package.yml)の作成</h3>
<p>1～8番までがpackagerで必要になる項目で9～14番がMootools Forgeで必要になる項目です。<br />
packager-webだけの場合、1～8番までの記述でOKです。</p>
<table>
<tr>
<th>No.</th>
<th>キー</th>
<th>項目名</th>
<th>内容</th>
</tr>
<tr>
<td>1</td>
<td>name</td>
<td>モジュール名</td>
<td>モジュールの名称</td>
</tr>
<tr>
<td>2</td>
<td>exports</td>
<td>出力ファイル名</td>
<td>出力するファイル名。packager利用時にこのファイル名でビルドされる。packager-webの場合はconfig.ymlで定義する</td>
</tr>
<tr>
<td>3</td>
<td>web</td>
<td>プロジェクトサイトURL</td>
<td>このプラグインのプロジェクトサイトのURL</td>
</tr>
<tr>
<td>4</td>
<td>description</td>
<td>プラグイン説明</td>
<td>プラグインの説明文</td>
</tr>
<tr>
<td>5</td>
<td>authors</td>
<td>著作者</td>
<td>プラグインの著作者。複数いる場合は列挙する。</td>
</tr>
<tr>
<td>6</td>
<td>license</td>
<td>ライセンス</td>
<td>ライセンスの説明</td>
</tr>
<tr>
<td>7</td>
<td>copyright</td>
<td>著作権</td>
<td>著作権の表記</td>
</tr>
<tr>
<td>8</td>
<td>sources</td>
<td>ソースコードのリスト</td>
<td>ソースコードのリスト。複数ある場合は列挙する</td>
</tr>
<tr>
<td>9</td>
<td>author</td>
<td>著作者</td>
<td>Mootools Forgeのユーザー名を記述する</td>
</tr>
<tr>
<td>10</td>
<td>category</td>
<td>Mootools Forgeのカテゴリ</td>
<td>Effects、Forms、Interface、Media、Native、Realtime、Request、Utilities、Widgetsのどれかひとつ</td>
</tr>
<tr>
<td>11</td>
<td>tags</td>
<td>タグ</td>
<td>このプラグインを分類するタグ</td>
</tr>
<tr>
<td>12</td>
<td>current</td>
<td>最新バージョン</td>
<td>現在の最新バージョンを記述する</td>
</tr>
<tr>
<td>13</td>
<td>docs</td>
<td>ドキュメントのURL</td>
<td>ドキュメントのあるURL</td>
</tr>
<tr>
<td>14</td>
<td>demo</td>
<td>デモのURL</td>
<td>デモページのあるURL</td>
</tr>
</table>
<p>実際のサンプルは下記のような感じになります。</p>
<p>[text]<br />
#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
# Here is a section of Mootools Forge.<br />
#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>name: Example Plugin Module</p>
<p>author: your forge username here</p>
<p>category: Interface</p>
<p>tags: [animation, canvas]</p>
<p>#docs: http://url.to.docs</p>
<p>#demo: http://url.to.demo</p>
<p>#current: 0.5</p>
<p>#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
# Here is a section of packager.<br />
#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>exports: &#8220;plugin.js&#8221;</p>
<p>web: &#8220;[http://sharedhat.com](http://sharedhat.com)&#8221;</p>
<p>description: &#8220;This is plugin sample&#8221;</p>
<p>authors: &#8220;[Noritaka Horio](http://sharedhat.com)&#8221;</p>
<p>license: &#8220;[public domain](http://en.wikipedia.org/wiki/Public_domain)&#8221;</p>
<p>copyright: &#8220;&copy; [Noritaka Horio](http://sharedhat.com)&#8221;</p>
<p>sources:<br />
  &#8211; &#8220;Source/Plugin.js&#8221;<br />
  &#8211; &#8220;Source/Plugin.ModuleA.js&#8221;<br />
  &#8211; &#8220;Source/Plugin.ModuleB.js&#8221;<br />
  &#8211; &#8220;Source/Plugin.ModuleC.js&#8221;<br />
[/text]</p>
<h3>ソースヘッダーの記述</h3>
<p>ソースヘッダーは<a title="Mootools Forgeの使い方 – 登録する前にすること" href="http://sharedhat.com/blog/1027/">Mootools Forgeの使い方 – 登録する前にすること</a>で書いた通りです。<br />
ここの記述は依存関係の解決に大きく影響するので注意が必要です。</p>
<table>
<tr>
<th>No.</th>
<th>キー</th>
<th>項目名</th>
<th>内容</th>
</tr>
<tr>
<td>1</td>
<td>name</td>
<td>モジュール名</td>
<td>モジュールの名称</td>
</tr>
<tr>
<td>2</td>
<td>description</td>
<td>モジュール詳細</td>
<td>モジュールの詳細を記述する。</td>
</tr>
<tr>
<td>3</td>
<td>license</td>
<td>ライセンス</td>
<td>ライセンスを記述する。</td>
</tr>
<tr>
<td>4</td>
<td>authors</td>
<td>著作者</td>
<td>著作者を記述する。複数人いる場合は列挙する。</td>
</tr>
<tr>
<td>5</td>
<td>requires</td>
<td>依存関係モジュールリスト</td>
<td>依存関係のあるモジュールをリストとして列挙する</td>
</tr>
<tr>
<td>6</td>
<td>provides</td>
<td>サブモジュール</td>
<td>このモジュールに含まれるサブモジュール</td>
</tr>
</table>
<p>実際のソースヘッダーは下記の通りになります。</p>
<p>[javascript]<br />
/*<br />
&#8212;<br />
name: Plugin</p>
<p>description: This plugin is a sample.</p>
<p>license: public domain</p>
<p>authors:<br />
- Noritaka Horio</p>
<p>requires:<br />
  &#8211; Core/Core<br />
  &#8211; Core/Array<br />
  &#8211; Core/String<br />
  &#8211; Core/Number<br />
  &#8211; Core/Function<br />
  &#8211; Core/Object<br />
  &#8211; Core/Event<br />
  &#8211; Core/Browser<br />
  &#8211; Core/Class<br />
  &#8211; Core/Class.Extras<br />
  &#8211; Core/Slick.Parser<br />
  &#8211; Core/Slick.Finder<br />
  &#8211; Core/Element<br />
  &#8211; Core/Element.Style<br />
  &#8211; Core/Element.Event<br />
  &#8211; Core/Element.Dimensions<br />
  &#8211; Core/Fx<br />
  &#8211; Core/Fx.Transitions<br />
  &#8211; More/Assets<br />
  &#8211; ImageDrawer/ImageDrawer<br />
  &#8211; ImageDrawer/ImageDrawer.Grid<br />
  &#8211; ImageDrawer/ImageDrawer.Expand</p>
<p>provides: Plugin</p>
<p>&#8230;<br />
*/<br />
[/javascript]</p>
<h3>packager-webの設定ファイル変更</h3>
<p>準備ができたら、packager-webのconfig.ymlを編集してpackagesに組み込みたいプラグインを追加します。</p>
<p>[text]<br />
packages:<br />
  &#8211; &#8220;components/mootools-core/&#8221;<br />
  &#8211; &#8220;components/mootools-more/&#8221;<br />
  &#8211; &#8220;components/example-package/&#8221;<br />
[/text]</p>
<p>これで、自作プラグインをpackager-webに組み込むことができます。<br />
packager-webにアクセスして、問題なくプラグインが表示されていれば終了です。<br />
簡単ですね。<br />
<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sharedhat.com/review/1479/" title="MootoolsのビルドツールPackager-Webはすごく便利">MootoolsのビルドツールPackager-Webはすごく便利</a></li>
<li><a href="http://sharedhat.com/project/652/" title="Mootoolsのプラグイン「Exhibition.js」をリリースしました。">Mootoolsのプラグイン「Exhibition.js」をリリースしました。</a></li>
<li><a href="http://sharedhat.com/blog/89/" title="MooTools 1.2リリース">MooTools 1.2リリース</a></li>
<li><a href="http://sharedhat.com/project/1653/" title="MootoolsのGoogle Mapsプラグイン、MMap 0.2.1をリリースしました。">MootoolsのGoogle Mapsプラグイン、MMap 0.2.1をリリースしました。</a></li>
<li><a href="http://sharedhat.com/review/1588/" title="Mootoolsをコマンドラインを使用してビルドする方法">Mootoolsをコマンドラインを使用してビルドする方法</a></li>
</ul>
<p><!-- Similar Posts took 4.925 ms --></p>
<div class="wp-social-bookmark-menu"><ul class="socials"><li class="script-style"><a href="http://scriptandstyle.com/submit?url=http://sharedhat.com/blog/1508/&title=Mootoolsのビルドツールに自作パッケージを追加する方法" title="Submit this to Script & Style"> </a></li><li class="blinklist"><a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url=http://sharedhat.com/blog/1508/&Title=Mootoolsのビルドツールに自作パッケージを追加する方法" title="Share this on Blinklist"> </a></li><li class="delicious"><a href="http://del.icio.us/post?url=http://sharedhat.com/blog/1508/&title=Mootoolsのビルドツールに自作パッケージを追加する方法" title="Share this on del.icio.us"> </a></li><li class="digg"><a href="http://digg.com/submit?phase=2&url=http://sharedhat.com/blog/1508/&title=Mootoolsのビルドツールに自作パッケージを追加する方法" title="Digg this!"> </a></li><li class="furl"><a href="http://www.furl.net/storeIt.jsp?t=Mootoolsのビルドツールに自作パッケージを追加する方法&u=http://sharedhat.com/blog/1508/" title="Share this on Furl"> </a></li><li class="reddit"><a href="http://reddit.com/submit?url=http://sharedhat.com/blog/1508/&title=Mootoolsのビルドツールに自作パッケージを追加する方法" title="Share this on Reddit"> </a></li><li class="yahoo"><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=Mootoolsのビルドツールに自作パッケージを追加する方法&u=http://sharedhat.com/blog/1508/" title="Save this to Yahoo MyWeb"> </a></li><li class="stumble"><a href="http://www.stumbleupon.com/submit?url=http://sharedhat.com/blog/1508/&title=Mootoolsのビルドツールに自作パッケージを追加する方法" title="Stumble upon something good? Share it on StumbleUpon"> </a></li><li class="technorati"><a href="http://technorati.com/faves?add=http://sharedhat.com/blog/1508/" title="Share this on Technorati"> </a></li><li class="mixx"><a href="http://www.mixx.com/submit?page_url=http://sharedhat.com/blog/1508/&amp;title=Mootoolsのビルドツールに自作パッケージを追加する方法" title="Share this on Mixx"> </a></li><li class="myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://sharedhat.com/blog/1508/&amp;t=Mootoolsのビルドツールに自作パッケージを追加する方法" title="Post this to MySpace"> </a></li><li class="designfloat"><a href="http://www.designfloat.com/submit.php?url=http://sharedhat.com/blog/1508/&amp;title=Mootoolsのビルドツールに自作パッケージを追加する方法" title="Submit this to DesignFloat"> </a></li><li class="facebook"><a href="http://www.facebook.com/share.php?u=http://sharedhat.com/blog/1508/&amp;t=Mootoolsのビルドツールに自作パッケージを追加する方法" title="Share this on Facebook"> </a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://sharedhat.com/blog/1508/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

