<?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>bizante Ian Walker Technical Blog &#187; osx</title>
	<atom:link href="http://bizante.com/category/osx/feed/" rel="self" type="application/rss+xml" />
	<link>http://bizante.com</link>
	<description>innovative and unconventional uses of technology</description>
	<lastBuildDate>Sat, 08 Oct 2011 18:49:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	

<!-- Debugging help, do not remove -->
<meta name="Framework" content="Kpress" />
<meta name="Theme Version" content="1.1" />
<meta name="Framework Version" content="1.1" />


		<item>
		<title>Quickly find any text string in any set of files</title>
		<link>http://bizante.com/2011/06/quickly-find-any-text-string-in-any-set-of-files/</link>
		<comments>http://bizante.com/2011/06/quickly-find-any-text-string-in-any-set-of-files/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 15:35:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[bash commands]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://bizante.com/?p=533</guid>
		<description><![CDATA[To quickly find any text string within any text file, try this from a terminal window: grep -l [text to find] [files to look in] For example, grep -l 123abc *.html will list the name of any file in the current directory that ends in .html and contains the string 123abc. (That&#8217;s a lower-case-L following [...]]]></description>
			<content:encoded><![CDATA[<p>To quickly find any text string within any text file, try this from a terminal window:<br />
grep -l  [text to find] [files to look in]<br />
For example, grep -l 123abc *.html will list the name of any file in the current directory that ends in .html and contains the string 123abc. </p>
<p>(That&#8217;s a lower-case-L following the GREP) </p>
<p>Quite powerful, and fairly fast. Now, if you have some spare time, and want to see what it can really do, try this:<br />
su root<br />
cd /<br />
grep -lr &#8220;text to find&#8221; *<br />
This will tell the OS to find the &#8220;text to find&#8221; in every file in every directory, all the way down through the tree. The -r flag tells grep to recursively search directories. </p>
<p>Of course, OS X has something like 6,000 files, so this can take a very long time!</p>
]]></content:encoded>
			<wfw:commentRss>http://bizante.com/2011/06/quickly-find-any-text-string-in-any-set-of-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>download static html version of website on osx linux command line</title>
		<link>http://bizante.com/2011/03/download-static-html-version-of-website-on-osx-linux-command-line/</link>
		<comments>http://bizante.com/2011/03/download-static-html-version-of-website-on-osx-linux-command-line/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 14:34:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://bizante.com/?p=431</guid>
		<description><![CDATA[Download static html version of website . If you want a static version of your site you could use Wget command line tool like so: wget -l2 -r -p -k -E http://www.example.com/]]></description>
			<content:encoded><![CDATA[<p>Download static html version of website .<br />
If you want a static version of your site you could use Wget command line tool like so:</p>
<blockquote><p>wget -l2 -r -p -k -E http://www.example.com/</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://bizante.com/2011/03/download-static-html-version-of-website-on-osx-linux-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>band width hogging bandwidth throttling osx</title>
		<link>http://bizante.com/2011/03/band-width-hogging-bandwidth-throttling-osx/</link>
		<comments>http://bizante.com/2011/03/band-width-hogging-bandwidth-throttling-osx/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 12:37:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://bizante.com/?p=428</guid>
		<description><![CDATA[When Downloading a large file on an office network. My download will often take up all the bacndwidth and prevent other users from accessing the internet. This can be overcome by the use of an internet proxy server or using a router with built in bandwidth throttling. If none of these option are available then [...]]]></description>
			<content:encoded><![CDATA[<p>When Downloading a large file on an office network.<br />
My download will often take up all the bacndwidth and prevent other users from accessing the internet.</p>
<p>This can be overcome by the use of an internet proxy server or using a router with built in bandwidth throttling. If none of these option are available then I create some filters on my computers firewall which limit the bandwidth on my computer.</p>
<p>Advanced OS X users know that Darwin comes with ipfw, which can be used to set up a custom firewall. This same service however can be used to also limit bandwidth on specific ports. </p>
<p>Example:</p>
<blockquote><p> sudo ipfw pipe 1 config bw 150KByte/s </p></blockquote>
<p>creates a pipe that only allows up to 150KB/s to go through. </p>
<p>Then:</p>
<blockquote><p>sudo ipfw add 1 pipe 1 src-port 80</p></blockquote>
<p>will attach that pipe to the outgoing traffic on port 80, effectively limiting the outgoing traffic of the web server.</p>
<blockquote><p>sudo ipfw delete 1</p></blockquote>
<p>will remove the pipe from the port. </p>
<p>OR you try this nice little tool here<br />
<a href="http://mschrag.github.com/" target="_blank">SpeedLimit.prefPane</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bizante.com/2011/03/band-width-hogging-bandwidth-throttling-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>KindleGen for Mac</title>
		<link>http://bizante.com/2011/03/kindlegen-for-mac/</link>
		<comments>http://bizante.com/2011/03/kindlegen-for-mac/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 17:24:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://bizante.com/?p=419</guid>
		<description><![CDATA[KindleGen for Mac: http://www.amazon.com/kindlepublishing. &#160; 1. Download the KindleGen.zip to your PC in a location such as your home(~) directory. 2. Unzipitunder&#8217;~/KindleGen&#8217;. 3. Open a command prompt and type&#8217; ~/KindleGen/kindlegen&#8217;. 4. You will see instructions on how to run KindleGen. 5. To convert a file called book.html, go to the directory where the book is [...]]]></description>
			<content:encoded><![CDATA[<p>KindleGen for Mac:</p>
<p>http://www.amazon.com/kindlepublishing.</p>
<p>&nbsp;</p>
<p>1. Download the KindleGen.zip to your PC in a location such as your home(~) directory.</p>
<p>2. Unzipitunder&#8217;~/KindleGen&#8217;.</p>
<p>3. Open a command prompt and type&#8217; ~/KindleGen/kindlegen&#8217;.</p>
<p>4. You will see instructions on how to run KindleGen.</p>
<p>5. To convert a file called book.html, go to the directory where the book is</p>
<p>present, e.g., &#8216;cd Desktop&#8217;, and type &#8216;~/KindleGen/kindlegen book.html&#8217;; if successful, you will see a successful conversion and a new file on your Desktop called ‘book.mobi’.</p>
<p>Run the above commands without quotes.</p>
<p>In order to create Amazon Kindle files using KindleGen, you will need to have a single HTML file that represents the entire book, or you will need to provide IDPF spec 1.0 or 2.0 compliant files. You can look at the IDPF’s OPF spec here: http://www.idpf.org/doc_library/epub/OPF_2.0_latest.htm.</p>
<p>Using the IDPF spec, you can create a Kindle book with multiple HTML files and a single OPF file that links all of them together.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://bizante.com/2011/03/kindlegen-for-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>osx linux creating a symbolic link / soft link</title>
		<link>http://bizante.com/2011/03/osx-linux-creating-a-symbolic-link-soft-link/</link>
		<comments>http://bizante.com/2011/03/osx-linux-creating-a-symbolic-link-soft-link/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 15:52:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://bizante.com/?p=414</guid>
		<description><![CDATA[OS X&#8217;s file structure mounts all partitions under the &#8220;/Volumes&#8221; directory at the root level of the filesystem. However, when navigating the filesystem with &#8220;cd&#8221; and other commands, it can be annoying to type &#8220;/Volumes/volume_name&#8221; each time you want to access a different partition. To learn about symbolic links and use them to add shortcuts [...]]]></description>
			<content:encoded><![CDATA[<p>OS X&#8217;s file structure mounts all partitions under the &#8220;/Volumes&#8221; directory at the root level of the filesystem. However, when navigating the filesystem with &#8220;cd&#8221; and other commands, it can be annoying to type &#8220;/Volumes/volume_name&#8221; each time you want to access a different partition. To learn about symbolic links and use them to add shortcuts at the root level of your filesystem, read the rest of this article. This assumes you are moderately comfortable in the Terminal, and that you have administrative privileges.</p>
<p>What is a Symbolic Link?<br />
If you&#8217;ve ever made an &#8220;Alias&#8221; to a file in classic Mac OS, or a &#8220;Shortcut&#8221; to a file in Windows, you will easily be able to understand the UNIX equivalent (where &#8220;aliases&#8221; and &#8220;shortcuts&#8221; came from in the first place!), called a &#8220;Symbolic Link&#8221;. The easiest definition to understand is directly from the man page, &#8220;[A Link] is useful for maintaining multiple copies of a file in many places at once without using up storage for the &#8216;copies&#8217;; instead, a link &#8216;points&#8217; to the original copy.&#8221; (If you want to read more about it, type man ln in the Terminal.) </p>
<p>I want to create a link to my installation of mysql installed with XAMP on osx</p>
<p>To create a link, simply type the following:<br />
cd /<br />
ln -s /Applications/XAMPP/xamppfiles/bin/mysql/  mysql<br />
That&#8217;s it. ln -s makes a new file called mysql which points to /Applications/XAMPP/xamppfiles/bin/mysql/. To see that this worked, you can simply type<br />
ls -la | more<br />
(note the &#8220;|&#8221; character is called &#8220;pipe&#8221; and is found above the &#8220;Return&#8221; key). You should see a line with the following text:<br />
mysql -> /Applications/XAMPP/xamppfiles/bin/mysql/<br />
The arrow shows you exactly what you did&#8230; A file named mysql points to /Applications/XAMPP/xamppfiles/bin/mysql/. </p>
<p>To delete or remove a symbolic link type the following:</p>
<p>sudo unlink mysql</p>
]]></content:encoded>
			<wfw:commentRss>http://bizante.com/2011/03/osx-linux-creating-a-symbolic-link-soft-link/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Fix Bluetooth Not Available problem in Mac OSX</title>
		<link>http://bizante.com/2011/03/how-to-fix-bluetooth-not-available-problem-in-mac-osx/</link>
		<comments>http://bizante.com/2011/03/how-to-fix-bluetooth-not-available-problem-in-mac-osx/#comments</comments>
		<pubDate>Fri, 11 Mar 2011 19:03:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://bizante.com/?p=405</guid>
		<description><![CDATA[Recently my Bluetooth on my MacBook Pro stopped working without warning. The bluetooth icon in the top right-hand corner of the screen displayed with a line through it, and showed “Bluetooth Not Available” when I clicked on it. This was REALLY annoying as I use a bluetooth mouse on my Macbook Pro. Thankfully, it was [...]]]></description>
			<content:encoded><![CDATA[<p>Recently my Bluetooth on my MacBook Pro stopped working without warning. The bluetooth icon in the top right-hand corner of the screen displayed with a line through it, and showed “Bluetooth Not Available” when I clicked on it. This was REALLY annoying as I use a bluetooth mouse on my Macbook Pro.</p>
<p>Thankfully, it was really easy to fix:</p>
<ol>
<li>Turn the MacBook off</li>
<li>Wait</li>
<li>Turn the MacBook on</li>
</ol>
<p> Sometimes you need to reset your <a href="http://en.wikipedia.org/wiki/Parameter_RAM" target="_blank">PRAM</a> to correct the issue. To do this, follow these instructions:</p>
<ol>
<li>Cold Reboot your computer (turn it off, wait, turn it on)</li>
<li>As soon as it begins to power up, hold down the following keys at the same time:
<ul>
<li>Command</li>
<li>Option</li>
<li>P</li>
<li>R</li>
</ul>
</li>
</ol>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://bizante.com/2011/03/how-to-fix-bluetooth-not-available-problem-in-mac-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>print to PDF osx reduce to small file size dpi</title>
		<link>http://bizante.com/2011/03/print-to-pdf-osx-reduce-to-small-file-size-dpi/</link>
		<comments>http://bizante.com/2011/03/print-to-pdf-osx-reduce-to-small-file-size-dpi/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 20:13:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://bizante.com/?p=403</guid>
		<description><![CDATA[If you use the print to PDF feature in Mac OS X, you have probably noticed that it can create some really large PDFfiles. This is fine as long as you are copying them to CD or DVD, but if you’re putting them on the web or sending them through e-mail, they can really cause havoc [...]]]></description>
			<content:encoded><![CDATA[<p>If you use the print to <strong>PDF</strong> feature in Mac OS X, you have probably noticed that it can create some really large <strong>PDF</strong>files. This is fine as long as you are copying them to CD or DVD, but if you’re putting them on the web or sending them through e-mail, they can really cause havoc on both ends.</p>
<p>If you open the <strong>PDF</strong> in Preview, you can reduce the file size by doing a “Save As&#8230;” and choosing, appropriately, Reduce File Size from the Quartz Filter menu. Often, that will be fine. But the way that it reduces the file size is by saving all images as JPEGs of middle <strong>quality</strong>. Sometimes that <strong>quality</strong>will not be enough.</p>
<p>&nbsp;</p>
<p><strong>How to create a compressed <strong>PDF</strong> with decent <strong>quality</strong> :</strong><br />
Open your existing <strong>PDF</strong> in preview, or Print any document using &#8220;Open <strong>PDF</strong> in Preview&#8221; from the <strong>PDF </strong>pop-up menu in the Print dialog<br />
Choose Save As in the File Menu, then choose <strong>PDF</strong> as format, and one of the &#8220;Reduce to XXX dpi &#8230;&#8221; Quartz filters, and click Save.</p>
]]></content:encoded>
			<wfw:commentRss>http://bizante.com/2011/03/print-to-pdf-osx-reduce-to-small-file-size-dpi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>remove the MobileMe system preferences pane</title>
		<link>http://bizante.com/2011/02/remove-the-mobileme-system-preferences-pane/</link>
		<comments>http://bizante.com/2011/02/remove-the-mobileme-system-preferences-pane/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 14:56:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://bizante.com/?p=384</guid>
		<description><![CDATA[While for some users clearing up unused menus is all that&#8217;s needed, the System Preferences also have MobileMe settings. To remove these preferences, users should go to the /System/Library/PreferencePanes/ folder and remove the following two items: Mac.prefPane Internet.prefPane I ran this command from the terminal sudo rm -R -f /System/Library/PreferencePanes/MobileMe.prefPane]]></description>
			<content:encoded><![CDATA[<p> While for some users clearing up unused menus is all that&#8217;s needed, the System Preferences also have MobileMe settings. To remove these preferences, users should go to the /System/Library/PreferencePanes/ folder and remove the following two items:</p>
<p>Mac.prefPane<br />
Internet.prefPane</p>
<p>I ran this command from the terminal</p>
<p>sudo rm -R -f  /System/Library/PreferencePanes/MobileMe.prefPane</p>
]]></content:encoded>
			<wfw:commentRss>http://bizante.com/2011/02/remove-the-mobileme-system-preferences-pane/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>clear Safari address bar history</title>
		<link>http://bizante.com/2011/02/clear-safari-address-bar-history/</link>
		<comments>http://bizante.com/2011/02/clear-safari-address-bar-history/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 16:08:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[osx]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://bizante.com/?p=315</guid>
		<description><![CDATA[- quit Safari ### = your username - delete, move or rename ~ /Users/###/Library/Safari/History.plist - start Safari again If you want to stop safari from recording the address bar history then do the following: Choose History: Clear History, and then quit Safari. In your user folder, go to Library/Safari and locate the history.plist file. Select [...]]]></description>
			<content:encoded><![CDATA[<p>- quit Safari</p>
<p>### = your username<br />
- delete, move or rename ~ /Users/###/Library/Safari/History.plist<br />
- start Safari again</p>
<p>If you want to stop safari from recording the address bar history then do the following:</p>
<p>Choose History: Clear History, and then quit Safari.</p>
<p>In your user folder, go to Library/Safari and locate the history.plist file.</p>
<p>Select the file, choose File: Get Info, and then click on the Locked option.</p>
<p>Now close the window.</p>
<p>When you relaunch Safari, autocompletion will still work as expected on bookmarks, and it will also work for URLs you visit in the current session.</p>
<p>But the next time you quit and restart Safari, the autocompletion data will vanish &#8212; it can&#8217;t be written to the locked .plist file.</p>
<p>To return to normal autocompletion, deselect the Locked option in the history.plist file&#8217;s Get Info dialog box.</p>
]]></content:encoded>
			<wfw:commentRss>http://bizante.com/2011/02/clear-safari-address-bar-history/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to clear dns cache osx Leopard</title>
		<link>http://bizante.com/2011/02/how-to-clear-dns-cache-osx-leopard/</link>
		<comments>http://bizante.com/2011/02/how-to-clear-dns-cache-osx-leopard/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 23:11:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://bizante.com/?p=311</guid>
		<description><![CDATA[DNS request are usually cached, that’s good as it help to speeds up the lookups within the same host but sometimes we will want to clear the cache so it don’t hold the values that are no longer valid. To clear DNS cache in Mac OSX, we can do it with the help of Terminal. [...]]]></description>
			<content:encoded><![CDATA[<p>DNS request are usually cached, that’s good as it help to speeds up the lookups within the same host but sometimes we will want to clear the cache so it don’t hold the values that are no longer valid. To clear DNS cache in Mac OSX, we can do it with the help of Terminal.</p>
<p><strong>Mac OSX 10.4 and below</strong></p>
<p>lookupd -flushcache</p>
<p><strong>Mac OSX 10.5 and above</strong></p>
<p>However a Mac OSX 10.5 Leopard user will tell you this command will no longer work. In Mac OSX Leopard a new command has been used to replace flushcache. To clear DNS cache in Leopard, use the following command:</p>
<p>dscacheutil -flushcache</p>
]]></content:encoded>
			<wfw:commentRss>http://bizante.com/2011/02/how-to-clear-dns-cache-osx-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

