<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5350618281362285948</id><updated>2024-08-29T14:06:55.603+09:00</updated><category term="interface"/><category term="java"/><category term="plugin"/><title type='text'>nkmrtkhd&#39;s blog ♕</title><subtitle type='html'>nkmrtkhdのblog</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>147</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-3504766040523985888</id><published>2019-01-23T17:40:00.000+09:00</published><updated>2019-01-23T17:41:41.379+09:00</updated><title type='text'>apple watch でgoogleカレンダーが同期されなくなったら</title><content type='html'>【現象】&lt;br /&gt;
&lt;div&gt;
googleアカウントで同期しているgoogle calendarが同期されなくなった&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
具体的には&lt;/div&gt;
&lt;div&gt;
・カレンダーの色を変えても反映されない&lt;/div&gt;
&lt;div&gt;
・apple watch側に、削除したカレンダーの削除したイベントが出てくる&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; →iPhone側ではカレンダーが存在していない&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;
＊ただし、イベントの新規追加や変更はちゃんと追従する&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
iOS 12.1.2&lt;br /&gt;
watchOS 5.1.2&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
カレンダーの強制同期ボタンでもあれば押したのだが、クマった。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
【解消法】&lt;br /&gt;
設定&lt;br /&gt;
&amp;nbsp; →パスワードとアカウント&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;→該当のgoogle アカウントのカレンダーを一旦オフにして、しばらく待って、再度ON&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
これで直った。&lt;br /&gt;
iPhoneやらwatchの再起動ではダメで、上記操作で強制更新できるっぽい。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ちなみに、iPhoneに、カレンダーが出てこないときは&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.google.com/calendar/iphoneselect&quot;&gt;http://www.google.com/calendar/iphoneselect&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
にアクセスして、チェックボックスがONになっているかを確かめる。&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;→CalDAV(WebDAV?)経由でgoogle calendarと同期するには必要な設定のようだ。&lt;br /&gt;
&lt;br /&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/3504766040523985888/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/3504766040523985888?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/3504766040523985888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/3504766040523985888'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2019/01/apple-watch-google.html' title='apple watch でgoogleカレンダーが同期されなくなったら'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-950071896257175835</id><published>2015-01-28T09:46:00.003+09:00</published><updated>2015-01-28T09:46:57.843+09:00</updated><title type='text'>OSX QuickLookでcsvを見やすくするプラグイン</title><content type='html'>&lt;a href=&quot;https://github.com/p2/quicklook-csv&quot;&gt;quicklook-csv&lt;/a&gt; がグレートです。&lt;br /&gt;
&lt;br /&gt;
OSX純正でもCSVのquick lookはできるけど、心なしか速くなった気がするし、最高&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/950071896257175835/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/950071896257175835?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/950071896257175835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/950071896257175835'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2015/01/osx-quicklookcsv.html' title='OSX QuickLookでcsvを見やすくするプラグイン'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-3837452930406891708</id><published>2014-02-26T11:53:00.000+09:00</published><updated>2014-02-26T11:53:01.366+09:00</updated><title type='text'>PDFから画像を抽出する</title><content type='html'>xpdfってのを使うと出来るらしい。&lt;br /&gt;
&lt;br /&gt;
xpdfのインストールは、homebrewで一発のはずが、&lt;br /&gt;
ftpで外に出ていけないので、&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
curl: (7) Failed connect to ftp.foolabs.com:21; Operation timed out&lt;br /&gt;Error: Failed to download resource &quot;xpdf&quot;&lt;br /&gt;Download failed: ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.03.tar.gz&lt;/blockquote&gt;
とかでる。。。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ダウンロードURLを書き換えるために、&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
brew edit xpdf&lt;/blockquote&gt;
を実行して&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.03.tar.gz&lt;/blockquote&gt;
を &lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
http://gd.tuwien.ac.at/publishing/xpdf/xpdf-3.03.tar.gz&lt;/blockquote&gt;
に変更する。&lt;br /&gt;
その後、&lt;br /&gt;
brew install xpdf&lt;br /&gt;
でインストールされるはず。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
インストール後、&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
pdfimages -j hoge.pdf images&lt;/blockquote&gt;
&lt;pre class=&quot;code&quot; data-unlink=&quot;&quot;&gt;とすると、image-***.jpgがいっぱい出来る。&lt;/pre&gt;
&lt;pre class=&quot;code&quot; data-unlink=&quot;&quot;&gt;ありがたや。&lt;/pre&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/3837452930406891708/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/3837452930406891708?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/3837452930406891708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/3837452930406891708'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2014/02/pdf.html' title='PDFから画像を抽出する'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-3388902108995315222</id><published>2014-02-12T08:39:00.001+09:00</published><updated>2014-02-12T08:39:12.000+09:00</updated><title type='text'>brewで入れたdisplay(imagemagick)が動かない時</title><content type='html'>&lt;pre&gt;&lt;code&gt;&lt;code&gt;brew uninstall imagemagick&lt;/code&gt; &lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;brew install imagemagick --build-from-source --with-x11&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt; &lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;これでOK.&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/3388902108995315222/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/3388902108995315222?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/3388902108995315222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/3388902108995315222'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2014/02/brewdisplayimagemagick.html' title='brewで入れたdisplay(imagemagick)が動かない時'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-4350264738784589535</id><published>2013-11-01T13:31:00.002+09:00</published><updated>2013-11-01T13:31:45.804+09:00</updated><title type='text'>haskellで正規表現</title><content type='html'>sudo port install hs-cabal&lt;br /&gt;cabal-0.14.0 update&lt;br /&gt;cabal-0.14.0 install regex-base&lt;br /&gt;cabal-0.14.0 install regex-posix&lt;br /&gt;cabal-0.14.0 install regex-compat&lt;br /&gt;
として、パッケージをインストールすべし。&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/4350264738784589535/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/4350264738784589535?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/4350264738784589535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/4350264738784589535'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2013/11/haskell.html' title='haskellで正規表現'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-4045699435652392014</id><published>2013-10-30T13:39:00.001+09:00</published><updated>2013-10-30T13:39:38.849+09:00</updated><title type='text'>Appium 0.10.4のインストールから起動まで</title><content type='html'>&lt;ol&gt;
&lt;li&gt;dmgでappを入れる&lt;/li&gt;
&lt;li&gt;Node.js系を入れる&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;NODE_BINにnodeのパスを入れる&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Appium.appを起動する&lt;/li&gt;
&lt;li&gt;AppPathを入れる&lt;/li&gt;
&lt;li&gt;Launchを押す&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;インフォボタンを押す&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
赤字が大事。ほんとうに大事。&lt;br /&gt;
&lt;br /&gt;
これでも起動するだけ。&lt;br /&gt;
pythonからなぜか繋がらないので、自動テストはまだ出来ていない。&lt;br /&gt;
それは、またいずれ。&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/4045699435652392014/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/4045699435652392014?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/4045699435652392014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/4045699435652392014'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2013/10/appium.html' title='Appium 0.10.4のインストールから起動まで'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-1867887685484435817</id><published>2013-10-18T09:40:00.000+09:00</published><updated>2013-10-18T09:40:08.104+09:00</updated><title type='text'>antでUnknown Sourceが出る時</title><content type='html'>&lt;pre&gt;build.xmlのjavacのオプションに&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;debug=&quot;on&quot;&lt;/pre&gt;
&lt;pre&gt;が必要だそうな。&lt;/pre&gt;
&lt;pre&gt;なるほどね。&lt;/pre&gt;
&lt;pre&gt;
&lt;/pre&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/1867887685484435817/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/1867887685484435817?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/1867887685484435817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/1867887685484435817'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2013/10/antunknown-source.html' title='antでUnknown Sourceが出る時'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-7684170281159304328</id><published>2013-10-15T13:44:00.001+09:00</published><updated>2013-10-15T13:47:04.301+09:00</updated><title type='text'>WINSとかいうDNSをOSXから引く</title><content type='html'>OSXからWINDOWSのVMにつなごうとしても、WINSとかいうDNSを引けないので、繋げない。&lt;br /&gt;
静的IPにしてくれよと思うが、それは無理みたい。&lt;br /&gt;
&lt;br /&gt;
いちいちwindowsマシンから名前を引くのがクッソ面倒なので、なにかいい解決策はないかと調べてたらあった。&lt;br /&gt;
&lt;br /&gt;
　smbutil lookup &lt;i&gt;WINDOWS-NAME&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
samba系のユーティリティみたい。&lt;br /&gt;
便利だ。&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/7684170281159304328/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/7684170281159304328?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/7684170281159304328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/7684170281159304328'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2013/10/winsdnsosx.html' title='WINSとかいうDNSをOSXから引く'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-4983840524881638727</id><published>2013-03-13T09:17:00.001+09:00</published><updated>2013-03-13T09:17:54.375+09:00</updated><title type='text'>背景色をhexで　Spreadsheet::ParseExcel</title><content type='html'>M$の呪縛から解き放ってくれるのがSpreadsheet::ParseExcel。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
色の指定がColorIndexなのが信じられない。&lt;br /&gt;
RGBとかhexで保存しておいてほしい。&lt;br /&gt;
この辺りがM$のセンスだよなぁ。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
しかし、さすがcpan。&lt;br /&gt;
ColorIndexからhexを得る関数が用意されてる。&lt;br /&gt;
セルの背景色をゲットするには以下。&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; my $cell=$sheet-&amp;gt;{Cells}[10][10]-&amp;gt;Value;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; my $fg_color = $cell-&amp;gt;{Format}-&amp;gt;{Fill}-&amp;gt;[1];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; my $color=Spreadsheet::ParseExcel-&amp;gt;ColorIdxToRGB($fg_color);&lt;br /&gt;
&lt;br /&gt;
これでOK。&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/4983840524881638727/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/4983840524881638727?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/4983840524881638727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/4983840524881638727'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2013/03/hexspreadsheetparseexcel.html' title='背景色をhexで　Spreadsheet::ParseExcel'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-2275528052140501189</id><published>2012-10-03T13:13:00.001+09:00</published><updated>2012-10-03T13:13:25.377+09:00</updated><title type='text'>Mountain Lionでgnuplotのインストール</title><content type='html'>&lt;br /&gt;
XCodeでコマンドラインツールをインストールして、&lt;br /&gt;
sudo port install gnuplot&lt;br /&gt;
をすると、コケる。&lt;br /&gt;
&lt;br /&gt;
sudo xcodebuild -license&lt;br /&gt;
&lt;br /&gt;
をして、コマンドラインツールのライセンスを読めばOK.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/2275528052140501189/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/2275528052140501189?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/2275528052140501189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/2275528052140501189'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2012/10/mountain-liongnuplot.html' title='Mountain Lionでgnuplotのインストール'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-3853912893230256157</id><published>2012-09-10T23:09:00.000+09:00</published><updated>2012-09-10T23:09:05.230+09:00</updated><title type='text'>perlからevernote apiを使う</title><content type='html'>&lt;br /&gt;&lt;a href=&quot;https://github.com/evernote/evernote-sdk-perl&quot;&gt;https://github.com/evernote/evernote-sdk-perl&lt;/a&gt;&lt;br /&gt;
はとてもバギーなので、&lt;br /&gt;
&lt;a href=&quot;https://github.com/nobuoka/evernote-sdk-perl/tree/sample_code&quot;&gt;https://github.com/nobuoka/evernote-sdk-perl/tree/sample_code&lt;/a&gt;&lt;br /&gt;
を使うべし。サンプルコードも入っているのでとてもありがたい。&lt;br /&gt;
&lt;br /&gt;
listNotebooksやfindNotesはメタデータなどしか返ってこない。&lt;br /&gt;
ノートの中身を見るにはgetNoteを使う。&lt;br /&gt;
そのサンプルは以下。&lt;br /&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; my $notebooks = $note_store-&amp;gt;listNotebooks( $auth_token );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for my $notebook ( @$notebooks ) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; my $filter = new EDAMNoteStore::NoteFilter();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $filter-&amp;gt;{notebookGuid} = $notebook-&amp;gt;guid;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; my $notelist=$note_store-&amp;gt;findNotes( $auth_token,$filter,0,10 );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for my $n (@{$notelist-&amp;gt;{notes}} ) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print Dump( $n-&amp;gt;notes);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print &quot;- - - - - - - - \n&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; my $guid=$n-&amp;gt;{guid};&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for my $b ($note_store-&amp;gt;getNote( $auth_token,$guid,1,1,1,1) ) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #print Dump( $b);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print $b-&amp;gt;content;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
$notelist-&amp;gt;{notes}&lt;br /&gt;
では$n-&amp;gt;{guid}ができずに困っていた。&lt;br /&gt;んでフォーラムを見たら&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;@{&lt;span style=&quot;color: black;&quot;&gt;$notelist-&amp;gt;{notes}&lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
とすべきと書いてあり、これで解決。&lt;br /&gt;
&lt;br /&gt;
このあたりが、型にゆるいperlの嫌なところだよなぁ。 &lt;br /&gt;
書いた人は当たり前なんだけど、第三者はきつい。 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/3853912893230256157/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/3853912893230256157?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/3853912893230256157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/3853912893230256157'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2012/09/perlevernote-api.html' title='perlからevernote apiを使う'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-8730900238386990943</id><published>2012-06-16T14:59:00.001+09:00</published><updated>2012-06-16T14:59:15.919+09:00</updated><title type='text'>perlからGMail</title><content type='html'>Net::Smtp::TLSでgmailのsmtpを叩いていたプログラムが&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #d9ead3;&quot;&gt;
invalid SSL_version specified at /opt/local/lib/perl5/site_perl/5.12.4/IO/Socket/SSL.pm line 308.&lt;/div&gt;
&lt;br /&gt;
とか言って、エラーを吐く。&lt;br /&gt;
&amp;nbsp;色々調べたけど解決策がわかんないので、Net::SMTP::SSLを使って書きなおした。&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;  my $smtp = Net::SMTP::SSL-&amp;gt;new($mailhost,Port =&amp;gt; 465);
  if ($smtp-&amp;gt;auth($mail_username,$mail_password, required=&amp;gt;1)) {
    $smtp-&amp;gt;mail($from);
    $smtp-&amp;gt;to($to);
    $smtp-&amp;gt;data();
    my $oMime = MIME::Entity-&amp;gt;build(
      From     =&amp;gt; $from,
      To       =&amp;gt; $to,
      Subject  =&amp;gt; $subject,
      Type     =&amp;gt; &#39;text/plain&#39;,
      Charset  =&amp;gt; &#39;UTF-8&#39;,
      Data     =&amp;gt; $body);
    $smtp-&amp;gt;datasend($oMime-&amp;gt;stringify);
    $smtp-&amp;gt;dataend();
    $smtp-&amp;gt;quit;
  }else{
    print &quot;failed to send mail\n&quot;;
  }
&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
これで一応送信できるようになった。&lt;br /&gt;
typeとcharsetを指定しないと文字化けするので、utf8じゃない人は適当に変えてください。&lt;br /&gt;
&lt;br /&gt;
あと、 &lt;br /&gt;
use Net::SMTP::SSL;&lt;br /&gt;use MIME::Entity;&lt;br /&gt;
をお忘れなく。&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/8730900238386990943/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/8730900238386990943?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/8730900238386990943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/8730900238386990943'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2012/06/perlgmail.html' title='perlからGMail'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-3472315127354832755</id><published>2012-06-02T12:43:00.001+09:00</published><updated>2012-06-02T12:43:36.777+09:00</updated><title type='text'>emacsのevernote-modeが使えない</title><content type='html'>&lt;div style=&quot;background-color: #cfe2f3;&quot;&gt;
SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A&lt;/div&gt;
&lt;br /&gt;
とか言い出して、 evernote-modeが使えなくなった。 &lt;br /&gt;
認証方式が変わったのかな。&lt;br /&gt;
&lt;br /&gt;
対応されるまでしばらく待つとして、関連ファイルを消すには以下。&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #cfe2f3;&quot;&gt;
sudo rm  /opt/local/bin/enclient.rb &lt;br /&gt;
cd /opt/local/lib/ruby/site_ruby/1.8/&lt;br /&gt;
sudo rm  LICENSE.txt thrift.rb &lt;br /&gt;
sudo rm -rf Evernote/&lt;br /&gt;
sudo rm -rf thrift/&lt;/div&gt;
&lt;br /&gt;
これでアンインストールできたはず。&lt;br /&gt;
早く対応してほしー。&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/3472315127354832755/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/3472315127354832755?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/3472315127354832755'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/3472315127354832755'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2012/06/emacsevernote-mode.html' title='emacsのevernote-modeが使えない'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-8780038400889222831</id><published>2012-04-11T12:03:00.001+09:00</published><updated>2012-04-12T10:41:44.242+09:00</updated><title type='text'>Net::Twitterのresponse</title><content type='html'>$response=$twit-&amp;gt;user_timeline(); &lt;br /&gt;
とかした場合の&lt;br /&gt;
$response-&amp;gt;{&#39;HOGE&#39;}&lt;br /&gt;
で指定可能なハッシュキーは以下&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;contributors&lt;/li&gt;
&lt;li&gt;coordinates&lt;/li&gt;
&lt;li&gt;created_at&lt;/li&gt;
&lt;li&gt;favorited&lt;/li&gt;
&lt;li&gt;geo&lt;/li&gt;
&lt;li&gt;id&lt;/li&gt;
&lt;li&gt;id_str&lt;/li&gt;
&lt;li&gt;in_reply_to_screen_name&lt;/li&gt;
&lt;li&gt;in_reply_to_status_id&lt;/li&gt;
&lt;li&gt;in_reply_to_status_id_str&lt;/li&gt;
&lt;li&gt;in_reply_to_user_id&lt;/li&gt;
&lt;li&gt;in_reply_to_user_id_str&lt;/li&gt;
&lt;li&gt;place&lt;/li&gt;
&lt;li&gt;retweet_count&lt;/li&gt;
&lt;li&gt;retweeted&lt;/li&gt;
&lt;li&gt;truncated&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
追記&lt;br /&gt;
こういうのは，&lt;br /&gt;
print Dump $response;&lt;br /&gt;
として調べている．&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/8780038400889222831/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/8780038400889222831?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/8780038400889222831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/8780038400889222831'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2012/04/nettwitterresponse.html' title='Net::Twitterのresponse'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-6860518435854767818</id><published>2012-04-02T23:48:00.001+09:00</published><updated>2012-04-02T23:48:29.075+09:00</updated><title type='text'>google web履歴をぶっこ抜く</title><content type='html'>googleのweb履歴をダウンロードするperl スクリプトを発見した． &lt;br /&gt;
&lt;a href=&quot;https://gist.github.com/2283935/a9bde2f42942178c735988e5da0c249f5548cbd0&quot;&gt;https://gist.github.com/2283935/a9bde2f42942178c735988e5da0c249f5548cbd0&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
でもパスワード直書きは怖いので，標準入力にしたバージョンを書いてみた&lt;br /&gt;
 &lt;a href=&quot;https://gist.github.com/2283935&quot;&gt;https://gist.github.com/2283935&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/6860518435854767818/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/6860518435854767818?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/6860518435854767818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/6860518435854767818'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2012/04/google-web.html' title='google web履歴をぶっこ抜く'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-9212235261097692810</id><published>2012-03-27T11:14:00.000+09:00</published><updated>2012-03-28T11:23:19.093+09:00</updated><title type='text'>perlでFFT</title><content type='html'>モジュールを使えば簡単&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
use Math::FFT;&lt;br /&gt;
&lt;br /&gt;
my $PI = 3.1415926539;&lt;br /&gt;
my $N = 64;&lt;br /&gt;
my $in;&lt;br /&gt;
&lt;br /&gt;
#set data&lt;br /&gt;
for (my $k=0; $k&amp;lt;$N; $k++) {&lt;br /&gt;
$in-&amp;gt;[$k] = cos(2*$PI*$k/$N)+ sin(3*$PI*$k/$N);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
#fft&lt;br /&gt;
my $fft = new Math::FFT($in);&lt;br /&gt;
my $coeff = $fft-&amp;gt;rdft();&lt;br /&gt;
my $spectrum = $fft-&amp;gt;spctrm;&lt;br /&gt;
my $original_data = $fft-&amp;gt;invrdft($coeff);&lt;br /&gt;
&lt;br /&gt;
#input data and inverse-fft&lt;br /&gt;
open FH, &quot;&amp;gt;data.d&quot;;&lt;br /&gt;
for (my $k=0; $k&amp;lt;$N; $k++) {&lt;br /&gt;
$tmp1=0;&lt;br /&gt;
$tmp2=0;&lt;br /&gt;
for (my $j=1; $j&amp;lt;$N/2; $j++) {&lt;br /&gt;
$tmp1+=$coeff-&amp;gt;[2*$j]*cos(2*$PI*$j*$k/$N);&lt;br /&gt;
$tmp2+=$coeff-&amp;gt;[2*$j+1]*sin(2*$PI*$j*$k/$N);&lt;br /&gt;
}&lt;br /&gt;
$tmp=(($coeff-&amp;gt;[0] +$coeff-&amp;gt;[$N/2]*cos($PI*$k))/2 +$tmp1 +$tmp2)*2/$N;&lt;br /&gt;
print FH &quot;$k\t $in-&amp;gt;[$k] \t$tmp \t $original_data-&amp;gt;[$k]\n&quot;;&lt;br /&gt;
}&lt;br /&gt;
close FH;&lt;br /&gt;
&lt;br /&gt;
#coefficient&lt;br /&gt;
open FH, &quot;&amp;gt;coeff.d&quot;;&lt;br /&gt;
for (my $k=1; $k&amp;lt;$N/2; $k++) {&lt;br /&gt;
print FH &quot;$k\t $coeff-&amp;gt;[2*$k] \t$coeff-&amp;gt;[2*$k+1]\n&quot;;&lt;br /&gt;
}&lt;br /&gt;
close FH;&lt;br /&gt;
&lt;br /&gt;
#power spectrum&lt;br /&gt;
open FH, &quot;&amp;gt;spct.d&quot;;&lt;br /&gt;
for (my $k=1; $k&amp;lt;$N/4; $k++) {&lt;br /&gt;
my $tmp=($coeff-&amp;gt;[2*$k]*$coeff-&amp;gt;[2*$k]+ $coeff-&amp;gt;[2*$k+1]*$coeff-&amp;gt;[2*$k+1])/$N/$N*2;&lt;br /&gt;
print FH &quot;$k\t $spectrum-&amp;gt;[$k] \t$tmp\n&quot;;&lt;br /&gt;
}&lt;br /&gt;
close FH;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3/28追記&lt;br /&gt;
上記では，直流成分の係数は表示していないので注意&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/9212235261097692810/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/9212235261097692810?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/9212235261097692810'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/9212235261097692810'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2012/03/perlfft.html' title='perlでFFT'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-942608564552383833</id><published>2012-03-23T15:08:00.001+09:00</published><updated>2012-03-23T15:08:38.377+09:00</updated><title type='text'>UPSの状態をRS232で知りたい</title><content type='html'>UPSのデータシートによると， RS232ポートのあるピンの電圧をみると，電源駆動か電池駆動かが分かるそうな．&lt;br /&gt;
&lt;br /&gt;
テスターを挿して測ってみると，確かにLowとHighになる．&lt;br /&gt;
実際にこのピンに掛かる電圧を監視すればいいことがわかった．&lt;br /&gt;
でもRS232は通信用のポートらしく，特定のピンの電圧を測るようなことは出来ないっぽい．&lt;br /&gt;
きっちり理解して，ドライバを書く時間もないしな．&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
また，調べてみるとapcupsdというプログラムで監視ができるみたい．&lt;br /&gt;
でもシリアルポートの認識ができない．&lt;br /&gt;
クロスとかストレートとかのケーブルの問題なのかな．&lt;br /&gt;
&lt;br /&gt;
しばらくpendingだ．&lt;br /&gt;
&lt;br /&gt;
参考&lt;br /&gt;
&lt;a href=&quot;http://www.itmedia.co.jp/help/howto/linux/ups/&quot;&gt;http://www.itmedia.co.jp/help/howto/linux/ups/&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://h2np.net/tips/fwf10.html&quot;&gt;http://h2np.net/tips/fwf10.html&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://archive.linux.or.jp/JF/JFdocs/Serial-HOWTO-16.html&quot;&gt;http://archive.linux.or.jp/JF/JFdocs/Serial-HOWTO-16.html&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://linuxjf.sourceforge.jp/JFdocs/Serial-HOWTO-8.html&quot;&gt;http://linuxjf.sourceforge.jp/JFdocs/Serial-HOWTO-8.html&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/942608564552383833/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/942608564552383833?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/942608564552383833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/942608564552383833'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2012/03/upsrs232.html' title='UPSの状態をRS232で知りたい'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-6402387308578554539</id><published>2012-02-14T20:38:00.001+09:00</published><updated>2012-02-14T20:38:32.311+09:00</updated><title type='text'>javaの文字コード指定について</title><content type='html'>javaなのにshift_jisで書かれたコードなんて．．．&lt;br /&gt;
&lt;br /&gt;
それでも，ターミナルはUTF-8で固定しておきたいので，&lt;br /&gt;
コンパイルと実行時に以下のようにすれば，強制的にutf8に出来る．&lt;br /&gt;
&lt;br /&gt;
javac &lt;span class=&quot;c&quot;&gt;-J-Dfile.encoding=UTF-8&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;c&quot;&gt;j&lt;/span&gt;ava -&lt;span class=&quot;c&quot;&gt;Dfile.encoding=UTF-8&lt;/span&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/6402387308578554539/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/6402387308578554539?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/6402387308578554539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/6402387308578554539'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2012/02/java.html' title='javaの文字コード指定について'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-5999562004943035654</id><published>2012-01-29T21:37:00.001+09:00</published><updated>2012-01-29T21:37:39.122+09:00</updated><title type='text'>Net::Twitter 3.18001 におけるmentionの扱い</title><content type='html'>Net::Twitterのバージョンをあげたら， &lt;br /&gt;
&lt;div style=&quot;background-color: #f4cccc;&quot;&gt;
$twit-&amp;gt;search({q =&amp;gt; &quot;to:$username&quot;,since_id =&amp;gt; $sinceId})&lt;/div&gt;
が使えなくなっていた．&lt;br /&gt;
&lt;br /&gt;
現行のバージョンでは，以下のようにする&lt;br /&gt;
&lt;div style=&quot;background-color: #f4cccc;&quot;&gt;
my $ms=$twit-&amp;gt;;mentions({ since_id =&amp;gt; $sinceID, count =&amp;gt;10 });&lt;br /&gt;for my $res ( @$ms ) {&lt;br /&gt; my $text = Encode::encode(&#39;utf8&#39;, $res-&amp;gt;{&#39;text&#39;});&lt;br /&gt; print &quot;$text \n&quot;;&lt;br /&gt;}&lt;/div&gt;
引数は無くても動くらしいが，指定しないと動かなかった．&lt;br /&gt;
なんでだろ？&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
参考&lt;br /&gt;
&lt;a href=&quot;http://search.cpan.org/dist/Net-Twitter/lib/Net/Twitter.pod&quot;&gt;http://search.cpan.org/dist/Net-Twitter/lib/Net/Twitter.pod&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/5999562004943035654/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/5999562004943035654?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/5999562004943035654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/5999562004943035654'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2012/01/nettwitter-318001-mention.html' title='Net::Twitter 3.18001 におけるmentionの扱い'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-3614653234167718772</id><published>2012-01-06T14:52:00.001+09:00</published><updated>2012-01-06T14:54:09.308+09:00</updated><title type='text'>google製 bugspotsを使ってみる</title><content type='html'>gitのリポジトリからバグが含まれるファイルを予測するbugspotsを使ってみた．&lt;br /&gt;
&lt;br /&gt;
OSXへのインストールは&lt;br /&gt;
&amp;gt; sudo gem install bugspots&lt;br /&gt;
でオッケ．でもって&lt;br /&gt;
&amp;gt; git bugspots &lt;i&gt;git-repo&lt;/i&gt;&lt;br /&gt;
で結果がでる．&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ファイル更新の日時と回数をフェルミ分布みたいな評価関数で評価して，&lt;br /&gt;
どのファイルにバグが含まれるかを予測するらしい． &lt;br /&gt;
&lt;a href=&quot;http://www.publickey1.jp/blog/11/post_193.html&quot;&gt;http://www.publickey1.jp/blog/11/post_193.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
近日中に更新が多いファイルにはバグが含まれるだろうという静的な解析．&lt;br /&gt;
ファイルサイズとかは影響しないんだろうか．&lt;br /&gt;
個人開発な規模のリポジトリでは，使い道がわからんなぁ．&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/3614653234167718772/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/3614653234167718772?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/3614653234167718772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/3614653234167718772'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2012/01/google-bugspots.html' title='google製 bugspotsを使ってみる'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-3326033226909315147</id><published>2011-11-25T17:15:00.001+09:00</published><updated>2011-11-25T17:24:11.651+09:00</updated><title type='text'>Javaの拡張構文</title><content type='html'>使うことは無いと思うけど，読むことはあるであろう構文について．&lt;br /&gt;
Javaでは以下のように，後にピリオドを３つつけた引数の宣言が可能．
&lt;br /&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;void method(String... str) {
    for (String s : str){
        System.out.println(s);
    }
}&lt;/pre&gt;
&lt;br /&gt;
この場合

&lt;br /&gt;
&lt;pre&gt;this.method(&quot;aaa&quot;, &quot;bbb&quot;, &quot;ccc&quot;); &lt;/pre&gt;
や
&lt;br /&gt;
&lt;pre&gt;this.method(&quot;aaa&quot;); &lt;/pre&gt;
などと，任意の変数の個数を引数として，メソッドを呼び出すことが可能．&lt;br /&gt;
イチイチ配列に格納し直す手間が省けるという意味．&lt;br /&gt;
この書き方には，一つのメソッドに一つ，しかも最後の引数のみという制約がある．&lt;br /&gt;
考えたら当たり前な制約．&lt;br /&gt;
&lt;br /&gt;
んで，&lt;br /&gt;
&lt;pre&gt;for (String s : str)&lt;/pre&gt;
は，配列を１つずつ取り出して，sに入れるという意味．&lt;br /&gt;
foreachみたいなもん．こちらは使えそうだ．&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/3326033226909315147/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/3326033226909315147?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/3326033226909315147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/3326033226909315147'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2011/11/java.html' title='Javaの拡張構文'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-6331191934897515543</id><published>2011-11-10T17:58:00.002+09:00</published><updated>2012-01-06T14:57:40.853+09:00</updated><title type='text'>JNIを使ってみる</title><content type='html'>&amp;gt; javac JNITest.java &lt;br /&gt;
&amp;gt; javah -jni -o JNITest.h JNITest&lt;br /&gt;
&amp;gt; javac JNITest&lt;br /&gt;
&amp;gt; gcc -fPIC -g -c&amp;nbsp; -I/System/Library/Frameworks/JavaVM.framework/Headers　HelloJniWorldImpl.c &lt;br /&gt;
&amp;gt; gcc -shared -o libHelloJniWorldImpl.jnilib HelloJniWorldImpl.o &lt;br /&gt;
&lt;br /&gt;
そして&lt;br /&gt;
&amp;gt; java -Djava.library.path=.&amp;nbsp; -cp . HelloJniWorld&lt;br /&gt;
で実行されるはず．&lt;br /&gt;
&lt;br /&gt;
linuxの場合は&lt;br /&gt;
&amp;gt; gcc -fPIC -g -c -I&lt;i&gt;/java/heade&lt;/i&gt;r HelloJniWorldImpl.c&lt;br /&gt;&amp;gt; gcc -shared -o libHelloJniWorldImpl.so libHelloJniWorldImpl.o&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/6331191934897515543/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/6331191934897515543?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/6331191934897515543'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/6331191934897515543'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2011/11/jni.html' title='JNIを使ってみる'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-9135493105135886101</id><published>2011-10-17T20:27:00.000+09:00</published><updated>2011-10-17T20:27:03.481+09:00</updated><title type='text'>Fedora15でネットワークデバイスの名前をeth*に変える方法</title><content type='html'>/etc/grub.conf&lt;br /&gt;
に&lt;br /&gt;
&lt;div style=&quot;background-color: #fff2cc;&quot;&gt;
biosdevname=0&amp;nbsp;&lt;/div&gt;
を追加．そして&lt;br /&gt;
/etc/udev/rules.d/70-persistent-net.rules&lt;br /&gt;
として&lt;br /&gt; &lt;br /&gt;
&lt;pre style=&quot;background-color: #fce5cd;&quot;&gt;SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;MAC_ADDR&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth0&quot;&amp;nbsp;&lt;/pre&gt;
を保存して，再起動すればいい．&lt;br /&gt;
&lt;br /&gt;
でも，現時点でPGIコンパイラのFLEXLMはFedora15に対応していないので，&lt;br /&gt;
こんな小手先の調整をしても無駄．&lt;br /&gt;
これで１週間くらい無駄にした．&lt;br /&gt;
&lt;br /&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/9135493105135886101/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/9135493105135886101?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/9135493105135886101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/9135493105135886101'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2011/10/fedora15eth.html' title='Fedora15でネットワークデバイスの名前をeth*に変える方法'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-2626086341423708405</id><published>2011-10-16T17:35:00.000+09:00</published><updated>2011-10-17T17:35:18.749+09:00</updated><title type='text'>yumでdropboxを入れる</title><content type='html'>/etc/yum.repos.d/dropbox.repo&lt;br /&gt;
として&lt;br /&gt;



&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;[Dropbox]
name=Dropbox Repository
baseurl=http://linux.dropbox.com/fedora/$releasever/
gpgkey=http://linux.dropbox.com/fedora/rpm-public-key.asc&lt;/pre&gt;
&lt;br /&gt;
を作成．そして&lt;br /&gt;
&lt;br /&gt;&lt;pre&gt;$yum install nautilus-dropbox&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;でOK &lt;/pre&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/2626086341423708405/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/2626086341423708405?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/2626086341423708405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/2626086341423708405'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2011/10/yumdropbox.html' title='yumでdropboxを入れる'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5350618281362285948.post-4609095149999848492</id><published>2011-10-11T13:46:00.002+09:00</published><updated>2011-10-11T13:46:39.949+09:00</updated><title type='text'>perlのGetOpt::Longでクオートの扱い</title><content type='html'>&lt;pre class=&quot;pod_verbatim&quot;&gt;&lt;code&gt;GetOpt::Long を利用して&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;pod_verbatim&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;pod_verbatim&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;code&gt;./mail.pl -subject &#39;test mail&#39; fugafuga&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;pod_verbatim&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;pod_verbatim&quot;&gt;&lt;code&gt;などといった，クオートで囲ったコマンドラインオプションを扱う場合は&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;pod_verbatim&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;pod_verbatim&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;code&gt;GetOptions (&quot;subject=s&quot; =&amp;gt; \@sub);&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;pod_verbatim&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;pod_verbatim&quot;&gt;&lt;code&gt;のように，引数の型はsだが，格納する変数を配列にすれば良い．&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;pod_verbatim&quot;&gt;&lt;code&gt; &lt;/code&gt;&lt;/pre&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;meta name=&quot;verify-v1&quot; content=&quot;g5SLAuq8wOiP0USBc+df9QN0mkSJPUtbeOsfqs7PR04=&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nkmrtkhd.blogspot.com/feeds/4609095149999848492/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5350618281362285948/4609095149999848492?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/4609095149999848492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5350618281362285948/posts/default/4609095149999848492'/><link rel='alternate' type='text/html' href='http://nkmrtkhd.blogspot.com/2011/10/perlgetoptlong.html' title='perlのGetOpt::Longでクオートの扱い'/><author><name>nkmrtkhd</name><uri>http://www.blogger.com/profile/12184541405946493551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>