<?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>My MacOS X&#187; Development</title>
	<atom:link href="http://www.mymacosx.com/development/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mymacosx.com</link>
	<description>Tips and Tricks for the MacOS X</description>
	<lastBuildDate>Fri, 15 Jul 2011 20:10:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Refreshing Apple Mail images</title>
		<link>http://www.mymacosx.com/mail/refreshing-apple-mail-images.html</link>
		<comments>http://www.mymacosx.com/mail/refreshing-apple-mail-images.html#comments</comments>
		<pubDate>Tue, 26 Apr 2011 18:23:37 +0000</pubDate>
		<dc:creator>amaga</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[Tricks and Tips]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[developing]]></category>
		<category><![CDATA[email]]></category>

		<guid isPermaLink="false">http://www.mymacosx.com/?p=789</guid>
		<description><![CDATA[Are you looking for Apple Mail Library Mail Cache? Developing HTML email newsletter and problem with images cache? If you are getting an html email with images and that image file is changed on the server mail is not updating the image. It is obviously looking to a cache file then going back to the [...]<p><a href="http://www.mymacosx.com/mail/refreshing-apple-mail-images.html">Refreshing Apple Mail images</a> is a post from: <a href="http://www.mymacosx.com">My MacOS X</a></p>


<div style="background-color:#F4F4F4;padding: 5px;border-width:1px; border-style:solid; border-color:#ccc;">
<h3 style="color:#606060;font-size:16px">Related Articles</h3>
<ul>
		<li><a href="http://www.mymacosx.com/tricks-and-tips/clear-dns-cache-leopard.html" rel="bookmark" style="color:#000;font-size:13px">How to Clear DNS Cache in Mac OS X Leopard</a><!-- (8.6)--></li>
		<li><a href="http://www.mymacosx.com/snow-leopard/batch-resize-images-preview.html" rel="bookmark" style="color:#000;font-size:13px">Batch resize images in Preview</a><!-- (6.8)--></li>
		<li><a href="http://www.mymacosx.com/software-updates/apple-security-updates-2010-001.html" rel="bookmark" style="color:#000;font-size:13px">Apple security updates 2010-001</a><!-- (6.3)--></li>
	</ul>
</div>]]></description>
			<content:encoded><![CDATA[<h2>Are you looking for Apple Mail Library Mail Cache?</h2>
<p><img src="http://www.mymacosx.com/files/2011/04/apple-mail-app.png" alt="Apple mail app" border="0" width="64" height="64" style="float:left" /><b>Developing HTML email newsletter and problem with images cache?</b>  If you are getting an html email with images and that image file is changed on the server mail is not updating the image. It is obviously looking to a cache file then going back to the server to pull the new image.</p>
<p></p>
<h3>Easy way to force Apple Mail to reload all images from server</h3>
<ol>
<li>Close Mail</li>
<li>In terminal: <code>rm ~/Library/Caches/com.apple.mail/Cache.db</code></li>
<li>Open Mail, all images will be refreshed</li>
</ol>
<h3>Other way to fix mail cache</h3>
<p>You could <a href="http://www.titanium.free.fr/download.php" rel="nofollow">download OnyX</a> to clear all apps cache and also tune up other aspects of the MacOSX.</p>
<script src="http://feeds.feedburner.com/~s/MyMacosX?i=http://www.mymacosx.com/mail/refreshing-apple-mail-images.html" type="text/javascript" charset="utf-8"></script><p><a href="http://www.mymacosx.com/mail/refreshing-apple-mail-images.html">Refreshing Apple Mail images</a> is a post from: <a href="http://www.mymacosx.com">My MacOS X</a></p>


<div style="background-color:#F4F4F4;padding: 5px;border-width:1px; border-style:solid; border-color:#ccc;">
<h3 style="color:#606060;font-size:16px">Related Articles</h3>
<ul>
		<li><a href="http://www.mymacosx.com/tricks-and-tips/clear-dns-cache-leopard.html" rel="bookmark" style="color:#000;font-size:13px">How to Clear DNS Cache in Mac OS X Leopard</a><!-- (8.6)--></li>
		<li><a href="http://www.mymacosx.com/snow-leopard/batch-resize-images-preview.html" rel="bookmark" style="color:#000;font-size:13px">Batch resize images in Preview</a><!-- (6.8)--></li>
		<li><a href="http://www.mymacosx.com/software-updates/apple-security-updates-2010-001.html" rel="bookmark" style="color:#000;font-size:13px">Apple security updates 2010-001</a><!-- (6.3)--></li>
	</ul>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.mymacosx.com/mail/refreshing-apple-mail-images.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Uninstalling Xcode in Snow Leopard</title>
		<link>http://www.mymacosx.com/snow-leopard/how-to-uninstalling-xcode-in-snow-leopard.html</link>
		<comments>http://www.mymacosx.com/snow-leopard/how-to-uninstalling-xcode-in-snow-leopard.html#comments</comments>
		<pubDate>Fri, 04 Mar 2011 21:19:09 +0000</pubDate>
		<dc:creator>amaga</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[Terminal]]></category>

		<guid isPermaLink="false">http://www.mymacosx.com/?p=777</guid>
		<description><![CDATA[After installed developer tools/Xcode you will lose about 8GB disk space or want to reinstall Xcode ? To uninstall developer tools/Xcode type in the following command in the terminal The system will ask you root password and process will take about 5 mins. But beware, this completely removes Xcode and once it is gone, it’s [...]<p><a href="http://www.mymacosx.com/snow-leopard/how-to-uninstalling-xcode-in-snow-leopard.html">How To Uninstalling Xcode in Snow Leopard</a> is a post from: <a href="http://www.mymacosx.com">My MacOS X</a></p>


<div style="background-color:#F4F4F4;padding: 5px;border-width:1px; border-style:solid; border-color:#ccc;">
<h3 style="color:#606060;font-size:16px">Related Articles</h3>
<ul>
		<li><a href="http://www.mymacosx.com/development/macports-install.html" rel="bookmark" style="color:#000;font-size:13px">MacPorts | Compile and install Linux commands</a><!-- (7.7)--></li>
		<li><a href="http://www.mymacosx.com/utilities-suite/macbook-keyboard-backlight-controls.html" rel="bookmark" style="color:#000;font-size:13px">MacBook Keyboard Backlight Controls – Menubar item &amp; function keys to adjust backlit illumination</a><!-- (6.9)--></li>
		<li><a href="http://www.mymacosx.com/software-updates/apple-security-update-2010-003-snow-leopard.html" rel="bookmark" style="color:#000;font-size:13px">Apple Releases Security Update 2010-003 for Snow Leopard and Leopard</a><!-- (5.9)--></li>
	</ul>
</div>]]></description>
			<content:encoded><![CDATA[<p><img style="padding-right: 10px;" src="http://www.mymacosx.com/files/2011/03/xcode.png" border="0" alt="xcode.png" width="75" height="75" />After installed developer tools/Xcode you will lose about 8GB disk space or want to reinstall Xcode ?</p>
<p>To uninstall developer tools/Xcode type in the following command in the terminal</p>
<pre class="brush: plain; title: ; notranslate">sudo /Developer/Library/uninstall-devtools –mode=all</pre>
<p>The system will ask you root password and process will take about 5 mins.</p>
<p>But beware, this completely removes Xcode and once it is gone, it’s gone. Of-course you can always reinstall it. So be sure of what you are doing.</p>
<p>My experience was 8GB from macbook pro.</p>
<p>Note: You can find Terminal in you Mac by going to Applications &gt;&gt; Utilities. (no need to uninstall XCode for that!)</p>
<script src="http://feeds.feedburner.com/~s/MyMacosX?i=http://www.mymacosx.com/snow-leopard/how-to-uninstalling-xcode-in-snow-leopard.html" type="text/javascript" charset="utf-8"></script><p><a href="http://www.mymacosx.com/snow-leopard/how-to-uninstalling-xcode-in-snow-leopard.html">How To Uninstalling Xcode in Snow Leopard</a> is a post from: <a href="http://www.mymacosx.com">My MacOS X</a></p>


<div style="background-color:#F4F4F4;padding: 5px;border-width:1px; border-style:solid; border-color:#ccc;">
<h3 style="color:#606060;font-size:16px">Related Articles</h3>
<ul>
		<li><a href="http://www.mymacosx.com/development/macports-install.html" rel="bookmark" style="color:#000;font-size:13px">MacPorts | Compile and install Linux commands</a><!-- (7.7)--></li>
		<li><a href="http://www.mymacosx.com/utilities-suite/macbook-keyboard-backlight-controls.html" rel="bookmark" style="color:#000;font-size:13px">MacBook Keyboard Backlight Controls – Menubar item &amp; function keys to adjust backlit illumination</a><!-- (6.9)--></li>
		<li><a href="http://www.mymacosx.com/software-updates/apple-security-update-2010-003-snow-leopard.html" rel="bookmark" style="color:#000;font-size:13px">Apple Releases Security Update 2010-003 for Snow Leopard and Leopard</a><!-- (5.9)--></li>
	</ul>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.mymacosx.com/snow-leopard/how-to-uninstalling-xcode-in-snow-leopard.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Snippet your code and notes</title>
		<link>http://www.mymacosx.com/tricks-and-tips/snippet-code-notes.html</link>
		<comments>http://www.mymacosx.com/tricks-and-tips/snippet-code-notes.html#comments</comments>
		<pubDate>Thu, 01 Apr 2010 22:46:54 +0000</pubDate>
		<dc:creator>Amaga</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tricks and Tips]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://www.mymacosx.com/?p=630</guid>
		<description><![CDATA[So you’re a designer or a developer and you daily need to deal with code and text snippets: that’s very likely to happen. From CSS to HTML, from Javascript to Ruby, you just can’t remember every piece of code everyday: you need a good solution to store and easily retrieve them. Snippet is a way [...]<p><a href="http://www.mymacosx.com/tricks-and-tips/snippet-code-notes.html">Snippet your code and notes</a> is a post from: <a href="http://www.mymacosx.com">My MacOS X</a></p>


<div style="background-color:#F4F4F4;padding: 5px;border-width:1px; border-style:solid; border-color:#ccc;">
<h3 style="color:#606060;font-size:16px">Related Articles</h3>
<ul>
		<li><a href="http://www.mymacosx.com/iphoto/iphoto-mobileme-login-not-correct.html" rel="bookmark" style="color:#000;font-size:13px">iPhoto will not update MobileMe gallery</a><!-- (7.1)--></li>
		<li><a href="http://www.mymacosx.com/software-updates/itunes-goes-902.html" rel="bookmark" style="color:#000;font-size:13px">iTunes goes 9.0.2: adds support for Apple TV 3.0, kills Pre sync</a><!-- (6.2)--></li>
		<li><a href="http://www.mymacosx.com/terminal/bandwidth-throttling.html" rel="bookmark" style="color:#000;font-size:13px">Bandwidth Throttling</a><!-- (5.8)--></li>
	</ul>
</div>]]></description>
			<content:encoded><![CDATA[<div>
<p>So you’re a designer or a developer and you daily need to deal with code  and text snippets: that’s very likely to happen. From CSS to HTML, from  Javascript to Ruby, you just can’t remember every piece of code  everyday: you need a good solution to store and easily retrieve them. <a href="http://www.mymacosx.com/files/2010/04/snippet.png"><img class="aligncenter size-medium  wp-image-631" title="snippet" src="http://www.mymacosx.com/files/2010/04/snippet-300x194.png" alt="snippet code" width="300" height="194" /></a></p>
<p><strong>Snippet</strong> is a way for developers to quickly save and search  their snippets of code to use later on future projects. Store all sorts  of code and notes, and sync across multiple macs with <strong>MobileMe</strong>.</p>
<p><strong>Features:</strong></p>
<ul>
<li>Easily create Snippets from selected text anywhere.</li>
<li>Sync Snippet with MobileMe so you always have your snippets.</li>
<li>Creating new snippets only takes seconds.</li>
<li>Search your snippets instantly with a few keystrokes.</li>
<li>Never have to leave the keyboard.</li>
</ul>
<p><strong>Price: </strong><a title="Download Snippet now" rel="nofollow" href="http://download.cnet.com/Snippet/3000-2229_4-75065932.html" target="_blank"> Free to try (15-day trial);</a> $12.95 to buy</p>
</div>
<script src="http://feeds.feedburner.com/~s/MyMacosX?i=http://www.mymacosx.com/tricks-and-tips/snippet-code-notes.html" type="text/javascript" charset="utf-8"></script><p><a href="http://www.mymacosx.com/tricks-and-tips/snippet-code-notes.html">Snippet your code and notes</a> is a post from: <a href="http://www.mymacosx.com">My MacOS X</a></p>


<div style="background-color:#F4F4F4;padding: 5px;border-width:1px; border-style:solid; border-color:#ccc;">
<h3 style="color:#606060;font-size:16px">Related Articles</h3>
<ul>
		<li><a href="http://www.mymacosx.com/iphoto/iphoto-mobileme-login-not-correct.html" rel="bookmark" style="color:#000;font-size:13px">iPhoto will not update MobileMe gallery</a><!-- (7.1)--></li>
		<li><a href="http://www.mymacosx.com/software-updates/itunes-goes-902.html" rel="bookmark" style="color:#000;font-size:13px">iTunes goes 9.0.2: adds support for Apple TV 3.0, kills Pre sync</a><!-- (6.2)--></li>
		<li><a href="http://www.mymacosx.com/terminal/bandwidth-throttling.html" rel="bookmark" style="color:#000;font-size:13px">Bandwidth Throttling</a><!-- (5.8)--></li>
	</ul>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.mymacosx.com/tricks-and-tips/snippet-code-notes.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacPorts &#124; Compile and install Linux commands</title>
		<link>http://www.mymacosx.com/development/macports-install.html</link>
		<comments>http://www.mymacosx.com/development/macports-install.html#comments</comments>
		<pubDate>Thu, 25 Mar 2010 07:41:26 +0000</pubDate>
		<dc:creator>Amaga</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.mymacosx.com/?p=513</guid>
		<description><![CDATA[The MacPorts Project provides software installation, updating, and removal functionality to OS X similar to Linux’ apt-get or yum. The Project is currently tracking more than 5000 packages including software such as subversion, wget, apache2, php5, etc. To install the software, first install Apple’s Xcode Developer Tools (available on your Mac OS X installation disc) [...]<p><a href="http://www.mymacosx.com/development/macports-install.html">MacPorts | Compile and install Linux commands</a> is a post from: <a href="http://www.mymacosx.com">My MacOS X</a></p>


<div style="background-color:#F4F4F4;padding: 5px;border-width:1px; border-style:solid; border-color:#ccc;">
<h3 style="color:#606060;font-size:16px">Related Articles</h3>
<ul>
		<li><a href="http://www.mymacosx.com/snow-leopard/how-to-uninstalling-xcode-in-snow-leopard.html" rel="bookmark" style="color:#000;font-size:13px">How To Uninstalling Xcode in Snow Leopard</a><!-- (9.6)--></li>
		<li><a href="http://www.mymacosx.com/terminal/bandwidth-throttling.html" rel="bookmark" style="color:#000;font-size:13px">Bandwidth Throttling</a><!-- (5.5)--></li>
	</ul>
</div>]]></description>
			<content:encoded><![CDATA[<p><a title="The MacPorts Project" href="http://www.macports.org/index.php" target="_blank"><img class="alignleft size-full wp-image-653" title="MacPorts" src="http://www.mymacosx.com/files/2010/04/MacPorts.png" alt="" width="183" height="70" />The MacPorts  Project</a> provides software installation, updating, and removal  functionality to <a title="Apple Mac OS X" href="http://www.apple.com/macosx/" target="_blank">OS X</a> similar to  Linux’ <a title="Wikipedia - Advanced Packaging Tool" rel="nofollow" href="http://en.wikipedia.org/wiki/Advanced_Packaging_Tool" target="_blank">apt-get</a> or <a title="Wikipedia - Yellow dog Updater,  Modified" rel="nofollow" href="http://en.wikipedia.org/wiki/Yellow_dog_Updater,_Modified" target="_blank">yum</a>. The Project is currently tracking more than  5000 packages including software such as <a title="Wikipedia -  Subversion" rel="nofollow" href="http://en.wikipedia.org/wiki/Subversion_%28software%29" target="_blank">subversion</a>, <a title="Wikipedia - Wget" rel="nofollow" href="http://en.wikipedia.org/wiki/Wget" target="_blank">wget</a>, <a title="Wikipedia - Apache2" rel="nofollow" href="http://en.wikipedia.org/wiki/Apache2" target="_blank">apache2</a>, <a title="Wikipedia - PHP" rel="nofollow" href="http://en.wikipedia.org/wiki/PHP" target="_blank">php5</a>, etc.</p>
<p>To install the software, first install <a title="Apple Xcode" href="http://www.apple.com/xcode" target="_blank">Apple’s Xcode  Developer Tools</a> (<em>available on your Mac OS X installation disc</em>)  and the <a title="Apple X11 Windowing Environment" rel="nofollow" href="http://www.apple.com/downloads/macosx/apple/macosx_updates/x11formacosx.html" target="_blank">X11 windowing environment</a> (<em>included by default  in 10.6.* &#8220;Snow Leopard&#8221;, 10.5.* “Leopard”, but available on your Mac OS X installation discs  for 10.4.* “Tiger” and 10.3.* “Panther”</em>), then <a title="MacPorts -  Installing" rel="nofollow" href="http://www.macports.org/install.php" target="_blank">download  the MacPorts DMG</a> (<em>disk image</em>), mount the disk image and  run the installation package.</p>
<p>After the installation has completed, reopen any Terminal windows to  reload <em>PATH</em> settings updated by the installation, then run the  following command to update the MacPorts software:</p>
<div>
<div><code>sudo port -v selfupdate</code></div>
</div>
<p>Detailed usage instructions can be found in the <a title="MacPorts -  Guide" href="http://guide.macports.org/" target="_blank">MacPorts Guide</a>,  but the basic commands are:</p>
<p><strong>Install a package:</strong></p>
<div>
<div><code>sudo port install {PACKAGENAME}</code></div>
</div>
<p><strong>Uninstall a package:</strong></p>
<div>
<div><code>sudo port uninstall {PACKAGENAME}</code></div>
</div>
<p><strong>Delete intermediate files created while a port was built:</strong></p>
<div>
<div><code>sudo port clean</code></div>
</div>
<p><strong>List all installed packages:</strong></p>
<div>
<div><code>sudo port installed</code></div>
</div>
<p><strong>List all packages available:</strong></p>
<div>
<div><code>sudo port list</code></div>
</div>
<p><strong>Search all packages available:</strong></p>
<div>
<div><code>sudo port search {SEARCHTERM}</code></div>
</div>
<script src="http://feeds.feedburner.com/~s/MyMacosX?i=http://www.mymacosx.com/development/macports-install.html" type="text/javascript" charset="utf-8"></script><p><a href="http://www.mymacosx.com/development/macports-install.html">MacPorts | Compile and install Linux commands</a> is a post from: <a href="http://www.mymacosx.com">My MacOS X</a></p>


<div style="background-color:#F4F4F4;padding: 5px;border-width:1px; border-style:solid; border-color:#ccc;">
<h3 style="color:#606060;font-size:16px">Related Articles</h3>
<ul>
		<li><a href="http://www.mymacosx.com/snow-leopard/how-to-uninstalling-xcode-in-snow-leopard.html" rel="bookmark" style="color:#000;font-size:13px">How To Uninstalling Xcode in Snow Leopard</a><!-- (9.6)--></li>
		<li><a href="http://www.mymacosx.com/terminal/bandwidth-throttling.html" rel="bookmark" style="color:#000;font-size:13px">Bandwidth Throttling</a><!-- (5.5)--></li>
	</ul>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.mymacosx.com/development/macports-install.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VIM: Making it Work on Leopard</title>
		<link>http://www.mymacosx.com/terminal/vim-vi-colors-settings-snow-leopard.html</link>
		<comments>http://www.mymacosx.com/terminal/vim-vi-colors-settings-snow-leopard.html#comments</comments>
		<pubDate>Wed, 23 Dec 2009 00:23:14 +0000</pubDate>
		<dc:creator>Amaga</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.mymacosx.com/?p=441</guid>
		<description><![CDATA[The default vim is  pretty bland and unimpressive. I would share a few of the settings I have found or plundered from Linux installations in order to make vim more usable. This can go in your .vimrc or in a global location such as /usr/share/vim/vimrc. I would be interested in what other command line and [...]<p><a href="http://www.mymacosx.com/terminal/vim-vi-colors-settings-snow-leopard.html">VIM: Making it Work on Leopard</a> is a post from: <a href="http://www.mymacosx.com">My MacOS X</a></p>


<div style="background-color:#F4F4F4;padding: 5px;border-width:1px; border-style:solid; border-color:#ccc;">
<h3 style="color:#606060;font-size:16px">Related Articles</h3>
<ul>
		<li><a href="http://www.mymacosx.com/terminal/wget-replacement-macos.html" rel="bookmark" style="color:#000;font-size:13px">A wget replacement for MAC OS X</a><!-- (5.1)--></li>
	</ul>
</div>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mymacosx.com/files/2009/12/vim.jpg"><img class="size-medium wp-image-445 alignleft" style="margin-left: 10px;margin-right: 10px" title="vim vi snow leopard" src="http://www.mymacosx.com/files/2009/12/vim-300x171.jpg" alt="vim vi snow leopard" width="300" height="171" /></a>The default <strong>vim</strong> is  pretty bland and unimpressive. I would share a few of the settings I have found or plundered from Linux installations in order to make <strong>vim more usable</strong>.</p>
<p>This can go in your .vimrc or in a global location such as /usr/share/vim/vimrc.<br />
I would be interested in what other command line and vim users do to improve Snow Leopard.</p>
<h3>step 1. Add following code to <strong>/usr/share/vim/vimrc</strong></h3>
<pre class="brush: bash; title: ; notranslate">
set nocompatible &quot; Use Vim defaults
set bs=2 &quot; backspacing over everything in insert mode
set ai &quot; Auto indenting
set history=100 &quot; keep 100 lines of history
set ruler &quot; show the cursor position

set viminfo='20,\&quot;200 &quot; keep a .viminfo file

syntax on &quot; syntax highlighting
set hlsearch &quot; highlight the last searched term

filetype plugin on &quot; use the file type plugins

&quot; When editing a file, always jump to the last cursor position
autocmd BufReadPost *
\ if ! exists(&quot;g:leave_my_cursor_position_alone&quot;) |
\ if line(&quot;'\&quot;&quot;) &gt; 0 &amp;&amp; line (&quot;'\&quot;&quot;) &lt;= line(&quot;$&quot;) |
\ exe &quot;normal g'\&quot;&quot; |
\ endif |
\ endif
</pre>
<h3>step 2. Make alias vi = vim</h3>
<p>open ~/.bash_profile and add following code</p>
<pre class="brush: bash; title: ; notranslate">
alias vi=vim
</pre>
<script src="http://feeds.feedburner.com/~s/MyMacosX?i=http://www.mymacosx.com/terminal/vim-vi-colors-settings-snow-leopard.html" type="text/javascript" charset="utf-8"></script><p><a href="http://www.mymacosx.com/terminal/vim-vi-colors-settings-snow-leopard.html">VIM: Making it Work on Leopard</a> is a post from: <a href="http://www.mymacosx.com">My MacOS X</a></p>


<div style="background-color:#F4F4F4;padding: 5px;border-width:1px; border-style:solid; border-color:#ccc;">
<h3 style="color:#606060;font-size:16px">Related Articles</h3>
<ul>
		<li><a href="http://www.mymacosx.com/terminal/wget-replacement-macos.html" rel="bookmark" style="color:#000;font-size:13px">A wget replacement for MAC OS X</a><!-- (5.1)--></li>
	</ul>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.mymacosx.com/terminal/vim-vi-colors-settings-snow-leopard.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Bandwidth Throttling</title>
		<link>http://www.mymacosx.com/terminal/bandwidth-throttling.html</link>
		<comments>http://www.mymacosx.com/terminal/bandwidth-throttling.html#comments</comments>
		<pubDate>Thu, 05 Nov 2009 01:22:27 +0000</pubDate>
		<dc:creator>Amaga</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[Tricks and Tips]]></category>
		<category><![CDATA[net]]></category>

		<guid isPermaLink="false">http://www.mymacosx.com/?p=350</guid>
		<description><![CDATA[Advanced OS X users know that Darwin comes with ipfw, which can be used to set up a custom firewall. IPFW&#8217;s flexibility, very targeted bandwidth limiting rules can be made in only a few lines. This same service however can be used to also limit bandwidth on specific ports. The following ipfw rules will limit [...]<p><a href="http://www.mymacosx.com/terminal/bandwidth-throttling.html">Bandwidth Throttling</a> is a post from: <a href="http://www.mymacosx.com">My MacOS X</a></p>


<div style="background-color:#F4F4F4;padding: 5px;border-width:1px; border-style:solid; border-color:#ccc;">
<h3 style="color:#606060;font-size:16px">Related Articles</h3>
<ul>
		<li><a href="http://www.mymacosx.com/development/macports-install.html" rel="bookmark" style="color:#000;font-size:13px">MacPorts | Compile and install Linux commands</a><!-- (5.7)--></li>
	</ul>
</div>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-353" style="margin-left: 10px;margin-right: 10px" src="http://www.mymacosx.com/files/2009/11/basndwidth-throttle-150x150.gif" alt="basndwidth-throttle" width="150" height="150" />Advanced OS X users know that Darwin comes with <strong>ipfw</strong>, which can be used to set up a custom firewall. IPFW&#8217;s flexibility, very targeted bandwidth limiting rules can be made in only a few lines. This same service however can be used to also limit bandwidth on specific ports.</p>
<p>The following ipfw rules will limit connections from Mac to ISP’s mail server to 100K per second only for outgoing smtp connections:</p>
<pre class="brush: plain; title: ; notranslate">sudo ipfw pipe 1 config bw 100Kbit/s
sudo ipfw pipe 1 tcp from me to smtp.west.cox.net 25</pre>
<p>Obviously, the rate can be tailored to anything you like, and the rule is specific enough not to get in the way of any other connections going on.<br />
to remove the pipe from the port</p>
<pre class="brush: plain; title: ; notranslate">sudo ipfw delete 1</pre>
<h3>Another example could be for <a href="//development">webdevelopers</a></h3>
<p>You should see how long it takes modern sites to load on 56k…</p>
<p>Create a pipe that only allows up to 15KB/s</p>
<pre class="brush: plain; title: ; notranslate">sudo ipfw pipe 1 config bw 15KByte/s</pre>
<p>Attach that pipe to the outgoing traffic on port 80</p>
<pre class="brush: plain; title: ; notranslate">sudo ipfw add 1 pipe 1 src-port 80</pre>
<p>Delete the pipe when finished</p>
<pre class="brush: plain; title: ; notranslate">sudo ipfw delete 1</pre>
<script src="http://feeds.feedburner.com/~s/MyMacosX?i=http://www.mymacosx.com/terminal/bandwidth-throttling.html" type="text/javascript" charset="utf-8"></script><p><a href="http://www.mymacosx.com/terminal/bandwidth-throttling.html">Bandwidth Throttling</a> is a post from: <a href="http://www.mymacosx.com">My MacOS X</a></p>


<div style="background-color:#F4F4F4;padding: 5px;border-width:1px; border-style:solid; border-color:#ccc;">
<h3 style="color:#606060;font-size:16px">Related Articles</h3>
<ul>
		<li><a href="http://www.mymacosx.com/development/macports-install.html" rel="bookmark" style="color:#000;font-size:13px">MacPorts | Compile and install Linux commands</a><!-- (5.7)--></li>
	</ul>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.mymacosx.com/terminal/bandwidth-throttling.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Valid HTML and Apply Source Formatting</title>
		<link>http://www.mymacosx.com/textedit/valid-html-apply-source-formatting.html</link>
		<comments>http://www.mymacosx.com/textedit/valid-html-apply-source-formatting.html#comments</comments>
		<pubDate>Tue, 27 Oct 2009 19:20:10 +0000</pubDate>
		<dc:creator>Amaga</dc:creator>
				<category><![CDATA[Coda]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[TextEdit]]></category>
		<category><![CDATA[Utilities Suite]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Text Editor]]></category>

		<guid isPermaLink="false">http://www.mymacosx.com/?p=272</guid>
		<description><![CDATA[I could say -  I always write code that’s valid and &#8220;Apply Source Formatting&#8221; as Adobe Dreamweaver CS4 does it , but the truth is I’m a hack. I get things to work with spit and chewing gum, and my code is a sloppy mess. Tidy Service to the rescue! Tidy Service is a OS [...]<p><a href="http://www.mymacosx.com/textedit/valid-html-apply-source-formatting.html">Valid HTML and Apply Source Formatting</a> is a post from: <a href="http://www.mymacosx.com">My MacOS X</a></p>


<div style="background-color:#F4F4F4;padding: 5px;border-width:1px; border-style:solid; border-color:#ccc;">
<h3 style="color:#606060;font-size:16px">Related Articles</h3>
<ul>
		<li><a href="http://www.mymacosx.com/software-updates/itunes-goes-902.html" rel="bookmark" style="color:#000;font-size:13px">iTunes goes 9.0.2: adds support for Apple TV 3.0, kills Pre sync</a><!-- (5.1)--></li>
	</ul>
</div>]]></description>
			<content:encoded><![CDATA[<p><span> </span>I could say -  I always write code that’s valid and &#8220;<strong>Apply Source Formatting</strong>&#8221; as Adobe Dreamweaver CS4 does it , but the truth is I’m a hack.<br />
I get things to work with spit and chewing gum, and my code is a sloppy mess. Tidy Service to the rescue!</p>
<p>Tidy Service is a OS X Service that cleans up markup using the powerful HTML Tidy library originally created by  Dave Raggett. The version of HTML Tidy used in this build corresponds to the binary version released on February 11th, 2007.</p>
<h3 style="padding-top:20px">HOW DO INSTALL IT?</h3>
<ol>
<li><a href="http://www.pixelfreak.net/tidy_service/Tidy%20Service%201.1.0.dmg" target="_blank">Download Tidy Service</a></li>
<li>Copy TidyService.service file to<em> /Users/&lt;your home directory&gt;/Library/Services/</em><br />
Note: You may need to create the directory &#8220;<strong>Services</strong>&#8221; if it does not already exist.</li>
<li>Logout and then login  again (or restart systyem).<br />
Note: Tidy Sevice               will not appear in the Services menu until you logout, then login</li>
<li>Create settings for TidyService.<br />
create /Users/&lt;your home directory&gt;/TidyService.conf<br />
and insert following settings to TidyService.conf</p>
<pre class="brush: plain; title: ; notranslate">
indent: yes
indent-spaces: 4
wrap: 72
markup: yes
output-xml: no
input-xml: no
show-warnings: no
numeric-entities: no
quote-marks: yes
quote-nbsp: yes
quote-ampersand: no
break-before-br: no
uppercase-tags: no
uppercase-attributes: no
doctype: omit
show-body-only: yes
output-html: yes
tidy-mark: no
</pre>
<p>A detailed listing of options can be found at <a href="http://tidy.sourceforge.net/docs/quickref.html" target="_blank">http://tidy.sourceforge.net/docs/quickref.html</a></li>
<li>Set a shortcut to easy access to Tidy Service. Open Leopard -&gt; System Preferences -&gt; Keyboard -&gt; Keyboard Shortcuts. Select <strong>Services</strong> in left box and set find &#8220;Tidy Markup&#8221; in list.<br />
<img class="alignnone size-full wp-image-273" src="http://www.mymacosx.com/files/2009/10/system.preference.keyboard.png" alt="system.preference.keyboard" width="480" height="218" /></li>
</ol>
<h3 style="padding-top:20px">HOW TO USE</h3>
<p>Tidy Service can be used to clean up HTML markup in any application that supports services by selecting (<a href="http://www.mymacosx.com/textedit/text-editor-macosx-coda.html">Coda</a>, <a href="http://www.codingmonkeys.de/subethaedit">SubEthaEdit</a>, <a href="http://www.tumultco.com/HyperEdit">Tumult HyperEdit</a>, or <a href="http://www.barebones.com/products/textwrangler">TextWrangler</a>) the markup in question and choosing one of the Tidy menu items from the Services menu.<br />
<img class="alignnone size-full wp-image-275" src="http://www.mymacosx.com/files/2009/10/tidy_service1.jpg" alt="tidy_service" width="473" height="372" /><br />
Currently, there are two processing options: Tidy Markup and Tidy to XHTML. Tidy to XHTML instructs the Tidy engine to  generate valid XHTML, while Tidy Markup does not.</p>
<script src="http://feeds.feedburner.com/~s/MyMacosX?i=http://www.mymacosx.com/textedit/valid-html-apply-source-formatting.html" type="text/javascript" charset="utf-8"></script><p><a href="http://www.mymacosx.com/textedit/valid-html-apply-source-formatting.html">Valid HTML and Apply Source Formatting</a> is a post from: <a href="http://www.mymacosx.com">My MacOS X</a></p>


<div style="background-color:#F4F4F4;padding: 5px;border-width:1px; border-style:solid; border-color:#ccc;">
<h3 style="color:#606060;font-size:16px">Related Articles</h3>
<ul>
		<li><a href="http://www.mymacosx.com/software-updates/itunes-goes-902.html" rel="bookmark" style="color:#000;font-size:13px">iTunes goes 9.0.2: adds support for Apple TV 3.0, kills Pre sync</a><!-- (5.1)--></li>
	</ul>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.mymacosx.com/textedit/valid-html-apply-source-formatting.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc (Feed is rejected)
Page Caching using apc
Database Caching 18/99 queries in 0.031 seconds using apc
Object Caching 2319/2378 objects using apc

Served from: www.mymacosx.com @ 2012-02-06 03:51:54 -->
