<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Gargouille</title>
    <link rel="alternate" type="text/html" href="http://anh.isitex.net/" />
    <link rel="self" type="application/atom+xml" href="http://anh.isitex.net/atom.xml" />
    <id>tag:anh.isitex.net,2009-06-21://1</id>
    <updated>2009-11-17T05:44:27Z</updated>
    
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Pro 4.261</generator>

<entry>
    <title>libmysqlclient.so.15 =&gt; not found</title>
    <link rel="alternate" type="text/html" href="http://anh.isitex.net/2009/11/libmysqlclientso15-not-found.html" />
    <id>tag:anh.isitex.net,2009://1.209</id>

    <published>2009-11-17T05:40:18Z</published>
    <updated>2009-11-17T05:44:27Z</updated>

    <summary>ldd /etc/httpd/modules/mod_auth_mysql.so...</summary>
    <author>
        <name>admin</name>
        
    </author>
    
        <category term="Fedora Core" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="centos" label="centos" scheme="http://www.sixapart.com/ns/types#tag" />
    <content type="html" xml:lang="ja" xml:base="http://anh.isitex.net/">
        <![CDATA[<p>ldd /etc/httpd/modules/mod_auth_mysql.so</p>
<p>で</p>
<p>libmysqlclient.so.15 =&gt; not found</p>
<p>ならば</p>
<p>cd /usr/lib</p>
<p>ln -s /usr/lib/mysql/libmysqlclient.so.15 libmysqlclient.so.15</p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]>
        
    </content>
</entry>

<entry>
    <title>携帯動画変換ffmpegとgpac（MP4Box）</title>
    <link rel="alternate" type="text/html" href="http://anh.isitex.net/2009/11/ffmpeggpacmp4box.html" />
    <id>tag:anh.isitex.net,2009://1.208</id>

    <published>2009-11-11T11:37:44Z</published>
    <updated>2009-11-16T16:44:03Z</updated>

    <summary>参考もと http://d.hatena.ne.jp/clearlab/2009...</summary>
    <author>
        <name>admin</name>
        
    </author>
    
        <category term="Fedora Core" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="linux" label="linux" scheme="http://www.sixapart.com/ns/types#tag" />
    <content type="html" xml:lang="ja" xml:base="http://anh.isitex.net/">
        <![CDATA[<p>参考もと</p>
<p><a href="http://d.hatena.ne.jp/clearlab/20091026/1256532860">http://d.hatena.ne.jp/clearlab/20091026/1256532860</a></p>
<p>&nbsp;</p>
<p>DAGリポジトリ<br /><a href="http://dag.wieers.com/rpm/rpm">http://dag.wieers.com/rpm/</p>
<p>rpm</a> --import <a href="http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt">http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt</a><br />rpm -Uhv <a href="http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpmffmpeg">http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm</p>
<p>ffmpeg</a>関連をインストール<br />yum -y install lame amrnb amrwb faac faad2 nasm x264 xvidcore ffmpeg zlib-devel libX11-devel libXt-devel amrnb-devel amrwb-devel faac-devel lame-devel xvidcore-devel gcc</p>
<p>yum -y install ffmpeg-devel</p>
<p>yum -y install re2c<br />wget <a href="http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2/download">http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2/download</a><br />tar jxvf ffmpeg-php-0.6.0.tbz2<br />cd ffmpeg-php-0.6.0<br />phpize<br />./configure<br />make<br />make install</p>
<p><br />gpac（MP4Box）インストール</p>
<p>yum -y install wxGTK<br />yum -y install wxGTK-devel</p>
<p>wget <a href="ftp://ftp.pbone.net/mirror/atrpms.net/sl5-x86_64/atrpms/stable/libfaad0-2.6.1-13.el5.i386.rpm">ftp://ftp.pbone.net/mirror/atrpms.net/sl5-x86_64/atrpms/stable/libfaad0-2.6.1-13.el5.i386.rpm</a><br />rpm -Uvh libfaad0-2.6.1-13.el5.i386.rpm<br />yum -y install freeglut<br />wget <a href="ftp://ftp.pbone.net/mirror/atrpms.net/sl5-i386/atrpms/stable/libmad0-0.15.1b-4.el5.i386.rpm">ftp://ftp.pbone.net/mirror/atrpms.net/sl5-i386/atrpms/stable/libmad0-0.15.1b-4.el5.i386.rpm</a><br />rpm -Uvh libmad0-0.15.1b-4.el5.i386.rpm<br />rpm -Uvh gpac-libs-0.4.5-0.7.20080217cvs.el5.i386.rpm gpac-0.4.5-0.7.20080217cvs.el5.i386.rpm</p>
<p>vi /etc/ld.so.conf.d/local.conf<br />/usr/local/libと記入<br />/sbin/ldconfig実行</p>
<p>&nbsp;</p>]]>
        
    </content>
</entry>

<entry>
    <title>osCommerce スパム対策</title>
    <link rel="alternate" type="text/html" href="http://anh.isitex.net/2009/10/oscommerce-12.html" />
    <id>tag:anh.isitex.net,2009://1.207</id>

    <published>2009-10-28T12:14:03Z</published>
    <updated>2009-10-28T12:15:42Z</updated>

    <summary>contact_us.php line22 //if(ereg(&quot;[^ -~]&quot;...</summary>
    <author>
        <name>admin</name>
        
    </author>
    
        <category term="PHP_CGI" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="oscommerce" label="osCommerce" scheme="http://www.sixapart.com/ns/types#tag" /><category term="スパム" label="スパム" scheme="http://www.sixapart.com/ns/types#tag" />
    <content type="html" xml:lang="ja" xml:base="http://anh.isitex.net/">
        <![CDATA[<p>contact_us.php</p>
<p>line22</p>
<p>//if(ereg("[^ -~]",$enquiry))$enquiryに2byteの文字が含まれる時だけ処理を行う<br />//$enquiryにひらがな(あ～ん)が含まれる時だけ処理を行う<br />#&nbsp;&nbsp;&nbsp; if (tep_validate_email($email_address)) {<br />&nbsp;&nbsp;&nbsp; if ((tep_validate_email($email_address)) &amp;&amp; (ereg("[^ -~]",$enquiry))){<br />#&nbsp;&nbsp;&nbsp; if ((tep_validate_email($email_address)) &amp;&amp; (mb_ereg_match(".*[あ-ん]",$enquiry))){</p>]]>
        
    </content>
</entry>

<entry>
    <title>php encode PHP Obfuscator</title>
    <link rel="alternate" type="text/html" href="http://anh.isitex.net/2009/10/php-encode-php-obfuscator.html" />
    <id>tag:anh.isitex.net,2009://1.206</id>

    <published>2009-10-18T08:40:51Z</published>
    <updated>2009-10-18T08:42:22Z</updated>

    <summary>PHP Obfuscator...</summary>
    <author>
        <name>admin</name>
        
    </author>
    
        <category term="PHP_CGI" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="encode" label="encode" scheme="http://www.sixapart.com/ns/types#tag" /><category term="php" label="php" scheme="http://www.sixapart.com/ns/types#tag" />
    <content type="html" xml:lang="ja" xml:base="http://anh.isitex.net/">
        <![CDATA[<a href="http://www.raizlabs.com/software/phpobfuscator/">PHP Obfuscator</a>]]>
        
    </content>
</entry>

<entry>
    <title>eAccelerator php</title>
    <link rel="alternate" type="text/html" href="http://anh.isitex.net/2009/10/eaccelerator-php.html" />
    <id>tag:anh.isitex.net,2009://1.205</id>

    <published>2009-10-09T14:20:58Z</published>
    <updated>2009-10-12T07:50:05Z</updated>

    <summary># vi /etc/yum.repos.d/utterramblings.rep...</summary>
    <author>
        <name>admin</name>
        
    </author>
    
        <category term="Fedora Core" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="eaccelerator" label="eAccelerator" scheme="http://www.sixapart.com/ns/types#tag" /><category term="linux" label="linux" scheme="http://www.sixapart.com/ns/types#tag" /><category term="php" label="php" scheme="http://www.sixapart.com/ns/types#tag" />
    <content type="html" xml:lang="ja" xml:base="http://anh.isitex.net/">
        <![CDATA[<p># vi /etc/yum.repos.d/utterramblings.repo<br />enabled=0<br />を<br />enabled=1</p>
<p># yum -y install php-devel</p>
<p># vi /etc/yum.repos.d/utterramblings.repo<br />enabled=0</p>
<p># wget <a href="http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.tar.bz2">http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.tar.bz2</a></p>
<p># bzip2 -dc&nbsp;<u><font color="#0000ff">eaccelerator-0.9.5.3.tar.bz2</font></u> | tar xvf -</p>
<p>場所確認<br /># updatedb<br /># locate phpize</p>
<p># cd <u><font color="#0000ff">eaccelerator-0.9.5.3</font></u></p>
<p># phpize<br /># ./configure --enable-eaccelerator=shared --with-php-config=/usr/bin/php-config</p>
<p>&nbsp;</p>
<p># make</p>
<p># make install</p>
<p>ファルダ/usr/lib/php/modules/<br />確認</p>
<p>php.ini<br />最終行に追加</p>
<p>zend_extension="/usr/lib/php/modules/eaccelerator.so"<br />eaccelerator.shm_size="32"<br />eaccelerator.cache_dir="/tmp/eaccelerator"<br />eaccelerator.enable="1"<br />eaccelerator.optimizer="1"<br />eaccelerator.check_mtime="1"<br />eaccelerator.debug="0"<br />eaccelerator.filter=""<br />eaccelerator.shm_max="0"<br />eaccelerator.shm_ttl="0"<br />eaccelerator.shm_prune_period="0"<br />eaccelerator.shm_only="0"<br />eaccelerator.compress="1"<br />eaccelerator.compress_level="9"<br />eaccelerator.allowed_admin_path="/home/info/htdocs/foo/control.php"</p>
<p>Step 4. Creating cache directory</p>
<p>&nbsp; mkdir /tmp/eaccelerator<br />&nbsp; chmod 0777 /tmp/eaccelerator</p>
<p>解凍したフォルダにcontrol.phpが<br />あるので、ID passを変更して<br />設置する</p>]]>
        
    </content>
</entry>

<entry>
    <title>MySQL最適化サーバパラメタ </title>
    <link rel="alternate" type="text/html" href="http://anh.isitex.net/2009/10/mysql-3.html" />
    <id>tag:anh.isitex.net,2009://1.204</id>

    <published>2009-10-03T01:37:44Z</published>
    <updated>2009-10-03T01:39:39Z</updated>

    <summary> 	 		 		 		MySQL/最適化/サーバパラメタ  		 			 			...</summary>
    <author>
        <name>admin</name>
        
    </author>
    
        <category term="Fedora Core" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="linux" label="linux" scheme="http://www.sixapart.com/ns/types#tag" /><category term="mysql" label="mysql" scheme="http://www.sixapart.com/ns/types#tag" />
    <content type="html" xml:lang="ja" xml:base="http://anh.isitex.net/">
        <![CDATA[<div class="main">
	<div class="day">
		<h2><span class="date"></span><span class="title">
		<a href="http://linux.mini13i.gotdns.org/?plugin=related&page=MySQL%2F%BA%C7%C5%AC%B2%BD%2F%A5%B5%A1%BC%A5%D0%A5%D1%A5%E9%A5%E1%A5%BF">
		MySQL/最適化/サーバパラメタ</a> </span></h2>
		<div class="body">
			<div class="section">
				ここでは、サーバパラメタの最適化によるMySQLのチューンについて紹介する。<h2 id="content_1_0">
				パラメタのチェック</h2>
				<p>現在の設定値を確認するには、</p>
				<pre># mysqld --help</pre>
				<p>とする。 MySQL-5.xでは、</p>
				<pre># mysqld --verbose --help</pre>
				<p>としないと、確認できなかった。</p>
				<p>あるいは、クライアントから、</p>
				<pre>mysql&gt; SHOW VARIABLES;</pre>
				<p>でもOK。</p>
				<div class="jumpmenu">
					<a href="#navigator">↑</a></div>
				<h3 id="content_1_1">
				<a id="j5d3aab8" title="j5d3aab8" href="http://linux.mini13i.gotdns.org/?MySQL%2F%BA%C7%C5%AC%B2%BD%2F%A5%B5%A1%BC%A5%D0%A5%D1%A5%E9%A5%E1%A5%BF#j5d3aab8">
				<span class="sanchor">_</span></a> key_buffer_size </h3>
				<p>MyISAM 
				テーブルのインデックスを保存しておくバッファの大きさ。サーバ全体で共有される。メモリに余裕があれば、MyISAMのみのMySQL専用サーバなら、RAMの1/2、Apache 
				などと共用なら、RAM 
				の1/4程度とする。ただし、サイズを大きくすると、OSのページングのために、逆に遅くなることもあるので注意。</p>
				<pre>set-variable = key_buffer=256M</pre>
				<pre>MySQL&gt; SET GLOBAL key_buffer=268435456;</pre>
				<p><strong>Key_reads/Key_read_requests</strong> 
				によりキャッシュミス率を算出し、これを0.003より小さくなるよう、key_buffer_size を割り当てるのが理想らしい。</p>
				<div class="jumpmenu">
					<a href="#navigator">↑</a></div>
				<h3 id="content_1_2">
				<a id="pd8add14" title="pd8add14" href="http://linux.mini13i.gotdns.org/?MySQL%2F%BA%C7%C5%AC%B2%BD%2F%A5%B5%A1%BC%A5%D0%A5%D1%A5%E9%A5%E1%A5%BF#pd8add14">
				<span class="sanchor">_</span></a> innodb_buffer_pool_size </h3>
				<p>InnoDB テーブルのデータとインデックスを保存するためのバッファの大きさ。サーバ全体で共有される。InnoDB のみの 
				MySQL 専用サーバなら、RAMの 70-80% 位まで上げてもよいらしい。MyISAM の key_buffer_size 
				よりも、性能にシビアに影響する。</p>
				<pre>innodb_buffer_pool_size = 256M</pre>
				<div class="jumpmenu">
					<a href="#navigator">↑</a></div>
				<h3 id="content_1_3">
				<a id="p9ba36c0" title="p9ba36c0" href="http://linux.mini13i.gotdns.org/?MySQL%2F%BA%C7%C5%AC%B2%BD%2F%A5%B5%A1%BC%A5%D0%A5%D1%A5%E9%A5%E1%A5%BF#p9ba36c0">
				<span class="sanchor">_</span></a> innodb_log_file_size </h3>
				<p>
				データの書き込み、得に大きなサイズのデータの書き込み性能に影響する。ただし、大きなサイズほどデータのリカバリ時間を要する。サイズを変更する場合、正常停止後、作成済みのログファイル(デフォルトは 
				/var/lib/mysql/ib_logfileX)を削除し、mysqlサーバを起動しなおす必要がある。</p>
				<pre>innodb_log_file_size = 64M</pre>
				<div class="jumpmenu">
					<a href="#navigator">↑</a></div>
				<h3 id="content_1_4">
				<a id="redf7800" title="redf7800" href="http://linux.mini13i.gotdns.org/?MySQL%2F%BA%C7%C5%AC%B2%BD%2F%A5%B5%A1%BC%A5%D0%A5%D1%A5%E9%A5%E1%A5%BF#redf7800">
				<span class="sanchor">_</span></a> innodb_flush_method </h3>
				<p>
				OSによるバッファリングを抑制する。InnoDBのみを使っている場合に、MySQLとOSとによるダブルバッファリング状態になってしまうのを抑制する。LinuxとFreeBSDでは必要な設定だが、Windowsの場合は不要らしい。</p>
				<pre>innodb_flush_method=O_DIRECT</pre>
				<div class="jumpmenu">
					<a href="#navigator">↑</a></div>
				<h3 id="content_1_5">
				<a id="z6e3a01b" title="z6e3a01b" href="http://linux.mini13i.gotdns.org/?MySQL%2F%BA%C7%C5%AC%B2%BD%2F%A5%B5%A1%BC%A5%D0%A5%D1%A5%E9%A5%E1%A5%BF#z6e3a01b">
				<span class="sanchor">_</span></a> 
				innodb_flush_logs_at_trx_commit </h3>
				<p>ログファイルへの書き込み方法を設定する。そのため、書き込みの際の性能に影響する。<br>
				0:ログファイルを使用しない、1:ディスクへ書き込み、2:メモリへ書き込み。当然、2がパフォーマンスで優るが、書き込みの信頼性をあげるなら1が妥当。</p>
				<pre>innodb_flush_log_at_trx_commit = 1</pre>
				<div class="jumpmenu">
					<a href="#navigator">↑</a></div>
				<h3 id="content_1_6">
				<a id="a8507e8d" title="a8507e8d" href="http://linux.mini13i.gotdns.org/?MySQL%2F%BA%C7%C5%AC%B2%BD%2F%A5%B5%A1%BC%A5%D0%A5%D1%A5%E9%A5%E1%A5%BF#a8507e8d">
				<span class="sanchor">_</span></a> query_cache_size </h3>
				<p>Ver. 4.0.1 以降では、実行した Query の SQL とその結果をキャッシュし、同じ Query 
				がキャッシュにある場合は、SQL 
				を実行せずに、キャッシュの内容を返す機能がある。そのためのバッファの大きさ。サーバ全体で共有される。なお、該当するテーブルの内容が変更された場合には、キャッシュもなくなるので、キャッシュによる不具合が生じることはない。</p>
				<pre>query_cache_size= 16M</pre>
				<p>ただし、長いこと使っていると、キャッシュの断片化によりキャッシュからの検索処理がばかにならなくなるので、時々 <em>
				FLUSH QUERY CACHE</em> にてキャッシュのクリアをやってあげた方がよいらしい。</p>
				<div class="jumpmenu">
					<a href="#navigator">↑</a></div>
				<h3 id="content_1_7">
				<a id="vbe23b0b" title="vbe23b0b" href="http://linux.mini13i.gotdns.org/?MySQL%2F%BA%C7%C5%AC%B2%BD%2F%A5%B5%A1%BC%A5%D0%A5%D1%A5%E9%A5%E1%A5%BF#vbe23b0b">
				<span class="sanchor">_</span></a> table_cache </h3>
				<p>MySQL では、DB は MyISAM ならテーブル単位でファイルとして保存されている。table_cache 
				は、一度開いたテーブルを格納しているファイルのファイルポインタを保存しておくためのキャッシュで、次回からのアクセスを高速化する。</p>
				<pre>set-variable = table_cache=1024</pre>
				<pre>mysql&gt; SET GLOBAL table_cache=1024;</pre>
				<p><strong>SHOW STATUS;</strong> で、<strong>Open_tables</strong> 
				の値が大きい場合、 table_cache の数を増やした方がパフォーマンスが向上する。</p>
				<div class="jumpmenu">
					<a href="#navigator">↑</a></div>
				<h3 id="content_1_8">
				<a id="r9db8456" title="r9db8456" href="http://linux.mini13i.gotdns.org/?MySQL%2F%BA%C7%C5%AC%B2%BD%2F%A5%B5%A1%BC%A5%D0%A5%D1%A5%E9%A5%E1%A5%BF#r9db8456">
				<span class="sanchor">_</span></a> sort_buffer_size </h3>
				<p>sort時に使用されるバッファの大きさ。ORDER BY や GROUP BY 使用時のパフォーマンスに影響する。</p>
				<pre>set-variable = sort_buffer_size=512K</pre>
				<div class="jumpmenu">
					<a href="#navigator">↑</a></div>
				<h3 id="content_1_9">
				<a id="r9db8456" title="r9db8456" href="http://linux.mini13i.gotdns.org/?MySQL%2F%BA%C7%C5%AC%B2%BD%2F%A5%B5%A1%BC%A5%D0%A5%D1%A5%E9%A5%E1%A5%BF#r9db8456">
				<span class="sanchor">_</span></a> myisam_sort_buffer_size </h3>
				<p>MyISAMでsort時に使用されるバッファの大きさ。ORDER BY や GROUP BY 
				使用時のパフォーマンスに影響する。</p>
				<pre>set-variable = myisam_sort_buffer_size=512K</pre>
				<ul class="list1">
					<li>REPAIR TABLE</li>
					<li>CREATE INDEX</li>
					<li>ALTER INDEX<br>
					にてINDEXのソートに使用される、バッファの量らしい</li>
				</ul>
				<div class="jumpmenu">
					<a href="#navigator">↑</a></div>
				<h3 id="content_1_10">
				<a id="wf70d91e" title="wf70d91e" href="http://linux.mini13i.gotdns.org/?MySQL%2F%BA%C7%C5%AC%B2%BD%2F%A5%B5%A1%BC%A5%D0%A5%D1%A5%E9%A5%E1%A5%BF#wf70d91e">
				<span class="sanchor">_</span></a> read_buffer_size </h3>
				<p>テーブルを順次読み込んでいく時に使用されるバッファの大きさ。INDEXが使用されない場合に使われる。</p>
				<pre>set-variable = read_buffer_size=256K</pre>
				<div class="jumpmenu">
					<a href="#navigator">↑</a></div>
				<h3 id="content_1_11">
				<a id="h865cd1e" title="h865cd1e" href="http://linux.mini13i.gotdns.org/?MySQL%2F%BA%C7%C5%AC%B2%BD%2F%A5%B5%A1%BC%A5%D0%A5%D1%A5%E9%A5%E1%A5%BF#h865cd1e">
				<span class="sanchor">_</span></a> read_rnd_buffer_size </h3>
				<p>テーブルをランダムで読み込んでいく時に使用されるバッファの大きさ。</p>
				<pre>set-variable = read_rnd_buffer_size=256K;</pre>
				<pre>MySQL&gt; SET GLOBAL read_rnd_buffer_size=262144;</pre>
				<p>ORDER BY や、GROPY BY を行う場合のパフォーマンスに影響する。</p>
				<div class="jumpmenu">
					<a href="#navigator">↑</a></div>
				<h3 id="content_1_12">
				<a id="bf6c3e48" title="bf6c3e48" href="http://linux.mini13i.gotdns.org/?MySQL%2F%BA%C7%C5%AC%B2%BD%2F%A5%B5%A1%BC%A5%D0%A5%D1%A5%E9%A5%E1%A5%BF#bf6c3e48">
				<span class="sanchor">_</span></a> join_buffer_size </h3>
				<p>INDEXが使用されない場合の、テーブル結合時に使われるバッファ。</p>
				<pre>set-variable = join_buffer_size=128K</pre>
				<div class="jumpmenu">
					<a href="#navigator">↑</a></div>
				<h3 id="content_1_13">
				<a id="p1be33d5" title="p1be33d5" href="http://linux.mini13i.gotdns.org/?MySQL%2F%BA%C7%C5%AC%B2%BD%2F%A5%B5%A1%BC%A5%D0%A5%D1%A5%E9%A5%E1%A5%BF#p1be33d5">
				<span class="sanchor">_</span></a> max_connections, 
				max_user_connections </h3>
				<p>クライアントからの接続数の上限。無闇に大きくすると、逆にパフォーマンスを落とす原因にもなる。</p>
				<pre>set-variable = max_connections=140
set-variable = max_user_connections=120</pre>
				<pre>mysql&gt; SET GLOBAL max_connections=xxx;</pre>
				<div class="jumpmenu">
					<a href="#navigator">↑</a></div>
				<h3 id="content_1_14">
				<a id="a1bf675f" title="a1bf675f" href="http://linux.mini13i.gotdns.org/?MySQL%2F%BA%C7%C5%AC%B2%BD%2F%A5%B5%A1%BC%A5%D0%A5%D1%A5%E9%A5%E1%A5%BF#a1bf675f">
				<span class="sanchor">_</span></a> thread_cache_size </h3>
				<p>通常スレッドは、クライアントからの接続ごとに生成され、その後破棄されるが、thread_cache_seize 
				の数だけ破棄されずに再利用することが出来る。</p>
				<pre>set-variable = thread_cache_size=10</pre>
				<pre>mysql&gt; SET GLOBAL thread_cache_size=10;
</pre>
				<div class="jumpmenu">
					<a href="#navigator">↑</a></div>
				<h3 id="content_1_15">
				<a id="i2a10922" title="i2a10922" href="http://linux.mini13i.gotdns.org/?MySQL%2F%BA%C7%C5%AC%B2%BD%2F%A5%B5%A1%BC%A5%D0%A5%D1%A5%E9%A5%E1%A5%BF#i2a10922">
				<span class="sanchor">_</span></a> wait_timeout </h3>
				<p>DBへのコネクションのタイムアウト時間。これが大きすぎると、再利用されず無駄になる。</p>
				<pre>set-variable = wait_timeout=60</pre>
				<pre>mysql&gt; SET GLOBAL wait_timeout=60;</pre>
				<div class="jumpmenu">
					<a href="#navigator">↑</a></div>
				<h3 id="content_1_16">
				<a id="f1a22c48" title="f1a22c48" href="http://linux.mini13i.gotdns.org/?MySQL%2F%BA%C7%C5%AC%B2%BD%2F%A5%B5%A1%BC%A5%D0%A5%D1%A5%E9%A5%E1%A5%BF#f1a22c48">
				<span class="sanchor">_</span></a> skip-name-resolve </h3>
				<p>DNSの逆引きをしないようにする。この場合、クライアントの登録の際、IPアドレスまたは localhost 
				で登録する必要がある。</p>
				<pre>skip-name-resolve</pre>
				<div class="jumpmenu">
					<a href="#navigator">↑</a></div>
				<h3 id="content_1_17">
				<a id="e7692881" title="e7692881" href="http://linux.mini13i.gotdns.org/?MySQL%2F%BA%C7%C5%AC%B2%BD%2F%A5%B5%A1%BC%A5%D0%A5%D1%A5%E9%A5%E1%A5%BF#e7692881">
				<span class="sanchor">_</span></a> delay_key_write </h3>
				<p>有効にすると、index の更新の際、その table が閉じられるまでバッファを DISK 
				に書き込まない。そのため、キー数が多い場合に有用。MyISAM 
				にのみ適用され、デフォルトではCREATEの際に指定したもののみに適用されるようになっている。</p>
				<pre>set-variable = delay_key_write=ALL</pre>
				<p>それでは、いつtableが閉じられるか、というと...</p>
				<ul class="list1">
					<li>キャッシュが一杯で、更にテーブルを読み込もうとしているとき</li>
					<li>table_cache 以上のキャッシュがあり、その table が使われていないとき</li>
					<li>FLUSH TABLES が実行されたとき</li>
				</ul>
				<p>ただし、これを使う場合には、起動オプションに <em>--myisam-recover=BACKUP,FORCE</em> 
				を追加すべき、とのこと。</p>
				<div class="jumpmenu">
					<a href="#navigator">↑</a></div>
				<h2 id="content_1_18">MyISAMとInnoDBの共存 
				<a id="u8be82a9" class="anchor_super" title="u8be82a9" href="http://linux.mini13i.gotdns.org/?MySQL%2F%BA%C7%C5%AC%B2%BD%2F%A5%B5%A1%BC%A5%D0%A5%D1%A5%E9%A5%E1%A5%BF#u8be82a9">
				†</a></h2>
				<p>両方使用する場合、key_buffer_size と innodb_buffer_pool_size 
				の大きさの合計は、メモリの 70-80% までにしたほうがよい。また、Linux x86 では、以下の値が 2GB 
				以上だと危険らしい。最悪の場合、サーバがクラッシュする。</p>
				<pre>innodb_buffer_pool_size + key_buffer_size +
    max_connections * (sort_buffer_size + read_buffer_size) + max_connections * 2 MB</pre>
				<p>これは glibc に起因する問題らしいが、この記載は 4.1 のマニュアルにしかないようなので、glibc 
				のバージョン依存で、既に解決されているのかもしれない。また、32bitの話とも考えられる?</p>
				<div class="jumpmenu">
					<a href="#navigator">↑</a></div>
				<h2 id="content_1_19">Tips
				<a id="o63a5b90" class="anchor_super" title="o63a5b90" href="http://linux.mini13i.gotdns.org/?MySQL%2F%BA%C7%C5%AC%B2%BD%2F%A5%B5%A1%BC%A5%D0%A5%D1%A5%E9%A5%E1%A5%BF#o63a5b90">
				†</a></h2>
				<ul class="list1">
					<li>1データベースに、大量のテーブルを作成すると、動作が遅くなることがある。この場合、table_cache 
					を増やすとで改善できる。</li>
					<li>--skip-name-resolve を mysqld のオプションに設定すると、DNS 
					へのホスト名問い合わせを省略できる。その際は、GRANTでの指定もIPにする必要がある。</li>
					<li>SSL などの暗号化された接続を使わない</li>
					<li>DELETE は遅いので極力使わず、有効/無効のためのフィールドを設ける</li>
					<li>同一ホスト上でのサーバへのアクセスは、TCP/IP 接続でなく、UNIX ドメイン 
					ソケットを使う(default は UNIX ドメイン ソケット)</li>
				</ul>
				<div class="jumpmenu">
					<a href="#navigator">↑</a></div>
				<h2 id="content_1_20">コンパイルオプション 
				<a id="q2226a3b" class="anchor_super" title="q2226a3b" href="http://linux.mini13i.gotdns.org/?MySQL%2F%BA%C7%C5%AC%B2%BD%2F%A5%B5%A1%BC%A5%D0%A5%D1%A5%E9%A5%E1%A5%BF#q2226a3b">
				†</a></h2>
				<ul class="list1">
					<li>gccなら、'-O3'にてコンパイル。また、CXX=gcc として C++の ライブラリ(libstdc++:不要)が含まれないようにする。</li>
					<li>-static オプションを付けてコンパイルする(動的リンクを用いない)。</li>
					<li>strip libexec/mysqld を使用し、不要なシンボルを取り除く</li>
				</ul>
				<div class="jumpmenu">
					<a href="#navigator">↑</a></div>
				<h2 id="content_1_21">参考 
				<a id="r951096c" class="anchor_super" title="r951096c" href="http://linux.mini13i.gotdns.org/?MySQL%2F%BA%C7%C5%AC%B2%BD%2F%A5%B5%A1%BC%A5%D0%A5%D1%A5%E9%A5%E1%A5%BF#r951096c">
				†</a></h2>
				<ul class="list1">
					<li>
					<a rel="nofollow" href="http://dev.mysql.com/doc/refman/4.1/ja/mysql-optimisation.html">
					5. MySQL の最適化 - MySQL 4.1 リファレンスマニュアル</a></li>
					<li>
					<a rel="nofollow" href="http://dev.mysql.com/doc/refman/4.1/ja/innodb-start.html">
					MySQL 4.1 リファレンスマニュアル :: 7.5.3 InnoDB 起動オプション </a></li>
					<li>
					<a rel="nofollow" href="http://slashdot.jp/journal.pl?op=display&uid=4&id=26710">
					MySQLの最適化 - Oliverの日記</a></li>
					<li>
					<a rel="nofollow" href="http://jeremy.zawodny.com/blog/archives/000173.html">
					MySQL, Linux, and Thread Caching</a></li>
					<li>
					<a rel="nofollow" href="http://itpro.nikkeibp.co.jp/members/ITPro/oss/20050213/156109/?ST=itpro_print">
					【MySQLウォッチ】第14回 サーバー設定を見直してMySQLの性能を引き出す - ITpro </a></li>
					<li>
					<a rel="nofollow" href="http://lab.sakasta.com/unix/mysql.html">
					nix laboratry. - MySQL 雑記 </a></li>
					<li>
					<a rel="nofollow" href="http://mysql.timedia.co.jp/modules/weblog1/details.php?blog_id=8">
					テーブルキャッシュが一杯に - レスキューMySQL! </a></li>
				</ul>
				<p>
				<a title=":MySQL" href="http://linux.mini13i.gotdns.org/?%3AMySQL">
				:MySQL</a><a title=":performance" href="http://linux.mini13i.gotdns.org/?%3Aperformance">:performance</a></div>
		</div>
	</div>
</div>
]]>
        
    </content>
</entry>

<entry>
    <title>VBA N-gram</title>
    <link rel="alternate" type="text/html" href="http://anh.isitex.net/2009/09/vba-n-gram.html" />
    <id>tag:anh.isitex.net,2009://1.203</id>

    <published>2009-09-21T13:42:11Z</published>
    <updated>2009-09-21T13:45:48Z</updated>

    <summary>&apos;**************************&apos; Ngram&apos; 文書をN...</summary>
    <author>
        <name>admin</name>
        
    </author>
    
        <category term="Database" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="access" label="Access" scheme="http://www.sixapart.com/ns/types#tag" /><category term="vba" label="VBA" scheme="http://www.sixapart.com/ns/types#tag" />
    <content type="html" xml:lang="ja" xml:base="http://anh.isitex.net/">
        <![CDATA[<p>'**************************<br />' Ngram<br />' 文書をN文字単位に分解<br />' 2009/04/24<br />'**************************</p>
<p>Function Ngram(ByVal 文字列, ByVal n)</p>
<p>　　If Len(文字列) - n &gt; 0 Then<br />　　　　MaxIndex = Len(文字列) - n<br />　　Else<br />　　　　MaxIndex = 0<br />　　End If</p>
<p>　　ReDim tmpArray(MaxIndex)</p>
<p>　　For i = 0 To MaxIndex<br />　　　　tmpArray(i) = Mid(文字列, i + 1, n)<br />　　Next i</p>
<p>　　Ngram = tmpArray</p>
<p>End Function</p>
<p>【使い方】<br />第一引数に対象となるテキスト、第二引数にN(文字列長)を指定します。<br />(ユニグラムなら1、バイグラムなら2、トライグラムから3を指定してください）</p>
<p>Sub NgramSample()<br />　　テキスト = "鏡の国のアリス"<br />　　Debug.Print Join(Ngram(テキスト,2),"-")<br />End Sub</p>
<p>→イミディエイトウィンドウには「鏡の-の国-国の-のア-アリ-リス」と表示<br /></p>
<p>--------------------------</p>
<p>&nbsp;</p>
<p>わかち書き</p>
<p>'**************************<br />' Segmenter<br />' 文書を分かち書き<br />' 2009/04/20<br />' 事前に[ツール]-[参照設定] より<br />' Microsoft Word 11.0 Object Library の参照設定をしておいてください。<br />'**************************<br />Function Segmenter(ByVal 文字列)</p>
<p>　　Dim Word文書 As New Word.Document<br />　　Dim 単語配列()</p>
<p>　　i = 0<br />　　Word文書.Paragraphs(1).Range.Text = 文字列</p>
<p>　　For Each 単語 In Word文書.Paragraphs(1).Range.Words<br />　　　　If 単語.Text &lt;&gt; 文字列 Then<br />　　　　　　ReDim Preserve 単語配列(i)<br />　　　　　　単語配列(i) = 単語.Text<br />　　　　　　 i = i + 1<br />　　　　End If<br />　　Next</p>
<p>　　Segmenter = 単語配列<br />　　Set Word文書 = Nothing<br />　　Word文書.Close</p>
<p>End Function</p>
<p>【使い方】<br />Sub SegmenterSample()<br />　　テキスト = "鏡の国のアリス"<br />　　Debug.Print Join(Segmenter(テキスト),"-")<br />End Sub</p>
<p>→イミディエイトウィンドウには「鏡-の-国-の-アリス」と表示されます。</p>
<p>【付記】<br />分割の候補が複数あるときに、複数出力<br /></p>
<p>参考</p>
<p><a href="http://pub.ne.jp/arihagne/?cat_id=104434">http://pub.ne.jp/arihagne/?cat_id=104434</a></p>]]>
        
    </content>
</entry>

<entry>
    <title>IP無しref無し</title>
    <link rel="alternate" type="text/html" href="http://anh.isitex.net/2009/09/ipref.html" />
    <id>tag:anh.isitex.net,2009://1.202</id>

    <published>2009-09-06T13:21:33Z</published>
    <updated>2009-09-06T13:48:45Z</updated>

    <summary>ttp://alaev.ru/cgi-bin/nph-hap.cgi/00001...</summary>
    <author>
        <name>admin</name>
        
    </author>
    
        <category term="Internet" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="hack" label="hack" scheme="http://www.sixapart.com/ns/types#tag" />
    <content type="html" xml:lang="ja" xml:base="http://anh.isitex.net/">
        <![CDATA[<p>ttp://alaev.ru/cgi-bin/nph-hap.cgi/000010a/http/67.59.186.119/cgi-bin/py.cgi/000110a/http/www.post-mortem.info/cgi-bin/miscopolemammediquellidiinfocamere.pl/000010a/687474703a2f2f7777772e7061676572616e6b63686b2e636f6d2f746572612f6974656d2f3330343537302f736e6f776c616e643a31303032343230302f</p>

<p>SetEnvIf User-Agent "\[ru\]" bad<br />
SetEnvIf User-Agent "Anonymouse" bad<br />
order allow,deny<br />
allow from all<br />
deny from env=bad</p>]]>
        
    </content>
</entry>

<entry>
    <title>WinHttp.WinHttpRequest</title>
    <link rel="alternate" type="text/html" href="http://anh.isitex.net/2009/09/winhttpwinhttprequest.html" />
    <id>tag:anh.isitex.net,2009://1.201</id>

    <published>2009-09-03T02:41:03Z</published>
    <updated>2009-09-03T02:43:05Z</updated>

    <summary><![CDATA[Dim oHttp&nbsp; As Object'Set oHttp = Cr...]]></summary>
    <author>
        <name>admin</name>
        
    </author>
    
        <category term="Database" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="access" label="Access" scheme="http://www.sixapart.com/ns/types#tag" /><category term="vba" label="VBA" scheme="http://www.sixapart.com/ns/types#tag" />
    <content type="html" xml:lang="ja" xml:base="http://anh.isitex.net/">
        <![CDATA[<p>Dim oHttp&nbsp; As Object<br />'Set oHttp = CreateObject("MSXML2.XMLHTTP")<br />Set oHttp = CreateObject("WinHttp.WinHttpRequest.5.1")<br />oHttp.Open "GET", "<a href="http://www.yahoo.co.jp/">http://www.yahoo.co.jp/</a>", False<br />Call oHttp.SetRequestHeader("User-Agent", "Googlebot/2.1 (+http://www.googlebot.com/bot.html)")<br />oHttp.Send<br />Me.txtソース = oHttp.responseText</p>
<p>Set oHttp = Nothing</p>]]>
        
    </content>
</entry>

<entry>
    <title>ms2 oscommerce add_current_page</title>
    <link rel="alternate" type="text/html" href="http://anh.isitex.net/2009/08/ms2-oscommerce-add-current-page.html" />
    <id>tag:anh.isitex.net,2009://1.200</id>

    <published>2009-08-21T14:40:56Z</published>
    <updated>2009-08-21T14:43:43Z</updated>

    <summary>Fatal error: Call to a member function a...</summary>
    <author>
        <name>admin</name>
        
    </author>
    
        <category term="PHP_CGI" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="ms2" label="ms2" scheme="http://www.sixapart.com/ns/types#tag" /><category term="osc" label="osc" scheme="http://www.sixapart.com/ns/types#tag" /><category term="oscommerce" label="oscommerce" scheme="http://www.sixapart.com/ns/types#tag" />
    <content type="html" xml:lang="ja" xml:base="http://anh.isitex.net/">
        <![CDATA[<p><br />Fatal error: Call to a member function add_current_page() on a non-object in /home/info/htdocs/catalog/includes/application_top.php on line 312<br /></p>
<p>// navigation history<br />if (tep_session_is_registered('navigation')) {<br />if (PHP_VERSION &lt; 4) {<br />$broken_navigation = $navigation;<br />$navigation = new navigationHistory;<br />$navigation-&gt;unserialize($broken_navigation);<br />}<br />} else {<br />tep_session_register('navigation');<br />$navigation = new navigationHistory;<br />}<br />$navigation-&gt;add_current_page();<br /><br /><br />Change it TO..........................this<br /><br /><br />// navigation history by apurba<br />if (tep_session_is_registered('navigation')) {<br />if (PHP_VERSION &lt; 4) {<br />$broken_navigation = $navigation;<br />$navigation = new navigationHistory;<br />$navigation-&gt;unserialize($broken_navigation);<br />} else {<br />$navigation = new navigationHistory;<br />}<br />} else {<br />tep_session_register('navigation');<br />$navigation = new navigationHistory;<br />}<br />$navigation-&gt;add_current_page();<br /><br /></p>]]>
        
    </content>
</entry>

<entry>
    <title>out of range centos</title>
    <link rel="alternate" type="text/html" href="http://anh.isitex.net/2009/08/out-of-range-centos.html" />
    <id>tag:anh.isitex.net,2009://1.199</id>

    <published>2009-08-08T10:31:23Z</published>
    <updated>2009-08-08T10:35:53Z</updated>

    <summary>解像度を間違えて設定した場合の修正方法 シングルユーザーモードで起動します。 電...</summary>
    <author>
        <name>admin</name>
        
    </author>
    
        <category term="Fedora Core" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="centos" label="centos" scheme="http://www.sixapart.com/ns/types#tag" />
    <content type="html" xml:lang="ja" xml:base="http://anh.isitex.net/">
        <![CDATA[<p>解像度を間違えて設定した場合の修正方法</p>

<p>シングルユーザーモードで起動します。</p>

<p>電源投入した後、ブートローダ画面(カーネル選択画面)中に「e」を押します。<br />
複数カーネルが存在していた場合は、デフォルトでは1番上が通常起動する物ですので、もう一度「e」を押します。<br />
「kernel /vmlinuz-2.xxx ・・・・・・」にカーソルを合わせて再度「e」を押します。<br />
入力できる状態になるので選択された最後に以下を追加します。<br />
「 single」(スペース１個 + single)<br />
エンターキーを押して確定して下さい。</p>

<p>選択画面になるので、「b]を押してブートします。<br />
上記はシングルモードでの実行になるので、コマンドラインが可能となります。</p>

<p><br />
# vi /etc/X11/xorg.conf</p>

<p>Section "Screen"　　　　　　　　　　　　　　← このセクション<br />
　　Identifier "Screen0"<br />
　　Device　　 "Videocard0"<br />
　　Monitor　　"Monitor0"<br />
　　DefaultDepth　　 24<br />
　　SubSection "Display"<br />
　　　　Viewport　 0 0<br />
　　　　Depth　　 24<br />
　　　　Modes　　"1280x1024" "800x600"←追加 または修正<br />
　　EndSubSection<br />
EndSection</p>

<p>保存した後、OSを再起動してください。</p>

<p># reboot</p>

<p>********************<br />
</p>]]>
        
    </content>
</entry>

<entry>
    <title>php pear pager smarty</title>
    <link rel="alternate" type="text/html" href="http://anh.isitex.net/2009/08/php-pear-pager-smarty.html" />
    <id>tag:anh.isitex.net,2009://1.198</id>

    <published>2009-08-03T17:37:54Z</published>
    <updated>2009-08-03T17:43:49Z</updated>

    <summary>インスト # pear install Pager カスタマイズ /usr/sh...</summary>
    <author>
        <name>admin</name>
        
    </author>
    
        <category term="PHP_CGI" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="pager" label="pager" scheme="http://www.sixapart.com/ns/types#tag" /><category term="pear" label="pear" scheme="http://www.sixapart.com/ns/types#tag" /><category term="php" label="php" scheme="http://www.sixapart.com/ns/types#tag" /><category term="smarty" label="smarty" scheme="http://www.sixapart.com/ns/types#tag" />
    <content type="html" xml:lang="ja" xml:base="http://anh.isitex.net/">
        <![CDATA[<p>インスト</p>
<p># pear install Pager</p>
<p>カスタマイズ</p>
<p>/usr/share/pear/Pager/Common.php</p>
<p>function build()<br />{<br />&nbsp;&nbsp;&nbsp; //reset<br />&nbsp;&nbsp;&nbsp; $this-&gt;_pageData = array();<br />&nbsp;&nbsp;&nbsp; $this-&gt;links = '';<br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; $this-&gt;_generatePageData();<br />&nbsp;&nbsp;&nbsp; $this-&gt;_setFirstLastText();<br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; if ($this-&gt;_totalPages &gt; (2 * $this-&gt;_delta + 1)) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $this-&gt;links .= $this-&gt;_printFirstPage();<br />&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; $this-&gt;links .= $this-&gt;_getBackLink();<br />&nbsp;&nbsp;&nbsp; $this-&gt;links .= $this-&gt;_getPageLinks();<br />&nbsp;&nbsp;&nbsp; $this-&gt;links .= $this-&gt;_getNextLink();<br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; $this-&gt;linkTags .= $this-&gt;_getFirstLinkTag();<br />&nbsp;&nbsp;&nbsp; $this-&gt;linkTags .= $this-&gt;_getPrevLinkTag();<br />&nbsp;&nbsp;&nbsp; $this-&gt;linkTags .= $this-&gt;_getNextLinkTag();<br />&nbsp;&nbsp;&nbsp; $this-&gt;linkTags .= $this-&gt;_getLastLinkTag();<br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; if ($this-&gt;_totalPages &gt; (2 * $this-&gt;_delta + 1)) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $this-&gt;links .= $this-&gt;_printLastPage();<br />&nbsp;&nbsp;&nbsp; }<br />}</p>
<p>----------------------------------------------------------------------------</p>
<p>function build()<br />{<br />&nbsp;&nbsp;&nbsp; //reset<br />&nbsp;&nbsp;&nbsp; $this-&gt;_pageData = array();<br />&nbsp;&nbsp;&nbsp; $this-&gt;links = '';<br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; $this-&gt;_generatePageData();<br />&nbsp;&nbsp;&nbsp; $this-&gt;_setFirstLastText();<br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; $this-&gt;links .= $this-&gt;_getBackLink();<br />&nbsp;&nbsp;&nbsp; if ($this-&gt;_totalPages &gt; (2 * $this-&gt;_delta + 1)) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $this-&gt;links .= $this-&gt;_printFirstPage();<br />&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; $this-&gt;links .= $this-&gt;_getPageLinks();<br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; $this-&gt;linkTags .= $this-&gt;_getFirstLinkTag();<br />&nbsp;&nbsp;&nbsp; $this-&gt;linkTags .= $this-&gt;_getPrevLinkTag();<br />&nbsp;&nbsp;&nbsp; $this-&gt;linkTags .= $this-&gt;_getNextLinkTag();<br />&nbsp;&nbsp;&nbsp; $this-&gt;linkTags .= $this-&gt;_getLastLinkTag();<br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; if ($this-&gt;_totalPages &gt; (2 * $this-&gt;_delta + 1)) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $this-&gt;links .= $this-&gt;_printLastPage();<br />&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; $this-&gt;links .= $this-&gt;_getNextLink();<br />}</p>
<p>------------------------------------------------------------------------------<br />//Pagerへのデータ割り当て処理<br />$perPage=10;<br />$params=array(<br />&nbsp;'mode' =&gt; 'sliding',<br />&nbsp;'append' =&gt; false,<br />&nbsp;'perPage'=&gt; $perPage,<br />&nbsp;'delta' =&gt; 5,<br />&nbsp;'urlVar' =&gt; 'pg',<br />&nbsp;'fileName' =&gt; 'seek-' . $keyword2.'-%d.html',<br />&nbsp;'currentPage' =&gt; $pg,<br />&nbsp;'spacesBeforeSeparator' =&gt; 1,<br />&nbsp;'spacesAfterSeparator' =&gt; 1,<br />&nbsp;'nextImg' =&gt; 'NEXT &gt;&gt;',<br />&nbsp;'prevImg' =&gt; '&lt;&lt; PREV',<br />&nbsp;'clearIfVoid' =&gt; true,<br />&nbsp;'totalItems' =&gt; $cnt<br />&nbsp;);<br />$pager=Pager::factory($params);<br />$navi=$pager-&gt;getLinks();<br />$smarty-&gt;assign("navi", $navi['all']);</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]>
        
    </content>
</entry>

<entry>
    <title>access VBA HTML取得 xml</title>
    <link rel="alternate" type="text/html" href="http://anh.isitex.net/2009/07/access-vba-html-xml.html" />
    <id>tag:anh.isitex.net,2009://1.197</id>

    <published>2009-07-23T05:18:28Z</published>
    <updated>2009-09-03T02:19:12Z</updated>

    <summary><![CDATA[Sub PrintHttpDocSimply()&nbsp; Dim oHttp...]]></summary>
    <author>
        <name>admin</name>
        
    </author>
    
        <category term="Database" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="access" label="access" scheme="http://www.sixapart.com/ns/types#tag" /><category term="html" label="HTML" scheme="http://www.sixapart.com/ns/types#tag" /><category term="vba" label="VBA" scheme="http://www.sixapart.com/ns/types#tag" /><category term="xml" label="xml" scheme="http://www.sixapart.com/ns/types#tag" /><category term="取得" label="取得" scheme="http://www.sixapart.com/ns/types#tag" />
    <content type="html" xml:lang="ja" xml:base="http://anh.isitex.net/">
        <![CDATA[<p class="alt">Sub PrintHttpDocSimply()&nbsp; <br />Dim oHttp&nbsp; As Object<br />Set oHttp = CreateObject("MSXML2.XMLHTTP")<br />oHttp.Open "GET", "<a href="http://www.asia.microsoft.com/japan/">http://www.asia.microsoft.com/japan/</a>", False<br />oHttp.Send<br />Debug.Print oHttp.responseText</p>
<p class="alt">Set oHttp = Nothing<br />End Sub</p>]]>
        
    </content>
</entry>

<entry>
    <title>Pecl hash インストール</title>
    <link rel="alternate" type="text/html" href="http://anh.isitex.net/2009/06/pecl-hash.html" />
    <id>tag:anh.isitex.net,2009://1.196</id>

    <published>2009-06-17T14:15:11Z</published>
    <updated>2009-06-20T15:50:50Z</updated>

    <summary>phpize インストール % yum -y install php-devel...</summary>
    <author>
        <name>admin</name>
        
    </author>
    
        <category term="Fedora Core" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="peclhash" label="Pecl hash" scheme="http://www.sixapart.com/ns/types#tag" />
    <content type="html" xml:lang="ja" xml:base="http://anh.isitex.net/">
        <![CDATA[<p>phpize インストール</p>
<p>% yum -y install php-devel</p>
<p>PECL::Package::hashのダウンロード</p>
<p><a href="http://pecl.php.net/package/hash">http://pecl.php.net/package/hash</a></p>
<p>PECL::Package::hashのインストール</p>
<p>$ tar zxvf <span class="synStatement">hash</span><span class="synConstant">-1</span>.<span class="synConstant">5</span>.tgz<br />$ <span class="synStatement">cd</span> <span class="synStatement">hash</span><span class="synConstant">-1</span>.<span class="synConstant">5</span><br />$ phpize<br />$ ./configure<br />$ make<br /><span class="synComment"># make install</span></p>
<p><span class="synComment">php.ini の設定追加</span></p>
<p><span class="synComment"><span class="synIdentifier">extension</span>=<span class="synStatement">hash</span>.so</span></p>
<p><span class="synComment">httpd再起動</span></p>
<p><span class="synComment"></span>&nbsp;</p>
<p>&nbsp;</p>]]>
        
    </content>
</entry>

<entry>
    <title>smarty日本語modifier.truncate.php</title>
    <link rel="alternate" type="text/html" href="http://anh.isitex.net/2009/06/smartymodifiertruncatephp.html" />
    <id>tag:anh.isitex.net,2009://1.195</id>

    <published>2009-06-15T08:21:42Z</published>
    <updated>2009-06-20T15:50:50Z</updated>

    <summary>modifier.mb_truncate.php　をプラグインフォルダに追加 &amp;...</summary>
    <author>
        <name>admin</name>
        
    </author>
    
    <category term="smarty" label="smarty" scheme="http://www.sixapart.com/ns/types#tag" />
    <content type="html" xml:lang="ja" xml:base="http://anh.isitex.net/">
        <![CDATA[<p>modifier.mb_truncate.php　をプラグインフォルダに追加</p>
<p>&lt;?php<br />function smarty_modifier_mb_truncate($string, $length = 80, $etc = '...') {<br />&nbsp;&nbsp;&nbsp; if ($length == 0) {return '';}</p>
<p>&nbsp;&nbsp;&nbsp; if (mb_strlen($string) &gt; $length) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return mb_substr($string, 0, $length).$etc;<br />&nbsp;&nbsp;&nbsp; } else {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return $string;<br />&nbsp;&nbsp;&nbsp; }<br />}<br />?&gt;</p>
<p>&nbsp;</p>
<p>★文字コード指定</p>
<p>function smarty_modifier_mb_truncate($string, $length = 80, $etc = '...', $encoding = '') {<br />if ($length == 0) {return '';}</p>
<p>if (mb_strlen($string,$encoding) &gt; $length) {<br />return mb_substr($string, 0, $length,$encoding).$etc;<br />} else {<br />return $string;<br />}<br />}</p>
<p>テンプレート側<br />{$datum.title|mb_truncate:24:'...':'utf8'}<br /></p>
<p><a href="http://c-brains.jp/blog/wsg/07/06/14-160910.php">http://c-brains.jp/blog/wsg/07/06/14-160910.php</a></p>]]>
        
    </content>
</entry>

</feed>
