<?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>benwong.me</title>
	<atom:link href="http://benwong.me/feed/" rel="self" type="application/rss+xml" />
	<link>http://benwong.me</link>
	<description>exploring the infinite abyss</description>
	<lastBuildDate>Tue, 31 Jan 2012 01:39:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>How to create a PDF from multiple images in OS X</title>
		<link>http://benwong.me/2012/how-to-create-a-pdf-from-multiple-images-in-os-x/</link>
		<comments>http://benwong.me/2012/how-to-create-a-pdf-from-multiple-images-in-os-x/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 01:12:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[automator]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[pdf]]></category>

		<guid isPermaLink="false">http://benwong.me/?p=588</guid>
		<description><![CDATA[This week I needed to create a PDF from a couple of images. I knew Preview had some PDF creation capabilities, so I tried using it to do it. Unfortunately, Export As&#8230; produced a blank PDF. Luckily I remembered Automator and discovered it &#8230; <a href="http://benwong.me/2012/how-to-create-a-pdf-from-multiple-images-in-os-x/">Continued</a>]]></description>
			<content:encoded><![CDATA[<p>This week I needed to create a PDF from a couple of images. I knew Preview had some PDF creation capabilities, so I tried using it to do it. Unfortunately, <em>Export As&#8230;</em> produced a blank PDF. Luckily I remembered Automator and discovered it has a whole bunch of PDF related actions. One of them being <em>New PDF from Images</em>.</p>

<p>So, here&#8217;s how to do it.</p>

<ol>
    <li>Start up Automator</li>
    <li>Choose Workflow for document type</li>
    <li>Click on <em>Files &amp; Folders</em> and drag and <em>Ask for Finder Items</em> into the Workflow area</li>
    <li>Check <em>Allow Multiple Selection</em></li>
    <li>Click on <em>PDFs</em> and drag <em>New PDFs from Images</em> into the Workflow area</li>
    <li>Update the <em>Output File Name</em></li>
    <li>Modify any other settings you require</li>
    <li>Run the Workflow</li>
    <li>Select the images you want in the new PDF and click Choose</li>
</ol>

<p><a href="http://benwong.me/assets/Screen-Shot-2012-01-31-at-11.29.10-AM.png"><img class="size-medium wp-image-592" title="Automator workflow for creating new PDF from images" src="http://benwong.me/assets/Screen-Shot-2012-01-31-at-11.29.10-AM-300x246.png" alt="screenshot" width="300" height="246" /></a></p>

<p>That&#8217;s it you should find a new PDF of the images in the output directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://benwong.me/2012/how-to-create-a-pdf-from-multiple-images-in-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iOS Orientation Change Bug Workaround WordPress Plugin</title>
		<link>http://benwong.me/2012/ios-orientation-change-bug-workaround-wordpress-plugin/</link>
		<comments>http://benwong.me/2012/ios-orientation-change-bug-workaround-wordpress-plugin/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 02:09:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://benwong.me/?p=568</guid>
		<description><![CDATA[Filament Group published a workaround for a bug in Safari for iOS that causes a user-zoomable page to scale beyond the width of the viewport when the device&#8217;s orientation changes from portrait to landscape. You can read about it in their &#8230; <a href="http://benwong.me/2012/ios-orientation-change-bug-workaround-wordpress-plugin/">Continued</a>]]></description>
			<content:encoded><![CDATA[<p>Filament Group published a workaround for a bug in Safari for iOS that causes a user-zoomable page to scale beyond the width of the viewport when the device&#8217;s orientation changes from portrait to landscape. You can read about it in their blog post, <a href="http://filamentgroup.com/lab/a_fix_for_the_ios_orientationchange_zoom_bug/">A Fix for the iOS Orientationchange Zoom Bug</a>.</p>

<p>For those creating WordPress websites that need to be iOS friendly, I&#8217;ve created a plugin that implements the workaround.</p>

<p><a href="http://benwong.me/downloads/ios-orientation-change-bug-workaround.zip">iOS Orientation Change Bug Workaround WordPress Plugin</a> (3.16 KB)</p>
]]></content:encoded>
			<wfw:commentRss>http://benwong.me/2012/ios-orientation-change-bug-workaround-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add footer text for a group in settings.bundle</title>
		<link>http://benwong.me/2011/how-to-add-footer-text-for-a-group-in-settings-bundle/</link>
		<comments>http://benwong.me/2011/how-to-add-footer-text-for-a-group-in-settings-bundle/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 23:23:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iOS Development]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[footer]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[settings]]></category>

		<guid isPermaLink="false">http://benwong.me/?p=537</guid>
		<description><![CDATA[Adding settings for your iOS app so that they appear in the Settings app is simply done by creating a settings.bundle and defining the groups and settings controls in the Root.plist in the bundle. Sometimes it&#8217;s helpful to add hints &#8230; <a href="http://benwong.me/2011/how-to-add-footer-text-for-a-group-in-settings-bundle/">Continued</a>]]></description>
			<content:encoded><![CDATA[<p>Adding settings for your iOS app so that they appear in the Settings app is simply done by creating a settings.bundle and defining the groups and settings controls in the Root.plist in the bundle. Sometimes it&#8217;s helpful to add hints and extra information by adding footer text to groups. Unfortunately it&#8217;s not clear how to add the footer text from the interface Xcode provides for the settings.bundle Root.plist.</p>

<p>Here&#8217;s how to add footer text to a group in a settings.bundle.</p>

<ol>
<li>Expand the dictionary item for the group the footer text will be displayed under. It should reveal items with the keys <code>Title</code> and <code>Type</code>. </li>
<li>Add a new item by hovering over one of the items and clicking on the plus icon.</li>
<li>Instead of selecting one of the key options in the drop down that appears for the new item, type in &#8220;FooterText&#8221;.</li>
<li>Enter the footer text to be displayed in the value field.</li>
</ol>

<h3>Related Links</h3>

<p><a href="http://stackoverflow.com/questions/803918/is-it-possible-to-add-info-or-help-text-to-an-iphone-settings-bundle">Stack Overflow &#8211; Is it possible to add info or help text to an iPhone settings bundle?</a></p>
]]></content:encoded>
			<wfw:commentRss>http://benwong.me/2011/how-to-add-footer-text-for-a-group-in-settings-bundle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iOS 5 Tips &amp; Tricks</title>
		<link>http://benwong.me/2011/ios5-tips-tricks/</link>
		<comments>http://benwong.me/2011/ios5-tips-tricks/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 02:08:50 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[iOS5]]></category>

		<guid isPermaLink="false">http://benwong.me/?p=510</guid>
		<description><![CDATA[Now that you have iOS 5 installed, you should probably learn how to make the most of it. I&#8217;m compiling a list of all the tips and tricks related to iOS 5 that I find and I&#8217;ll keep updating as &#8230; <a href="http://benwong.me/2011/ios5-tips-tricks/">Continued</a>]]></description>
			<content:encoded><![CDATA[<p>Now that you have iOS 5 installed, you should probably learn how to make the most of it. I&#8217;m compiling a list of all the tips and tricks related to iOS 5 that I find and I&#8217;ll keep updating as I discover more.</p>

<h3>Notification Center</h3>

<p>To display Notification Center, slide your finger down from the top of the screen when on the home screen or in an app. Touching a notification will open the corresponding app. Notifications for an app can be cleared by touching the &#8220;X&#8221; at the top right of the section and then touching the &#8220;clear&#8221; that appears.</p>

<p>On the lock screen, you can unlock and open the corresponding app for a notification by sliding the app icon to the right.</p>

<p>To manage what and how notifications are displayed in Notification Center, go to Settings app &gt; Notifications. You can configure which apps use Notification Center, what order they are listed in Notification Center and how each apps display their notifications as they are added.</p>

<h3>Reminders</h3>

<p>Reminders is a brand new app for maintaining a to-do list. Items can trigger reminders based on time or location (arriving or leaving).</p>

<h3>Camera</h3>

<p>To unlock and open the camera app quickly from the lock screen, double press the home button and touch the camera icon that appears to the right of the slide lock.</p>

<p>You can now use the volume up button to take photos or start/stop video recording.</p>

<h3>Safari</h3>

<p>Safari now supports private browsing. To enable private browsing, go to Settings app &gt; Safari and turn on Private Browsing in the Privacy section.</p>

<h3>Twitter</h3>

<p>To set up your Twitter account, go to Settings app &gt; Twitter and enter your Twitter username and password or create a new account.</p>

<p>Twitter is integrated with many of the standard apps. For example, you can now share locations via Twitter in Maps and share links via Twitter in Safari.</p>

<h3>Weather</h3>

<p>The Weather app now supports Local Weather. When enabled the left most view will display the weather based on your current location.</p>

<p>Also newly added is hourly weather. Touching the top section of the view will toggle the hourly weather on and off.</p>

<h3>Keyboard Shortcuts</h3>

<p>You can now add custom keyboard shortcuts which allows you to enter a long regularly used phrase by only typing short string of characters. The example that is already created by default is &#8220;On my way!&#8221; which can be entered by typing &#8220;omw&#8221;. To manage keyboard shortcuts, go to Settings app &gt; General &gt; Keyboard and touch the Edit button.</p>

<h3>Other Resources</h3>

<ul>
<li><a href="http://thenextweb.com/apple/2011/10/12/tnw-review-a-complete-guide-to-apples-ios-5-with-icloud-an-os-14-years-in-the-making/">TNW Review: A complete guide to Apple’s iOS 5 with iCloud, an OS 14 years in the making</a></li>
<li><a href="http://howto.cnet.com/8301-11310_39-20115413-285/15-ios-5-tips-and-tricks/">cnet &#8211; 15 iOS 5 Tips and Tricks</a></li>
<li><a href="http://www.zdnet.com/blog/hardware/five-ios-5-secrets/15414">ZDNet &#8211; iOS 5 secrets</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://benwong.me/2011/ios5-tips-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Excuse the Mess</title>
		<link>http://benwong.me/2011/excuse-the-mess/</link>
		<comments>http://benwong.me/2011/excuse-the-mess/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 01:34:22 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.benwong.me/?p=463</guid>
		<description><![CDATA[I&#8217;m making some changes. I&#8217;m ditching the pre-made WordPress theme and creating my own custom theme based on Roots. I&#8217;ll also be retiring the blog subdomain and making this the new benwong.me. There will probably be many other changes too. &#8230; <a href="http://benwong.me/2011/excuse-the-mess/">Continued</a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m making some changes. I&#8217;m ditching the pre-made WordPress theme and creating my own custom theme based on <a href="http://www.rootstheme.com/">Roots</a>. I&#8217;ll also be retiring the blog subdomain and making this the new <a href="http://benwong.me">benwong.me</a>. There will probably be many other changes too. So please excuse the mess while all this is happening.</p>
]]></content:encoded>
			<wfw:commentRss>http://benwong.me/2011/excuse-the-mess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>position: relative doesn&#8217;t work for &lt;td&gt; in Firefox</title>
		<link>http://benwong.me/2011/pos-rel-doesnt-work-for-td-in-ff/</link>
		<comments>http://benwong.me/2011/pos-rel-doesnt-work-for-td-in-ff/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 03:25:43 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[relative position]]></category>
		<category><![CDATA[td]]></category>

		<guid isPermaLink="false">http://blog.benwong.me/?p=424</guid>
		<description><![CDATA[The Problem While working on a new page for a client this morning I discovered that relative positioning doesn&#8217;t work for td elements in Firefox. The page required a three column grid of products and on the bottom of each &#8230; <a href="http://benwong.me/2011/pos-rel-doesnt-work-for-td-in-ff/">Continued</a>]]></description>
			<content:encoded><![CDATA[<h3>The Problem</h3>

<p>While working on a new page for a client this morning I discovered that relative positioning doesn&#8217;t work for td elements in Firefox. The page required a three column grid of products and on the bottom of each product cell would be a &#8220;buy&#8221; link. So, logically I decided I needed to do the following:</p>

<ul>
<li>set <code>position: relative</code> on the td for product grid</li>
<li>set <code>position: absolute</code> and <code>bottom: 0</code> on the &#8220;buy&#8221; link</li>
</ul>

<p>It worked in Safari, Chrome and even IE. But failed in Firefox to my dismay &#8211; the &#8220;buy&#8221; link appeared outside the cell it should have been in, along the edge of the browser window. A quick <a href="http://www.google.com.au/search?client=safari&amp;rls=en&amp;q=firefox+position+relative+td&amp;ie=UTF-8&amp;oe=UTF-8&amp;redir_esc=&amp;ei=xLc4Ts6SKIuurAektbTtDw">Google search</a> showed that it&#8217;s a known issue.</p>

<h3>The Solution</h3>

<p>Here&#8217;s my solution to the problem:</p>

<ul>
<li>wrap the contents of the <code>td</code> in a <code>div</code></li>
<li>set <code>position: relative</code> and <code>height: 100%</code> on that <code>div</code></li>
</ul>

<h3>The Example</h3>

<p>Here&#8217;s a <a href="http://benwong.me/examples/td_position_relative_ff.html">web page</a> with examples of the problem and the solution.</p>

<p><strong>Update:</strong>
It seems this solution has issues when cells in the table row have varying heights. I&#8217;ll need to spend some time experimenting.</p>
]]></content:encoded>
			<wfw:commentRss>http://benwong.me/2011/pos-rel-doesnt-work-for-td-in-ff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create text file attachments for email in iOS</title>
		<link>http://benwong.me/2011/how-to-create-text-file-attachments-for-email-in-ios/</link>
		<comments>http://benwong.me/2011/how-to-create-text-file-attachments-for-email-in-ios/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 08:45:09 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[iOS Development]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[attachment]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://blog.benwong.me/?p=417</guid>
		<description><![CDATA[Creating text file attachments for email is a programming skill that&#8217;s simple but very useful to know. If you need a simple way to share or export data from your app this is as easy as they come. First, start &#8230; <a href="http://benwong.me/2011/how-to-create-text-file-attachments-for-email-in-ios/">Continued</a>]]></description>
			<content:encoded><![CDATA[<p>Creating text file attachments for email is a programming skill that&#8217;s simple but very useful to know. If you need a simple way to share or export data from your app this is as easy as they come.</p>

<p>First, start by creating a string with the contents of the text file that will be attached to the email.</p>

<pre class="crayon-plain-tag"><code>NSString *textFileContentsString = @&quot;some data, some more data, yet more data&quot;;</code></pre>

<p>Your text file doesn&#8217;t have to be as simple as this. It could be something more substantial, like a CSV or an XML file.</p>

<p>Next, convert the string to data.</p>

<pre class="crayon-plain-tag"><code>NSData *textFileContentsData = [textFileContentsString dataUsingEncoding:NSASCIIStringEncoding];</code></pre>

<p>And then create the MailComposeViewController and add the attachment data.</p>

<pre class="crayon-plain-tag"><code>MFMailComposeViewController *mailComposeViewController = [[MFMailComposeViewController alloc] init];
mailComposeViewController.mailComposeDelegate = self;
[mailComposeViewController setSubject:@&quot;Data Export&quot;];
[mailComposeViewController setMessageBody:@&quot;Here's the data that I am exporting&quot; isHTML:NO];
[mailComposeViewController addAttachmentData:textFileContentsData mimeType:@&quot;text/plain&quot; fileName:@&quot;data.txt&quot;];
[self presentModalViewController:mailComposeViewController animated:YES];
[mailComposeViewController release];</code></pre>

<p>That&#8217;s should be enough to demonstrate how it works. I won&#8217;t go through the details of using a <code>MFMailComposeViewController</code>. You can read about it at the <a href="http://developer.apple.com/library/ios/#documentation/MessageUI/Reference/MFMailComposeViewController_class/Reference/Reference.html">Apple Developer website</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://benwong.me/2011/how-to-create-text-file-attachments-for-email-in-ios/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Google search a specific website</title>
		<link>http://benwong.me/2011/how-to-google-search-a-specific-website/</link>
		<comments>http://benwong.me/2011/how-to-google-search-a-specific-website/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 07:55:51 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://blog.benwong.me/?p=406</guid>
		<description><![CDATA[If you want to Google search for something on a specific website you should add site: followed by the domain of the website you want to restrict the search to. For example if you want to search for UISearchDisplayController, but &#8230; <a href="http://benwong.me/2011/how-to-google-search-a-specific-website/">Continued</a>]]></description>
			<content:encoded><![CDATA[<p>If you want to Google search for something on a specific website you should add <code>site:</code> followed by the domain of the website you want to restrict the search to. For example if you want to search for <code>UISearchDisplayController</code>, but only in Apple&#8217;s Developer website enter you would enter the following:</p>

<p><code>UISearchDisplayController site:developer.apple.com</code></p>

<p>This can come in handy as Google very often can be better at finding things in a website than the search provided by the website.</p>
]]></content:encoded>
			<wfw:commentRss>http://benwong.me/2011/how-to-google-search-a-specific-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First Impressions of OS X Lion</title>
		<link>http://benwong.me/2011/first-impressions-of-os-x-lion/</link>
		<comments>http://benwong.me/2011/first-impressions-of-os-x-lion/#comments</comments>
		<pubDate>Sat, 23 Jul 2011 03:13:41 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[lion]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://blog.benwong.me/?p=393</guid>
		<description><![CDATA[I&#8217;ve upgraded to Lion and I&#8217;m loving it so far. It takes some adjustment, but making the effort to learn all the new gestures and understand how to use Mission Control effectively pays off. If you just installed Lion and &#8230; <a href="http://benwong.me/2011/first-impressions-of-os-x-lion/">Continued</a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve upgraded to Lion and I&#8217;m loving it so far. It takes some adjustment, but making the effort to learn all the new gestures and understand how to use Mission Control effectively pays off.</p>

<p>If you just installed Lion and haven&#8217;t already, you should study all the new gestures in System Preferences under Mouse and Trackpad. Gestures are much easier and fun to learn than old school keyboard shortcuts.</p>

<p>I also recommend checking out the help documentation for Mission Control. You can find it clicking the &#8220;?&#8221; button in the bottom right of System Preferences/Mission Control.</p>
]]></content:encoded>
			<wfw:commentRss>http://benwong.me/2011/first-impressions-of-os-x-lion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone App Updates</title>
		<link>http://benwong.me/2011/iphone-app-updates/</link>
		<comments>http://benwong.me/2011/iphone-app-updates/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 02:31:11 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[iOS Development]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[fontview]]></category>
		<category><![CDATA[webstock]]></category>

		<guid isPermaLink="false">http://blog.benwong.me/?p=388</guid>
		<description><![CDATA[I just realised I&#8217;ve been neglecting to post about app updates lately. FontView 1.4.1 is out. 1.5 is waiting for review. It will have a new icon and launch screen as well as an In-App Purchase to disable ads. Webstock &#8230; <a href="http://benwong.me/2011/iphone-app-updates/">Continued</a>]]></description>
			<content:encoded><![CDATA[<p>I just realised I&#8217;ve been neglecting to post about app updates lately.</p>

<p><a href="http://itunes.apple.com/au/app/fontview/id376350261?mt=8">FontView</a> 1.4.1 is out. 1.5 is waiting for review. It will have a new icon and launch screen as well as an In-App Purchase to disable ads.</p>

<p><a href="http://itunes.apple.com/au/app/webstock/id418123422?mt=8">Webstock</a> 1.1 is out. I&#8217;ve added buttons to session views to take you to the corresponding video page on the Webstock site. Videos should be AirPlay compatible.</p>
]]></content:encoded>
			<wfw:commentRss>http://benwong.me/2011/iphone-app-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

