<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>antoniolorusso.com</title>
	
	<link>http://antoniolorusso.com</link>
	<description>About me and what I do :)</description>
	<lastBuildDate>Wed, 02 May 2012 21:37:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/antoniolorusso" /><feedburner:info uri="antoniolorusso" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>send headers with Selenium and PHPUnit?</title>
		<link>http://feedproxy.google.com/~r/antoniolorusso/~3/2cGLe2VYMWY/</link>
		<comments>http://antoniolorusso.com/2012/05/02/send-headers-with-selenium-and-phpunit/#comments</comments>
		<pubDate>Wed, 02 May 2012 21:37:09 +0000</pubDate>
		<dc:creator>antonio lorusso</dc:creator>
				<category><![CDATA[Altro]]></category>

		<guid isPermaLink="false">http://antoniolorusso.com/?p=414</guid>
		<description><![CDATA[Just dont waste your life and use curl if you need to do that. I know, this is a useless post but I just wasted a huge amount of time trying to find a solution and I feel like giving this advice to someone. happy testing]]></description>
			<content:encoded><![CDATA[<p>Just dont waste your life and use curl if you need to do that.</p>
<p>I know, this is a useless post but I just wasted a huge amount of time trying to find a solution and I feel like giving this advice to someone.</p>
<p>happy testing <img src='http://antoniolorusso.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/antoniolorusso?a=2cGLe2VYMWY:NRU-N3G745k:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/antoniolorusso?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/antoniolorusso/~4/2cGLe2VYMWY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://antoniolorusso.com/2012/05/02/send-headers-with-selenium-and-phpunit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://antoniolorusso.com/2012/05/02/send-headers-with-selenium-and-phpunit/</feedburner:origLink></item>
		<item>
		<title>perl: warning: Setting locale failed.</title>
		<link>http://feedproxy.google.com/~r/antoniolorusso/~3/9xW_9RhV1O4/</link>
		<comments>http://antoniolorusso.com/2012/04/01/409/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 13:58:51 +0000</pubDate>
		<dc:creator>antonio lorusso</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[locale]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://antoniolorusso.com/?p=409</guid>
		<description><![CDATA[Tired of this: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en", LC_ALL = (unset), LC_CTYPE = "en_GB.UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or [...]]]></description>
			<content:encoded><![CDATA[<p>Tired of this:<br />
<code><br />
perl: warning: Setting locale failed.<br />
perl: warning: Please check that your locale settings:<br />
LANGUAGE = "en_US:en",<br />
LC_ALL = (unset),<br />
LC_CTYPE = "en_GB.UTF-8",<br />
LANG = "en_US.UTF-8"<br />
are supported and installed on your system.<br />
perl: warning: Falling back to the standard locale ("C").<br />
locale: Cannot set LC_CTYPE to default locale: No such file or directory<br />
locale: Cannot set LC_ALL to default locale: No such file or directory<br />
</code><br />
Do this:<br />
<code><br />
export LANGUAGE=en_US.UTF-8<br />
export LANG=en_US.UTF-8<br />
export LC_ALL=en_US.UTF-8<br />
sudo locale-gen en_US.UTF-8<br />
sudo dpkg-reconfigure locales<br />
</code></p>
<p>Be happy again <img src='http://antoniolorusso.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/antoniolorusso?a=9xW_9RhV1O4:5rJhH8o6jms:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/antoniolorusso?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/antoniolorusso/~4/9xW_9RhV1O4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://antoniolorusso.com/2012/04/01/409/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://antoniolorusso.com/2012/04/01/409/</feedburner:origLink></item>
		<item>
		<title>Ruby 1.9.3-p125 and RVM on Mac</title>
		<link>http://feedproxy.google.com/~r/antoniolorusso/~3/dP0V3aSRjhM/</link>
		<comments>http://antoniolorusso.com/2012/02/18/ruby-1-9-3-p125-and-rvm-on-mac/#comments</comments>
		<pubDate>Sat, 18 Feb 2012 15:32:41 +0000</pubDate>
		<dc:creator>antonio lorusso</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://antoniolorusso.com/?p=404</guid>
		<description><![CDATA[A new ruby version is out and it&#8217;s time to upgrade! The first try gave me this error: ? ~ rvm install 1.9.3-p125 Error running ' ./configure --prefix=/Users/antonio/.rvm/rubies/ruby-1.9.3-p125 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/antonio/.rvm/usr ', please read /Users/antonio/.rvm/log/ruby-1.9.3-p125/configure.log There has been an error while running configure. Halting the installation. Adding the compiler option &#8220;&#8211;with-gcc=clang&#8221; worked: ? ~ rvm [...]]]></description>
			<content:encoded><![CDATA[<p>A <a href="http://www.ruby-lang.org/en/news/2012/02/16/ruby-1-9-3-p125-is-released/">new ruby version</a> is out and it&#8217;s time to upgrade! The first try gave me this error:</p>
<p><code><br />
?  ~  rvm install 1.9.3-p125<br />
Error running ' ./configure --prefix=/Users/antonio/.rvm/rubies/ruby-1.9.3-p125 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/antonio/.rvm/usr ', please read /Users/antonio/.rvm/log/ruby-1.9.3-p125/configure.log<br />
There has been an error while running configure. Halting the installation.<br />
</code></p>
<p>Adding the compiler option &#8220;&#8211;with-gcc=clang&#8221; worked:</p>
<p><code><br />
?  ~  rvm install 1.9.3-p125 --with-gcc=clang<br />
Install of ruby-1.9.3-p125 - #complete<br />
</code></p>
<p>enjoy Ruby <img src='http://antoniolorusso.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/antoniolorusso?a=dP0V3aSRjhM:KBaU3kGL_tg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/antoniolorusso?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/antoniolorusso/~4/dP0V3aSRjhM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://antoniolorusso.com/2012/02/18/ruby-1-9-3-p125-and-rvm-on-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://antoniolorusso.com/2012/02/18/ruby-1-9-3-p125-and-rvm-on-mac/</feedburner:origLink></item>
		<item>
		<title>Nokogiri, RVM, Homebrew and headhache!!!</title>
		<link>http://feedproxy.google.com/~r/antoniolorusso/~3/3Zk1yR77hdo/</link>
		<comments>http://antoniolorusso.com/2011/06/11/nokogiri-rvm-homebrew-and-headhache/#comments</comments>
		<pubDate>Sat, 11 Jun 2011 13:32:48 +0000</pubDate>
		<dc:creator>antonio lorusso</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://antoniolorusso.com/?p=391</guid>
		<description><![CDATA[Thanks to a gist (which I forked and slightly changed) I was able to finally install Nokogiri on my mac: If you had MacPorts previously installed, it might still not work so sudo mv /opt/local /opt/local_old and try again. Enjoy &#160; &#160;]]></description>
			<content:encoded><![CDATA[<p>Thanks to a gist (which I forked and slightly changed) I was able to finally install Nokogiri on my mac:</p>
<div id="gist-1020543" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'><span class="nb">export </span><span class="nv">BREW_HOME</span><span class="o">=</span>/usr/local</div><div class='line' id='LC2'><br/></div><div class='line' id='LC3'>brew install libxml2</div><div class='line' id='LC4'>brew link libxml2</div><div class='line' id='LC5'>brew install https://github.com/adamv/homebrew-alt/raw/master/duplicates/libxslt.rb</div><div class='line' id='LC6'>brew link libxslt</div><div class='line' id='LC7'>brew install libiconv</div><div class='line' id='LC8'>brew link libiconv</div><div class='line' id='LC9'>gem install nokogiri -- --with-xml2-dir<span class="o">=</span><span class="nv">$BREW_HOME</span>/Cellar/libxml2/2.7.8 --with-xslt-dir<span class="o">=</span><span class="nv">$BREW_HOME</span>/Cellar/libxslt/1.1.26 --with-iconv-dir<span class="o">=</span><span class="nv">$BREW_HOME</span>/Cellar/libiconv/1.13.1/</div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1020543/b4097ee332ff6d70fe232add8814a6e5f67e67c5/gistfile1.bash" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1020543#file_gistfile1.bash" style="float:right;margin-right:10px;color:#666">gistfile1.bash</a>
            <a href="https://gist.github.com/1020543">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>

<p>If you had MacPorts previously installed, it might still not work so<br />
<code>sudo mv /opt/local /opt/local_old</code><br />
and try again.</p>
<p>Enjoy <img src='http://antoniolorusso.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/antoniolorusso?a=3Zk1yR77hdo:1-9dyy4ZpO8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/antoniolorusso?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/antoniolorusso/~4/3Zk1yR77hdo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://antoniolorusso.com/2011/06/11/nokogiri-rvm-homebrew-and-headhache/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://antoniolorusso.com/2011/06/11/nokogiri-rvm-homebrew-and-headhache/</feedburner:origLink></item>
		<item>
		<title>OpenVPN at startup in OSX</title>
		<link>http://feedproxy.google.com/~r/antoniolorusso/~3/5ZEZBfMXT8I/</link>
		<comments>http://antoniolorusso.com/2011/05/09/openvpn-at-startup-in-osx/#comments</comments>
		<pubDate>Sun, 08 May 2011 23:11:25 +0000</pubDate>
		<dc:creator>antonio lorusso</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[tunnelblick]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://antoniolorusso.com/?p=386</guid>
		<description><![CDATA[The easiest way of getting an OpenVPN client on mac is with Tunnelblick but you will join the VPN only when you have logged in. Sometimes you need your mac to connect at startup instead and I&#8217;ll show you how to do it: create /etc/rc.local and copy/paste the following three lines in it: #!/bin/bash /sbin/kextload /Applications/Tunnelblick.app/Contents/Resources/tap.kext /sbin/kextload [...]]]></description>
			<content:encoded><![CDATA[<p>The easiest way of getting an OpenVPN client on mac is with <a href="http://code.google.com/p/tunnelblick/wiki/DownloadsEntry?tm=2" target="_blank">Tunnelblick</a> but you will join the VPN only when you have logged in. Sometimes you need your mac to connect at startup instead and I&#8217;ll show you how to do it:</p>
<p>create /etc/rc.local and copy/paste the following three lines in it:</p>
<p><code>#!/bin/bash<br />
/sbin/kextload /Applications/Tunnelblick.app/Contents/Resources/tap.kext<br />
/sbin/kextload /Applications/Tunnelblick.app/Contents/Resources/tun.kext</code></p>
<p>then create a Launch script like this for each of the vpn you want to connect to, replacing <em>YOURVPNNAME</em>, <em>YOURCONFIGFILE</em>, <em>YOUR/CONFIG/FOLDER</em> accordingly:</p>
<p><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />
&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;<br />
&lt;plist version="1.0"&gt;<br />
&lt;dict&gt;<br />
&lt;key&gt;Label&lt;/key&gt;<br />
&lt;string&gt;org.openvpn.YOURVPNNAME&lt;/string&gt;<br />
&lt;key&gt;OnDemand&lt;/key&gt;<br />
&lt;false/&gt;<br />
&lt;key&gt;Program&lt;/key&gt;<br />
&lt;string&gt;/Applications/Tunnelblick.app/Contents/Resources/openvpn&lt;/string&gt;<br />
&lt;key&gt;ProgramArguments&lt;/key&gt;<br />
&lt;array&gt;<br />
&lt;string&gt;openvpn&lt;/string&gt;<br />
&lt;string&gt;--config&lt;/string&gt;<br />
&lt;string&gt;YOURCONFIGFILE.conf&lt;/string&gt;<br />
&lt;/array&gt;<br />
&lt;key&gt;RunAtLoad&lt;/key&gt;<br />
&lt;true/&gt;<br />
&lt;key&gt;TimeOut&lt;/key&gt;<br />
&lt;integer&gt;90&lt;/integer&gt;<br />
&lt;key&gt;WorkingDirectory&lt;/key&gt;<br />
&lt;string&gt;YOUR/CONFIG/FOLDER&lt;/string&gt;<br />
&lt;/dict&gt;<br />
&lt;/plist&gt;</code></p>
<p>save each script into <em>/Library/LaunchDaemons/</em> folder using a name for the file like <em>org.openvpn.YOURVPNNAME.plist</em>, then change the user and group to root:wheel with the following command in a terminal window:</p>
<p><code>sudo chown root:wheel /Library/LaunchDaemon/org.openvpn.YOURVPNNAME</code></p>
<p>last commands to register and execute your Launch scripts are:</p>
<p><code>sudo launchctl load /Library/LaunchDaemon/org.openvpn.YOURVPNNAME.plist<br />
sudo launchctl start org.openvpn.YOURVPNNAME</code></p>
<p>a restart should be the very last thing to do and once your mac has started you shoud be connected to your vpn network(s)!</p>
<p>enjoy <img src='http://antoniolorusso.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>UPDATE: </strong>the new version of tunnelblick 3.2beta26 does have the the &#8220;connect when computer starts&#8221; functionality that automatically makes this post obsolete. I&#8217;ll just keep it for the records <img src='http://antoniolorusso.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/antoniolorusso?a=5ZEZBfMXT8I:vv_qZFwSwxM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/antoniolorusso?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/antoniolorusso/~4/5ZEZBfMXT8I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://antoniolorusso.com/2011/05/09/openvpn-at-startup-in-osx/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://antoniolorusso.com/2011/05/09/openvpn-at-startup-in-osx/</feedburner:origLink></item>
		<item>
		<title>Exclude files and directories from Apache Auth</title>
		<link>http://feedproxy.google.com/~r/antoniolorusso/~3/ceLjC_8Tc5c/</link>
		<comments>http://antoniolorusso.com/2011/01/04/exclude-files-and-directories-from-apache-auth/#comments</comments>
		<pubDate>Tue, 04 Jan 2011 11:35:52 +0000</pubDate>
		<dc:creator>antonio lorusso</dc:creator>
				<category><![CDATA[Altro]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[location]]></category>
		<category><![CDATA[locationmatch]]></category>
		<category><![CDATA[setenvif]]></category>

		<guid isPermaLink="false">http://antoniolorusso.com/2011/01/04/exclude-files-and-directories-from-apache-auth/</guid>
		<description><![CDATA[It would have made sense to use LocationMatch with a negative lookahead regex pattern like &#8220;^/(?!admin)&#8221; but that doesnt work. Neither work a rule like !&#8221;^/admin&#8221; so here is a workaround: &#60;Location "/"&#62;AuthType BasicAuthName "Restricted Files"AuthUserFile /var/www/clients/client12/web17/passwdAuthGroupFile /dev/nullRequire valid-userSetEnvIf Request_URI "^/(admin&#124;skin&#124;js&#124;index)(.*)$" allowSetEnvIf Request_URI "^/favicon.ico$" allowOrder allow,denyAllow from env=allowSatisfy Any&#60;/Location&#62; This basically allow the access without [...]]]></description>
			<content:encoded><![CDATA[<p>It would have made sense to use LocationMatch with a negative lookahead regex pattern like &#8220;^/(?!admin)&#8221; but that doesnt work. Neither work a rule like !&#8221;^/admin&#8221; so here is a workaround:</p>
<p><code>&lt;Location "/"&gt;<br />AuthType Basic<br />AuthName "Restricted Files"<br />AuthUserFile /var/www/clients/client12/web17/passwd<br />AuthGroupFile /dev/null<br />Require valid-user<br />SetEnvIf Request_URI "^/(admin|skin|js|index)(.*)$" allow<br />SetEnvIf Request_URI "^/favicon.ico$" allow<br />Order allow,deny<br />Allow from env=allow<br />Satisfy Any<br />&lt;/Location&gt;</code></p>
<p>This basically allow the access without authentication to the directories/files that start with admin, skin, js or index. The other rule allow the favicon too.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/antoniolorusso?a=ceLjC_8Tc5c:cmtfBN_2-ek:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/antoniolorusso?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/antoniolorusso/~4/ceLjC_8Tc5c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://antoniolorusso.com/2011/01/04/exclude-files-and-directories-from-apache-auth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://antoniolorusso.com/2011/01/04/exclude-files-and-directories-from-apache-auth/</feedburner:origLink></item>
		<item>
		<title>VIM and the clipboard on Ubuntu</title>
		<link>http://feedproxy.google.com/~r/antoniolorusso/~3/GTSxdUfWc3k/</link>
		<comments>http://antoniolorusso.com/2010/12/07/vim-and-the-clipboard-on-ubuntu/#comments</comments>
		<pubDate>Tue, 07 Dec 2010 13:16:56 +0000</pubDate>
		<dc:creator>antonio lorusso</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://antoniolorusso.com/2010/12/07/vim-and-the-clipboard-on-ubuntu/</guid>
		<description><![CDATA[If you want to copy and paste from Vim to the clipboard, install the package vim.gtk and enjoy the command &#8220;+y !]]></description>
			<content:encoded><![CDATA[<p>If you want to copy and paste from Vim to the clipboard, install the package vim.gtk and enjoy the command &#8220;+y !</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/antoniolorusso?a=GTSxdUfWc3k:umVSj5DxTn4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/antoniolorusso?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/antoniolorusso/~4/GTSxdUfWc3k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://antoniolorusso.com/2010/12/07/vim-and-the-clipboard-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://antoniolorusso.com/2010/12/07/vim-and-the-clipboard-on-ubuntu/</feedburner:origLink></item>
		<item>
		<title>Rails and PostgreSQL</title>
		<link>http://feedproxy.google.com/~r/antoniolorusso/~3/-C6nTU821os/</link>
		<comments>http://antoniolorusso.com/2010/06/21/rails-and-postgresql/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 22:17:54 +0000</pubDate>
		<dc:creator>antonio lorusso</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[postgres]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://antoniolorusso.com/2010/06/21/rails-and-postgresql/</guid>
		<description><![CDATA[Complaining, screaming, sweating, swearing &#8230;. why it doesnt work &#8230; jeeeeeezzz/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_specification.rb:76:in `establish_connection': Please install the postgres adapter: `gem install activerecord-postgres-adapter` (no such file to load -- active_record/connection_adapters/postgres_adapter) (RuntimeError) And then a light &#8230; &#8220;I upgraded postgresql recently!&#8221; Just reinstall the postgres gem and you are done&#8230; What a night!]]></description>
			<content:encoded><![CDATA[<p>Complaining, screaming, sweating, swearing &#8230;. why it doesnt work &#8230; jeeeeeezzz<code>/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_specification.rb:76:in `establish_connection': Please install the postgres adapter: `gem install activerecord-postgres-adapter` (no such file to load -- active_record/connection_adapters/postgres_adapter) (RuntimeError)</code></p>
<p>And then a light &#8230; &#8220;I upgraded postgresql recently!&#8221;</p>
<p>Just reinstall the postgres gem and you are done&#8230;</p>
<p>What a night!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/antoniolorusso?a=-C6nTU821os:39zjRf_0nTc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/antoniolorusso?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/antoniolorusso/~4/-C6nTU821os" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://antoniolorusso.com/2010/06/21/rails-and-postgresql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://antoniolorusso.com/2010/06/21/rails-and-postgresql/</feedburner:origLink></item>
		<item>
		<title>map and grep: from Perl to PHP</title>
		<link>http://feedproxy.google.com/~r/antoniolorusso/~3/EDCk3b54fOM/</link>
		<comments>http://antoniolorusso.com/2010/05/17/map-and-grep-from-perl-to-php/#comments</comments>
		<pubDate>Mon, 17 May 2010 14:57:29 +0000</pubDate>
		<dc:creator>antonio lorusso</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[array_filter]]></category>
		<category><![CDATA[array_map]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[map]]></category>

		<guid isPermaLink="false">http://antoniolorusso.com/2010/05/17/map-and-grep-from-perl-to-php/</guid>
		<description><![CDATA[Probably many of you already know but here is the correspondent in PHP of the two fundamentals Perl functions:map =&#62; array_mapgrep =&#62; array_filterToo lazy to give you examples .. I think you can work it out yourself.]]></description>
			<content:encoded><![CDATA[<p>Probably many of you already know but here is the correspondent in PHP of the two fundamentals Perl functions:<br /><code>map =&gt; array_map<br />grep =&gt; array_filter</code><br />Too lazy to give you examples .. I think you can work it out yourself.</p>
<p> <img src='http://antoniolorusso.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/antoniolorusso?a=EDCk3b54fOM:YwGpP3VxA5c:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/antoniolorusso?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/antoniolorusso/~4/EDCk3b54fOM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://antoniolorusso.com/2010/05/17/map-and-grep-from-perl-to-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://antoniolorusso.com/2010/05/17/map-and-grep-from-perl-to-php/</feedburner:origLink></item>
		<item>
		<title>PHP-FPM on Ubuntu Lucid Lynx</title>
		<link>http://feedproxy.google.com/~r/antoniolorusso/~3/t336EAX2Rlk/</link>
		<comments>http://antoniolorusso.com/2010/05/11/php-fpm-on-ubuntu-lucid-lynx/#comments</comments>
		<pubDate>Mon, 10 May 2010 23:47:53 +0000</pubDate>
		<dc:creator>antonio lorusso</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[lucid lynx]]></category>
		<category><![CDATA[php-fpm]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://antoniolorusso.com/2010/05/11/php-fpm-on-ubuntu-lucid-lynx/</guid>
		<description><![CDATA[I have been using the dotdeb repository on karmic for a while, but today, when I installed the new Lucid Lynx, it just became a mess so I decided to keep all the original ubuntu packages (Lucid ships php 5.3.2) and find an alternative repo for php-fpm which I use on my dev machine. Here [...]]]></description>
			<content:encoded><![CDATA[<p>I have been using the dotdeb repository on karmic for a while, but today, when I installed the new Lucid Lynx, it just became a mess so I decided to keep all the original ubuntu packages (Lucid ships php 5.3.2) and find an alternative repo for php-fpm which I use on my dev machine. <br />Here it is:<a href="https://launchpad.net/%7Ebrianmercer/+archive/php/">Brian&#8217;s php5-fpm : Brian Mercer</a></p>
<p>Happy 10.04! <img src='http://antoniolorusso.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/antoniolorusso?a=t336EAX2Rlk:Flhh1r7llIg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/antoniolorusso?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/antoniolorusso/~4/t336EAX2Rlk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://antoniolorusso.com/2010/05/11/php-fpm-on-ubuntu-lucid-lynx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://antoniolorusso.com/2010/05/11/php-fpm-on-ubuntu-lucid-lynx/</feedburner:origLink></item>
	</channel>
</rss><!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->

