<?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>tmro &#187; software</title>
	<atom:link href="http://www.tmro.net/category/software/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tmro.net</link>
	<description>Mobilise your business</description>
	<lastBuildDate>Sun, 21 Aug 2011 01:38:09 +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>Solved: Mac OS X (Snow Leopard) and SVN (1.6.2)</title>
		<link>http://www.tmro.net/2009/11/solved-mac-os-x-snow-leopard-and-svn-1-6-2/</link>
		<comments>http://www.tmro.net/2009/11/solved-mac-os-x-snow-leopard-and-svn-1-6-2/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 05:01:31 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[mac os]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.tmro.net/?p=222</guid>
		<description><![CDATA[Today I spent a few hours trying to figure out why Eclipse was unable to connect to my locally running Subversion server. I was annoyed especially because Xcode and Terminal were not having any issues. Some background information. - SVN &#8230; <a href="http://www.tmro.net/2009/11/solved-mac-os-x-snow-leopard-and-svn-1-6-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today I spent a few hours trying to figure out why Eclipse was unable to connect to my locally running Subversion server. I was annoyed especially because Xcode and Terminal were not having any issues.</p>
<p>Some background information.<br />
- SVN is running as a daemon locally. It gets started by:<br />
<em>svnserve -d &#8211;listen-host localhost -r /Library/Subversion/Repository</em></p>
<p>- trying to checkout stuff using the command below via Terminal works fine<br />
<em>svn co svn://localhost/Project1/trunk WorkingDirName</em></p>
<p>- trying to browse the svn repository from within Eclipse 3.5 Galileo using either Subclipse or Subversive always ends up with:<br />
<em>svn: connection refused by the server</em></p>
<p>I tried many things but none of them helped. I googled but failed to find something relevant. Just before giving up I thought I would check what ports were open on my machine, maybe there was some conflict. There was no conflict but&#8230;<br />
<em>netstat -anp TCP | grep LISTEN</em><br />
returned this:<br />
<em>tcp6       0      0  ::1.3690               *.*                    LISTEN</em><br />
That&#8217;s when it dawned on me: the svnserve was binding an IPV6 address and Eclipse could not handle that!</p>
<p>Solution:<br />
<em> ps -ef | grep svnserve</em><br />
<em> kill -9</em> (where proc_id is the process id of your svnserve, the second number on the line)<br />
<em> svnserve -d &#8211;listen-host 127.0.0.1 -r /Library/Subversion/Repository/ </em>(or wherever you&#8217;ve placed your Repository)</p>
<p>Done! Now svnserve is bound to an IPV4 and Eclipse can play nice too.</p>
<p>Cheers&#8230;</p>
<p>p.s. please let me know if this worked with other Mac OS / SVN versions too</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tmro.net/2009/11/solved-mac-os-x-snow-leopard-and-svn-1-6-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS and Java Me SDK 3.0</title>
		<link>http://www.tmro.net/2009/11/mac-os-and-java-me-sdk-3-0/</link>
		<comments>http://www.tmro.net/2009/11/mac-os-and-java-me-sdk-3-0/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 01:38:21 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[feedback]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[javame]]></category>

		<guid isPermaLink="false">http://www.tmro.net/?p=213</guid>
		<description><![CDATA[Sun have released not too long ago a Java ME SDK 3.0 that finally brings an official Wireless Toolkit Emulator to the Mac platform. I have been dealing with SUN software for a while now and I was not expecting &#8230; <a href="http://www.tmro.net/2009/11/mac-os-and-java-me-sdk-3-0/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Sun have released not too long ago a Java ME SDK 3.0 that finally brings an official Wireless Toolkit Emulator to the Mac platform.</p>
<p>I have been dealing with SUN software for a while now and I was not expecting this to be a smooth ride. Those who&#8217;d dealt with the WTK on Windows/Linux platform are well aware of the limitations of these emulators. What I was not prepared for was to get so much clutter that would just not work more than a couple of times.</p>
<p>First impression: this wtk looks like the most polished emulator ever released by Sun.</p>
<p>Sadly, after using the thing for a few days I discovered that the old habits had not changed:</p>
<ul>
<li>there is no menu entry to run an existing jad/jar pair. You have to right click on an emulator instance and then run it&#8230;</li>
<li>you cannot set-up a project starting from a jad/jar pair. There used to be an option to do this back in wtk 2.2&#8230;</li>
<li>after running a couple of apps the whole thing crashes an burns</li>
<li>when closing down the wtk a process is left lingering. Run this in a terminal:  <em>ps aux | grep device-manager.app</em></li>
<li>switching the verbose mode when launching the emulator kills the whole thing dead!</li>
<li>they bundled ant 1.7.1 with the distro although ant is built in Mac OS</li>
<li>Permgen errors are thrown if you try to launch the app too often. LOL</li>
</ul>
<p>Here&#8217;s what happened when I created a new project and tried to run it:</p>
<p><span style="color: #ff0000;">*** Error ***</span></p>
<p><span style="color: #ff0000;">Failed to connect to device 0!</span></p>
<p><span style="color: #ff0000;">Reason:</span></p>
<p><span style="color: #ff0000;">Emulator 0 terminated while waiting for it to register!</span></p>
<p>The same thing happens with Emulator 1 and 2 and 3 and 4 and 5 and 6 and &#8230; you get the picture.</p>
<p>Googling did return lots of forum posts, but hardly any answers&#8230;</p>
<p>So after wasting more than 2 hours on this issue I did the unthinkable: rebooted my mac! To my surprise the miracle happened during the reboot: I was finally able to run the project again.</p>
<p>Needless to say I am very disappointed but not surprised by the quality of this, early access, Java ME SDK.</p>
<p>Cheers&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tmro.net/2009/11/mac-os-and-java-me-sdk-3-0/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Updating the UISearchBar programmatically</title>
		<link>http://www.tmro.net/2009/10/updating-the-uisearchbar-programmatically/</link>
		<comments>http://www.tmro.net/2009/10/updating-the-uisearchbar-programmatically/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 03:28:27 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[objective c]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[how to]]></category>

		<guid isPermaLink="false">http://www.tmro.net/?p=208</guid>
		<description><![CDATA[Today I had to update WelliBUS&#8217;s search bar programmatically because I needed to use the street picked up via GPS as my street name. Until this point implementing the search bar seemed easy: adopt a couple of protocols: UISearchDisplayDelegate and &#8230; <a href="http://www.tmro.net/2009/10/updating-the-uisearchbar-programmatically/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today I had to update WelliBUS&#8217;s search bar programmatically because I needed to use the street picked up via GPS as my street name.</p>
<p>Until this point implementing the search bar seemed easy:</p>
<ul>
<li>adopt a couple of protocols: UISearchDisplayDelegate and UISearchBarDelegate</li>
<li>implement a few callback methods (from the delegates listed above)</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="obj-c" style="font-family:monospace;">- (BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldReloadTableForSearchString:(NSString *)searchString;
- (BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldReloadTableForSearchScope:(NSInteger)searchOption;
- (void)searchDisplayControllerDidBeginSearch:(UISearchDisplayController *)controller;
- (void)searchDisplayControllerDidEndSearch:(UISearchDisplayController *)controller;</pre></div></div>

<ul>
<li>and implement my own filtering function</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="obj-c" style="font-family:monospace;">- (void)filterContentForSearchText:(NSString*)searchText scope:(NSString*)scope;</pre></div></div>

<p>The problem I had on my hands was how to programmatically update the text in the UISearchBar and force the UISearchDisplayDelegate to call the appropriate callback methods.</p>
<p>Turns out it was simpler than expected (despite not being able to find a solution by googling). All that was needed was:</p>

<div class="wp_syntax"><div class="code"><pre class="obj-c" style="font-family:monospace;">[self.searchDisplayController.searchBar becomeFirstResponder];
self.searchDisplayController.searchBar.text = returnString;</pre></div></div>

<p>Cheers&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tmro.net/2009/10/updating-the-uisearchbar-programmatically/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

