<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>iPhoneのバッテリー情報を取得するコマンド『batteryinfo』(要JB) へのコメント</title>
	<atom:link href="http://iphone.goodegg.jp/archives/3625/feed" rel="self" type="application/rss+xml" />
	<link>http://iphone.goodegg.jp/archives/3625</link>
	<description>アプリ、アクセサリのレビューと、iPhoneにまつわるまとめ記事をお届けするサイト。</description>
	<lastBuildDate>Sun, 30 May 2010 10:11:55 +0900</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>通りすがり より</title>
		<link>http://iphone.goodegg.jp/archives/3625/comment-page-1#comment-23128</link>
		<dc:creator>通りすがり</dc:creator>
		<pubDate>Sat, 29 May 2010 05:49:39 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.goodegg.jp/?p=3625#comment-23128</guid>
		<description>非常に素晴らしいです。
JBならではのHACKですね。

DB構造は外出しにされては如何でしょうか？</description>
		<content:encoded><![CDATA[							<p>非常に素晴らしいです。<br />
							JBならではのHACKですね。</p>
							<p>DB構造は外出しにされては如何でしょうか？</p>
]]></content:encoded>
	</item>
	<item>
		<title>emanon より</title>
		<link>http://iphone.goodegg.jp/archives/3625/comment-page-1#comment-9117</link>
		<dc:creator>emanon</dc:creator>
		<pubDate>Mon, 21 Dec 2009 04:19:20 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.goodegg.jp/?p=3625#comment-9117</guid>
		<description>takamiiさま

やはりビルド環境の構築が上手くいってないのか、データベースファイルの更新がダメなようです。
バッテリ情報は取得できているので、クロスコンパイル環境の構築を含め、もう一度見直してみます。</description>
		<content:encoded><![CDATA[							<p>takamiiさま</p>
							<p>やはりビルド環境の構築が上手くいってないのか、データベースファイルの更新がダメなようです。<br />
							バッテリ情報は取得できているので、クロスコンパイル環境の構築を含め、もう一度見直してみます。</p>
]]></content:encoded>
	</item>
	<item>
		<title>takamii より</title>
		<link>http://iphone.goodegg.jp/archives/3625/comment-page-1#comment-9063</link>
		<dc:creator>takamii</dc:creator>
		<pubDate>Wed, 16 Dec 2009 15:01:46 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.goodegg.jp/?p=3625#comment-9063</guid>
		<description>いつだったかのバージョンからさらにメモ欄が追加されています。
自分は以下の変更で動作していますが最近のアップデートでDB構造がどう変わってるか調べていないので変なことをしている可能性はあります＾＾

