<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
   <title>MTなのです</title>
   <link rel="alternate" type="text/html" href="http://www.ys-factory.net/mt/" />
   <link rel="self" type="application/atom+xml" href="http://www.ys-factory.net/mt/atom.xml" />
   <id>tag:www.ys-factory.net,2010:/mt//1</id>
   <updated>2010-01-27T04:04:57Z</updated>
   
   <generator uri="http://www.sixapart.com/movabletype/">Movable Type 3.33-ja</generator>

<entry>
   <title>OpenPNE340をインストール</title>
   <link rel="alternate" type="text/html" href="http://www.ys-factory.net/mt/2010/01/openpne340.html" />
   <id>tag:www.ys-factory.net,2010:/mt//1.149</id>
   
   <published>2010-01-27T02:40:14Z</published>
   <updated>2010-01-27T04:04:57Z</updated>
   
   <summary>PHPのmemory_limitが32Mだとこける。 Microsoft Win...</summary>
   <author>
      <name>u-pyon</name>
      
   </author>
         <category term="PHP" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.ys-factory.net/mt/">
      <![CDATA[PHPのmemory_limitが32Mだとこける。
<textarea cols="80" rows="12">
Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Windows\System32>cd c:\

c:\>cd home\openpne340

c:\home\openpne340>symfony openpne:install

Warning: require_once(C:\home\openpne340/config/ProjectConfiguration.class.php):
 failed to open stream: No such file or directory in C:\home\openpne340\symfony
on line 13

Fatal error: require_once(): Failed opening required 'C:\home\openpne340/config/
ProjectConfiguration.class.php' (include_path='.;c:\xampp\php\pear;C:\xampp\php\
pear\') in C:\home\openpne340\symfony on line 13

c:\home\openpne340>symfony openpne:install

  Choose DBMS:
  - mysql
  - pgsql (unsupported)
  - sqlite (unsupported)

mysql

  Type database username

openpne340

  Type database password (optional)

openpne340

  Type database hostname

localhost

  Type database port number (optional)



  Type database name

openpne340

  Type database socket path (optional)



  The DBMS                 : mysql
  The Database Username    : openpne340
  The Database Password    : ******
  The Database Hostname    : localhost
  The Database Port Number :
  The Database Name        : openpne340
  The Database Socket      :

  Is it OK to start this task? (Y/n)

Y
>> plugin    installing plugin "opAuthMailAddressPlugin"
>> sfPearFrontendPlugin Attempting to discover channel "plugins.openpne.jp"...
>> sfPearFrontendPlugin downloading channel.xml ...
>> sfPearFrontendPlugin Starting to download channel.xml (598 bytes)
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin ...done: 598 bytes
>> sfPearFrontendPlugin Auto-discovered channel "plugins.openpne.jp", alias
>> sfPearFrontendPlugin "plugins.openpne.jp", adding to registry
>> sfPearFrontendPlugin Attempting to discover channel "pear.symfony-project.com
"...
>> sfPearFrontendPlugin downloading channel.xml ...
>> sfPearFrontendPlugin Starting to download channel.xml (803 bytes)
>> sfPearFrontendPlugin ...done: 803 bytes
>> sfPearFrontendPlugin Auto-discovered channel "pear.symfony-project.com", alia
s
>> sfPearFrontendPlugin "symfony", adding to registry
>> sfPearFrontendPlugin Attempting to discover channel
>> sfPearFrontendPlugin "plugins.symfony-project.org"...
>> sfPearFrontendPlugin downloading channel.xml ...
>> sfPearFrontendPlugin Starting to download channel.xml (639 bytes)
>> sfPearFrontendPlugin ...done: 639 bytes
>> sfPearFrontendPlugin Auto-discovered channel "plugins.symfony-project.org", a
lias
>> sfPearFrontendPlugin "symfony-plugins", adding to registry
>> sfPearFrontendPlugin downloading opAuthMailAddressPlugin-1.2.0.tgz ...
>> sfPearFrontendPlugin Starting to download opAuthMailAddressPlugin-1.2.0.tgz (
13,540
>> sfPearFrontendPlugin bytes)
>> sfPearFrontendPlugin ...done: 13,540 bytes
>> opPluginManager Installation successful for plugin "opAuthMailAddressPlugin"
>> plugin    installing plugin "opAuthMobileUIDPlugin"
>> sfPearFrontendPlugin downloading opAuthMobileUIDPlugin-1.0.0.tgz ...
>> sfPearFrontendPlugin Starting to download opAuthMobileUIDPlugin-1.0.0.tgz (6,
422
>> sfPearFrontendPlugin bytes)
>> sfPearFrontendPlugin ...done: 6,422 bytes
>> opPluginManager Installation successful for plugin "opAuthMobileUIDPlugin"
>> plugin    installing plugin "opAuthOpenIDPlugin"
>> sfPearFrontendPlugin downloading opAuthOpenIDPlugin-1.1.1.tgz ...
>> sfPearFrontendPlugin Starting to download opAuthOpenIDPlugin-1.1.1.tgz (7,861

>> sfPearFrontendPlugin bytes)
>> sfPearFrontendPlugin ...done: 7,861 bytes
>> opPluginManager Installation successful for plugin "opAuthOpenIDPlugin"
>> plugin    installing plugin "opCommunityTopicPlugin"
>> sfPearFrontendPlugin downloading opCommunityTopicPlugin-0.9.6.tgz ...
>> sfPearFrontendPlugin Starting to download opCommunityTopicPlugin-0.9.6.tgz (5
0,799
>> sfPearFrontendPlugin bytes)
>> sfPearFrontendPlugin ...done: 50,799 bytes
>> opPluginManager Installation successful for plugin "opCommunityTopicPlugin"
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> plugin    installing plugin "opWebAPIPlugin"
>> sfPearFrontendPlugin downloading opWebAPIPlugin-0.3.9.tgz ...
>> sfPearFrontendPlugin Starting to download opWebAPIPlugin-0.3.9.tgz (17,927 by
tes)
>> sfPearFrontendPlugin ...done: 17,927 bytes
>> opPluginManager Installation successful for plugin "opWebAPIPlugin"
>> plugin    installing plugin "opDiaryPlugin"
>> sfPearFrontendPlugin downloading opDiaryPlugin-1.1.2.tgz ...
>> sfPearFrontendPlugin Starting to download opDiaryPlugin-1.1.2.tgz (38,723 byt
es)
>> sfPearFrontendPlugin ...done: 38,723 bytes
>> opPluginManager Installation successful for plugin "opDiaryPlugin"
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> plugin    installing plugin "opBlogPlugin"
>> sfPearFrontendPlugin downloading opBlogPlugin-0.9.0.tgz ...
>> sfPearFrontendPlugin Starting to download opBlogPlugin-0.9.0.tgz (140,450 byt
es)
>> sfPearFrontendPlugin ...done: 140,450 bytes
>> opPluginManager Installation successful for plugin "opBlogPlugin"
>> plugin    installing plugin "opOpenSocialPlugin"
>> sfPearFrontendPlugin downloading opOpenSocialPlugin-0.9.4.tgz ...
>> sfPearFrontendPlugin Starting to download opOpenSocialPlugin-0.9.4.tgz (478,9
84
>> sfPearFrontendPlugin bytes)
>> sfPearFrontendPlugin ...done: 478,984 bytes
>> opPluginManager Installation successful for plugin "opOpenSocialPlugin"
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> plugin    installing plugin "opAshiatoPlugin"
>> sfPearFrontendPlugin downloading opAshiatoPlugin-0.9.0.tgz ...
>> sfPearFrontendPlugin Starting to download opAshiatoPlugin-0.9.0.tgz (10,738 b
ytes)
>> sfPearFrontendPlugin ...done: 10,738 bytes
>> opPluginManager Installation successful for plugin "opAshiatoPlugin"
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> plugin    installing plugin "opMessagePlugin"
>> sfPearFrontendPlugin downloading opMessagePlugin-0.9.0.2.tgz ...
>> sfPearFrontendPlugin Starting to download opMessagePlugin-0.9.0.2.tgz (31,296

>> sfPearFrontendPlugin bytes)
>> sfPearFrontendPlugin ...done: 31,296 bytes
>> opPluginManager Installation successful for plugin "opMessagePlugin"
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin

…
>> tokens    C:/home/openpne340/lib/model/do...ugin/base/BaseAshiato.class.php
>> tokens    C:/home/openpne340/lib/model/do...se/BaseCommunityEvent.class.php
>> tokens    C:/home/openpne340/lib/model/do...CommunityEventComment.class.php
>> tokens    C:/home/openpne340/lib/model/do...eCommunityEventMember.class.php
>> tokens    C:/home/openpne340/lib/model/do...se/BaseCommunityTopic.class.php
>> tokens    C:/home/openpne340/lib/model/do...CommunityTopicComment.class.php
>> tokens    C:/home/openpne340/lib/model/do...Plugin/base/BaseDiary.class.php
>> tokens    C:/home/openpne340/lib/model/do...base/BaseDiaryComment.class.php
>> tokens    C:/home/openpne340/lib/model/do...BaseDiaryCommentImage.class.php
>> tokens    C:/home/openpne340/lib/model/do...aseDiaryCommentUnread.class.php
>> tokens    C:/home/openpne340/lib/model/do...aseDiaryCommentUpdate.class.php
>> tokens    C:/home/openpne340/lib/model/do...n/base/BaseDiaryImage.class.php
>> tokens    C:/home/openpne340/lib/model/do...se/BaseDeletedMessage.class.php
>> tokens    C:/home/openpne340/lib/model/do.../base/BaseMessageFile.class.php
>> tokens    C:/home/openpne340/lib/model/do...e/BaseMessageSendList.class.php
>> tokens    C:/home/openpne340/lib/model/do.../base/BaseMessageType.class.php
>> tokens    C:/home/openpne340/lib/model/do...e/BaseSendMessageData.class.php
>> tokens    C:/home/openpne340/lib/model/do.../base/BaseApplication.class.php
>> tokens    C:/home/openpne340/lib/model/do...icationPersistentData.class.php
>> tokens    C:/home/openpne340/lib/model/do...BaseMemberApplication.class.php
>> tokens    C:/home/openpne340/lib/model/do...berApplicationSetting.class.php
>> autoload  Resetting application autoloaders
>> file-     C:/home/openpne340/cache/cli/ap.../config/config_autoload.yml.php
>> doctrine  generating form classes

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate
8192 bytes) in C:\home\openpne340\lib\model\doctrine\opCommunityTopicPlugin\Comm
unityEventMember.class.php on line 1
</textarea>

128M二変更して再度実行。

<textarea cols="80" rows="12">
・・・・
>> file+     C:\home\openpne340\web\sfDoctrinePlugin\images/next.png
>> file+     C:\home\openpne340\web\sfDoctrinePlugin\images/previous.png
>> file+     C:\home\openpne340\web\sfDoctrinePlugin\images/tick.png
>> plugin    Configuring plugin - sfFormExtraPlugin
>> dir+      C:\home\openpne340\web\sfFormExtraPlugin\css
>> file+     C:\home\openpne340\web\sfFormEx...in\css/jquery.autocompleter.css
>> dir+      C:\home\openpne340\web\sfFormExtraPlugin\images
>> file+     C:\home\openpne340\web\sfFormExtraPlugin\images/indicator.gif
>> file+     C:\home\openpne340\web\sfFormExtraPlugin\images/next.png
>> file+     C:\home\openpne340\web\sfFormExtraPlugin\images/previous.png
>> dir+      C:\home\openpne340\web\sfFormExtraPlugin\js
>> file+     C:\home\openpne340\web\sfFormExtraPlugin\js/double_list.js
>> file+     C:\home\openpne340\web\sfFormEx...ugin\js/jquery.autocompleter.js
>> plugin    Configuring plugin - sfImageHandlerPlugin
>> plugin    Configuring plugin - sfProtoculousPlugin
>> dir+      C:\home\openpne340\web\sfProtoculousPlugin\css
>> file+     C:\home\openpne340\web\sfProtoc...css/input_auto_complete_tag.css
>> dir+      C:\home\openpne340\web\sfProtoculousPlugin\js
>> file+     C:\home\openpne340\web\sfProtoculousPlugin\js/builder.js
>> file+     C:\home\openpne340\web\sfProtoculousPlugin\js/controls.js
>> file+     C:\home\openpne340\web\sfProtoculousPlugin\js/dragdrop.js
>> file+     C:\home\openpne340\web\sfProtoculousPlugin\js/effects.js
>> file+     C:\home\openpne340\web\sfProtoculousPlugin\js/index.html
>> file+     C:\home\openpne340\web\sfProtoculousPlugin\js/prototype.js
>> file+     C:\home\openpne340\web\sfProtoculousPlugin\js/scriptaculous.js
>> file+     C:\home\openpne340\web\sfProtoculousPlugin\js/slider.js
>> file+     C:\home\openpne340\web\sfProtoculousPlugin\js/sound.js
>> file+     C:\home\openpne340\web\sfProtoculousPlugin\js/unittest.js
>> plugin    Configuring plugin - sfSymfonyTemplatingViewPlugin
>> installer installation is completed!
</textarea>

うまくいった。]]>
      
   </content>
