<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>なんとなく技術系メモブログ</title>
	<atom:link href="http://blog.monoware.co.jp/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.monoware.co.jp</link>
	<description></description>
	<lastBuildDate>Tue, 08 Apr 2014 01:54:35 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>【Linux】【MongoDB】 MongoDBでのバックアップとリストアについて</title>
		<link>http://blog.monoware.co.jp/archives/23</link>
		<comments>http://blog.monoware.co.jp/archives/23#comments</comments>
		<pubDate>Tue, 08 Apr 2014 01:40:15 +0000</pubDate>
		<dc:creator>管理者</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MongoDB]]></category>

		<guid isPermaLink="false">http://blog.monoware.co.jp/?p=23</guid>
		<description><![CDATA[mongodump/mongorestoreコマンドを用いてMongoDBをバックアップとリストアする。 ・localhostのtest_dbをバックアップする mongodump --host localhost --db test_db ・localhostのtest_dbにあるtest_collectionをバックアップする mongodump --host localhost --db test_db --collection test_collection ・localhostのtest_dbにあるtest_collectionのユーザ&#8221;akio&#8221;をクエリ指定してバックアップする mongodump --host localhost --db test_db --collection test_collection -q {userName : 'akio'} ・バックアップしたtest_dbを全てリストアする mongorestore --host localhost --db test_db ./dump/test_db ・バックアップしたtest_dbのtest_collectionをリストアする mongorestore --host localhost --db test_db --collection test_collection ./dump/test_db/test_collection.bson]]></description>
			<content:encoded><![CDATA[<p>mongodump/mongorestoreコマンドを用いてMongoDBをバックアップとリストアする。</p>
<p>・localhostのtest_dbをバックアップする<br />
<code>mongodump --host localhost --db test_db</code></p>
<p>・localhostのtest_dbにあるtest_collectionをバックアップする<br />
<code>mongodump --host localhost --db test_db --collection test_collection</code></p>
<p>・localhostのtest_dbにあるtest_collectionのユーザ&#8221;akio&#8221;をクエリ指定してバックアップする<br />
<code>mongodump --host localhost --db test_db --collection test_collection -q {userName : 'akio'}</code></p>
<p>・バックアップしたtest_dbを全てリストアする<br />
<code>mongorestore --host localhost --db test_db ./dump/test_db</code></p>
<p>・バックアップしたtest_dbのtest_collectionをリストアする<br />
<code>mongorestore --host localhost --db test_db --collection test_collection  ./dump/test_db/test_collection.bson</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.monoware.co.jp/archives/23/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【Linux】 tarコマンドでパーミッション保持したまま圧縮/解凍する</title>
		<link>http://blog.monoware.co.jp/archives/14</link>
		<comments>http://blog.monoware.co.jp/archives/14#comments</comments>
		<pubDate>Tue, 08 Apr 2014 00:26:18 +0000</pubDate>
		<dc:creator>管理者</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.monoware.co.jp/?p=14</guid>
		<description><![CDATA[tarコマンドでパーミッション保持したまま圧縮/解凍するには「p」オプションを付ける また解凍時はroot権限などでないとパーミッションを持ったまま解凍できない模様。 # パーミッション保持したまま圧縮 tar cvzfp xxxxx.tar.gz ディレクトリ名 # パーミッション保持したまま解凍 tar xvzfp xxxxx.tar.gz]]></description>
			<content:encoded><![CDATA[<p>tarコマンドでパーミッション保持したまま圧縮/解凍するには「p」オプションを付ける<br />
また解凍時はroot権限などでないとパーミッションを持ったまま解凍できない模様。</p>
<p><code><br />
# パーミッション保持したまま圧縮<br />
tar cvzfp xxxxx.tar.gz ディレクトリ名</p>
<p># パーミッション保持したまま解凍<br />
tar xvzfp  xxxxx.tar.gz<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.monoware.co.jp/archives/14/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【Ruby】 外部URLのJSONからデータを読み込む</title>
		<link>http://blog.monoware.co.jp/archives/11</link>
		<comments>http://blog.monoware.co.jp/archives/11#comments</comments>
		<pubDate>Tue, 08 Apr 2014 00:21:53 +0000</pubDate>
		<dc:creator>管理者</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://blog.monoware.co.jp/?p=11</guid>
		<description><![CDATA[外部URLのJSONを直接配列として読み込む。 require 'open-uri' require 'json' json_parse_object = JSON.parse(open("https://graph.facebook.com/me/friends?access_token=XXX").read)]]></description>
			<content:encoded><![CDATA[<p>外部URLのJSONを直接配列として読み込む。</p>
<p><code><br />
require 'open-uri'<br />
require 'json'</p>
<p>json_parse_object = JSON.parse(open("https://graph.facebook.com/me/friends?access_token=XXX").read)<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.monoware.co.jp/archives/11/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【Titanium】 WebViewを用いて値をPOSTする</title>
		<link>http://blog.monoware.co.jp/archives/5</link>
		<comments>http://blog.monoware.co.jp/archives/5#comments</comments>
		<pubDate>Tue, 08 Apr 2014 00:17:28 +0000</pubDate>
		<dc:creator>管理者</dc:creator>
				<category><![CDATA[Titanium]]></category>

		<guid isPermaLink="false">http://blog.monoware.co.jp/?p=5</guid>
		<description><![CDATA[Ti.Network.createHTTPClient()を使用して値をPOSTし、返答されたhtmlをwebviewに入れ込む。 var win1 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff' }); var webview = Ti.UI.createWebView(); win1.add(webview); var xhr = Ti.Network.createHTTPClient(); xhr.open('POST', 'http://www.snee.com/xml/crud/posttest.cgi'); xhr.onload = function () { webview.html = this.responseText; }; xhr.send({ fname: 'value', lname: 'value_two' }); win1.open(); 参考：http://developer.appcelerator.com/question/121380/post-variable-to-webview]]></description>
			<content:encoded><![CDATA[<p>Ti.Network.createHTTPClient()を使用して値をPOSTし、返答されたhtmlをwebviewに入れ込む。</p>
<p><code><br />
var win1 = Titanium.UI.createWindow({<br />
    title:'Tab 1',<br />
    backgroundColor:'#fff'<br />
});</p>
<p>var webview = Ti.UI.createWebView();<br />
win1.add(webview);</p>
<p>var xhr = Ti.Network.createHTTPClient();<br />
xhr.open('POST', 'http://www.snee.com/xml/crud/posttest.cgi');<br />
xhr.onload = function () {<br />
    webview.html = this.responseText;<br />
};<br />
xhr.send({<br />
    fname: 'value',<br />
    lname: 'value_two'<br />
});</p>
<p>win1.open();</code></p>
<p>参考：<a href="http://developer.appcelerator.com/question/121380/post-variable-to-webview" target="_blank">http://developer.appcelerator.com/question/121380/post-variable-to-webview</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.monoware.co.jp/archives/5/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
