<?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>The Technoblog</title>
	<atom:link href="http://technoblog.novaclic.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://technoblog.novaclic.com</link>
	<description>Pure technology inside !</description>
	<lastBuildDate>Fri, 28 Oct 2011 16:01:36 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wordpress 3.2 : a major move</title>
		<link>http://technoblog.novaclic.com/wordpress/since-wordpress-3-2/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=since-wordpress-3-2</link>
		<comments>http://technoblog.novaclic.com/wordpress/since-wordpress-3-2/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 08:52:07 +0000</pubDate>
		<dc:creator>diablo</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[3.2]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql4]]></category>
		<category><![CDATA[mysql5]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php4]]></category>
		<category><![CDATA[php5]]></category>

		<guid isPermaLink="false">http://technoblog.novaclic.com/?p=138</guid>
		<description><![CDATA[<p style="text-align: center"><img class="aligncenter" src="http://technoblog.novaclic.com/files/2011/07/wp32.jpg" alt="wp 3.2 is out!" /><br />
Wordpress 3.2 is a new major release, <a href="http://technoblog.novaclic.com/wordpress/wordpress-2-9-and-wordpress-2-9-1/">like 2.9 was</a>.</p>
<p>But this time, not only because this new version of Wordpress introduces very exciting features, but also because wordpress 3.2 drops backward compatibility with legacy browser (ie6), PHP engine 4 (PHP4)…</p>]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><img class="aligncenter" src="http://technoblog.novaclic.com/files/2011/07/wp32.jpg" alt="wp 3.2 is out!" /><br />
Wordpress 3.2 is a new major release, <a href="http://technoblog.novaclic.com/wordpress/wordpress-2-9-and-wordpress-2-9-1/">like 2.9 was</a>.</p>
<p>But this time, not only because this new version of Wordpress introduces very exciting features, but also because wordpress 3.2 drops backward compatibility with legacy browser (ie6), PHP engine 4 (PHP4) and Mysql 4.x (5.0+ required).</p>
<h2><span id="more-138"></span>Some PHP and Mysql restrictions</h2>
<p>Indeed, if you try to install a recent wordpress (3.2 or greater), you may face some error messages. Before proceeding, make sure your hosting plan offers :</p>
<ul>
<li><a title="Glossary" href="http://codex.wordpress.org/Glossary#PHP">PHP</a> 5.2.4 or greater (old requirement was PHP 4.3 or greater since <a title="Version 2.5" href="http://codex.wordpress.org/Version_2.5">WordPress 2.5</a> )</li>
<li><a title="Glossary" href="http://codex.wordpress.org/Glossary#MySQL">MySQL</a> 5.0.15 or greater (old requirement was MySQL 4.1.2 or greater since <a title="Version 2.9" href="http://codex.wordpress.org/Version_2.9">WordPress 2.9</a> , MySQL 4.x prior to WP2.9)</li>
</ul>
<p>If you get a message like:</p>
<blockquote><p>Your server is running PHP version 4.4.9 but WordPress 3.2.1 requires at least 5.2.4.</p></blockquote>
<p>Don&#8217;t panic, you may keep your hosting plan by tweaking some settings. Indeed, some allow to &#8220;force&#8221; the version of PHP used. For instance, <a href="http://neomee.com/dico/alwaysdata" target="_blank">Alwaysdata</a> will provide such an option in your admin panel:</p>
<p><a href="http://neomee.com/dico/alwaysdata"><img class="aligncenter size-full wp-image-140" src="http://technoblog.novaclic.com/files/2011/07/php5-ad.png" alt="php5" width="529" height="77" /></a>Other hosting companies will allow to force php5 by using a specific command to be inserted in the &#8220;.htaccess&#8221; file located at the root of the web directory (usually &#8220;www&#8221;): &#8220;AddType x-mapp-php5 .php&#8221; for <a href="http://neomee.com/dico/1and1" target="_blank">1and1</a>, &#8220;AddHandler x-httpd-php5 .php&#8221; for <a href="http://neomee.com/dico/godaddy" target="_blank">GoDaddy</a>, &#8220;SetEnv PHP_VER 5&#8243; for <a href="http://www.ovh.com" target="_blank">OVH</a>, &#8230;</p>
<h2>A bunch of new features</h2>
<p>Wordpress 3.2 introduces a deep change in the backend: lighter, faster, easier to use&#8230; Just try by yourself or watch the video below.</p>
<p>For copywritters, a new editing mode where you get a &#8220;blank sheet&#8221;, without any disburbing icon or menu around.</p>
<p>And a brand new HTML5 theme, named <a href="http://wordpress.org/extend/themes/twentyeleven" target="_blank">Twenty Eleven</a>, that embed nice features like the ability to have multiple rotating header images to highlight all of your favorite photos.</p>
<p style="text-align: left">For all of this, have a look at the Wordpress.tv video:</p>
<p style="text-align: center"><div id="v-ac07H291" class="video-player"><embed id="v-ac07H291-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=ac07H291&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="400" height="224" title="Introducing WordPress 3.2 &quot;Gershwin&quot;" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div></p>
]]></content:encoded>
			<wfw:commentRss>http://technoblog.novaclic.com/wordpress/since-wordpress-3-2/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>

		</item>
		<item>
		<title>Howto read an ISO file or mount a virtual CD drive (for free)</title>
		<link>http://technoblog.novaclic.com/computer/read-an-iso-file-or-mount-a-virtual-cd-drive-for-free/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=read-an-iso-file-or-mount-a-virtual-cd-drive-for-free</link>
		<comments>http://technoblog.novaclic.com/computer/read-an-iso-file-or-mount-a-virtual-cd-drive-for-free/#comments</comments>
		<pubDate>Mon, 17 Jan 2011 07:26:34 +0000</pubDate>
		<dc:creator>diablo</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[burning]]></category>
		<category><![CDATA[fichier iso]]></category>
		<category><![CDATA[gravure]]></category>
		<category><![CDATA[image cd]]></category>
		<category><![CDATA[iso file]]></category>
		<category><![CDATA[virtualcd]]></category>

		<guid isPermaLink="false">http://technoblog.novaclic.com/?p=51</guid>
		<description><![CDATA[<p>Files with the .iso extension are files ready for use with most  burning software in order to create a CD. However, sometimes, you don&#8217;t want the whole data inside the CD, just a file, and would like to avoid burning…</p>]]></description>
			<content:encoded><![CDATA[<p>Files with the .iso extension are files ready for use with most  burning software in order to create a CD. However, sometimes, you don&#8217;t want the whole data inside the CD, just a file, and would like to avoid burning a CD just for that? Here are some solutions.</p>
<h2>Open a .iso file like an archive</h2>
<p>As the title suggests, we&#8217;ll use a sofware able to read ISO file to explore the .iso file content. I&#8217;ve currently found the following tools able to read an ISO file:</p>
<ul>
<li>WinRAR, a shareware <a href="http://www.rarlab.com/download.htm">free to try</a>.</li>
<li><a href="http://www.7-zip.org/">7-Zip, which is free and opensource</a>.</li>
</ul>
<p>In both cases, you simply open the ISO file and access it through the embeded  explorer. You may drag/drop files from the ISO file to your hard-disk.</p>
<p style="text-align: center"><img class="aligncenter" src="/files/2009/12/7zip-iso.gif" alt="7zip iso file explorer" /></p>
<h2><span id="more-51"></span>Mount a virtual CD drive</h2>
<p>If you wish to access the CD as if you burnt it, you need to use a virtual CD drive. There are plenty of offers, here are 2 freewares:</p>
<ul>
<li><a href="http://www.magiciso.com/tutorials/miso-magicdisc-overview.htm">MagicISO</a></li>
<li><a href="http://www.slysoft.com/en/download.html">Virtual CloneDrive</a></li>
</ul>
<h2>Other tools to manipulate ISO files</h2>
<p>And you, are you using any other (free) tool to read or even create ISO files?</p>
<div id="_mcePaste" style="overflow: hidden;width: 1px;height: 1px">http://www.magiciso.com/tutorials/miso-magicdisc-overview.htmMagicSIO</div>
]]></content:encoded>
			<wfw:commentRss>http://technoblog.novaclic.com/computer/read-an-iso-file-or-mount-a-virtual-cd-drive-for-free/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>

		</item>
		<item>
		<title>Dirty hack: force primary category for wordpress post permalink</title>
		<link>http://technoblog.novaclic.com/wordpress/force-primary-category-for-wordpress-post-permalink/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=force-primary-category-for-wordpress-post-permalink</link>
		<comments>http://technoblog.novaclic.com/wordpress/force-primary-category-for-wordpress-post-permalink/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 16:50:55 +0000</pubDate>
		<dc:creator>diablo</dc:creator>
				<category><![CDATA[PHP programming]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[code hack]]></category>
		<category><![CDATA[dirty]]></category>
		<category><![CDATA[permalink]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://technoblog.novaclic.com/?p=101</guid>
		<description><![CDATA[<p style="text-align: center"><img class="aligncenter" src="http://technoblog.novaclic.com/files/2010/06/the_permalink.png" alt="The permalink from Wordpress CODEX" /></p>
<p>I&#8217;m not especially proud of this hack. However, I was getting crazy by how the category used for a post permalink is choosen. And I could not figure out a clean way to control which is the primary permalink (I…</p>]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><img class="aligncenter" src="http://technoblog.novaclic.com/files/2010/06/the_permalink.png" alt="The permalink from Wordpress CODEX" /></p>
<p>I&#8217;m not especially proud of this hack. However, I was getting crazy by how the category used for a post permalink is choosen. And I could not figure out a clean way to control which is the primary permalink (I hope it&#8217;s not part of Wordpress 3.0&#8230;).</p>
<p><strong>You may need to set the primary category for permalink in two situations:</strong></p>
<ul>
<li>First, you want some consistency among your posts, having them in the same primary category.</li>
<li>Second, it&#8217;s never fun when, by adding an additional category to an existing post, it changes the post permalink!</li>
</ul>
<p><span id="more-101"></span>If you wonder how the &#8220;primary&#8221; category for a permalink is defined by wordpress, the answer is quite simple: they are ordered by ascending ID. So, if you add an old category to an existing post, your existing post will have a new permalink. And if, like me, you&#8217;re using <strong>wordpressMu</strong>, you&#8217;ll discover that a newly added category in a blog may have a very low ID because this category (or tag&#8230;) has already been used by any of the other blogs.</p>
<h2>The dirty hack</h2>
<p>It&#8217;s really not a code-hack I&#8217;m proud of. However, as I needed something, I believe some others may need it too, that&#8217;s why I&#8217;m sharing it.</p>
<p>To be on the safe side, I recommend to leave this hack in a standalone file (with my active theme files, in my case), and include it in the functions.php file.</p>
<p>The idea is to <strong>alter the &#8220;the_permalink&#8221; filter</strong>. So, let&#8217;s add the filter:</p>
<pre class="brush: php; light: true; title: ; notranslate">add_filter('the_permalink', 'custom_cat_order');</pre>
<p>Then, the custom filter function:</p>
<pre class="brush: php; title: ; notranslate">// Order by cat_order, otherwise by name, assuming it's a post permalink (dirty!)
function custom_cat_order( $content ) {
global $post;

// in case no post data found, do nothing
if ( @empty($post-&amp;gt;ID) ) return $content;
// otherwise, assuming current post is the right post (dirty!)

// custom/primary slug cat order defined here (dirty!)
$cat_order = array(&quot;directory&quot;, &quot;bonus&quot;, &quot;blog&quot;);
// add all remaining categories (with duplicates, dirty!)
$all_cats = get_categories();

// Build an array with categories slug
foreach( $all_cats as $cat)
$cat_order[] = $cat-&amp;gt;slug;

$cats = get_the_category($post-&amp;gt;ID);
if ( $cats ) {
// Build an array with Post categories slug
   foreach( $cats as $cat)
   $post_cats[] = $cat-&amp;gt;slug;
   $the_cats = array_intersect($cat_order, $post_cats);
   usort($cats, '_usort_terms_by_ID'); // order by ID
   $category0 = $cats[0]-&amp;gt;slug;

   $the_cat = array_shift($the_cats);
   // Assuming category is in-between slashes (dirty!)
   $content = str_replace(&quot;/&quot;.$category0.&quot;/&quot;, &quot;/&quot;.$the_cat.&quot;/&quot;, $content);
}

return $content;
}</pre>
<p>So, basically, I&#8217;m defining the categories with higher priority in the <code>$cat_order</code> array, and at the end search/replace the old category slug by the one with higher priority.</p>
<p>As you can see, it&#8217;s quite dirty&#8230; <strong>So if you figure out a cleanest way to do it, please let me know!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://technoblog.novaclic.com/wordpress/force-primary-category-for-wordpress-post-permalink/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>

		</item>
		<item>
		<title>Howto Reduce Hard Drive Noise using AAM</title>
		<link>http://technoblog.novaclic.com/computer/aam-reduces-hard-drive-noise/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=aam-reduces-hard-drive-noise</link>
		<comments>http://technoblog.novaclic.com/computer/aam-reduces-hard-drive-noise/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 06:56:03 +0000</pubDate>
		<dc:creator>diablo</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[aam]]></category>
		<category><![CDATA[bruit]]></category>
		<category><![CDATA[disque dur]]></category>
		<category><![CDATA[hard disk]]></category>
		<category><![CDATA[hdd]]></category>
		<category><![CDATA[hdparm]]></category>
		<category><![CDATA[Hitachi Feature Tool]]></category>
		<category><![CDATA[noise]]></category>
		<category><![CDATA[silence]]></category>
		<category><![CDATA[smart]]></category>

		<guid isPermaLink="false">http://technoblog.novaclic.com/?p=58</guid>
		<description><![CDATA[<p style="text-align: center"><img src="http://technoblog.novaclic.com/files/2010/01/hardisks.jpg" alt="hard disk drives" /></p>
<p>Most of modern hard drives support a function called AAM (Automatic Acoustic Management), often disabled by default. <strong>Noise reduction is obtained by reducing the head speed</strong>, thus increasing the disk access time. If you prefer silence over performance you might…</p>]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><img src="http://technoblog.novaclic.com/files/2010/01/hardisks.jpg" alt="hard disk drives" /></p>
<p>Most of modern hard drives support a function called AAM (Automatic Acoustic Management), often disabled by default. <strong>Noise reduction is obtained by reducing the head speed</strong>, thus increasing the disk access time. If you prefer silence over performance you might want to enable AAM to decrease the noise level of your hard drive and slightly increase the access time.</p>
<p>Note that access time is about moving the head, not transfering data. So, activating AAM may have no impact to your overall system at all. Highest performance impact reported is around -5%.Thus, for a desktop computer (or notebook), it&#8217;s wise to enable AAM. In addition, enabling AAM (and thus reducing head speed) has a good side-effect: <strong>reduce the disk power consumption</strong>, especially interesting for a laptop.</p>
<p>Choose the best value for AAM by tweaking around the recommended one, depending on the silent level you target. Possible values depend on the drive itself (maybe from zero to 254, or only two states: 128 or 254 for instance).</p>
<h2 style="font-size: 1.5em"><img src="http://technoblog.novaclic.com/wp-includes/js/tinymce/plugins/wordpress/img/trans.gif" alt="" /></h2>
<h2><span id="more-58"></span>Howto Enable AAM on a computer</h2>
<p>Just download the freeware <a title="hitachi feature tool" href="http://www.hitachigst.com/hdd/support/download.htm" target="_blank">Hitachi Feature Tool</a>, and run the setup tool to generate a bootable floppy or CD. Then, boot your computer over the created media to start the <strong>IBM/Hitachi Feature Tool</strong>. This tool makes it possible to enable, disable or choose a custom value for the Automatic Accustic Management feature, for any disk brand (not only Hitachi).</p>
<h2>Howto enable AAM on a Linux box</h2>
<p>Under Linux, you will need the hdparm utility. It is included in most Linux distributions, but on some &#8220;boxes&#8221;, like the Synology NAS, you&#8217;ll need to <a href="http://forum.synology.com/wiki/index.php/Overview_on_modifying_the_Synology_Server%2C_bootstrap%2C_ipkg_etc#Installing_compiled.2Fbinary_programs_using_ipkg">install it first</a>.</p>
<p>Then, setting AAM is as simple as:</p>
<blockquote><p>#hdparm -M 128 /dev/hda</p></blockquote>
<p>to set a value of 128 (rather quiet) for drive hda. The higher the value, the higher the speed (and thus the noise).</p>
<p><span> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://technoblog.novaclic.com/computer/aam-reduces-hard-drive-noise/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>

		</item>
		<item>
		<title>Wordpress Plugin Google Analytics reset forever</title>
		<link>http://technoblog.novaclic.com/wordpress/wordpress-plugin-google-analytics-reset-forever/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=wordpress-plugin-google-analytics-reset-forever</link>
		<comments>http://technoblog.novaclic.com/wordpress/wordpress-plugin-google-analytics-reset-forever/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 09:29:39 +0000</pubDate>
		<dc:creator>diablo</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[google analytics]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[workaround]]></category>

		<guid isPermaLink="false">http://technoblog.novaclic.fr/?p=7</guid>
		<description><![CDATA[<p style="text-align: center"><img class="aligncenter" src="http://technoblog.novaclic.com/files/2010/01/ga4wp.jpg" alt="Google Analytics Plugin for Wordpress" /></p>
<p>The <a href="http://wordpress.org/extend/plugins/google-analytics-for-wordpress/">google analytics plugin</a> for wordpress is useful: it allows to insert the google analytics tracking code without any change to the theme file.</p>
<p>There is however something very irritating with this plugin: each time I upgraded the plugin, I had to…</p>]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><img class="aligncenter" src="http://technoblog.novaclic.com/files/2010/01/ga4wp.jpg" alt="Google Analytics Plugin for Wordpress" /></p>
<p>The <a href="http://wordpress.org/extend/plugins/google-analytics-for-wordpress/">google analytics plugin</a> for wordpress is useful: it allows to insert the google analytics tracking code without any change to the theme file.</p>
<p>There is however something very irritating with this plugin: each time I upgraded the plugin, I had to re-enter the settings. And more frustrating: as long as you don&#8217;t update the settings, your stats are not recorded anymore by <a href="http://www.Google.com/Analytics">google analytics</a>. This is why I&#8217;m almost not upgrading it anymore <img src='http://technoblog.novaclic.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>I got an even worst surprise after an upgrade of both worpdress and the google analytics plugin: I was unable to save the parametrs, each try ended with:<span id="more-7"></span></p>
<blockquote><p>Google Analytics settings reset to default.</p></blockquote>
<p>For an unknown reason, after saving, the corrupted settings were reloaded.</p>
<p>The only workaround I found was a bit drastic: in the MySQL <strong>wp_options</strong> table, I&#8217;ve simply erased the &#8220;GoogleAnalyticsPP&#8221; entry.</p>
<p>To do the same thing (at your own risk, of course):</p>
<ul>
<li>Access your wordpress database using phpmyadmin for instance;</li>
<li>Search into the wp_options table the row where option_name = <span class="syntax"><span class="syntax_quote syntax_quote_single">&#8216;GoogleAnalyticsPP&#8217; </span></span></li>
<li><span class="syntax"><span class="syntax_quote syntax_quote_single">Edit this entry, erase content, save.<br />
</span></span></li>
</ul>
<p><span class="syntax"><span class="syntax_alpha syntax_alpha_reservedWord"> </span><span class="syntax_quote syntax_quote_single">You should now be again able to save your google analytics parameters.</span></span></p>
<div id="_mcePaste" style="overflow: hidden;width: 1px;height: 1px">
<h2>Google Analytics for WordPress Configuration</h2>
</div>
]]></content:encoded>
			<wfw:commentRss>http://technoblog.novaclic.com/wordpress/wordpress-plugin-google-analytics-reset-forever/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>

		</item>
		<item>
		<title>Search files using PHP with a mask pattern</title>
		<link>http://technoblog.novaclic.com/php-programming/php-search-files-with-mask-pattern/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=php-search-files-with-mask-pattern</link>
		<comments>http://technoblog.novaclic.com/php-programming/php-search-files-with-mask-pattern/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 09:41:56 +0000</pubDate>
		<dc:creator>diablo</dc:creator>
				<category><![CDATA[PHP programming]]></category>
		<category><![CDATA[filesearch]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://technoblog.novaclic.com/?p=80</guid>
		<description><![CDATA[<p>This morning, I cam to a very, very basic need: detect whether a file matching a specific pattern (like &#8216;*.txt&#8217;) is available.</p>
<p>However, I could not find any ready to use PHP function, although PHP5 provides some interesting functions, like <a href="http://www.php.net/manual/en/function.scandir.php">scandir()</a>.</p>
<p>After…</p>]]></description>
			<content:encoded><![CDATA[<p>This morning, I cam to a very, very basic need: detect whether a file matching a specific pattern (like &#8216;*.txt&#8217;) is available.</p>
<p>However, I could not find any ready to use PHP function, although PHP5 provides some interesting functions, like <a href="http://www.php.net/manual/en/function.scandir.php">scandir()</a>.</p>
<p>After completing writting such a function, I decided to share it. So here is it.</p>
<p>Bare in mind it requires PHP5 (or later), as it relies on <a href="http://www.php.net/manual/en/function.scandir.php">scandir()</a> and on <a href="http://fr.php.net/manual/en/function.fnmatch.php">fnmatch()</a>. Finally, this function while return the filtered directory content, regardless of the content being a file, a link or a directory.</p>
<p>Additional feature: by default, if you call the function more than once in your script in order to scan the same directory, it will read the directory only once: next times, it will use a cached content. To disable caching, set the third parameter to 1.</p>
<pre class="brush: php; title: ; notranslate">function searchdir( $path='.', $mask='*', $nocache=0 ){
 static $dir = array();
 if ( !isset($dir[$path]) || $nocache) {
 $dir[$path] = scandir($path);
 }
 foreach ($dir[$path] as $i=&amp;gt;$entry) {
 if ($entry!='.' &amp;amp;&amp;amp; $entry!='..' &amp;amp;&amp;amp; fnmatch($mask, $entry) ) {
 $sdir[] = $entry;
 }
 }
 if ($nocache)
 unset($dir);
 return ($sdir);
}</pre>
<p><strong>Did you find this small function useful? Do you have any improvment suggestion?</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://technoblog.novaclic.com/php-programming/php-search-files-with-mask-pattern/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>

		</item>
		<item>
		<title>Wordpress 2.9 is out&#8230; Wordpress 2.9.1 around the corner!</title>
		<link>http://technoblog.novaclic.com/wordpress/wordpress-2-9-and-wordpress-2-9-1/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=wordpress-2-9-and-wordpress-2-9-1</link>
		<comments>http://technoblog.novaclic.com/wordpress/wordpress-2-9-and-wordpress-2-9-1/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 10:59:27 +0000</pubDate>
		<dc:creator>diablo</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[new features]]></category>
		<category><![CDATA[nouveautés]]></category>
		<category><![CDATA[wordpress 2.9.0]]></category>

		<guid isPermaLink="false">http://technoblog.novaclic.com/?p=73</guid>
		<description><![CDATA[<p><img src="/files/2009/12/wp_2-9-0.png" border="1" alt="" align="right" />Carmen, the 2.9 version of WordPress has launched on December 19th.</p>
<p>You may be tempted to  upgrade your blog using the automatic function after discovering the exciting new feature included.</p>
<p>But, wait&#8230; There are <a href="http://wordpress.org/development/2009/12/wordpress-2-9-1-beta-1/">some flaws in this release</a>. So, you&#8217;d better…</p>]]></description>
			<content:encoded><![CDATA[<p><img src="/files/2009/12/wp_2-9-0.png" border="1" alt="" align="right" />Carmen, the 2.9 version of WordPress has launched on December 19th.</p>
<p>You may be tempted to  upgrade your blog using the automatic function after discovering the exciting new feature included.</p>
<p>But, wait&#8230; There are <a href="http://wordpress.org/development/2009/12/wordpress-2-9-1-beta-1/">some flaws in this release</a>. So, you&#8217;d better wait for the patch version 2.9.1 (already <a href="http://wordpress.org/development/2009/12/wordpress-2-9-1-beta-1/">available as beta</a>).</p>
<p>However, <a title="Is Worpdress 2.8.6 upgrade required ?" href="http://technoblog.novaclic.com/wordpress/worpdress-2-8-6-released/">unlike the 2.8.6 release</a>, the 2.9 release is worth considering the upgrade, with new  features targetting end-users, like<span id="more-73"></span></p>
<ul>
<li> <strong>B</strong><strong>uilt-in image  editor</strong> (crop, resize, rotate images),</li>
<li><strong>Batch plugin update</strong> (update all plugins at once),</li>
<li><strong>T</strong><strong>rash  feature</strong> for posts (now, you can undelete a post),</li>
<li><strong>Easy video embed</strong> (using a single link)</li>
</ul>
<p><strong>Themes designers</strong> will also get some interesting features (copied from the <a href="http://wordpress.org/development/2009/12/wordpress-2-9/">original  announcement</a>):</p>
<ul>
<li>Themes can register “post thumbnails” which allow them to attach an image to  the post, especially useful for magazine-style themes.</li>
<li>A new commentmeta table that allows arbitrary key/value pairs to be attached  to comments, just like posts, so you can now expand greatly what you can do in  the comment framework.</li>
<li>Custom post types have been upgraded with better API support so you can  juggle more types than just post, page, and attachment. (More of this planned  for 3.0.)</li>
<li>You can set custom theme directories, so a plugin can register a theme to be  bundled with it or you can have multiple shared theme directories on your  server.</li>
<li>Specify category templates not just by ID, like before, but by slug, which  will make it easier for theme developers to do custom things with categories —  like post types!</li>
<li>Registration and profiles are now extensible to allow you to collect things  more easily, like a user’s Twitter account or any other fields you can imagine.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://technoblog.novaclic.com/wordpress/wordpress-2-9-and-wordpress-2-9-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>

		</item>
		<item>
		<title>5 bootable &#8220;tools suits&#8221; to upgrade or troubleshoot a computer</title>
		<link>http://technoblog.novaclic.com/computer/best-5-bootables-cds/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=best-5-bootables-cds</link>
		<comments>http://technoblog.novaclic.com/computer/best-5-bootables-cds/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 10:16:09 +0000</pubDate>
		<dc:creator>diablo</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[boot cd]]></category>
		<category><![CDATA[computer diagnostic]]></category>
		<category><![CDATA[disk clone]]></category>
		<category><![CDATA[ghost]]></category>
		<category><![CDATA[partition]]></category>
		<category><![CDATA[partitioned magic]]></category>
		<category><![CDATA[rescue cd]]></category>

		<guid isPermaLink="false">http://technoblog.novaclic.com/?p=31</guid>
		<description><![CDATA[<p>I came with a very basic need: copy a Hard Disk Drive to another one. Well, there were some constraints:</p>
<ul>
<li>The HDD is used in a Network Attached Storage (NAS) running Linux, thus data on it are in native Linux format.</li>
<li>The…</li></ul>]]></description>
			<content:encoded><![CDATA[<p>I came with a very basic need: copy a Hard Disk Drive to another one. Well, there were some constraints:</p>
<ul>
<li>The HDD is used in a Network Attached Storage (NAS) running Linux, thus data on it are in native Linux format.</li>
<li>The source HDD is twice the size of the target HDD, while that actual data volume is of course smaller than the space available on the target HDD.</li>
</ul>
<p>Trust me, doing this &#8220;simple task&#8221; turned into a 3 days (and nights) nightmare. The good side of this, is that I (re-) discovered fantastic tools everyone should be aware of. All this &#8220;Tools Suits&#8221; are a collection of useful tools, compiled over a bootable CD, or even bootable usb stick.</p>
<p>My advice: you should select the compilation that better fit your need and make a bootable CD <strong>now</strong>. The day your computer will stop booting, you&#8217;ll thank me <img src='http://technoblog.novaclic.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> <span id="more-31"></span></p>
<h2>Howto Use a USB stick or bootable CD</h2>
<p>To run a bootable CD or bootable USB stick, you may need to do more than just inserting the media. Or not. So, get a first try: insert the media, and reboot your computer. If your computer starts Windows (or MacOS, or Linux or whatever you used to run), then you indeed have to do something more.</p>
<p>You&#8217;ll have t tell the computer to look for a bootable external media: it&#8217;s either an option during computer startup sequence (known as POST), like pressing the F8 key like crazy on some ASUS motherboard based computer, or holding donw the &#8216;c&#8217; key on a recent MacBook.</p>
<p>If you don&#8217;t find such option, your last chance is to go to the &#8220;BIOS SETUP&#8221; (again, press a specific key, may be [F1], may be [DELETE], may be [F10]&#8230; depending on your computer: read the manual &#8230; or the screen!), go to the &#8220;BOOT&#8221; submenu, then change the order to have your media booting first. However, remember that if you forget to change it back, your computer will always try to boot from the removable media first&#8230; if an infected media is inserted, you&#8217;ll infect your computer while booting (this is probably the oldest computer virus infection scheme: bootable floppies).</p>
<p>Finally, keep in mind that even if almost 100% of &#8220;running&#8221; computers are able to boot from a CD (while it was not true in 90&#8217;s for instance), some of them may not be able to boot from a USB stick. Especially if the stick is not plugged directly to the computer, but through an USB hub. If this is the case, try again with the USB stick plugged directly to any of the computer USB port.</p>
<p>The way to get the bootable media depends on the &#8220;Tools suit&#8221;:</p>
<h2>Ultimate Boot CD</h2>
<p>The <a href="http://www.ultimatebootcd.com/">Ultimate Boot CD</a> is a collection of &#8220;DOS-Like&#8221; tools. Being &#8220;DOS-Like&#8221; doesn&#8217;t means that you will need to learn complex command lines: most of the included tools comes with a delicious 90&#8217;s  &#8220;graphical&#8221; interface:</p>
<p style="text-align: center"><img class="aligncenter" src="../files/2009/12/UltimateBootCD-300x160.gif" alt="UltimateBootCD" width="300" height="160" /></p>
<p>The included tools range from diagnostic to repair, in various areas:</p>
<ul>
<li>Motherboard tools (CPU, memory, peripherals, &#8230;)</li>
<li>Hard Disk Tools (vendor specific and universal partition and cloning tools)</li>
<li>Filesystem Tools (NT password, AntiVirus, &#8230;)</li>
<li>Miscellaneous Tools (Network, DOS &amp; Linux boot disks, &#8230;)</li>
</ul>
<h3>UBCD USB stick or CD creation</h3>
<p><strong>To build a CD</strong>, you just need to <a href="http://www.ultimatebootcd.com/download.html">download the ISO image</a> and use any burn software.</p>
<p><strong>To get a bootable USB stick</strong>, it&#8217;s a bit more complicated:<br />
First, you will need to either burn the ISO file to a CD, or extract the files within the ISO file to your hard disk using a suitable utility. Then, use the included <span style="font-size: small"><tt>tools\ubcd2usb\ubcd2usb.bat</tt></span> to write UBCD to your USB memory stick. Note that <span style="font-size: small"><tt>ubcd2usb.bat</tt></span> will <strong>format and erase your entire USB memory stick</strong>. And remember: some of the UBCD apps may not work when started from the bootable USB stick.</p>
<h2>UBCD4Win</h2>
<p>UBCD4Win stands for <a href="http://www.ubcd4win.com/">Ultimate Boot CD For Windows</a>. As it&#8217;s name suggests, it&#8217;s the Windows based version of the <strong>Ultimate Boot CD</strong> mentionned above. Once you&#8217;ve booted on the UBCD4Win, you&#8217;ll experience a classical WinXP environnement, allowing to run Windows Applications and tools.</p>
<p style="text-align: center"><img class="size-medium wp-image-33 aligncenter" src="http://technoblog.novaclic.com/files/2009/12/ubcd4winMalware-300x225.jpg" alt="ubcd4win" width="300" height="225" /></p>
<p><strong>Among the provided tools, you&#8217;ll find:</strong></p>
<ul>
<li>Disk cloning and partition tools</li>
<li>Anti-Virus softwares</li>
<li>A bunch of drivers for various disk, LAN and other interfaces</li>
<li>Disk, memory and benchmark diagnotic tools</li>
<li>Some commercial tools (licence to be purchased separately)</li>
</ul>
<h3>Howto create a UBCD4Win Bootable CD</h3>
<p>Due to the WinXP boot environnement, you&#8217;ll not download an ISO image, but a tool allowing to build a bootable CD. And <strong>you will need a Windows XP (SP1 or SP2) original CD</strong>. So the steps are:</p>
<ol>
<li>Download <a href="http://www.ubcd4win.com/downloads.htm">latest Ultimate Boot CD for Windows</a></li>
<li>Install the configuration tool</li>
<li>Run the configuration tool, generate an ISO image</li>
<li>Burn the Iso image onto a CD</li>
</ol>
<h2>SystemRescueCD</h2>
<p>The <a href="http://www.sysresccd.org/">SystemRescueCd</a> is a Linux system rescue disk useful for administrating or repairing your system and data after a crash. It embeds various Linux environments, from command line to graphical ones. The SystemRescueCd is available is several versions: one for x86 compatible architecture (PC&#8217;s and Intel MacBooks), one for SPARC (SUN), one for PowerPC (older Mac computers).</p>
<p><strong>It comes with a lot of linux software such:</strong></p>
<ul>
<li> as system tools (parted, partimage, fstools, &#8230;)</li>
<li>basic tools (editors, midnight commander, network tools&#8230;)</li>
</ul>
<p>As most of the tools are graphical, newbie should not be afraid by the &#8220;Linux world&#8221;. However, beware: Unix command lines won&#8217;t ask you &#8220;are sure?&#8221;. It will obey, whatever you ask them to do. Even erase your main Hard Disk Drive in 2 secs. So, think twice when using command line tools!</p>
<h3>Howto burn a SystemRescueCD or create a bootable USB stick</h3>
<p>To burn a SystemRescueCd, it is as simple as download the ISO image and burn the image onto a blank CD. However, make sure to download the correct ISO file:</p>
<ul>
<li>The x86 edition supports both 32bits (IA32) and 64bits (AMD64 / EM64T) processors will probably be the one for you, even if you have a Intel based MacBook.</li>
<li>The SPARC edition is also available if you have an hardware based on the Sun architecture.</li>
<li>The PowerPC edition is needed for older Mac Computers, but may work for other PowerPC based computing units, like some NAS.</li>
</ul>
<p>To get a bootable stick, some more steps are required, as explained on the <a href="http://www.sysresccd.org/Sysresccd-manual-en_How_to_install_SystemRescueCd_on_an_USB-stick">SystemRescueCd Wiki</a>.</p>
<h2>CloneZilla</h2>
<p>The <a href="http://www.clonezilla.org/">CloneZilla</a> bootable CD is focusing on one system administrator activity: making system disk image and duplicating the image over several computer for either repair, student classroom reload or computer deployment.</p>
<p>Clonezilla is available in two versions: <a href="http://www.clonezilla.org/clonezilla-live/">Clonezilla live</a> and <a href="http://www.clonezilla.org/clonezilla-server-edition/">Clonezilla SE (server edition)</a>. Clonezilla live is suitable for single machine backup and restore. While Clonezilla SE is for massive deployment, it can clone many (40 plus!) computers simultaneously. Clonezilla saves and restores only used blocks in the harddisk. This increases the clone efficiency: 10 minutes to clone a 5.6 GBytes system image to 41 computers via multicasting! Duplicate IP addresses and computer names can be avoided using <a href="http://www.drbl-winroll.org/">drbl-Winroll</a>, also written by the CloneZilla team.</p>
<p>Clonezilla is using several Linux tools:</p>
<ul>
<li><a href="http://drbl.sf.net/">DRBL</a>,</li>
<li><a href="http://www.partimage.org/" target="_blank">Partition Image</a>,</li>
<li><a href="http://www.linux-ntfs.org/" target="_blank">ntfsclone</a>,</li>
<li><a href="http://partclone.org/">partclone</a>,</li>
<li><a href="http://udpcast.linux.lu/" target="_blank">udpcast</a></li>
</ul>
<h3>HowTo create and use a Clonezilla bootable media</h3>
<p><strong>Making a bootable CloneZilla live CD/DVD</strong> is pretty easy: <a href="http://www.clonezilla.org/download/sourceforge/">download the Clonezilla live ISO image</a> and burn it.</p>
<p><strong>Making a bootable CloneZilla Live USB stick</strong> is a bit easier than usual: no need to burn a CD! To make your USB flash drive or hard drive bootable, first <a name="make-usb"></a><a href="http://www.clonezilla.org/download/sourceforge/" target="_blank">download Clonezilla live zip file</a> and extract the files on your USB flash drive or USB hard drive. Then, make it bootable on a MS Windows or GNU/Linux computer (look at the <a href="http://www.clonezilla.org/clonezilla-live/liveusb.php">CloneZilla instructions</a>).</p>
<p>To setup a CloneZilla Server, read carefully the CloneZilla documentation!</p>
<p><strong>Important CloneZilla Live password information:</strong></p>
<p>Two accounts are available:</p>
<ol>
<li>account &#8220;user&#8221; with sudo privilege, password is &#8220;live&#8221;,</li>
<li>administration account &#8220;root&#8221;, no password. Therefore you can not login as root, the only way to get root privilege is to login as user, and run &#8220;sudo su -&#8221; to become root.</li>
</ol>
<h2>Bart&#8217;s PE</h2>
<p>I could&#8217;nt close this review without a mention of <a href="http://www.nu2.nu/pebuilder/">Bart&#8217;s Preinstalled Environment (BartPE) bootable live windows CD/DVD</a>. Developped from scratch by Bart Lagerweij, it opened a new Era in home (and company) computer deployment. Inspired by Microsoft WinPE, and application only available to <em>Microsoft Software Assurance Members.</em></p>
<p style="text-align: center"><a href="http://www.nu2.nu/pebuilder/"><img class="aligncenter" src="/files/2009/12/pebuilder.jpg" alt="Bart's PE Builder tool" /></a></p>
<p>So, if you want to generate your own BartPE bootable CD, you should have a look at the <a href="http://www.nu2.nu/pebuilder/">PE Builder software</a> written by Bart. Of course, you&#8217;ll still need a WinXP original CD, like for <strong>UBCD4Win</strong>&#8230; which is indeed based on Bart&#8217;s <strong>PE Builder Software</strong>.</p>
<h2>What about you ?<strong><br />
</strong></h2>
<p><strong>Do you have any experience to share using one of this tools, or even another bootable media to suggest?</strong></p>
<p>Feel free to post your comments!</p>
]]></content:encoded>
			<wfw:commentRss>http://technoblog.novaclic.com/computer/best-5-bootables-cds/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>

		</item>
		<item>
		<title>Is Worpdress 2.8.6 upgrade required ?</title>
		<link>http://technoblog.novaclic.com/wordpress/worpdress-2-8-6-released/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=worpdress-2-8-6-released</link>
		<comments>http://technoblog.novaclic.com/wordpress/worpdress-2-8-6-released/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 10:48:23 +0000</pubDate>
		<dc:creator>diablo</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://technoblog.novaclic.com/?p=20</guid>
		<description><![CDATA[<p><img class="alignright" src="/files/2009/11/badge-wordpress.png" border="0" alt="Wordpress Logo" width="75" height="76" /></p>
<p>Each time there is a new release, you&#8217;re invited to upgrade your wordpress setup.</p>
<p>In a perfect world, everyone is doing so. But in our (crazy) world, you may want to defer the upgrade. And regarding <a href="http://wordpress.org/development/2009/11/wordpress-2-8-6-security-release/">wordpress version 2.8.6</a>, you would…</p>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" src="/files/2009/11/badge-wordpress.png" border="0" alt="Wordpress Logo" width="75" height="76" /></p>
<p>Each time there is a new release, you&#8217;re invited to upgrade your wordpress setup.</p>
<p>In a perfect world, everyone is doing so. But in our (crazy) world, you may want to defer the upgrade. And regarding <a href="http://wordpress.org/development/2009/11/wordpress-2-8-6-security-release/">wordpress version 2.8.6</a>, you would be right. Provided you&#8217;re not concerned by this security warning:</p>
<blockquote><p>2.8.6 fixes two security problems that can be exploited by registered, logged in users who have posting privileges.  If you have untrusted authors on your blog, upgrading to 2.8.6 is recommended.</p></blockquote>
<p>In other words, if only you (or trusted users) have posting privileges, you may just wait for next wordpress release <img src='http://technoblog.novaclic.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://technoblog.novaclic.com/wordpress/worpdress-2-8-6-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>

		</item>
	</channel>
</rss>