</entry>
<entry>
   <title>IE8(Internet Explorer 9)ハック(Hack)</title>
   <link rel="alternate" type="text/html" href="http://www.ys-factory.net/mt/2010/01/ie8internet_explorer_9hack.html" />
   <id>tag:www.ys-factory.net,2010:/mt//1.147</id>
   
   <published>2010-01-14T12:26:13Z</published>
   <updated>2010-01-14T12:28:55Z</updated>
   
   <summary> /* IE8用 */ html&gt;/**/body #content .cont...</summary>
   <author>
      <name>u-pyon</name>
      
   </author>
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.ys-factory.net/mt/">
      <![CDATA[<textarea rows="10" cols="80">
/* IE8用 */
html>/**/body #content .content_list_detail dt {
	letter-spacing /*\**/: -2px\9;
} 
html>/**/body #content .content_list_detail dd {
	border-top /*\**/: 1px solid #fff\9;
	border-bottom: 1px solid #fff\9;
} 
</textarea>

ちなみに、IE7とIE8では<option>タグにlabel属性を指定すると、その値が表示される。
<textarea rows="7" cols="80">
<select>
  <option label="すべてのジャンル" value="">全てのジャンル</option>
  <option value="1">料理</option>
</select>
</textarea>

このとき、選択肢に表示される文字列が「全てのジャンル」ではなく「すべてのジャンル」となるのでおったまげ～る。
]]>
      
   </content>
