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

<channel>
	<title>blogging and scraping &#187; other software</title>
	<atom:link href="http://www.tsnpc.com/category/other-software/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tsnpc.com</link>
	<description></description>
	<lastBuildDate>Mon, 12 Jul 2010 22:54:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>The virtual hosting provided by Lunarpages</title>
		<link>http://www.tsnpc.com/the-virtual-hosting-provided-by-lunarpages/</link>
		<comments>http://www.tsnpc.com/the-virtual-hosting-provided-by-lunarpages/#comments</comments>
		<pubDate>Sun, 23 Nov 2008 06:08:27 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[other software]]></category>
		<category><![CDATA[Lunarpages]]></category>
		<category><![CDATA[virtual hosting]]></category>

		<guid isPermaLink="false">http://www.tsnpc.com/?p=150</guid>
		<description><![CDATA[I had hosted some of my websites on Lunarpages for about 2 years, their sevice were good previously but not good any more resently. I had moved 2/3 of my website out of Lunarpages, their response to the tickets become too slow, I wait almost 5 hours for the initial response said my question will [...]]]></description>
			<content:encoded><![CDATA[<p>I had hosted some of my websites on Lunarpages for about 2 years, their sevice were good previously but not good any more resently.</p>
<p>I had moved 2/3 of my website out of Lunarpages, their response to the tickets become too slow, I wait almost 5 hours for the initial response said my question will be forwarded to technical support staff and wait another day to get another response.</p>
<p>Now I have only several wordpress blogs left, and they complained the usage too high, I told them that all my blogs are not active, and they said maybeÂ  malacious script exits on my site and no willing to examine the scripts.</p>
<p>Their limit for usage is 1% CPU usage, 1% Memory usage, 0.2 SQL usage and 20% Top Process, and I guess them put my hosting in a evaluation server for almost one year.</p>
<p><a onmouseover="window.status='http://www.lunarpages.com';return true" onmouseout="window.status='';return true" href="http://www.lunarpages.com/id/nbxgncom" target="_blank"><br />
<img style="border: none" src="http://www.lunarpages.com/banners/images/08_lunarpages_468x60.gif" alt="Lunarpages.com Web Hosting" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tsnpc.com/the-virtual-hosting-provided-by-lunarpages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>$ PHP decode from and encode to Base64 $</title>
		<link>http://www.tsnpc.com/php-decode-from-and-encode-to-base64/</link>
		<comments>http://www.tsnpc.com/php-decode-from-and-encode-to-base64/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 02:23:21 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[other software]]></category>
		<category><![CDATA[base64]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.tsnpc.com/?p=143</guid>
		<description><![CDATA[When preparing plugin for some blogging tool, sometimes it is needed to decode PHP to Base64, following is a simpleway. Copy following code into a file called phpdecode.php and just to exeute it. &#60;?PHP error_reporting(E_ERROR &#124; E_WARNING &#124; E_PARSE); @set_magic_quotes_runtime (0); @header("Content-Type:Â text/html;Â charset=utf-8"); $code=$_POST['code']; $action=$_REQUEST['action']; ifÂ (get_magic_quotes_gpc()) $code=stripslashes($code); ifÂ ($action==&#8216;decode&#8217;)Â { $code=base64_decode($code); $code=nl2br(htmlspecialchars($code)); } else $code=base64_encode($code); ?&#62; &#60;html&#62; &#60;bodyÂ style=&#8221;text-align:Â center;&#8221;&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>When preparing plugin for some blogging tool, sometimes it is needed to decode PHP to Base64, following is a simpleway.</p>
<p>Copy following code into a file called phpdecode.php and just to exeute it.</p>
<p><code><span style="color: #000000;"><span style="color: #0000bb;">&lt;?PHP<br />
error_reporting</span><span style="color: #007700;">(</span><span style="color: #0000bb;">E_ERROR </span><span style="color: #007700;">| </span><span style="color: #0000bb;">E_WARNING </span><span style="color: #007700;">| </span><span style="color: #0000bb;">E_PARSE</span><span style="color: #007700;">);<br />
@</span><span style="color: #0000bb;">set_magic_quotes_runtime </span><span style="color: #007700;">(</span><span style="color: #0000bb;">0</span><span style="color: #007700;">);<br />
@</span><span style="color: #0000bb;">header</span><span style="color: #007700;">(</span><span style="color: #dd0000;">"Content-Type:Â text/html;Â charset=utf-8"</span><span style="color: #007700;">);<br />
</span><span style="color: #0000bb;">$code</span><span style="color: #007700;">=</span><span style="color: #0000bb;">$_POST</span><span style="color: #007700;">[</span><span style="color: #dd0000;">'code'</span><span style="color: #007700;">];<br />
</span><span style="color: #0000bb;">$action</span><span style="color: #007700;">=</span><span style="color: #0000bb;">$_REQUEST</span><span style="color: #007700;">[</span><span style="color: #dd0000;">'action'</span><span style="color: #007700;">];<br />
ifÂ (</span><span style="color: #0000bb;">get_magic_quotes_gpc</span><span style="color: #007700;">()) </span><span style="color: #0000bb;">$code</span><span style="color: #007700;">=</span><span style="color: #0000bb;">stripslashes</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$code</span><span style="color: #007700;">);</span></span></code></p>
<p>ifÂ (<span style="color: #0000bb;">$action</span><span style="color: #007700;">==</span><span style="color: #dd0000;">&#8216;decode&#8217;</span><span style="color: #007700;">)Â {<br />
</span><span style="color: #0000bb;">$code</span><span style="color: #007700;">=</span><span style="color: #0000bb;">base64_decode</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$code</span><span style="color: #007700;">);<br />
</span><span style="color: #0000bb;">$code</span><span style="color: #007700;">=</span><span style="color: #0000bb;">nl2br</span><span style="color: #007700;">(</span><span style="color: #0000bb;">htmlspecialchars</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$code</span><span style="color: #007700;">));<br />
}<br />
else </span><span style="color: #0000bb;">$code</span><span style="color: #007700;">=</span><span style="color: #0000bb;">base64_encode</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$code</span><span style="color: #007700;">);<br />
</span><span style="color: #0000bb;">?&gt;<br />
</span><br />
&lt;html&gt;<br />
&lt;bodyÂ style=&#8221;text-align:Â center;&#8221;&gt;<br />
&lt;divÂ style=&#8221;text-align:Â left;Â width:Â 90%;Â font-family:Â Verdana;Â font-size:Â 14px;Â margin:Â auto;Â background:Â #EFEFEF;Â color:Â #000;&#8221;&gt;&lt;b&gt;Result:Â &lt;/b&gt;&lt;br&gt;&lt;br&gt;<span style="color: #0000bb;">&lt;?php </span><span style="color: #007700;">echoÂ (</span><span style="color: #0000bb;">$code</span><span style="color: #007700;">);</span><span style="color: #0000bb;">?&gt;</span>&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;<br />
&lt;formÂ action=&#8221;decodephp.php&#8221;Â method=&#8217;post&#8217;&gt;<br />
&lt;textareaÂ name=&#8217;code&#8217;Â cols=&#8217;100&#8242;Â rows=&#8217;16&#8242;&gt;&lt;/textarea&gt;&lt;br&gt;<br />
&lt;inputÂ type=&#8217;radio&#8217;Â name=&#8217;action&#8217;Â value=&#8217;decode&#8217;Â checked&gt;DECODEÂ &amp;nbsp;Â &amp;nbsp;Â &lt;inputÂ type=&#8217;radio&#8217;Â name=&#8217;action&#8217;Â value=&#8217;encode&#8217;&gt;ENCODE&lt;br&gt;&lt;br&gt;<br />
&lt;inputÂ type=&#8217;submit&#8217;&gt;Â &amp;nbsp;Â &amp;nbsp;Â &lt;inputÂ type=&#8217;reset&#8217;&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>You can copy the following code between &lt;php&gt; and &lt;/php&gt;, and give aÂ  try at the link http://www.tsnpc.com/decodephp.php:</p>
<p>&lt;php&gt;JGFsbF9zZW50ZW5jZXNfZmlsZT0icGx1Z2luL3NiL3NlbnRlbmNlcy50eHQiOw0KJGFsbF9zZW49QGZpbGUoJGFsbF9zZW50ZW5jZXNfZmlsZSk7DQokYWxsX251bT1jb3VudCgkYWxsX3NlbiktMTsNCiRjdXJfbnVtPXJhbmQoMCwgJGFsbF9udW0pOw0KJHBocHJldHVybj0kYWxsX3NlblskY3VyX251bV07&lt;/php&gt;</p>
<h4>Related Blogs</h4>
<ul class="pc_pingback">
<li class="hdl" style="list-style: none">Related Blogs on <strong>base64</strong></li>
<li><a href="http://www.mikechambers.com/blog/2008/06/12/base64-encoding-and-decoding-in-javascript-in-adobe-air/">Base64 Encoding and Decoding in JavaScript in Adobe AIR</a></li>
<li><a href="http://vikashazrati.wordpress.com/2008/07/25/base64-converting-binary-data-to-ascii-text/">Base64 : Converting Binary Data to ASCII Text</a></li>
</ul>
<ul class="pc_pingback">
<li class="hdl" style="list-style: none">Related Blogs on <strong>php</strong></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.tsnpc.com/php-decode-from-and-encode-to-base64/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sql replace statement at locoy</title>
		<link>http://www.tsnpc.com/sql-replace-statement-at-locoy/</link>
		<comments>http://www.tsnpc.com/sql-replace-statement-at-locoy/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 17:47:50 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[other software]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.tsnpc.com/?p=43</guid>
		<description><![CDATA[UPDATE Content SET [title]=REPLACE( [title],&#8217;existed text&#8217;,'replasement text&#8217;);]]></description>
			<content:encoded><![CDATA[<p>UPDATE Content SET [title]=<strong style="color: black; background-color: #99ff99;">REPLACE</strong>( [title],&#8217;existed text&#8217;,'replasement text&#8217;);</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tsnpc.com/sql-replace-statement-at-locoy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A way to change the footer of Coppermine Photo Gallery</title>
		<link>http://www.tsnpc.com/a-way-to-change-the-footer-of-coppermine-photo-gallery/</link>
		<comments>http://www.tsnpc.com/a-way-to-change-the-footer-of-coppermine-photo-gallery/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 23:44:03 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[other software]]></category>
		<category><![CDATA[Photo Gallery]]></category>

		<guid isPermaLink="false">http://tsnpc.com/?p=26</guid>
		<description><![CDATA[Coppermine Photo Gallery is a wonderful web photo album, following is a way to change the footer of CPG: Go to the file of themes.inc.php in the folder \include, find the codeï¼š global $template_footer; $template_footer = &#8216;&#60;div class=&#8221;footer&#8221; style=&#8221;padding-top: 5px;&#8221; align=&#8221;center&#8221;&#62; ******you can put the content of your footer here********** &#60;/div&#62;&#8217;;]]></description>
			<content:encoded><![CDATA[<p>Coppermine Photo Gallery is a wonderful web photo album, following is a way to change the footer of CPG:</p>
<p>Go to the file of themes.inc.php in the folder \include, find the codeï¼š</p>
<p>global $template_footer;<br />
$template_footer = &#8216;&lt;div class=&#8221;footer&#8221; style=&#8221;padding-top: 5px;&#8221; align=&#8221;center&#8221;&gt;<br />
******you can put the content of your footer here**********</p>
<p>&lt;/div&gt;&#8217;;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tsnpc.com/a-way-to-change-the-footer-of-coppermine-photo-gallery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
