<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Bring Your Own Terms Of Service &#187; Featured</title>
	<atom:link href="http://byotos.com/category/featured/feed/" rel="self" type="application/rss+xml" />
	<link>http://byotos.com</link>
	<description></description>
	<lastBuildDate>Mon, 07 May 2012 20:14:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='byotos.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Bring Your Own Terms Of Service &#187; Featured</title>
		<link>http://byotos.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://byotos.com/osd.xml" title="Bring Your Own Terms Of Service" />
	<atom:link rel='hub' href='http://byotos.com/?pushpress=hub'/>
		<item>
		<title>Hijacking WordPress Internationalisation</title>
		<link>http://byotos.com/2010/04/08/hijacking-wordpress-internationalisation/</link>
		<comments>http://byotos.com/2010/04/08/hijacking-wordpress-internationalisation/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 19:27:20 +0000</pubDate>
		<dc:creator>Paul Gibbs</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Code Sample]]></category>

		<guid isPermaLink="false">http://byotos.com/?p=129</guid>
		<description><![CDATA[As part of a new feature I am developing for the next release of my Welcome Pack plugin for BuddyPress, I needed a really smart way of dynamically adding my own translations for strings at page-load time; creating a stand-alone .mo file to load the strings wasn&#8217;t a great solution, for reasons of requiring people [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=byotos.com&#038;blog=18766096&#038;post=129&#038;subd=byotos&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As part of a new feature I am developing for the next release of my <a href="http://wordpress.org/extend/plugins/welcome-pack/" target="_blank">Welcome Pack</a> plugin for <a href="http://buddypress.org/" target="_blank">BuddyPress</a>, I needed a really smart way of dynamically adding my own translations for strings at page-load time; creating a stand-alone <a href="http://codex.wordpress.org/Translating_WordPress#gettext_files" target="_blank">.mo </a>file to load the strings wasn&#8217;t a great solution, for reasons of requiring people to know how to configure file permissions on the server, having to figure out how to write a .mo file (I wish they were as easy as XML, but they aren&#8217;t), and &#8212; honestly &#8212; doing it that way feels like such a hack.</p>
<p><span id="more-129"></span>Here&#8217;s how. Be warned that this will overwrite any translation loaded by a .mo file, but that&#8217;s exactly what I needed to do.</p>
<p>To add a new string into the localisation table:</p>
<p><pre class="brush: php; gutter: false;">
function example() {
global $l10n;

$mo = new MO();
$mo-&amp;gt;add_entry( array( 'singular' =&amp;gt; 'Spongebob', 'translations' =&amp;gt; array( 'Squarepants' ) ) );
if ( isset( $l10n['buddypress'] ) )  //buddypress is the textdomain
$mo-&amp;gt;merge_with( $l10n['buddypress'] );

$l10n['buddypress'] = &amp;amp;$mo;
}

_e( 'Spongebob', 'buddypress' );  // This will return &quot;Squarepants&quot;.
</pre></p>
<p>To change an existing string:</p>
<p><pre class="brush: php; gutter: false;">
function example() {
global $l10n;

if ( isset( $l10n['buddypress'] ) &amp;amp;&amp;amp; isset( $l10n['buddypress']-&amp;gt;entries['%s posted an update:'] ) )
$l10n['buddypress']-&amp;gt;entries['%s posted an update:']-&amp;gt;translations[0] = '%s posted a monkey:';
}
</pre></p>
<p>Post a comment if you use this technique for anything interesting</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/byotos.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/byotos.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/byotos.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/byotos.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/byotos.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/byotos.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/byotos.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/byotos.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/byotos.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/byotos.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/byotos.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/byotos.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/byotos.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/byotos.wordpress.com/129/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=byotos.com&#038;blog=18766096&#038;post=129&#038;subd=byotos&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://byotos.com/2010/04/08/hijacking-wordpress-internationalisation/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3bc9ab796299d67ce83dceb9554f75df?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DJPaul</media:title>
		</media:content>
	</item>
		<item>
		<title>How to get a list of BuddyPress&#039; actions.</title>
		<link>http://byotos.com/2010/02/07/how-to-get-a-list-of-buddypress-actions/</link>
		<comments>http://byotos.com/2010/02/07/how-to-get-a-list-of-buddypress-actions/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 15:39:53 +0000</pubDate>
		<dc:creator>Paul Gibbs</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[Featured]]></category>

		<guid isPermaLink="false">http://byotos.com/?p=81</guid>
		<description><![CDATA[As part of research for a new version of my Achievements plugin for BuddyPress, I need a list of all the BuddyPress action names. For non-developers, actions are the hooks that WordPress &#38; BuddyPress launches at specific points during execution, or when specific events occur. This allows plugin developers to hook into these events and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=byotos.com&#038;blog=18766096&#038;post=81&#038;subd=byotos&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As part of research for a new version of my <a href="http://wordpress.org/extend/plugins/achievements/" rel="me">Achievements</a> plugin for <a href="http://buddypress.org/">BuddyPress</a>, I need a list of all the BuddyPress action names.</p>
<p>For non-developers, actions are the hooks that WordPress &amp; BuddyPress  launches at specific points during execution, or when specific events occur. This allows plugin developers to hook into these events and do whatever they want.<br />
<span id="more-81"></span></p>
<p>It took me a while, but here&#8217;s how you can use the terminal (on Mac or Linux) to find all BuddyPress&#8217; actions.</p>
<p><pre class="brush: bash; gutter: false;">
grep -r -h &quot;do_action( '[aA0-zZ9+]*' )&quot; . | awk -F &quot;['']&quot; '{print $2}' | uniq
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/byotos.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/byotos.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/byotos.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/byotos.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/byotos.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/byotos.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/byotos.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/byotos.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/byotos.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/byotos.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/byotos.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/byotos.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/byotos.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/byotos.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=byotos.com&#038;blog=18766096&#038;post=81&#038;subd=byotos&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://byotos.com/2010/02/07/how-to-get-a-list-of-buddypress-actions/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3bc9ab796299d67ce83dceb9554f75df?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DJPaul</media:title>
		</media:content>
	</item>
		<item>
		<title>Six Little Habits: The Bad Ones.</title>
		<link>http://byotos.com/2009/09/08/six-little-habits-the-bad-ones/</link>
		<comments>http://byotos.com/2009/09/08/six-little-habits-the-bad-ones/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 17:05:48 +0000</pubDate>
		<dc:creator>Paul Gibbs</dc:creator>
				<category><![CDATA[Diabetes]]></category>
		<category><![CDATA[Featured]]></category>

		<guid isPermaLink="false">http://metabiscuits.com/?p=29</guid>
		<description><![CDATA[Over at sixuntilme, Kerri&#8217;s listed six of her diabetes &#8220;bad habits.&#8221; I thought I&#8217;d share mine; I can&#8217;t do six, but here&#8217;s four: Not changing finger-stabber needle I&#8217;m not quite leaving these until they are rusty, but not far from it! I have recently switch to using the Accu-Chek Multiclix, which has a drum of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=byotos.com&#038;blog=18766096&#038;post=29&#038;subd=byotos&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Over at <a href="http://sixuntilme.com/blog2/2009/09/six_little_habits.html">sixuntilme</a>, Kerri&#8217;s listed six of her diabetes &#8220;bad habits.&#8221;  I thought I&#8217;d share mine; I can&#8217;t do six, but here&#8217;s four:</p>
<h1>Not changing finger-stabber needle</h1>
<p>I&#8217;m not <em>quite</em> leaving these until they are rusty, but not far from it!  I have recently switch to using the <a href="http://www.accu-chek.com/us/lancing-devices/multiclix.html">Accu-Chek Multiclix</a>, which has a drum of stabbers in which you rotate around after use.  I&#8217;m not changing the drum daily &#8211; more like twice a week &#8211; but I&#8217;m working on it.</p>
<h1>Autopilot basal rates</h1>
<p>Since starting the pump about a year or so ago, it&#8217;s changed my life; it&#8217;s wonderful.  However, there are times when I know I need to do a period of intensive testing so I can assess and make changes to basal rates.  In fact, I need to do that right now, but it feels too much like work so I keep putting it off.  Maybe later this week!</p>
<h1>Selective memory for glucose trends</h1>
<p>It has been known that when I visit my diabetes care team, I get very guilty and start making up all sorts of crazy excuses when they point out the very obvious which I&#8217;ve somehow missed.  Probably linked to point 2 above.  I ought to put some time aside every couple of weeks to adjust the basals.</p>
<h1>Bolus-Stacking</h1>
<p>Same as Kerri.  For an explanation for those not in the know, see <a href="http://sixuntilme.blogspot.com/2005/10/rage-bolus-anyone.html">this post of Kerri&#8217;s from 2005</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/byotos.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/byotos.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/byotos.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/byotos.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/byotos.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/byotos.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/byotos.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/byotos.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/byotos.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/byotos.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/byotos.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/byotos.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/byotos.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/byotos.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=byotos.com&#038;blog=18766096&#038;post=29&#038;subd=byotos&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://byotos.com/2009/09/08/six-little-habits-the-bad-ones/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3bc9ab796299d67ce83dceb9554f75df?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DJPaul</media:title>
		</media:content>
	</item>
	</channel>
</rss>
