<?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>/dev/trouble</title>
	<atom:link href="http://www.tredje.se/dev/trouble/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.tredje.se/dev/trouble</link>
	<description>Eric Roller&#039;s IT install &#38; development experiences</description>
	<lastBuildDate>Sat, 31 Mar 2012 13:16:57 +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>System Preferences hangs with RSS screen savers</title>
		<link>http://www.tredje.se/dev/trouble/?p=636</link>
		<comments>http://www.tredje.se/dev/trouble/?p=636#comments</comments>
		<pubDate>Wed, 28 Mar 2012 08:18:14 +0000</pubDate>
		<dc:creator>Eric Roller</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Preferences]]></category>

		<guid isPermaLink="false">http://www.tredje.se/dev/trouble/?p=636</guid>
		<description><![CDATA[Here are the symptoms: open System Preferences, select Desktop &#38; Screen Saver and click on the Screen Saver tab. In the list of the screen savers, I had an RSS feed which turned out just to be too slow for my aging machine. However, selecting the feed to delete it just gave me the beach [...]]]></description>
			<content:encoded><![CDATA[<p>Here are the symptoms: open System Preferences, select Desktop &amp; Screen Saver and click on the Screen Saver tab. In the list of the screen savers, I had an RSS feed which turned out just to be too slow for my aging machine.</p>
<p>However, selecting the feed to delete it just gave me the beach ball, rendering System Preferences totally unresponsive. I gave up after a few minutes. To close System Preferences, click long on its icon in the dock and select &#8220;Force Quit&#8221;.</p>
<p>To delete the RSS feed, I resolved to tracking down the corresponding preferences file and I found this one:</p>
<p><code>~/Library/Preferences/com.apple.desktopscreensaver.rsspictures.plist</code></p>
<p>While System Preferences is closed, open the file in a text editor (I like <a href="http://www.barebones.com/products/textwrangler/" title="Bare Bones' TextWrangler">TextWrangler</a>) and delete the feed entry from the dictionary. My resulting file looked like this:</p>
<pre>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
    &lt;dict&gt;
        &lt;key&gt;rssPicSubscriptions&lt;/key&gt;
        &lt;dict&gt;
            &lt;key&gt;com.apple.screensaver.rsspics&lt;/key&gt;
            &lt;dict/&gt;
        &lt;/dict&gt;
    &lt;/dict&gt;
&lt;/plist&gt;</pre>
<p>Save the file and reopen System Preferences to verify that the RSS screen save is no longer in the list. Done!</p>
<p>Update: I hear that you also can simply delete the file and you may need to restart or at least logout and login again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tredje.se/dev/trouble/?feed=rss2&#038;p=636</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing web site presentation for iOS</title>
		<link>http://www.tredje.se/dev/trouble/?p=626</link>
		<comments>http://www.tredje.se/dev/trouble/?p=626#comments</comments>
		<pubDate>Wed, 22 Feb 2012 10:46:36 +0000</pubDate>
		<dc:creator>Eric Roller</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[meta]]></category>
		<category><![CDATA[Safari]]></category>

		<guid isPermaLink="false">http://www.tredje.se/dev/trouble/?p=626</guid>
		<description><![CDATA[For a while now, I have been puzzled by the fact that Mobile Safari, the iOS version of Safari, opened any page on my web site at a much larger width than the CSS value for the main content area (570px). It turns out, there are a number of Apple-Specific Meta Tags that can be [...]]]></description>
			<content:encoded><![CDATA[<p>For a while now, I have been puzzled by the fact that Mobile Safari, the iOS version of Safari, opened any page on my web site at a much larger width than the CSS value for the main content area (570px).</p>
<p>It turns out, there are a number of <a href="https://developer.apple.com/library/safari/#documentation/appleapplications/reference/SafariHTMLRef/Articles/MetaTags.html" title="Apple-Specific Meta Tags">Apple-Specific Meta Tags</a> that can be used to provide background information for your web page, like how to scale it, or providing scaling limits.</p>
<p>To set the initial scaling of a window when presented on the iPhone or iPad, there is the <strong><code>viewport</code></strong> meta tag. If missing, a default width of 960 pixels will be used, or more if the web content is wider. Setting it to 590 pixels, thus adding a 10 pixel padding, works just fine for my particular case:</p>
<pre>&lt;meta name="viewport" content="width:590px"&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.tredje.se/dev/trouble/?feed=rss2&#038;p=626</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Opening hours in Open Times iPhone app</title>
		<link>http://www.tredje.se/dev/trouble/?p=604</link>
		<comments>http://www.tredje.se/dev/trouble/?p=604#comments</comments>
		<pubDate>Sat, 18 Feb 2012 12:08:33 +0000</pubDate>
		<dc:creator>Eric Roller</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[iOS]]></category>

		<guid isPermaLink="false">http://www.tredje.se/dev/trouble/?p=604</guid>
		<description><![CDATA[For years, I have had a constantly growing list of shop opening hours in my notes on my iPhone. There has never been a proper place to put them. Until now. The Open Times iPhone app makes it simple to store all my shop opening times and it is flexible enough to handle any custom [...]]]></description>
			<content:encoded><![CDATA[<p>For years, I have had a constantly growing list of shop opening hours in my notes on my iPhone. There has never been a proper place to put them. Until now.</p>
<p>The <a href="http://tredje.se/opentimes.php">Open Times iPhone app</a> makes it simple to store all my shop opening times and it is flexible enough to handle any custom combination of when a shop opens and closes (or is open for 24 hours). Best of all, the business hours are presented graphically in a calendar-like view which is an intuitive way to check which of the shops are currently open or closed.</p>
<p><img src="http://tredje.se/open/main.png" width="160" height="230"></p>
<p>Now that I have entered my data into the app, I have confidently deleted that long entry from my notebook. Success!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tredje.se/dev/trouble/?feed=rss2&#038;p=604</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpMyAdmin</title>
		<link>http://www.tredje.se/dev/trouble/?p=603</link>
		<comments>http://www.tredje.se/dev/trouble/?p=603#comments</comments>
		<pubDate>Mon, 13 Feb 2012 23:28:23 +0000</pubDate>
		<dc:creator>Eric Roller</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://www.tredje.se/dev/trouble/?p=603</guid>
		<description><![CDATA[I see from my web-server log that people like to guess the path to phpMyAdmin in all different variations, colours, shapes and sizes. Now, this is exactly why I have not installed it in a fashion that makes it visible to anyone other than me. Better yet, come to think of it, I have not [...]]]></description>
			<content:encoded><![CDATA[<p>I see from my web-server log that people like to guess the path to <strong><code>phpMyAdmin</code></strong> in all different variations, colours, shapes and sizes. Now, this is exactly why I have not installed it in a fashion that makes it visible to anyone other than me. Better yet, come to think of it, I have not installed it at all and I don&#8217;t think I ever will. But if I do, you should probably search for all variations, colours, shapes and sizes of <strong><code>phpMyNeatlyStashedAwayAndHiddenInstallationOfMyAdmin</code></strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tredje.se/dev/trouble/?feed=rss2&#038;p=603</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom UILabel Fonts on the iPhone Simulator</title>
		<link>http://www.tredje.se/dev/trouble/?p=602</link>
		<comments>http://www.tredje.se/dev/trouble/?p=602#comments</comments>
		<pubDate>Mon, 16 Jan 2012 19:24:43 +0000</pubDate>
		<dc:creator>Eric Roller</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Fonts]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.tredje.se/dev/trouble/?p=602</guid>
		<description><![CDATA[Wasted a couple of hours debugging an issue with the use of a custom font on a UILabel; the text simply wouldn&#8217;t show up on the iPhone Simulator. No such problems with the (bold) system fonts of any size. As it turned out, this is an issue (bug) with the iPhone Simulator; when running it [...]]]></description>
			<content:encoded><![CDATA[<p>Wasted a couple of hours debugging an issue with the use of a custom font on a UILabel; the text simply wouldn&#8217;t show up on the iPhone Simulator.</p>
<p>No such problems with the (bold) system fonts of any size.</p>
<p>As it turned out, this is an issue (bug) with the iPhone Simulator; when running it on a device, the label is shown correctly.</p>
<p>Also note that there is <a href="http://appengines.com/fonts.html">a &#8220;fonts&#8221; app</a> that show all the fonts that are available on the iPhone or iPad.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tredje.se/dev/trouble/?feed=rss2&#038;p=602</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Photos on the iPhone Simulator</title>
		<link>http://www.tredje.se/dev/trouble/?p=601</link>
		<comments>http://www.tredje.se/dev/trouble/?p=601#comments</comments>
		<pubDate>Fri, 16 Dec 2011 12:14:12 +0000</pubDate>
		<dc:creator>Eric Roller</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.tredje.se/dev/trouble/?p=601</guid>
		<description><![CDATA[I have been wondering how to get any pictures onto the iPhone simulator for ages and have thought one would need to sync it with iTunes. But no, I stumbled over the solution by accident: One simply uses Safari on the iPhone Simulator to navigate to an image and the uses the built-in controls to [...]]]></description>
			<content:encoded><![CDATA[<p>I have been wondering how to get any pictures onto the iPhone simulator for ages and have thought one would need to sync it with iTunes.</p>
<p>But no, I stumbled over the solution by accident: One simply uses Safari on the iPhone Simulator to navigate to an image and the uses the built-in controls to save it.</p>
<p>Hint: to navigate to an image that you have open in your browser on your desktop, simply drag and drop the image (or the URL) to the iPhone Simulator. The same works for any image in the Finder!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tredje.se/dev/trouble/?feed=rss2&#038;p=601</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using launchd to schedule an app to start later</title>
		<link>http://www.tredje.se/dev/trouble/?p=594</link>
		<comments>http://www.tredje.se/dev/trouble/?p=594#comments</comments>
		<pubDate>Sat, 03 Dec 2011 11:06:16 +0000</pubDate>
		<dc:creator>Eric Roller</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[launchd]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[startup]]></category>

		<guid isPermaLink="false">http://www.tredje.se/dev/trouble/?p=594</guid>
		<description><![CDATA[While it is convenient to add applications to the Login Items* list, it is also annoying when it takes ages for all of them to launch before you can do any meaningful work. (*) In the Settings applications, select Accounts, your account and then the Login Items tab. It occurred to me that one or [...]]]></description>
			<content:encoded><![CDATA[<p>While it is convenient to add applications to the Login Items* list, it is also annoying when it takes ages for all of them to launch before you can do any meaningful work.</p>
<p>(*) In the Settings applications, select Accounts, your account and then the Login Items tab.</p>
<p>It occurred to me that one or the other application does not need to be available at login, but it would be nice to load it later. For instance, I don&#8217;t use Skype during the day, but more in the evenings to contact my friends. So how about launching Skype at 5 p.m.?</p>
<p>The following <code>launchd</code> specification will do exactly that: launch Skype at 5 p.m. (or when not possible, whenever you log in next time):</p>
<pre>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
        "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
&lt;dict&gt;
        &lt;key&gt;Label&lt;/key&gt;
        &lt;string&gt;com.skype.skype&lt;/string&gt;
        &lt;key&gt;ProgramArguments&lt;/key&gt;
        &lt;array&gt;
                &lt;string&gt;/usr/bin/open&lt;/string&gt;
                &lt;string&gt;/Applications/Skype.app&lt;/string&gt;
        &lt;/array&gt;
        &lt;key&gt;StartCalendarInterval&lt;/key&gt;
        &lt;dict&gt;
                &lt;key&gt;Minute&lt;/key&gt;
                &lt;integer&gt;0&lt;/integer&gt;
                &lt;key&gt;Hour&lt;/key&gt;
                &lt;integer&gt;17&lt;/integer&gt;
        &lt;/dict&gt;
&lt;/dict&gt;
&lt;/plist&gt;
</pre>
<p>Save this file as <code>~/Library/LaunchAgents/com.skype.skype.plist</code> (note that the Label must correspond to the file name) and wait for magic to happen when you log in next time&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tredje.se/dev/trouble/?feed=rss2&#038;p=594</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Keynote as a vector drawing tool</title>
		<link>http://www.tredje.se/dev/trouble/?p=585</link>
		<comments>http://www.tredje.se/dev/trouble/?p=585#comments</comments>
		<pubDate>Thu, 29 Sep 2011 17:55:42 +0000</pubDate>
		<dc:creator>Eric Roller</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[presentation]]></category>

		<guid isPermaLink="false">http://www.tredje.se/dev/trouble/?p=585</guid>
		<description><![CDATA[After having spent half an hour looking for a drawing program for vector graphics on the Mac, it occurred to me that I already had one: Keynote. Obviously, it is aimed at creating stunning presentations, but there is no reason why it cannot be used for any other kind of drawing. When finished, a drawing [...]]]></description>
			<content:encoded><![CDATA[<p>After having spent half an hour looking for a drawing program for vector graphics on the Mac, it occurred to me that I already had one: <a href="http://www.apple.com/iwork/keynote/">Keynote</a>.</p>
<p>Obviously, it is aimed at creating stunning presentations, but there is no reason why it cannot be used for any other kind of drawing. When finished, a drawing can be exported as an image file (JPEG, PNG, or TIFF) or simply grabbed from the screen with a screen shot (just use shift-cmd-4 and draw a rectangle).</p>
<p>Keynote is part of <a href="http://www.apple.com/iwork/">Apple&#8217;s iWork office suite</a> ($79) but it is now also available separately from the Mac App Store ($20). This price compares well to other graphics applications like <a href="http://www.omnigroup.com/products/omnigraffle/">OmniGraffle</a> (standard $100, pro $200).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tredje.se/dev/trouble/?feed=rss2&#038;p=585</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating Xcode through the Mac AppStore</title>
		<link>http://www.tredje.se/dev/trouble/?p=563</link>
		<comments>http://www.tredje.se/dev/trouble/?p=563#comments</comments>
		<pubDate>Wed, 04 May 2011 20:53:18 +0000</pubDate>
		<dc:creator>Eric Roller</dc:creator>
				<category><![CDATA[Installations]]></category>
		<category><![CDATA[AppStore]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://www.tredje.se/dev/trouble/?p=563</guid>
		<description><![CDATA[Trying to update Xcode 4.0.1 from within the Mac AppStore application, I was greeted with this error message: You have updates available for other accounts Sign in to (null) to update applications for that account. There exist numerous forum entries on Apple&#8217;s discussion board on that subject and the recommended solution is to trash the [...]]]></description>
			<content:encoded><![CDATA[<p>Trying to update Xcode 4.0.1 from within the Mac AppStore application, I was greeted with this error message:</p>
<p><strong>You have updates available for other accounts<br />
Sign in to (null) to update applications for that account.</strong></p>
<p>There exist <a href="https://discussions.apple.com/message/12924404?messageID=12924404">numerous forum entries on Apple&#8217;s discussion board</a> on that subject and the recommended solution is to trash the &#8220;Install Xcode&#8221; application and then to re-launch the AppStore, selecting to re-install Xcode.</p>
<p>I trashed &#8220;Install Xcode&#8221; but AppStore produced the same message. Relaunched one additional time and it allowed me to update (note: not install). However, when it was finished, there was no new &#8220;Install Xcode&#8221; in the Applications folder!</p>
<p>It turns out, the AppStore had located and <em>updated a different copy of the software on a separate drive</em> where I had made a backup, even though I had renamed it to &#8220;Install Xcode-4.0.1&#8243;. Its info window revealed that it had been modified and that its version number now was 4.0.2.</p>
<p>Installation from that modified backup worked correctly.</p>
<p>The old backup could be restored from the version that I had put into the trash.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tredje.se/dev/trouble/?feed=rss2&#038;p=563</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS X 10.4 SDK: crt1.o w/o -mlong-branch</title>
		<link>http://www.tredje.se/dev/trouble/?p=440</link>
		<comments>http://www.tredje.se/dev/trouble/?p=440#comments</comments>
		<pubDate>Mon, 14 Feb 2011 19:34:35 +0000</pubDate>
		<dc:creator>Eric Roller</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[warning]]></category>
		<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://www.tredje.se/dev/trouble/?p=440</guid>
		<description><![CDATA[How to recompile crt1.o w/o -mlong-branch to fix a linker warning.]]></description>
			<content:encoded><![CDATA[<p>Compiling an application for the MacOX10.4u SDK (with Xcode 3.2.4, GCC 4.2.1) results in this linker warning:</p>
<p><strong>ld: warning: object file compiled with -mlong-branch which is no longer needed. To remove this warning, recompile without -mlong-branch: /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.o</strong></p>
<p>This is not a critical issue and can be ignored. However, it can also be fixed as shown by <a href="http://lists.apple.com/archives/xcode-users/2009/Sep/msg00209.html">an answer from Bernhard Baehr on lists.apple.com</a>:</p>
<p>What needs to be done is to recompile the Csu package which can be found on Apple&#8217;s opensource archive, e.g. the one for 10.4.11 x86 where the -mlong_branch flag has already been removed:<br />
<a href="http://www.opensource.apple.com/release/mac-os-x-10411x86/">http://www.opensource.apple.com/release/mac-os-x-10411&#215;86/</a><br />
<a href="http://www.opensource.apple.com/tarballs/Csu/Csu-71.tar.gz">http://www.opensource.apple.com/tarballs/Csu/Csu-71.tar.gz</a></p>
<p>Then it&#8217;s just a question of recompiling it:
<pre>
cd ~/Downloads
tar zxvf Csu-71.tar.gz
cd Csu-71
make RC_ARCHS="ppc ppc64 i386 x86_64"
</pre>
<p>Then we can replace the (stripped) object file in the SDK:
<pre>
cd /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/
sudo mv crt1.o{,.org}
sudo strip -S ~/Downloads/Csu-71/crt1.o -o crt1.o
sudo chmod 644 crt1.o
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.tredje.se/dev/trouble/?feed=rss2&#038;p=440</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

