<?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>Code Repository</title>
	<atom:link href="https://coderepo.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://coderepo.wordpress.com</link>
	<description>A home for snippets of code.</description>
	<lastBuildDate>Tue, 29 Mar 2011 21:51:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='coderepo.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>https://secure.gravatar.com/blavatar/e04b8d53dbbb6ecaa0a01a0568b8f0a9f5f61e3f7f137199b79e17a57bc568ea?s=96&#038;d=https%3A%2F%2Fs0.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Code Repository</title>
		<link>https://coderepo.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="https://coderepo.wordpress.com/osd.xml" title="Code Repository" />
	<atom:link rel='hub' href='https://coderepo.wordpress.com/?pushpress=hub'/>
	<item>
		<title>Doug</title>
		<link>https://coderepo.wordpress.com/2011/03/29/doug/</link>
					<comments>https://coderepo.wordpress.com/2011/03/29/doug/#respond</comments>
		
		<dc:creator><![CDATA[coderepo]]></dc:creator>
		<pubDate>Tue, 29 Mar 2011 21:51:04 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://coderepo.wordpress.com/?p=179</guid>

					<description><![CDATA[http://www.dougmolineux.com/wp Check out the new blog!]]></description>
										<content:encoded><![CDATA[<p><a href="http://www.dougmolineux.com/wp" rel="nofollow">http://www.dougmolineux.com/wp</a></p>
<p>Check out the new blog!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://coderepo.wordpress.com/2011/03/29/doug/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://0.gravatar.com/avatar/fdeccfdbd11fae4adc55a0d727ba2f45cb93fe36346334fc2adde85e98b13c74?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">coderepo</media:title>
		</media:content>
	</item>
		<item>
		<title>RSS Feed for Godaddy Users</title>
		<link>https://coderepo.wordpress.com/2011/01/29/rss-feed-for-godaddy-users/</link>
					<comments>https://coderepo.wordpress.com/2011/01/29/rss-feed-for-godaddy-users/#respond</comments>
		
		<dc:creator><![CDATA[coderepo]]></dc:creator>
		<pubDate>Sun, 30 Jan 2011 03:08:48 +0000</pubDate>
				<category><![CDATA[CURL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[godaddy]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[weather apis]]></category>
		<category><![CDATA[xml]]></category>
		<category><![CDATA[yahoo]]></category>
		<guid isPermaLink="false">http://coderepo.wordpress.com/?p=157</guid>

					<description><![CDATA[Another barrier that Godaddy kindly puts up between their users and functionality is that they restrict the use of the PHP function file_get_contents. The only way that I got around this was to use CURL which has been surprisingly left wide &#8230; <a href="https://coderepo.wordpress.com/2011/01/29/rss-feed-for-godaddy-users/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>Another barrier that Godaddy kindly puts up between their users and functionality is that they restrict the use of the PHP function <em>file_get_contents. </em>The only way that I got around this was to use CURL which has been surprisingly left wide open. This quick script curls Yahoo&#8217;s Weather API and dumps the response into a variable called $xml:</p>
<blockquote><p>$url = &#8216;<a href="http://weather.yahooapis.com/forecastrss?w=2504615&#038;#8217" rel="nofollow">http://weather.yahooapis.com/forecastrss?w=2504615&#038;#8217</a>;;</p>
<p>$curl_handle = curl_init();<br />
curl_setopt($curl_handle, CURLOPT_URL, $url);<br />
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);<br />
curl_setopt($curl_handle, CURLOPT_DNS_USE_GLOBAL_CACHE, FALSE);<br />
$buffer = curl_exec($curl_handle);<br />
$error = curl_error($curl_handle);<br />
curl_close($curl_handle);<br />
if (empty($buffer)) {<br />
echo &#8216;Something went wrong <img src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/72x72/1f626.png" alt="😦" class="wp-smiley" style="height: 1em; max-height: 1em;" /> error: &#8216;.$error.&#8221;;<br />
}</p>
<p>$xml = simplexml_load_string($buffer);</p>
<p><a> ?&gt; </a></p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://coderepo.wordpress.com/2011/01/29/rss-feed-for-godaddy-users/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://0.gravatar.com/avatar/fdeccfdbd11fae4adc55a0d727ba2f45cb93fe36346334fc2adde85e98b13c74?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">coderepo</media:title>
		</media:content>
	</item>
		<item>
		<title>Moved</title>
		<link>https://coderepo.wordpress.com/2011/01/26/moved/</link>
					<comments>https://coderepo.wordpress.com/2011/01/26/moved/#respond</comments>
		
		<dc:creator><![CDATA[coderepo]]></dc:creator>
		<pubDate>Wed, 26 Jan 2011 21:40:59 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://coderepo.wordpress.com/?p=177</guid>

					<description><![CDATA[We have officially moved to http://www.dougmolineux.com/wp]]></description>
										<content:encoded><![CDATA[<p>We have officially moved to</p>
<p><a title="http://www.dougmolineux.com/wp" href="http://www.dougmolineux.com/wp">http://www.dougmolineux.com/wp</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://coderepo.wordpress.com/2011/01/26/moved/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://0.gravatar.com/avatar/fdeccfdbd11fae4adc55a0d727ba2f45cb93fe36346334fc2adde85e98b13c74?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">coderepo</media:title>
		</media:content>
	</item>
		<item>
		<title>CSS3 Border Radius and Rotate</title>
		<link>https://coderepo.wordpress.com/2011/01/10/css3-border-radius-and-rotate/</link>
					<comments>https://coderepo.wordpress.com/2011/01/10/css3-border-radius-and-rotate/#respond</comments>
		
		<dc:creator><![CDATA[coderepo]]></dc:creator>
		<pubDate>Tue, 11 Jan 2011 02:08:22 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[border-radius]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[rotate]]></category>
		<guid isPermaLink="false">http://coderepo.wordpress.com/?p=168</guid>

					<description><![CDATA[First of all, this website is really useful when deciding how big you want your border radius to be, it also takes into account webkit and Mozilla flavors of browser. Here&#8217;s some CSS3 which allows a rounded edge on your &#8230; <a href="https://coderepo.wordpress.com/2011/01/10/css3-border-radius-and-rotate/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>First of all, <a href="http://border-radius.com/">this website</a> is really useful when deciding how big you want your border radius to be, it also takes into account webkit and Mozilla flavors of browser. Here&#8217;s some CSS3 which allows a rounded edge on your divs:</p>
<blockquote><p>-webkit-border-radius: 99px;<br />
-moz-border-radius: 99px;<br />
border-radius: 99px;</p></blockquote>
<p>Also, there is also a rotate property introduced in CSS3 which can be really useful. I had a project where I needed a vertical progress bar and couldn&#8217;t find anything useful, so I just used this rotation ability and used a normal jQuery horizonal one! Here&#8217;s the code, the last line will let it work on the infamous IE6!</p>
<blockquote><p>-webkit-transform: rotate(-90deg);<br />
-moz-transform: rotate(-90deg);<br />
transform: rotate(-90deg);<br />
position: absolute;<br />
filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);</p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://coderepo.wordpress.com/2011/01/10/css3-border-radius-and-rotate/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://0.gravatar.com/avatar/fdeccfdbd11fae4adc55a0d727ba2f45cb93fe36346334fc2adde85e98b13c74?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">coderepo</media:title>
		</media:content>
	</item>
		<item>
		<title>Tar up directory in Linux</title>
		<link>https://coderepo.wordpress.com/2010/12/29/tar-up-directory-in-linux/</link>
					<comments>https://coderepo.wordpress.com/2010/12/29/tar-up-directory-in-linux/#comments</comments>
		
		<dc:creator><![CDATA[coderepo]]></dc:creator>
		<pubDate>Thu, 30 Dec 2010 03:01:27 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux command line tar directory file system]]></category>
		<guid isPermaLink="false">http://coderepo.wordpress.com/?p=170</guid>

					<description><![CDATA[To tar a file is basically the same as zipping a file in Windows. This is a Linux/unix command which will tar an entire directory (called cps100) into a tgz file called foo.tgz: tar cvzf foo.tgz cps100 And to get &#8230; <a href="https://coderepo.wordpress.com/2010/12/29/tar-up-directory-in-linux/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>To tar a file is basically the same as zipping a file in Windows. This is a Linux/unix command which will tar an entire directory (called cps100) into a tgz file called foo.tgz:</p>
<blockquote><p>tar cvzf foo.tgz cps100</p></blockquote>
<p>And to get everything back out of the tarball you use this command:</p>
<blockquote><p>tar -xvf foo.tgz</p></blockquote>
<p>Don&#8217;t forget about the tab auto-complete! Very useful when traversing bash <img src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://coderepo.wordpress.com/2010/12/29/tar-up-directory-in-linux/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		
		<media:content url="https://0.gravatar.com/avatar/fdeccfdbd11fae4adc55a0d727ba2f45cb93fe36346334fc2adde85e98b13c74?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">coderepo</media:title>
		</media:content>
	</item>
		<item>
		<title>Weather RSS Feed For PHP 4</title>
		<link>https://coderepo.wordpress.com/2010/11/08/weather-rss-feed-for-php-4/</link>
					<comments>https://coderepo.wordpress.com/2010/11/08/weather-rss-feed-for-php-4/#respond</comments>
		
		<dc:creator><![CDATA[coderepo]]></dc:creator>
		<pubDate>Tue, 09 Nov 2010 02:45:50 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[php 4]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[weather]]></category>
		<category><![CDATA[xml]]></category>
		<category><![CDATA[xml-parser]]></category>
		<category><![CDATA[yahoo]]></category>
		<guid isPermaLink="false">http://coderepo.wordpress.com/?p=148</guid>

					<description><![CDATA[Here is a quick example of how to pull out specific weather information from Yahoo&#8217;s Weather API using PHP 4&#8217;s xml_parser, it should be pointed out that PHP 5&#8217;s Simple XML utilities are much easier to use and to understand, &#8230; <a href="https://coderepo.wordpress.com/2010/11/08/weather-rss-feed-for-php-4/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>Here is a quick example of how to pull out specific weather information from Yahoo&#8217;s Weather API using PHP 4&#8217;s xml_parser, it should be pointed out that PHP 5&#8217;s Simple XML utilities are much easier to use and to understand, but some of us are stuck on a godaddy server with PHP 4 <img src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /> and the client is unwilling to upgrade. It should also be mentioned that this array is dependent on the numbered index that the extracted array creates, if the API decides to alter the structure of the array then you&#8217;ll need to re-print $vals and find the key you want.</p>
<blockquote><p>&lt;?php $data = file_get_contents(&#8220;<a href="http://weather.yahooapis.com/forecastrss?w=2504615&#038;#8221" rel="nofollow">http://weather.yahooapis.com/forecastrss?w=2504615&#038;#8221</a>;);<br />
$parser = xml_parser_create(&#8216;UTF-8&#8217;);<br />
xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1);<br />
xml_parse_into_struct($parser, $data, $vals, $index);<br />
xml_parser_free($parser);</p>
<p>echo $vals[28][&#8220;attributes&#8221;][&#8220;DAY&#8221;];<br />
echo &#8221; &#8220;.$vals[28][&#8220;attributes&#8221;][&#8220;DATE&#8221;];<br />
echo &#8221;</p>
<p>High: &#8220;.$vals[28][&#8220;attributes&#8221;][&#8220;HIGH&#8221;];<br />
echo &#8221; Low: &#8220;.$vals[28][&#8220;attributes&#8221;][&#8220;LOW&#8221;].&#8221; F&#8221;;<br />
echo &#8221;</p>
<p>&#8220;.$vals[28][&#8220;attributes&#8221;][&#8220;TEXT&#8221;];</p>
<p>?&gt;</p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://coderepo.wordpress.com/2010/11/08/weather-rss-feed-for-php-4/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://0.gravatar.com/avatar/fdeccfdbd11fae4adc55a0d727ba2f45cb93fe36346334fc2adde85e98b13c74?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">coderepo</media:title>
		</media:content>
	</item>
		<item>
		<title>CodeIgniter&#8217;s Ridiculous GET Variable Conumdrum</title>
		<link>https://coderepo.wordpress.com/2010/11/08/codeigniters-ridiculous-get-variable-conumdrum/</link>
					<comments>https://coderepo.wordpress.com/2010/11/08/codeigniters-ridiculous-get-variable-conumdrum/#respond</comments>
		
		<dc:creator><![CDATA[coderepo]]></dc:creator>
		<pubDate>Tue, 09 Nov 2010 02:40:04 +0000</pubDate>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[GET Variables]]></category>
		<category><![CDATA[php]]></category>
		<guid isPermaLink="false">http://coderepo.wordpress.com/?p=142</guid>

					<description><![CDATA[Sometimes it can be ridiculously hard to grab GET Variables from the URL using CodeIgniter (like this thread emphasizes), so here&#8217;s a snippet which manually parses out the URL and grabs all the key value GET variables into an array &#8230; <a href="https://coderepo.wordpress.com/2010/11/08/codeigniters-ridiculous-get-variable-conumdrum/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>Sometimes it can be ridiculously hard to grab GET Variables from the URL using CodeIgniter (like <a href="http://codeigniter.com/forums/viewthread/56389/">this thread</a> emphasizes), so here&#8217;s a snippet which manually parses out the URL and grabs all the key value GET variables into an array called splitGet:</p>
<blockquote><p>
$geturl = $_SERVER[&#8216;REQUEST_URI&#8217;];<br />
$spliturl = explode(&#8220;?&#8221;,$geturl);<br />
$getVars = explode(&#8220;&amp;&#8221;,$spliturl[1]);<br />
foreach($getVars as $key =&gt; $value)<br />
{<br />
    $splitGet = explode(&#8220;=&#8221;,$getVars[$key]);<br />
}
</p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://coderepo.wordpress.com/2010/11/08/codeigniters-ridiculous-get-variable-conumdrum/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://0.gravatar.com/avatar/fdeccfdbd11fae4adc55a0d727ba2f45cb93fe36346334fc2adde85e98b13c74?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">coderepo</media:title>
		</media:content>
	</item>
		<item>
		<title>Google&#8217;s JQuery Include Script</title>
		<link>https://coderepo.wordpress.com/2010/10/27/googles-jquery-include-script/</link>
					<comments>https://coderepo.wordpress.com/2010/10/27/googles-jquery-include-script/#respond</comments>
		
		<dc:creator><![CDATA[coderepo]]></dc:creator>
		<pubDate>Thu, 28 Oct 2010 02:26:30 +0000</pubDate>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[include]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[source]]></category>
		<guid isPermaLink="false">http://coderepo.wordpress.com/?p=147</guid>

					<description><![CDATA[Here is the link to the Google-hosted JQuery JS. Google *hardly* ever goes down. It is very useful to quickly include this in your web files, however it must be pointed out that, you can go to this URL, download &#8230; <a href="https://coderepo.wordpress.com/2010/10/27/googles-jquery-include-script/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>Here is the link to the Google-hosted JQuery JS. Google *hardly* ever goes down. It is very useful to quickly include this in your web files, however it must be pointed out that, you can go to this URL, download the file, upload it to your server and then you don&#8217;t have to rely on somebody elses server even if it is Mighty Google. Here it is nevertheless:</p>
<blockquote><p><a href="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" rel="nofollow">http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js</a></p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://coderepo.wordpress.com/2010/10/27/googles-jquery-include-script/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://0.gravatar.com/avatar/fdeccfdbd11fae4adc55a0d727ba2f45cb93fe36346334fc2adde85e98b13c74?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">coderepo</media:title>
		</media:content>
	</item>
		<item>
		<title>Remove a Single Row from MySQL Table</title>
		<link>https://coderepo.wordpress.com/2010/10/10/remove-a-single-row-from-mysql-table/</link>
					<comments>https://coderepo.wordpress.com/2010/10/10/remove-a-single-row-from-mysql-table/#respond</comments>
		
		<dc:creator><![CDATA[coderepo]]></dc:creator>
		<pubDate>Sun, 10 Oct 2010 17:17:43 +0000</pubDate>
				<category><![CDATA[PHP & MySQL]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<guid isPermaLink="false">http://coderepo.wordpress.com/?p=131</guid>

					<description><![CDATA[I was looking for this snippet myself today, and I was surprised I haven&#8217;t included it on here! This snippet allows you to Delete one row from a MySQL table, the LIMIT 1 is just to make sure it only &#8230; <a href="https://coderepo.wordpress.com/2010/10/10/remove-a-single-row-from-mysql-table/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>I was looking for this snippet myself today, and I was surprised I haven&#8217;t included it on here! This snippet allows you to Delete one row from a MySQL table, the LIMIT 1 is just to make sure it only deletes one, if your ID&#8217;s are auto-incrementing though, there should only be one entry:</p>
<blockquote><p>$removeRow = &#8220;DELETE FROM usertable WHERE id='&#8221;.$_GET[&#8220;delete&#8221;].&#8221;&#8216; LIMIT 1&#8243;;<br />
mysql_query($removeRow) or die (mysql_error());</p></blockquote>
<p>Also, this query is assuming that there&#8217;s a GET variable called &#8220;delete&#8221; in the URL, such as:</p>
<blockquote><p><a href="http://myserver.net/test.php?delete=5" rel="nofollow">http://myserver.net/test.php?delete=5</a></p></blockquote>
<p>Where the user deleted will be the user that has an ID of 5.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://coderepo.wordpress.com/2010/10/10/remove-a-single-row-from-mysql-table/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://0.gravatar.com/avatar/fdeccfdbd11fae4adc55a0d727ba2f45cb93fe36346334fc2adde85e98b13c74?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">coderepo</media:title>
		</media:content>
	</item>
		<item>
		<title>NSLog a UIImageView in XCode for IPhone SDK</title>
		<link>https://coderepo.wordpress.com/2010/10/08/nslog-a-uiimageview-in-xcode-for-iphone-sdk/</link>
					<comments>https://coderepo.wordpress.com/2010/10/08/nslog-a-uiimageview-in-xcode-for-iphone-sdk/#respond</comments>
		
		<dc:creator><![CDATA[coderepo]]></dc:creator>
		<pubDate>Sat, 09 Oct 2010 01:37:51 +0000</pubDate>
				<category><![CDATA[IPhone SDK]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[nslog]]></category>
		<category><![CDATA[uiimageview]]></category>
		<category><![CDATA[xcode]]></category>
		<guid isPermaLink="false">http://coderepo.wordpress.com/?p=126</guid>

					<description><![CDATA[Here&#8217;s my first IPhone Code Snippet, which I found to be useful. I had a button action which changed the image of a UIImageView but I was having problems. I needed to make sure that the UIImageView was connected properly &#8230; <a href="https://coderepo.wordpress.com/2010/10/08/nslog-a-uiimageview-in-xcode-for-iphone-sdk/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>Here&#8217;s my first IPhone Code Snippet, which I found to be useful. I had a button action which changed the image of a UIImageView but I was having problems. I needed to make sure that the UIImageView was connected properly to myUIImageView that I had created in the Interface Builder. At first, the log was printing:</p>
<blockquote><p>(null)</p></blockquote>
<p>So I knew that it was not being set properly. I opened Interface Builder and I realized that it wasn&#8217;t connected so I connected it and it worked! Here&#8217;s the code which logs the UIImageView object:</p>
<blockquote><p>myUIImageView.image = [UIImage imageNamed:@&#8221;image.jpg&#8221;];<br />
NSLog(@&#8221;%@&#8221;, myUIImageView);</p></blockquote>
<p>Here are the results from the log when myUIImageView is successfully defined.</p>
<blockquote><p>&lt;UIImageView: 0x5f1b320; frame = (0 -10; 320 470); opaque = NO; autoresize = W+H; userInteractionEnabled = NO; layer = &lt;CALayer: 0x5f18840&gt;&gt;</p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://coderepo.wordpress.com/2010/10/08/nslog-a-uiimageview-in-xcode-for-iphone-sdk/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://0.gravatar.com/avatar/fdeccfdbd11fae4adc55a0d727ba2f45cb93fe36346334fc2adde85e98b13c74?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">coderepo</media:title>
		</media:content>
	</item>
	</channel>
</rss>
