<?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-6577008637886304446</id><updated>2017-07-05T23:18:12.445+09:00</updated><title type='text'>ヘッポコプログラマー日記</title><subtitle type='html'>培った知識を世の中のために</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://x-moemoe.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6577008637886304446/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://x-moemoe.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>x-moe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6577008637886304446.post-1310179627332228094</id><published>2017-07-05T23:18:00.000+09:00</published><updated>2017-07-05T23:18:12.468+09:00</updated><title type='text'>ウェザーマスター　スクエアタープ L （2016年モデル）使用感レビュー</title><content type='html'>先日のキャンプで、買ったばかりのウェザーマスターシリーズの最新のスクエアタープを利用してきました。&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;コールマンのサイトよりタープの情報&lt;br /&gt;&lt;blockquote&gt;[NEW]2016年秋冬発売アイテム&lt;br /&gt;抜群の開放感で広々空間を演出　グループでのキャンプにも大活躍の&lt;br /&gt;横幅550cmワイドスクエアタープ&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;■キャンプを快適にする充実の装備&lt;br /&gt;■550cmの大型サイズで広々空間を演出&lt;br /&gt;■2家族が一緒のリビングで過ごせるラージサイズ&lt;br /&gt;■大きく使う事もでき、サイドのポールの位置を変えれば日陰や目線隠しの暖簾としても使用可能に&lt;br /&gt;&lt;br /&gt;●使用時サイズ：約550×450×280（h）cm&lt;br /&gt;●収納時サイズ：約φ20×76cm&lt;br /&gt;●重量：約10.5kg&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;と言った形で、とにかくでかい。びっちり詰めれば16人座れるそうだ。&lt;br /&gt;&lt;br /&gt;タープは始めて組み立ててみたが、迷うこと無く10分ほどで張ることができた。&lt;br /&gt;&lt;br /&gt;使用感もとにかく広々していて最高。大人6人子供４人で利用したがまだ余裕があると感じた。&lt;br /&gt;&lt;br /&gt;ヘキサタープとかなり迷ったが、スクエアタープにしてよかった。とにかく広い！&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;実際に張った状態はこんな形。&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-LZ3fwy6hQQY/WVzzVgLAtfI/AAAAAAADSBk/ErueO3wnGNgUNU61wxD5NAsvbGcAtQSVgCKgBGAs/s1600/IMG_1171.JPG&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://1.bp.blogspot.com/-LZ3fwy6hQQY/WVzzVgLAtfI/AAAAAAADSBk/ErueO3wnGNgUNU61wxD5NAsvbGcAtQSVgCKgBGAs/s320/IMG_1171.JPG&quot; width=&quot;320&quot; height=&quot;240&quot; data-original-width=&quot;1600&quot; data-original-height=&quot;1200&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ネットではなぜかほとんど情報が見つからなかったので、少しでも情報になればと。&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://x-moemoe.blogspot.com/feeds/1310179627332228094/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://x-moemoe.blogspot.com/2017/07/l-2016.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6577008637886304446/posts/default/1310179627332228094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6577008637886304446/posts/default/1310179627332228094'/><link rel='alternate' type='text/html' href='http://x-moemoe.blogspot.com/2017/07/l-2016.html' title='ウェザーマスター　スクエアタープ L （2016年モデル）使用感レビュー'/><author><name>x-moe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://1.bp.blogspot.com/-LZ3fwy6hQQY/WVzzVgLAtfI/AAAAAAADSBk/ErueO3wnGNgUNU61wxD5NAsvbGcAtQSVgCKgBGAs/s72-c/IMG_1171.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6577008637886304446.post-2563363010459929754</id><published>2017-06-13T10:01:00.002+09:00</published><updated>2017-06-13T10:01:27.885+09:00</updated><title type='text'>Android Studio で Firebaseと接続してsyncしたら「No clients were able to be added to your Firebase project for the following reasons」エラー</title><content type='html'>Android Studioの2.2以降で、Firebaseと接続出来る機能があるが、それがエラーとなり接続できなかった。&lt;br /&gt;一つ目にハマったのが、Android Studioのウィンドウの一番右上の虫眼鏡の右側には実はログインする機能があり、そのログインしているアカウントと、Firebaseに登録しているGoogleのアカウントが異なったため。&lt;br /&gt;&lt;br /&gt;もう一つは、以下のエラー&lt;br /&gt;&lt;blockquote&gt;No clients were able to be added to your Firebase project for the following reasons:&lt;br /&gt;An app with this package name and SHA1 is already connected to a Google project. If you have used a Google API previously, please select that project in the Connect to an existing project list. &lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;google-services.jsonをFirebaseのサイトから最新版をダウンロードし、配置したらエラーが出なくなった。&lt;br /&gt;&lt;br /&gt;どうやらローカルのgoogle-services.jsonが古いと上記エラーが発生することもあるようだ&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://x-moemoe.blogspot.com/feeds/2563363010459929754/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://x-moemoe.blogspot.com/2017/06/android-studio-firebasesyncno-clients.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6577008637886304446/posts/default/2563363010459929754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6577008637886304446/posts/default/2563363010459929754'/><link rel='alternate' type='text/html' href='http://x-moemoe.blogspot.com/2017/06/android-studio-firebasesyncno-clients.html' title='Android Studio で Firebaseと接続してsyncしたら「No clients were able to be added to your Firebase project for the following reasons」エラー'/><author><name>x-moe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6577008637886304446.post-7425829821138223354</id><published>2017-05-26T16:53:00.002+09:00</published><updated>2017-05-26T16:53:49.750+09:00</updated><title type='text'>Android Google+のログインで Status{statusCode=DEVELOPER_ERROR, resolution=null}が発生</title><content type='html'>久しぶりにAndroid の Google+でログイン機能をテストしていたら、エラーも出ずにログインできない状態に。&lt;br /&gt;&lt;br /&gt;調査をしたところ&lt;br /&gt;private void handleSignInResult(GoogleSignInResult result) {&lt;br /&gt;}&lt;br /&gt;の関数内でresult.isSuccess()がfalseを返している。&lt;br /&gt;&lt;br /&gt;以下の形でログを吐いてみたところ&lt;br /&gt;Logging.e(result.getStatus().toString());&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Status{statusCode=DEVELOPER_ERROR, resolution=null}&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;というエラーが発生していた。&lt;br /&gt;&lt;br /&gt;調べていたら、Androidをdebugモードでビルドしていたのが原因だった。忘れてた。。releaseモードで動かさないとまともにGoogle+でのログインは動かないのだった。。。&lt;br /&gt;&lt;br /&gt;早速マーケットに上げるときと同じ手順でapkファイルを作成し、Androidの実機でインストールで動くようになった！</content><link rel='replies' type='application/atom+xml' href='http://x-moemoe.blogspot.com/feeds/7425829821138223354/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://x-moemoe.blogspot.com/2017/05/android-google-statusstatuscodedevelope.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6577008637886304446/posts/default/7425829821138223354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6577008637886304446/posts/default/7425829821138223354'/><link rel='alternate' type='text/html' href='http://x-moemoe.blogspot.com/2017/05/android-google-statusstatuscodedevelope.html' title='Android Google+のログインで Status{statusCode=DEVELOPER_ERROR, resolution=null}が発生'/><author><name>x-moe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6577008637886304446.post-1916056085718104728</id><published>2015-02-05T16:03:00.001+09:00</published><updated>2015-02-05T16:07:00.976+09:00</updated><title type='text'>AWSの固定IPアドレスのリミットを解除する方法</title><content type='html'>個人のサーバーをAWSで利用しているのだが、デフォルトの状態だと固定IPアドレスは5つまでしか取得できず以下のエラーが発生する。&lt;br /&gt;&lt;br /&gt;An error occurred while attempting to allocate the IP address&lt;br /&gt;The maximum number of addresses has been reached.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-HMloLcNdiEg/VNMSqFGZleI/AAAAAAABm34/EtV8ow00SZI/s1600/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%2B2015-02-05%2B15.49.40.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/-HMloLcNdiEg/VNMSqFGZleI/AAAAAAABm34/EtV8ow00SZI/s320/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%2B2015-02-05%2B15.49.40.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;そんな時はAmazonに追加申請をすれば良いのだが、勝手にハードルが高いと思っていたのだが、ものの数十分でIPが追加される。&lt;br /&gt;手順は以下&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://aws.amazon.com/jp/contact-us/eip_limit_request/&quot; target=blank&gt;Amazon固定IP追加申請画面&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AWSマネージメントコンソールにログインした状態で上記URLを開く&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;各項目に以下を設定　（以下が英語で表示されている方は、画面上に言語変更のプルダウンがあるのでそこから日本語を選択）&lt;br /&gt;&lt;br /&gt;------------------------------------&lt;br /&gt;&lt;br /&gt;CC　：　メールアドレス&lt;br /&gt;&lt;br /&gt;内容：　サービス制限の増加&lt;br /&gt;&lt;br /&gt;制限タイプ　：　Elastic IPs -EC2 Classic&lt;br /&gt;&lt;br /&gt;リクエスト1　リージョン　：　固定IP追加したいリージョンを選択&lt;br /&gt;制限　　　　：　EC2-Classic Elastic IP アドレス上限&lt;br /&gt;新しい制限値：　変更したい上限値。（現在５だったので１０と入力しました）&lt;br /&gt;リクエスト２&lt;br /&gt;→特に設定なし&lt;br /&gt;&lt;br /&gt;申請理由の説明　：　追加理由を記入。&lt;br /&gt;わたしの場合は「弊社の新サービスを構築するためにIPアドレスが必要です。」としておきました&lt;br /&gt;&lt;br /&gt;連絡方法　：　WEB&lt;br /&gt;&lt;br /&gt;------------------------------------&lt;br /&gt;&lt;br /&gt;上記で、送信！&lt;br /&gt;&lt;br /&gt;平日の14時くらいに申請したところ、20分ほどで&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;さきほどVPC EIPの上限を緩和させていただきました。&lt;br /&gt;現在の上限は10でございます。&lt;br /&gt;&lt;br /&gt;※ご利用いただけるまでに10分ほどお時間がかかる可能性がございます。&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;というメールがきて完了！&lt;br /&gt;以外に楽でびっくり&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://x-moemoe.blogspot.com/feeds/1916056085718104728/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://x-moemoe.blogspot.com/2015/02/awsip.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6577008637886304446/posts/default/1916056085718104728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6577008637886304446/posts/default/1916056085718104728'/><link rel='alternate' type='text/html' href='http://x-moemoe.blogspot.com/2015/02/awsip.html' title='AWSの固定IPアドレスのリミットを解除する方法'/><author><name>x-moe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-HMloLcNdiEg/VNMSqFGZleI/AAAAAAABm34/EtV8ow00SZI/s72-c/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%2B2015-02-05%2B15.49.40.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6577008637886304446.post-3763995769727394245</id><published>2014-02-09T22:48:00.002+09:00</published><updated>2014-02-09T22:54:08.012+09:00</updated><title type='text'>[Android] twitter4jのgetOAuthRequestTokenでTwitterExceptionエラー</title><content type='html'>Androidアプリでtwitter4jを使いtwitterにログインしていたが、2014年1月から突然投稿できなくなった。&lt;br /&gt;エラー内容を追って見ると、getOAuthRequestTokenでTwitterExceotionが発生。&lt;br /&gt;エラーの内容は以下&lt;br /&gt;&lt;blockquote&gt;403:The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits (https://support.twitter.com/articles/15364-about-twitter-limits-update-api-dm-and-following).&lt;br /&gt;&lt;/blockquote&gt;エラー内容に記載してあるサイト（https://support.twitter.com/articles/15364-about-twitter-limits-update-api-dm-and-following）にアクセスするもtwitterのリミット制限に引っかかったようなエラー内容。&lt;br /&gt;調査をしているとhttpsモードじゃないとエラーとなるような制限が加わったとかいう情報を海外で発見。&lt;br /&gt;twitter4jでどうやってSSLにするのかよく分からなかったが、ConfigurationBuilderオプションでSSLモードが指定できることを発見。試してみたところうまく動いた。&lt;br /&gt;&lt;br /&gt;修正前［ツイッターログイン部分］&lt;br /&gt;&lt;blockquote&gt;ConfigurationBuilder cbuilder = new ConfigurationBuilder();&lt;br /&gt;cbuilder.setOAuthConsumerKey(StringUtil.TWEET_CONSUMER_KEY);&lt;br /&gt;cbuilder.setOAuthConsumerSecret(StringUtil.TWEET_CONSUMER_SECRET);&lt;br /&gt;Configuration conf = cbuilder.build();&lt;br /&gt;mOauth = new OAuthAuthorization(conf);&lt;br /&gt;mOauth.setOAuthAccessToken(null); &lt;br /&gt;String authUrl = null;&lt;br /&gt;try {&lt;br /&gt;authUrl = mOauth.getOAuthRequestToken(StringUtil.TWEET_CALLBACK_URL).getAuthorizationURL();&lt;br /&gt;} catch (Exception e) {&lt;br /&gt;Logging.e(e.toString());&lt;br /&gt;return;&lt;br /&gt;}&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;修正後&lt;br /&gt;&lt;blockquote&gt;ConfigurationBuilder cbuilder = new ConfigurationBuilder();&lt;br /&gt;cbuilder.setUseSSL(true);//2014年よりこれが無いとエラーとなる仕様に変わった。&lt;br /&gt;cbuilder.setOAuthConsumerKey(StringUtil.TWEET_CONSUMER_KEY);&lt;br /&gt;cbuilder.setOAuthConsumerSecret(StringUtil.TWEET_CONSUMER_SECRET);&lt;br /&gt;Configuration conf = cbuilder.build();&lt;br /&gt;mOauth = new OAuthAuthorization(conf);&lt;br /&gt;mOauth.setOAuthAccessToken(null); // これをやらないと下記getOAuthRequestToken()で例外が発生する&lt;br /&gt;String authUrl = null;&lt;br /&gt;try {&lt;br /&gt;authUrl = mOauth.getOAuthRequestToken(StringUtil.TWEET_CALLBACK_URL).getAuthorizationURL();&lt;br /&gt;} catch (Exception e) {&lt;br /&gt;Logging.e(e.toString());&lt;br /&gt;return;&lt;br /&gt;}&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;同じく投稿時にも同様のエラーが出ていたため修正！&lt;br /&gt;&lt;br /&gt;修正前&lt;br /&gt;&lt;blockquote&gt;//メッセージを投稿&lt;br /&gt;ConfigurationBuilder confbuilder = new ConfigurationBuilder();&lt;br /&gt;confbuilder.setOAuthAccessToken(oauthToken).setOAuthAccessTokenSecret(oauthTokenSecret)&lt;br /&gt;.setOAuthConsumerKey(StringUtil.TWEET_CONSUMER_KEY).setOAuthConsumerSecret(StringUtil.TWEET_CONSUMER_SECRET);&lt;br /&gt;//メッセージの取得&lt;br /&gt;Twitter twitter = new TwitterFactory(confbuilder.build()).getInstance();&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;修正後&lt;br /&gt;&lt;blockquote&gt;//メッセージを投稿&lt;br /&gt;ConfigurationBuilder confbuilder = new ConfigurationBuilder();&lt;br /&gt;confbuilder.setOAuthAccessToken(oauthToken).setOAuthAccessTokenSecret(oauthTokenSecret)&lt;br /&gt;.setOAuthConsumerKey(StringUtil.TWEET_CONSUMER_KEY).setOAuthConsumerSecret(StringUtil.TWEET_CONSUMER_SECRET);&lt;br /&gt;confbuilder.setUseSSL(true);//2014年よりこれが無いとエラーとなる仕様に変わった。&lt;br /&gt;//メッセージの取得&lt;br /&gt;Twitter twitter = new TwitterFactory(confbuilder.build()).getInstance();&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;上記で無事にエラー無く動作することを確認。</content><link rel='replies' type='application/atom+xml' href='http://x-moemoe.blogspot.com/feeds/3763995769727394245/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://x-moemoe.blogspot.com/2014/02/android-twitter4jgetoauthrequesttokentw.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6577008637886304446/posts/default/3763995769727394245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6577008637886304446/posts/default/3763995769727394245'/><link rel='alternate' type='text/html' href='http://x-moemoe.blogspot.com/2014/02/android-twitter4jgetoauthrequesttokentw.html' title='[Android] twitter4jのgetOAuthRequestTokenでTwitterExceptionエラー'/><author><name>x-moe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6577008637886304446.post-1431600554176506938</id><published>2011-03-16T01:05:00.000+09:00</published><updated>2011-03-16T01:05:43.326+09:00</updated><title type='text'>logcatが表示されない場合</title><content type='html'>以下を実行するとlogcatが表示されるようになる&lt;br /&gt;adb kill-server&lt;br /&gt;adb start-server&lt;br /&gt;adb logcat -c&lt;br /&gt;eclipse再起動</content><link rel='replies' type='application/atom+xml' href='http://x-moemoe.blogspot.com/feeds/1431600554176506938/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://x-moemoe.blogspot.com/2011/03/logcat.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6577008637886304446/posts/default/1431600554176506938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6577008637886304446/posts/default/1431600554176506938'/><link rel='alternate' type='text/html' href='http://x-moemoe.blogspot.com/2011/03/logcat.html' title='logcatが表示されない場合'/><author><name>x-moe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6577008637886304446.post-6828258242589481498</id><published>2011-02-20T17:36:00.002+09:00</published><updated>2011-02-20T17:36:36.388+09:00</updated><title type='text'>PostGISのインストール手順(centos)</title><content type='html'>postgisをcentosに入れる作業の備忘録&lt;br /&gt;&lt;br /&gt;wget http://postgis.refractions.net/download/postgis-1.5.2.tar.gz&lt;br /&gt;&lt;br /&gt;解凍してconfiugreを実行&lt;br /&gt;./configure &lt;br /&gt;&lt;br /&gt;以下のエラー&lt;br /&gt;configure: error: could not find xml2-config from libxml2 within the current path. You may need to try re-running configure with a --with-xml2config parameter.&lt;br /&gt;&lt;br /&gt;yumを使って、最新版にアップデート&lt;br /&gt;yum install libxml2&lt;br /&gt;yum install libxml2-devel&lt;br /&gt;&lt;br /&gt;もう一度挑戦&lt;br /&gt;./configure &lt;br /&gt;&lt;br /&gt;さっきのエラーは突破したが別のエラー&lt;br /&gt;configure: error: could not find geos-config within the current path. You may need to try re-running configure with a --with-geosconfig parameter.&lt;br /&gt;&lt;br /&gt;geosをゲット&lt;br /&gt;wget http://download.osgeo.org/geos/geos-3.2.2.tar.bz2&lt;br /&gt;&lt;br /&gt;解凍してconfigure&lt;br /&gt;./configure&lt;br /&gt;make&lt;br /&gt;make install&lt;br /&gt;&lt;br /&gt;もう一度postgisのインストールに挑戦&lt;br /&gt;./configure&lt;br /&gt;&lt;br /&gt;またエラー&lt;br /&gt;configure: error: could not find proj_api.h - you may need to specify the directory of a PROJ.4 installation using --with-projdir&lt;br /&gt;&lt;br /&gt;projをゲット&lt;br /&gt;wget ftp://ftp.remotesensing.org/proj/proj-4.7.0.tar.gz&lt;br /&gt;&lt;br /&gt;解凍してconfigure&lt;br /&gt;./configure&lt;br /&gt;make&lt;br /&gt;make install&lt;br /&gt;&lt;br /&gt;もう一度postgisのインストールに挑戦&lt;br /&gt;./configure&lt;br /&gt;やっと成功！！&lt;br /&gt;make&lt;br /&gt;make install&lt;br /&gt;&lt;br /&gt;新しい PostgreSQL 手続き言語の定義&lt;br /&gt;createlang plpgsql DB名&lt;br /&gt;&lt;br /&gt;SQLを実行する&lt;br /&gt;psql -d soul -f /usr/local/src/postgis-1.5.2/postgis/postgis.sql&lt;br /&gt;SET&lt;br /&gt;BEGIN&lt;br /&gt;ERROR:  could not load library &quot;/usr/local/pgsql/lib/postgis-1.5.so&quot;: libgeos_c.so.1: cannot open shared object file: No such file or directory&lt;br /&gt;&lt;br /&gt;速攻でエラーが発生。。&lt;br /&gt;&lt;br /&gt;pathが通ってないようだ。&lt;br /&gt;以下のファイルを作成&lt;br /&gt;vi /etc/ld.so.conf.d/geos.conf&lt;br /&gt;&lt;br /&gt;ファイル内に、以下を記載&lt;br /&gt;/usr/local/lib&lt;br /&gt;&lt;br /&gt;以下のコマンドを実行&lt;br /&gt;/sbin/ldconfig&lt;br /&gt;&lt;br /&gt;再チャレンジ&lt;br /&gt;psql -d soul -f /usr/local/src/postgis-1.5.2/postgis/postgis.sql&lt;br /&gt;&lt;br /&gt;成功！&lt;br /&gt;&lt;br /&gt;実際に確認してみる&lt;br /&gt;-------------------------&lt;br /&gt;soul=# select postgis_full_version();                                          postgis_full_version                                      &lt;br /&gt; POSTGIS=&quot;1.5.2&quot; GEOS=&quot;3.2.2-CAPI-1.6.2&quot; PROJ=&quot;Rel. 4.7.1, 23 September 2009&quot; LIBXML=&quot;2.6.26&quot; USE_ST&lt;br /&gt;ATS&lt;br /&gt;(1 row)&lt;br /&gt;--------------------------&lt;br /&gt;&lt;br /&gt;うまく行ってるっぽい</content><link rel='replies' type='application/atom+xml' href='http://x-moemoe.blogspot.com/feeds/6828258242589481498/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://x-moemoe.blogspot.com/2011/02/postgiscentos.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6577008637886304446/posts/default/6828258242589481498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6577008637886304446/posts/default/6828258242589481498'/><link rel='alternate' type='text/html' href='http://x-moemoe.blogspot.com/2011/02/postgiscentos.html' title='PostGISのインストール手順(centos)'/><author><name>x-moe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6577008637886304446.post-5126448266616165338</id><published>2011-02-15T00:19:00.002+09:00</published><updated>2011-02-15T00:29:09.419+09:00</updated><title type='text'>Androidの実機でステップ実行する方法</title><content type='html'>eclipceでデバックする際にAndroidの実機でステップ実行する方法です。&lt;br /&gt;&lt;br /&gt;AndroidManifest.xmlのapplicationタグに以下を追加するだけ&lt;br /&gt;&lt;br /&gt;&amp;lt;application android:debuggable=&quot;true&quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;それと実機側の設定でデバックモードとする必要もあります</content><link rel='replies' type='application/atom+xml' href='http://x-moemoe.blogspot.com/feeds/5126448266616165338/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://x-moemoe.blogspot.com/2011/02/android.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6577008637886304446/posts/default/5126448266616165338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6577008637886304446/posts/default/5126448266616165338'/><link rel='alternate' type='text/html' href='http://x-moemoe.blogspot.com/2011/02/android.html' title='Androidの実機でステップ実行する方法'/><author><name>x-moe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6577008637886304446.post-7145909987992834074</id><published>2010-02-05T11:44:00.000+09:00</published><updated>2010-02-05T11:44:22.375+09:00</updated><title type='text'>サーバーでjqueryのPage Scrollerがうまく動作しない</title><content type='html'>jqueryがサーバーでうまく動作せずハマった。&lt;br /&gt;他のサイトで動いているサンプルスクリプトをＤＬしサーバーにアップしても動かない。&lt;br /&gt;ソースも文字コードも、何も変えてない。&lt;br /&gt;&lt;br /&gt;しかしローカル環境で動かしてみると正常に動作する。&lt;br /&gt;悩むこと2時間。&lt;br /&gt;ハッと気づくことが。&lt;br /&gt;&lt;br /&gt;自宅環境はapacheのhttpd.confの設定でVirtualHostを設定し、ポートを80番以外で動かしていた。&lt;br /&gt;まさかと思ってVirtualHostではなくポート80で動かすと正常に動作！！！&lt;br /&gt;&lt;br /&gt;たまたま気付けて良かったが、これはハマった。&lt;br /&gt;VirtualHost設定している方は注意してください。</content><link rel='replies' type='application/atom+xml' href='http://x-moemoe.blogspot.com/feeds/7145909987992834074/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://x-moemoe.blogspot.com/2010/02/jquerypage-scroller.html#comment-form' title='3 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6577008637886304446/posts/default/7145909987992834074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6577008637886304446/posts/default/7145909987992834074'/><link rel='alternate' type='text/html' href='http://x-moemoe.blogspot.com/2010/02/jquerypage-scroller.html' title='サーバーでjqueryのPage Scrollerがうまく動作しない'/><author><name>x-moe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6577008637886304446.post-5019781509675314467</id><published>2010-01-15T14:16:00.001+09:00</published><updated>2010-01-15T14:17:00.997+09:00</updated><title type='text'>apache rewriteの性能</title><content type='html'>Apacheのrewriteによる負荷がどのくらいあるか気になったので調べてみた。&lt;br /&gt;&lt;br /&gt;ある自宅PCレベルのサーバーにindex.htmlを配置し、jmeterで他のPCから負荷をかけてみた&lt;br /&gt;&lt;br /&gt;ROOP回数を1000&lt;br /&gt;スレッド数を100&lt;br /&gt;で設定。&lt;br /&gt;&lt;br /&gt;■RewriteRuleの記述が85個の場合&lt;br /&gt;1560.3/sec&lt;br /&gt;1543.2/sec&lt;br /&gt;1541.2/sec&lt;br /&gt;&lt;br /&gt;■RewriteRuleの記述が6個の場合&lt;br /&gt;1739.1/sec&lt;br /&gt;1743.9/sec&lt;br /&gt;1758.5/sec&lt;br /&gt;&lt;br /&gt;※1秒間あたりのスループット&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;環境やマシン性能にも左右されるところではあるが、思った以上に性能が若干下がることだけは分かった。大量の記述は避けた方が良さそう。</content><link rel='replies' type='application/atom+xml' href='http://x-moemoe.blogspot.com/feeds/5019781509675314467/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://x-moemoe.blogspot.com/2010/01/apache-rewrite.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6577008637886304446/posts/default/5019781509675314467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6577008637886304446/posts/default/5019781509675314467'/><link rel='alternate' type='text/html' href='http://x-moemoe.blogspot.com/2010/01/apache-rewrite.html' title='apache rewriteの性能'/><author><name>x-moe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>