<?xml version="1.0" encoding="UTF-8" ?>
<feed xml:lang="ja" xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:thr="http://purl.org/syndication/thread/1.0">
  <title type="text">青天の霹靂</title>
  <subtitle type="html">情報系大学院生のつれづれなるブログ．
</subtitle>
  <link rel="self" type="application/atom+xml" href="http://macguffin.blog.shinobi.jp/atom"/>
  <link rel="alternate" type="text/html" href="http://macguffin.blog.shinobi.jp/"/>
  <updated>2014-04-26T00:36:49+09:00</updated>
  <author><name>けい</name></author>
  <generator uri="//www.ninja.co.jp/blog/" version="0.9">忍者ブログ</generator>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" />
  <entry>
    <id>macguffin.blog.shinobi.jp://entry/8</id>
    <link rel="alternate" type="text/html" href="http://macguffin.blog.shinobi.jp/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/processing%E3%81%A7ar.drone%E3%82%92%E6%93%8D%E4%BD%9C%E3%81%97%E3%81%A6%E3%81%BF%E3%82%88%E3%81%86" />
    <published>2014-12-26T01:22:17+09:00</published> 
    <updated>2014-12-26T01:22:17+09:00</updated> 
    <category term="プログラミング" label="プログラミング" />
    <title>ProcessingでAR.Droneを操作してみよう</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[<br />
AR.Droneを触らせてもらえる機会に恵まれたので、その忘備録です。<br /><br /><a href="http://macguffin.blog.shinobi.jp/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/processing%E3%81%A7ar.drone%E3%82%92%E6%93%8D%E4%BD%9C%E3%81%97%E3%81%A6%E3%81%BF%E3%82%88%E3%81%86" target="_blank">つづきはこちら</a>]]> 
    </content>
    <author>
            <name>けい</name>
        </author>
  </entry>
  <entry>
    <id>macguffin.blog.shinobi.jp://entry/7</id>
    <link rel="alternate" type="text/html" href="http://macguffin.blog.shinobi.jp/%E6%9C%AA%E9%81%B8%E6%8A%9E/karabiner%E3%81%AE%E8%A8%AD%E5%AE%9A%E3%82%92dropbox%E3%81%A7%E5%85%B1%E6%9C%89%E3%81%97%E3%81%A6%E3%81%BF%E3%81%9F" />
    <published>2014-10-14T03:52:12+09:00</published> 
    <updated>2014-10-14T03:52:12+09:00</updated> 
    <category term="ざれごと" label="ざれごと" />
    <title>Karabinerの設定をDropBoxで共有してみた</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[以前このブログでも消化した"KeyRemap4MacBook"ですが、最近のアップデートでその名前が<br />
"Karabiner"に変わりました．<br />
<br />
相変わらずとても使い勝手がよく、複数端末で設定を共通にしたかったため、DropBoxで共有することにしたので、今回はそのメモです。<br />
<br />
まずすることは設定ファイルを自身のDropBoxに移動すること。<br />
移動するファイルは以下の２つ<br />

<pre class="brush: javascript;"> 
mv ~/Library/Preferences/org.pqrs.Karabiner.plist ~/Dropbox/適当なフォルダ/
mv ~/Library/Application\ Support/Karabiner/private.xml ~/Dropbox/適当なフォルダ/
</pre>
<br />
これらをシンボリックリンクしていきます
<pre class="brush: javascript;"> 
ln -s  ~/Dropbox/適当なフォルダ/org.pqrs.Karabiner.plist ~/Library/Preferences/org.pqrs.Karabiner.plist
ln -s ~/Dropbox/適当なフォルダ/private.xml ~/Library/Application\ Support/Karabiner/private.xml  
</pre>
<br />
これにて再起動かけたら終了です。]]> 
    </content>
    <author>
            <name>けい</name>
        </author>
  </entry>
  <entry>
    <id>macguffin.blog.shinobi.jp://entry/6</id>
    <link rel="alternate" type="text/html" href="http://macguffin.blog.shinobi.jp/%E6%9C%AA%E9%81%B8%E6%8A%9E/nexus7-2013-%E8%B2%B7%E3%81%A3%E3%81%A6%E3%81%BF%E3%81%9F" />
    <published>2014-09-17T01:06:12+09:00</published> 
    <updated>2014-09-17T01:06:12+09:00</updated> 
    <category term="ざれごと" label="ざれごと" />
    <title>Nexus7(2013)買ってみた</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[いまさらながらNexus7(2013) 32GB/Blackを購入しました<br />
<a target="_blank" href="//macguffin.blog.shinobi.jp/File/mini1410883119.jpg" title=""><img src="//macguffin.blog.shinobi.jp/Img/1410883376/" alt="" /></a> <br />
memo pad 7 / memo pad 8と迷いましたが，最後は画質で決めました．<br />
やっぱり1920x1200は綺麗です^^ <br />
いま手持ちのiPod touchにガラスフィルムを使っているのですがこれがすごく良く，Nexus7もガラスフィルムを購入しようと思い，<br />
Amazonより <a href="http://www.amazon.co.jp/gp/product/B00KTX6CSC?ref_=pe_492632_169829912_TE_M3T1_dp_1" title="" target="_blank">ASUS Google Nexus 7 2 II (2013) （ストレートエッジ） 0.3ミリ強化ガラススクリーンガードフィルム</a> を購入してみたのですが， 届いて気づいたことは <br />
<a target="_blank" href="//macguffin.blog.shinobi.jp/File/mini1410883158.jpg" title=""><img src="//macguffin.blog.shinobi.jp/Img/1410883386/" alt="" /></a> <br />
・・・iPad mini ？<br />
実際中身を見てみるとちゃんとNexus7(2013)のものでした^^ <br />
<br />
１年前の機種ですが，全然ぬるぬると動きます．就活のときに重宝するとおもうので 大切に使おうと思います．]]> 
    </content>
    <author>
            <name>けい</name>
        </author>
  </entry>
  <entry>
    <id>macguffin.blog.shinobi.jp://entry/5</id>
    <link rel="alternate" type="text/html" href="http://macguffin.blog.shinobi.jp/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/opengl%E5%B0%8E%E5%85%A5%E3%81%97%E3%81%A6%E3%81%BF%E3%81%9F%E3%81%AF%E3%81%AA%E3%81%97" />
    <published>2014-09-10T23:48:15+09:00</published> 
    <updated>2014-09-10T23:48:15+09:00</updated> 
    <category term="プログラミング" label="プログラミング" />
    <title>OpenGL導入してみたはなし</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[<br />
少し機会があってひさしぶりにOpenGLに触れました．<br />
今後のために今回の設定操作をメモ代わり書いていきます(^^)<br />
<br />
参考にさせてもらったHPは<br />
GLUTによる「手抜き」OpenGL入門<br />
http://www.wakayama-u.ac.jp/~tokoi/opengl/libglut.html<br />
<br />
今回設定する端末はMac OS X 10.9.2<br />
上記のサイトより，以下のコマンドをterminalより実行していきます<br />

<pre class="brush: javascript;"> 
        sudo mkdir /usr/local/include
        sudo mkdir /usr/local/include/GL
        cd /usr/local/include/GL
        sudo ln -s /System/Library/Frameworks/GLUT.framework/Headers/glut.h .
</pre>
<br />
/usr/local/includeにつくったGLフォルダに，glut.hのシンボリックリンクを作成しています．<br />
<br />
これで準備はほぼ終わり．<br />
あとは適当に
<pre class="brush: javascript;"> 
#include &lt;GL/glut.h&gt;

void display(void)
{
}

int main(int argc, char *argv[])
{
  glutInit(&amp;argc, argv);
  glutCreateWindow(argv[0]);
  glutDisplayFunc(display);
  glutMainLoop();
  return 0;
}
</pre>
<br />
と書き込んだファイル（sample.c）をコンパイルしてあげます．<br />
このとき<br />

<pre class="brush: javascript;">cc -I/usr/X11R6/include sample.c -L/usr/X11R6/lib -lglut -lGLU -lGL -lXmu -lXi -lXext -lX11 -lm -lpthread
</pre>
とterminal上でコンパイルすればいいのですが，如何せんめんどくさい． emacs などから
<pre class="brush: javascript;">#!/bin/sh
exec cc -I/usr/X11R6/include "$@" -L/usr/X11R6/lib -lglut -lGLU -lGL -lXmu -lXi -lXext -lX11 -lm -lpthread
</pre>
を作成し，ccglという名で保存します．
<pre class="brush: javascript;">chmod +x ccgl</pre>
より権限をあたえ，sample.cをおいてあるディレクトリで
<pre class="brush: javascript;">./ccgl sample.c
</pre>
と実行してやれば<br />
<img src="//macguffin.blog.shinobi.jp/File/__a_out.png" alt="" /> <br />
<br />
と表示されます^^]]> 
    </content>
    <author>
            <name>けい</name>
        </author>
  </entry>
  <entry>
    <id>macguffin.blog.shinobi.jp://entry/4</id>
    <link rel="alternate" type="text/html" href="http://macguffin.blog.shinobi.jp/%E6%9C%AA%E9%81%B8%E6%8A%9E/%E3%82%84%E3%81%AA%E3%81%8E%E3%81%AA%E3%81%8E%E3%81%95%E3%82%93%E3%81%AE%E2%80%9D%E3%83%88%E3%82%B3%E3%83%8F%E3%83%8A%E2%80%9D%E8%B3%BC%E5%85%A5" />
    <published>2014-06-06T01:31:28+09:00</published> 
    <updated>2014-06-06T01:31:28+09:00</updated> 
    <category term="ざれごと" label="ざれごと" />
    <title>やなぎなぎさんの”トコハナ”購入</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[<br />
6/4 発売，やなぎなぎさんの新曲&rdquo;トコハナ&rdquo;を購入しました．<br />
<img src="//macguffin.blog.shinobi.jp/File/3ab6b72d.jpeg" alt="" width="100%" /><br />
<br />
この初回限定盤には，8/31のライブの先行予約権があるのでさっそく抽選に応募しました^^<br />
東京の友達の家はもう抑えてあるので，あとは抽選結果を待つのみ．<br />
いまから楽しみです^^]]> 
    </content>
    <author>
            <name>けい</name>
        </author>
  </entry>
  <entry>
    <id>macguffin.blog.shinobi.jp://entry/3</id>
    <link rel="alternate" type="text/html" href="http://macguffin.blog.shinobi.jp/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/mac%E3%81%A7%E3%82%AD%E3%83%BC%E3%81%AE%E3%83%AA%E3%83%94%E3%83%BC%E3%83%88%E3%82%92%E6%97%A9%E3%81%8F%E3%81%97%E3%81%A6%E3%81%BF%E3%81%9F" />
    <published>2014-05-23T01:08:01+09:00</published> 
    <updated>2014-05-23T01:08:01+09:00</updated> 
    <category term="プログラミング" label="プログラミング" />
    <title>Macでキーのリピートを早くしてみた</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[<br />
Emacs を使っていてふと気になることがありました．<br />
それはキーリピートが遅い．<br />
<br />
たとえば，カーソルキーの移動や行一文の削除のときに少し気になる程度．<br />
&rdquo;設定&rdquo;の&rdquo;キーボード&rdquo;から早さを設定できるものの満足のいく早さにはなりませんでした．<br />
<br />
そこで参考にさせて頂いたのは下記のサイト様<br />

<ul>
<li><a href="http://succzero.hatenablog.com/entry/2014/02/24/031314" title="">一歩前進</a></li>
</ul>
<br />
<hr /><br />
まずはKeyRemap4MacBookからファイルをDLしてきます<br />
<a href="https://pqrs.org/macosx/keyremap4macbook/index.html.ja" title="">KeyRemap4MacBook<br />
<br />
</a>KeyRemap4MacBookは以前インストールしていたので詳細は省きます．<br />
<br />
LauncherからKeyRemap4MacBookを起動し，<br />
<br />
<img src="//macguffin.blog.shinobi.jp/File/KeyRemap4MacBook.png" alt="" /><br />
<br />
上記の数値を<br />
<br />
Delay Until Repeat : 500 -&gt; 200<br />
Key Repeat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: 83 &nbsp; -&gt; &nbsp; 20<br />
<br />
と変更します．<br />
<br />
これでキーリピートが早くなります！<br />
ただし，弊害としてミスタイプ，例えばああああああああ　などが多発するようになりました笑]]> 
    </content>
    <author>
            <name>けい</name>
        </author>
  </entry>
  <entry>
    <id>macguffin.blog.shinobi.jp://entry/2</id>
    <link rel="alternate" type="text/html" href="http://macguffin.blog.shinobi.jp/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/%E3%82%B7%E3%82%A7%E3%83%AB%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%81%A7%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E5%90%8D%E3%82%92%E4%B8%80%E6%8B%AC%E3%83%AA%E3%83%8D%E3%83%BC%E3%83%A0%E3%81%97%E3%81%9F%E8%A9%B1" />
    <published>2014-05-21T00:42:56+09:00</published> 
    <updated>2014-05-21T00:42:56+09:00</updated> 
    <category term="プログラミング" label="プログラミング" />
    <title>シェルスクリプトでファイル名を一括リネームした話</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[<br />
今回複数のファイル名をシェルスクリプトを使って一括変換してみました．<br />
例えば，<br />
ダウンロードしてきた画像の名前だったり，<br />
ファイル名に入っている余分な空白であったり<br />
といろいろファイルを整理していたらすごく気になったので<br />
<br />
参考にさせてもらったサイト様は下記の通り<br />

<ul>
<li><a href="http://vikslinuxtips.blogspot.jp/2008/06/linux-shell-bashsed.html" title="" target="_blank">Vike'Linux Tips</a>&nbsp;</li>
<li><a href="http://teacup.hatenablog.com/entry/2014/01/28/030126" title="" target="_blank">コップの中の嵐</a>&nbsp;</li>
<li><a href="http://blog.livedoor.jp/s06280hk/archives/1727613.html" title="" target="_blank">シェルスクリプトとかperlとか</a>&nbsp;</li>
</ul>
（ありがとうございます）<br />
<br />
とりあえずfor文を回してみると<br />
<br />

<pre class="brush: javascript;"> for var in *;do mv $var ${var/old/new};done
</pre>
帰ってくるのはいつも<br />

<pre class="brush: javascript;"> usage: mv [-f | -i | -n] [-v] source target
        mv [-f | -i | -n] [-v] source ... directory
</pre>
<br />
と怒られるのみ・・・<br />
結果から言うと今回選択したファイル名が<span style="color: #ff0000;">空白" "を含んでいるのが原因だった</span>みたいです．<br />
これを回避するために上記の文を下記のように訂正<br />

<pre class="brush: javascript;"> for var in *;do mv "$var" "${var/old/new}";done
</pre>
<br />
これで空白を含んでいたもterminalに怒られることなく一括変換できるようになります^^]]> 
    </content>
    <author>
            <name>けい</name>
        </author>
  </entry>
  <entry>
    <id>macguffin.blog.shinobi.jp://entry/1</id>
    <link rel="alternate" type="text/html" href="http://macguffin.blog.shinobi.jp/%E6%9C%AA%E9%81%B8%E6%8A%9E/20140426" />
    <published>2014-04-26T00:43:31+09:00</published> 
    <updated>2014-04-26T00:43:31+09:00</updated> 
    <category term="ざれごと" label="ざれごと" />
    <title>無題</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[<br />
はじめまして．&rdquo;けい&rdquo;といいます．<br />
つれづれと戯れ言を綴っていこうとおもうので，興味があれば幸いです．<br />
<br />
主に数学などについて書いていこうとおもいます．<br />
<br />
2014/4/25 けい]]> 
    </content>
    <author>
            <name>けい</name>
        </author>
  </entry>
</feed>