<?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.humaneguitarist.org &#187; WordPress</title>
	<atom:link href="http://blog.humaneguitarist.org/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.humaneguitarist.org</link>
	<description>discoveries in digital audio, music notation, and information encoding</description>
	<lastBuildDate>Tue, 07 Feb 2012 03:33:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>a switch to Syntax Highlighter Compress, a WordPress plugin</title>
		<link>http://blog.humaneguitarist.org/2011/09/29/a-switch-to-syntax-highlighter-compress-a-wordpress-plugin/</link>
		<comments>http://blog.humaneguitarist.org/2011/09/29/a-switch-to-syntax-highlighter-compress-a-wordpress-plugin/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 02:30:22 +0000</pubDate>
		<dc:creator>nitin</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[syntax highlighting]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.humaneguitarist.org/?p=3310</guid>
		<description><![CDATA[Just a note to self here. Tonight I noticed some problems with Syntax Highlighter Evolved, the plugin I was using for code and XML snippets, etc. I was trying to load a page with an XML snippet and my browser was reporting that it couldn&#39;t find the XML brush. Reinstalling the plugin probably would have [...]]]></description>
			<content:encoded><![CDATA[<p>Just a note to self here.</p>
<p>Tonight I noticed some problems with Syntax Highlighter Evolved, the plugin I was using for code and XML snippets, etc.</p>
<p>I was trying to load a page with an XML snippet and my browser was reporting that it couldn&#39;t find the XML brush. Reinstalling the plugin probably would have fixed it but, all the same, I switched to <a href="http://wordpress.org/extend/plugins/syntax-highlighter-compress/">Syntax Highlighter Compress</a> which, true to its claims, does seem to work faster than other syntax highlighters I&#39;ve tried.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.humaneguitarist.org/2011/09/29/a-switch-to-syntax-highlighter-compress-a-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>a change of theme and missing WordPress comments</title>
		<link>http://blog.humaneguitarist.org/2011/09/19/a-change-of-theme/</link>
		<comments>http://blog.humaneguitarist.org/2011/09/19/a-change-of-theme/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 01:24:27 +0000</pubDate>
		<dc:creator>nitin</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[missing comments]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.humaneguitarist.org/?p=3217</guid>
		<description><![CDATA[Last night, I discovered that some old comments from about a year ago were no longer showing up on this blog with the Journalist 1.9 theme. So, I&#39;ve spent far too much time playing around with themes tonight. I hate most WordPress themes because a lot of them, at least the free ones, don&#39;t seem [...]]]></description>
			<content:encoded><![CDATA[<p>Last night, I discovered that some old comments from about a year ago were no longer showing up on this blog with the <a href="http://lucianmarin.com/test/index.php?wptheme=Journalist">Journalist 1.9</a> theme.</p>
<p>So, I&#39;ve spent far too much time playing around with themes tonight. I hate most WordPress themes because a lot of them, at least the free ones, don&#39;t seem to place a high value on readability. Too much razzle-dazzle.</p>
<p>For now I&#39;ve switched to something else and, using the Journalist CSS file, I replaced some values in the current CSS to make the text look better to my eyes.</p>
<p>I guess at some point I should document the changes I made, huh?</p>
<p>&#8230;</p>
<p><strong>Update, September 20, 2011: </strong>Aha! It seems that turning off the WordPress feature that automatically disables comments on old posts was the problem for the Journalist theme. In other words, Journalist &#8211; as well as many other themes it seems &#8211; won&#39;t show comments even if they exist if commenting is turned off for a given post. This includes commenting that&#39;s turned off manually or because WordPress was automatically disabling the ability to add new comments to posts that were over a year or so old.</p>
<p>I don&#39;t like that so I might tweak the Journalist behavior at some point. I think it&#39;s valid to turn off commenting for really old posts or because there are too many spammy comments appearing on a given post. But I don&#39;t think that means current users shouldn&#39;t be able to view older comments &#8211; those are often more valuable than the post itself!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.humaneguitarist.org/2011/09/19/a-change-of-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>syntax highlighting with WordPress: that&#039;s not that!</title>
		<link>http://blog.humaneguitarist.org/2011/03/13/syntax-highlighting-with-wordpress-thats-not-that-2/</link>
		<comments>http://blog.humaneguitarist.org/2011/03/13/syntax-highlighting-with-wordpress-thats-not-that-2/#comments</comments>
		<pubDate>Mon, 14 Mar 2011 03:48:14 +0000</pubDate>
		<dc:creator>nitin</dc:creator>
				<category><![CDATA[technophilia]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[Indian food]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[syntax highlighting]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.humaneguitarist.org/?p=2482</guid>
		<description><![CDATA[A few months ago I posted on how I used the Syntax Highlighter Evolved plugin for WordPress to make code snippets more readable. Anyway, at the time I was really excited to be able to put some nice looking code/markup into my posts. Never mind that the code itself wasn&#39;t so nice! Over time, of [...]]]></description>
			<content:encoded><![CDATA[<p>A few months ago I posted on how I used the <a href="http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/">Syntax Highlighter Evolved</a> plugin for WordPress to make code snippets more readable.</p>
<p>Anyway, at the time I was really excited to be able to put some nice looking code/markup into my posts. Never mind that the code itself wasn&#39;t so nice!</p>
<p><img alt=":P" src="http://blog.humaneguitarist.org/wp-content/plugins/fckeditor-for-wordpress-plugin/ckeditor/plugins/smiley/images/tounge_smile.gif" title=":P" /></p>
<p>Over time, of course, I&#39;ve wanted to make things easier. As I mentioned <a href="http://blog.humaneguitarist.org/2010/09/06/syntax-highlighting-with-wordpress/">in the earlier post</a> I was pasting in my code using <a href="http://wordpress.org/extend/plugins/fckeditor-for-wordpress-plugin/">Deans&#39; FCKEditor</a>, using the Styles drop-down to mark up my code as &lt;code&gt; and then in turn editing the source HTML to change the &lt;code&gt; tag to a &lt;pre&gt; tag with the appropriate attribute to denote that my code was either Python or XML, etc.</p>
<p>Well, as I remarked to a friend of mine today over lunch, I&#39;m sick of doing that.</p>
<p>So I dug around in all the files that are part of Dean&#39;s FCKEditor. I learned that by editing the &quot;ckeditor/plugins/stylescombo/styles/default.js&quot; file that I could add options to the Styles drop-down menu. Now, when I paste in Python, XML, or Javascript I just need to highlight the code and pick the right option from the Styles list. It&#39;s SO much easier.</p>
<p>Here&#39;s an image of the Styles list with the added options mentioned:</p>
<p><img alt="" class="alignnone size-full wp-image-2485" height="262" src="http://blog.humaneguitarist.org/uploads/deansTweak1.png" title="deansTweak" width="161" /></p>
<p>If you are curious to see the .js file with the minor additions, I&#39;ve pasted it below &#8211; and even highlighted it using the new <code>Code: Javascript</code> option.</p>
<pre class="brush:javascript">/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.addStylesSet(&#39;default&#39;,[{name:&#39;Blue Title&#39;,element:&#39;h3&#39;,styles:{color:&#39;Blue&#39;}},
{name:&#39;Red Title&#39;,element:&#39;h3&#39;,styles:{color:&#39;Red&#39;}},
{name:&#39;Marker: Yellow&#39;,element:&#39;span&#39;,styles:{&#39;background-color&#39;:&#39;Yellow&#39;}},
{name:&#39;Marker: Green&#39;,element:&#39;span&#39;,styles:{&#39;background-color&#39;:&#39;Lime&#39;}},
{name:&#39;Big&#39;,element:&#39;big&#39;},
{name:&#39;Small&#39;,element:&#39;small&#39;},
{name:&#39;Typewriter&#39;,element:&#39;tt&#39;},
{name:&#39;Computer Code&#39;,element:&#39;code&#39;},
{name:&#39;Keyboard Phrase&#39;,element:&#39;kbd&#39;},
{name:&#39;Sample Text&#39;,element:&#39;samp&#39;},
{name:&#39;Variable&#39;,element:&#39;var&#39;},
{name:&#39;Deleted Text&#39;,element:&#39;del&#39;},
{name:&#39;Inserted Text&#39;,element:&#39;ins&#39;},
{name:&#39;Cited Work&#39;,element:&#39;cite&#39;},
{name:&#39;Inline Quotation&#39;,element:&#39;q&#39;},
{name:&#39;Language: RTL&#39;,element:&#39;span&#39;,attributes:{dir:&#39;rtl&#39;}},
{name:&#39;Language: LTR&#39;,element:&#39;span&#39;,attributes:{dir:&#39;ltr&#39;}},
{name:&#39;Image on Left&#39;,element:&#39;img&#39;,attributes:{style:&#39;padding: 5px; margin-right: 5px&#39;,border:&#39;2&#39;,align:&#39;left&#39;}},
{name:&#39;Image on Right&#39;,element:&#39;img&#39;,attributes:{style:&#39;padding: 5px; margin-left: 5px&#39;,border:&#39;2&#39;,align:&#39;right&#39;}},
/* start of added options */
{name:&#39;Code: Python&#39;,element:&#39;pre&#39;,attributes:{class:&#39;brush:python&#39;}},
{name:&#39;Code: XML&#39;,element:&#39;pre&#39;,attributes:{class:&#39;brush:xml&#39;}},
{name:&#39;Code: Javascript&#39;,element:&#39;pre&#39;,attributes:{class:&#39;brush:javascript&#39;}}
/* end of added options */
]);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.humaneguitarist.org/2011/03/13/syntax-highlighting-with-wordpress-thats-not-that-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tweaking Efficient Related Posts, a WordPress plugin</title>
		<link>http://blog.humaneguitarist.org/2010/12/20/tweaking-a-related-posts-wordpress-plugin/</link>
		<comments>http://blog.humaneguitarist.org/2010/12/20/tweaking-a-related-posts-wordpress-plugin/#comments</comments>
		<pubDate>Mon, 20 Dec 2010 06:12:57 +0000</pubDate>
		<dc:creator>nitin</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[technophilia]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[related posts]]></category>
		<category><![CDATA[similarity]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.humaneguitarist.org/?p=2104</guid>
		<description><![CDATA[There are so many plugins for WordPress that it&#39;s easy to get carried away and install more than necessary. I hope I&#39;ve avoided that. I try to limit myself to plugins that can really improve the reader&#39;s experience. The other day, I installed Efficient Related Posts (0.3.6). It&#39;s a great tool to generate a list [...]]]></description>
			<content:encoded><![CDATA[<p>There are so many plugins for WordPress that it&#39;s easy to get carried away and install more than necessary. I hope I&#39;ve avoided that. I try to limit myself to plugins that can really improve the reader&#39;s experience.</p>
<p>The other day, I installed <a href="http://wordpress.org/extend/plugins/efficient-related-posts/">Efficient Related Posts</a> (0.3.6). It&#39;s a great tool to generate a list of hopefully related posts on my blog. There should even be some listed below this post.</p>
<p><img alt=";)" src="http://blog.humaneguitarist.org/wp-content/plugins/fckeditor-for-wordpress-plugin/ckeditor/plugins/smiley/images/wink_smile.gif" title=";)" /></p>
<p>Under the settings, you can alter what the header says and even have it auto-generate related posts for every blog post. For example, I changed the header &quot;Related Posts&quot; to &quot;Related Content&quot;.</p>
<p>But one thing I didn&#39;t see the settings offer is a way to hide that header in cases where no related content was generated.</p>
<p>In other words, when no related content was generated it was displaying something like &quot;Related Content: no related posts found.&quot; I don&#39;t want people to see that so I tweaked the code in the main plugin script using WordPress&#39; plugin editor.</p>
<p>Here&#39;s the code below. It&#39;s only a minor change for the &quot;if&quot; block that starts at around line 307.</p>
<pre class="brush:php">if ( !empty($settings[&#39;title&#39;]) &amp;&amp; !empty($relatedPosts)) {
	$output = &quot;--------------&lt;h4 class=&#39;related_post_title&#39;&gt;{$settings[&#39;title&#39;]}&lt;/h4&gt;{$output}&quot;;
	/* Nitin Arora modified the code above on 20101219 to display differently.
	By adding the &quot;&amp;&amp; !empty($relatedPosts)&quot; condition, only posts/pages with related content
	will show the related content header.
	A few &quot;-&quot;s were added to offset the related content header for readability.
	Also, the &lt;h4&gt; tag was originally an &lt;h3&gt;. */
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.humaneguitarist.org/2010/12/20/tweaking-a-related-posts-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>syntax highlighting with WordPress</title>
		<link>http://blog.humaneguitarist.org/2010/09/06/syntax-highlighting-with-wordpress/</link>
		<comments>http://blog.humaneguitarist.org/2010/09/06/syntax-highlighting-with-wordpress/#comments</comments>
		<pubDate>Mon, 06 Sep 2010 19:39:15 +0000</pubDate>
		<dc:creator>nitin</dc:creator>
				<category><![CDATA[technophilia]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[syntax highlighting]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.humaneguitarist.org/?p=1622</guid>
		<description><![CDATA[Thankfully, pretty much nobody reads this blog. If they did, they&#39;d have seen a lot of weird changes going on in real-time concerning some XML code in a recent post. Basically, I&#39;ve been playing around with various WordPress plugins that support syntax highlighting, which is a fancy way of color-coding code examples with color-coding specific [...]]]></description>
			<content:encoded><![CDATA[<p>Thankfully, pretty much nobody reads this blog.</p>
<p>If they did, they&#39;d have seen a lot of weird changes going on in real-time concerning some XML code in a recent post.</p>
<p>Basically, I&#39;ve been playing around with various WordPress plugins that support <a href="http://en.wikipedia.org/wiki/Syntax_highlighting">syntax highlighting</a>, which is a fancy way of color-coding code examples with color-coding specific to various scripting and markup languages like PHP, Python, XML, etc.</p>
<p>Anyway, after playing around with several, I was running into the same issue with the indent stripping as talked about <a href="http://www.travislin.com/2009/05/guide-to-find-a-wordpress-syntax-highlighter-that-works/">here</a>. The use of indentation is paramount to making one&#39;s code readable and in some languages, like Python, indentation is required.</p>
<p>In other words, this is valid Python code:</p>
<p style="margin-left: 40px;"><code>if a == a:</code></p>
<p style="margin-left: 80px;"><code>print &quot;The &#39;a&#39; variable is equal to itself!&quot;</code></p>
<p>But this is invalid:</p>
<p style="margin-left: 40px;"><code>if a == a:</code></p>
<p style="margin-left: 40px;"><code>print &quot;The &#39;a&#39; variable is equal to itself!&quot;</code></p>
<p>because the print statement is dependent on a condition.</p>
<p>Anyway, what was happening was that I&#39;d put code into WordPress, the indentation and highlighting would look good, but if I wanted to edit my post later all the indentation would be lost when I&#39;d reopened the post in the editor (btw: I use <a href="http://www.deanlee.cn/wordpress/fckeditor-for-wordpress-plugin/">Dean&#39;s FCKEditor</a>).</p>
<p>So here&#39;s what appears to fix it:</p>
<ul>
<li>I installed my preferred WordPress syntax highlighter: <strike><a href="http://www.phodana.de/wordpress/wp-plugin-syntax-highlighter-compress/">Syntax Highlighter Compress</a></strike> <a href="http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/">Syntax Highlighter Evolved</a>.</li>
<li>I wrote my post and pasted my code directly into the Visual Editor.</li>
<li>I then highlighted only the code and from the Visual Editor&#39;s &quot;styles&quot; drop-down menu I chose &quot;Computer Code&quot;.</li>
<li>I then edited the post in Source mode.
<ul>
<li>The indentations had now been converted to the proper <a href="http://www.w3schools.com/HTML/html_entities.asp">HTML entity names</a>.</li>
</ul>
</li>
<li>I replaced the &lt;code&gt; tags with &lt;pre&gt; tags.
<ul>
<li>
<div>The opening &lt;pre&gt; tag needs a &quot;class&quot; attribute to specify the type of code (i.e. Python, XML, etc.)</div>
</li>
<li>
<div>For example, I&#39;d use this for Python:</div>
<ul>
<li>
<div>&lt;pre class=&quot;brush:python&quot;&gt;</div>
</li>
</ul>
</li>
<li>
<div>and this for XML:</div>
<ul>
<li>
<div>&lt;pre class=&quot;brush:xml&quot;&gt;</div>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<p>From then on, everything seems to be OK. That is to say, I can edit my post at a later time with the Source or Visual Editor and all my indentations are intact.</p>
<p>Here&#39;s the earlier Python code using the technique just described:</p>
<pre class="brush:python">if a == a:
	&nbsp;&nbsp;&nbsp; print &quot;The &#39;a&#39; variable is equal to itself!&quot;
</pre>
<p>And that&#39;s that &#8230; I hope.</p>
<p><img alt=":P" src="http://blog.humaneguitarist.org/wp-content/plugins/fckeditor-for-wordpress-plugin/ckeditor/plugins/smiley/images/tounge_smile.gif" title=":P" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.humaneguitarist.org/2010/09/06/syntax-highlighting-with-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Noteflight and WordPress</title>
		<link>http://blog.humaneguitarist.org/2010/07/11/noteflight-and-wordpress/</link>
		<comments>http://blog.humaneguitarist.org/2010/07/11/noteflight-and-wordpress/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 14:58:22 +0000</pubDate>
		<dc:creator>nitin</dc:creator>
				<category><![CDATA[music notation]]></category>
		<category><![CDATA[Noteflight]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.humaneguitarist.org/?p=1435</guid>
		<description><![CDATA[I haven&#39;t played around with this yet but in the latest newsletter by the Noteflight crew, it seems they&#39;ve added score integration into WordPress blogs (like this one): If you&#39;re hosting your own WordPress site, Noteflight integrates with WordPress in a couple of exciting ways. First, we now support single-signon between WordPress and Noteflight Learning [...]]]></description>
			<content:encoded><![CDATA[<p>I haven&#39;t played around with this yet but in the latest newsletter by the <a href="http://www.noteflight.com">Noteflight</a> crew, it seems they&#39;ve added score integration into WordPress blogs (like this one):</p>
<blockquote>
<p>If you&#39;re hosting your own WordPress site, Noteflight integrates with WordPress in a couple of exciting ways. First, we now support single-signon between WordPress and Noteflight Learning Edition. This means you can set up a Learning Edition community with Noteflight, and let every user on your WordPress site seamlessly access a matching account on Learning Edition without ever needing to sign in separately. All your WordPress users will also be able to see scores shared within that community. Second, Noteflight supports a nifty standard called OEmbed, that allows you to simply paste a Noteflight score link into WordPress and have the embedded score appear as if by magic. (You have to configure your WordPress site to tell it that this is OK.)</p>
</blockquote>
<p>When I test this out, I&#39;ll post on this topic again. But for now I really just needed to put this on my blog to have a record of this news, given that I&#39;d already forgotten that it was in my email box. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.humaneguitarist.org/2010/07/11/noteflight-and-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

