<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>chirale &#187; Uncategorized</title>
	<atom:link href="http://chirale.wordpress.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://chirale.wordpress.com</link>
	<description>watashi no yume...</description>
	<lastBuildDate>Mon, 07 Dec 2009 08:58:07 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='chirale.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/913d290334c442dca8a7360d648ac1bd?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>chirale &#187; Uncategorized</title>
		<link>http://chirale.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://chirale.wordpress.com/osd.xml" title="chirale" />
		<item>
		<title>Disable upload and comment for a new content type programmatically</title>
		<link>http://chirale.wordpress.com/2009/12/07/disable-upload-and-comment-for-a-new-content-type-programmatically/</link>
		<comments>http://chirale.wordpress.com/2009/12/07/disable-upload-and-comment-for-a-new-content-type-programmatically/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 08:56:34 +0000</pubDate>
		<dc:creator>chirale</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[attachments]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[content type]]></category>
		<category><![CDATA[default]]></category>
		<category><![CDATA[default value]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[drupal 6]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[upload]]></category>
		<category><![CDATA[variable_get]]></category>
		<category><![CDATA[variable_set]]></category>

		<guid isPermaLink="false">http://chirale.wordpress.com/?p=375</guid>
		<description><![CDATA[Following code is useful when installing a module that create a new content type programmatically on Drupal 6.x.
Basically, it adds two variables setting default values for comments (core Comment module) and attachments (core Upload module).
Code to write on my_funny_module/my_funny_module.install.
function my_funny_module_install() {
  // Disable attachments
  // Read http://api.drupal.org/api/function/upload_nodeapi/6 on "load"
  variable_set("my_content_type", 0);

  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=375&subd=chirale&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Following code is useful when installing a module that create a new content type programmatically on Drupal 6.x.</p>
<p>Basically, it adds two variables setting default values for comments (core Comment module) and attachments (core Upload module).</p>
<p>Code to write on <code>my_funny_module/my_funny_module.install</code>.</p>
<pre>function my_funny_module_install() {
  // Disable attachments
  // Read http://api.drupal.org/api/function/upload_nodeapi/6 on "load"
  variable_set("my_content_type", 0);

  // Disable comments for this content type
  // Read http://api.drupal.org/api/function/comment_form_alter/6
  variable_set('my_content_type', COMMENT_NODE_DISABLED);

  // Install schema as usual (if any)
  drupal_install_schema('my_funny_module');
}
</pre>
<p>Note that this code assign only <em>default</em> values for <em>my_content_type</em>: as any content type, this value could be later changed via GUI.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chirale.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chirale.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chirale.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chirale.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chirale.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chirale.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chirale.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chirale.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chirale.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chirale.wordpress.com/375/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=375&subd=chirale&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chirale.wordpress.com/2009/12/07/disable-upload-and-comment-for-a-new-content-type-programmatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/12a67456dc1db7deec545e23d51e0c8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chirale</media:title>
		</media:content>
	</item>
		<item>
		<title>Node import and domain access</title>
		<link>http://chirale.wordpress.com/2009/08/19/node-import-and-domain-access/</link>
		<comments>http://chirale.wordpress.com/2009/08/19/node-import-and-domain-access/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 09:55:21 +0000</pubDate>
		<dc:creator>chirale</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[domain access]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[illegal choice]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[node import]]></category>

		<guid isPermaLink="false">http://chirale.wordpress.com/?p=369</guid>
		<description><![CDATA[Node import 1.x-rc4 or below is incompatible with Domain Access. Upgrade the Node Import module to fix the "An illegal choice has been detected. Please contact the site administrator" error.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=369&subd=chirale&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you are using Node import 1.x-rc4 or below with Domain Access, you can get this error on each row to be imported:</p>
<blockquote><p>An illegal choice has been detected. Please contact the site administrator.</p></blockquote>
<p>This error in this case is presented when Domain Access try to import a node without assigning it to a domain. Node import 1.x-rc4 and below  lacks Domain Access support on 1.x-rc4.</p>
<p>Domain Access support <a href="http://drupal.org/node/391772#comment-1365734" target="_blank">will be available on Node import by 1.0 RC5 version</a>, you have to dowload the -dev version to have it now.</p>
<p>After that, the error should disappear. For more information, read the first lines of <em>node_import/node_import.inc</em> , where this error is explained.</p>
<ul>
<li><a href="http://drupal.org/node/391772#comment-1365734" target="_blank">Node import issue: Domain access support</a></li>
</ul>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chirale.wordpress.com/369/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chirale.wordpress.com/369/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chirale.wordpress.com/369/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chirale.wordpress.com/369/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chirale.wordpress.com/369/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chirale.wordpress.com/369/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chirale.wordpress.com/369/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chirale.wordpress.com/369/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chirale.wordpress.com/369/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chirale.wordpress.com/369/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=369&subd=chirale&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chirale.wordpress.com/2009/08/19/node-import-and-domain-access/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/12a67456dc1db7deec545e23d51e0c8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chirale</media:title>
		</media:content>
	</item>
		<item>
		<title>Theme a multiple CCK field with a table</title>
		<link>http://chirale.wordpress.com/2009/08/06/theme-a-multiple-cck-field-with-a-table/</link>
		<comments>http://chirale.wordpress.com/2009/08/06/theme-a-multiple-cck-field-with-a-table/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 07:52:31 +0000</pubDate>
		<dc:creator>chirale</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cck]]></category>
		<category><![CDATA[compound]]></category>
		<category><![CDATA[content]]></category>
		<category><![CDATA[CONTENT_HANDLE_MODULE]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[drupal 6]]></category>
		<category><![CDATA[fields]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://chirale.wordpress.com/?p=365</guid>
		<description><![CDATA[This howto will show to a Drupal developer how to theme a CCK compound field as a table, using CONTENT_HANDLE_MODULE.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=365&subd=chirale&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Sometimes CCK contrib modules cannot do exactly what you want. It&#8217;s time to build your custom CCK field!</p>
<p>Official documentation on CCK fields creation for Drupal 6 is incomplete and some passages are obscure. If there is a good howto you have to read before do any CCK customization, this is <a href="http://www.lullabot.com/articles/creating-custom-cck-fields" target="_blank">Creating Custom CCK Fields</a>. This howto supposes you&#8217;ve read and understand it before continue. If you want to create a custom field, you can read the complete<a href="http://www.poplarware.com/cckfieldmodule.html" target="_blank"> Creating a Compound field</a>. A custom multiple compound field (with more than one field for element, e.g. an image and its description).</p>
<p><em>Read these howto well, you&#8217;ll spare time later<br />
</em></p>
<p>Well, you have followed the howto, you have your own compound field but now you have a problem. You want to display compound field data as cells in a table, and each field as row.</p>
<p>On following example, we have a name list made with a multiple compound field with &#8220;firstname&#8221; and &#8220;lastname&#8221; columns.</p>
<p>KarenS tell you that you&#8217;ve to use CONTENT_HANDLE_MODULE instead of CONTENT_HANDLE_CORE on hook_formatter_info() .</p>
<pre>// The machine name of the formatter.
function my_funny_module_field_formatter_info() {
  return array(
    'default' =&gt; array(
      'label' =&gt; t('Default'),
      // An array of the field types this formatter
      // can be used on.
      'field types' =&gt; array('examplefield'),
      // CONTENT_HANDLE_CORE:   CCK will pass the formatter
      // a single value.
      // CONTENT_HANDLE_MODULE: CCK will pass the formatter
      // an array of all the values. None of CCK's core
      // formatters use multiple values, that is an option
      // available to other modules that want it.
      'multiple values' =&gt; CONTENT_HANDLE_MODULE,
    ),
  );
}

/** Set the formatter **/
function my_funny_module_theme() {
  return array(
    'my_funny_module_formatter_default' =&gt; array(
      'arguments' =&gt; array('element' =&gt; NULL),
      'function' =&gt; 'funny_display_table',
    ),
  );
}

/** Here you format your table data as array **/
function my_funny_module_formatter_default($element) {
  $data = array(
      $element['#item']['firstname'],
      $element['#item']['lastname'],
  );
  return $data;
}

/** This function will display a table even where data array is empty:
 ** You have to put an additional control statement to avoid this.
 ** $element will have $data from formatter_default() above
 **/
function my_funny_module_display_table($element) {
  $header = array(
    t('First name'),
    t('Last name'),
  );
  $i = 0;
  while (!$end) {
    /** Any row will contains **/
    if(array_key_exists($i, $element)) {
      $rows[] = array(
        'firstname' =&gt; $element[$i]['#item']['firstname'],
        'lastname' =&gt;$element[$i]['#item']['lastname'],
      );
      $i++;
    }
    else {
      $end = TRUE;
    }
  }
  /** Theme a table with data from element and header **/
  return theme('table', $header, $rows);
}</pre>
<p><strong>N</strong><strong>ote: </strong>to format a table you have to change only &#8220;multiple values&#8221; on my_funny_module_field_formatter_info(): you can leave my_funny_module_widget_info() as is.</p>
<p><strong>See also:</strong></p>
<ul>
<li><a href="http://www.lullabot.com/articles/creating-custom-cck-fields" target="_blank">Creating Custom CCK Fields &#8211; a stunning howto by  KarenS (Lullabot)</a></li>
<li><a href="http://www.poplarware.com/cckfieldmodule.html">Creating a compound Field Module by Jennifer H.</a> &#8211; a complete howto</li>
<li><a href="http://api.drupal.org/api/function/theme_table/6" target="_blank">theme_table() function</a> &#8211; how to tranform an array of data into a table, drupal way</li>
</ul>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chirale.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chirale.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chirale.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chirale.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chirale.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chirale.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chirale.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chirale.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chirale.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chirale.wordpress.com/365/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=365&subd=chirale&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chirale.wordpress.com/2009/08/06/theme-a-multiple-cck-field-with-a-table/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/12a67456dc1db7deec545e23d51e0c8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chirale</media:title>
		</media:content>
	</item>
		<item>
		<title>Add CSS style for a block into the same block</title>
		<link>http://chirale.wordpress.com/2009/07/29/add-css-style-for-a-block-into-the-same-block/</link>
		<comments>http://chirale.wordpress.com/2009/07/29/add-css-style-for-a-block-into-the-same-block/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 17:00:01 +0000</pubDate>
		<dc:creator>chirale</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[drupal 6]]></category>
		<category><![CDATA[drupal_add_css]]></category>
		<category><![CDATA[drupal_set_html_head]]></category>
		<category><![CDATA[head]]></category>
		<category><![CDATA[inline]]></category>
		<category><![CDATA[style]]></category>

		<guid isPermaLink="false">http://chirale.wordpress.com/?p=358</guid>
		<description><![CDATA[This simple code can be pasted into a PHP filtered block (or into a block declared by a module) to set some style from a block into the block container itself.
&#60;?php
echo 'My block content';
/** Put styles inline on html head**/
drupal_set_html_head('&#60;style type="text/css"&#62;
#my-block-id {
  /* my style*/
}
&#60;/style&#62;
');
?&#62;
This code is placed on html head, applied only to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=358&subd=chirale&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This simple code can be pasted into a PHP filtered block (or into a block declared by a module) to set some style from a block into the block container itself.</p>
<pre>&lt;?php
echo 'My block content';
/** Put styles inline on html head**/
drupal_set_html_head('&lt;style type="text/css"&gt;
#my-block-id {
  /* my style*/
}
&lt;/style&gt;
');
?&gt;</pre>
<p>This code is placed on html head, applied only to the pages where block appears, without touching css optimization. If you want to include an external CSS file instead, use <a href="http://api.drupal.org/api/function/drupal_add_css/6">drupal_add_css</a> instead: in any case you can exclude this file for aggregation, setting $preprocess attribute to FALSE.</p>
<p>If block appears in very few pages, and it can change quickly (e.g. a banner with custom styles on home page), using <strong>drupal_set_html_head</strong> could be the best way, even according to <a href="http://developer.yahoo.com/performance/rules.html#external">Yahoo Performance Best Practices</a>. In other cases, use <strong>drupal_add_css</strong>.</p>
<p><strong>See also:</strong></p>
<ul>
<li><a href="http://api.drupal.org/api/function/drupal_set_html_head/6">drupal_set_html_head</a></li>
<li><a href="http://api.drupal.org/api/function/drupal_add_css/6">drupal_add_css</a></li>
<li><a href="http://developer.yahoo.com/performance/rules.html#external">Make Javascript and CSS External (Yahoo Performance Best Practices)</a></li>
</ul>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chirale.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chirale.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chirale.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chirale.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chirale.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chirale.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chirale.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chirale.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chirale.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chirale.wordpress.com/358/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=358&subd=chirale&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chirale.wordpress.com/2009/07/29/add-css-style-for-a-block-into-the-same-block/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/12a67456dc1db7deec545e23d51e0c8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chirale</media:title>
		</media:content>
	</item>
		<item>
		<title>Cron cannot run on Drupal: the drupal_goto() case</title>
		<link>http://chirale.wordpress.com/2009/07/10/cron-cannot-run-on-drupal-the-drupal_goto-case/</link>
		<comments>http://chirale.wordpress.com/2009/07/10/cron-cannot-run-on-drupal-the-drupal_goto-case/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 11:04:29 +0000</pubDate>
		<dc:creator>chirale</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[drupal 6]]></category>
		<category><![CDATA[drupal_goto]]></category>
		<category><![CDATA[fatal error]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[nesting]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php block]]></category>
		<category><![CDATA[php filter]]></category>
		<category><![CDATA[redirect]]></category>

		<guid isPermaLink="false">http://chirale.wordpress.com/?p=356</guid>
		<description><![CDATA[Sometimes you want to redirect a page to another on drupal. You can do this using a simple function called drupal_goto().
On few sites I&#8217;ve enabled the PHP filter module and then created a new page with PHP code input format with drupal_goto(&#8216;node/2&#8242;) to redirect the current page to a specified node. Bad idea.
I&#8217;ve noticed that, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=356&subd=chirale&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Sometimes you want to redirect a page to another on drupal. You can do this using a simple function called <a href="http://api.drupal.org/api/function/drupal_goto/6" target="_blank">drupal_goto()</a>.</p>
<p>On few sites I&#8217;ve enabled the <strong>PHP filter</strong> module and then created a new page with PHP code input format with drupal_goto(&#8216;node/2&#8242;) to redirect the current page to a specified node. <strong>Bad idea</strong>.</p>
<p>I&#8217;ve noticed that, after this change, cron.php operations failed, if you have <strong>Search</strong> module enabled. On cron new contents are indexed by the Search module: when it got my PHP page, it tries to index it but suddenly is redirected to another. You can also found an error like &#8220;Maximum function nesting level of &#8216;100&#8242; reached&#8221; on php error log, symptom of an indexing blocked by pages with drupal_goto inside.</p>
<p><strong>Solution</strong>:</p>
<ol>
<li>Comment all drupal_goto() instruction in your site within pages.</li>
<li>Use an alternative method to redirect from a node to another.</li>
<li>Run cron from <strong>Status Report</strong> page: you can adjust indexed content per cron on Search configuration page (admin/settings/search on 6.x)</li>
</ol>
<p>You can add a new block with PHP code inside or (better) create a new module for this simple block (with a simple PHP switch statement as content),<strong> displaying it only on specified pages</strong> (on the bottom of block configuration). But if you create a PHP block via UI, and you put that block on every page, your site could be loop, so creating a module is the cleanest and secure way (if something go wrong, you can delete your module from the codebase and correct it). You can also find some contrib modules for redirect on <a href="http://drupalmodules.com" target="_blank">drupalmodules.com</a>.</p>
<p>See also:</p>
<ul>
<li> <a href="http://drupal.org/node/471698" target="_blank">Fatal error: Maximum function nesting level of &#8216;100&#8242; reached, aborting!</a> &#8211; an identical issue on drupal.org</li>
<li><a href="http://api.drupal.org/api/function/drupal_goto/6" target="_blank">drupal_goto() function (Drupal 6.x)</a></li>
</ul>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:395px;width:1px;height:1px;">
<h1 class="title node-type-project_issue">Fatal error: Maximum function nesting level of &#8216;100&#8242; reached, aborting!</h1>
</div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chirale.wordpress.com/356/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chirale.wordpress.com/356/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chirale.wordpress.com/356/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chirale.wordpress.com/356/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chirale.wordpress.com/356/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chirale.wordpress.com/356/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chirale.wordpress.com/356/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chirale.wordpress.com/356/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chirale.wordpress.com/356/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chirale.wordpress.com/356/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=356&subd=chirale&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chirale.wordpress.com/2009/07/10/cron-cannot-run-on-drupal-the-drupal_goto-case/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/12a67456dc1db7deec545e23d51e0c8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chirale</media:title>
		</media:content>
	</item>
		<item>
		<title>Character substitution on Jquery</title>
		<link>http://chirale.wordpress.com/2009/07/04/character-substitution-on-jquery/</link>
		<comments>http://chirale.wordpress.com/2009/07/04/character-substitution-on-jquery/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 10:08:26 +0000</pubDate>
		<dc:creator>chirale</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[character]]></category>
		<category><![CDATA[each]]></category>
		<category><![CDATA[group]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[innerhtml]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[substitution]]></category>

		<guid isPermaLink="false">http://chirale.wordpress.com/?p=352</guid>
		<description><![CDATA[Here an easy way to search and replace each occurrence a group of characters (in this case underscore and minus) with another (in this case a space) on a specified element (in this case each A), using Jquery javascript library.

$("a").each(function() {
   $(this).html($(this).html().replace(/[_-]/g," "));
});

The first argument passed on replace is a regex, if you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=352&subd=chirale&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Here an easy way to <strong>search and replace each occurrence a group of characters</strong> (in this case underscore and minus) with another (in this case a space) on a specified element (in this case each A), using Jquery javascript library.</p>
<pre>
$("a").each(function() {
   $(this).html($(this).html().replace(/[_-]/g," "));
});
</pre>
<p>The first argument passed on <em>replace</em> is a <a href="http://en.wikipedia.org/wiki/Regex" target="_blank">regex</a>, if you just pass a single character (like &#8220;_&#8221; or &#8220;-&#8221;) only first occurrence for each element.</p>
<p><em>Real world usage: I use this onto a long page, where a table has long filenames with underscore and minus in place of spaces. This trick allows in my case to show tables nicely, without caring on a mass substitution via server side scripting.</em></p>
<p><strong>See also:</strong></p>
<ul>
<li><a href="http://evolt.org/regexp_in_javascript">Regex in Javascript</a> &#8211; an useful guide</li>
<li><a href="http://docs.jquery.com/Utilities/jQuery.each">Jquery each</a> &#8211; to match all specified elements</li>
<li><a href="http://docs.jquery.com/Attributes/html">Jquery html()</a> &#8211; read and write html content (innerHTML) of an element</li>
</ul>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chirale.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chirale.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chirale.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chirale.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chirale.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chirale.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chirale.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chirale.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chirale.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chirale.wordpress.com/352/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=352&subd=chirale&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chirale.wordpress.com/2009/07/04/character-substitution-on-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/12a67456dc1db7deec545e23d51e0c8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chirale</media:title>
		</media:content>
	</item>
		<item>
		<title>Video on Flash doesn&#8217;t buffer? Maybe a FLV and MP4 issue</title>
		<link>http://chirale.wordpress.com/2009/05/30/video-on-flash-doesnt-buffer-maybe-a-flv-and-mp4-issue/</link>
		<comments>http://chirale.wordpress.com/2009/05/30/video-on-flash-doesnt-buffer-maybe-a-flv-and-mp4-issue/#comments</comments>
		<pubDate>Sat, 30 May 2009 08:17:15 +0000</pubDate>
		<dc:creator>chirale</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[avidemux]]></category>
		<category><![CDATA[buffer]]></category>
		<category><![CDATA[buffering]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flash video]]></category>
		<category><![CDATA[flowplayer]]></category>
		<category><![CDATA[flv]]></category>
		<category><![CDATA[h264]]></category>
		<category><![CDATA[moov atom]]></category>
		<category><![CDATA[mp4]]></category>
		<category><![CDATA[mp4box]]></category>
		<category><![CDATA[pseudostreaming]]></category>
		<category><![CDATA[x264]]></category>

		<guid isPermaLink="false">http://chirale.wordpress.com/?p=344</guid>
		<description><![CDATA[I recently tried Flowplayer a Flash video player released under GNU GPL license. It&#8217;s great, since it has a plugin allowing pseudostreaming (it allows buffering from any server) with both FLV and MP4 (H.264 / AC3).
Using avidemux to convert my videos, I had no problem to play FLV files: buffering works as expected, I watch [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=344&subd=chirale&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I recently tried <a href="http://flowplayer.org" target="_blank">Flowplayer</a> a Flash video player released under GNU GPL license. It&#8217;s great, since it has a plugin allowing <a href="http://flowplayer.org/demos/plugins/streaming/mp4-pseudostreaming.html" target="_blank">pseudostreaming</a> (it allows buffering from any server) with both FLV and MP4 (H.264 / AC3).</p>
<p>Using <a href="http://fixounet.free.fr/avidemux/" target="_blank">avidemux</a> to convert my videos, I had no problem to play FLV files: buffering works as expected, I watch video while buffer is filled. But on MP4, I&#8217;ve to wait the video is fully buffered (downloaded entirely).</p>
<p>This is <strong>not</strong> a Flowplayer issue: <a href="http://flowplayer.org/plugins/streaming/pseudostreaming.html#prepare" target="_blank">this exaustive howto</a> explain that FLV and MP4 files should be properly indexed to works with pseudostreaming.</p>
<ul>
<li>For FLV files, you can use Flvtool2, a Ruby gem, available also on apt / synaptic via &#8220;apt-get install flvtool2&#8243; (<a href="http://packages.debian.org/search?keywords=flvtool2">Debian packages</a>, <a href="http://rubyforge.org/projects/flvtool2/" target="_blank">description on rubyforge</a>). Using avidemux, FLV files are ok even if I don&#8217;t use Flvtool2, so FLV metadata seems correctly handled by Avidemux. Ready for pseudostreaming!</li>
<li>For MP4 files, you have to move MP4 metadata (&#8220;moov atom&#8221;) from the end of the file to the beginning, since Avidemux seems to put it on the very end of the video file. To do this, I&#8217;ve used successfully a tool named mp4box (<a href="http://www.videohelp.com/tools/mp4box" target="_blank">mp4box on videohelp</a>, <a href="http://kurtnoise.free.fr/mp4tools/" target="_blank">author website</a>) using <a href="http://kurtnoise.free.fr/mp4tools/MP4Box-0.4.6-dev_20090519.zip" target="_blank">MP4Box-0.4.6-dev_20090519</a> version (win32 binary). Read also <a href="http://gpac.sourceforge.net/doc_mp4box.php" target="_blank">MP4box documentation on GPAC</a>, you can also get it on <a href="http://sourceforge.net/projects/gpac/">sourceforge</a>.</li>
</ul>
<p>MP4Box usage example:</p>
<p><strong>MP4Box.exe -add TEST_src.mp4 -new TEST_dst.mp4 </strong><br />
<em>IsoMedia import &#8211; track ID 1 &#8211; Video (size 848 x 480)<br />
IsoMedia import &#8211; track ID 2 &#8211; Audio (SR 44100 &#8211; 2 channels)<br />
Saving TEST_dst.mp4: 0.500 secs Interleaving</em></p>
<p><strong>See also</strong><em><strong>:</strong><br />
</em></p>
<p>Flowplayer forum posts on same topic:</p>
<ul>
<li><a href="http://flowplayer.org/forum/2/12909" target="_blank">Able to play H.264 files without full download?</a></li>
<li><a href="http://flowplayer.org/forum/1/16847" target="_blank">no playback until .mp4 is fully loaded</a></li>
</ul>
<p><a href="http://www.saiweb.co.uk/linux/ffmpeg-mp4-does-not-stream-qt-faststart">Qt-fastart (FFMpeg alternative)</a>, <a href="http://www.entropy.ch/blog/Software/2007/08/29/QTFastStart-for-Flash-Video-H-264.html">another post</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chirale.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chirale.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chirale.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chirale.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chirale.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chirale.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chirale.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chirale.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chirale.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chirale.wordpress.com/344/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=344&subd=chirale&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chirale.wordpress.com/2009/05/30/video-on-flash-doesnt-buffer-maybe-a-flv-and-mp4-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/12a67456dc1db7deec545e23d51e0c8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chirale</media:title>
		</media:content>
	</item>
		<item>
		<title>Animax in Italia</title>
		<link>http://chirale.wordpress.com/2009/03/15/animax-in-italia/</link>
		<comments>http://chirale.wordpress.com/2009/03/15/animax-in-italia/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 11:22:04 +0000</pubDate>
		<dc:creator>chirale</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[animax]]></category>
		<category><![CDATA[animax in italia]]></category>
		<category><![CDATA[animaxinitalia]]></category>
		<category><![CDATA[anime]]></category>
		<category><![CDATA[causes]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facebook causes]]></category>
		<category><![CDATA[italia]]></category>
		<category><![CDATA[sat]]></category>
		<category><![CDATA[sony]]></category>

		<guid isPermaLink="false">http://chirale.wordpress.com/?p=327</guid>
		<description><![CDATA[L&#8217;animazione giapponese nella televisione italiana degli ultimi anni si è affacciata con proposte interessanti principalmente per opera di MTV. Una sera alla settimana (il martedì), il canale musicale trasmetteva e continua a trasmettere una fascia dedicata agli anime dedicati ad un pubblico di teenager e giovani adulti, comprendendo negli anni titoli come Cowboy Bebop, Inuyasha, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=327&subd=chirale&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>L&#8217;animazione giapponese nella televisione italiana degli ultimi anni si è affacciata con proposte interessanti principalmente per opera di MTV. Una sera alla settimana (il martedì), il canale musicale trasmetteva e continua a trasmettere una fascia dedicata agli <em><a href="http://it.wikipedia.org/wiki/Anime" target="_blank">anime</a></em> dedicati ad un pubblico di teenager e giovani adulti, comprendendo negli anni titoli come Cowboy Bebop, Inuyasha, Fullmetal Alchemist, Le situazioni di Lui &amp; Lei, BECK, Full Metal Panic, Death Note, NANA, Kenshin, GTO (<a href="http://it.wikipedia.org/wiki/Anime_Week" target="_blank">elenco completo</a>).</p>
<p>Una volta l&#8217;anno, lo stesso canale trasmetteva un assaggio di alcuni titoli distribuiti principalmente da Shin Vision (attualmente fallita), Dynit e Yamato in un evento autunnale chiamato Anime Week (<a href="http://iac.quasipercaso.com/Anime_week" target="_blank">maggiori informazioni su IAC</a>, <a href="http://it.wikipedia.org/wiki/Anime_Week" target="_blank">maggiori info su Wikipedia</a>) che sembrava fungesse da vetrina per i distributori, dato che molti titoli non venivano poi successivamente trasmessi dalla rete ma resi disponibili contestualmente in home video.</p>
<p>Mentre l&#8217;ultima anime week risale al 2006, alcuni canali satellitari hanno iniziato a popolare i propri palinsesti di <em>anime</em>, mentre sono sorti canali dedicati (ad es. Cultoon diventato poi Cooltoon), senza contare che alcuni canali satellitari come Cartoon Network hanno incluso anch&#8217;essi animazione giapponese (ad es. School Rumble) in una programmazione più variegata.</p>
<p>Il 12 gennaio 2007 Sony, che vanta un canale satellitare chiamato <a href="http://it.wikipedia.org/wiki/Animax" target="_blank">Animax</a> trasmesso in tutto il mondo, decide di aprire una fascia di animazione giapponese nel canale satellitare AXN, che fino a quel momento trattava principalmente telefilm d&#8217;azione statunitensi (es. McGuyver).</p>
<p>In questa fascia, che sembrava sarebbe dovuto fungere da test per lo sbarco del canale satellitare dedicato Animax in Italia, viene trasmesso fra gli altri un titolo di alto pregio come PlanetES, accendendo le speranze degli appassionati italiani (<a href="http://animeclick.lycos.it/notizia.php?id=18660" target="_blank">articolo su AnimeClick</a>). La fascia viene prima migrata in orari notturni e successivamente soppressa (<a href="http://www.animeclick.it/notizia.php?id=19475" target="_blank">articolo su Animeclick</a>). L&#8217;avvento di Animax in Italia viene quindi rimandato ad una data indefinita.</p>
<p>Mentre il canale si diffonde in Germania, Spagna, Portogallo, Polonia, Repubblica Ceca, Slovacchia, Ungheria, Romania, l&#8217;Italia resta al palo.</p>
<p>Per tentare di organizzare il vero ritorno del canale in Italia nella forma in cui è conosciuto negli altri paesi del mondo, nasce prima il sito web <a href="http://animaxinitalia.org/" target="_blank">animaxinitalia.org</a> e successivamente una <a title="Partecipa alla causa Animax in Italia" href="http://apps.facebook.com/causes/190404?m=92eea645&amp;recruiter_id=28456286" target="_blank">causa su Facebook chiamata Animax in Italia</a>, che al 15 marzo 2009 conta 54 aderenti. L&#8217;obiettivo è raggiungere un numero di aderenti tale da poter chiedere formalmente alla Sony di riconsiderare lo sbarco del canale tematico in Italia, dimostrando l&#8217;interesse attivo degli appassionati italiani verso un canale di animazione giapponese recente.</p>
<p style="text-align:center;">
<div class="wp-caption aligncenter" style="width: 464px"><a href="http://apps.facebook.com/causes/190404?m=c6026b31&amp;recruiter_id=28456286" target="_blank"><img title="Iscriviti alla causa Animax in Italia" src="http://animaxinitalia.files.wordpress.com/2008/05/banner_animax.gif?w=454&#038;h=83" alt="Iscriviti alla causa Animax in Italia" width="454" height="83" /></a><p class="wp-caption-text">Iscriviti alla causa Animax in Italia (cliccando sul banner e poi su Join). In caso non l&#39;abbia già fatto, devi prima autorizzare l&#39;applicazione Causes.</p></div>
<p>P.S. Ringrazio Cesco per aver acconsentito all&#8217;uso del logo modificato di Animax per la causa e ovviamente per aver avviato animaxinitalia.org.</p>
<p>Vedi anche:</p>
<ul>
<li><a href="http://www.animaxtv.com/" target="_blank">Sito ufficiale di Animax</a> (rifatevi gli occhi)</li>
<li><a href="http://it.wikipedia.org/wiki/Animax" target="_blank">Animax su Wikipedia in italiano</a></li>
<li><a href="http://en.wikipedia.org/wiki/Animax">Animax su Wikipedia in inglese</a></li>
<li><a href="http://www.animeclick.it/" target="_blank">AnimeClick</a></li>
<li><a href="http://animaxinitalia.org/" target="_blank">animaxinitalia.org</a></li>
</ul>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chirale.wordpress.com/327/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chirale.wordpress.com/327/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chirale.wordpress.com/327/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chirale.wordpress.com/327/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chirale.wordpress.com/327/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chirale.wordpress.com/327/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chirale.wordpress.com/327/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chirale.wordpress.com/327/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chirale.wordpress.com/327/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chirale.wordpress.com/327/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=327&subd=chirale&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chirale.wordpress.com/2009/03/15/animax-in-italia/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/12a67456dc1db7deec545e23d51e0c8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chirale</media:title>
		</media:content>

		<media:content url="http://animaxinitalia.files.wordpress.com/2008/05/banner_animax.gif" medium="image">
			<media:title type="html">Iscriviti alla causa Animax in Italia</media:title>
		</media:content>
	</item>
		<item>
		<title>Howto merge two torrent files</title>
		<link>http://chirale.wordpress.com/2009/02/24/howto-merge-two-torrent-files/</link>
		<comments>http://chirale.wordpress.com/2009/02/24/howto-merge-two-torrent-files/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 14:03:24 +0000</pubDate>
		<dc:creator>chirale</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[ktorrent]]></category>
		<category><![CDATA[local peer]]></category>
		<category><![CDATA[merge]]></category>
		<category><![CDATA[torrent]]></category>
		<category><![CDATA[utorrent]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[zeroconf]]></category>

		<guid isPermaLink="false">http://chirale.wordpress.com/?p=322</guid>
		<description><![CDATA[Sometimes you want to download a torrent that you&#8217;ve partially downloaded. Many bittorrent client allow partially downloaded files, but what if you&#8217;ve downloaded the same torrent twice, with differents parts available?
Use Zeroconf / Local peer
I&#8217;ve used two client on the same LAN, ktorrent (on Debian) and utorrent (on Windows XP). I&#8217;ve two downloaded files (or [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=322&subd=chirale&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Sometimes you want to download a torrent that you&#8217;ve partially downloaded. Many bittorrent client allow partially downloaded files, but what if you&#8217;ve downloaded the same torrent twice, with differents parts available?</p>
<p><strong>Use Zeroconf / Local peer</strong></p>
<p>I&#8217;ve used two client on the same LAN, ktorrent (on Debian) and utorrent (on Windows XP). I&#8217;ve two downloaded files (or folder) from the same .torrent, with different parts downloaded.</p>
<ul>
<li>Enable Zeroconf plugin on ktorrent</li>
<li>Check if on utorrent &#8220;Enable local peer discovery&#8221; is enabled</li>
<li>Import existing download #1 on ktorrent</li>
<li>On debian system, as root type <strong>ifconfig</strong> to discover your local IP address, i.e.  <em>inet addr:192.168.0.XX</em></li>
<li>Go to ktorrent preferences and check the used port (e.g. 12345)</li>
<li>On utorrent go to Peers tab on #2 download. Right-click &gt; Add peer</li>
<li>Type your first machine IP address (e.g. Debian) and the first bittorrent client port (e.g. 12345 on ktorrent),  e.g. <strong>192.168.0.XX:12345</strong> with no protocol prepended.</li>
</ul>
<p>On both client you&#8217;ll notice a new peer, downloading and uploading very fast. Little after, the two downloaded files / folder could be completely merged.</p>
<p>You can now close #2 and continue to download the torrent on a single machine / client from external peers.</p>
<p>Note: I&#8217;ve tested this method on the same machine using Virtualbox (Debian as host, XP as guest).</p>
<p>See also:</p>
<ul>
<li><a href="http://forum.utorrent.com/viewtopic.php?pid=192632" target="_blank">Merge / combine a torrent</a></li>
</ul>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chirale.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chirale.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chirale.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chirale.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chirale.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chirale.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chirale.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chirale.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chirale.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chirale.wordpress.com/322/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=322&subd=chirale&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chirale.wordpress.com/2009/02/24/howto-merge-two-torrent-files/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/12a67456dc1db7deec545e23d51e0c8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chirale</media:title>
		</media:content>
	</item>
		<item>
		<title>Howto extract tracks from mkv and avi</title>
		<link>http://chirale.wordpress.com/2009/01/31/howto-extract-tracks-from-mkv-and-avi/</link>
		<comments>http://chirale.wordpress.com/2009/01/31/howto-extract-tracks-from-mkv-and-avi/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 08:34:25 +0000</pubDate>
		<dc:creator>chirale</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[avi]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[matroska]]></category>
		<category><![CDATA[mkv]]></category>
		<category><![CDATA[mkvextract]]></category>
		<category><![CDATA[mkvmerge]]></category>
		<category><![CDATA[mkvtoolnix]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[srt]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://chirale.wordpress.com/?p=276</guid>
		<description><![CDATA[This howto requires:

mplayer
mkvtoolnix
your Linux box  

Audio from Avi files (es. Xvid + MP3):
mplayer -dumpaudio "mymovie.avi" -dumpfile mymovie_audio_track.mp3
Tracks from Matroska MKV file:
List all tracks:
mkvmerge -i mymovie.mkv
File 'mymovie.mkv': container: Matroska
Track ID 1: video (V_MS/VFW/FOURCC, XVID)
Track ID 2: audio (A_VORBIS)
Track ID 3: audio (A_VORBIS)
Track ID 4: subtitles (S_TEXT/UTF8)
Track ID 5: subtitles (S_TEXT/UTF8)
mkvextract tracks *.mkv 3:mymovie_audio_track.ogg 4:mymovie_subtitle.srt
Creates two [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=276&subd=chirale&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This howto requires:</p>
<ul>
<li>mplayer</li>
<li>mkvtoolnix</li>
<li>your Linux box <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
</ul>
<p>Audio from Avi files (es. Xvid + MP3):</p>
<p><code>mplayer -dumpaudio "mymovie.avi" -dumpfile mymovie_audio_track.mp3</code></p>
<p>Tracks from Matroska MKV file:</p>
<p>List all tracks:</p>
<p><code>mkvmerge -i mymovie.mkv</code></p>
<p><code>File 'mymovie.mkv': container: Matroska<br />
Track ID 1: video (V_MS/VFW/FOURCC, XVID)<br />
Track ID 2: audio (A_VORBIS)<br />
Track ID 3: audio (A_VORBIS)<br />
Track ID 4: subtitles (S_TEXT/UTF8)<br />
Track ID 5: subtitles (S_TEXT/UTF8)</code></p>
<p><code>mkvextract tracks *.mkv 3:mymovie_audio_track.ogg 4:mymovie_subtitle.srt</code></p>
<p>Creates two files, mymovie_audio_track.ogg (track 3) and mymovie_subtitle.srt (track 4).</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chirale.wordpress.com/276/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chirale.wordpress.com/276/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chirale.wordpress.com/276/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chirale.wordpress.com/276/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chirale.wordpress.com/276/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chirale.wordpress.com/276/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chirale.wordpress.com/276/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chirale.wordpress.com/276/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chirale.wordpress.com/276/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chirale.wordpress.com/276/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=276&subd=chirale&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chirale.wordpress.com/2009/01/31/howto-extract-tracks-from-mkv-and-avi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/12a67456dc1db7deec545e23d51e0c8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chirale</media:title>
		</media:content>
	</item>
	</channel>
</rss>