<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
<title>RSS  - davidonzo's blog :)</title>
<link>http://www.davidonzo.com/</link>
<description>RSS  - davidonzo's blog :)</description>
<language>IT-it</language>
<generator>davidonzo coding</generator>
<pubDate>Sat, 04 Jul 2009 11:34:02 +0100</pubDate>
<ttl>60</ttl>
<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/davidonzo/en" type="application/rss+xml" /><item>
<title>It's time to update?</title>
<link>http://feedproxy.google.com/~r/davidonzo/en/~3/yNERme1FxBg/</link>
<description><![CDATA[<p><a href="http://www.davidonzo.com/post/989/it039s-time-to-update/"><img src="http://www.davidonzo.com/language/flag/it.gif" alt="it" /></a> <a href="http://www.davidonzo.com/lng/en/post/989/it039s-time-to-update/"><img src="http://www.davidonzo.com/language/flag/en.gif" alt="en" /></a> </p><div align="center"><a title="Calendario di davidonzo, su Flickr" href="http://www.flickr.com/photos/davidonzo/3385707150/"><img width="375" height="500" alt="Calendario" src="http://farm4.static.flickr.com/3440/3385707150_df63b3cfed.jpg" /></a></div><p>Tags: <a href="http://technorati.com/tag/calendario/" rel="tag">calendario</a></p>]]></description>
<pubDate>Wed, 25 Mar 2009 22:58:13 +0100</pubDate>
<guid isPermaLink="false">http://www.davidonzo.com/lng/en/post/989/it039s-time-to-update/</guid>
<feedburner:origLink>http://www.davidonzo.com/lng/en/post/989/it039s-time-to-update/</feedburner:origLink></item>
<item>
<title>[PHP - Mac OS X] How to install the cURL library</title>
<link>http://feedproxy.google.com/~r/davidonzo/en/~3/rJBiSmmZi9M/</link>
<description><![CDATA[<p><a href="http://www.davidonzo.com/post/986/php-mac-os-x-how-to-install-the-curl-library/"><img src="http://www.davidonzo.com/language/flag/it.gif" alt="it" /></a> <a href="http://www.davidonzo.com/lng/en/post/986/php-mac-os-x-how-to-install-the-curl-library/"><img src="http://www.davidonzo.com/language/flag/en.gif" alt="en" /></a> </p><p><img align="left" alt="php at davidonzo.com" src="http://www.davidonzo.com/public/image/loghi/php.gif" />Installing the cURL library on Leopard Mac OS X is very easy to do. First of all download the <a target="_blank" href="http://curl.haxx.se/download.html">sources from the official web site</a>. Unpack the tarball in your <code>/usr/sources/</code> directory and join it. Downloading the file today, you'll get the curl-7.19.4 version.</p>
<p>&nbsp;</p>
<p><span class="Code">cd /usr/sources/curl-7.19.4<br />
./configure<br />
make<br />
make test<br />
sudo make install</span></p>
<p>&nbsp;</p>
<p>If you want to personalize the installation directory use the option <code>--prefix=/path/to/curl</code> in the ./configure. And remember, the <code>make test</code> command is optional but very important!</p>
<p>&nbsp;</p>
<p>Once the cURL library is compiled, you need to reconfigure your PHP installation. Join the php's sources directory and configure it with the following commands.</p>
<p>&nbsp;</p>
<p><span class="Code">./configure --prefix=/usr/local/php5 --enable-calendar --with-apxs2=/usr/sbin/apxs --enable-mbstring --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql=/usr/local/mysql/ --with-gd --enable-soap --with-zlib --with-jpeg-dir=/usr/local/bin --with-png-dir=/usr/local/bin --enable-sockets <strong>--with-curl=/usr/lib</strong><br />
make<br />
sudo make install</span></p>
<p>&nbsp;</p>
<p>Restart apache from the system's control panel o by typing <code>sudo apachectl graceful</code> in a terminal window. That's all.</p><p>Tags: <a href="http://technorati.com/tag/PHP/" rel="tag">PHP</a>, <a href="http://technorati.com/tag/Leopard/" rel="tag">Leopard</a>, <a href="http://technorati.com/tag/Mac+OS+X/" rel="tag">Mac OS X</a>, <a href="http://technorati.com/tag/cURL/" rel="tag">cURL</a></p>]]></description>
<pubDate>Thu, 19 Mar 2009 14:29:56 +0100</pubDate>
<guid isPermaLink="false">http://www.davidonzo.com/lng/en/post/986/php-mac-os-x-how-to-install-the-curl-library/</guid>
<feedburner:origLink>http://www.davidonzo.com/lng/en/post/986/php-mac-os-x-how-to-install-the-curl-library/</feedburner:origLink></item>
<item>
<title>MyGalleryGenerator - Free images gallery generetor</title>
<link>http://feedproxy.google.com/~r/davidonzo/en/~3/vaydTzRIlOc/</link>
<description><![CDATA[<p><a href="http://www.davidonzo.com/post/983/mygallerygenerator-free-images-gallery-generetor/"><img src="http://www.davidonzo.com/language/flag/it.gif" alt="it" /></a> <a href="http://www.davidonzo.com/lng/en/post/983/mygallerygenerator-free-images-gallery-generetor/"><img src="http://www.davidonzo.com/language/flag/en.gif" alt="en" /></a> </p><p><a target="_blank" href="http://www.mygallerygenerator.com/"><img width="200" height="200" align="left" alt="mygallerygenerator" src="http://www.davidonzo.com/public/image/browser/mgg.png" />MyGalleryGenerator</a> si the simpliest way to create an HTML photo gallery. Upload your photos (jpg, png and gif allowed), set the title and a nice description for any photo, and the gallery will be automatically generated!</p>
<p>&nbsp;</p>
<p>Once you have uploaded photos, the service will create the thumbnails, the main gallery files, <a href="http://www.mygallerygenerator.com/" target="_blank">Lightbox 2</a> will be applied to show full size photos, and then it will zip all. Just download the file, unzip it and upload the content to your website. That's all!</p>
<p>&nbsp;</p>
<p>Are you HTML familiar? You are free to customize the gallery by editing the main gallery file and/or the CSS file associated.  Do you want to see more? Let's check the example gallery and try it making your own photo gallery.</p>
<p>&nbsp;</p>
<p>MyGellaryGenerator is totally free! No registration required. For this reason there's some limitation:</p>
<ul>
    <li>Just 9 photos per gallery</li>
    <li>Maximum file size is 1mb per file</li>
    <li>No more then 3 galleries generated for person</li>
</ul>
<p>Enjoy!</p><p>Tags: <a href="http://technorati.com/tag/mygallerygenerator/" rel="tag">mygallerygenerator</a></p>]]></description>
<pubDate>Tue, 17 Mar 2009 22:05:58 +0100</pubDate>
<guid isPermaLink="false">http://www.davidonzo.com/lng/en/post/983/mygallerygenerator-free-images-gallery-generetor/</guid>
<feedburner:origLink>http://www.davidonzo.com/lng/en/post/983/mygallerygenerator-free-images-gallery-generetor/</feedburner:origLink></item>
<item>
<title>WhoIsHim.com - Badge, search tools and other updates</title>
<link>http://feedproxy.google.com/~r/davidonzo/en/~3/WV6gxWHpBN0/</link>
<description><![CDATA[<p><a href="http://www.davidonzo.com/post/970/whoishimcom-badge-search-tools-and-other-updates/"><img src="http://www.davidonzo.com/language/flag/it.gif" alt="it" /></a> <a href="http://www.davidonzo.com/lng/en/post/970/whoishimcom-badge-search-tools-and-other-updates/"><img src="http://www.davidonzo.com/language/flag/en.gif" alt="en" /></a> </p><p><a target="_blank" href="http://www.whoishim.com/"><img align="left" alt="WhoIsHim.com at davidonzo.com" src="http://www.davidonzo.com/public/image/whoishim/flogo.png" /><strong>WhoIsHim.com</strong></a> developing doesn't stop! We now have a real database based on real searches. So we are now able to improve the services as well. New search tools, new search evaluation algorithm and the badge builder who permit you to create a nice badge for your site / blog.</p>
<p>&nbsp;</p>
<h3>Search Tools</h3>
<p>A natural evolution for a service like this. By the <a target="_blank" href="http://www.whoishim.com/tools.html">new Search Tools page</a> it's possibile add WhoIsHim to your search engine in Firefox and Internet Explorer. Just a click to enable your browser to make search directly to WhoIsHim. And only for Mac OS X users, the WhoIsHim dashboard widget.</p>
<p align="center"><img height="68" width="424" src="http://www.davidonzo.com/public/image/whoishim/dashboard.png" alt="dashboard whoishim at davidonzo.com" /></p>
<p>&nbsp;</p>
<h3>Badge</h3>
<p>Many people suggest us to improve a badge support for blogger and other people wants to use a WhoIsHim widget in theyr *About* page. Nice idea! And we hope you find nice the new <a target="_blank" href="http://www.whoishim.com/badge.html">Badge Builder</a>, where you'll be able to make your own WhoIsHim badge - widget. Some badge examples.</p>
<p>&nbsp;</p>
<p><script type="text/javascript" src="http://www.whoishim.com/embed/0/2adeb64ba5b896029f69c8cad5683f00/Davide+Baglieri/20.js"></script> <script type="text/javascript" src="http://www.whoishim.com/embed/1/2adeb64ba5b896029f69c8cad5683f00/Davide+Baglieri/16.js"></script></p>
<p>&nbsp;</p>
<h3>New Search Evaluation Algorithm</h3>
<p>The most important change! Using a *real* database searches we finally had the possibility to see how to organize the search evaluation as well. Now searches evaluations are reliablest! We hope you continue not only to make search, but to vote search sites results. Only by this way we can grante you the best evaluation's performances.</p>
<p>&nbsp;</p>
<p>Many thanks to all people gave us suggestions, bug reports and any other impression about the service. We need your feedbacks, 'cause you are the final WhoIsHim users and the system is builded for you! So, continue to <a href="http://www.whoishim.com/contact.html" target="_blank">contact us</a> for any question, suggestion and all!</p><p>Tags: <a href="http://technorati.com/tag/WhoIsHim/" rel="tag">WhoIsHim</a></p>]]></description>
<pubDate>Mon, 16 Feb 2009 14:27:05 +0100</pubDate>
<guid isPermaLink="false">http://www.davidonzo.com/lng/en/post/970/whoishimcom-badge-search-tools-and-other-updates/</guid>
<feedburner:origLink>http://www.davidonzo.com/lng/en/post/970/whoishimcom-badge-search-tools-and-other-updates/</feedburner:origLink></item>
<item>
<title>WhoIsHim.com - One link to bookmark all site searching informations about people</title>
<link>http://feedproxy.google.com/~r/davidonzo/en/~3/0TgrvQx2w9k/</link>
<description><![CDATA[<p><a href="http://www.davidonzo.com/post/960/whoishimcom-one-link-to-bookmark-all-site-searching-informations-about-people/"><img src="http://www.davidonzo.com/language/flag/it.gif" alt="it" /></a> <a href="http://www.davidonzo.com/lng/en/post/960/whoishimcom-one-link-to-bookmark-all-site-searching-informations-about-people/"><img src="http://www.davidonzo.com/language/flag/en.gif" alt="en" /></a> </p><p><a href="http://www.whoishim.com/" target="_blank"><img align="left" width="189" height="35" alt="whoishim.com" src="http://www.davidonzo.com/public/image/whoishim/flogo.png" />WhoisHim.Com</a> is a web application providing to search informations about people in the world wide web. One link to bookmark all site searching informations about people. It just provides external links, divides by categories, such as search engines, social networks, profiling sites and many other places where it's possible to find informations about someone.</p>
<p>&nbsp;</p>
<p>Just insert first name and last name in the form box, click on search(img) and the application will show a page containing all search links to external resources.</p>
<p>&nbsp;</p>
<p>Users can vote good searches by clicking on the star(img) and by this way the system will calculate a global evaluation of the search engines and the search strings.</p>
<p>&nbsp;</p>
<p>At the foot of any site search link is diplayed the search evaluation calculated on the users votes for any search site and the search string.</p>
<ul>
    <li><img align="middle" width="140" height="3" src="http://www.davidonzo.com/public/image/whoishim/no.png" alt="no" />the rank is too low.</li>
    <li><img align="middle" width="140" height="3" src="http://www.davidonzo.com/public/image/whoishim/po.png" alt="po" />the rank maybe good.</li>
    <li><img align="middle" width="140" height="3" src="http://www.davidonzo.com/public/image/whoishim/si.png" alt="si" />high rank.</li>
</ul>
<p>&nbsp;</p>
<p>The application is on beta version. We really need any feedback(link) like bugs report, search sites to include and any other useful suggestion to improve the service.</p><p>Tags: <a href="http://technorati.com/tag/Whoishim/" rel="tag">Whoishim</a></p>]]></description>
<pubDate>Mon, 02 Feb 2009 20:52:55 +0100</pubDate>
<guid isPermaLink="false">http://www.davidonzo.com/lng/en/post/960/whoishimcom-one-link-to-bookmark-all-site-searching-informations-about-people/</guid>
<feedburner:origLink>http://www.davidonzo.com/lng/en/post/960/whoishimcom-one-link-to-bookmark-all-site-searching-informations-about-people/</feedburner:origLink></item>
<item>
<title>Mobile user agent list</title>
<link>http://feedproxy.google.com/~r/davidonzo/en/~3/zELG2QSfnuU/</link>
<description><![CDATA[<p><a href="http://www.davidonzo.com/post/948/mobile-user-agent-list/"><img src="http://www.davidonzo.com/language/flag/it.gif" alt="it" /></a> <a href="http://www.davidonzo.com/lng/en/post/948/mobile-user-agent-list/"><img src="http://www.davidonzo.com/language/flag/en.gif" alt="en" /></a> </p><p><img height="118" width="63" align="left" src="http://www.davidonzo.com/public/image/browser/useragentmobile.jpg" alt="user agent mobile" />Time to begin some nice improve to this blog. But I need a correct list of mobile device user agents, so I write an array including all mobile user agent's browser I found surfing the web.</p>
<p>&nbsp;</p>
<p>The list is available <a href="http://www.davidonzo.com/public/file/mobile-user-agent.txt" target="_blank"><strong>downloading this file</strong></a>. I hope it will be usefull for someone and also hope many people help me to maintain it updated.</p>
<p>&nbsp;</p>
<p>Have fun!</p><p>Tags: </p>]]></description>
<pubDate>Thu, 08 Jan 2009 10:30:43 +0100</pubDate>
<guid isPermaLink="false">http://www.davidonzo.com/lng/en/post/948/mobile-user-agent-list/</guid>
<feedburner:origLink>http://www.davidonzo.com/lng/en/post/948/mobile-user-agent-list/</feedburner:origLink></item>
<item>
<title>Nice present idea for Christmas 2008</title>
<link>http://feedproxy.google.com/~r/davidonzo/en/~3/NfXzlAJB2AU/</link>
<description><![CDATA[<p><a href="http://www.davidonzo.com/post/946/nice-present-idea-for-christmas-2008/"><img src="http://www.davidonzo.com/language/flag/it.gif" alt="it" /></a> <a href="http://www.davidonzo.com/lng/en/post/946/nice-present-idea-for-christmas-2008/"><img src="http://www.davidonzo.com/language/flag/en.gif" alt="en" /></a> </p><p align="center">[youtube]http://www.youtube.com/watch?v=Ph79vPIiWbM[/youtube]</p><p>Tags: <a href="http://technorati.com/tag/Natale/" rel="tag">Natale</a></p>]]></description>
<pubDate>Mon, 22 Dec 2008 19:48:26 +0100</pubDate>
<guid isPermaLink="false">http://www.davidonzo.com/lng/en/post/946/nice-present-idea-for-christmas-2008/</guid>
<feedburner:origLink>http://www.davidonzo.com/lng/en/post/946/nice-present-idea-for-christmas-2008/</feedburner:origLink></item>
<item>
<title>[PHP] How to create live gif, png and jpeg thumbalins</title>
<link>http://feedproxy.google.com/~r/davidonzo/en/~3/Vd5Er8YDWgU/</link>
<description><![CDATA[<p><a href="http://www.davidonzo.com/post/924/php-how-to-create-live-gif-png-and-jpeg-thumbalins/"><img src="http://www.davidonzo.com/language/flag/it.gif" alt="it" /></a> <a href="http://www.davidonzo.com/lng/en/post/924/php-how-to-create-live-gif-png-and-jpeg-thumbalins/"><img src="http://www.davidonzo.com/language/flag/en.gif" alt="en" /></a> </p><p><img align="left" alt="php at davidonzo.com" src="http://www.davidonzo.com/public/image/loghi/php.gif" />I'm trying to have time for a blog template restyling. In order to do it I write a simple file to create live png, jpeg and gif thumbelins.</p>
<p>&nbsp;</p>
<p>This script require the <a target="_blank" href="http://www.libgd.org/Main_Page">GD</a> compiled on your PHP installation.</p>
<p>&nbsp;</p>
<p><span class="Code">&lt;?php<br />
&nbsp;&nbsp; $file = $_GET['file'];<br />
&nbsp;&nbsp; $resize = $_GET['w'];<br />
&nbsp;&nbsp; $altez&nbsp; = $_GET['h'];<br />
<br />
&nbsp;&nbsp;&nbsp; $cosa = getimagesize($file);<br />
&nbsp;&nbsp;&nbsp; $width = ($resize &lt; $cosa[0]) ? $resize : $cosa[0];<br />
&nbsp;&nbsp;&nbsp; $alte = (!$altez) ? ceil(($cosa[1] * $width)/$cosa[0])+1 : $altez;<br />
&nbsp;&nbsp;&nbsp; $min&nbsp; = imagecreatetruecolor($width, $alte);<br />
&nbsp;&nbsp;&nbsp;&nbsp; switch($cosa['mime']){<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case 'image/png':<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; header('Content-Type: image/png');<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $im = imagecreatefrompng($file);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; imagealphablending($min, false);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; imagecopyresized($min, $im, 0, 0, 0, 0, $width, $alte, imageSx($im), imageSy($im));<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; imagesavealpha($min, true);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; imagepng($min,'',8,PNG_ALL_FILTERS);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br />
&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case 'image/gif':<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; header('Content-Type: image/png');<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $im = imagecreatefromgif($file);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; imagealphablending($min, false);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $colorTransparent = imagecolorallocatealpha($min, 0, 0, 0, 127);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; imagefill($min, 0, 0, $colorTransparent);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; imagecopyresized($min, $im, 0, 0, 0, 0, $width, $alte, imageSx($im), imageSy($im));<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; imagesavealpha($min, true);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; imagepng($min,'',8,PNG_ALL_FILTERS);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br />
&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case 'image/jpeg':<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case 'image/jpg':<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; header('Content-Type: image/jpeg');<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $im = imagecreatefromjpeg($file);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; imagecopyresized($min, $im, 0, 0, 0, 0, $width, $alte, imageSx($im), imageSy($im));<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; imagejpeg($min,'',85);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; imagedestroy($min);<br />
?&gt;</span></p>
<p>&nbsp;</p>
<h3>How To Use It</h3>
<p>Write this code into a file named resize.php (of course you can choose a different name) and launch it via GET execution using a link like this below.<br />
&nbsp;</p>
<p><span class="Code"> <br />
http://example.com/resize.php?file=http://example.com/img.png&amp;w=200&amp;h=100 </span></p>
<p>&nbsp;</p>
<h4>var $file - Required - string</h4>
<p>Must be a valid image address. Just gif, png or jpeg supported.</p>
<p>&nbsp;</p>
<h4>var $w - Required - integer</h4>
<p>Set the width value of the image, resizing it using the specified pixel. If $h is not used, the image will be resized maintaining the original proportion.</p>
<p>&nbsp;</p>
<h4>var $h - Optional - integer</h4>
<p>Set the height value of the image. It can cause loss of the proportions of the original image. Be carefull using it.</p>
<p>&nbsp;</p>
<h4>TODO</h4>
<p>The script doesn't manage exception like unreadable file, not found error and type not supported. ATM I don't need these function. Anyway, if someone want to write this part of the cose and share it, it will be apprecied.</p><p>Tags: <a href="http://technorati.com/tag/PHP/" rel="tag">PHP</a>, <a href="http://technorati.com/tag/PHP5/" rel="tag">PHP5</a>, <a href="http://technorati.com/tag/Tutorial/" rel="tag">Tutorial</a>, <a href="http://technorati.com/tag/GD/" rel="tag">GD</a></p>]]></description>
<pubDate>Thu, 30 Oct 2008 11:55:31 +0100</pubDate>
<guid isPermaLink="false">http://www.davidonzo.com/lng/en/post/924/php-how-to-create-live-gif-png-and-jpeg-thumbalins/</guid>
<feedburner:origLink>http://www.davidonzo.com/lng/en/post/924/php-how-to-create-live-gif-png-and-jpeg-thumbalins/</feedburner:origLink></item>
<item>
<title>Tag pre now available on comment form</title>
<link>http://feedproxy.google.com/~r/davidonzo/en/~3/r2AgepX5y8M/</link>
<description><![CDATA[<p><a href="http://www.davidonzo.com/post/923/tag-pre-now-available-on-comment-form/"><img src="http://www.davidonzo.com/language/flag/it.gif" alt="it" /></a> <a href="http://www.davidonzo.com/lng/en/post/923/tag-pre-now-available-on-comment-form/"><img src="http://www.davidonzo.com/language/flag/en.gif" alt="en" /></a> </p><p>According to a <a target="_blank" href="http://www.davidonzo.com/post/914/javascript-funzione-inarray/#comm28480">Giambo</a> request is now available on comment form the <a target="_blank" href="http://lau.csi.it/risorse/xhtml_tagxtag/pre.shtml">&lt;pre&gt;</a> tag, that permit to insert preformatted text. By this way it will be possible to insert text source code like without missing the <a target="_blank" href="http://www.w3.org/TR/CSS21/text.html#propdef-text-indent">text indent</a> so usefull to write and red source code.</p>
<p>&nbsp;</p>
<p>All CSS credits are to Giambo.</p><p>Tags: <a href="http://technorati.com/tag/pre/" rel="tag">pre</a>, <a href="http://technorati.com/tag/css/" rel="tag">css</a>, <a href="http://technorati.com/tag/Giambo/" rel="tag">Giambo</a></p>]]></description>
<pubDate>Wed, 29 Oct 2008 15:56:27 +0100</pubDate>
<guid isPermaLink="false">http://www.davidonzo.com/lng/en/post/923/tag-pre-now-available-on-comment-form/</guid>
<feedburner:origLink>http://www.davidonzo.com/lng/en/post/923/tag-pre-now-available-on-comment-form/</feedburner:origLink></item>
<item>
<title>[JavaScript] in_array function</title>
<link>http://feedproxy.google.com/~r/davidonzo/en/~3/OAzb0ZC8b74/</link>
<description><![CDATA[<p><a href="http://www.davidonzo.com/post/914/javascript-inarray-function/"><img src="http://www.davidonzo.com/language/flag/it.gif" alt="it" /></a> <a href="http://www.davidonzo.com/lng/en/post/914/javascript-inarray-function/"><img src="http://www.davidonzo.com/language/flag/en.gif" alt="en" /></a> </p><p>Easy to think, easy to use</p>
<p>&nbsp;</p>
<p><span class="Code">function in_array(thaArray, element){<br />
&nbsp;var res=false;<br />
&nbsp; for(var e=0;e&lt;thaArray.length;e++){<br />
&nbsp;&nbsp;&nbsp;&nbsp; if(thaArray == element[e]){<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res=true;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br />
&nbsp;&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp; }<br />
&nbsp;return res;<br />
}</span></p><p>Tags: <a href="http://technorati.com/tag/JavaScript/" rel="tag">JavaScript</a>, <a href="http://technorati.com/tag/in_array/" rel="tag">in_array</a>, <a href="http://technorati.com/tag/array/" rel="tag">array</a></p>]]></description>
<pubDate>Wed, 15 Oct 2008 10:39:33 +0200</pubDate>
<guid isPermaLink="false">http://www.davidonzo.com/lng/en/post/914/javascript-inarray-function/</guid>
<feedburner:origLink>http://www.davidonzo.com/lng/en/post/914/javascript-inarray-function/</feedburner:origLink></item>
<item>
<title>[PHP] Extracting images from HTML using PHP5</title>
<link>http://feedproxy.google.com/~r/davidonzo/en/~3/WKH5K_A-fDc/</link>
<description><![CDATA[<p><a href="http://www.davidonzo.com/post/911/php-extracting-images-from-html-using-php5/"><img src="http://www.davidonzo.com/language/flag/it.gif" alt="it" /></a> <a href="http://www.davidonzo.com/lng/en/post/911/php-extracting-images-from-html-using-php5/"><img src="http://www.davidonzo.com/language/flag/en.gif" alt="en" /></a> </p><p><img width="120" height="67" align="left" alt="php at davidonzo.com" src="http://www.davidonzo.com/public/image/loghi/php.gif" />I was working on some template modification of this blog, when I dediced to make a php image extractor function. I don't love to use big class with thousend of code lines to parse html.</p>
<p>&nbsp;</p>
<p>Looking on PHP5 core it seems to be some <a target="_blank" href="http://it2.php.net/manual/it/book.dom.php">DOM</a> function available really usefull to parse html document easly. Using <a target="_blank" href="http://it2.php.net/manual/it/class.domxpath.php">DOMXPath</a> class and <a target="_blank" href="http://it2.php.net/manual/it/domelement.getattribute.php">DOMElement::getAttribute</a> function you'll need just some beet line of code to extract the needed html string.</p>
<p>&nbsp;</p>
<p>The easiest way to explain it, is write the code :-)</p>
<p>&nbsp;</p>
<p><span class="Code">&lt;?php<br />
&nbsp; $myVar = &quot;Ciao &lt;br /&gt;&lt;img src=\&quot;11.jpg\&quot; alt=\&quot;foto\&quot; /&gt;&lt;br /&gt;&lt;img src=\&quot;12.jpg\&quot; alt=\&quot;foto\&quot; /&gt;&quot;;<br />
&nbsp; <br />
&nbsp; $doc = new DOMDocument;<br />
&nbsp; $doc-&gt;loadHTML($myVar);<br />
&nbsp; <br />
&nbsp; $xpath = new DOMXPath($doc);<br />
&nbsp; <br />
&nbsp; $nodo = $xpath-&gt;query('//img[@src]');<br />
&nbsp;&nbsp;&nbsp; foreach ($nodo as $nodo){<br />
&nbsp;&nbsp;&nbsp; $imgsrc = $nodo-&gt;getAttribute('src');<br />
&nbsp;&nbsp;&nbsp; echo &quot;&lt;img src=\&quot;&quot;.$imgsrc.&quot;\&quot; alt=\&quot;myMagicImage\&quot; /&gt;&quot;; <br />
&nbsp; }<br />
?&gt;</span></p>
<p>&nbsp;</p>
<p>Short and sweety, isn't it? :-)</p><p>Tags: <a href="http://technorati.com/tag/DOMElement/" rel="tag">DOMElement</a>, <a href="http://technorati.com/tag/PHP/" rel="tag">PHP</a>, <a href="http://technorati.com/tag/DOM/" rel="tag">DOM</a>, <a href="http://technorati.com/tag/PHP5/" rel="tag">PHP5</a></p>]]></description>
<pubDate>Sat, 11 Oct 2008 17:58:35 +0200</pubDate>
<guid isPermaLink="false">http://www.davidonzo.com/lng/en/post/911/php-extracting-images-from-html-using-php5/</guid>
<feedburner:origLink>http://www.davidonzo.com/lng/en/post/911/php-extracting-images-from-html-using-php5/</feedburner:origLink></item>
<item>
<title>[PHP - XHTML] XHTML Valid Youtube embed code</title>
<link>http://feedproxy.google.com/~r/davidonzo/en/~3/pT1r_KTJdfg/</link>
<description><![CDATA[<p><a href="http://www.davidonzo.com/post/892/php-xhtml-xhtml-valid-youtube-embed-code/"><img src="http://www.davidonzo.com/language/flag/it.gif" alt="it" /></a> <a href="http://www.davidonzo.com/lng/en/post/892/php-xhtml-xhtml-valid-youtube-embed-code/"><img src="http://www.davidonzo.com/language/flag/en.gif" alt="en" /></a> </p><p><img width="88" height="31" align="left" src="http://www.davidonzo.com/public/image/loghi/valid-xhtml10.png" alt="xhtml at davidonzo.com" />Blogs, online journals and in general the 90% of the content management system, use <a target="_blank" href="http://it.wikipedia.org/wiki/XHTML">XHTML</a> output as markup language. Both strict and transitional version.</p>
<p>&nbsp;</p>
<p>Often people choose to embed <a href="http://youtube.com/" target="_blank">youtube</a> videos in their websiste. To avoid the annoing cut &amp; paste of the embed code given by youtube, I choose to code a simple script to replace a proprierty tag, whit the embed code.</p>
<p>&nbsp;</p>
<p align="center"><img src="http://www.davidonzo.com/public/image/browser/youtubecode.jpg" alt="embed" /></p>
<p>&nbsp;</p>
<p>This little piece of code, allow me to write a simple line, containing the pseudo tag youtube and a video's permalink inside and show the embeded video without copy and paste the relative code.</p>
<p>&nbsp;</p>
<p>In the first versione of the script I just used the youtube embed code model. But the code generated using the original youtube code, is NOT HTML valid. So I decide to rewrite it more carefull, and make it XHTML valid.</p>
<p>&nbsp;</p>
<p>Using PHP, the result is a simple mono-line script.</p>
<p>&nbsp;</p>
<p><span class="Code"><br />
$result = preg_replace('#\[youtube\]http://www.youtube.com/watch\?v=(.*?)\[/youtube\]#i', '&lt;object type=&quot;application/x-shockwave-flash&quot; style=&quot;width:450px; height:366px;&quot; data=&quot;http://www.youtube.com/v/\\1&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/\\1&quot; /&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot; /&gt;&lt;/object&gt;',$testo)</span></p>
<p>&nbsp;</p>
<p>Where $testo is the pattern to check.</p><p>Tags: <a href="http://technorati.com/tag/Youtube/" rel="tag">Youtube</a>, <a href="http://technorati.com/tag/XHTML/" rel="tag">XHTML</a>, <a href="http://technorati.com/tag/Valid+XHTML/" rel="tag">Valid XHTML</a>, <a href="http://technorati.com/tag/PHP/" rel="tag">PHP</a></p>]]></description>
<pubDate>Sat, 13 Sep 2008 00:52:56 +0200</pubDate>
<guid isPermaLink="false">http://www.davidonzo.com/lng/en/post/892/php-xhtml-xhtml-valid-youtube-embed-code/</guid>
<feedburner:origLink>http://www.davidonzo.com/lng/en/post/892/php-xhtml-xhtml-valid-youtube-embed-code/</feedburner:origLink></item>
<item>
<title>[Google] New XML Mobile Sitemap format</title>
<link>http://feedproxy.google.com/~r/davidonzo/en/~3/O1TfsfvtJRE/</link>
<description><![CDATA[<p><a href="http://www.davidonzo.com/post/891/google-new-xml-mobile-sitemap-format/"><img src="http://www.davidonzo.com/language/flag/it.gif" alt="it" /></a> <a href="http://www.davidonzo.com/lng/en/post/891/google-new-xml-mobile-sitemap-format/"><img src="http://www.davidonzo.com/language/flag/en.gif" alt="en" /></a> </p><p><img align="left" alt="Google" src="http://www.davidonzo.com/public/google_logo.gif" />Just a quick information about the XML Google mobile sitemap. The standard format will be upgradet early. The new XML Google mobile sitemap specifications <strong><a target="_blank" href="http://www.google.com/support/webmasters/bin/answer.py?answer=34648&amp;hl=it">are available here</a></strong>.</p>
<p>&nbsp;</p>
<p>Using the new format, it must be update che number versione declaration and use the new tag</p>
<p>&nbsp;</p>
<p><span class="Code">&lt;mobile:mobile/&gt;</span></p>
<p>&nbsp;</p>
<p>For any &lt;loc&gt; reference. The &lt;priority&gt; tag is not mentioned by the new format. By the way it must be considered optional at all. Infact it give just a suggestion to Google for the content's priority. It can be different by the priority calculed by google bot.</p>
<p>&nbsp;</p>
<p>The tag &lt;lastmod&gt; should be used in the right way. Expecially for really dinamic contents, like in example, a blog or online journal front page.</p>
<p>&nbsp;</p>
<p>A little example of the new Google XML mobile sitemap:</p>
<p>&nbsp;</p>
<p><span class="Code">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br />
&lt;urlset xmlns=&quot;http://www.google.com/schemas/sitemap/0.84&quot;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:mobile=&quot;http://www.google.com/schemas/sitemap-mobile/1.0&quot;&gt;<br />
&nbsp;&lt;url&gt;<br />
&nbsp; &lt;loc&gt;http://www.davidonzo.com/?mobile=1&lt;/loc&gt;<br />
&nbsp; &lt;lastmod&gt;2008-09-12&lt;/lastmod&gt;<br />
&nbsp; &lt;mobile:mobile/&gt;<br />
&nbsp;&lt;/url&gt;<br />
<br />
&nbsp;&lt;url&gt;<br />
&nbsp; &lt;loc&gt;http://www.davidonzo.com/?post=890&amp;mobile=1&lt;/loc&gt;<br />
&nbsp; &lt;lastmod&gt;2008-09-11&lt;/lastmod&gt;<br />
&nbsp; &lt;mobile:mobile/&gt;<br />
&nbsp;&lt;/url&gt;<br />
<br />
&nbsp;&lt;url&gt;<br />
&nbsp; &lt;loc&gt;http://www.davidonzo.com/?post=889&amp;mobile=1&lt;/loc&gt;<br />
&nbsp; &lt;lastmod&gt;2008-09-10&lt;/lastmod&gt;<br />
&nbsp; &lt;mobile:mobile/&gt;<br />
&nbsp;&lt;/url&gt;<br />
<br />
&nbsp;&lt;url&gt;<br />
&nbsp; &lt;loc&gt;http://www.davidonzo.com/?post=888&amp;mobile=1&lt;/loc&gt;<br />
&nbsp; &lt;lastmod&gt;2008-09-09&lt;/lastmod&gt;<br />
&nbsp; &lt;mobile:mobile/&gt;<br />
&nbsp;&lt;/url&gt;<br />
&lt;/urlset&gt;</span></p>
<p>&nbsp;</p>
<p>The changes is required in a few days. Remember, sitemap malformed will be NOT indexed by google. So, be careful and rapid!</p><p>Tags: <a href="http://technorati.com/tag/Sitemap/" rel="tag">Sitemap</a>, <a href="http://technorati.com/tag/XML+Sitemap/" rel="tag">XML Sitemap</a>, <a href="http://technorati.com/tag/Google/" rel="tag">Google</a>, <a href="http://technorati.com/tag/Mobile/" rel="tag">Mobile</a>, <a href="http://technorati.com/tag/Mobile+Sitemap/" rel="tag">Mobile Sitemap</a>, <a href="http://technorati.com/tag/Mobile+XML+Sitemap/" rel="tag">Mobile XML Sitemap</a></p>]]></description>
<pubDate>Fri, 12 Sep 2008 11:52:56 +0200</pubDate>
<guid isPermaLink="false">http://www.davidonzo.com/lng/en/post/891/google-new-xml-mobile-sitemap-format/</guid>
<feedburner:origLink>http://www.davidonzo.com/lng/en/post/891/google-new-xml-mobile-sitemap-format/</feedburner:origLink></item>
<item>
<title>[Ubuntu] PHP, GD and imagerotate() function</title>
<link>http://feedproxy.google.com/~r/davidonzo/en/~3/hGgEiiz5Ba4/</link>
<description><![CDATA[<p><a href="http://www.davidonzo.com/post/889/ubuntu-php-gd-and-imagerotate-function/"><img src="http://www.davidonzo.com/language/flag/it.gif" alt="it" /></a> <a href="http://www.davidonzo.com/lng/en/post/889/ubuntu-php-gd-and-imagerotate-function/"><img src="http://www.davidonzo.com/language/flag/en.gif" alt="en" /></a> </p><p><img height="67" align="left" width="120" alt="php at davidonzo.com" src="http://www.davidonzo.com/public/image/loghi/php.gif" />The GD library released by the ubuntu team and available in their repository, is not compiled with all options. The <a target="_blank" href="http://it2.php.net/imagerotate">imagerotate() function</a> doesn't work at all.</p>
<p>&nbsp;</p>
<p>In this case you have two possibilities. Download the sources from the <a target="_blank" href="http://libgd.org/Main_Page">GD official web site</a> and compile it on your own, or use the following function.</p>
<p>&nbsp;</p>
<p><span class="Code">&lt;?<br />
// $src_img - a GD image resource<br />
// $angle - degrees to rotate clockwise, in degrees<br />
// returns a GD image resource<br />
// USAGE:<br />
// $im = imagecreatefrompng('test.png');<br />
// $im = imagerotate($im, 15);<br />
// header('Content-type: image/png');<br />
// imagepng($im);<br />
function imageRotateBicubic($src_img, $angle, $bicubic=false) {<br />
&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; // convert degrees to radians<br />
&nbsp;&nbsp;&nbsp; $angle = $angle + 180;<br />
&nbsp;&nbsp;&nbsp; $angle = deg2rad($angle);<br />
&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; $src_x = imagesx($src_img);<br />
&nbsp;&nbsp;&nbsp; $src_y = imagesy($src_img);<br />
&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; $center_x = floor($src_x/2);<br />
&nbsp;&nbsp;&nbsp; $center_y = floor($src_y/2);<br />
&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; $rotate = imagecreatetruecolor($src_x, $src_y);<br />
&nbsp;&nbsp;&nbsp; imagealphablending($rotate, false);<br />
&nbsp;&nbsp;&nbsp; imagesavealpha($rotate, true);<br />
<br />
&nbsp;&nbsp;&nbsp; $cosangle = cos($angle);<br />
&nbsp;&nbsp;&nbsp; $sinangle = sin($angle);<br />
&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; for ($y = 0; $y &lt; $src_y; $y++) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for ($x = 0; $x &lt; $src_x; $x++) {<br />
&nbsp;&nbsp;&nbsp; // rotate...<br />
&nbsp;&nbsp;&nbsp; $old_x = (($center_x-$x) * $cosangle + ($center_y-$y) * $sinangle)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + $center_x;<br />
&nbsp;&nbsp;&nbsp; $old_y = (($center_y-$y) * $cosangle - ($center_x-$x) * $sinangle)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + $center_y;<br />
&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; if ( $old_x &gt;= 0 &amp;&amp; $old_x &lt; $src_x<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;&amp; $old_y &gt;= 0 &amp;&amp; $old_y &lt; $src_y ) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($bicubic == true) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $sY&nbsp; = $old_y + 1;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $siY&nbsp; = $old_y;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $siY2 = $old_y - 1;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $sX&nbsp; = $old_x + 1;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $siX&nbsp; = $old_x;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $siX2 = $old_x - 1;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $c1 = imagecolorsforindex($src_img, imagecolorat($src_img, $siX, $siY2));<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $c2 = imagecolorsforindex($src_img, imagecolorat($src_img, $siX, $siY));<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $c3 = imagecolorsforindex($src_img, imagecolorat($src_img, $siX2, $siY2));<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $c4 = imagecolorsforindex($src_img, imagecolorat($src_img, $siX2, $siY));<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $r = ($c1['red']&nbsp; + $c2['red']&nbsp; + $c3['red']&nbsp; + $c4['red']&nbsp; ) &lt;&lt; 14;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $g = ($c1['green'] + $c2['green'] + $c3['green'] + $c4['green']) &lt;&lt; 6;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $b = ($c1['blue']&nbsp; + $c2['blue']&nbsp; + $c3['blue']&nbsp; + $c4['blue'] ) &gt;&gt; 2;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $a = ($c1['alpha']&nbsp; + $c2['alpha']&nbsp; + $c3['alpha']&nbsp; + $c4['alpha'] ) &gt;&gt; 2;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $color = imagecolorallocatealpha($src_img, $r,$g,$b,$a);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $color = imagecolorat($src_img, $old_x, $old_y);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp; } else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // this line sets the background colour<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $color = imagecolorallocatealpha($src_img, 255, 255, 255, 127);<br />
&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp; imagesetpixel($rotate, $x, $y, $color);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp; return $rotate;<br />
}<br />
?&gt;</span></p>
<p>&nbsp;</p>
<p>This function has been taken by the official man page of the <a href="http://it2.php.net/manual/en/function.imagerotate.php#47985" target="_blank">imagerotate php funciont</a>.</p><p>Tags: <a href="http://technorati.com/tag/PHP/" rel="tag">PHP</a>, <a href="http://technorati.com/tag/gd/" rel="tag">gd</a>, <a href="http://technorati.com/tag/imagerotate/" rel="tag">imagerotate</a></p>]]></description>
<pubDate>Wed, 10 Sep 2008 22:35:46 +0200</pubDate>
<guid isPermaLink="false">http://www.davidonzo.com/lng/en/post/889/ubuntu-php-gd-and-imagerotate-function/</guid>
<feedburner:origLink>http://www.davidonzo.com/lng/en/post/889/ubuntu-php-gd-and-imagerotate-function/</feedburner:origLink></item>
<item>
<title>[WordPress] Plugin Inappropriate Content</title>
<link>http://feedproxy.google.com/~r/davidonzo/en/~3/fksTIlaWjyQ/</link>
<description><![CDATA[<p><a href="http://www.davidonzo.com/post/837/wordpress-plugin-inappropriate-content/"><img src="http://www.davidonzo.com/language/flag/it.gif" alt="it" /></a> <a href="http://www.davidonzo.com/lng/en/post/837/wordpress-plugin-inappropriate-content/"><img src="http://www.davidonzo.com/language/flag/en.gif" alt="en" /></a> </p><p><img align="left" alt="WordPress at davidonzo.com" src="http://www.davidonzo.com/public/image/loghi/wordpress-logo.png" />If you are using <a target="_blank" href="http://wordpress.org">WordPress</a> as CMS and you want to post something not really appropriate to childrens and young boy, you should find this plugin very usefull.</p>
<p>&nbsp;</p>
<h3>What can I do?</h3>
<p>Inappropriate Content allow you to moderate the content of specifics posts. It show a confirmation form where is asked to the client, to confirm his age and his will to read the post.</p>
<p>&nbsp;</p>
<p>Using the control panel you'll be able to:</p>
<ul>
    <li>Enable / Disable the plugin. This option is internal to the plugin and indipendent by the global activation you turn on by the wordpress's plugins control panel.</li>
    <li>Choose the input button text.</li>
    <li>Choose the relative label.</li>
    <li>Choose some text before the form.</li>
    <li>Choose some text after the form.</li>
</ul>
<p align="center"><a target="_blank" href="http://www.davidonzo.com/public/image/browser/inappropriate_content.jpg"><img title="Click to enlarge" alt="Inappropriate Content at davidonzo.com" src="http://www.davidonzo.com/public/image/browser/inappropriate_content_th.jpg" /></a></p>
<p>&nbsp;</p>
<h3>How can I moderate the content post?</h3>
<p>To apply the content moderation, just insert a new custom field to the post, using as key <strong>VM</strong>, and give it the value <strong>1</strong>.</p>
<p>&nbsp;</p>
<p align="center"><a target="_blank" href="http://www.davidonzo.com/public/image/browser/inappropriate_custom.jpg"><img title="Click to enlarge" alt="Inappropriate Content at davidonzo.com" src="http://www.davidonzo.com/public/image/browser/inappropriate_custom_th.jpg" /></a></p>
<p>&nbsp;</p>
<p>By this way any user won't read the content post if before he doesn't confirm his will to read it. After the confirmation, all moderated posts will be showed to the blog visitor for 24h.</p>
<p>&nbsp;</p>
<p>The plugin use the cookies just to identify users has confirmed the form in the last 24h. Clients that brows without cookies enabled will see the post after the confirmation submit, but they will confirm using the form any page refresh.</p>
<p>&nbsp;</p>
<h3>How To Install</h3>
<p><strong><a target="_blank" href="http://www.davidonzo.com/public/file/inappropriate_content.zip">Download the zip archive</a></strong>, decompress it and copy the file inappropriate_content.php into your wp-content/plugins folder. Join your WP control panel and activete it as any other WP plugin. Go to the options page to configure it.</p>
<p>&nbsp;</p>
<h3>License</h3>
<p><strong><a target="_blank" href="http://www.gnu.org/licenses/lgpl.html">GNU/LGPL</a></strong>.</p><p>Tags: <a href="http://technorati.com/tag/WordPress/" rel="tag">WordPress</a>, <a href="http://technorati.com/tag/Plugin/" rel="tag">Plugin</a>, <a href="http://technorati.com/tag/Inappropriate+Content/" rel="tag">Inappropriate Content</a></p>]]></description>
<pubDate>Wed, 18 Jun 2008 18:15:32 +0200</pubDate>
<guid isPermaLink="false">http://www.davidonzo.com/lng/en/post/837/wordpress-plugin-inappropriate-content/</guid>
<feedburner:origLink>http://www.davidonzo.com/lng/en/post/837/wordpress-plugin-inappropriate-content/</feedburner:origLink></item>
<item>
<title>Morfeus Fucking Scanner</title>
<link>http://feedproxy.google.com/~r/davidonzo/en/~3/P3ddnLev6m8/</link>
<description><![CDATA[<p><a href="http://www.davidonzo.com/post/830/morfeus-fucking-scanner/"><img src="http://www.davidonzo.com/language/flag/it.gif" alt="it" /></a> <a href="http://www.davidonzo.com/lng/en/post/830/morfeus-fucking-scanner/"><img src="http://www.davidonzo.com/language/flag/en.gif" alt="en" /></a> </p><p>If you read in your server log a strange user agent: &quot;<strong>Morfeus Fucking Scanner</strong>&quot; you have to know that it's a bot who scan PHP server application to find some vulnerability.</p>
<p>&nbsp;</p>
<p>At the moment, the relative IP scanned this server is located in Spain, but reading old logs, it means many connection has been provide from USA.</p>
<p>&nbsp;</p>
<p>Here all works fine. No vulnerability have been found on this server (ATM :-) ). My blogging software has no several bugs! Or just I hope so ;-) .</p>
<p>&nbsp;</p>
<p>If you are running Apache like web server, you can easly block Morfeus by three .htaccess lines</p>
<p>&nbsp;</p>
<p><span class="Code">RewriteEngine On<br />
RewriteCond %{HTTP_USER_AGENT} ^Morfeus<br />
RewriteRule ^.*$ - [F]</span></p>
<p>&nbsp;</p>
<p>And, bye bye Morfeus ;-)</p><p>Tags: <a href="http://technorati.com/tag/Morfeus+Fucking+Scanner/" rel="tag">Morfeus Fucking Scanner</a>, <a href="http://technorati.com/tag/web/" rel="tag">web</a></p>]]></description>
<pubDate>Tue, 03 Jun 2008 20:11:35 +0200</pubDate>
<guid isPermaLink="false">http://www.davidonzo.com/lng/en/post/830/morfeus-fucking-scanner/</guid>
<feedburner:origLink>http://www.davidonzo.com/lng/en/post/830/morfeus-fucking-scanner/</feedburner:origLink></item>
<item>
<title>The REAL Open Source WebDev</title>
<link>http://feedproxy.google.com/~r/davidonzo/en/~3/pmSnwBwDmgk/</link>
<description><![CDATA[<p><a href="http://www.davidonzo.com/post/828/the-real-open-source-webdev/"><img src="http://www.davidonzo.com/language/flag/it.gif" alt="it" /></a> <a href="http://www.davidonzo.com/lng/en/post/828/the-real-open-source-webdev/"><img src="http://www.davidonzo.com/language/flag/en.gif" alt="en" /></a> </p><p>Languages:</p>
<ul>
    <li>PHP</li>
    <li>Python</li>
    <li>ROR</li>
    <li>Perl</li>
    <li>Java</li>
    <li>JavaScript</li>
    <li>AJAX</li>
    <li>DOM</li>
    <li>HTML</li>
    <li>XHTML</li>
    <li>XML</li>
    <li>CSS</li>
    <li>MySQL</li>
</ul>
<p>Softwares:</p>
<ul>
    <li><strong><a target="_blank" href="http://www.vim.org/">VIM</a></strong></li>
</ul>
<p>And he will say you VI is too old for him...</p><p>Tags: </p>]]></description>
<pubDate>Thu, 29 May 2008 10:07:44 +0200</pubDate>
<guid isPermaLink="false">http://www.davidonzo.com/lng/en/post/828/the-real-open-source-webdev/</guid>
<feedburner:origLink>http://www.davidonzo.com/lng/en/post/828/the-real-open-source-webdev/</feedburner:origLink></item>
<item>
<title>Intesa Sanpaolo - Always with you, just enable JavaScript!</title>
<link>http://feedproxy.google.com/~r/davidonzo/en/~3/XZhGM2Mui74/</link>
<description><![CDATA[<p><a href="http://www.davidonzo.com/post/827/intesa-sanpaolo-always-with-you-just-enable-javascript/"><img src="http://www.davidonzo.com/language/flag/it.gif" alt="it" /></a> <a href="http://www.davidonzo.com/lng/en/post/827/intesa-sanpaolo-always-with-you-just-enable-javascript/"><img src="http://www.davidonzo.com/language/flag/en.gif" alt="en" /></a> </p><p><a href="http://www.intesasanpaolo.com" target="_blank"><img width="254" height="33" align="left" src="http://www.davidonzo.com/public/image/loghi/intesasanpaolo.jpg" alt="Intesa Sanpaolo at davidonzo.com" /></a>Since some time, <a href="http://www.intesasanpaolo.com" target="_blank">Intesa Sanpaolo</a> - tha main financial group in Italy and one of the most important in Europe - launch his new web site. Realased using a 2.0 styling concept. AJAX integrations and generic JavaScript to provide nice effects and modern browsing experence by the users.</p>
<p>&nbsp;</p>
<p>I thought to read the markup and others main thing to take some personal valutation in order to post my impression about the new portal.</p>
<p>&nbsp;</p>
<p>Well, I just release that too many people think &quot;2.0&quot; means only AJAX stuff like visual loader, text appearing using decreasing opacity and some nice toogle tool applied to the menus.</p>
<p>&nbsp;</p>
<p>I think web 2.0 should be &quot;<strong>more accessibility and ease in the content fruition using modern tecniques that MUST be NOT exclusive</strong>&quot;.</p>
<p>&nbsp;</p>
<p>Just one think about the Intesa Sanpaolo web site: try to disable JavaScript by the browser's options. Join the website and... DAMNS! <strong>The website is totally unsurfable!</strong></p>
<p>&nbsp;</p>
<p>I hope they don't manage our money like their supplier selection...</p><p>Tags: <a href="http://technorati.com/tag/Intesa+Sanpaolo/" rel="tag">Intesa Sanpaolo</a>, <a href="http://technorati.com/tag/2.0/" rel="tag">2.0</a>, <a href="http://technorati.com/tag/Web/" rel="tag">Web</a></p>]]></description>
<pubDate>Wed, 28 May 2008 14:07:44 +0200</pubDate>
<guid isPermaLink="false">http://www.davidonzo.com/lng/en/post/827/intesa-sanpaolo-always-with-you-just-enable-javascript/</guid>
<feedburner:origLink>http://www.davidonzo.com/lng/en/post/827/intesa-sanpaolo-always-with-you-just-enable-javascript/</feedburner:origLink></item>
<item>
<title>How to Create a 2.0 Button Using The GIMP</title>
<link>http://feedproxy.google.com/~r/davidonzo/en/~3/YOikqFDbzD0/</link>
<description><![CDATA[<p><a href="http://www.davidonzo.com/post/821/how-to-create-a-20-button-using-the-gimp/"><img src="http://www.davidonzo.com/language/flag/it.gif" alt="it" /></a> <a href="http://www.davidonzo.com/lng/en/post/821/how-to-create-a-20-button-using-the-gimp/"><img src="http://www.davidonzo.com/language/flag/en.gif" alt="en" /></a> </p><p><img width="200" height="100" align="left" alt="2.0 button using the gimp at davidonzo.com" src="http://www.davidonzo.com/public/image/gimpreflection/button/botrosso.png" /><a target="_blank" href="http://lucvic.netsons.org/">IlSilente</a> ask me to do this tutorial (thi info maybe not true :P). We just explate <a href="http://www.davidonzo.com/lng/en/post/819/how-to-make-reflection-using-the-gimp/" target="_blank">how to create a reflection effect using The Gimp</a>. Now let's see how to create a 2.0 button using the best open source (and not only) image editor.</p>
<p>&nbsp;</p>
<p>First of all we heve to define what a 2.0 button is (almost in our concept). A 2.0 button is an image with 3D effect simulation and rounded corners. Have you a different idea? Maybe you are right, but this is my obsession :)</p>
<p>&nbsp;</p>
<h2>How To Procede</h2>
<p>Open The GIMP and create a new image with transparent background and the dimension you prefere. By the &quot;Select&quot; menu, click on &quot;Select All&quot; (or type CTRL+A). By the same menu, click on &quot;Rounded Rectangle&quot; and apply it using the prefered ratio. I used the default value (50%).</p>
<p>The result should be something like this:</p>
<p>&nbsp;</p>
<p align="center"><img width="204" height="106" alt="2.0 button using the gimp at davidonzo.com" src="http://www.davidonzo.com/public/image/gimpreflection/button/bott4.png" /></p>
<p>&nbsp;</p>
<p>Using our prefer color, apply a background to the new selection.</p>
<p>&nbsp;</p>
<p align="center"><img width="204" height="106" alt="2.0 button using the gimp at davidonzo.com" src="http://www.davidonzo.com/public/image/gimpreflection/button/bott3.png" /></p>
<p>&nbsp;</p>
<p>Now create a new rounded selection (using the same ratio). It must be smaller than the first one and positioned at the top.</p>
<p>&nbsp;</p>
<p align="center"><img width="204" height="106" alt="2.0 button using the gimp at davidonzo.com" src="http://www.davidonzo.com/public/image/gimpreflection/button/bott2.png" /></p>
<p>&nbsp;</p>
<p>To this new selection, apply the gradient tool <img align="absmiddle" src="http://www.davidonzo.com/public/image/gimpreflection/gradiente.jpg" alt="Gradient tool The GIMP at davidonzo.com" /> selecting the white color as SB and mantaining the previous FB. Drag the mouse from the bottom side of the selection to top.</p>
<p>&nbsp;</p>
<p align="center"><img width="204" height="106" src="http://www.davidonzo.com/public/image/gimpreflection/button/bott.png" alt="2.0 button using the gimp at davidonzo.com" /></p>
<p>&nbsp;</p>
<p><strong><em>Et voila!</em></strong> Add some text if you want. The final result is something like the image you can see at the begin of this post ;)</p><p>Tags: <a href="http://technorati.com/tag/The+Gimp/" rel="tag">The Gimp</a></p>]]></description>
<pubDate>Tue, 20 May 2008 14:49:19 +0200</pubDate>
<guid isPermaLink="false">http://www.davidonzo.com/lng/en/post/821/how-to-create-a-20-button-using-the-gimp/</guid>
<feedburner:origLink>http://www.davidonzo.com/lng/en/post/821/how-to-create-a-20-button-using-the-gimp/</feedburner:origLink></item>
<item>
<title>Life is a gift</title>
<link>http://feedproxy.google.com/~r/davidonzo/en/~3/vuBrVdoT0FI/</link>
<description><![CDATA[<p><a href="http://www.davidonzo.com/post/820/life-is-a-gift/"><img src="http://www.davidonzo.com/language/flag/it.gif" alt="it" /></a> <a href="http://www.davidonzo.com/lng/en/post/820/life-is-a-gift/"><img src="http://www.davidonzo.com/language/flag/en.gif" alt="en" /></a> </p><p align="center"><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/MvAiHTjZWBg&hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/MvAiHTjZWBg&hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p>
<p align="center"><a href="http://tania.movielol.org/" target="_blank">90 Day Tania</a></p><p>Tags: <a href="http://technorati.com/tag/90+Day+Tania/" rel="tag">90 Day Tania</a></p>]]></description>
<pubDate>Thu, 15 May 2008 18:58:32 +0200</pubDate>
<guid isPermaLink="false">http://www.davidonzo.com/lng/en/post/820/life-is-a-gift/</guid>
<feedburner:origLink>http://www.davidonzo.com/lng/en/post/820/life-is-a-gift/</feedburner:origLink></item>
</channel>
</rss>
