<?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>James Border &#187; Mac</title>
	<atom:link href="http://jamesborder.com/category/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamesborder.com</link>
	<description>Interactive/Mobile/iOS Developer</description>
	<lastBuildDate>Tue, 01 May 2012 21:31:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>iOS &#8211; Create ipa</title>
		<link>http://jamesborder.com/2011/02/ios-create-ipa/</link>
		<comments>http://jamesborder.com/2011/02/ios-create-ipa/#comments</comments>
		<pubDate>Thu, 24 Feb 2011 15:19:05 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://jamesborder.com/?p=730</guid>
		<description><![CDATA[Create a folder called Payload Place the .app folder inside of that. Place a jpeg (512x512px) named iTunesArtwork (with no extension) into the same directory as the Payload directory. Select the Payload Directory and the iTunesArtwork, right click or control click and select Compress 2 items. Change the name of the resulting file from Archive.zip <a href='http://jamesborder.com/2011/02/ios-create-ipa/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Create a folder called Payload</p>
<p>Place the .app folder inside of that.</p>
<p>Place a jpeg (512x512px) named iTunesArtwork (with no extension) into the same directory as the Payload directory.</p>
<p>Select the Payload Directory and the iTunesArtwork, right click or control click and select Compress 2 items. </p>
<p>Change the name of the resulting file from Archive.zip to WhateverYourAppNameIs.ipa.</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesborder.com/2011/02/ios-create-ipa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>check for unread google emails from the command line</title>
		<link>http://jamesborder.com/2010/08/check-for-unread-google-emails-from-the-command-line/</link>
		<comments>http://jamesborder.com/2010/08/check-for-unread-google-emails-from-the-command-line/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 05:55:50 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://jamesborder.com/?p=620</guid>
		<description><![CDATA[curl -u username &#8211;silent &#8220;https://mail.google.com/mail/feed/atom&#8221; &#124; perl -ne &#8216;print &#8220;\t&#8221; if //; print &#8220;$2\n&#8221; if /(.*)/;&#8217;]]></description>
			<content:encoded><![CDATA[<p>curl -u username &#8211;silent &#8220;https://mail.google.com/mail/feed/atom&#8221; | perl -ne &#8216;print &#8220;\t&#8221; if /<name>/; print &#8220;$2\n&#8221; if /<(title|name)>(.*)<\/\1>/;&#8217;</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesborder.com/2010/08/check-for-unread-google-emails-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ssh login goodness improved</title>
		<link>http://jamesborder.com/2010/08/ssh-login-goodness-improved/</link>
		<comments>http://jamesborder.com/2010/08/ssh-login-goodness-improved/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 05:54:40 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://jamesborder.com/?p=618</guid>
		<description><![CDATA[cat ~/.ssh/id_rsa.pub &#124; ssh user@remotehost &#8216;cat >> ~/.ssh/authorized_keys&#8217; mmmmmmmm&#8230;..]]></description>
			<content:encoded><![CDATA[<p>cat ~/.ssh/id_rsa.pub | ssh user@remotehost &#8216;cat >> ~/.ssh/authorized_keys&#8217;</p>
<p>mmmmmmmm&#8230;.. </p>
]]></content:encoded>
			<wfw:commentRss>http://jamesborder.com/2010/08/ssh-login-goodness-improved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add PHP to HTML files with .htacess</title>
		<link>http://jamesborder.com/2010/07/add-php-to-html-files-with-htacess/</link>
		<comments>http://jamesborder.com/2010/07/add-php-to-html-files-with-htacess/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 18:52:29 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://jamesborder.com/2010/07/add-php-to-html-files-with-htacess/</guid>
		<description><![CDATA[For web servers using PHP as apache module: AddType application/x-httpd-php .html .htm For web servers running PHP as CGI: AddHandler application/x-httpd-php .html .htm In case you wish to do the ASP mimick: For PHP as module: AddType application/x-httpd-php .asp OR For PHP as CGI: AddHandler application/x-httpd-php .asp]]></description>
			<content:encoded><![CDATA[<p>For web servers using PHP as apache module:</p>
<p>AddType application/x-httpd-php .html .htm</p>
<p>For web servers running PHP as CGI:</p>
<p>AddHandler application/x-httpd-php .html .htm </p>
<p>In case you wish to do the ASP mimick:</p>
<p>For PHP as module:</p>
<p>AddType application/x-httpd-php .asp</p>
<p>OR</p>
<p>For PHP as CGI:</p>
<p>AddHandler application/x-httpd-php .asp</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesborder.com/2010/07/add-php-to-html-files-with-htacess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>no more dot underscore ._ files on the network</title>
		<link>http://jamesborder.com/2010/05/no-more-dot-underscore-_-files-on-the-network/</link>
		<comments>http://jamesborder.com/2010/05/no-more-dot-underscore-_-files-on-the-network/#comments</comments>
		<pubDate>Fri, 14 May 2010 15:54:35 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://jamesborder.com/?p=532</guid>
		<description><![CDATA[Open the Terminal and type: defaults write com.apple.desktopservices DSDontWriteNetworkStores true It may be necessary to log out and back in, or even to restart the computer (which is what the article states), for the change to take effect.]]></description>
			<content:encoded><![CDATA[<p>Open the Terminal and type:</p>
<p>defaults write com.apple.desktopservices DSDontWriteNetworkStores true</p>
<p>It may be necessary to log out and back in, or even to restart the computer (which is what the article states), for the change to take effect.</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesborder.com/2010/05/no-more-dot-underscore-_-files-on-the-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql_secure_installation</title>
		<link>http://jamesborder.com/2010/05/mysql_secure_installation/</link>
		<comments>http://jamesborder.com/2010/05/mysql_secure_installation/#comments</comments>
		<pubDate>Sat, 08 May 2010 02:31:49 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://jamesborder.com/?p=520</guid>
		<description><![CDATA[if you install mysql run this command please&#8230; mysql_secure_installation what does it do? asks you set a password for root account remove root accounts that are accessible from outside the local host. remove anonymous-user accounts. remove the test database, which by default can be accessed by anonymous users. see&#8230; it&#8217;s important here&#8217;s what happens me@ubuntop:~$ <a href='http://jamesborder.com/2010/05/mysql_secure_installation/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>if you install mysql run this command please&#8230; </p>
<p>mysql_secure_installation</p>
<p>what does it do?</p>
<p>asks you set a password for root account<br />
remove root accounts that are accessible from outside the local host.<br />
remove anonymous-user accounts.<br />
remove the test database, which by default can be accessed by anonymous users.</p>
<p>see&#8230; it&#8217;s important</p>
<p>here&#8217;s what happens</p>
<p>me@ubuntop:~$ mysql_secure_installation</p>
<p>NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL<br />
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!</p>
<p>In order to log into MySQL to secure it, we&#8217;ll need the current<br />
password for the root user.  If you&#8217;ve just installed MySQL, and<br />
you haven&#8217;t set the root password yet, the password will be blank,<br />
so you should just press enter here.</p>
<p>Enter current password for root (enter for none):<br />
OK, successfully used password, moving on&#8230;</p>
<p>Setting the root password ensures that nobody can log into the MySQL<br />
root user without the proper authorisation.</p>
<p>You already have a root password set, so you can safely answer &#8216;n&#8217;.</p>
<p>Change the root password? [Y/n] n<br />
 &#8230; skipping.</p>
<p>By default, a MySQL installation has an anonymous user, allowing anyone<br />
to log into MySQL without having to have a user account created for<br />
them.  This is intended only for testing, and to make the installation<br />
go a bit smoother.  You should remove them before moving into a<br />
production environment.</p>
<p>Remove anonymous users? [Y/n] Y<br />
 &#8230; Success!</p>
<p>Normally, root should only be allowed to connect from &#8216;localhost&#8217;.  This<br />
ensures that someone cannot guess at the root password from the network.</p>
<p>Disallow root login remotely? [Y/n] y<br />
 &#8230; Success!</p>
<p>By default, MySQL comes with a database named &#8216;test&#8217; that anyone can<br />
access.  This is also intended only for testing, and should be removed<br />
before moving into a production environment.</p>
<p>Remove test database and access to it? [Y/n] y<br />
 &#8211; Dropping test database&#8230;<br />
ERROR 1008 (HY000) at line 1: Can&#8217;t drop database &#8216;test&#8217;; database doesn&#8217;t exist<br />
 &#8230; Failed!  Not critical, keep moving&#8230;<br />
 &#8211; Removing privileges on test database&#8230;<br />
 &#8230; Success!</p>
<p>Reloading the privilege tables will ensure that all changes made so far<br />
will take effect immediately.</p>
<p>Reload privilege tables now? [Y/n] y<br />
 &#8230; Success!</p>
<p>Cleaning up&#8230;</p>
<p>All done!  If you&#8217;ve completed all of the above steps, your MySQL<br />
installation should now be secure.</p>
<p>Thanks for using MySQL!</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesborder.com/2010/05/mysql_secure_installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yes to Mercurial</title>
		<link>http://jamesborder.com/2009/12/yes-mercurial/</link>
		<comments>http://jamesborder.com/2009/12/yes-mercurial/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 05:14:23 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://jamesborder.com/?p=282</guid>
		<description><![CDATA[Mercurial is a very nice alternative to svn. I have several projects in it now and I&#8217;m pretty happy with it. Here are some starter commands. These should be executed from the command line in the directory that you want to control. $ hg init # creates .hg $ hg add # add those &#8216;unknown&#8217; <a href='http://jamesborder.com/2009/12/yes-mercurial/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://mercurial.selenic.com/">Mercurial</a> is a very nice alternative to svn. I have several projects in it now and I&#8217;m pretty happy with it. Here are some starter commands. These should be executed from the command line in the directory that you want to control.</p>
<p>$ hg init           # creates .hg</p>
<p>$ hg add            # add those &#8216;unknown&#8217; files<br />
$ hg commit         # commit all changes into a new changeset, edit changelog entry<br />
   hg commit -m &#8216;updated bad links to style sheet and changed directory name&#8217;</p>
<p>$ hg parents        # see the currently checked out revision (or changeset)</p>
<p>$ hg status         # show all non-ignored files</p>
<p>$ hg help</p>
<p># export your current repo via HTTP with browsable interface on port 8000<br />
$ hg serve -n &#8220;My repo&#8221;</p>
<p>hg revert &#8211;all -r 268033ec7859<br />
Backing out changes</p>
<p>Reverting the whole tree to a known-good revision<br />
It&#8217;s easy, like using a sledgehammer is easy. But this is usually overkill.</p>
<p>$ hg pull -u<br />
$ hg revert &#8211;all -r a0193d83c208 # use your known-good revision id here<br />
$ hg commit # be kind, include the revision id in your commit message<br />
$ hg push</p>
<p>There&#8217;s a more precise alternative:<br />
Backing out a single changeset<br />
Suppose changeset f8f4360bf155 broke something.<br />
$ hg pull -u<br />
$ hg backout f8f4360bf155 # use the revision id of the bad change here<br />
This creates and commits a new changeset that reverts all the changes in that revision. </p>
]]></content:encoded>
			<wfw:commentRss>http://jamesborder.com/2009/12/yes-mercurial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Capture top output</title>
		<link>http://jamesborder.com/2009/11/capture-top-output/</link>
		<comments>http://jamesborder.com/2009/11/capture-top-output/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 05:06:02 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://jamesborder.com/?p=348</guid>
		<description><![CDATA[Output 1 sample to a file top -n 1 -b > top-output.txt Output 1 sample to an email top -n 1 -b &#124; mail -s &#8220;Here&#8217;s my top&#8221; me@jamesborder.com here is the mac version top -l 1 &#124; mail -s &#8220;Here&#8217;s my top mac&#8221; me@jamesborder.com]]></description>
			<content:encoded><![CDATA[<p>Output 1 sample to a file<br />
top -n 1 -b > top-output.txt</p>
<p>Output 1 sample to an email<br />
top -n 1 -b | mail -s &#8220;Here&#8217;s my top&#8221; me@jamesborder.com</p>
<p>here is the mac version<br />
top -l 1 | mail -s &#8220;Here&#8217;s my top mac&#8221; me@jamesborder.com</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesborder.com/2009/11/capture-top-output/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Command Line email</title>
		<link>http://jamesborder.com/2009/11/command-line-email/</link>
		<comments>http://jamesborder.com/2009/11/command-line-email/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 03:01:15 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://jamesborder.com/?p=333</guid>
		<description><![CDATA[Send email while your at the teminal&#8230;. echo "The body of your email here" &#124; mail -s "The Subject of your email here" me@jamesborder.com A couple of &#8220;useful examples&#8221;? send the last 100 line of the error log to yourself (or to a client that needs to see them but doesn&#8217;t know how to get <a href='http://jamesborder.com/2009/11/command-line-email/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Send email while your at the teminal&#8230;.<br />
<code>echo "The body of your email here" | mail -s "The Subject of your email here" me@jamesborder.com<br />
</code></p>
<p>A couple of &#8220;useful examples&#8221;?</p>
<p>send the last 100 line of the error log to yourself (or to a client that needs to see them but doesn&#8217;t know how to get to them)<br />
<code>tail -100 /opt/local/apache2/logs/error_log | mail -s "From error_log" me@jamesborder.com<br />
</code><br />
send the last 10 lines of your command line history to your self<br />
<code>history | tail -10 | mail -s "Howd I do that" me@jamesborder.com<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://jamesborder.com/2009/11/command-line-email/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing mysql from my mac</title>
		<link>http://jamesborder.com/2009/09/removing-mysql-from-my-mac/</link>
		<comments>http://jamesborder.com/2009/09/removing-mysql-from-my-mac/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 21:30:55 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://jamesborder.com/?p=328</guid>
		<description><![CDATA[Yes I admit I have mangled MySql on my macbook very badly and it had to go&#8230;. here is what it took to do it sudo rm /usr/local/mysql sudo rm -rf /usr/local/mysql* sudo rm -rf /Library/StartupItems/MySQLCOM sudo rm -rf /Library/PreferencePanes/My* edit /etc/hostconfig and remove the line MYSQLCOM=-YES- rm -rf ~/Library/PreferencePanes/My* sudo rm -rf /Library/Receipts/mysql* sudo <a href='http://jamesborder.com/2009/09/removing-mysql-from-my-mac/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Yes I admit I have mangled MySql on my macbook very badly and it had to go&#8230;. here is what it took to do it</p>
<p>sudo rm /usr/local/mysql<br />
sudo rm -rf /usr/local/mysql*<br />
sudo rm -rf /Library/StartupItems/MySQLCOM<br />
sudo rm -rf /Library/PreferencePanes/My*<br />
edit /etc/hostconfig and remove the line MYSQLCOM=-YES-<br />
rm -rf ~/Library/PreferencePanes/My*<br />
sudo rm -rf /Library/Receipts/mysql*<br />
sudo rm -rf /Library/Receipts/MySQL*</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesborder.com/2009/09/removing-mysql-from-my-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

