<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>副業金持ち生活 - 副業PHP最新RSS</title>
		<link>http://kaiteki-rich.com/modules/pip_php/index.php?page=eachpipe&amp;pipe_id=</link>
		<description></description>
		<lastBuildDate>Sat, 31 Jul 2010 22:22:05 +0900</lastBuildDate>
		<docs>http://backend.userland.com/rss/</docs>
		<generator>XOOPS - d3pipes</generator>
		<category>d3pipes</category>
		<webMaster>ネット副業で稼ぐ人のネタ帳</webMaster>
		<language>en</language>

				<item>
			<title>開発でよく使うTool纏めMac偏</title>
						<link>http://blog.asial.co.jp/730</link>
						<description> Smulrton&lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1208&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1208&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
いちごのエディターです。アイコンがイチゴ&lt;br /&gt;
Smulrtonはスエーデン語で野いちごの意味らしいです。&lt;br /&gt;
日本語ローカライズされていて機能的にもそこそこ備えたエディターです。&lt;br /&gt;
残念な事に開発は終わってるみたいですが。。&lt;br /&gt;
&lt;a href=&#039;http://smultron.sourceforge.net/&#039;&gt;http://smultron.sourceforge.net/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Mac Vim&lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1210&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1210&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
言わずと知れたViのクローンです。&lt;br /&gt;
Gvimとは違いヴィジュアルモードも使えます。&lt;br /&gt;
Macには標準でコンソールから呼び出せるViもあるのですが、気分で使いわけてます。&lt;br /&gt;
インストールはPortsからできます。&lt;br /&gt;
&lt;br /&gt;
eclipse&lt;br /&gt;
eclipseは便利ですね。&lt;br /&gt;
Viしか使えない環境ではViを使うのですが、Sumba環境だと動きが遅いので出来るだけローカルに開発環境がある時はeclipseを使って開発してます。&lt;br /&gt;
&lt;br /&gt;
ちょいネタでeclipseの日本語化について&lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1209&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1209&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
日本語化してeclipseを使っているのですが、私はMerge Doc Projectを使って日本語化しました。&lt;br /&gt;
&lt;br /&gt;
Merge Doc ProjectのページからPleiades All in one Eclipse 3.6.0 Helios Windows 32bit ベース / Pleiades All in One 3.6.0.20100623をDL&lt;br /&gt;
します。&lt;br /&gt;
私はPHPのFull All in One をDLしました。&lt;br /&gt;
&lt;a href=&#039;http://mergedoc.sourceforge.jp/&#039;&gt;http://mergedoc.sourceforge.jp/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Mac版のEclipse（Eclipse Classic 3.6.0）をDlします。&lt;br /&gt;
&lt;a href=&#039;http://www.eclipse.org/downloads/&#039;&gt;http://www.eclipse.org/downloads/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
解凍するとeclipseディレクトリーが出てくるので、eclipseディレクトリー配下のdoropinsディレクトリーの中に先程落としてきたPleiades All in one Eclipseの中にあるdorpinsディレクトリーの中身をコピーします。同名のファイルがある場合は上書きします。&lt;br /&gt;
&lt;br /&gt;
eclipse.iniの中身を編集します。&lt;br /&gt;
eclipse.iniはEclipseアイコンの上で右クリック「パッケージの内容を表示」→Contents→MacOSの順に辿って行くとあります。&lt;br /&gt;
Windows版はexeファイルと同じディレクトリーに同名であります。&lt;br /&gt;
&lt;br /&gt;
編集方法は感でマージします。（すいません、ここんとこよくわかんないです。）&lt;br /&gt;
私の環境では以下の内容で動きました。&lt;br /&gt;
&lt;br /&gt;
&lt;ol class=&quot;boxcode-main&quot;&gt;&lt;li&gt;-startup&lt;/li&gt;&lt;li&gt;../../../plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar&lt;/li&gt;&lt;li&gt;--launcher.library&lt;/li&gt;&lt;li&gt;../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.1.0.v20100503&lt;/li&gt;&lt;li&gt;-product&lt;/li&gt;&lt;li&gt;org.eclipse.epp.package.php.product&lt;/li&gt;&lt;li&gt;--launcher.defaultAction&lt;/li&gt;&lt;li&gt;openFile&lt;/li&gt;&lt;li&gt;-showsplash&lt;/li&gt;&lt;li&gt;org.eclipse.platform&lt;/li&gt;&lt;li&gt;--launcher.XXMaxPermSize&lt;/li&gt;&lt;li&gt;256m&lt;/li&gt;&lt;li&gt;--launcher.defaultAction&lt;/li&gt;&lt;li&gt;openFile&lt;/li&gt;&lt;li&gt;--launcher.library&lt;/li&gt;&lt;li&gt;/Applications/eclipse_cocoa/plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.1.0.v20100503&lt;/li&gt;&lt;li&gt;-startup&lt;/li&gt;&lt;li&gt;/Applications/eclipse_cocoa/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar&lt;/li&gt;&lt;li&gt;-vmargs&lt;/li&gt;&lt;li&gt;-Dosgi.requiredJavaVersion=1.5&lt;/li&gt;&lt;li&gt;-XstartOnFirstThread&lt;/li&gt;&lt;li&gt;-Dorg.eclipse.swt.internal.carbon.smallFonts&lt;/li&gt;&lt;li&gt;-XX:MaxPermSize=256m&lt;/li&gt;&lt;li&gt;-Xms128m&lt;/li&gt;&lt;li&gt;-Xmx512m&lt;/li&gt;&lt;li&gt;-Xdock:icon=../Resources/Eclipse.icns&lt;/li&gt;&lt;li&gt;-XstartOnFirstThread&lt;/li&gt;&lt;li&gt;-Dorg.eclipse.swt.internal.carbon.smallFonts&lt;/li&gt;&lt;li&gt;-javaagent:../../../dropins/MergeDoc/eclipse/plugins/jp.sourceforge.mergedoc.pleiades/pleiades.jar&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;
DB Tool&lt;br /&gt;
コンソールでsqlを操作してもいいのですが、GUIで操作したほうがテーブル名やカラム名を見ながらデータの中身を見たり&lt;br /&gt;
直感的に操作できて作業効率も上がるので私は基本的にGUIのToolを使ってます。&lt;br /&gt;
普段MySqlを使っているのでMySqlに特化してますが、Sequel Proが使いやすいと思います。&lt;br /&gt;
UTF-8環境では日本語も表示されました。&lt;br /&gt;
スクリーンショットは本家のサイトでみてみてください。（スクリーンショット撮るとお客さんの環境が見えてしまうので・・・）&lt;br /&gt;
&lt;a href=&#039;http://www.sequelpro.com/&#039;&gt;http://www.sequelpro.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
とりあえず、エディターとDBの中身が見えればコードは書けるかなって事でエディターとDBToolの紹介でした。&lt;br /&gt;
&lt;br /&gt;
おまけ&lt;br /&gt;
MacPorts使うならPorticusを使うのが便利ですよ。&lt;br /&gt;
MacPorts&lt;br /&gt;
&lt;a href=&#039;http://www.macports.org/&#039;&gt;http://www.macports.org/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Porticus&lt;br /&gt;
&lt;a href=&#039;http://porticus.alittledrop.com/&#039;&gt;http://porticus.alittledrop.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
あ、あとブラウザーも必要ですねｗ&lt;br /&gt;
私はFirefox＋FireBug使ってます。 </description>
						<guid>http://blog.asial.co.jp/730</guid>
			<pubDate>Fri, 30 Jul 2010 19:16:20 +0900</pubDate>
			<category>Tech</category>
		</item>
				<item>
			<title>開発でよく使うTool纏めMac偏</title>
						<link>http://blog.asial.co.jp/730</link>
						<description> 濱田です。
今日は私が開発でよく使うTool（エディターとDBTool）を纏めておこうと思います。
Mac版Eclipseの日本語化 </description>
						<guid>http://blog.asial.co.jp/730</guid>
			<pubDate>Fri, 30 Jul 2010 19:16:20 +0900</pubDate>
			<category>-</category>
		</item>
				<item>
			<title>PHPプロ！Weekly PEAR リリース @ 10/07/30号</title>
						<link>http://www.phppro.jp/news/759/rss</link>
						<description>PHPプロ！Weekly PEARリリースでは、前週からの１週間にリリースされたPEARパッケージを、毎週まとめてご紹介します。
本記事では、07月23日から07月30日までの間にリリースされたパッケージ一覧を掲載しています。</description>
						<guid>http://www.phppro.jp/news/759</guid>
			<pubDate>Fri, 30 Jul 2010 11:46:20 +0900</pubDate>
			<category></category>
		</item>
				<item>
			<title>PHPプロ！Weekly PECL リリース @ 10/07/30号</title>
						<link>http://www.phppro.jp/news/758/rss</link>
						<description>PHPプロ！Weekly PECLリリースでは、前週からの１週間にリリースされたPECLパッケージを、毎週まとめてご紹介します。
本記事では、07月22日から07月30日までの間にリリースされたパッケージ一覧を掲載しています。</description>
						<guid>http://www.phppro.jp/news/758</guid>
			<pubDate>Fri, 30 Jul 2010 11:37:22 +0900</pubDate>
			<category></category>
		</item>
				<item>
			<title>AJAX内でのリダイレクト処理の罠</title>
						<link>http://blog.asial.co.jp/728</link>
						<description> こんばんは。笹亀です。&lt;br /&gt;
