<?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>CGarvey&#039;s Blog &#187; mobile</title>
	<atom:link href="http://cgarvey.ie/blog/archive/tag/mobile/feed/" rel="self" type="application/rss+xml" />
	<link>http://cgarvey.ie/blog</link>
	<description>The personal blog of Irish mobile and web application developer, Cathal Garvey</description>
	<lastBuildDate>Wed, 28 Jul 2010 11:49:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Running dotMobi WordPress Mobile Pack on PHP 4</title>
		<link>http://cgarvey.ie/blog/archive/2009/11/02/running-dotmobi-wordpress-mobile-pack-on-php-4/</link>
		<comments>http://cgarvey.ie/blog/archive/2009/11/02/running-dotmobi-wordpress-mobile-pack-on-php-4/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 22:47:58 +0000</pubDate>
		<dc:creator>cgarvey</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://cgarvey.ie/blog/?p=331</guid>
		<description><![CDATA[If you, like me, are installing the dotMobi WordPress Mobile Pack on a server with PHP4 installed, and you enable the &#8220;Shrink images&#8221; feature under &#8220;Mobile Theme&#8221;, you will likely see just the header of a blog post being out put for mobile devices (and not the full content). This feature reduces the image size [...]]]></description>
			<content:encoded><![CDATA[<p>If you, like me, are installing the <a href="http://wordpress.org/extend/plugins/wordpress-mobile-pack/" title="Link to the dotMobi WordPress Mobile Pack plugin page">dotMobi WordPress Mobile Pack</a> on a server with PHP4 installed, and you enable the &#8220;Shrink images&#8221; feature under &#8220;Mobile Theme&#8221;, you will likely see just the header of a blog post being out put for mobile devices (and not the full content).<br />
<span id="more-331"></span><br />
This feature reduces the image size (of any images in your WordPress post/page) to make it more bandwidth and screen friendly for mobile users. The problem is that it uses a PHP5-only call of <code>file_put_contents(..)</code>, which fails without error, or logging, on my WordPress install.</p>
<p>To remedy the problem, I substituted the call, in 2 places, with the PHP4 equivalent calls. <code>file_put_contents(..)</code> is a shortcut convenience method which is the same as calling <code>fopen(..)</code>, <code>fwrite(..)</code> and <code>fclose(..)</code>.</p>
<p>As of version 1.1.3 of the plugin the code is under <code>wp-content/plugins/wordpress-mobile-pack/plugins/wpmp_transcoder/</code> in your WordPress install directory. The 2 occurrences are in the file <code>wpmp_transcoder.php</code> on lines 431 and 448 respectively.</p>
<p>I changed<br />
<code><br />
@file_put_contents($full_location, $data);<br />
</code><br />
.. to ..<br />
<code><br />
$fhout = @fopen($full_location, "w" );<br />
@fwrite($fhout, $data);<br />
@fclose( $fhout );<br />
</code></p>
<p>.. and ..</p>
<p><code><br />
@file_put_contents("$full_location.meta", "< ?php $"."width='$width';$"."height='$height';$"."type='$type'; ?>");<br />
</code><br />
.. to ..<br />
<code><br />
$fhmeta = @fopen( "$full_location.meta", "w" );<br />
@fwrite( $fhmeta, "< ?php $"."width='$width';$"."height='$height';$"."type='$type'; ?>");<br />
@fclose( $fhmeta );<br />
</code><br />
.. and all was well again.</p>
<p>You could also just not use the &#8220;Shrink images&#8221; feature to avoid having to mess with any code!</p>
]]></content:encoded>
			<wfw:commentRss>http://cgarvey.ie/blog/archive/2009/11/02/running-dotmobi-wordpress-mobile-pack-on-php-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New mobile &#8220;top up&#8221; facility from An Post is not so easy</title>
		<link>http://cgarvey.ie/blog/archive/2008/08/15/new-mobile-top-up-facility-from-an-post-is-not-so-easy/</link>
		<comments>http://cgarvey.ie/blog/archive/2008/08/15/new-mobile-top-up-facility-from-an-post-is-not-so-easy/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 15:06:21 +0000</pubDate>
		<dc:creator>cgarvey</dc:creator>
				<category><![CDATA[Comms]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[allcall]]></category>
		<category><![CDATA[an post]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[top up]]></category>

		<guid isPermaLink="false">http://cgarvey.ie/blog/?p=164</guid>
		<description><![CDATA[An Post have issued a press release on their new mobile phone top up facility available from Monday. Now aside from the fact that you won&#8217;t see any details on An Post&#8217;s own website for some time yet (even though press release has been released and is already getting media coverage), you can find details [...]]]></description>
			<content:encoded><![CDATA[<p>An Post have issued a press release on their new mobile phone top up facility available from Monday. Now aside from the fact that you won&#8217;t see any details on <a title="Link to An Post website" href="http://www.anpost.ie/" target="_blank">An Post&#8217;s own website</a> for some time yet (even though press release has been released and is already getting <a title="Link to related Silicon Republic article" href="http://www.siliconrepublic.com/news/article/11214/comms/an-post-sees-the-point-of-a-top-up-for-all-mobile-networks" target="_blank">media</a> <a title="Link to related Business World article" href="http://www.businessworld.ie/livenews.htm?a=2256485" target="_blank">coverage</a>), you can find details on the <a title="Link to An Post PostPoint website" href="http://www.postpoint.ie/" target="_blank">PostPoint website</a>.</p>
<p style="text-align: center;"><img class="aligncenter" title="An Post Logo" src="http://www.anpost.ie/AnPost/images/logo.gif" alt="" width="115" height="40" /></p>
<p><span id="more-164"></span><br />
Traditionally, mobile top ups are a matter of purchasing a fixed increment (€10 or €20, usually) credit value from a shop who use their in-house PoS systems or their Credit Card validation machine. The customer gets a printed receipt with a code they then enter once they call their mobile phone provider&#8217;s top up number.</p>
<p>However, in An Post&#8217;s case, you&#8217;ll purchase a similar piece of paper with a code on it. You&#8217;ll have to text that code to a short code (a 5 digit number, rather than a full-length mobile number), and wait for a response, by text, giving you the actual code you need to use when calling your top up number. There&#8217;s no mention of any cost associated with the short-number text, or response text for that matter. Presumably both are free, but it&#8217;s not clarified anywhere.</p>
<p>Have you ever tried reading a text message while on a call? On some phones it&#8217;s not possible, on most phones it&#8217;s not an easy thing to do. Many people will resort to having to write down the number. An entirely unnecessary step (given that PostPoint branches are all interlinked and already have interconnects with other services like, say, AIB).</p>
<p>An Post do raise a valid positive point to the new service and that is that someone can buy a gift top up without needing to know what network the recipient is on. I&#8217;d imagine that person represents a tiny minority of pre-pay users.</p>
<p>Finally, media coverage, and An Post&#8217;s own PR, suggests that it&#8217;s a top up service for all networks, but it doesn&#8217;t appear to be. Nowhere is there a mention of Tesco Mobile.</p>
]]></content:encoded>
			<wfw:commentRss>http://cgarvey.ie/blog/archive/2008/08/15/new-mobile-top-up-facility-from-an-post-is-not-so-easy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