38行目
insert into battery_log values (null,datetime(&#039;now&#039;),?,?,?,0,?,?,?,0,0,null,null,?,null,null);&quot;

136行目の次に以下を追加
sqlite3_bind_int(pstmt,7,percent);</description>
		<content:encoded><![CDATA[							<p>いつだったかのバージョンからさらにメモ欄が追加されています。<br />
							自分は以下の変更で動作していますが最近のアップデートでDB構造がどう変わってるか調べていないので変なことをしている可能性はあります＾＾</p>
							<p>38行目<br />
							insert into battery_log values (null,datetime(&#8217;now&#8217;),?,?,?,0,?,?,?,0,0,null,null,?,null,null);&#8221;</p>
							<p>136行目の次に以下を追加<br />
							sqlite3_bind_int(pstmt,7,percent);</p>
]]></content:encoded>
	</item>
	<item>
		<title>emanon より</title>
		<link>http://iphone.goodegg.jp/archives/3625/comment-page-1#comment-9060</link>
		<dc:creator>emanon</dc:creator>
		<pubDate>Wed, 16 Dec 2009 07:45:16 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.goodegg.jp/?p=3625#comment-9060</guid>
		<description>emanon 09-12-15 (火) 13:39 のコメントした状態で
# /usr/bin/batteryinfo -w /private/var/mobile/Applications/???/Documents/BatteryLog.db
ERROR: sqlite3_step no such column: ’now’

となります。
main.m(Line:38)
“insert into battery_log values (null,datetime(’now’),?,?,?,0,?,?,?,0,0,null,null,0,0);”

datetime(’now’)が原因？
いまさら、かもしれませんが誰か分かる方いらっしゃいますでしょうか？</description>
		<content:encoded><![CDATA[							<p>emanon 09-12-15 (火) 13:39 のコメントした状態で<br />
							# /usr/bin/batteryinfo -w /private/var/mobile/Applications/???/Documents/BatteryLog.db<br />
							ERROR: sqlite3_step no such column: ’now’</p>
							<p>となります。<br />
							main.m(Line:38)<br />
							“insert into battery_log values (null,datetime(’now’),?,?,?,0,?,?,?,0,0,null,null,0,0);”</p>
							<p>datetime(’now’)が原因？<br />
							いまさら、かもしれませんが誰か分かる方いらっしゃいますでしょうか？</p>
]]></content:encoded>
	</item>
	<item>
		<title>emanon より</title>
		<link>http://iphone.goodegg.jp/archives/3625/comment-page-1#comment-9035</link>
		<dc:creator>emanon</dc:creator>
		<pubDate>Tue, 15 Dec 2009 04:39:41 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.goodegg.jp/?p=3625#comment-9035</guid>
		<description>faceさんのコメントを参考に
main.m
“insert into battery_log values (null,datetime(’now’),?,?,?,0,?,?,?,0,0,null,null,0,0);”
でOS3.1.2上でセルフコンパイル出来たのですが、バッテリー状態は取得しているものの、BatteryLog.dbの更新が出来ない。
ただ、コンパイル環境もtoolchain2.0に(適当に)足りないものを足しただけなのでそっちが原因かもしれません。謎。。。</description>
		<content:encoded><![CDATA[							<p>faceさんのコメントを参考に<br />
							main.m<br />
							“insert into battery_log values (null,datetime(’now’),?,?,?,0,?,?,?,0,0,null,null,0,0);”<br />
							でOS3.1.2上でセルフコンパイル出来たのですが、バッテリー状態は取得しているものの、BatteryLog.dbの更新が出来ない。<br />
							ただ、コンパイル環境もtoolchain2.0に(適当に)足りないものを足しただけなのでそっちが原因かもしれません。謎。。。</p>
]]></content:encoded>
	</item>
	<item>
		<title>goodegg より</title>
		<link>http://iphone.goodegg.jp/archives/3625/comment-page-1#comment-7122</link>
		<dc:creator>goodegg</dc:creator>
		<pubDate>Sat, 01 Aug 2009 14:16:50 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.goodegg.jp/?p=3625#comment-7122</guid>
		<description>Twitter上でiPhone OS 3.0でのコンパイル方法を教えて頂きました!

RT  @takamii libgccのdebファイルをiPhoneに転送してdpkgすると、Toolchainもgccも入れれるようになりました。http://bit.ly/UBcbs

本当にありがとう！ &gt; @takamii
まだJB環境作れそうもないので...ものすごく助かります。</description>
		<content:encoded><![CDATA[							<p>Twitter上でiPhone OS 3.0でのコンパイル方法を教えて頂きました!</p>
							<p>RT  @takamii libgccのdebファイルをiPhoneに転送してdpkgすると、Toolchainもgccも入れれるようになりました。http://bit.ly/UBcbs</p>
							<p>本当にありがとう！ &gt; @takamii<br />
							まだJB環境作れそうもないので&#8230;ものすごく助かります。</p>
]]></content:encoded>
	</item>
	<item>
		<title>face より</title>
		<link>http://iphone.goodegg.jp/archives/3625/comment-page-1#comment-6748</link>
		<dc:creator>face</dc:creator>
		<pubDate>Wed, 15 Jul 2009 20:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.goodegg.jp/?p=3625#comment-6748</guid>
		<description>そうなんです。
3GSからなのかわかりませんがlibgccで蹴られてしまいます。
クロスコンパイル環境作るしかなさそうです (;´д｀)</description>
		<content:encoded><![CDATA[							<p>そうなんです。<br />
							3GSからなのかわかりませんがlibgccで蹴られてしまいます。<br />
							クロスコンパイル環境作るしかなさそうです (;´д｀)</p>
]]></content:encoded>
	</item>
	<item>
		<title>aya より</title>
		<link>http://iphone.goodegg.jp/archives/3625/comment-page-1#comment-6530</link>
		<dc:creator>aya</dc:creator>
		<pubDate>Fri, 10 Jul 2009 00:41:29 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.goodegg.jp/?p=3625#comment-6530</guid>
		<description>セルフコンパイルしようと思ったら、libgccが無いよと言われてしまいましたorz
海外のフォーラムをちょっと覗いてみたら、OS3.0では出ていないらしいです…。
batteryinfoが使えないのは結構痛いですねぇ…。</description>
		<content:encoded><![CDATA[							<p>セルフコンパイルしようと思ったら、libgccが無いよと言われてしまいましたorz<br />
							海外のフォーラムをちょっと覗いてみたら、OS3.0では出ていないらしいです…。<br />
							batteryinfoが使えないのは結構痛いですねぇ…。</p>
]]></content:encoded>
	</item>
	<item>
		<title>Lunar@ より</title>
		<link>http://iphone.goodegg.jp/archives/3625/comment-page-1#comment-6493</link>
		<dc:creator>Lunar@</dc:creator>
		<pubDate>Thu, 09 Jul 2009 05:50:43 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.goodegg.jp/?p=3625#comment-6493</guid>
		<description>ご丁寧なレスありがとうございました。
JB化および、リコンパイル心待ちにしています。
それまではなんとか前バージョンで持たせます。
来る日までよろしくおねがいします</description>
		<content:encoded><![CDATA[							<p>ご丁寧なレスありがとうございました。<br />
							JB化および、リコンパイル心待ちにしています。<br />
							それまではなんとか前バージョンで持たせます。<br />
							来る日までよろしくおねがいします</p>
]]></content:encoded>
	</item>
	<item>
		<title>face より</title>
		<link>http://iphone.goodegg.jp/archives/3625/comment-page-1#comment-6471</link>
		<dc:creator>face</dc:creator>
		<pubDate>Wed, 08 Jul 2009 17:29:54 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.goodegg.jp/?p=3625#comment-6471</guid>
		<description>あ、勘違いしました；；
ネイティブコンパイルしていた＝ＪＢしていないので不可能
と言う意味だったのですね。。。大変失礼しました m(_ _)m</description>
		<content:encoded><![CDATA[							<p>あ、勘違いしました；；<br />
							ネイティブコンパイルしていた＝ＪＢしていないので不可能<br />
							と言う意味だったのですね。。。大変失礼しました m(_ _)m</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.824 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-05-30 19:13:04 -->
