<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>生存戦略！</title>
<link>https://ameblo.jp/confett1s/</link>
<atom:link href="https://rssblog.ameba.jp/confett1s/rss20.xml" rel="self" type="application/rss+xml" />
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
<description>Web系エンジニアの日々のメモ帳</description>
<language>ja</language>
<item>
<title>centosにdockerをinstall</title>
<description>
<![CDATA[ <pre>curl -sSL https://get.docker.com/ | shsudo usermod -aG docker centos</pre>
]]>
</description>
<link>https://ameblo.jp/confett1s/entry-12193581736.html</link>
<pubDate>Thu, 25 Aug 2016 14:45:07 +0900</pubDate>
</item>
<item>
<title>reading initial communication packet</title>
<description>
<![CDATA[ <div>ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 102</div><div><br>以下で解決</div><br><pre>#vi&nbsp;/etc/hosts.allowmysqld: ALL: allowmysql.server restart</pre><br><br>参考：<a></a><a href="http://libitte.hatenablog.jp/entry/20160405/1459829218" target="" title="">http://libitte.hatenablog.jp/entry/20160405/1459829218</a><br><br>
]]>
</description>
<link>https://ameblo.jp/confett1s/entry-12187989303.html</link>
<pubDate>Sun, 07 Aug 2016 02:12:14 +0900</pubDate>
</item>
<item>
<title>The used command is not allowed with this MySQL</title>
<description>
<![CDATA[ <p>AWS RDS MySQLでCSV Importしようとしたら掲題のエラーが出て怒られた</p><pre>mysql -uxxx -pxxx -h xxx.rds.amazonaws.com -P xxxxmysql&gt; LOAD DATA LOCAL INFILE '/xxx/yyy.csv' INTO TABLE zzzzz FIELDS TERMINATED BY ',' ENCLOSED BY '"';ERROR 1148 (42000): The used command is not allowed with this MySQL version</pre><p>&nbsp;</p><p>どうやらMySQLログイン時にLOAD DATA LOCALコマンドを許可するオプションをつけないとだめらしい。そうか。</p><p>&nbsp;</p><p>以下で解決</p><pre>mysql -uxxx -pxxx -h xxx.rds.amazonaws.com -P xxxx --local-infile=1</pre><p>&nbsp;</p><p>&nbsp;</p><p>参考：<a href="http://oshiete.goo.ne.jp/qa/1030943.html">http://oshiete.goo.ne.jp/qa/1030943.html</a></p>
]]>
</description>
<link>https://ameblo.jp/confett1s/entry-12161851874.html</link>
<pubDate>Thu, 19 May 2016 11:24:57 +0900</pubDate>
</item>
<item>
<title>pyenv localが効かない時</title>
<description>
<![CDATA[ <p>version間で互換性の低いpythonやrubyでは</p><p>多数のversionを切り替えて作業することが多々ある</p><p>&nbsp;</p><p>versionを多数入れて簡単に切り替えようという流れで</p><p>pythonのversion管理ツールにpyenvというものがある</p><p>&nbsp;</p><p>そのpyenvでのお話</p><pre>#カレントディレクトリのpythonを指定versionに固定$ pyenv local 2.7.10#カレントに.python-versionが作成される$ cat .python-version2.7.10#が、切り替わらない...$ python -VPython 3.6.0a0#セットされているversionを確認$ pyenv versions  system  2.7.10* 3.6-dev (set by PYENV_VERSION environment variable)</pre><p>&nbsp;</p><p>どうやらPYENV_VERSIONが悪さをしているっぽい</p><p>こいつがいると、globalやlocalよりも優先させてバージョンを設定するらしい</p><pre>#PYENV_VERSIONの削除$ pyenv shell --unset#改めて確認$ pyenv versions  system* 2.7.10 (set by /xxx/.python-version)  3.5.0  3.6-dev$ python -VPython 2.7.10</pre><p>&nbsp;</p><p>解決！</p><p>&nbsp;</p><p>参考：<a target="_blank" href="http://arairyoya.hatenablog.jp/entry/2015/01/24/031158">pyenvのインストールと簡単な使い方</a></p>
]]>
</description>
<link>https://ameblo.jp/confett1s/entry-12157601467.html</link>
<pubDate>Fri, 06 May 2016 18:37:19 +0900</pubDate>
</item>
<item>
<title>【Linux】sudoユーザー追加方法</title>
<description>
<![CDATA[ <pre>$ visudo</pre><br>して、<br><br><pre>root ALL=(ALL) ALL　　　#これの下に<br>ユーザー名 ALL=(ALL) ALL</pre><br>おまけ：<br>パスワードなしでsudoが使いたいとき↓<pre>$&nbsp;ユーザー名 ALL=(ALL) <b>NOPASSWD: ALL</b></pre>
]]>
</description>
<link>https://ameblo.jp/confett1s/entry-11894057928.html</link>
<pubDate>Mon, 14 Jul 2014 16:27:59 +0900</pubDate>
</item>
<item>
<title>【Linux】ディレクトリ名のカタカナを英語にする</title>
<description>
<![CDATA[ <br><a href="http://ameblo.jp/confett1s/entry-11834708313.html" target="" title="">前記事：【mac】ディレクトリ名のカタカナを英語にする</a><pre>$ LANG=C xdg-user-dirs-gtk-update</pre><br>ウィンドウがわきわき出てくるのでUpdateなんちゃらをクリック！<br><br>終わり！
]]>
</description>
<link>https://ameblo.jp/confett1s/entry-11894043004.html</link>
<pubDate>Mon, 14 Jul 2014 15:55:04 +0900</pubDate>
</item>
<item>
<title>【mac】python文字コード対策【pyenv】</title>
<description>
<![CDATA[ <br>プログラミング言語Pythonといえば！<br>書きやすさ読みやすさバツグンなのに、デフォルトの文字エンコがASCIIで、日本語の処理してるとなんか文字化けたりすることが多いイメージ。。。もったいない。。。<br><br>そこで！<br><span style="font-weight: bold;"><br>PythonのデフォルトをUTF-8に固定する方法！</span><br><br>pyenv、anacondaが潜んでいる方限定？<br><br><br>/usr/local/var/lib/pyenv/versions/2.7.6/lib/python2.7/site-packages/に<br>以下の内容でsitecustomize.pyを追加する<br><pre>import sys<br>sys.setdefaultencoding('utf-8')</pre><br>うまく設定できたかの確認方法は、<br><pre>% python<br>&gt;&gt;&gt; import sys<br>&gt;&gt;&gt; sys.getdefaultencoding()<br>'utf-8'</pre><br><br>設定できてないとutf-8のとこが'ascii'って表示されます！<br><br>参考：<br><a></a><a href="http://nltk.googlecode.com/svn/trunk/doc/book-jp/ch12.html" target="" title="">Python による日本語自然言語処理</a><br><br>
]]>
</description>
<link>https://ameblo.jp/confett1s/entry-11878798787.html</link>
<pubDate>Mon, 16 Jun 2014 04:11:35 +0900</pubDate>
</item>
<item>
<title>僕らの正規表現</title>
<description>
<![CDATA[ <div>すごいTwitter寄りですね・・・<br><br>#<br>#最短マッチ</div><div>@.*?[ ]</div><div>#@ユーザーをとる</div><div>@[a-z0-9_]+</div><div>#ハッシュをとる</div><div>[a-z0-9_]+</div><div>#URLをとる</div><div>(https?|ftp)(:¥/¥/[-_.!~*¥'()a-zA-Z0-9;¥/?:¥@&amp;=+¥$,%#]+)</div><div>#半角文字</div><div>[ -~｡-ﾟ]</div><div>#全角文字</div><div>[^ -~｡-ﾟ]</div><div>文全体半角文字</div><div>^[ -~｡-ﾟ]+$</div><div>#URL取り</div><div>(http:|https:)+(¥/¥/t.co¥/¥w*)</div><div><span style="line-height: 1.5;">#先頭数字＋アルファベット</span><br></div><div>^(¥d|[a-zA-Z])+</div><div>#改行取り</div><div>(^¥n)|([ ]+¥n)|([　]+¥n)</div><div>#否定先読み...(.*)にマッチするものただし2013以外→(^2013)にマッチしないもの</div><div>^(?!2013)...*</div><div>#201～+0900,RT...と続く非公式RTの除去用</div><div>^20.*0900,RT.*</div>
]]>
</description>
<link>https://ameblo.jp/confett1s/entry-11874610249.html</link>
<pubDate>Mon, 09 Jun 2014 16:28:46 +0900</pubDate>
</item>
<item>
<title>【mac】ディレクトリ名のカタカナを英語にする</title>
<description>
<![CDATA[ 日本語版macのディレクトリ名はカタカナだけど、きもちよさが足りない！！という方に。<br><br>...before...<br>デスクトップ<br>アプリケーション<br>書類<br>ダウンロード<br>...<br><br>↓↓↓<br><br>...after...<br>Desktop<br>Applications<br>Documents<br>Downloads<br>...<br>こんなかんじにできます！<br>ターミナルで以下のコマンドを実行<br><br><pre>$ cd /System/Library/CoreServices/SystemFolderLocalizations/ja.lproj$ sudo mv SystemFolderLocalizations.strings SystemFolderLocalizations.strings.back$ sudo cp ../en.lproj/SystemFolderLocalizations.strings .$ killall Finder</pre><br>これでOK！！　書類もちゃんとDocumentsになっててきもちいい。<br><br><span style="line-height: 1.5;">参考：</span><a href="http://qiita.com/is0me/items/0b7b846f1f0860629950" target="" title="" style="line-height: 1.5;">Macのディレクトリを英語にする</a>
]]>
</description>
<link>https://ameblo.jp/confett1s/entry-11834708313.html</link>
<pubDate>Sun, 27 Apr 2014 01:06:07 +0900</pubDate>
</item>
<item>
<title>【mac】vimコマンドでクリップボードにコピー</title>
<description>
<![CDATA[ <a href="http://ameblo.jp/confett1s/entry-11499566067.html" target="" title="">vim上でコピーアンドペーストをする方法！</a>で紹介した、<br>Y(コピー開始)+V(コピー範囲指定)+P(ペースト)。<br><br>これは、同じvim内（プログラム内）でしかコピペできない。<br><br>隣のウインドウにコードを貼付けたい！ブログに貼りたい！<br><br>そんな君に！！！！！<br><br>参考：<br><a href="http://qiita.com/b4b4r07/items/6f0ac4c5ae3edc10ce3a" target="" title="">Mac の Vim (CUI) でクリップボードを有効化する</a><br><br>上の記事の内容をやり終えたら、記事の最後の方にあるように、エイリアスの設定をしないといけない。<br><br>.bashrcを開いて、、、<pre>$ vim ~/.bashrc</pre><br>エイリアスを書き込んで、、、<pre>alias vim='/usr/local/bin/vim'</pre><br>保存しておわり！いつものようにvimでコピー(V+Y)すると、ナイスクリップボード！<br>どこにでもはりつけできます！ヤッター！！！<br>
]]>
</description>
<link>https://ameblo.jp/confett1s/entry-11826597120.html</link>
<pubDate>Fri, 18 Apr 2014 15:45:49 +0900</pubDate>
</item>
</channel>
</rss>
