<?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>Mon, 25 Jul 2011 10:52:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</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>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>
		<item>
		<title>Google Website Optimiser and the bugged Techie Guide</title>
		<link>http://feedproxy.google.com/~r/antoniolorusso/~3/3L7yppVjldA/</link>
		<comments>http://antoniolorusso.com/2010/03/31/google-website-optimiser-and-the-bugged-techie-guide/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 09:00:21 +0000</pubDate>
		<dc:creator>antonio lorusso</dc:creator>
				<category><![CDATA[Altro]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[content-variation]]></category>
		<category><![CDATA[content_variation]]></category>
		<category><![CDATA[GWO]]></category>
		<category><![CDATA[techie guide]]></category>
		<category><![CDATA[Web Optimiser]]></category>

		<guid isPermaLink="false">http://antoniolorusso.com/2010/03/31/google-website-optimiser-and-the-bugged-techie-guide/</guid>
		<description><![CDATA[I spent hours yesterday to implement the GWO that, instead, should take literally minutes!You want to know why? The bugged Techie Guide!!! On page 19, the script is completely wrong and drove me mad: variation-content should be variation_content and document.write(“&#60;/nosc” + “ript&#62;”) should be document.write(“&#60;nosc” + “ript&#62;”); So, here is he complete correct script:&#60;script&#62;var v [...]]]></description>
			<content:encoded><![CDATA[<p>I spent hours yesterday to implement the GWO that, instead, should take literally minutes!<br />You want to know why? The bugged <a target="_blank" href="http://www.google.com/en//websiteoptimizer/techieguide.pdf">Techie Guide</a>!!!</p>
<p>On page 19, the script is completely wrong and drove me mad: variation-content should be <b>variation_content</b> and document.write(“&lt;/nosc” + “ript&gt;”) should be <b>document.write(“&lt;nosc” + “ript&gt;”)</b>;</p>
<p>So, here is he complete correct script:<br /><code>&lt;script&gt;<br />var v = utmx(‘variation_content’, ‘Section1’);<br />if (v) {<br />document.write(<br />v.replace(“%%product_name%%”, “&lt;? print $product_name ?&gt;”).<br />replace(“%%product_price%%”, “&lt;? print $product_price ?&gt;”).<br />replace(“%%product_id%%”, “&lt;? print $product_id ?&gt;”));<br />document.write(“&lt;nosc” + “ript&gt;”);<br />}<br />&lt;/script&gt;<br />&lt;ul&gt;<br />&lt;li&gt;Product name: &lt;? print $product_name ?&gt;<br />&lt;li&gt;Product price: &lt;? print $product_price ?&gt;<br />&lt;li&gt;&lt;a href=’buy.php?prod-id=&lt;? print $product_id ?&gt;’&gt;<br />Buy Now&lt;/a&gt;<br />&lt;/ul&gt;<br />&lt;/noscript&gt;<br /></code><br />Adapt it to your code and be happy!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/antoniolorusso?a=3L7yppVjldA:KF0EVcRuorc: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/3L7yppVjldA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://antoniolorusso.com/2010/03/31/google-website-optimiser-and-the-bugged-techie-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://antoniolorusso.com/2010/03/31/google-website-optimiser-and-the-bugged-techie-guide/</feedburner:origLink></item>
		<item>
		<title>Nginx and $_SERVER['HTTPS']</title>
		<link>http://feedproxy.google.com/~r/antoniolorusso/~3/eRKC7EWjirA/</link>
		<comments>http://antoniolorusso.com/2010/03/22/nginx-and-_serverhttps/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 17:50:06 +0000</pubDate>
		<dc:creator>antonio lorusso</dc:creator>
				<category><![CDATA[nginx]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://antoniolorusso.com/2010/03/22/nginx-and-_serverhttps/</guid>
		<description><![CDATA[When you are using the FastCGI Php version, you would set HTTPS variable if you are serving parts of you website with SSL. To do that, add the following function into the http section of your nginx configuration map $scheme $fastcgi_https { ## Detect when HTTPS is used default off; https on; } and use [...]]]></description>
			<content:encoded><![CDATA[<p>When you are using the FastCGI Php version, you would set HTTPS variable if you are serving parts of you website with SSL.<br />
To do that, add the following function into the http section of your nginx configuration<br />
<code>map $scheme $fastcgi_https { ## Detect when HTTPS is used<br />
default off;<br />
https on;<br />
}<br />
</code><br />
and use the variable into your server section<br />
<code>fastcgi_param  HTTPS $fastcgi_https;</code></p>
<p>Lazy explanation as usual <img src='http://antoniolorusso.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=b551158c-e2e9-8fde-ae41-d8c9797abc56" alt="" /></div>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/antoniolorusso?a=eRKC7EWjirA:WuYaBxVGDtI: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/eRKC7EWjirA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://antoniolorusso.com/2010/03/22/nginx-and-_serverhttps/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://antoniolorusso.com/2010/03/22/nginx-and-_serverhttps/</feedburner:origLink></item>
		<item>
		<title>svn: Inconsistent line ending style</title>
		<link>http://feedproxy.google.com/~r/antoniolorusso/~3/ly-itTFv16g/</link>
		<comments>http://antoniolorusso.com/2010/03/19/svn-inconsistent-line-ending-style/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 10:38:30 +0000</pubDate>
		<dc:creator>antonio lorusso</dc:creator>
				<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://antoniolorusso.com/2010/03/19/svn-inconsistent-line-ending-style/</guid>
		<description><![CDATA[I hate svn! It&#8217;s official! if you have this stupid error, what you have to do is run dos2unix on the file specified by the error. Don&#8217;t forget the -a option! shell$ dos2unix -a /the/affected/file.php]]></description>
			<content:encoded><![CDATA[<p>I hate svn! It&#8217;s official!<br />
if you have this stupid error, what you have to do is run dos2unix on the file specified by the error. Don&#8217;t forget the -a option!<br />
<code>shell$ dos2unix -a /the/affected/file.php </code></p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=17e62287-9b5f-808e-aa5e-5f8b6e6450ee" /></div>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/antoniolorusso?a=ly-itTFv16g:dHGY86jt8S4: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/ly-itTFv16g" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://antoniolorusso.com/2010/03/19/svn-inconsistent-line-ending-style/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://antoniolorusso.com/2010/03/19/svn-inconsistent-line-ending-style/</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! -->

