<?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>Temps lliure</title>
	<atom:link href="http://www.tempslliure.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tempslliure.net</link>
	<description>El que faig en el meu temps lliure, que és escàs (Pol Maresma)</description>
	<lastBuildDate>Tue, 20 Dec 2011 09:44:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Llistes ul multicolumna amb jQuery</title>
		<link>http://www.tempslliure.net/2011/12/20/llistes-ul-multicolumna-amb-jquery/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=llistes-ul-multicolumna-amb-jquery</link>
		<comments>http://www.tempslliure.net/2011/12/20/llistes-ul-multicolumna-amb-jquery/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 09:44:52 +0000</pubDate>
		<dc:creator>Pol</dc:creator>
				<category><![CDATA[Desclassificat]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.tempslliure.net/?p=431</guid>
		<description><![CDATA[Interessant plugin que trenca les llistes ul/ol en vàries columnes http://archive.plugins.jquery.com/node/4786 http://codeasily.com/jquery/multi-column-list-with-jquery]]></description>
			<content:encoded><![CDATA[<p>Interessant plugin que trenca les llistes ul/ol en vàries columnes</p>
<p><a href="http://archive.plugins.jquery.com/node/4786">http://archive.plugins.jquery.com/node/4786</a></p>
<p><a href="http://codeasily.com/jquery/multi-column-list-with-jquery">http://codeasily.com/jquery/multi-column-list-with-jquery</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tempslliure.net/2011/12/20/llistes-ul-multicolumna-amb-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Usar Jquery 1.4 / 1.5 a Drupal 6</title>
		<link>http://www.tempslliure.net/2011/11/22/usar-jquery-1-4-1-5-a-drupal-6/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=usar-jquery-1-4-1-5-a-drupal-6</link>
		<comments>http://www.tempslliure.net/2011/11/22/usar-jquery-1-4-1-5-a-drupal-6/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 11:49:11 +0000</pubDate>
		<dc:creator>Pol</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.tempslliure.net/?p=426</guid>
		<description><![CDATA[Drupal 6 ve per defecte amb JQuery 1.2, en un projecte he necessitat usar Jquery 1.4 com a mínim, i si substitueixes el fitxer hi ha coses de la interfície d&#8217;administració que deixen de funcionar. Per resoldre-ho, cal fer que &#8230; <a href="http://www.tempslliure.net/2011/11/22/usar-jquery-1-4-1-5-a-drupal-6/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Drupal 6 ve per defecte amb JQuery 1.2, en un projecte he necessitat usar Jquery 1.4 com a mínim, i si substitueixes el fitxer hi ha coses de la interfície d&#8217;administració que deixen de funcionar. Per resoldre-ho, cal fer que el sistema carregui versions diferents de Jquery segons on es trobi:</p>
<p>Modifiquem el mòdul jquery_update</p>
<pre><span style="font-size: 16px; line-height: 24px; white-space: normal; background-color: #ffffff;">
<pre><code>function jquery_update_jquery_path() {    
    $curr_uri = request_uri();
     if (strpos($curr_uri,'admin')&gt;0 || strpos($curr_uri,'edit')&gt;0 || strpos($curr_uri,'add')&gt;0){
        $jquery_file = array('none' =&gt; 'jquery.js', 'min' =&gt; 'jquery.min.js');
        return JQUERY_UPDATE_REPLACE_PATH .'/'. $jquery_file[variable_get('jquery_update_compression_type', 'min')]
;
    }
    else {
        $jquery_file = array('none' =&gt; 'jquery-1.5.2.js', 'min' =&gt; 'jquery-1.5.2.min.js');
        return JQUERY_UPDATE_REPLACE_PATH .'/'. $jquery_file[variable_get('jquery_update_compression_type', 'min')]
;
    }
}</code></pre>
<p></span></pre>
<p><a href="http://drupal.org/node/775924#comment-2987316">http://drupal.org/node/775924#comment-2987316</a></p>
<p><a href="http://stackoverflow.com/questions/5874880/drupal-6-and-jquery-1-4-1-5">http://stackoverflow.com/questions/5874880/drupal-6-and-jquery-1-4-1-5</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tempslliure.net/2011/11/22/usar-jquery-1-4-1-5-a-drupal-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Usar un theme per les views (D6 Views2)</title>
		<link>http://www.tempslliure.net/2011/11/17/usar-un-theme-per-les-views-d6-views2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=usar-un-theme-per-les-views-d6-views2</link>
		<comments>http://www.tempslliure.net/2011/11/17/usar-un-theme-per-les-views-d6-views2/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 09:41:27 +0000</pubDate>
		<dc:creator>Pol</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[cck]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[views]]></category>

		<guid isPermaLink="false">http://www.tempslliure.net/?p=423</guid>
		<description><![CDATA[Si volem ussar fitxers tpl per personalitzar les views i necessitem saber les variables de que disposem: http://views-help.doc.logrus.com/help/views/using-theme &#60;?php drupal_set_message('&#60;pre&#62;' . var_export($row, true) . '&#60;/pre&#62;'); ?&#62; Només cal posar això al tpl i ens mostrarà les variables com a missatge &#8230; <a href="http://www.tempslliure.net/2011/11/17/usar-un-theme-per-les-views-d6-views2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Si volem ussar fitxers tpl per personalitzar les views i necessitem saber les variables de que disposem:</p>
<p><a href="http://views-help.doc.logrus.com/help/views/using-theme">http://views-help.doc.logrus.com/help/views/using-theme</a></p>
<pre><code>&lt;?php drupal_set_message('&lt;pre&gt;' . var_export($row, true) . '&lt;/pre&gt;'); ?&gt;</code></pre>
<p>Només cal posar això al tpl i ens mostrarà les variables com a missatge de Drupal. Llavors per posar una d&#8217;aquestes variables al theme fem això</p>
<pre><code>&lt;?php print $fields['some_id']-&gt;content; ?&gt;</code></pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tempslliure.net/2011/11/17/usar-un-theme-per-les-views-d6-views2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Millorar rendiment d&#8217;Eclipse a OSX</title>
		<link>http://www.tempslliure.net/2011/11/10/millorar-rendiment-declipse-a-osx/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=millorar-rendiment-declipse-a-osx</link>
		<comments>http://www.tempslliure.net/2011/11/10/millorar-rendiment-declipse-a-osx/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 09:27:56 +0000</pubDate>
		<dc:creator>Pol</dc:creator>
				<category><![CDATA[Internet i noves tecnologies]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://www.tempslliure.net/?p=420</guid>
		<description><![CDATA[http://www.kineticklink.com/speeding-up-eclipse-on-os-x-leopard/ eclipse.ini ) which contols the minimum and maximum size of the heap.  If you’re using a OS X based Eclipse you’ll find this file by showing the content of Eclipse.app by right clicking (Ctrl+click) on the file and selecting &#8230; <a href="http://www.tempslliure.net/2011/11/10/millorar-rendiment-declipse-a-osx/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.kineticklink.com/speeding-up-eclipse-on-os-x-leopard/">http://www.kineticklink.com/speeding-up-eclipse-on-os-x-leopard/</a></p>
<div>
<div>eclipse.ini</div>
</div>
<p>) which contols the minimum and maximum size of the heap.  If you’re  using a OS X based Eclipse you’ll find this file by showing the content  of Eclipse.app by right clicking</p>
<div>
<div>(Ctrl+click)</div>
</div>
<p>on the file and selecting show package contents.  The file is located in</p>
<div>
<div>Contents/MacOs/</div>
</div>
<p>.</p>
<p>Look for the following lines:</p>
<blockquote>
<div>
<div>-Xms40m<br />
-Xmx256m<br />
-XX:MaxPermSize=256m</div>
</div>
</blockquote>
<div>
<div>Xms</div>
</div>
<p>and</p>
<div>
<div>Xmx</div>
</div>
<p>set the minimum and maximum heap size.</p>
<div>
<div>The XX:MaxPermSize</div>
</div>
<p>is a bit confusing, but one thing it can affect is Garbage collection.  The part of the heap that</p>
<div>
<div>MaxPermSize</div>
</div>
<p>defines is where classes and methods are kept and if it fills, it can  trigger a full garbage collection.   I found some discussion online  about what this setting means for memory usage and how different  versions of Java apply these settings diffently. Base on my cursory  exploration, you can be safe by using this formula to determine the  maximum memory Eclipse will use:</p>
<div>
<div>Xmx + XX:MaxPermSize</div>
</div>
<p>This all in mind, I set mine at:</p>
<blockquote>
<div>
<div>-Xms256m<br />
-Xmx512m<br />
-XX:MaxPermSize=256m</div>
</div>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.tempslliure.net/2011/11/10/millorar-rendiment-declipse-a-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crossbrowser javascript history.back</title>
		<link>http://www.tempslliure.net/2011/10/28/crossbrowser-javascript-history-back/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=crossbrowser-javascript-history-back</link>
		<comments>http://www.tempslliure.net/2011/10/28/crossbrowser-javascript-history-back/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 17:10:09 +0000</pubDate>
		<dc:creator>Pol</dc:creator>
				<category><![CDATA[Desclassificat]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.tempslliure.net/?p=418</guid>
		<description><![CDATA[http://just-another-coder.blogspot.com/2009/08/javascript-historygo-cross-browser-back.html &#60;a href="#" onclick="if(document.referrer) {window.open(document.referrer,'_self');} else {history.go(-1);} return false;"&#62;link&#60;/a&#62;]]></description>
			<content:encoded><![CDATA[<p>http://just-another-coder.blogspot.com/2009/08/javascript-historygo-cross-browser-back.html</p>
<pre>&lt;a href="#" onclick="if(document.referrer)  {window.open(document.referrer,'_self');} else {history.go(-1);} return  false;"&gt;link&lt;/a&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.tempslliure.net/2011/10/28/crossbrowser-javascript-history-back/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alineació vertical dins un DIV</title>
		<link>http://www.tempslliure.net/2011/10/17/alineacio-vertical-dins-un-div/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=alineacio-vertical-dins-un-div</link>
		<comments>http://www.tempslliure.net/2011/10/17/alineacio-vertical-dins-un-div/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 15:12:55 +0000</pubDate>
		<dc:creator>Pol</dc:creator>
				<category><![CDATA[Desclassificat]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.tempslliure.net/?p=415</guid>
		<description><![CDATA[http://phrogz.net/css/vertical-align/index.html &#60;div style="display:table-cell; vertical-align:middle"&#62; ... &#60;/div&#62; Method 1 The following example makes two (non-trivial) assumptions. If you can meet these assumptions, then this method is for you: You can put the content that you want to center inside a block &#8230; <a href="http://www.tempslliure.net/2011/10/17/alineacio-vertical-dins-un-div/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://phrogz.net/css/vertical-align/index.html">http://phrogz.net/css/vertical-align/index.html</a></p>
<pre><code>&lt;div style="display:table-cell; vertical-align:middle"&gt; ... &lt;/div&gt;</code></pre>
<pre><span style="font-size: x-small;"><span style="line-height: 19px;">
<h3>Method 1</h3>

The following example makes two (non-trivial) assumptions. If you can meet these assumptions, then this method is for you:
<ul>
<li>You can put the content that you want to center inside a block and specify a fixed height for that inner content block.</li>
<li>It's alright to absolutely-position this content. (Usually fine, since the parent element inside which the content is centered can still be in flow.</li>
</ul>

If you can accept the above necessities, the solution is:
<ol>
<li>Specify the parent container as <code>position:relative</code> or <code>position:absolute</code>.</li>
<li>Specify a fixed height on the child container.</li>
<li>Set <code>position:absolute</code> and <code>top:50%</code> on the child container to move the top down to the middle of the parent.</li>
<li>Set <code>margin-top:-yy</code> where <em>yy</em> is half the height of the child container to offset the item up.</li>
</ol>

An example of this in code:
<pre><code>&lt;style type="text/css"&gt;
	#myoutercontainer { position:relative }
	#myinnercontainer { position:absolute; top:50%; height:10em; margin-top:-5em }
&lt;/style&gt;
...
&lt;div id="myoutercontainer"&gt;
	&lt;div id="myinnercontainer"&gt;
		&lt;p&gt;Hey look! I'm vertically centered!&lt;/p&gt;
		&lt;p&gt;How sweet is this?!&lt;/p&gt;
	&lt;/div&gt;
&lt;/div&gt;</code></pre>
<p></span></span></pre>
<div><code><br />
</code></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tempslliure.net/2011/10/17/alineacio-vertical-dins-un-div/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mostrat títol d&#8217;un node a una view en fer mouseover a una imatge</title>
		<link>http://www.tempslliure.net/2011/10/17/mostrat-titol-dun-node-a-una-view-en-fer-mouse-over-a-una-imatge/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mostrat-titol-dun-node-a-una-view-en-fer-mouse-over-a-una-imatge</link>
		<comments>http://www.tempslliure.net/2011/10/17/mostrat-titol-dun-node-a-una-view-en-fer-mouse-over-a-una-imatge/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 08:56:52 +0000</pubDate>
		<dc:creator>Pol</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[cck]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[views]]></category>

		<guid isPermaLink="false">http://www.tempslliure.net/?p=408</guid>
		<description><![CDATA[Només cal fer un rewrite de la sortida i afegir el títol que hem carregat prèviament. http://drupal.stackexchange.com/questions/4959/how-to-show-node-title-when-mouseover-on-image-in-the-node-by-drupal-views I don&#8217;t think you can do that using views. However you can &#8220;hack&#8221; a way to add title element to a div, for &#8230; <a href="http://www.tempslliure.net/2011/10/17/mostrat-titol-dun-node-a-una-view-en-fer-mouse-over-a-una-imatge/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Només cal fer un rewrite de la sortida i afegir el títol que hem carregat prèviament.</p>
<p><a href="http://drupal.stackexchange.com/questions/4959/how-to-show-node-title-when-mouseover-on-image-in-the-node-by-drupal-views">http://drupal.stackexchange.com/questions/4959/how-to-show-node-title-when-mouseover-on-image-in-the-node-by-drupal-views</a></p>
<p>I don&#8217;t think you can do that using views. However you can &#8220;hack&#8221; a way to add title element to a div, for instance.</p>
<p>go to your view config page</p>
<p>add a node: title field.</p>
<p>edit the node: title field.</p>
<p>tick &#8220;Exclude from display&#8221; and &#8220;strip HTML tags&#8221;</p>
<p>click save</p>
<p>move the title node to top of the fields.</p>
<p>edit your image field and tick &#8220;Rewrite the output of this field&#8221;</p>
<p>a textarea appears. write this code in the textarea</p>
<pre><code>&lt;div title="[title]"&gt;[image]&lt;/span&gt;
</code></pre>
<p>Note: the [fields] are tokens. If you already have a title field, you don&#8217;t need to exlude it, you can re-use it.</p>
<p>if the image displays another title its because the module automatically sets a title tag to the image. You can either change this tag with javascript:</p>
<pre><code>document.getElementById("idElement").setAttribute("Title", "title");
</code></pre>
<p>or edit your image module and set the page title to be your title tag.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tempslliure.net/2011/10/17/mostrat-titol-dun-node-a-una-view-en-fer-mouse-over-a-una-imatge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Activar còpies de OSX Time Machine a la xarxa</title>
		<link>http://www.tempslliure.net/2011/07/20/activar-copies-de-osx-time-machine-a-la-xarxa/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=activar-copies-de-osx-time-machine-a-la-xarxa</link>
		<comments>http://www.tempslliure.net/2011/07/20/activar-copies-de-osx-time-machine-a-la-xarxa/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 18:05:31 +0000</pubDate>
		<dc:creator>Pol</dc:creator>
				<category><![CDATA[Internet i noves tecnologies]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[timemachine]]></category>

		<guid isPermaLink="false">http://www.tempslliure.net/?p=399</guid>
		<description><![CDATA[Per defecte TimeMachine només permet fer còpies a unitat de disc connectades directament. Per poder fer-les a una unitat de xarxa cal escriure això a un terminal: defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1 Font: http://www.engadget.com/2007/11/10/how-to-enable-time-machine-on-unsupported-volumes/]]></description>
			<content:encoded><![CDATA[<p>Per defecte TimeMachine només permet fer còpies a unitat de disc connectades directament. Per poder fer-les a una unitat de xarxa cal escriure això a un terminal:</p>
<pre>
<div><code>defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1</code></div>
</pre>
<p>Font: <a href="http://www.engadget.com/2007/11/10/how-to-enable-time-machine-on-unsupported-volumes/">http://www.engadget.com/2007/11/10/how-to-enable-time-machine-on-unsupported-volumes/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tempslliure.net/2011/07/20/activar-copies-de-osx-time-machine-a-la-xarxa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cafè al Fresco acompanyant un bon amic que acaba de ser pare</title>
		<link>http://www.tempslliure.net/2011/07/03/cafe-al-fresco-acompanyant-un-bon-amic-que-acaba-de-ser-pare/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cafe-al-fresco-acompanyant-un-bon-amic-que-acaba-de-ser-pare</link>
		<comments>http://www.tempslliure.net/2011/07/03/cafe-al-fresco-acompanyant-un-bon-amic-que-acaba-de-ser-pare/#comments</comments>
		<pubDate>Sun, 03 Jul 2011 09:05:51 +0000</pubDate>
		<dc:creator>Pol</dc:creator>
				<category><![CDATA[Cafès]]></category>

		<guid isPermaLink="false">http://www.tempslliure.net/2011/07/03/cafe-al-fresco-acompanyant-un-bon-amic-que-acaba-de-ser-pare/</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><img style="display:block;margin-right:auto;margin-left:auto;" alt="image" src="http://www.tempslliure.net/wp-content/uploads/2011/07/wpid-2011-07-02-23.03.05.jpg" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tempslliure.net/2011/07/03/cafe-al-fresco-acompanyant-un-bon-amic-que-acaba-de-ser-pare/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cafè amb gel al centre</title>
		<link>http://www.tempslliure.net/2011/06/28/cafe-amb-gel-al-centre/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cafe-amb-gel-al-centre</link>
		<comments>http://www.tempslliure.net/2011/06/28/cafe-amb-gel-al-centre/#comments</comments>
		<pubDate>Mon, 27 Jun 2011 22:40:32 +0000</pubDate>
		<dc:creator>Pol</dc:creator>
				<category><![CDATA[Cafès]]></category>

		<guid isPermaLink="false">http://www.tempslliure.net/2011/06/28/cafe-amb-gel-al-centre/</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><img style="display:block;margin-right:auto;margin-left:auto;" alt="image" src="http://www.tempslliure.net/wp-content/uploads/2011/06/wpid-2011-06-26-00.03.04.jpg" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tempslliure.net/2011/06/28/cafe-amb-gel-al-centre/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