</entry>
<entry>
   <title>movable type 5でテーブルにスキーマを追加する方法</title>
   <link rel="alternate" type="text/html" href="http://www.ys-factory.net/mt/2010/01/movable_type_5.html" />
   <id>tag:www.ys-factory.net,2010:/mt//1.146</id>
   
   <published>2010-01-13T11:06:37Z</published>
   <updated>2010-01-13T11:09:21Z</updated>
   
   <summary>config.yamlに下記を追加 object_types:     exam...</summary>
   <author>
      <name>u-pyon</name>
      
   </author>
         <category term="Movable Type" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.ys-factory.net/mt/">
      <![CDATA[config.yamlに下記を追加

<textarea cols="80" rows="3">
object_types:
    example.author: MT::Example::Author
</textarea>

下記のようにしないのがコツ。
<textarea cols="80" rows="3">
    example.author: $Example::MT::Example::Author
</textarea>]]>
      
   </content>
</entry>
<entry>
   <title>nginxでバーチャルホストの設定</title>
   <link rel="alternate" type="text/html" href="http://www.ys-factory.net/mt/2009/12/nginx.html" />
   <id>tag:www.ys-factory.net,2009:/mt//1.145</id>
   
   <published>2009-12-18T06:36:43Z</published>
   <updated>2009-12-18T07:00:04Z</updated>
   
   <summary>[#root@vm13 ~] vi /etc/nginx/conf.d/virt...</summary>
   <author>
      <name>u-pyon</name>
      
   </author>
         <category term="nginx" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.ys-factory.net/mt/">
      [#root@vm13 ~] vi /etc/nginx/conf.d/virtual.conf
server {
    listen       80;
    server_name  ys-factory.example.com;
    access_log /path/to/ys-factory.example.com/logs/access_log;
    error_log /path/to/ys-factory.example.com/logs/error_log;

    location / {
        root   /path/to/ys-factory.example.com/html;
        index  index.html index.htm index.php;
    }
    location /cgi-bin/ {
        alias /home/webadmin/clients/ys-factory.example.com/cgi-bin;
    }
    location / {
      fastcgi_pass 127.0.0.1:8080;
      #fastcgi_param PATH_INFO $fastcgi_script_name;
      fastcgi_param PATH_INFO /home/webadnin/clients/ys-factory.example.com/cgi-bin/*.cgi;
      fastcgi_param REQUEST_METHOD $request_method;
      fastcgi_param QUERY_STRING $query_string;
      fastcgi_param CONTENT_TYPE $content_type;
      fastcgi_param CONTENT_LENGTH $content_length;
      fastcgi_param SERVER_PORT $server_port;
      fastcgi_param SERVER_NAME $server_name;
      fastcgi_param SERVER_PROTOCOL $server_protocol;
      fastcgi_pass_header Authorization;
      fastcgi_intercept_errors off;
    }
}

&quot;/etc/nginx/conf.d/virtual.conf&quot; 26L, 632C written
[root@vm13 ~]# nginx -t
2009/12/18 15:41:09 [info] 16721#0: the configuration file /etc/nginx/nginx.conf syntax is ok
2009/12/18 15:41:09 [info] 16721#0: the configuration file /etc/nginx/nginx.conf was tested successfully
[root@vm13 ~]# service nginx restart
      
   </content>
</entry>
<entry>
   <title>Redmineをアップデート</title>
   <link rel="alternate" type="text/html" href="http://www.ys-factory.net/mt/2009/12/redmine.html" />
   <id>tag:www.ys-factory.net,2009:/mt//1.144</id>
   
   <published>2009-12-08T01:00:27Z</published>
   <updated>2009-12-08T01:02:59Z</updated>
   
   <summary>■zipをダウンロードして解凍 Sorce Forge http://rubyf...</summary>
   <author>
      <name>u-pyon</name>
      
   </author>
         <category term="Rails" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.ys-factory.net/mt/">
      <![CDATA[■zipをダウンロードして解凍
Sorce Forge
<a href="http://rubyforge.org/frs/?group_id=1850">http://rubyforge.org/frs/?group_id=1850</a>

■zipファイルを解凍

■log/delete.meを削除

■SSHでログインして以下を実行
[root@vm02 redmine]# rake config/initializers/session_store.rb
(in /home/webadmin/sandbox/redmine.example.com/html/redmine)
[root@vm02 redmine]# rake db:migrate RAILS_ENV=production
(in /home/webadmin/sandbox/redmine.example.com/html/redmine)]]>
      
   </content>
</entry>
<entry>
   <title>memory_limitとupload_max_filesizeとpost_max_sizeについて</title>
   <link rel="alternate" type="text/html" href="http://www.ys-factory.net/mt/2009/11/memory_limitupload_max_filesiz.html" />
   <id>tag:www.ys-factory.net,2009:/mt//1.143</id>
   
   <published>2009-11-26T12:50:34Z</published>
   <updated>2009-11-26T12:56:44Z</updated>
   
   <summary>phpのPOSTメソッドによるファイルアップロード処理で、php.ini 内の設...</summary>
   <author>
      <name>u-pyon</name>
      
   </author>
         <category term="PHP" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.ys-factory.net/mt/">
      phpのPOSTメソッドによるファイルアップロード処理で、php.ini 内の設定の違いによってハマった。
ini_setでは書き換えできないパラメータもあるため、直接php.iniを編集して対応。

memory_limit を越えるファイルをアップロード。
$_POST変数の内容が空の配列になる。
アップロードを試みたファイルは$_FILEに情報が格納されている。

upload_max_filesizeとpost_max_sizeを越えてもアップロードに成功する。


      
   </content>
</entry>
<entry>
   <title>Google Maps API 使って逆ジオコーディングしてみた</title>
   <link rel="alternate" type="text/html" href="http://www.ys-factory.net/mt/2009/11/google_maps_api.html" />
   <id>tag:www.ys-factory.net,2009:/mt//1.142</id>
   
   <published>2009-11-18T02:23:01Z</published>
   <updated>2009-11-18T02:25:41Z</updated>
   
   <summary>ソースコードは以下。 define(&apos;REGEOCODING_URL&apos;, &apos;ht...</summary>
   <author>
      <name>u-pyon</name>
      
   </author>
         <category term="API" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.ys-factory.net/mt/">
      <![CDATA[ソースコードは以下。
<form>
<textarea cols="40" rows="8">
<?php

define('REGEOCODING_URL', 'http://maps.google.com/maps/geo?output=json&oe=utf-8');
define('LAT', 35.8415074);
define('LNG', 139.7916085);
define('GOOGLE_MAPS_API_KEY', 'ABQIAAAAaXPsFrfpE9XoDdLO61sOJRT3KzMuwChb0kMLqbSJuvhXX7oZDhQC5H0G5OngXyqJvFAyl67LmqO4fw');

ini_set('allow_url_fopen', 1);
echo mb_convert_encoding(file_get_contents(REGEOCODING_URL .'&ll=' .LAT .'%2C' .LNG .'&key=' .GOOGLE_MAPS_API_KEY), 'SJIS', 'UTF-8');
?>
</textarea>

ブラウザで上記ページへアクセスすると下記のような結果が取得できる。
<form>
<textarea cols="80" rows="20">
{
  "name": "35.841507,139.791608",
  "Status": {
    "code": 200,
    "request": "geocode"
  },
  "Placemark": [ {
    "id": "p1",
    "address": "４丁目１松原, S?ka City, Saitama Prefecture, Japan",
    "AddressDetails": {
   "Accuracy" : 8,
   "Country" : {
      "AdministrativeArea" : {
         "AdministrativeAreaName" : "埼玉県",
         "Locality" : {
            "DependentLocality" : {
               "DependentLocalityName" : "松原",
               "Thoroughfare" : {
                  "ThoroughfareName" : "４丁目１"
               }
            },
            "LocalityName" : "草加市"
         }
      },
      "CountryName" : "日本",
      "CountryNameCode" : "JP"
   }
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 35.8446550,
        "south": 35.8383598,
        "east": 139.7947561,
        "west": 139.7884609
      }
    },
    "Point": {
      "coordinates": [ 139.7916085, 35.8415074, 0 ]
    }
  }, {
    "id": "p2",
    "address": "４丁目Ｄ ６８松原, S?ka City, Saitama Prefecture, Japan",
    "AddressDetails": {
   "Accuracy" : 8,
   "Country" : {
      "AdministrativeArea" : {
         "AdministrativeAreaName" : "埼玉県",
         "Locality" : {
            "DependentLocality" : {
               "DependentLocalityName" : "松原",
               "Thoroughfare" : {
                  "ThoroughfareName" : "４丁目Ｄ６８"
               }
            },
            "LocalityName" : "草加市"
         }
      },
      "CountryName" : "日本",
      "CountryNameCode" : "JP"
   }
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 35.8441717,
        "south": 35.8378765,
        "east": 139.7934035,
        "west": 139.7871083
      }
    },
    "Point": {
      "coordinates": [ 139.7902559, 35.8410241, 0 ]
    }
  }, {
    "id": "p3",
    "address": "４丁目１松原, S?ka City, Saitama Prefecture, Japan",
    "AddressDetails": {
   "Accuracy" : 7,
   "Country" : {
      "AdministrativeArea" : {
         "AdministrativeAreaName" : "埼玉県",
         "Locality" : {
            "DependentLocality" : {
               "DependentLocalityName" : "松原",
               "Thoroughfare" : {
                  "ThoroughfareName" : "４丁目１"
               }
            },
            "LocalityName" : "草加市"
         }
      },
      "CountryName" : "日本",
      "CountryNameCode" : "JP"
   }
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 35.8439621,
        "south": 35.8376669,
        "east": 139.7936703,
        "west": 139.7873750
      }
    },
    "Point": {
      "coordinates": [ 139.7909392, 35.8404658, 0 ]
    }
  }, {
    "id": "p4",
    "address": "４丁目松原, S?ka City, Saitama Prefecture, Japan",
    "AddressDetails": {
   "Accuracy" : 4,
   "Country" : {
      "AdministrativeArea" : {
         "AdministrativeAreaName" : "埼玉県",
         "Locality" : {
            "DependentLocality" : {
               "DependentLocalityName" : "松原",
               "Thoroughfare" : {
                  "ThoroughfareName" : "４丁目"
               }
            },
            "LocalityName" : "草加市"
         }
      },
      "CountryName" : "日本",
      "CountryNameCode" : "JP"
   }
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 35.8463844,
        "south": 35.8398411,
        "east": 139.7926377,
        "west": 139.7863424
      }
    },
    "Point": {
      "coordinates": [ 139.7900003, 35.8431071, 0 ]
    }
  }, {
    "id": "p5",
    "address": "松原, S?ka City, Saitama Prefecture, Japan",
    "AddressDetails": {
   "Accuracy" : 4,
   "Country" : {
      "AdministrativeArea" : {
         "AdministrativeAreaName" : "埼玉県",
         "Locality" : {
            "DependentLocality" : {
               "DependentLocalityName" : "松原"
            },
            "LocalityName" : "草加市"
         }
      },
      "CountryName" : "日本",
      "CountryNameCode" : "JP"
   }
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 35.8478012,
        "south": 35.8398389,
        "east": 139.8021098,
        "west": 139.7865200
      }
    },
    "Point": {
      "coordinates": [ 139.7966941, 35.8461041, 0 ]
    }
  }, {
    "id": "p6",
    "address": "S?ka City, Saitama Prefecture, Japan",
    "AddressDetails": {
   "Accuracy" : 4,
   "Country" : {
      "AdministrativeArea" : {
         "AdministrativeAreaName" : "埼玉県",
         "Locality" : {
            "LocalityName" : "草加市"
         }
      },
      "CountryName" : "日本",
      "CountryNameCode" : "JP"
   }
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 35.8714554,
        "south": 35.8052138,
        "east": 139.8409467,
        "west": 139.7635526
      }
    },
    "Point": {
      "coordinates": [ 139.8054022, 35.8253547, 0 ]
    }
  }, {
    "id": "p7",
    "address": "Saitama Japan",
    "AddressDetails": {
   "Accuracy" : 2,
   "Country" : {
      "AddressLine" : [ "Saitama" ],
      "CountryName" : "日本",
      "CountryNameCode" : "JP"
   }
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 36.2797620,
        "south": 35.7553180,
        "east": 139.8989710,
        "west": 138.7121120
      }
    },
    "Point": {
      "coordinates": [ 139.4466005, 35.9962513, 0 ]
    }
  }, {
    "id": "p8",
    "address": "Saitama Prefecture, Japan",
    "AddressDetails": {
   "Accuracy" : 2,
   "Country" : {
      "AdministrativeArea" : {
         "AdministrativeAreaName" : "埼玉県"
      },
      "CountryName" : "日本",
      "CountryNameCode" : "JP"
   }
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 36.2835539,
        "south": 35.7535187,
        "east": 139.9000999,
        "west": 138.7113314
      }
    },
    "Point": {
      "coordinates": [ 139.6488487, 35.8569991, 0 ]
    }
  }, {
    "id": "p9",
    "address": "Japan",
    "AddressDetails": {
   "Accuracy" : 1,
   "Country" : {
      "CountryName" : "日本",
      "CountryNameCode" : "JP"
   }
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 45.6691047,
        "south": 23.9207972,
        "east": 149.1209620,
        "west": 122.9100000
      }
    },
    "Point": {
      "coordinates": [ 138.2529240, 36.2048240, 0 ]
    }
  } ]
}
</textarea>]]>
      
   </content>
</entry>
<entry>
   <title>PHP5.2.8のPDOでエラー</title>
   <link rel="alternate" type="text/html" href="http://www.ys-factory.net/mt/2009/10/php528pdo.html" />
   <id>tag:www.ys-factory.net,2009:/mt//1.141</id>
   
   <published>2009-10-21T11:44:44Z</published>
   <updated>2009-10-21T11:45:38Z</updated>
   
   <summary>障害が発生しているアプリケーション php.exe、バージョン 5.2.8.8、...</summary>
   <author>
      <name>u-pyon</name>
      
   </author>
         <category term="PHP" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.ys-factory.net/mt/">
      障害が発生しているアプリケーション php.exe、バージョン 5.2.8.8、タイム スタンプ 0x493d760b、障害が発生しているモジュール php_pdo_mysql.dll、バージョン 5.2.8.8、タイム スタンプ 0x493d7650、例外コード 0xc0000005、障害オフセット 0x0000250a、 プロセス ID 0x2270、アプリケーションの開始時刻 0x01ca523a28cee930。


PHP5.3.0のバイナリzipをダウンロードして解凍し、libmysql.dllをコピーして上書きしたら動作確認できた。
      
   </content>
</entry>
<entry>
   <title>MacでSC_Pluginが使えない件</title>
   <link rel="alternate" type="text/html" href="http://www.ys-factory.net/mt/2009/10/macsc_plugin.html" />
   <id>tag:www.ys-factory.net,2009:/mt//1.140</id>
   
   <published>2009-10-21T02:32:21Z</published>
   <updated>2009-10-21T02:32:49Z</updated>
   
   <summary>Mac OS X バージョン10.6.1...</summary>
   <author>
      <name>u-pyon</name>
      
   </author>
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.ys-factory.net/mt/">
      Mac OS X バージョン10.6.1
      
   </content>
</entry>
<entry>
   <title>CentOSにyumでHyper Erestraier をインストール</title>
   <link rel="alternate" type="text/html" href="http://www.ys-factory.net/mt/2009/10/centosyumhyper_erestraier.html" />
   <id>tag:www.ys-factory.net,2009:/mt//1.139</id>
   
   <published>2009-10-16T02:03:12Z</published>
   <updated>2009-10-16T02:03:40Z</updated>
   
   <summary>[root@vm02 ~]# yum install hyperestraier...</summary>
   <author>
      <name>u-pyon</name>
      
   </author>
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.ys-factory.net/mt/">
      [root@vm02 ~]# yum install hyperestraier
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--&gt; Running transaction check
---&gt; Package hyperestraier.i386 0:1.4.10-2.fc8.2 set to be updated
--&gt; Processing Dependency: libqdbm.so.14 for package: hyperestraier
--&gt; Processing Dependency: liblzo2.so.2 for package: hyperestraier
--&gt; Running transaction check
---&gt; Package qdbm.i386 0:1.8.75-3.fc8.2 set to be updated
---&gt; Package lzo.i386 0:2.02-3.fc8 set to be updated
--&gt; Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Installing:
 hyperestraier           i386       1.4.10-2.fc8.2   fedora            709 k
Installing for dependencies:
 lzo                     i386       2.02-3.fc8       fedora             62 k
 qdbm                    i386       1.8.75-3.fc8.2   fedora            280 k

Transaction Summary
=============================================================================
Install      3 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 1.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): hyperestraier-1.4. 100% |=========================| 709 kB    00:03     
(2/3): lzo-2.02-3.fc8.i38 100% |=========================|  62 kB    00:00     
(3/3): qdbm-1.8.75-3.fc8. 100% |=========================| 280 kB    00:00     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: lzo                          ######################### [1/3] 
  Installing: qdbm                         ######################### [2/3] 
  Installing: hyperestraier                ######################### [3/3] 

Installed: hyperestraier.i386 0:1.4.10-2.fc8.2
Dependency Installed: lzo.i386 0:2.02-3.fc8 qdbm.i386 0:1.8.75-3.fc8.2
Complete!
      
   </content>
</entry>
<entry>
   <title>MySQLのcreate文でエラー</title>
   <link rel="alternate" type="text/html" href="http://www.ys-factory.net/mt/2009/09/mysqlcreate.html" />
   <id>tag:www.ys-factory.net,2009:/mt//1.138</id>
   
   <published>2009-09-25T01:00:20Z</published>
   <updated>2009-09-25T01:03:20Z</updated>
   
   <summary>MySQLでテーブルを作成しようとして次のようなエラーが発生。 ERROR 10...</summary>
   <author>
      <name>u-pyon</name>
      
   </author>
         <category term="MySQL" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.ys-factory.net/mt/">
      <![CDATA[MySQLでテーブルを作成しようとして次のようなエラーが発生。

<form>
<textarea colspan="80" rowspan="5">
ERROR 1089 (HY000) at line 141: Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique prefix keys
</textarea>
</form>

使用したSQL文はこちら。
<form>
<textarea colspan="80" rowspan="12">
DROP TABLE IF EXISTS `ex_latlng`;
CREATE TABLE `ex_latlng` (
  `id` int NOT NULL auto_increment COMMENT 'ID' ,
  `address` text NOT NULL COMMENT '住所' ,
  `lat` double NOT NULL COMMENT '緯度' ,
  `lng` double NOT NULL COMMENT '経度' ,
  `create_date` datetime COMMENT '作成日' ,
  `update_date` datetime COMMENT '最終更新日' ,
  PRIMARY KEY(id(128)),
  UNIQUE INDEX `index_1` (address(128))
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
</textarea>
</form>

PRIMARY KEY の部分で、int型のキーに長さを指定したことが原因。
SQLを修正したときの作業ミスやね。]]>
      
   </content>
</entry>
<entry>
   <title>TortoiseSVNで有効期限切れのSSL証明書に悩まされる</title>
   <link rel="alternate" type="text/html" href="http://www.ys-factory.net/mt/2009/08/tortoisesvnssl.html" />
   <id>tag:www.ys-factory.net,2009:/mt//1.137</id>
   
   <published>2009-08-26T10:22:56Z</published>
   <updated>2009-08-26T10:31:01Z</updated>
   
   <summary>リポジトリのWebサーバのSSL証明書の有効期限が切れたので新しい証明書をインス...</summary>
   <author>
      <name>u-pyon</name>
      
   </author>
         <category term="Tools" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.ys-factory.net/mt/">
      リポジトリのWebサーバのSSL証明書の有効期限が切れたので新しい証明書をインストールしたため、TortoiseSVNの認証キャッシュを削除して新らしい証明書を使用して接続を試みたが、SSLの有効期限切れと言われて試行錯誤してみた。

調べると、TortoiseSVNはキャッシュファイルとレジストリのいずれかに設定を保存している。
まずやることは、

１．キャッシュファイルの削除
２．レジストリの書き換え

TortoiseSVNのキャッシュファイルの削除は、[→クリック]→[TortoiseSVN]→[Settings]→[Save Data]を開き、AuthenticationのClearボタンをクリックする。

レジストリの書き換えは、[スタート]ボタン→[ファイル名を指定して実行]を開き、「regedit」と入力して実行する。
レジストリエディタが開いたら、[HKEY_CURRENT_USER]→[Sofware]→[Tigris.org]→[Subversion]→[Servers]を開き、その中に該当するWebサーバのディレクトリをクリックする。

「ssl-client-cert-file」という項目の値を新しいSSL証明書のパスに変更すれば完了。
      
   </content>
</entry>
<entry>
   <title>Windows Vista 64bit に Python をインストール</title>
   <link rel="alternate" type="text/html" href="http://www.ys-factory.net/mt/2009/07/windows_vista_64bit_python.html" />
   <id>tag:www.ys-factory.net,2009:/mt//1.135</id>
   
   <published>2009-07-01T10:30:08Z</published>
   <updated>2009-07-01T11:20:47Z</updated>
   
   <summary>MOONGIFTで紹介されていたアジャイル開発向けタスク管理アプリケーションの ...</summary>
   <author>
      <name>u-pyon</name>
      
   </author>
         <category term="Python" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.ys-factory.net/mt/">
      <![CDATA[MOONGIFTで紹介されていたアジャイル開発向けタスク管理アプリケーションの agilo を使用したかったので、PythonをWindows Vista 64bit にインストールしてみた。

WebサーバはApache2.2を使用するが、Apacheでpythonを動かすためにはmod_perlをApache2.2に組み込む必要がある。
現時点で最新のmod_perl3.3.1が対応しているpythonのバージョンが2.5だったので、pythonのバージョンもそれに合わせてインストール。

pythonは下記のURLからダウンロード。
<a href="http://www.python.org/download/">http://www.python.org/download/</a>

64bitなので、使用するインストーラはpython-2.5.4.amd64.msi。
ペコペコクリックしていくとインストール完了。

環境変数のPATHにpython.exeまでのパスを追加する。


次にmod_pythonをインストールする。
下記のURLからインストーラをダウンロードできる。
<a href="http://ftp.riken.jp/net/apache/httpd/modpython/win/3.3.1/">http://ftp.riken.jp/net/apache/httpd/modpython/win/3.3.1/</a>


mod_python-3.3.1.win32-py2.5-Apache2.2.exeをダウンロード。
ダブルクリックしてインストールを図るも、下記のエラーが出てインストールできない。

Python version 2.5 required, which has not found din the registry.


諦めた。


と思いきや、mod_pythonのインストーラにこっそり「build in python 2.5.0」と書いてあったので、該当のバージョンのpythonをインストールして再度試してみた。

下記のURLよりpython-2.5.amd64.msiをダウンロードしてpythonを再度インストール。

<a href="http://www.python.org/download/releases/2.5/">http://www.python.org/download/releases/2.5/</a>

次にmod_python-3.3.1.win32-py2.5-Apache2.2.exeを実行するとmod_pythonのインストールが完了！

しかーし、mod_python.soファイルが作成されない。


アキラメタ。
]]>
      
   </content>
</entry>
<entry>
   <title>Getopt::Stdを見つける</title>
   <link rel="alternate" type="text/html" href="http://www.ys-factory.net/mt/2009/05/getoptstd.html" />
   <id>tag:www.ys-factory.net,2009:/mt//1.134</id>
   
   <published>2009-05-28T04:35:35Z</published>
   <updated>2009-05-28T04:36:15Z</updated>
   
   <summary>Getopt::StdというPerlモジュールを発見。 コマンドラインから引数を...</summary>
   <author>
      <name>u-pyon</name>
      
   </author>
         <category term="Perl" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.ys-factory.net/mt/">
      Getopt::StdというPerlモジュールを発見。
コマンドラインから引数を受け取って配列に突っ込むためのモジュール。

おもしろ。
      
   </content>
</entry>
<entry>
   <title>CPIのVPSにGitをインストール</title>
   <link rel="alternate" type="text/html" href="http://www.ys-factory.net/mt/2009/05/cpivpsgit.html" />
   <id>tag:www.ys-factory.net,2009:/mt//1.133</id>
   
   <published>2009-05-22T13:46:03Z</published>
   <updated>2009-05-22T14:00:00Z</updated>
   
   <summary>CPIのVPSにGitをインストールしてみた。 最近までBindの設定で超はまり...</summary>
   <author>
      <name>u-pyon</name>
      
   </author>
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.ys-factory.net/mt/">
      <![CDATA[CPIのVPSにGitをインストールしてみた。
最近までBindの設定で超はまりまくって、エラーが出ないのにnamedが起動しないという意味不明な状況にてんてこ舞いだったけどようやく使えるようになったので、楽しすぎてやりたい放題。


なので、Gitをインストールしてみた。

<textarea cols="80" rows="4">
[root@vps00150 ~]# vi /etc/yum.repos.d/git.repo
[git]
name=Base git repository
baseurl=http://www.kernel.org/pub/software/scm/git/RPMS/$basearch
enabled=1
gpgcheck=0

"/etc/yum.repos.d/git.repo" [New] 6L, 119C written
[root@vps00150 ~]# yum install git
git                       100% |=========================| 1.0 kB    00:00     
primary.xml.gz            100% |=========================| 101 kB    00:01     
git       : ################################################## 1026/1026
base                      100% |=========================| 1.1 kB    00:00     
updates                   100% |=========================|  951 B    00:00     
primary.xml.gz            100% |=========================| 142 kB    00:00     
updates   : ################################################## 221/221
addons                    100% |=========================|  951 B    00:00     
extras                    100% |=========================| 1.1 kB    00:00     
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package git.i386 0:1.6.1.1-1.fc9 set to be updated
--> Processing Dependency: libexpat.so.1 for package: git
--> Processing Dependency: libssl.so.7 for package: git
--> Processing Dependency: libcrypto.so.7 for package: git
--> Processing Dependency: libc.so.6(GLIBC_2.7) for package: git
--> Processing Dependency: perl-Git = 1.6.1.1-1.fc9 for package: git
--> Processing Dependency: libcurl.so.4 for package: git
--> Processing Dependency: perl(Git) for package: git
--> Running transaction check
---> Package perl-Git.i386 0:1.6.1.1-1.fc9 set to be updated
--> Processing Dependency: perl(:MODULE_COMPAT_5.10.0) for package: perl-Git
---> Package git.i386 0:1.6.1.1-1.fc9 set to be updated
--> Processing Dependency: libexpat.so.1 for package: git
--> Processing Dependency: libssl.so.7 for package: git
--> Processing Dependency: libcrypto.so.7 for package: git
--> Processing Dependency: libc.so.6(GLIBC_2.7) for package: git
--> Processing Dependency: libcurl.so.4 for package: git
--> Finished Dependency Resolution
Error: Missing Dependency: libcurl.so.4 is needed by package git
Error: Missing Dependency: libssl.so.7 is needed by package git
Error: Missing Dependency: libc.so.6(GLIBC_2.7) is needed by package git
Error: Missing Dependency: libexpat.so.1 is needed by package git
Error: Missing Dependency: perl(:MODULE_COMPAT_5.10.0) is needed by package perl-Git
Error: Missing Dependency: libcrypto.so.7 is needed by package git
[root@vps00150 ~]# vi /etc/yum.repo.d/rpmforge.repo
[rpmforge]
name = Red Hat Enterprise $releasever - RPMforge.net - dag
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
enabled = 0
gpgcheck = 0

"/etc/yum.repos.d/rpmforge.repo" [New] 6L, 157C written
[root@vps00150 ~]# yum install -y git-1.5.6.1 --enablerepo=rpmforge
rpmforge                  100% |=========================| 1.1 kB    00:00     
primary.xml.gz            100% |=========================| 3.1 MB    00:11     
rpmforge  : ################################################## 8621/8621
base                      100% |=========================| 1.1 kB    00:00     
updates                   100% |=========================|  951 B    00:00     
addons                    100% |=========================|  951 B    00:00     
extras                    100% |=========================| 1.1 kB    00:00     
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package git.i386 0:1.5.6.1-1 set to be updated
memory alloc (289888 bytes) returned NULL.
[root@vps00150 ~]# 
</textarea>

メ、メモリが足りないよ！]]>
      
   </content>
</entry>

</feed>
