<?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>antoniolorusso.com &#187; mac</title>
	<atom:link href="http://antoniolorusso.com/category/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://antoniolorusso.com</link>
	<description>About me and what I do :)</description>
	<lastBuildDate>Mon, 21 Jun 2010 22:17:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Macports, Snow Leopard and XCode 3.2</title>
		<link>http://antoniolorusso.com/2009/10/18/macports-snow-leopard-and-xcode-3-2/</link>
		<comments>http://antoniolorusso.com/2009/10/18/macports-snow-leopard-and-xcode-3-2/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 00:09:47 +0000</pubDate>
		<dc:creator>antonio lorusso</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://antoniolorusso.com/?p=255</guid>
		<description><![CDATA[When I upgraded my macbook to Snow Leopard, macports just worked as it was before, or so I thought, until yesterday when I tried to install ImageMagick and rmagick ruby gem and I got this error: gem install rmagick ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. /opt/local/bin/ruby extconf.rb checking for Ruby [...]]]></description>
			<content:encoded><![CDATA[<p>When I upgraded my macbook to Snow Leopard, macports just worked as it was before, or so I thought, until yesterday when I tried to install ImageMagick and rmagick ruby gem and I got this error:<br />
<code>gem install rmagick<br />
ERROR:  Error installing rmagick:<br />
ERROR: Failed to build gem native extension.<br />
/opt/local/bin/ruby extconf.rb<br />
checking for Ruby version &gt;= 1.8.5... yes<br />
checking for gcc... yes<br />
checking for Magick-config... yes<br />
checking for ImageMagick version &gt;= 6.3.5... yes<br />
checking for HDRI disabled version of ImageMagick... yes<br />
checking for stdint.h... no<br />
checking for sys/types.h... no<br />
checking for wand/MagickWand.h... no<br />
Can't install RMagick 2.11.1. Can't find MagickWand.h.<br />
*** extconf.rb failed ***<br />
Could not create Makefile due to some reason, probably lack of<br />
necessary libraries and/or headers.  Check the mkmf.log file for more<br />
details.  You may need configuration options.<br />
Provided configuration options:<br />
--with-opt-dir<br />
--without-opt-dir<br />
--with-opt-include<br />
--without-opt-include=${opt-dir}/include<br />
--with-opt-lib<br />
--without-opt-lib=${opt-dir}/lib<br />
--with-make-prog<br />
--without-make-prog<br />
--srcdir=.<br />
--curdir<br />
--ruby=/opt/local/bin/ruby<br />
</code><br />
After having lost the best of my youth trying to fix this issue, I can&#8217;t remember exactly how I did it, but I came up with this idea of reinstalling ruby and&#8230; guess what? It did work!<br />
So the lesson here is &#8230; whenever you upgrade to a major release of XCode, you have to reinstall all your macports. These commands can save your day or two:<br />
<code>$ sudo port selfupdate<br />
$ sudo port sync<br />
$ sudo port upgrade --force installed<br />
</code><br />
 <img src='http://antoniolorusso.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://antoniolorusso.com/2009/10/18/macports-snow-leopard-and-xcode-3-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>grep excluding .svn dirs</title>
		<link>http://antoniolorusso.com/2008/05/12/grep-excluding-svn-dirs/</link>
		<comments>http://antoniolorusso.com/2008/05/12/grep-excluding-svn-dirs/#comments</comments>
		<pubDate>Mon, 12 May 2008 11:33:16 +0000</pubDate>
		<dc:creator>antonio lorusso</dc:creator>
				<category><![CDATA[Altro]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://antoniolorusso.com/?p=101</guid>
		<description><![CDATA[Grep is a fantastic search command that let you filter results and give you what you need. It is used to search in the content of files and is very useful for programmers like us Typically, when you search in a directory recursively and you want to exclude hidden directory such as the .svn, you [...]]]></description>
			<content:encoded><![CDATA[<p>Grep is a fantastic search command that let you filter results and give you what you need. It is used to search in the content of files and is very useful for programmers like us <img src='http://antoniolorusso.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Typically, when you search in a directory recursively and you want to exclude hidden directory such as the .svn, you so this:<br />
<code>grep -ri "your password is" * | grep -v .</code><br />
this waste time cause search in all directories including the ones you want to exclude and then remove the unwanted results.<br />
This other method, is the correct and quickest one:<br />
<code>grep -r 'content_graphic' assets/js --exclude=*\.svn*</code><br />
<strong>COOOL!</strong></p>
<p>If you want to make this permanent when you use grep, just put it in your profile file: on a Mac open ~/.profile with a text editor. If you&#8217;re using Linux, edit ~/.bashrc or ~/.bash_profile or ~/.profile.</p>
<p>Add the following line to the top of the file:<br />
<code>export GREP_OPTIONS="--exclude=*\.svn*"</code><br />
save and close!</p>
<p>Happy grepping to everybody <img src='http://antoniolorusso.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://antoniolorusso.com/2008/05/12/grep-excluding-svn-dirs/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>from gedit to TextMate &#8230;</title>
		<link>http://antoniolorusso.com/2008/04/11/from-gedit-to-textmate/</link>
		<comments>http://antoniolorusso.com/2008/04/11/from-gedit-to-textmate/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 08:49:11 +0000</pubDate>
		<dc:creator>antonio lorusso</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[As I told in one of my previous post, I switched to an Apple Macbook thanks to a great offer I found on eBay but, I continue to use linux at work and in a virtual machine on the macbook too. One thing I really miss when I&#8217;m on linux is definitively TextMate! Thanks to this blogger I&#8217;ve found a great compromise with [...]]]></description>
			<content:encoded><![CDATA[<p>As I told in one of my previous post, I switched to an Apple Macbook thanks to a great offer I found on eBay but, I continue to use linux at work and in a virtual machine on the macbook too. One thing I really miss when I&#8217;m on linux is definitively TextMate! Thanks to <a HREF="http://grigio.org/textmate_gedit_few_steps">this blogger</a> I&#8217;ve found a great compromise with gedit that I want to share: thanks GRIGIO!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://antoniolorusso.com/2008/04/11/from-gedit-to-textmate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>getting crazy with mysql and MacPort</title>
		<link>http://antoniolorusso.com/2008/02/13/getting-crazy-with-mysql-and-macport/</link>
		<comments>http://antoniolorusso.com/2008/02/13/getting-crazy-with-mysql-and-macport/#comments</comments>
		<pubDate>Wed, 13 Feb 2008 19:48:37 +0000</pubDate>
		<dc:creator>antonio lorusso</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://antoniolorusso.com/2008/02/13/getting-crazy-with-mysql-and-macport/</guid>
		<description><![CDATA[Have you ever had an error like this??? macbook-di-antonio-lorusso:var zekus$ sudo /opt/local/share/mysql5/mysql/mysql.server start Starting MySQL .../opt/local/share/mysql5/mysql/mysql.server: line 159: kill: (22793) - No such process ERROR! Please check permissions because you have a problem with that! Check that the owner of /opt/local/var/db and /opt/local/var/run/mysql5 is _mysql group admin.]]></description>
			<content:encoded><![CDATA[<p>Have you ever had an error like this???<br />
<code>macbook-di-antonio-lorusso:var zekus$ sudo /opt/local/share/mysql5/mysql/mysql.server start<br />
Starting MySQL<br />
.../opt/local/share/mysql5/mysql/mysql.server: line 159: kill: (22793) - No such process<br />
ERROR!</code><br />
Please check permissions because you have a problem with that!<br />
Check that the owner of <strong>/opt/local/var/db</strong>  and  <strong>/opt/local/var/run/mysql5</strong> is  <strong>_mysql</strong> group <strong>admin</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://antoniolorusso.com/2008/02/13/getting-crazy-with-mysql-and-macport/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remainder from a Web Developer switched from Linux to Mac</title>
		<link>http://antoniolorusso.com/2007/07/12/remainder-from-a-web-developer-switched-from-linux-to-mac/</link>
		<comments>http://antoniolorusso.com/2007/07/12/remainder-from-a-web-developer-switched-from-linux-to-mac/#comments</comments>
		<pubDate>Thu, 12 Jul 2007 15:34:16 +0000</pubDate>
		<dc:creator>antonio lorusso</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[backtick]]></category>
		<category><![CDATA[hash]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[keys]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[squiggle]]></category>
		<category><![CDATA[tilde]]></category>
		<category><![CDATA[twiddle]]></category>

		<guid isPermaLink="false">http://antoniolorusso.com/2007/07/12/remainder-from-a-web-developer-switched-from-linux-to-mac/</guid>
		<description><![CDATA[I just switched to Mac and I miss so much Linux and my fav distro Ubuntu I was obliged to do so cause I had a great offer on a &#8220;like-new&#8221; macbook and my 1-year-old laptop with linux inside had to go to assistance ( bad Asus ). After some time playin with fink to [...]]]></description>
			<content:encoded><![CDATA[<p>I just switched to Mac and I miss so much Linux and my fav distro Ubuntu <img src='http://antoniolorusso.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
I was obliged to do so cause I had a great offer on a &#8220;like-new&#8221; macbook and my 1-year-old laptop with linux inside had to go to assistance ( bad Asus ).</p>
<p>After some time playin with <a href="http://finkproject.org">fink</a> to set up a <a href="http://en.wikipedia.org/wiki/LAMP_%28software_bundle%29">LAMP</a> or, better MAMP environment and <span style="font-weight: bold;">rsync</span> to move all my files on this new laptop, finally I started again with my work and one of the first things I missed on the keyboard ( mine is an italian one ) was:</p>
<blockquote><p><span style="font-weight: bold;">`</span> a.k.a. <span style="font-weight: bold;">backtick</span> a.k.a <span style="font-weight: bold;">apice inverso</span> ( in italian <img src='http://antoniolorusso.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  ) -&gt; <span style="font-style: italic;">alt+9</span><br />
<span style="font-weight: bold;">~</span> a.k.a. <span style="font-weight: bold;">tilde</span> or <span style="font-weight: bold;">twiddle</span> or <span style="font-weight: bold;">squiggle</span> -&gt; <span style="font-style: italic;">alt+5<br />
</span><span style="font-weight: bold;"># </span>a.k.a.  <strong>hash</strong> a.k.a <strong>cancelletto</strong> -&gt; <span style="font-style: italic;">alt+3</span></p></blockquote>
<p>It is not difficult to fnd this information on google but I decided to write it here like a reminder for myself <img src='http://antoniolorusso.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Anyway, my mac adventure is started even if I&#8217;ll never abandone linux that run in a Virtual Machine ( <a href="http://www.vmware.com/mac">VMWare Fusion</a> ) for now&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://antoniolorusso.com/2007/07/12/remainder-from-a-web-developer-switched-from-linux-to-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
