<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Mac OS X on Amit Agarwal Linux Blog</title>
    <link>/tags/mac-os-x/</link>
    <description>Recent content in Mac OS X on Amit Agarwal Linux Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Fri, 22 Nov 2013 01:50:24 +0000</lastBuildDate>
    
	<atom:link href="/tags/mac-os-x/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>bash – using the vi mode more effectively.</title>
      <link>/2013/11/22/bash-vi-mode-effectively/</link>
      <pubDate>Fri, 22 Nov 2013 01:50:24 +0000</pubDate>
      
      <guid>/2013/11/22/bash-vi-mode-effectively/</guid>
      <description>&lt;figure style=&#34;width: 240px&#34; class=&#34;wp-caption alignright&#34;&gt;&lt;a href=&#34;http://www.flickr.com/photos/36867590@N00/397369388&#34; target=&#34;_blank&#34;&gt;&lt;img class=&#34;zemanta-img-inserted zemanta-img-configured&#34; title=&#34;Vi blogging bundle&#34; alt=&#34;Vi blogging bundle&#34; src=&#34;https://i1.wp.com/farm1.static.flickr.com/160/397369388_6935e4572a_m.jpg?resize=240%2C180&#34; width=&#34;240&#34; height=&#34;180&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;figcaption class=&#34;wp-caption-text&#34;&gt;Vi blogging bundle (Photo credit: pedro mg)&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;You can first set the &lt;a class=&#34;zem_slink&#34; title=&#34;Bash (Unix shell)&#34; href=&#34;http://www.gnu.org/software/bash/&#34; target=&#34;_blank&#34; rel=&#34;homepage&#34;&gt;bash&lt;/a&gt; mode to &lt;a class=&#34;zem_slink&#34; title=&#34;Vi&#34; href=&#34;http://en.wikipedia.org/wiki/Vi&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;vi&lt;/a&gt;. This will enable some vim like features to bash. So, add this to .bashrc :&lt;/p&gt;
&lt;pre class=&#34;brush: actionscript3; gutter: true; first-line: 1&#34;&gt;set -o vi&lt;/pre&gt;
&lt;p&gt;Once, you have done that then its time to get more out of the vi mode. First, check some things and set some interesting stuff.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>force recheck on reboot – fsck</title>
      <link>/2013/09/27/force-recheck-reboot-fsck/</link>
      <pubDate>Fri, 27 Sep 2013 00:34:48 +0000</pubDate>
      
      <guid>/2013/09/27/force-recheck-reboot-fsck/</guid>
      <description>&lt;p&gt;If you want to force a &lt;a class=&#34;zem_slink&#34; title=&#34;Fsck&#34; href=&#34;http://en.wikipedia.org/wiki/Fsck&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;fsck&lt;/a&gt; re-check on reboot, then just&lt;/p&gt;
&lt;pre class=&#34;brush: bash; gutter: true; first-line: 1&#34;&gt;touch /forcefsck&lt;/pre&gt;
&lt;h6 class=&#34;zemanta-related-title&#34; style=&#34;font-size: 1em;&#34;&gt;
  Related articles
