<?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; School</title>
	<atom:link href="http://www.evardsson.com/blog/category/school/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>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>New Beginnings</title>
		<link>http://www.evardsson.com/blog/2009/05/01/new-beginnings/</link>
		<comments>http://www.evardsson.com/blog/2009/05/01/new-beginnings/#comments</comments>
		<pubDate>Sat, 02 May 2009 05:02:59 +0000</pubDate>
		<dc:creator>Sjan Evardsson</dc:creator>
				<category><![CDATA[Home]]></category>
		<category><![CDATA[School]]></category>
		<category><![CDATA[WGU]]></category>

		<guid isPermaLink="false">http://www.evardsson.com/blog/?p=320</guid>
		<description><![CDATA[Just a short post to update all my regular readers out there (yes, both of you) that I start my new job next Wednesday and I started school full-time today. Yes, today. I have started in the BS &#8211; IT Security Emphasis program at Western Governor&#8217;s University. I don&#8217;t have a projected finish date yet, [...]]]></description>
			<content:encoded><![CDATA[<p>Just a short post to update all my regular readers out there (yes, both of you) that I start my new job next Wednesday and I started school full-time today. Yes, today. I have started in the BS &#8211; IT Security Emphasis program at <a href="http://www.wgu.edu/">Western Governor&#8217;s University</a>. I don&#8217;t have a projected finish date yet, but their competency-based model means that I can finish my degree much faster than with a standard program. (Word from one of the admissions counselors is that IT professionals going in to the IT program tend to finish their Bachelor in around 2 years.)</p>
<p>Although I shouldn&#8217;t have to remind anyone I will: everything I say (well, type) here is my opinion and does not reflect the views or opinions of my employer or the school which I attend. With that said I have only one small grievance about my first day at WGU: every link in the student portal has a target of _blank or uses a js call to open a new window. Grrrr. My opinion: bad design idea.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.evardsson.com/blog/2009/05/01/new-beginnings/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