&lt;br /&gt;
iPhoneの白をず〜〜っと待っているのですが、&lt;br /&gt;
今年末ということになってとても残念でなりません。&lt;br /&gt;
ここまで待ったので気長に待つことにします。&lt;br /&gt;
&lt;br /&gt;
さて今日はAJAX内でのリダイレクト処理をした際に、&lt;br /&gt;
起こったことをご紹介させていただきます。&lt;br /&gt;
&lt;br /&gt;
結論から言うと、&lt;br /&gt;
「AJAX内でリダイレクトするときはセッションは使うな！」&lt;br /&gt;
&lt;br /&gt;
まずは遷移として下記のように試しました。&lt;br /&gt;
AJAXでSymfonyをfile_get_contentsで呼び出すスクリプトを指定します。&lt;br /&gt;
&lt;ol class=&quot;boxcode-main&quot;&gt;&lt;li&gt;info.php&lt;/li&gt;&lt;li&gt;&lt;wbr /&gt;&amp;nbsp;↓AJAXで呼び出し&lt;/li&gt;&lt;li&gt;get.php(外部のSymfonyで作成されたページの呼び出し)&lt;/li&gt;&lt;li&gt;&lt;wbr /&gt;&amp;nbsp;↓file_get_contents関数で呼び出し&lt;/li&gt;&lt;li&gt;http://sasa.local/top/sessionTest&lt;/li&gt;&lt;li&gt;&lt;wbr /&gt;&amp;nbsp;↓(Symfony内でリダイレクト&lt;/li&gt;&lt;li&gt;http://sasa.local/top/sessionTest1&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;※Symfonyのリダイレクト(redirect)を使用してセッションのデータを書き込んで値を引き継ぐことができるのかを試しました。&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;
まずは表示する側のページを作成します。&lt;br /&gt;
&lt;br /&gt;
-- info.php&lt;br /&gt;
&lt;ol class=&quot;html-main&quot;&gt;&lt;li&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;html-var&quot;&gt;DOCTYPE&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-var&quot;&gt;html&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-var&quot;&gt;PUBLIC&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-string&quot;&gt;-//W3C//DTD&lt;wbr /&gt;&amp;nbsp;XHTML&lt;wbr /&gt;&amp;nbsp;1.0&lt;wbr /&gt;&amp;nbsp;Transitional//EN&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-string&quot;&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html-reserved&quot;&gt;html&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-var&quot;&gt;xmlns&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-string&quot;&gt;http://www.w3.org/1999/xhtml&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-var&quot;&gt;xml:lang&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-string&quot;&gt;ja&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-var&quot;&gt;lang&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-string&quot;&gt;ja&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html-reserved&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html-reserved&quot;&gt;meta&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-var&quot;&gt;http-equiv&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-string&quot;&gt;Content-Type&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-var&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-string&quot;&gt;text/html;&lt;wbr /&gt;&amp;nbsp;charset=utf-8&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html-reserved&quot;&gt;meta&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-var&quot;&gt;http-equiv&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-string&quot;&gt;Content-Style-Type&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-var&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-string&quot;&gt;text/css&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html-reserved&quot;&gt;meta&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-var&quot;&gt;http-equiv&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-string&quot;&gt;Content-Script-Type&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-var&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-string&quot;&gt;text/javascript&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html-reserved&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;symfony&amp;amp;ajax&lt;wbr /&gt;&amp;nbsp;session&lt;wbr /&gt;&amp;nbsp;Test&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html-reserved&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html-reserved&quot;&gt;script&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-var&quot;&gt;language&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-string&quot;&gt;JavaScript&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-var&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-string&quot;&gt;text/javascript&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-var&quot;&gt;src&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-string&quot;&gt;/jquery.js&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html-reserved&quot;&gt;script&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;html-comment&quot;&gt;&amp;lt;!--&lt;wbr /&gt;&amp;nbsp;EXPAND&lt;wbr /&gt;&amp;nbsp;SKIPED&lt;wbr /&gt;&amp;nbsp;--&amp;gt;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html-reserved&quot;&gt;script&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-var&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-string&quot;&gt;text/javascript&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;html-comment&quot;&gt;&amp;lt;!--&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-comment&quot;&gt;function&lt;wbr /&gt;&amp;nbsp;ajax_test()&lt;wbr /&gt;&amp;nbsp;{&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-comment&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;$.ajax(&lt;wbr /&gt;&amp;nbsp;{&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-comment&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;type&lt;wbr /&gt;&amp;nbsp;:&lt;wbr /&gt;&amp;nbsp;&amp;quot;POST&amp;quot;,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-comment&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;url&lt;wbr /&gt;&amp;nbsp;:&lt;wbr /&gt;&amp;nbsp;&amp;quot;get.php&amp;quot;,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-comment&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;data&lt;wbr /&gt;&amp;nbsp;:&lt;wbr /&gt;&amp;nbsp;{param&lt;wbr /&gt;&amp;nbsp;:&lt;wbr /&gt;&amp;nbsp;&amp;quot;sasagame&lt;wbr /&gt;&amp;nbsp;hiroshi&amp;quot;},&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-comment&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;success&lt;wbr /&gt;&amp;nbsp;:&lt;wbr /&gt;&amp;nbsp;function(txt)&lt;wbr /&gt;&amp;nbsp;{&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-comment&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;$(&#039;#view_area&#039;).html(txt);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-comment&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;},&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-comment&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;error&lt;wbr /&gt;&amp;nbsp;:&lt;wbr /&gt;&amp;nbsp;function()&lt;wbr /&gt;&amp;nbsp;{&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-comment&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;alert(&#039;error&#039;);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-comment&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-comment&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;});&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-comment&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-comment&quot;&gt;//&lt;wbr /&gt;&amp;nbsp;--&amp;gt;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html-reserved&quot;&gt;script&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html-reserved&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html-reserved&quot;&gt;body&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;symfonyとセッションのテスト中&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html-reserved&quot;&gt;br&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html-reserved&quot;&gt;input&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-var&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-string&quot;&gt;button&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-var&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-string&quot;&gt;test&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-var&quot;&gt;onClick&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-string&quot;&gt;ajax_test();return&lt;wbr /&gt;&amp;nbsp;false;&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-var&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-string&quot;&gt;テスト開始&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html-reserved&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;html-var&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-string&quot;&gt;view_area&lt;/span&gt;&lt;span class=&quot;html-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html-reserved&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html-reserved&quot;&gt;body&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;html-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html-reserved&quot;&gt;html&lt;/span&gt;&lt;span class=&quot;html-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;
次にAJAXの呼び出し側のPHPスクリプトを作成します。&lt;br /&gt;
-- get.php&lt;br /&gt;
&lt;ol class=&quot;php-main&quot;&gt;&lt;li&gt;&lt;span class=&quot;php-inlinetags&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$html&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-identifier&quot;&gt;file_get_contents&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-string&quot;&gt;http://sasa.local/top/sessionTest?param=sasagame+hiroshi&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-reserved&quot;&gt;echo&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$html&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;php-inlinetags&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;※ここではSymfonyで作成されたページを指定しております&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
get.phpで呼び出しているSymfony側の処理を実装します。&lt;br /&gt;
&lt;br /&gt;
&lt;ol class=&quot;php-main&quot;&gt;&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;・・・省略&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;public&lt;wbr /&gt;&amp;nbsp;function&lt;wbr /&gt;&amp;nbsp;executeSessionTest(sfWebRequest&lt;wbr /&gt;&amp;nbsp;$request)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;{&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;$param&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;$request-&amp;gt;getParameter(&#039;param&#039;);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;$this-&amp;gt;getUser()-&amp;gt;setAttribute(&#039;session_test&#039;,&lt;wbr /&gt;&amp;nbsp;$param);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;$this-&amp;gt;redirect(&#039;top/sessionTest1&#039;);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;public&lt;wbr /&gt;&amp;nbsp;function&lt;wbr /&gt;&amp;nbsp;executeSessionTest1(sfWebRequest&lt;wbr /&gt;&amp;nbsp;$request)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;{&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;$param&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;$request-&amp;gt;getParameter(&#039;param&#039;);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;$session_data&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;$this-&amp;gt;getUser()-&amp;gt;getAttribute(&#039;session_test&#039;,&lt;wbr /&gt;&amp;nbsp;&#039;取得できない&#039;);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;echo&lt;wbr /&gt;&amp;nbsp;&#039;session_test_data:&#039;&lt;wbr /&gt;&amp;nbsp;.&lt;wbr /&gt;&amp;nbsp;$session_data&lt;wbr /&gt;&amp;nbsp;.&lt;wbr /&gt;&amp;nbsp;&amp;quot;&amp;lt;br&lt;wbr /&gt;&amp;nbsp;/&amp;gt;&amp;quot;;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;echo&lt;wbr /&gt;&amp;nbsp;print_r($_SESSION,&lt;wbr /&gt;&amp;nbsp;true);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;exit;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;・・・省略&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;
上記のように実装完了後に実際に動かしてみます。&lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1200&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1200&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
テスト開始ボタンをクリック・・&lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1201&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1201&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
うあ、やっぱり取得できません。&lt;br /&gt;
&lt;br /&gt;
普通にSymfony側を実行すれば、セッションデータの取得はおこなえます。&lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1202&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1202&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
普通にAJAXで処理するときには、ご紹介させていただいたようなリダレクトして処理を遷移させて使うみたいなことはそうそうないことだとおもいます。&lt;br /&gt;
今回はイレギュラー的にどうしてもセッションを使ってリダイレクトすることになってしまいました。なぜだといろいろと試行したため時間を使いました。先入観で出来るだろうと思って使うと痛い目にあいますというか痛い目にあいました。&lt;br /&gt;
&lt;br /&gt;
教訓としてはこんな遠まわしな使い方をするなということと先入観で使用するなでした＾＾；&lt;br /&gt;
&lt;br /&gt;
皆さんもAJAX使うときには気をつけてくださいませ。 </description>
						<guid>http://blog.asial.co.jp/728</guid>
			<pubDate>Wed, 28 Jul 2010 23:03:35 +0900</pubDate>
			<category>Tech</category>
		</item>
				<item>
			<title>AJAX内でのリダイレクト処理の罠</title>
						<link>http://blog.asial.co.jp/728</link>
						<description> AJAX内でリダイレクト処理をした際に、
注意して使用しないといけないこと(はまったこと）
をご紹介させていただきます。 </description>
						<guid>http://blog.asial.co.jp/728</guid>
			<pubDate>Wed, 28 Jul 2010 23:03:35 +0900</pubDate>
			<category>-</category>
		</item>
				<item>
			<title>タイル型ウィンドウマネージャ stumpwm 導入</title>
						<link>http://blog.asial.co.jp/727</link>
						<description> stumpwmとは、タイル型ウィンドウマネージャの一種。
ratpoisonの後継でcommon lispで実装されています。
Cで書かれたratpoisonより若干重くはなりますが、拡張性に優れており、設定ファイルもcommon lispでかけるのでいろいろと便利。

ついこの間ratpoisonからstumpwmへ乗り換えたので、導入について書いてみたいと思います。 </description>
						<guid>http://blog.asial.co.jp/727</guid>
			<pubDate>Mon, 26 Jul 2010 18:25:03 +0900</pubDate>
			<category>-</category>
		</item>
				<item>
			<title>タイル型ウィンドウマネージャ stumpwm 導入</title>
						<link>http://blog.asial.co.jp/727</link>
						<description> stumpwmとは、タイル型ウィンドウマネージャの一種。&lt;br /&gt;
ratpoisonの後継でcommon lispで実装されています。&lt;br /&gt;
Cで書かれたratpoisonより若干重くはなりますが、拡張性に優れており、設定ファイルもcommon lispでかけるのでいろいろと便利。&lt;br /&gt;
&lt;br /&gt;
ついこの間ratpoisonからstumpwmへ乗り換えたので、導入について書いてみたいと思います。&lt;br /&gt;
&lt;br /&gt;
１・乗り換えた理由&lt;br /&gt;
ratpoisonでもほとんど満足でしたか、一つ不満点がありました。&lt;br /&gt;
xrandrで解像度を変更するときに、ratpoisonを再起動しないと解像度が反映されないのが非常に面倒なことです。&lt;br /&gt;
&lt;br /&gt;
再起動するとグループも再構成されてしまい、ウィンドウを再配置する必要があります。&lt;br /&gt;
（さらに自分の環境が悪いのかもしれませんが、既存のウィンドウを他のグループに移動しようとするとウィンドウが消えると言う妙な事柄になります）&lt;br /&gt;
&lt;br /&gt;
最近割と頻繁にディスプレイを変えることがあり面倒なので、その辺に対応しているstumpwmをインストールしてみました。&lt;br /&gt;
&lt;br /&gt;
２・インストール&lt;br /&gt;
&lt;ol class=&quot;boxcode-main no-number&quot;&gt;&lt;li&gt;$&lt;wbr /&gt;&amp;nbsp;sudo&lt;wbr /&gt;&amp;nbsp;apt-get&lt;wbr /&gt;&amp;nbsp;install&lt;wbr /&gt;&amp;nbsp;stumpwm&lt;/li&gt;&lt;/ol&gt;以上。&lt;br /&gt;
common lispだとかいろいろ入ります。&lt;br /&gt;
&lt;br /&gt;
３・設定&lt;br /&gt;
設定ファイルは ~/.stumpwmrc にcommon lispで記述します。&lt;br /&gt;
&lt;ol class=&quot;boxcode-main no-number&quot;&gt;&lt;li&gt;;;&lt;wbr /&gt;&amp;nbsp;-*-&lt;wbr /&gt;&amp;nbsp;lisp&lt;wbr /&gt;&amp;nbsp;-*-&lt;/li&gt;&lt;li&gt;(in-package&lt;wbr /&gt;&amp;nbsp;:stumpwm)&lt;/li&gt;&lt;li&gt;(setf&lt;wbr /&gt;&amp;nbsp;*shell-program*&lt;wbr /&gt;&amp;nbsp;&quot;/bin/zsh&quot;)&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;;;&lt;wbr /&gt;&amp;nbsp;色&lt;/li&gt;&lt;li&gt;(set-fg-color&lt;wbr /&gt;&amp;nbsp;&quot;#000000&quot;)&lt;/li&gt;&lt;li&gt;(set-bg-color&lt;wbr /&gt;&amp;nbsp;&quot;#FFFFFF&quot;)&lt;/li&gt;&lt;li&gt;(set-border-color&lt;wbr /&gt;&amp;nbsp;&quot;#000000&quot;)&lt;/li&gt;&lt;li&gt;;;&lt;wbr /&gt;&amp;nbsp;フォーカスがあるウィンドウの色&lt;/li&gt;&lt;li&gt;;;&lt;wbr /&gt;&amp;nbsp;デフォルトは白ですが、何か自己主張が激しい（？）ので暗い赤に&lt;/li&gt;&lt;li&gt;(set-focus-color&lt;wbr /&gt;&amp;nbsp;&quot;#883333&quot;)&lt;/li&gt;&lt;li&gt;;;&lt;wbr /&gt;&amp;nbsp;フォーカスが無いのは暗い青に&lt;/li&gt;&lt;li&gt;(set-unfocus-color&lt;wbr /&gt;&amp;nbsp;&quot;#333388&quot;)&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;;;&lt;wbr /&gt;&amp;nbsp;フォント&lt;/li&gt;&lt;li&gt;(set-font&lt;wbr /&gt;&amp;nbsp;&quot;-xos4-terminus-bold-r-normal--14-140-72-72-c-0-iso8859-7&quot;)&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;;;&lt;wbr /&gt;&amp;nbsp;あらかじめグループを作成しておく&lt;/li&gt;&lt;li&gt;(run-commands&lt;wbr /&gt;&amp;nbsp;&quot;gnewbg&lt;wbr /&gt;&amp;nbsp;1&quot;)&lt;/li&gt;&lt;li&gt;(run-commands&lt;wbr /&gt;&amp;nbsp;&quot;gnewbg&lt;wbr /&gt;&amp;nbsp;2&quot;)&lt;/li&gt;&lt;li&gt;(run-commands&lt;wbr /&gt;&amp;nbsp;&quot;gnewbg&lt;wbr /&gt;&amp;nbsp;3&quot;)&lt;/li&gt;&lt;li&gt;(run-commands&lt;wbr /&gt;&amp;nbsp;&quot;gnewbg&lt;wbr /&gt;&amp;nbsp;4&quot;)&lt;/li&gt;&lt;li&gt;(run-commands&lt;wbr /&gt;&amp;nbsp;&quot;gnewbg&lt;wbr /&gt;&amp;nbsp;5&quot;)&lt;/li&gt;&lt;li&gt;(run-commands&lt;wbr /&gt;&amp;nbsp;&quot;gnewbg&lt;wbr /&gt;&amp;nbsp;6&quot;)&lt;/li&gt;&lt;li&gt;(run-commands&lt;wbr /&gt;&amp;nbsp;&quot;gnewbg&lt;wbr /&gt;&amp;nbsp;7&quot;)&lt;/li&gt;&lt;li&gt;(run-commands&lt;wbr /&gt;&amp;nbsp;&quot;gnewbg&lt;wbr /&gt;&amp;nbsp;8&quot;)&lt;/li&gt;&lt;li&gt;(run-commands&lt;wbr /&gt;&amp;nbsp;&quot;gnewbg&lt;wbr /&gt;&amp;nbsp;9&quot;)&lt;/li&gt;&lt;li&gt;(run-commands&lt;wbr /&gt;&amp;nbsp;&quot;gnewbg&lt;wbr /&gt;&amp;nbsp;10&quot;)&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;;;&lt;wbr /&gt;&amp;nbsp;1番を選択&lt;/li&gt;&lt;li&gt;(run-commands&lt;wbr /&gt;&amp;nbsp;&quot;gselect&lt;wbr /&gt;&amp;nbsp;1&quot;)&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;;;&lt;wbr /&gt;&amp;nbsp;以下、独自コマンド&lt;/li&gt;&lt;li&gt;;&lt;wbr /&gt;&amp;nbsp;urxvt起動&lt;/li&gt;&lt;li&gt;(defcommand&lt;wbr /&gt;&amp;nbsp;urxvt&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;(run-shell-command&lt;wbr /&gt;&amp;nbsp;&quot;urxvt&quot;))&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;;&lt;wbr /&gt;&amp;nbsp;音楽プレーヤのコントロール&lt;/li&gt;&lt;li&gt;;&lt;wbr /&gt;&amp;nbsp;audio_ctlはシェルスクリプトで、&lt;/li&gt;&lt;li&gt;;&lt;wbr /&gt;&amp;nbsp;playが渡されたら&lt;wbr /&gt;&amp;nbsp;rhythmbox-client&lt;wbr /&gt;&amp;nbsp;--play&lt;wbr /&gt;&amp;nbsp;実行するように書いている&lt;/li&gt;&lt;li&gt;(defcommand&lt;wbr /&gt;&amp;nbsp;mprev&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;(run-shell-command&lt;wbr /&gt;&amp;nbsp;&quot;audio_ctl&lt;wbr /&gt;&amp;nbsp;prev&quot;))&lt;/li&gt;&lt;li&gt;(defcommand&lt;wbr /&gt;&amp;nbsp;mplay&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;(run-shell-command&lt;wbr /&gt;&amp;nbsp;&quot;audio_ctl&lt;wbr /&gt;&amp;nbsp;play&quot;))&lt;/li&gt;&lt;li&gt;(defcommand&lt;wbr /&gt;&amp;nbsp;mpause&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;(run-shell-command&lt;wbr /&gt;&amp;nbsp;&quot;audio_ctl&lt;wbr /&gt;&amp;nbsp;pause&quot;))&lt;/li&gt;&lt;li&gt;(defcommand&lt;wbr /&gt;&amp;nbsp;mstop&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;(run-shell-command&lt;wbr /&gt;&amp;nbsp;&quot;audio_ctl&lt;wbr /&gt;&amp;nbsp;stop&quot;))&lt;/li&gt;&lt;li&gt;(defcommand&lt;wbr /&gt;&amp;nbsp;mnext&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;(run-shell-command&lt;wbr /&gt;&amp;nbsp;&quot;audio_ctl&lt;wbr /&gt;&amp;nbsp;next&quot;))&lt;/li&gt;&lt;li&gt;(defcommand&lt;wbr /&gt;&amp;nbsp;mshuffle&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;(run-shell-command&lt;wbr /&gt;&amp;nbsp;&quot;audio_ctl&lt;wbr /&gt;&amp;nbsp;shuffle&quot;))&lt;/li&gt;&lt;li&gt;(defcommand&lt;wbr /&gt;&amp;nbsp;mrepeat&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;(run-shell-command&lt;wbr /&gt;&amp;nbsp;&quot;audio_ctl&lt;wbr /&gt;&amp;nbsp;repeat&quot;))&lt;/li&gt;&lt;li&gt;(defcommand&lt;wbr /&gt;&amp;nbsp;volup&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;(run-shell-command&lt;wbr /&gt;&amp;nbsp;&quot;audio_ctl&lt;wbr /&gt;&amp;nbsp;volup&quot;))&lt;/li&gt;&lt;li&gt;(defcommand&lt;wbr /&gt;&amp;nbsp;voldown&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;(run-shell-command&lt;wbr /&gt;&amp;nbsp;&quot;audio_ctl&lt;wbr /&gt;&amp;nbsp;voldown&quot;))&lt;/li&gt;&lt;li&gt;(defcommand&lt;wbr /&gt;&amp;nbsp;mnotify&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;(run-shell-command&lt;wbr /&gt;&amp;nbsp;&quot;audio_ctl&lt;wbr /&gt;&amp;nbsp;notify&quot;))&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;;&lt;wbr /&gt;&amp;nbsp;music&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*root-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;M-z&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;mprev&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*root-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;M-x&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;mplay&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*root-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;M-c&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;mpause&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*root-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;M-v&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;mstop&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*root-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;M-b&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;mnext&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*root-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;M-s&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;mshuffle&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*root-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;M-r&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;mrepeat&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*root-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;C-0&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;volup&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*root-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;C-9&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;voldown&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*root-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;x&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;mnotify&quot;)&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;;&lt;wbr /&gt;&amp;nbsp;term&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*root-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;C-c&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;urxvt&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*root-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;c&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;urxvt&quot;)&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;;&lt;wbr /&gt;&amp;nbsp;colon&lt;/li&gt;&lt;li&gt;;&lt;wbr /&gt;&amp;nbsp;stumpwmのデフォルトはセミコロンなため、コロンに変更して置く&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*root-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;C-:&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;colon&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*root-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;:&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;colon&quot;)&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;;;&lt;wbr /&gt;&amp;nbsp;group&lt;/li&gt;&lt;li&gt;;;&lt;wbr /&gt;&amp;nbsp;M-Fxで切り替え&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;とすることでシングルストロークで実行出来る&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;M-F1&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;gselect&lt;wbr /&gt;&amp;nbsp;1&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;M-F2&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;gselect&lt;wbr /&gt;&amp;nbsp;2&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;M-F3&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;gselect&lt;wbr /&gt;&amp;nbsp;3&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;M-F4&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;gselect&lt;wbr /&gt;&amp;nbsp;4&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;M-F5&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;gselect&lt;wbr /&gt;&amp;nbsp;5&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;M-F6&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;gselect&lt;wbr /&gt;&amp;nbsp;6&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;M-F7&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;gselect&lt;wbr /&gt;&amp;nbsp;7&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;M-F8&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;gselect&lt;wbr /&gt;&amp;nbsp;8&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;M-F9&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;gselect&lt;wbr /&gt;&amp;nbsp;9&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;M-F10&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;gselect&lt;wbr /&gt;&amp;nbsp;10&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*root-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;,&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;gmove&quot;)&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;;;&lt;wbr /&gt;&amp;nbsp;window&lt;/li&gt;&lt;li&gt;;;&lt;wbr /&gt;&amp;nbsp;今いるウィンドウが分かりずらかったため書いてみた&lt;/li&gt;&lt;li&gt;;;&lt;wbr /&gt;&amp;nbsp;慣れれば必要ない&lt;/li&gt;&lt;li&gt;(defcommand&lt;wbr /&gt;&amp;nbsp;sfnext&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;()&lt;wbr /&gt;&amp;nbsp;(run-commands&lt;wbr /&gt;&amp;nbsp;&quot;fnext&quot;&lt;wbr /&gt;&amp;nbsp;&quot;echo&lt;wbr /&gt;&amp;nbsp;#########################################&lt;/li&gt;&lt;li&gt;#########################################&lt;/li&gt;&lt;li&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;C&lt;wbr /&gt;&amp;nbsp;U&lt;wbr /&gt;&amp;nbsp;R&lt;wbr /&gt;&amp;nbsp;R&lt;wbr /&gt;&amp;nbsp;E&lt;wbr /&gt;&amp;nbsp;N&lt;wbr /&gt;&amp;nbsp;T&lt;wbr /&gt;&amp;nbsp;F&lt;wbr /&gt;&amp;nbsp;R&lt;wbr /&gt;&amp;nbsp;A&lt;wbr /&gt;&amp;nbsp;M&lt;wbr /&gt;&amp;nbsp;E&lt;/li&gt;&lt;li&gt;#########################################&lt;/li&gt;&lt;li&gt;#########################################&lt;/li&gt;&lt;li&gt;&quot;))&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*root-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;C-b&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;sfnext&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*root-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;b&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;sfnext&quot;)&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;;&lt;wbr /&gt;&amp;nbsp;カーソルキーでフォーカス切り替え&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;M-Left&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;move-focus&lt;wbr /&gt;&amp;nbsp;left&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;M-Right&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;move-focus&lt;wbr /&gt;&amp;nbsp;right&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;M-Up&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;move-focus&lt;wbr /&gt;&amp;nbsp;up&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;M-Down&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;move-focus&lt;wbr /&gt;&amp;nbsp;down&quot;)&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;;&lt;wbr /&gt;&amp;nbsp;vim風のキーバインドでフォーカス切り替え&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;C-M-h&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;move-focus&lt;wbr /&gt;&amp;nbsp;left&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;C-M-l&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;move-focus&lt;wbr /&gt;&amp;nbsp;right&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;C-M-k&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;move-focus&lt;wbr /&gt;&amp;nbsp;up&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;C-M-j&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;move-focus&lt;wbr /&gt;&amp;nbsp;down&quot;)&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;;&lt;wbr /&gt;&amp;nbsp;FPS風(?)のキーバインドでフォーカス切り替え(左手だけで変更可能にするため）&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;C-M-a&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;move-focus&lt;wbr /&gt;&amp;nbsp;left&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;C-M-d&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;move-focus&lt;wbr /&gt;&amp;nbsp;right&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;C-M-w&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;move-focus&lt;wbr /&gt;&amp;nbsp;up&quot;)&lt;/li&gt;&lt;li&gt;(define-key&lt;wbr /&gt;&amp;nbsp;*top-map*&lt;wbr /&gt;&amp;nbsp;(kbd&lt;wbr /&gt;&amp;nbsp;&quot;C-M-s&quot;)&lt;wbr /&gt;&amp;nbsp;&quot;move-focus&lt;wbr /&gt;&amp;nbsp;down&quot;)&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;/ol&gt;そこそこ長くなった割にあまり詳しいことしてないですが、参考までに。&lt;br /&gt;
&lt;br /&gt;
上記で、*top-map*は地味に便利です。&lt;br /&gt;
ツーストロークは指がもつれたりするので、連続でタイプする場合はシングルの方が便利です。&lt;br /&gt;
&lt;br /&gt;
３・xmodmapなどのおまけ&lt;br /&gt;
脱線ですが、大抵の日本語キーボードは&lt;br /&gt;
|無変換|カナ|Alt|&lt;br /&gt;
みたいな配列になっていると思います。&lt;br /&gt;
自分の場合はカナは使わないので、Altにしています。&lt;br /&gt;
&lt;br /&gt;
&lt;ol class=&quot;boxcode-main no-number&quot;&gt;&lt;li&gt;clear&lt;wbr /&gt;&amp;nbsp;Mod1&lt;/li&gt;&lt;li&gt;keycode&lt;wbr /&gt;&amp;nbsp;101&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;Alt_R&lt;wbr /&gt;&amp;nbsp;Meta_R&lt;/li&gt;&lt;li&gt;add&lt;wbr /&gt;&amp;nbsp;Mod1&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;Alt_L&lt;wbr /&gt;&amp;nbsp;Alt_R&lt;/li&gt;&lt;/ol&gt;xmodmapの設定はこんな感じです。&lt;br /&gt;
&lt;br /&gt;
ratpoisonの時は keycode の設定だけで動いていましたが、stumpwmにしてから動かなくなったのでModの設定を追加しました。（環境依存かもしれません）&lt;br /&gt;
&lt;br /&gt;
余談ですが、半角全角をエスケープにしておくと便利です。&lt;br /&gt;
(IMを有効にするのはソフト側で Ctrl-無変換にしています)&lt;br /&gt;
&lt;ol class=&quot;boxcode-main no-number&quot;&gt;&lt;li&gt;keycode&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;49&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;Escape&lt;wbr /&gt;&amp;nbsp;Kanji&lt;wbr /&gt;&amp;nbsp;Kanji&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;
カスタマイズと言えば、vimperatorについても、~/.vimperatorrc を&lt;br /&gt;
&lt;br /&gt;
&lt;ol class=&quot;boxcode-main no-number&quot;&gt;&lt;li&gt;&quot;2.3.1&lt;wbr /&gt;&amp;nbsp;(created:&lt;wbr /&gt;&amp;nbsp;2010/04/07&lt;wbr /&gt;&amp;nbsp;18:56:53)&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;set&lt;wbr /&gt;&amp;nbsp;runtimepath=/home/yuji/.vimperator&lt;/li&gt;&lt;li&gt;source!&lt;wbr /&gt;&amp;nbsp;/home/yuji/.vimperatorrc.local&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;&quot;&lt;wbr /&gt;&amp;nbsp;vim:&lt;wbr /&gt;&amp;nbsp;set&lt;wbr /&gt;&amp;nbsp;ft=vimperator:&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;map&lt;wbr /&gt;&amp;nbsp;A&lt;wbr /&gt;&amp;nbsp;H&lt;/li&gt;&lt;li&gt;map&lt;wbr /&gt;&amp;nbsp;S&lt;wbr /&gt;&amp;nbsp;j&lt;/li&gt;&lt;li&gt;map&lt;wbr /&gt;&amp;nbsp;D&lt;wbr /&gt;&amp;nbsp;L&lt;/li&gt;&lt;li&gt;map&lt;wbr /&gt;&amp;nbsp;W&lt;wbr /&gt;&amp;nbsp;k&lt;/li&gt;&lt;li&gt;map&lt;wbr /&gt;&amp;nbsp;Q&lt;wbr /&gt;&amp;nbsp;&lt;C-p&gt;&lt;/li&gt;&lt;li&gt;map&lt;wbr /&gt;&amp;nbsp;E&lt;wbr /&gt;&amp;nbsp;&lt;C-n&gt;&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;
上記のようにし、FPSっぽいキーバインドで操作可能にしてます。&lt;br /&gt;
&lt;br /&gt;
ウィンドウ切り替えからブラウザまで、できるだけ左手で完結出きるようにしておくと、案外便利なのでおすすめです。 </description>
						<guid>http://blog.asial.co.jp/727</guid>
			<pubDate>Mon, 26 Jul 2010 18:25:03 +0900</pubDate>
			<category>Tech</category>
		</item>
				<item>
			<title>PHP5.3.3 リリース</title>
						<link>http://www.phppro.jp/news/757/rss</link>
						<description>&lt;a href=&quot;http://www.php.net&quot;&gt;www.php.net&lt;/a&gt;より、PHP5.3系のマイナーバージョンアップPHP5.3.3がリリースされています。
今回のリリースでは、後方非互換な変更とセキュリティ関連の問題を含む修正変更が行われており安定性が向上しています。</description>
						<guid>http://www.phppro.jp/news/757</guid>
			<pubDate>Fri, 23 Jul 2010 10:54:24 +0900</pubDate>
			<category></category>
		</item>
				<item>
			<title>日本語表示をちゃんとしたOpenFlashChart2のファイルサイズを小さくする方法</title>
						<link>http://blog.asial.co.jp/726</link>
						<description> 前回の「OpenFlashChart2で日本語をちゃんと表示するためのパッチ」を適用するとフォントを埋め込むためファイルサイズが大きくなってしまいます。そこで、それを少しでも解決するために埋め込む文字の範囲を指定してファイルサイズを小さくする方法を試してみます。 </description>
						<guid>http://blog.asial.co.jp/726</guid>
			<pubDate>Thu, 22 Jul 2010 19:28:40 +0900</pubDate>
			<category>-</category>
		</item>
				<item>
			<title>日本語表示をちゃんとしたOpenFlashChart2のファイルサイズを小さくする方法</title>
						<link>http://blog.asial.co.jp/726</link>
						<description> こんにちは、熊谷です。&lt;br /&gt;
&lt;br /&gt;
前回&lt;a href=&quot;http://blog.asial.co.jp/711&quot;&gt;OpenFlashChart2で日本語をちゃんと表示するためのパッチ&lt;/a&gt;について書きました。&lt;br /&gt;
&lt;br /&gt;
その時にも触れましたがフォントの文字を全て埋め込むためファイルサイズがそれなりに大きくなるという欠点があります。これをどうにか解決する方法として、すぐ思いつくのは埋め込む文字を限定するという方法です。&lt;br /&gt;
&lt;br /&gt;
埋め込む文字はこれとこれと決まっているのであれば、その文字のUNICODE値を調べてunicodeRangeプロパティで指定すればそれで完了です。しかし、グラフのラベルの文字列が必ずしも固定されているわけではなく、例えばユーザがラベルを選びその結果で動的に変わるという場合は、そうはいきません。&lt;br /&gt;
&lt;br /&gt;
そこで、埋め込む文字をひらがなと第一水準漢字だけに、もしくは日本語全てというぐらいに範囲を指定して埋め込むことにより、ある程度ファイルサイズを小さくすることが可能になります。&lt;br /&gt;
&lt;br /&gt;
ということで、早速やってみましょう。&lt;br /&gt;
&lt;br /&gt;
Flex SDKの中にflash-unicode-table.xmlというXMLファイルがあります。&lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1197&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1197&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
この中に2バイト文字のそれぞれの文字範囲があらかじめ定義されてあるので、そこから該当する範囲の値をコピーします。&lt;br /&gt;
ひらがなと第一水準漢字の漢字だけを埋め込みたい場合は、Japanese KanaとJapanese Kanji - Level 1のrange部分を&lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1198&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1198&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
面倒なので、日本語全てを埋め込みたい場合はJapanese（All)のrange部分を&lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1199&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1199&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
使用します。&lt;br /&gt;
&lt;br /&gt;
&lt;ol class=&quot;boxcode-main no-number&quot;&gt;&lt;li&gt;---&lt;wbr /&gt;&amp;nbsp;XAxisLabels.as.orig&lt;wbr /&gt;&amp;nbsp;2010-06-28&lt;wbr /&gt;&amp;nbsp;17:45:47.000000000&lt;wbr /&gt;&amp;nbsp;+0900&lt;/li&gt;&lt;li&gt;+++&lt;wbr /&gt;&amp;nbsp;XAxisLabels.as&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;2010-07-22&lt;wbr /&gt;&amp;nbsp;19:10:57.000000000&lt;wbr /&gt;&amp;nbsp;+0900&lt;/li&gt;&lt;li&gt;@@&lt;wbr /&gt;&amp;nbsp;-2,6&lt;wbr /&gt;&amp;nbsp;+2,7&lt;wbr /&gt;&amp;nbsp;@@&lt;/li&gt;&lt;li&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;import&lt;wbr /&gt;&amp;nbsp;flash.display.Sprite;&lt;/li&gt;&lt;li&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;import&lt;wbr /&gt;&amp;nbsp;flash.text.TextField;&lt;/li&gt;&lt;li&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;import&lt;wbr /&gt;&amp;nbsp;flash.text.TextFormat;&lt;/li&gt;&lt;li&gt;+&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;import&lt;wbr /&gt;&amp;nbsp;flash.text.Font;&lt;/li&gt;&lt;li&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;import&lt;wbr /&gt;&amp;nbsp;flash.display.DisplayObject;&lt;/li&gt;&lt;li&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;import&lt;wbr /&gt;&amp;nbsp;flash.geom.Rectangle;&lt;/li&gt;&lt;li&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;import&lt;wbr /&gt;&amp;nbsp;elements.axis.AxisLabel;&lt;/li&gt;&lt;li&gt;@@&lt;wbr /&gt;&amp;nbsp;-22,9&lt;wbr /&gt;&amp;nbsp;+23,14&lt;wbr /&gt;&amp;nbsp;@@&lt;/li&gt;&lt;li&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;//&lt;wbr /&gt;&amp;nbsp;Ugh,&lt;wbr /&gt;&amp;nbsp;ugly&lt;wbr /&gt;&amp;nbsp;code&lt;wbr /&gt;&amp;nbsp;so&lt;wbr /&gt;&amp;nbsp;we&lt;wbr /&gt;&amp;nbsp;can&lt;wbr /&gt;&amp;nbsp;rotate&lt;wbr /&gt;&amp;nbsp;the&lt;wbr /&gt;&amp;nbsp;text:&lt;/li&gt;&lt;li&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;//&lt;/li&gt;&lt;li&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;//&lt;wbr /&gt;&amp;nbsp;[Embed(systemFont=&#039;Arial&#039;,&lt;wbr /&gt;&amp;nbsp;fontName=&#039;spArial&#039;,&lt;wbr /&gt;&amp;nbsp;mimeType=&#039;application/x-font&#039;,&lt;wbr /&gt;&amp;nbsp;unicodeRange=&#039;U+0020-U+007E&#039;)]&lt;/li&gt;&lt;li&gt;-&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;[Embed(systemFont&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;&#039;Arial&#039;,&lt;wbr /&gt;&amp;nbsp;fontName&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;&#039;spArial&#039;,&lt;wbr /&gt;&amp;nbsp;mimeType&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;&#039;application/x-font&#039;)]&lt;/li&gt;&lt;li&gt;-&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;-&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;public&lt;wbr /&gt;&amp;nbsp;static&lt;wbr /&gt;&amp;nbsp;var&lt;wbr /&gt;&amp;nbsp;ArialFont__:Class;&lt;/li&gt;&lt;li&gt;+&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;[Embed(source=&#039;../../ipagui.ttf&#039;,&lt;/li&gt;&lt;li&gt;+&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;fontName&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;&#039;ipagui&#039;,&lt;/li&gt;&lt;li&gt;+&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;mimeType&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;&#039;application/x-font&#039;,&lt;/li&gt;&lt;li&gt;+&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;unicodeRange&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;&#039;ここに埋め込みたい文字のUNICODE値を&#039;&lt;/li&gt;&lt;li&gt;+&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;)]&lt;/li&gt;&lt;li&gt;+&lt;/li&gt;&lt;li&gt;+&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;public&lt;wbr /&gt;&amp;nbsp;static&lt;wbr /&gt;&amp;nbsp;var&lt;wbr /&gt;&amp;nbsp;ipagui:Class;&lt;/li&gt;&lt;li&gt;+&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;Font.registerFont(ipagui);&lt;/li&gt;&lt;li&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;function&lt;wbr /&gt;&amp;nbsp;XAxisLabels(&lt;wbr /&gt;&amp;nbsp;json:Object&lt;wbr /&gt;&amp;nbsp;)&lt;wbr /&gt;&amp;nbsp;{&lt;/li&gt;&lt;li&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;@@&lt;wbr /&gt;&amp;nbsp;-223,7&lt;wbr /&gt;&amp;nbsp;+229,7&lt;wbr /&gt;&amp;nbsp;@@&lt;/li&gt;&lt;li&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;if(&lt;wbr /&gt;&amp;nbsp;label_style.rotate&lt;wbr /&gt;&amp;nbsp;!=&lt;wbr /&gt;&amp;nbsp;0&lt;wbr /&gt;&amp;nbsp;)&lt;/li&gt;&lt;li&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;{&lt;/li&gt;&lt;li&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;//&lt;wbr /&gt;&amp;nbsp;so&lt;wbr /&gt;&amp;nbsp;we&lt;wbr /&gt;&amp;nbsp;can&lt;wbr /&gt;&amp;nbsp;rotate&lt;wbr /&gt;&amp;nbsp;the&lt;wbr /&gt;&amp;nbsp;text&lt;/li&gt;&lt;li&gt;-&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;fmt.font&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;&quot;spArial&quot;;&lt;/li&gt;&lt;li&gt;+&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;fmt.font&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;&quot;ipagui&quot;;&lt;/li&gt;&lt;li&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;title.embedFonts&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;true;&lt;/li&gt;&lt;li&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;}&lt;/li&gt;&lt;li&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;else&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;
こんな感じでunicodeRangeプロパティを使用して埋め込む文字を指定します。これでコンパイルするとその埋め込む文字の範囲にもよりますがそれなりに小さくなります。&lt;br /&gt;
&lt;br /&gt;
ちなみに、全て埋め込んだ場合は3MBぐらいだったswfファイルは、ひらがなと第一水準漢字に限定した場合は850KBぐらいになり、日本語全てにした場合は2MBぐらいになりました。&lt;br /&gt;
&lt;br /&gt;
もちろん、ラベルの文字はこれとこれとこれだけと決まっているのであれば、その文字のUNICODE値だけにすればさらにファイルサイズは小さくなります。&lt;br /&gt;
&lt;br /&gt;
ファイルサイズに悩んでいる方がいましたら試してみてください。 </description>
						<guid>http://blog.asial.co.jp/726</guid>
			<pubDate>Thu, 22 Jul 2010 19:28:40 +0900</pubDate>
			<category>Tech</category>
		</item>
				<item>
			<title>PHPプロ！Weekly PECL リリース @ 10/07/22号</title>
						<link>http://www.phppro.jp/news/756/rss</link>
						<description>PHPプロ！Weekly PECLリリースでは、前週からの１週間にリリースされたPECLパッケージを、毎週まとめてご紹介します。
本記事では、07月15日から07月22日までの間にリリースされたパッケージ一覧を掲載しています。</description>
						<guid>http://www.phppro.jp/news/756</guid>
			<pubDate>Thu, 22 Jul 2010 10:41:37 +0900</pubDate>
			<category></category>
		</item>
				<item>
			<title>PHPカンファレンス2010　2010年9月24日、9月25日に開催</title>
						<link>http://blog.asial.co.jp/725</link>
						<description> 暑い夏を迎え、最近夏バテになりそうな小林です。&lt;br /&gt;
&lt;br /&gt;
地球温暖化の影響なのか、今年の夏は耐え難い暑さですね。。。外を歩いているだけで、汗びっしょりになってしまいます。&lt;br /&gt;
&lt;br /&gt;
さて、そんな暑い夏の終わりを迎えた頃に、PHPプログラマのための年１回の祭典、「PHPカンファレンス2010」が開催されます。今年は、9月24日・25日の二日間での開催となります。まだ、申込フォームは開設されていませんが、もう少しで募集を開始する予定のようです。&lt;br /&gt;
&lt;br /&gt;
今年の目玉は、なんといっても海外からのスピーカーとして、PHPプロジェクトの創始者の一人、Rasmus Lerdorfを招き、講演を行っていただくことです！&lt;br /&gt;
&lt;br /&gt;
Rasmus Lerdorfは、PHPプログラミング言語の最初のバージョンであるPHP/FIの開発者の一人です。その後のPHPバージョンの開発にも携わり、その発展に大きく貢献した方です。&lt;br /&gt;
&lt;br /&gt;
他にも、さまざまなプログラムが組まれる予定ですので、是非、PHPユーザ会「PHP Conference Japan 2010」のページをウォッチしてください。&lt;br /&gt;
　PHP Conference Japan 2010 : &lt;a href=&quot;http://phpcon.php.gr.jp/2010/&quot;&gt;&lt;a href=&#039;http://phpcon.php.gr.jp/2010/&#039;&gt;http://phpcon.php.gr.jp/2010/&lt;/a&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
twitterによる、最新情報の配信も行っています。&lt;br /&gt;
　twitter @phpcon ： &lt;a href=&quot;http://twitter.com/phpcon&quot;&gt;&lt;a href=&#039;http://twitter.com/phpcon&#039;&gt;http://twitter.com/phpcon&lt;/a&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1196&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1196&quot; /&gt;&lt;/a&gt; </description>
						<guid>http://blog.asial.co.jp/725</guid>
			<pubDate>Wed, 21 Jul 2010 19:41:51 +0900</pubDate>
			<category>日常</category>
		</item>
				<item>
			<title>PHPプロ！Weekly PEAR リリース @ 10/07/20号</title>
						<link>http://www.phppro.jp/news/755/rss</link>
						<description>PHPプロ！Weekly PEARリリースでは、前週からの１週間にリリースされたPEARパッケージを、毎週まとめてご紹介します。
本記事では、07月14日から07月20日までの間にリリースされたパッケージ一覧を掲載しています。</description>
						<guid>http://www.phppro.jp/news/755</guid>
			<pubDate>Wed, 21 Jul 2010 10:16:04 +0900</pubDate>
			<category></category>
		</item>
				<item>
			<title>WEBデザイナーに必要な3つの基礎と持っていると役立つ5つの能力</title>
						<link>http://blog.asial.co.jp/724</link>
						<description> こんにちは。
アシアルWEBデザイナーの鴨田です。

最近はディレクターとしても頑張っていたりするのですが、
やはり根本はデザイナーなので、デザイナーが持ってると、
役に立つんじゃないかと個人的に思う能力について、語ってみようかと思います。 </description>
						<guid>http://blog.asial.co.jp/724</guid>
			<pubDate>Tue, 20 Jul 2010 15:14:20 +0900</pubDate>
			<category>-</category>
		</item>
				<item>
			<title>WEBデザイナーに必要な3つの基礎と持っていると役立つ5つの能力</title>
						<link>http://blog.asial.co.jp/724</link>
						<description> こんにちは。&lt;br /&gt;
アシアルWEBデザイナーの鴨田です。&lt;br /&gt;
&lt;br /&gt;
最近はディレクターとしても頑張っていたりするのですが、&lt;br /&gt;
やはり根本はデザイナーなので、デザイナーが持ってると、&lt;br /&gt;
役に立つんじゃないかと個人的に思う能力について、語ってみようかと思います。&lt;br /&gt;
&lt;br /&gt;
まずは基礎編として、&lt;br /&gt;
WEBデザイナーを目指す人が身につけておくべき必須能力についてです。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
１．Photoshop力&lt;br /&gt;
&lt;br /&gt;
何を差し置いても、これがないと始まりませんね。&lt;br /&gt;
とりあえず、教則本を読むって言うのは、&lt;br /&gt;
使い方を覚えるのにはいいんですが、多分操作だけ覚えてもつまらないので、&lt;br /&gt;
個人的には、自分で写真を撮って、それを加工しまくる、&lt;br /&gt;
というのがいいんじゃないかと思ったりします。&lt;br /&gt;
&lt;br /&gt;
まあ、Photoshopは元々フォトレタッチソフトなので、&lt;br /&gt;
その特性を生かすことで出来るデザインも出てくると思います。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1188&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1188&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;/read_file.php?id=1189&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1189&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
大学生くらいの時にこういうフィルターをつくって、&lt;br /&gt;
なんちゃってアートっぽく見せたりしてました。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
２．Illustrator力&lt;br /&gt;
&lt;br /&gt;
次はこれです。Photoshopと対をなすソフト。&lt;br /&gt;
はじめはベジエ曲線の扱いに戸惑うと思いますが、&lt;br /&gt;
そこはとりあえずいろんなものをトレースして、&lt;br /&gt;
なんとなく感覚を掴むといいと思います。&lt;br /&gt;
&lt;br /&gt;
その後、ロゴを作ってみたり、自分の名刺を作ったり、&lt;br /&gt;
フライヤーを作ったりしてみると、&lt;br /&gt;
一通りの機能が使えるようになると思います。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1190&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1190&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;/read_file.php?id=1191&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1191&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
ミュシャのコピーをする教則本があって、&lt;br /&gt;
自分はこれでIllstratorで何でも出来る実感と、&lt;br /&gt;
我慢強くコツコツやることを身につけました。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
３．HTML+CSSコーディング&lt;br /&gt;
&lt;br /&gt;
今は分業しているところもあるので、&lt;br /&gt;
必ずしも必要かと言われると、そうでもないのかも知れませんが、&lt;br /&gt;
これからHTML5+CSS3とかのことを考えると、&lt;br /&gt;
コーディングを知っていないとデザインもできないと思うので、&lt;br /&gt;
やっぱり必要不可欠なんじゃないかと思います。&lt;br /&gt;
&lt;br /&gt;
これはもうとりあえずタグ打ちでガツガツ書いていくことが、&lt;br /&gt;
何よりも早く覚えられるんじゃないかと思います。&lt;br /&gt;
zen codingとかのプラグインを導入すると、&lt;br /&gt;
さらに効率が上がります。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
さあ、ここからはすでにWEBデザイナーとして活躍してる人が、&lt;br /&gt;
次のステップに向かうのにあったら便利じゃないかと思う能力についてです。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
４．イラストが描ける&lt;br /&gt;
&lt;br /&gt;
WEBデザイナーというと、あまり業界に詳しくない人だと、&lt;br /&gt;
何かイラストとかも描けそうな気がするのですが、&lt;br /&gt;
きっとそうでない人のほうが多いのではないかと思います。&lt;br /&gt;
(もちろんイラストが書けるWEBデザイナーもいます)&lt;br /&gt;
&lt;br /&gt;
とはいえ、仕事柄イラストが描けると、&lt;br /&gt;
わざわざイラストを外注しなくてもよくなるし、&lt;br /&gt;
素材が欲しい時に自分で描いてしまえば、&lt;br /&gt;
テイストはぴったりだし、探す時間も省けて、いいことだらけです。&lt;br /&gt;
&lt;br /&gt;
かくいう自分は描けない人なので、&lt;br /&gt;
度々イラストを自分で描けるようになりたいと思ってしまいます。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1192&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1192&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
自分でどうにかなるのはこんなレベルですね。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
５．3DCGを使える&lt;br /&gt;
&lt;br /&gt;
昨今、凝ったアイコンやメインビジュアル、&lt;br /&gt;
テクスチャなんかを作ることが多かったりするのですが、&lt;br /&gt;
そんなときに3DCGソフトを使えたら、&lt;br /&gt;
ちょっと一目引くモノが作れる気がします。&lt;br /&gt;
&lt;br /&gt;
自分はかつて少しだけ3DCGをかじっていたので、&lt;br /&gt;
作ろうと思えば作れるのですが、&lt;br /&gt;
いかんせん会社にソフトがないので、&lt;br /&gt;
なかなか業務でそれを発揮することが出来ないのですが、&lt;br /&gt;
ここぞというときには、フリーのソフトででも、&lt;br /&gt;
何か作ってみたいとは思います。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1193&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1193&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
すごそうに見えるけど、3ヶ月くらいでこのくらいのことが出来るようになります。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1195&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1195&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
3DCGでロゴの元を作って、Illstraotrでベクター化というのもあります。&lt;br /&gt;
左はピクセルデータ、真ん中がベクターデーター、右はアウトライン。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
６．映像編集が出来る&lt;br /&gt;
&lt;br /&gt;
直接、WEBデザインに関係するようなことはありませんが、&lt;br /&gt;
ダイナミックなデザインみたいなものを知っていると、&lt;br /&gt;
スタティックなデザインに対して、動きを感じさせられるようになったり、&lt;br /&gt;
ストーリー性をもたせるのに、一役買ってくれることがある気がします。&lt;br /&gt;
&lt;br /&gt;
と、これもまた昔少しだけ映像をかじっていたので、&lt;br /&gt;
なんとなくですが、そんな風に思います。&lt;br /&gt;
一ついえるのは、WEBは一人でも大抵のことが出来ますが、&lt;br /&gt;
映像は一人で出来ることはそこまで多くはないので、&lt;br /&gt;
チームワークみたいなものはとても身につくと思います。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
７．コードが書ける&lt;br /&gt;
&lt;br /&gt;
デザイン専業の人にはあまり役立たないかも知れませんが、&lt;br /&gt;
コーダーも兼任の人だと、やはりちょっとしたJavascriptとかが、&lt;br /&gt;
書けるか書けないかで大きく仕事のやり方も変わってくるのではないかと思います。&lt;br /&gt;
&lt;br /&gt;
最近はjQueryなども流行ってますし、&lt;br /&gt;
プラグインやライブラリもたくさんあるので、&lt;br /&gt;
少し勉強すれば、それなりにインタラクティブなものができて、&lt;br /&gt;
そういうことまで考えたデザインが出来るようになると思います。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
８．RIAを作れる&lt;br /&gt;
&lt;br /&gt;
HTML5がFlashを駆逐するかというと、&lt;br /&gt;
やっぱりまだまだそうはいかないと思いますし、&lt;br /&gt;
Silverlightなんかも、状況次第ではない話ではありませんし、&lt;br /&gt;
とにかく何か一つできると強いと思います。&lt;br /&gt;
&lt;br /&gt;
でも、一からチクチク作るのがどうしてもできなくて、&lt;br /&gt;
なんとなく敬遠してしまってる人もいると思います。&lt;br /&gt;
Flash限定ではありますが、&lt;a href=&quot;http://www.swishzone.jp/&quot;&gt;Swish&lt;/a&gt;とかから入ると、&lt;br /&gt;
易しい割に、意外といろんなことが出来るので、&lt;br /&gt;
Swishでも出来ることは、Swishを使った方が効率よく、&lt;br /&gt;
結構いいものが出来たりもします。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
とまあ、こんなところでしょうか。&lt;br /&gt;
WEBデザイナーはなんでもできてなんぼ、みたいなところもあるので、&lt;br /&gt;
色々出来るとつぶしが利いていいのではないかと思いますが、&lt;br /&gt;
デザイン一本でやっていけるに越したことはないので、&lt;br /&gt;
どれか一つを極めるのが最良だと思います。&lt;br /&gt;
&lt;br /&gt;
それはすでにWEBデザイナーじゃない気がしますが、&lt;br /&gt;
その時は堂々とコーダーですとか、エンジニアですとか、Flasherですとか、&lt;br /&gt;
名乗ってしまえばいいのではないかと思います。 </description>
						<guid>http://blog.asial.co.jp/724</guid>
			<pubDate>Tue, 20 Jul 2010 15:14:20 +0900</pubDate>
			<category>Tech</category>
		</item>
				<item>
			<title>GoogleChromeのExtension作成　タブの削除時に直前のタブに戻る拡張を作ってみる</title>
						<link>http://blog.asial.co.jp/722</link>
						<description> こんばんは。松田です。
今日はGoogleChromeのExtensionを作ってみたいと思います。
実装するExtensionの内容はとっても簡単。「タブを閉じたときに直前に開いていたタブに戻る」Extensionです。 </description>
						<guid>http://blog.asial.co.jp/722</guid>
			<pubDate>Fri, 16 Jul 2010 05:07:31 +0900</pubDate>
			<category>-</category>
		</item>
				<item>
			<title>GoogleChromeのExtension作成　タブの削除時に直前のタブに戻る拡張を作ってみる</title>
						<link>http://blog.asial.co.jp/722</link>
						<description> こんばんは。松田です。&lt;br /&gt;
今日はGoogleChromeのExtensionを作ってみたいと思います。&lt;br /&gt;
実装するExtensionの内容はとっても簡単。「タブを閉じたときに直前に開いていたタブに戻る」Extensionです。&lt;br /&gt;
&lt;br /&gt;
みなさんGoogleChrome使ってますか？&lt;br /&gt;
Extension入れまくってますか？&lt;br /&gt;
自分はChromeにExtensionを入れられるようになってから完全にChromeの虜となっています。&lt;br /&gt;
&lt;br /&gt;
そんな中、最近気に入っている拡張がこれです。&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Right Click Opens Link in New Foreground Tab&lt;/strong&gt;&lt;br /&gt;
&lt;a href=&#039;https://chrome.google.com/extensions/detail/afalkcagoidkdjdlfoaicbanbfgoamoo?hl=ja&#039;&gt;https://chrome.google.com/extensions/detail/afalkcagoidkdjdlfoaicbanbfgoamoo?hl=ja&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
リンクを右クリックしたら新しいタブでリンク先を開いてくれる、ただそんだけのExtensionです。&lt;br /&gt;
とてもシンプルなものですが、自タブに表示されている内容を消したくないときや、画像を別枠で見たいときなどに重宝してます。&lt;br /&gt;
要するに画像がいっぱいあるようなサイトで画像をポンポン別タブで開くときにすごい便利なんです。&lt;br /&gt;
&lt;br /&gt;
しかし、このExtensionを使っていて気になってくるのが、新しく開いたタブを消した時の遷移先です。&lt;br /&gt;
別タブで開いて見たいリンク先は、大抵そんなに重要でない内容のものが多いので、開いて消して開いて消してを繰り返すことになります。&lt;br /&gt;
自分としてはリンクを別タブで開いて消して開いて消して・・・を繰り返したいのですが、Chromeは消したタブの右のタブにフォーカスを当ててしまうため、思ったような快適な操作ができません。&lt;br /&gt;
&lt;br /&gt;
というわけで、前置きが長くなりましたが、そんな理由から「タブを閉じたときに直前に開いていたタブに戻る」動作をするExtensionを作ってみることにしました。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Extensionのつくりかた基礎&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
まず最初に見たサイトはここ。&lt;br /&gt;
&lt;a href=&#039;http://code.google.com/chrome/extensions/getstarted.html&#039;&gt;http://code.google.com/chrome/extensions/getstarted.html&lt;/a&gt;&lt;br /&gt;
英語ですがExtensionの作り方の基礎がシンプルで分かりやすく解説されています。&lt;br /&gt;
このページの内容を追っていくだけで5分もかからずにExtensionが作れてしまいます。&lt;br /&gt;
まずはこのページの内容をさらーっと追って作ってみるとよいかと思います。&lt;br /&gt;
&lt;br /&gt;
次に見たのがここ。&lt;br /&gt;
&lt;a href=&#039;http://dev.screw-axis.com/doc/chrome_extensions/&#039;&gt;http://dev.screw-axis.com/doc/chrome_extensions/&lt;/a&gt;&lt;br /&gt;
そうは言ってもやっぱ日本語で見たいよねー。ということで読みあさりました。&lt;br /&gt;
上の本家リファレンスの日本語訳が載っています。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;実際につくってみる&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
1. まずExtensionを開発するディレクトリを用意します。&lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1179&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1179&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
2. その中にmanifest.jsonファイルを作成します。&lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1180&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1180&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
このmanifest.jsonファイルがExtensionの設定ファイルとなります。&lt;br /&gt;
作成するExtensionの名称や基本動作をここで設定します。&lt;br /&gt;
&lt;br /&gt;
manifest.json&lt;br /&gt;
&lt;ol class=&quot;js-main&quot;&gt;&lt;li&gt;&lt;span class=&quot;js-brackets&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;js-string&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;:&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;js-string&quot;&gt;BackToTheLastTab&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;js-string&quot;&gt;version&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;:&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;js-string&quot;&gt;1.0&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;js-string&quot;&gt;description&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;:&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;js-string&quot;&gt;Go&lt;wbr /&gt;&amp;nbsp;back&lt;wbr /&gt;&amp;nbsp;to&lt;wbr /&gt;&amp;nbsp;the&lt;wbr /&gt;&amp;nbsp;last&lt;wbr /&gt;&amp;nbsp;tab&lt;wbr /&gt;&amp;nbsp;when&lt;wbr /&gt;&amp;nbsp;you&lt;wbr /&gt;&amp;nbsp;close&lt;wbr /&gt;&amp;nbsp;a&lt;wbr /&gt;&amp;nbsp;tab.&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;js-string&quot;&gt;background_page&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;:&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;js-string&quot;&gt;background.html&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;js-string&quot;&gt;permissions&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;:&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-brackets&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;js-string&quot;&gt;tabs&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-brackets&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;js-brackets&quot;&gt;}&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;
Extensionの実際の処理を行うのが、ここで&quot;background_page&quot;に設定した &quot;background.html&quot; になります。&lt;br /&gt;
このHTMLに記述したJavaScriptの処理がExtensionの実行結果となります。&lt;br /&gt;
&lt;br /&gt;
&quot;background_page&quot;はバックグラウンドで処理を行わせるための項目ですが、この他にもExtensionの処理を行わせる方法はいくつか存在します。&lt;br /&gt;
その中でもよく使われそうなものをいくつかピックアップします。&lt;br /&gt;
&lt;br /&gt;
&lt;ol class=&quot;js-main&quot;&gt;&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;■&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;browser_action&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;上部メニューにアイコンが追加される、最も基礎的な&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;Extension&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;。&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;アイコンをクリックしたときに&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;Extension&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;が実行される。&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;すべてのページで共通して使えるような機能を実装する。&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;■&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;page_action&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;アドレスバーの右にアイコンが表示される形式の&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;Extension&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;特定のページにだけ有効な機能を実装するのに使われる。&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;RSS&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;取得ボタン等々。。&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;■&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;options_page&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;Extension&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;の設定を変更するオプションページの&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;HTML&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;を指定する。&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;HTML&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;と&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;JavaScript&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;で記述。&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;■&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;chrome_url_overrides&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;Chrome&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;の特定のページを上書きする。&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;新規タブを開いたときや、履歴ページを開いたときに、独自のページを表示させることができる。&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;Feedly&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;とかが使ってるのがこれ。&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;■&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;background_page&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;Extension&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;が起動した瞬間からずーっと実行されているページ。&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;HTML&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;で記述されてるけど実際は表示されない。&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;ここに&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;JavaScript&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;でコードを仕込んでおいて、必要なときに実行させたりする。&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;とりあえず何かしたかったらここに&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;JavaScript&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;仕込めばいいと見た。&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;
今回作成するExtensionでは表示する画面は必要なく、裏側で起動されていればいいだけなので、&quot;browser_action&quot; も &quot;page_action&quot; も記述していません。&lt;br /&gt;
また、タブの操作を行わせるため、permissionsにtabsを渡しています。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. 同じディレクトリ内に、background.htmlをおきます。&lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1181&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1181&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
background.html&lt;br /&gt;
&lt;ol class=&quot;js-main&quot;&gt;&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;html&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;background&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;js-string&quot;&gt;title&amp;gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;script&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;js-string&quot;&gt;text/javascript&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;js-reserved&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;selectedId1&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;-&lt;/span&gt;&lt;span class=&quot;js-number&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot;&gt;//&lt;wbr /&gt;&amp;nbsp;直前に開いたタブのID&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;js-reserved&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;selectedId2&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;-&lt;/span&gt;&lt;span class=&quot;js-number&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot;&gt;//&lt;wbr /&gt;&amp;nbsp;↑のひとつ前に開いていたタブのID&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;js-comment&quot;&gt;/**&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-comment&quot;&gt;&lt;wbr /&gt;&amp;nbsp;*&lt;wbr /&gt;&amp;nbsp;タブが切り替えられたときの処理&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-comment&quot;&gt;&lt;wbr /&gt;&amp;nbsp;*/&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;chrome&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;tabs&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;onSelectionChanged&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;addListener&lt;/span&gt;&lt;span class=&quot;js-brackets&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-reserved&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;js-brackets&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;tabId&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;,&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;selectInfo&lt;/span&gt;&lt;span class=&quot;js-brackets&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-brackets&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot;&gt;//&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;alert(tabId&lt;wbr /&gt;&amp;nbsp;+&lt;wbr /&gt;&amp;nbsp;&#039;:&#039;&lt;wbr /&gt;&amp;nbsp;+&lt;wbr /&gt;&amp;nbsp;selectInfo);&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;selectedId2&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;selectedId1&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;selectedId1&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;tabId&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;js-brackets&quot;&gt;})&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;js-comment&quot;&gt;/**&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-comment&quot;&gt;&lt;wbr /&gt;&amp;nbsp;*&lt;wbr /&gt;&amp;nbsp;タブが閉じられたときの処理&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-comment&quot;&gt;&lt;wbr /&gt;&amp;nbsp;*/&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;chrome&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;tabs&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;onRemoved&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;addListener&lt;/span&gt;&lt;span class=&quot;js-brackets&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-reserved&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;js-brackets&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;,&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;removedInfo&lt;/span&gt;&lt;span class=&quot;js-brackets&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-brackets&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot;&gt;//&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;alert(id&lt;wbr /&gt;&amp;nbsp;+&lt;wbr /&gt;&amp;nbsp;&#039;:&#039;&lt;wbr /&gt;&amp;nbsp;+&lt;wbr /&gt;&amp;nbsp;removedInfo);&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot;&gt;//&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;alert(&#039;selected2&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;&#039;&lt;wbr /&gt;&amp;nbsp;+&lt;wbr /&gt;&amp;nbsp;selectedId2);&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-reserved&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-brackets&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;selectedId2&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&amp;gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;js-brackets&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-brackets&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;chrome&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;tabs&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;update&lt;/span&gt;&lt;span class=&quot;js-brackets&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;selectedId2&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;,&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-brackets&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;selected&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;js-reserved&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;js-brackets&quot;&gt;})&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-brackets&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;js-brackets&quot;&gt;})&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;js-string&quot;&gt;script&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-string&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-string&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;js-identifier&quot;&gt;body&lt;/span&gt;&lt;span class=&quot;js-code&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;js-code&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;js-quotes&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;js-string&quot;&gt;html&amp;gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;このExtensionの本体になるのがこのファイルのScript部分です。&lt;br /&gt;
やりたいことが簡単なのでスクリプトもえらくシンプルです。&lt;br /&gt;
&lt;br /&gt;
タブが切り替えられたときに、今まで開いていたタブのIDを記憶しておく処理と、タブが閉じられたときに、記憶していたタブにフォーカスを当てる処理を書いています。&lt;br /&gt;
デバッグ方法がよくわかんなかったので、いたるところにalert()を仕込んで実行しまくりました。&lt;br /&gt;
script開始部分にalert(&#039;hoge&#039;);を仕込み、Extension実行時に &#039;hoge&#039; が表示されなければJSがどこか間違ってます。&lt;br /&gt;
多分もっとかっこいい開発方法があるはずです。&lt;br /&gt;
&lt;br /&gt;
タブの操作なので、下のURLを読んで片っ端から実行してみました。&lt;br /&gt;
&lt;a href=&#039;http://dev.screw-axis.com/doc/chrome_extensions/ref/api/tabs/&#039;&gt;http://dev.screw-axis.com/doc/chrome_extensions/ref/api/tabs/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
これでExtensionは完成です。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;GoogleChromeにExtensionをインストール&lt;/strong&gt;&lt;br /&gt;
次に、作ったExtensionをChromeにインストールしてみます。&lt;br /&gt;
&lt;br /&gt;
1. まずはChrome右上の設定ボタンから、「拡張機能」画面を開きます。&lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1182&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1182&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
2. 次に「デベロッパーモード」をクリック。&lt;br /&gt;
ボタンが3つ現れるので、「パッケージ化されていない拡張機能を読み込みます」ボタンをクリックします。&lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1183&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1183&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
3. フォルダ選択のウィンドウが出るので、作成したExtensionのフォルダを選択。&lt;br /&gt;
すると他のExtensionと同様に作成したExtensionが読み込まれます。&lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1184&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1184&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
これでインストール完了です。&lt;br /&gt;
作成したExtensionが一覧に表示され、実行されます。&lt;br /&gt;
もし納得した動きになっていなかったら、スクリプトを修正して「再読み込み」を繰り返します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;作ったExtensionを公開する&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
作ったついでに以下のページを参考に公開してみました。&lt;br /&gt;
&lt;a href=&#039;http://blog.smartnetwork.co.jp/staff/node/44&#039;&gt;http://blog.smartnetwork.co.jp/staff/node/44&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
BackToTheLastTab &lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1185&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1185&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&#039;https://chrome.google.com/extensions/detail/gmnobciacgaahhngegnpblmomljmbcmd/publish-accepted&#039;&gt;https://chrome.google.com/extensions/detail/gmnobciacgaahhngegnpblmomljmbcmd/publish-accepted&lt;/a&gt;&lt;br /&gt;
ちゃちゃーっとファイルを圧縮してアップしただけでほんとに公開されちゃってます。&lt;br /&gt;
簡単すぎてびびります。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
最初のサンプルの実行に5分。このExtensionの実装に1時間ほど。&lt;br /&gt;
Extension開発というネーミングから取っ付きづらいものかとイメージしてたのですが、驚くほどあっさりと作れました。&lt;br /&gt;
快適なChrome生活を送るために、ぜひ皆さんもステキなExtensionを作ってみてください。 </description>
						<guid>http://blog.asial.co.jp/722</guid>
			<pubDate>Fri, 16 Jul 2010 05:07:31 +0900</pubDate>
			<category>Tech</category>
		</item>
				<item>
			<title>PHPでのCSV出力について</title>
						<link>http://blog.asial.co.jp/721</link>
						<description> こんにちは、中川です。&lt;br /&gt;
&lt;br /&gt;
今日は、PHPでのCSV出力について書いてみようと思います。&lt;br /&gt;
&lt;br /&gt;
CSV出力といえば、カンマ区切りの１行ずつのデータで出力すれば・・・と、簡単なイメージもありますが、実はいろいろと細かい対策が必要な処理のひとつです。&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;■データ内の改行&lt;/strong&gt;&lt;br /&gt;
データ内に改行文字がある場合、そのデータは「&quot;」(ダブルクォーテーション)で囲う。&lt;br /&gt;
&lt;br /&gt;
(例)&lt;br /&gt;
&lt;ol class=&quot;boxcode-main no-number&quot;&gt;&lt;li&gt;1,&quot;TEST&lt;/li&gt;&lt;li&gt;TEST&quot;,HOGE&lt;/li&gt;&lt;li&gt;2,TEST,HOGE&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;
&lt;strong&gt;■データ内に「&quot;」が含まれる&lt;/strong&gt;&lt;br /&gt;
「&quot;」(ダブルクォーテーション)の前に「&quot;」を付ける + ダブルクォーテーションでデータを囲う。&lt;br /&gt;
&lt;br /&gt;
(例)&lt;br /&gt;
&lt;ol class=&quot;boxcode-main no-number&quot;&gt;&lt;li&gt;1,TEST,&quot;あああ&quot;&quot;いいい&quot;&quot;ううう&quot;,aaa&lt;/li&gt;&lt;li&gt;2,TEST,これは引用なし,bbb&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;■CSVファイルの文字コード&lt;/strong&gt;&lt;br /&gt;
Excelで開く場合、文字コードがUTF-8等では文字化けしてしまいます。&lt;br /&gt;
だったら、sjisにすればよいかと思われるかもしれませんが、&lt;br /&gt;
(株)などの機種依存文字などが含まれている場合に問題になりますので、&lt;br /&gt;
「sjis-win」として出力してあげましょう。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;■ダウンロード&lt;/strong&gt;&lt;br /&gt;
ダウンロードダイアログを表示させて保存できるようにヘッダーを出力&lt;br /&gt;
&lt;ol class=&quot;php-main&quot;&gt;&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;header(&#039;Content-Type&#039;,&lt;wbr /&gt;&amp;nbsp;&#039;application/octet-stream&#039;);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;header(&#039;Content-Disposition&#039;,&lt;wbr /&gt;&amp;nbsp;&#039;attachment;&lt;wbr /&gt;&amp;nbsp;filename=&amp;quot;&#039;.$filename.&#039;&amp;quot;&#039;);&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;こんな感じでしょうか。（探せば色々なヘッダーが出てきますね。。。）&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;■数字形式のデータの扱い&lt;/strong&gt;&lt;br /&gt;
&lt;ol class=&quot;boxcode-main no-number&quot;&gt;&lt;li&gt;1,NAKAGAWA,09012345678&lt;/li&gt;&lt;li&gt;2,YOSHIKI,&quot;09012345678&quot;&lt;/li&gt;&lt;/ol&gt;このような、電話番号などの先頭に「0」がつく数字形式のデータをそのままCSV出力してしまうと、引用符で囲わなくても囲っても、エクセルで開いた場合、以下のように先頭の「0」がなくなってしまいます。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;/read_file.php?id=1178&amp;mode=1&quot; rel=&quot;lightbox&quot; class=&quot;link-lightbox&quot;&gt;&lt;img src=&quot;http://blog.asial.co.jp/read_file.php?id=1178&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
エクセルのファイルを読み込んで開く方法などで回避もできるようですが、&lt;br /&gt;
こういった場合の出力側での対処には以下のような方法があります。&lt;br /&gt;
&lt;br /&gt;
データとしては微妙ですが、表示の問題を解決するには以下のように「=」で対処可能です。&lt;br /&gt;
&lt;ol class=&quot;boxcode-main no-number&quot;&gt;&lt;li&gt;1,&quot;NAKAGAWA&quot;,09012345678&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;#これは頭の0が消える&lt;/li&gt;&lt;li&gt;2,&quot;YOSHIKI&quot;,=&quot;09012345678&quot;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;#これは頭の0が表示される&lt;/li&gt;&lt;/ol&gt;データとしての値を大事にするか、エクセルでの表示を大事にするかで対応を変えるようにしましょう。&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;■A1セルの内容に注意&lt;/strong&gt;&lt;br /&gt;
エクセルでは、「A1」（一番左上ですね）のセルに、&lt;br /&gt;
「ID」や「ID_xxxx」という文字列があると、「SYLKエラー」みたいなエラーが出るようです。&lt;br /&gt;
エクセルで開くことを前提にしたCSV出力では「A1」に「ID」文字列は厳禁ですので注意しましょう。&lt;br /&gt;
&lt;br /&gt;
参考：&lt;a href=&#039;http://www.yamamototakashi.com/soft/d2/manual/HLP000206.html&#039;&gt;http://www.yamamototakashi.com/soft/d2/manual/HLP000206.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
■■■■■■■■■■■■■■■■■■■■■■■■■&lt;br /&gt;
&lt;br /&gt;
このように細かい気遣いが必要なCSV処理ですが、&lt;br /&gt;
CakePHPフレームワークを利用されている場合には、&lt;br /&gt;
このような対策(一部)をし、簡単にCSV出力に行えるHelperがありますので、&lt;br /&gt;
利用例を簡単に紹介したいと思います。&lt;br /&gt;
&lt;br /&gt;
■CSV Helper (PHP 5)&lt;br /&gt;
&lt;a href=&#039;http://bakery.cakephp.org/articles/view/csv-helper-php5&#039;&gt;http://bakery.cakephp.org/articles/view/csv-helper-php5&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
上記ページの「CsvHelper Class」のコードをダウンロードして、&lt;br /&gt;
/PROJECT/app/views/helpers/csv.php に配置します。&lt;br /&gt;
&lt;br /&gt;
■コントローラ処理&lt;br /&gt;
&lt;ol class=&quot;php-main&quot;&gt;&lt;li&gt;&lt;span class=&quot;php-inlinetags&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;php-reserved&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-identifier&quot;&gt;HogeController&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-reserved&quot;&gt;extends&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-identifier&quot;&gt;AppController&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-reserved&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$uses&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-reserved&quot;&gt;array&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-string&quot;&gt;User&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-reserved&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$helpers&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-reserved&quot;&gt;array&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-string&quot;&gt;Csv&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-comment&quot;&gt;//CsvHelperを利用&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-comment&quot;&gt;/**&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-comment&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;*&lt;wbr /&gt;&amp;nbsp;ユーザ一覧のCSV出力&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-comment&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;*/&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-reserved&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-identifier&quot;&gt;csv&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-identifier&quot;&gt;Configure&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;php-identifier&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-string&quot;&gt;debug&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;,&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;php-identifier&quot;&gt;layout&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-reserved&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$users&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;php-identifier&quot;&gt;User&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;php-identifier&quot;&gt;find&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-string&quot;&gt;all&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-comment&quot;&gt;//ユーザ一覧データを取得&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;php-identifier&quot;&gt;set&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-string&quot;&gt;users&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;,&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$users&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;php-inlinetags&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;
■ビュー処理&lt;br /&gt;
&lt;ol class=&quot;php-main&quot;&gt;&lt;li&gt;&lt;span class=&quot;php-inlinetags&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;php-comment&quot;&gt;//ファイル名設定&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;php-identifier&quot;&gt;Csv&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;php-identifier&quot;&gt;setFilename&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-string&quot;&gt;users.csv&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$header&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-reserved&quot;&gt;array&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-string&quot;&gt;ユーザID&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;,&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-string&quot;&gt;姓&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;,&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-string&quot;&gt;名&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;,&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-string&quot;&gt;セイ&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;,&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-string&quot;&gt;メイ&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;php-comment&quot;&gt;//ヘッダー行追加&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;php-identifier&quot;&gt;Csv&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;php-identifier&quot;&gt;addRow&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$header&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;php-reserved&quot;&gt;foreach&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$users&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-reserved&quot;&gt;as&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$data&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$user&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$data&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-string&quot;&gt;User&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-comment&quot;&gt;//出力するカラムを取り出す&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$row&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;=&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-reserved&quot;&gt;array&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$user&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-string&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$user&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-string&quot;&gt;last_name&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$user&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-string&quot;&gt;first_name&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$user&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-string&quot;&gt;last_name_kana&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$user&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-string&quot;&gt;first_name_kana&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-comment&quot;&gt;//データ行追加&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;php-identifier&quot;&gt;Csv&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;php-identifier&quot;&gt;addRow&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$row&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;php-comment&quot;&gt;//CSVファイルダウンロード出力&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;php-reserved&quot;&gt;echo&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-var&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;php-identifier&quot;&gt;Csv&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;php-identifier&quot;&gt;render&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;php-reserved&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;,&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-string&quot;&gt;sjis-win&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;,&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-string&quot;&gt;utf-8&lt;/span&gt;&lt;span class=&quot;php-quotes&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;php-brackets&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;php-code&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;wbr /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;php-code&quot;&gt;&lt;/span&gt;&lt;span class=&quot;php-inlinetags&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;
CsvHelperを使えば、これだけの処理で簡単にCSV出力を行うことができます。&lt;br /&gt;
&lt;br /&gt;
ちなみに、このCsvHelperのコードを見てみると、&lt;br /&gt;
「へー、そんな方法でできるんだー」みたいなちょっとした感動がありましたので、&lt;br /&gt;
是非ご覧になってください。&lt;br /&gt;
&lt;br /&gt;
■■■■■■■■■■■■■■■■■■■■■■■■■&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
■最後に&lt;br /&gt;
実際の業務では、「改行を消して」や、「&quot;(ダブルクォート)で囲わないで」、&lt;br /&gt;
「出力文字数制限入れて」などの、ユーザの要望や連携先の要件によって、&lt;br /&gt;
いろいろと対策が変わってきたりしますので、&lt;br /&gt;
一概にご紹介したような対策を必ずするとは限りせんのでご注意ください。 </description>
						<guid>http://blog.asial.co.jp/721</guid>
			<pubDate>Thu, 15 Jul 2010 20:26:15 +0900</pubDate>
			<category>Tech</category>
		</item>
				<item>
			<title>PHPでのCSV出力について</title>
						<link>http://blog.asial.co.jp/721</link>
						<description> こんにちは、中川です。

今日は、PHPでのCSV出力について書いてみようと思います。

CSV出力といえば、カンマ区切りの１行ずつのデータで出力すれば・・・と、
簡単なイメージもありますが、実はいろいろと細かい対策が必要な処理のひとつです。 </description>
						<guid>http://blog.asial.co.jp/721</guid>
			<pubDate>Thu, 15 Jul 2010 20:26:15 +0900</pubDate>
			<category>-</category>
		</item>
		
	</channel>
</rss>