&lt;/h6&gt;
&lt;ul class=&#34;zemanta-article-ul zemanta-article-ul-image&#34; style=&#34;margin: 0; padding: 0; overflow: hidden;&#34;&gt;
  &lt;li class=&#34;zemanta-article-ul-li-image zemanta-article-ul-li&#34; style=&#34;padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;&#34;&gt;
    &lt;a style=&#34;box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;&#34; href=&#34;http://blog.amit-agarwal.co.in/2013/09/05/set-disk-params-safe/&#34; target=&#34;_blank&#34;&gt;&lt;img style=&#34;padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;&#34; alt=&#34;&#34; src=&#34;https://i0.wp.com/i.zemanta.com/noimg_122_80_80.jpg?w=688&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;a style=&#34;display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;&#34; href=&#34;http://blog.amit-agarwal.co.in/2013/09/05/set-disk-params-safe/&#34; target=&#34;_blank&#34;&gt;Set some disk params to be safe&lt;/a&gt;
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li-image zemanta-article-ul-li&#34; style=&#34;padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;&#34;&gt;
    &lt;a style=&#34;box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;&#34; href=&#34;https://wiki.archlinux.org/index.php?title=Improve_Boot_Performance&amp;diff=272734&amp;oldid=271318&#34; target=&#34;_blank&#34;&gt;&lt;img style=&#34;padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;&#34; alt=&#34;&#34; src=&#34;https://i0.wp.com/i.zemanta.com/noimg_121_80_80.jpg?w=688&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;a style=&#34;display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;&#34; href=&#34;https://wiki.archlinux.org/index.php?title=Improve_Boot_Performance&amp;diff=272734&amp;oldid=271318&#34; target=&#34;_blank&#34;&gt;Improve Boot Performance&lt;/a&gt;
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li-image zemanta-article-ul-li&#34; style=&#34;padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;&#34;&gt;
    &lt;a style=&#34;box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;&#34; href=&#34;https://wiki.archlinux.org/index.php?title=Ext4&amp;diff=271165&amp;oldid=260346&#34; target=&#34;_blank&#34;&gt;&lt;img style=&#34;padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;&#34; alt=&#34;&#34; src=&#34;https://i2.wp.com/i.zemanta.com/noimg_54_80_80.jpg?w=688&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;a style=&#34;display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;&#34; href=&#34;https://wiki.archlinux.org/index.php?title=Ext4&amp;diff=271165&amp;oldid=260346&#34; target=&#34;_blank&#34;&gt;Ext4&lt;/a&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt; &lt;/p&gt;</description>
    </item>
    
    <item>
      <title>using `!#$’ to referance backward-word</title>
      <link>/2011/11/03/referance-backward-word/</link>
      <pubDate>Thu, 03 Nov 2011 07:20:20 +0000</pubDate>
      
      <guid>/2011/11/03/referance-backward-word/</guid>
      <description>&lt;div class=&#34;zemanta-img&#34; style=&#34;margin: 1em; display: block;&#34;&gt;
  &lt;p&gt;
    &lt;figure style=&#34;width: 240px&#34; class=&#34;wp-caption alignright&#34;&gt;&lt;a href=&#34;http://www.flickr.com/photos/8945974@N08/5507068816&#34;&gt;&lt;img class=&#34;zemanta-img-configured&#34; title=&#34;Operating System Tablet Strategy&#34; src=&#34;https://i1.wp.com/blog.amit-agarwal.co.in/wp-content/uploads/zemanta//5507068816_ded55139d2_m.jpg?resize=240%2C124&#34; alt=&#34;Operating System Tablet Strategy&#34; width=&#34;240&#34; height=&#34;124&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;figcaption class=&#34;wp-caption-text&#34;&gt;Image by jeffalldridge via Flickr&lt;/figcaption&gt;&lt;/figure&gt;
  &lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Here is something that I found on the &lt;a href=&#34;http://www.commandlinefu.com/commands/view/9327/using-to-referance-backward-word&#34; target=&#34;_blank&#34;&gt;commandlinefu&lt;/a&gt;&lt;/p&gt;
&lt;pre class=&#34;brush: bash; gutter: true; first-line: 1&#34;&gt;cp /work/host/phone/ui/main.cpp !#$:s/host/target&lt;/pre&gt;
&lt;p&gt;Ah well…its very interesting and very useful.&lt;/p&gt;
&lt;p&gt;Some explanation:&lt;/p&gt;
&lt;p&gt;!# – means the current command (similar to !! being the last command)&lt;/p&gt;
&lt;p&gt;$ – represents the last parameter&lt;/p&gt;
&lt;p&gt;:s – is used for substitution.&lt;/p&gt;
&lt;h6 class=&#34;zemanta-related-title&#34; style=&#34;font-size: 1em;&#34;&gt;
  Related articles
&lt;/h6&gt;
&lt;ul class=&#34;zemanta-article-ul&#34;&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://www.makeuseof.com/tag/commandlinefu-amazing-collection-command-line-gems-linux-mac/&#34;&gt;CommandLineFu: Amazing Collection Of Command Line Gems [Linux &amp; Mac]&lt;/a&gt; (&lt;a class=&#34;zem_slink&#34; title=&#34;MakeUseOf&#34; href=&#34;http://www.makeuseof.com/dir/&#34; rel=&#34;homepage&#34;&gt;makeuseof.com&lt;/a&gt;)
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://ftalphaville.ft.com/blog/2011/10/28/715136/oh-the-iron-y/&#34;&gt;Oh, the Iron-y&lt;/a&gt; (ftalphaville.ft.com)
  &lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&#34;zemanta-pixie&#34; style=&#34;margin-top: 10px; height: 15px;&#34;&gt;
  &lt;a class=&#34;zemanta-pixie-a&#34; title=&#34;Enhanced by Zemanta&#34; href=&#34;http://www.zemanta.com/&#34;&gt;&lt;img class=&#34;zemanta-pixie-img&#34; style=&#34;float: right;&#34; src=&#34;https://i1.wp.com/img.zemanta.com/zemified_e.png?w=688&#34; alt=&#34;Enhanced by Zemanta&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Some pictures from Burj Khalifa</title>
      <link>/2011/08/01/pictures-burj-khalifa/</link>
      <pubDate>Mon, 01 Aug 2011 03:49:37 +0000</pubDate>
      
      <guid>/2011/08/01/pictures-burj-khalifa/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;&lt;a href=&#34;https://i0.wp.com/blog.amit-agarwal.co.in/wp-content/gallery/Dubai/DSC_3593.JPG&#34;&gt;&lt;img class=&#34;ngg-singlepic ngg-none&#34; src=&#34;https://i2.wp.com/blog.amit-agarwal.co.in/wp-content/gallery/Dubai/thumbs/thumbs_DSC_3593.JPG?w=688&#34; alt=&#34;DSC_3593&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;{.shutterset_}&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;[php]&lt;br&gt;
$file = ‘/var/chroot/home/content/02/6377202/html/wp/wp-content/uploads/copper_albums/Parks_Dubai/orig_DSC_5287.jpg’;&lt;br&gt;
$exif = exif_read_data(“$file”, 0, true);&lt;br&gt;
$key=”&lt;a class=&#34;zem_slink&#34; title=&#34;Exchangeable image file format&#34; href=&#34;http://en.wikipedia.org/wiki/Exchangeable_image_file_format&#34; rel=&#34;wikipedia&#34;&gt;EXIF&lt;/a&gt;“;&lt;br&gt;
$exif = exif_read_data(“$file”, “$key”);&lt;br&gt;
echo “[table border=&amp;amp;#8221;1&amp;amp;#8221;]”;&lt;br&gt;
//&lt;a class=&#34;zem_slink&#34; title=&#34;Foreach&#34; href=&#34;http://en.wikipedia.org/wiki/Foreach&#34; rel=&#34;wikipedia&#34;&gt;foreach&lt;/a&gt; ($exif as $key =&amp;gt; $section) {&lt;br&gt;
//similar_text($section, ‘EXIF’, $p);&lt;br&gt;
//if ( $p == 0 )&lt;br&gt;
//{&lt;br&gt;
foreach ($exif as $name =&amp;gt; $val) {&lt;br&gt;
echo “[tr]”;&lt;br&gt;
echo “&lt;td&gt;$key.$name &lt;/td&gt;”;&lt;br&gt;
echo “&lt;td&gt;$val &lt;/td&gt;”;&lt;br&gt;
echo “[/tr]”;&lt;br&gt;
}&lt;br&gt;
//}&lt;br&gt;
//}&lt;br&gt;
echo “[/table]”;&lt;br&gt;
[/php]&lt;/p&gt;
&lt;h6 class=&#34;zemanta-related-title&#34; style=&#34;font-size: 1em;&#34;&gt;
  Related articles
&lt;/h6&gt;
&lt;ul class=&#34;zemanta-article-ul&#34;&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://hazimiai.wordpress.com/2011/06/02/burj-khalifa-tower/&#34;&gt;Burj Khalifa tower&lt;/a&gt; (hazimiai.wordpress.com)
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://themactrack.com/2011/07/27/a-better-finder-attributes-5-05-features-new-exif-engine/&#34;&gt;A Better Finder Attributes 5.05 features new EXIF Engine&lt;/a&gt; (themactrack.com)
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://themactrack.com/2011/07/19/iexifer-1-3-for-mac-update-takes-exif-viewers-to-a-whole-new-level/&#34;&gt;iExifer 1.3 for Mac &amp;#8211; Update takes EXIF viewers to a whole new level&lt;/a&gt; (themactrack.com)
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://beast4romtheeast.wordpress.com/2011/07/14/learn-more-about-photos-from-other-good-photos-exif-data/&#34;&gt;Learn more about Photos from other good Photos EXIF Data&lt;/a&gt; (beast4romtheeast.wordpress.com)
  &lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&#34;zemanta-pixie&#34; style=&#34;margin-top: 10px; height: 15px;&#34;&gt;
  &lt;a class=&#34;zemanta-pixie-a&#34; title=&#34;Enhanced by Zemanta&#34; href=&#34;http://www.zemanta.com/&#34;&gt;&lt;img class=&#34;zemanta-pixie-img&#34; style=&#34;float: right;&#34; src=&#34;https://i1.wp.com/img.zemanta.com/zemified_e.png?w=688&#34; alt=&#34;Enhanced by Zemanta&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Deleting all mails in the N900 (Maemo 5) permanently</title>
      <link>/2011/06/14/deleting-mails-n900-maemo-5-permanently/</link>
      <pubDate>Tue, 14 Jun 2011 12:40:26 +0000</pubDate>
      
      <guid>/2011/06/14/deleting-mails-n900-maemo-5-permanently/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;Well couple of days back, I checked the folder details of one of my accounts configured on the N900 (&lt;a class=&#34;zem_slink&#34; title=&#34;Maemo&#34; rel=&#34;homepage&#34; href=&#34;http://www.maemo.org/&#34;&gt;Maemo 5&lt;/a&gt;) and it was showing some 1000 or more emails, whereas I had only 4-5 emails in the Inbox so where are the other emails and how to I get rid of them. This was causing the mail application to become a little slower than usual so do I live with it, I decided not to do so and thus found out how to delete all the mails.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>A Five-Way Linux Distribution Comparison In 2010</title>
      <link>/2010/07/14/a-five-way-linux-distribution-comparison-in-2010/</link>
      <pubDate>Wed, 14 Jul 2010 01:06:30 +0000</pubDate>
      
      <guid>/2010/07/14/a-five-way-linux-distribution-comparison-in-2010/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;&lt;div class=\&#34;zemanta-img\&#34;&gt; 
&lt;div&gt;
  &lt;dl class=\&#34;wp-caption alignright\&#34;&gt; &lt;dt class=\&#34;wp-caption-dt\&#34;&gt;&lt;a href=\&#34;http://commons.wikipedia.org/wiki/File:Tux.png\&#34;&gt;&lt;img title=\&#34;Tux, as originally drawn by Larry Ewing\&#34; src=\&#34;http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/Tux.png\&#34; alt=\&#34;Tux, as originally drawn by Larry Ewing\&#34; /&gt;&lt;/a&gt;&lt;/dt&gt; &lt;dd class=\&#34;wp-caption-dd zemanta-img-attribution\&#34;&gt;Image via &lt;a href=\&#34;http://commons.wikipedia.org/wiki/File:Tux.png\&#34;&gt;Wikipedia&lt;/a&gt;&lt;/dd&gt; &lt;/dl&gt;
&lt;/div&gt;&lt;/div&gt; 
&lt;p&gt;&amp;lt;a href=&amp;quot;http://www.phoronix.com/scan.php?page=article&amp;amp;item=linux_2010_fiveway&amp;amp;num=1&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;A five way linux comparison&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;A very good comparison of the most common and famous distributions of &amp;lt;a class=&amp;quot;zem_slink freebase/guid/9202a8c04000641f8000000000dafbd5&amp;quot; title=&amp;quot;Linux&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Linux&amp;quot;&amp;gt;Linux&lt;/a&gt;. Very comprehensive and detailed. Love this guy.&amp;lt;h6 class=&amp;quot;zemanta-related-title&amp;quot;&amp;gt;Related articles by Zemanta&lt;/h6&gt; &amp;lt;ul class=&amp;quot;zemanta-article-ul&amp;quot;&amp;gt; &amp;lt;li class=&amp;quot;zemanta-article-ul-li&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://lifehacker.com/5585048/spotify-streaming-music-player-comes-to-linux&amp;quot;&amp;gt;Spotify Streaming Music Player Comes to Linux [Downloads]&lt;/a&gt; (lifehacker.com)&lt;/li&gt; &amp;lt;li class=&amp;quot;zemanta-article-ul-li&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://sathyasays.com/2010/07/13/spotify-for-linux/&amp;quot;&amp;gt;Spotify for Linux&lt;/a&gt; (sathyasays.com)&lt;/li&gt; &lt;/ul&gt; &amp;lt;div class=&amp;quot;zemanta-pixie&amp;quot;&amp;gt;&amp;lt;a class=&amp;quot;zemanta-pixie-a&amp;quot; title=&amp;quot;Enhanced by Zemanta&amp;quot; href=&amp;quot;http://www.zemanta.com/&amp;quot;&amp;gt;&amp;lt;img class=&amp;quot;zemanta-pixie-img&amp;quot; src=&amp;quot;http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/zemified_c16.gif&amp;quot; alt=&amp;quot;Enhanced by Zemanta&amp;quot; /&amp;gt;&lt;/a&gt;&amp;lt;span class=&amp;quot;zem-script more-related more-info pretty-attribution paragraph-reblog&amp;quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
