<?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>evardsson.com: stuff that w0rks &#187; WordPress</title>
	<atom:link href="http://www.evardsson.com/blog/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.evardsson.com/blog</link>
	<description>tweaks and hacks, php, python, music, home and ???</description>
	<lastBuildDate>Mon, 23 Jan 2012 18:38:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WordPress support fail: WP-Stats and JetPack</title>
		<link>http://www.evardsson.com/blog/2011/03/19/wordpress-support-fail-wp-stats-and-jetpack/</link>
		<comments>http://www.evardsson.com/blog/2011/03/19/wordpress-support-fail-wp-stats-and-jetpack/#comments</comments>
		<pubDate>Sat, 19 Mar 2011 19:55:51 +0000</pubDate>
		<dc:creator>Sjan Evardsson</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.evardsson.com/blog/?p=440</guid>
		<description><![CDATA[Apparently I am not the only person running in to the message &#8220;Your WordPress.com account, [account name] is not authorized to view the stats of this blog&#8221;. There is a work-around posted at a couple places, but this did not work for me. There seems to be no official word from WP yet, at least [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://wordpress.org/support/topic/your-wordpresscom-account-is-not-authorized-to-view-the-stats-of-this-blog">Apparently</a> I am not the only person running in to the message &#8220;Your WordPress.com account, [account name] is not authorized to view the stats of this blog&#8221;.</p>
<p>There is a <a href="http://www.interactivewebs.com/blog/index.php/general-tips/your-wordpress-com-account-is-not-authorized-to-view-the-stats-of-this-blog/">work-around</a> <a href="http://techgoggles.in/index.php/fixed-your-wordpress-com-account-is-not-authorized-to-view-the-stats-of-this-blog/">posted</a> at a couple places, but this did not work for me.</p>
<p>There seems to be no official word from WP yet, at least not that I can find. There are a lot of recommendations to &#8220;just remove WP-Stats and install JetPack&#8221; &#8211; however, that does not seem to work for me either. Instead I get &#8220;You do not have sufficient permissions to access this page.&#8221;</p>
<p>If WP had planned to replace WP-Stats with JetPack, shouldn&#8217;t they have let everyone know? And if they had planned to modify WP-Stats, shouldn&#8217;t they have first tested those changes to make sure it didn&#8217;t break existing installations? And if they are having unexpected issues shouldn&#8217;t they be A) working diligently to correct them and B) assigning someone to respond in the support forums?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.evardsson.com/blog/2011/03/19/wordpress-support-fail-wp-stats-and-jetpack/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>I need a break &#8230;</title>
		<link>http://www.evardsson.com/blog/2010/04/19/i-need-a-break/</link>
		<comments>http://www.evardsson.com/blog/2010/04/19/i-need-a-break/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 15:10:21 +0000</pubDate>
		<dc:creator>Sjan Evardsson</dc:creator>
				<category><![CDATA[Home]]></category>
		<category><![CDATA[School]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.evardsson.com/blog/?p=394</guid>
		<description><![CDATA[I don&#8217;t usually talk much about my day-to-day life here, but that doesn&#8217;t mean I never do. This is one of those times. If you just want more tech talk check out the end of this post. The rest is all me whinging anyway. ;) I need a break. A real break. I mean, I [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t usually talk much about my day-to-day life here, but that doesn&#8217;t mean I never do. This is one of those times. If you just want more tech talk check out the end of this post. The rest is all me whinging anyway. ;)</p>
<p>I need a break. A real break. I mean, I am technically on a break right now from school but it doesn&#8217;t really feel that way. I finished out my first year of school a couple weeks ago (26 years after graduating from high school, no less) and I thought &#8220;wow, I have an entire month that I can use to rest, catch up on some personal stuff, maybe clean out the garage &#8230;.&#8221; Unfortunately it is not turning out that way.</p>
<p>Instead I am writing this at 5:54 in the morning as this has been the first chance I have had to pay any attention at all to the blog. So what has been keeping me busy? Well, first, there is work. I did use a little of what would have been study time to modify the script I use to generate weekly work reports from <a href="http://trac.edgewall.org/">Trac</a> so that it now shows the amount of change for hours on each ticket (which is set in a &#8220;custom&#8221; field). And holy cow, I put in 58.5 hours last week. At least 8 of that doesn&#8217;t really count, though. I messed my back up and spent some time trying to work while under the influence of <a href="http://en.wikipedia.org/wiki/Cyclobenzaprine">cyclobenzaprine</a> which means that I wrote, scrapped and rewrote one class method at least 6 times before finally giving up. (Programming and drugs that make you stupid don&#8217;t mix!)</p>
<p>Aside from work I have been putting some time into a project for a non-profit that is kicking off on May 12th. I&#8217;m not allowed to say too much about it ahead of launch, but I can say that it is about raising awareness about <a href="http://www.wpinstitute.org/patient/patient_faqs.html">ME/CFS</a> and how badly it has been <a href="http://oslersweb.com/work3.htm">mismanaged and patients marginalized for the past 25 years</a>.</p>
<p>Finally, I upgraded the WordPress plugin <a href="http://www.samuelaguilera.com/archivo/shorten2ping-notifies-pingfm-bitly.xhtml">Shorten2Ping</a> which I will continue to pimp as long as it keeps working so well. Of course I like my post tweets to have some hashtag love, so I do a little editing of the shorten2ping.php.</p>
<p>Here is a diff:</p>
<pre>--- shorten2ping/shorten2ping.php       2010-04-12 10:22:34.000000000 -0700
+++ shorten2ping.mine/shorten2ping.php  2010-04-19 06:47:58.000000000 -0700
@@ -119,6 +119,15 @@
     $post_url = get_permalink($post_id);
     $post_title = strip_tags($post-&gt;post_title);

+               // add some tag bits here
+               $tags = wp_get_post_tags($post_id);
+               $my_tag_list = '';
+               if (is_array($tags)) {
+                       foreach ($tags as $j=&gt;$tag) {
+                               $my_tag_list .= '#'.$tag-&gt;slug.' ';
+                       }
+               }
+
     $short_url_exists = get_post_meta($post_id, 'short_url', true);

              if (empty($short_url_exists)) {
@@ -205,9 +214,19 @@

             //get message from settings and process title and link
             $message = $s2p_options['message'];
+                                               $message_bare_char_count = strlen(str_replace(array('[title]','[link]','[tags]'), '', $message));
+                                               $title_count = strlen($post_title);
+                                               $link_count = strlen($short_url);
+                                               $tag_count = strlen($my_tag_list);
+                                               $over = $message_bare_count + $title_count + $link_count + $tag_count - 140;
+                                               if ($over &gt; 0 &amp;&amp; $over &lt;= $post_title/2) {
+                                                       // if the overage is more than half the post title then skip it and let tags get truncated
+                                                       $post_title = substr($post_title, 0, $title_count - $over);
+                                               }
             $message = str_replace('[title]', $post_title, $message);
                              $message = str_replace('[link]', $short_url, $message);
-
+                                               $message = str_replace('[tags]', $my_tag_list, $message);
+
             if ($s2p_options['ping_service'] == 'pingfm'){

                send_pingfm($pingfm_user_key,$post_id,$message);
</pre>
<p>(You can <a href="http://www.evardsson.com/files/s2ping-1.4.2.diff.txt">download the diff</a> as well.)</p>
<p>Ooops! Draft Saved at 6:23:27 am. And it is now 8:10, and this would still be a draft if I wasn&#8217;t closing browser tabs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.evardsson.com/blog/2010/04/19/i-need-a-break/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WordPress 2.7 SVN headaches</title>
		<link>http://www.evardsson.com/blog/2008/12/19/wordpress-27-svn-headaches/</link>
		<comments>http://www.evardsson.com/blog/2008/12/19/wordpress-27-svn-headaches/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 01:23:37 +0000</pubDate>
		<dc:creator>Sjan Evardsson</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://www.evardsson.com/blog/?p=266</guid>
		<description><![CDATA[When upgrading my blog to WordPress 2.7 using my favorite method (svn sw) I ran into the same problem plenty others were seeing from standard ftp upgrades. Namely: Fatal error: Call to undefined function: wp_remote_request() in /... path to blog .../blog/wp-includes/update.php on line 58. (See more about it here: http://wordpress.org/support/topic/224102?replies=36) I tried all sorts of [...]]]></description>
			<content:encoded><![CDATA[<p>When upgrading my blog to <a href="http://wordpress.org/">WordPress 2.7</a> using my favorite method (svn sw) I ran into the same problem plenty others were seeing from standard ftp upgrades. Namely: <code>Fatal error: Call to undefined function: wp_remote_request() in /<em>... path to blog ...</em>/blog/wp-includes/update.php on line 58.</code> (See more about it here: <a href="http://wordpress.org/support/topic/224102?replies=36">http://wordpress.org/support/topic/224102?replies=36</a>) I tried all sorts of craziness, including deleting everything but my uploads, my images and my custom theme, and then doing an svn up. Still no good. So finally, I got desparate. I did a fresh svn checkout of the 2.7 tag, copied my config, themes, uploads, images and plugins from the old version over, and all was good.</p>
<p>You can imagine, I am sure, that I was not really happy about the thought of going through the whole ordeal again for my wife&#8217;s blog. As fate would have it, svn sw worked like a charm on hers. Go figure.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.evardsson.com/blog/2008/12/19/wordpress-27-svn-headaches/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Time for a new look</title>
		<link>http://www.evardsson.com/blog/2008/04/19/time-for-a-new-look/</link>
		<comments>http://www.evardsson.com/blog/2008/04/19/time-for-a-new-look/#comments</comments>
		<pubDate>Sun, 20 Apr 2008 06:29:43 +0000</pubDate>
		<dc:creator>Sjan Evardsson</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.evardsson.com/blog/?p=225</guid>
		<description><![CDATA[After looking at the same design since January of 2007, I felt it was time for a new look. So, a little tweaking to the theme Hope by Fatma Hassan and here it is, Evardsson 2.0. I love the look of the theme as it is, but I have to have my reindeer or I [...]]]></description>
			<content:encoded><![CDATA[<p>After looking at the same design since January of 2007, I felt it was time for a new look. So, a little tweaking to the theme <a href="http://freethoughts.ftmblog.com/2008/01/18/hope-131/">Hope</a> by <a href="http://freethoughts.ftmblog.com/">Fatma Hassan</a> and here it is, Evardsson 2.0. I love the look of the theme as it is, but I have to have my reindeer or I feel like it isn&#8217;t my site.</p>
<p>I like having a fluid layout, and this one seems to work reliably well while still looking good. I now return you to your regularly scheduled browsing &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.evardsson.com/blog/2008/04/19/time-for-a-new-look/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress as a psuedo-CMS</title>
		<link>http://www.evardsson.com/blog/2008/04/12/wordpress-as-a-psuedo-cms/</link>
		<comments>http://www.evardsson.com/blog/2008/04/12/wordpress-as-a-psuedo-cms/#comments</comments>
		<pubDate>Sun, 13 Apr 2008 07:43:24 +0000</pubDate>
		<dc:creator>Sjan Evardsson</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.evardsson.com/blog/2008/04/12/wordpress-as-a-psuedo-cms/</guid>
		<description><![CDATA[I just finished moving my wife&#8217;s art site completely to WordPress. She recently asked if I could add a blog to her site, and since I knew that she also wanted the ability to modify someof her content from time to time, I decided to completely move her site to WordPress. It is not as [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished moving <a href="http://www.talkingfox.com">my wife&#8217;s art site</a> completely to <a href="http://wordpress.org/">WordPress</a>. She recently asked if I could add a blog to her site, and since I knew that she also wanted the ability to modify someof her content from time to time, I decided to completely move her site to WordPress. It is not as full-featured as a full Content Management System (CMS), but it is also much more light-weight and supports all the things she wants to do (with a few plugins, of course).</p>
<p>The plugins I chose to meet her needs are: 
<ul>
<li>Akismet (of course): Spam Filter (now a default with WP installs)</li>
<li><a href="http://wordpress.org/extend/plugins/flexible-upload/">Flexible Upload</a>: Picture Uploader which auto-creates thumbnails and supports Light-box like plugins.</li>
<li><a href="http://wordpress.org/extend/plugins/google-sitemap-generator/">Google XML Sitemaps</a>: if you don&#8217;t know what that is check out <a href="http://www.google.com/webmasters/tools/">Google&#8217;s Web Master tools</a>.</li>
<li><a href="http://wordpress.org/extend/plugins/wp-postviews-plus/">WP-PostViews Plus</a>: Not the most straight-forward plugin, but she did want some counter tracking.</li>
<li><a href="http://wordpress.org/extend/plugins/lightbox-2/">Lightbox 2</a>:  Provides Lightbox functionality for WordPress. And with the Flexible Upload plugin she doesn&#8217;t have to hand code any of it or write any image links with rel tags.</li>
</ul>
<p>
<div style="visibility: hidden;" title="1208063682014" id="_booktextmark_tab_id_"></div>
<p>Technorati Tags: <a class="performancingtags" href="http://technorati.com/tag/WordPress" rel="tag">WordPress</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.evardsson.com/blog/2008/04/12/wordpress-as-a-psuedo-cms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Update headaches &#8211; resolved???</title>
		<link>http://www.evardsson.com/blog/2007/10/25/wordpress-update-headaches-resolved-2/</link>
		<comments>http://www.evardsson.com/blog/2007/10/25/wordpress-update-headaches-resolved-2/#comments</comments>
		<pubDate>Fri, 26 Oct 2007 04:47:14 +0000</pubDate>
		<dc:creator>Sjan Evardsson</dc:creator>
				<category><![CDATA[Subversion]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.evardsson.com/blog/2007/10/25/wordpress-update-headaches-resolved-2/</guid>
		<description><![CDATA[I had a few headaches updating to WordPress 2.3. Not surprising since the category related tables were removed to make room for native tagging, and I have been relying on the Category Tagging plug-in. Ah well, after some hand sql work I was able to populate the tags to match the categories. Now it can [...]]]></description>
			<content:encoded><![CDATA[<p>I had a few headaches updating to <a href="http://wordpress.org/">WordPress 2.3</a>. Not surprising since the category related tables were removed to make room for native tagging, and I have been relying on the Category Tagging plug-in. Ah well, after some hand sql work I was able to populate the tags to match the categories.</p>
<p>Now it can only get better, right? I have moved to using subversion to pull the latest stable release, so that takes a big chunk of time out of the equation, and now my tagging will happen at the time of posting, rather than being a pseudo-tag solution pulled from post categories. Or will it? I wonder if the tags tab in <a href="http://www.scribefire.com/">ScribeFire</a> will do the trick?</p>
<p>We shall see.</p>
<p>The 3.0 version of the Google Sitemap generator seems to not be working, however, but I may have b0rked something there myself, and I will try again later.</p>
<p>Oh, and those sql statements?</p>
<p>If I remember correctly (I didn&#8217;t keep notes like I should have):</p>
<p>INSERT INTO wp_term_taxonomy (term_id, taxonomy, count) SELECT term_id, &#8216;post_tag&#8217;, count FROM wp_term_taxonomy WHERE taxonomy=&#8217;category&#8217;;</p>
<p>INSERT INTO wp_term_relationships (object_id, term_taxonomy_id) SELECT rel.object_id, tax.term_taxonomy_id FROM wp_term_relationships AS rel, wp_term_taxonomy AS tax, wp_term_taxonomy AS ttx WHERE rel.term_taxonomy_id=ttx.term_taxonomy_id AND ttx.term_id = tax.term_id AND tax.taxonomy=&#8217;post_tag&#8217;;</p>
<p>I could have brought the descriptions across from the categories, too, but I didn&#8217;t think about it until just now.</p>
<p>Edit: I found the issue with the site-map generator. It required a tweak to the memory limits in my php.ini :/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.evardsson.com/blog/2007/10/25/wordpress-update-headaches-resolved-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

