
<?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"
	>

<channel>
	<title>Linux, PHP, LAMP, The Web in a blog</title>
	<atom:link href="http://www.danieleocchipinti.com/blog-linux-php-lamp-web/feed" rel="self" type="application/rss+xml" />
	<link>http://www.danieleocchipinti.com/blog-linux-php-lamp-web</link>
	<description>By a Webmaster based in London</description>
	<pubDate>Sun, 20 Dec 2009 00:00:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>How to Create a Screencast / Videocast / Video</title>
		<link>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/free-software/how-to-create-a-screencast-videocast-video</link>
		<comments>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/free-software/how-to-create-a-screencast-videocast-video#comments</comments>
		<pubDate>Sun, 20 Dec 2009 00:00:00 +0000</pubDate>
		<dc:creator>Daniele Occhipinti</dc:creator>
		
		<category><![CDATA[Free Software]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Use Camstudio this way:
_ set all the relevant settings
_ use pause with keyboard shortcuts frequently
_ record different cuts and put them together with VirtualDub
How to do that with VirtualDub?
_ Open a file
_ Video > Direct Stream Copy
_ File > Append video segment
_ File > Save as AVI
]]></description>
			<content:encoded><![CDATA[<p>Use Camstudio this way:<br />
_ set all the relevant settings<br />
_ use pause with keyboard shortcuts frequently<br />
_ record different cuts and put them together with VirtualDub</p>
<p>How to do that with VirtualDub?<br />
_ Open a file<br />
_ Video > Direct Stream Copy<br />
_ File > Append video segment<br />
_ File > Save as AVI</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/free-software/how-to-create-a-screencast-videocast-video/feed</wfw:commentRss>
		</item>
		<item>
		<title>How to Download Movies &#038; Files on Linux</title>
		<link>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/linux/how-download-movies-files-on-linux</link>
		<comments>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/linux/how-download-movies-files-on-linux#comments</comments>
		<pubDate>Sun, 20 Dec 2009 00:00:00 +0000</pubDate>
		<dc:creator>Daniele Occhipinti</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[_ Find the torrent with http://www.mininova.org/ or search on Google &#8220;Gladiator download torrent&#8221;
_ Use Transmission to download the torrent
_ opersubtitles.org
]]></description>
			<content:encoded><![CDATA[<p>_ Find the torrent with http://www.mininova.org/ or search on Google &#8220;Gladiator download torrent&#8221;<br />
_ Use Transmission to download the torrent<br />
_ opersubtitles.org</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/linux/how-download-movies-files-on-linux/feed</wfw:commentRss>
		</item>
		<item>
		<title>how to install flash in Firefox for CentOS</title>
		<link>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/linux/redhat-centos/how-to-install-flash-in-firefox-for-centos</link>
		<comments>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/linux/redhat-centos/how-to-install-flash-in-firefox-for-centos#comments</comments>
		<pubDate>Sat, 19 Dec 2009 00:00:00 +0000</pubDate>
		<dc:creator>Daniele Occhipinti</dc:creator>
		
		<category><![CDATA[Redhat / CentOS]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[* Go to youtube.com and try to play a video. You should not be able to play it
* Instead of the video, there should be a link like &#8216;Install Flash&#8217;
* You should be redirected to the Adobe website where you can download an RPM package
* After downloading it, install it with the  rpm -i [...]]]></description>
			<content:encoded><![CDATA[<p>* Go to youtube.com and try to play a video. You should not be able to play it<br />
* Instead of the video, there should be a link like &#8216;Install Flash&#8217;<br />
* You should be redirected to the Adobe website where you can download an RPM package<br />
* After downloading it, install it with the  rpm -i   command (as root)<br />
* Then, launch:<br />
sudo yum install flash-plugin</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/linux/redhat-centos/how-to-install-flash-in-firefox-for-centos/feed</wfw:commentRss>
		</item>
		<item>
		<title>PHP - Nice Debug Trace</title>
		<link>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/web-development/php/php-nice-debug-trace</link>
		<comments>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/web-development/php/php-nice-debug-trace#comments</comments>
		<pubDate>Fri, 20 Nov 2009 10:17:49 +0000</pubDate>
		<dc:creator>Daniele Occhipinti</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.danieleocchipinti.com/blog-linux-php-lamp-web/?p=280</guid>
		<description><![CDATA[&#60;?php
echo parse_backtrace(debug_backtrace());
function parse_backtrace($raw){
$output=&#8220;&#8221;;
foreach($raw as $entry){
$output.=&#8220;\nFile: &#8220;.$entry[&#8216;file&#8217;].&#8221; (Line: &#8220;.$entry[&#8216;line&#8217;].&#8220;)\n&#8221;;
$output.=&#8220;Function: &#8220;.$entry[&#8216;function&#8217;].&#8220;\n&#8221;;
$output.=&#8220;Args: &#8220;.implode(&#8220;, &#8220;, $entry[&#8216;args&#8217;]).&#8220;\n&#8221;;
}
return $output;
}
?&#62;
]]></description>
			<content:encoded><![CDATA[<p><code><span class="html"><span class="default">&lt;?php<br />
</span><span class="keyword">echo </span><span class="default">parse_backtrace</span><span class="keyword">(</span><span class="default">debug_backtrace</span><span class="keyword">());</p>
<p>function </span><span class="default">parse_backtrace</span><span class="keyword">(</span><span class="default">$raw</span><span class="keyword">){</p>
<p></span><span class="default">$output</span><span class="keyword">=</span><span class="string">&#8220;&#8221;</span><span class="keyword">;</p>
<p>foreach(</span><span class="default">$raw </span><span class="keyword">as </span><span class="default">$entry</span><span class="keyword">){<br />
</span><span class="default">$output</span><span class="keyword">.=</span><span class="string">&#8220;\nFile: &#8220;</span><span class="keyword">.</span><span class="default">$entry</span><span class="keyword">[</span><span class="string">&#8216;file&#8217;</span><span class="keyword">].</span><span class="string">&#8221; (Line: &#8220;</span><span class="keyword">.</span><span class="default">$entry</span><span class="keyword">[</span><span class="string">&#8216;line&#8217;</span><span class="keyword">].</span><span class="string">&#8220;)\n&#8221;</span><span class="keyword">;<br />
</span><span class="default">$output</span><span class="keyword">.=</span><span class="string">&#8220;Function: &#8220;</span><span class="keyword">.</span><span class="default">$entry</span><span class="keyword">[</span><span class="string">&#8216;function&#8217;</span><span class="keyword">].</span><span class="string">&#8220;\n&#8221;</span><span class="keyword">;<br />
</span><span class="default">$output</span><span class="keyword">.=</span><span class="string">&#8220;Args: &#8220;</span><span class="keyword">.</span><span class="default">implode</span><span class="keyword">(</span><span class="string">&#8220;, &#8220;</span><span class="keyword">, </span><span class="default">$entry</span><span class="keyword">[</span><span class="string">&#8216;args&#8217;</span><span class="keyword">]).</span><span class="string">&#8220;\n&#8221;</span><span class="keyword">;<br />
}</p>
<p>return </span><span class="default">$output</span><span class="keyword">;<br />
}<br />
</span><span class="default">?&gt;</span></span></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/web-development/php/php-nice-debug-trace/feed</wfw:commentRss>
		</item>
		<item>
		<title>CSS Sprite Online Generator</title>
		<link>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/web-development/web-design/css-sprite-online-generator</link>
		<comments>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/web-development/web-design/css-sprite-online-generator#comments</comments>
		<pubDate>Sat, 07 Nov 2009 12:21:38 +0000</pubDate>
		<dc:creator>Daniele Occhipinti</dc:creator>
		
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.danieleocchipinti.com/blog-linux-php-lamp-web/?p=279</guid>
		<description><![CDATA[http://spritegen.website-performance.org/
You can&#8217;t include animated gifs in the sprite (otherwise they will be still).
You can&#8217;t include list bullets because if the list item is quiet long, the images under the bullet point icon in the sprite will be shown.
]]></description>
			<content:encoded><![CDATA[<p>http://spritegen.website-performance.org/</p>
<p>You can&#8217;t include animated gifs in the sprite (otherwise they will be still).</p>
<p>You can&#8217;t include list bullets because if the list item is quiet long, the images under the bullet point icon in the sprite will be shown.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/web-development/web-design/css-sprite-online-generator/feed</wfw:commentRss>
		</item>
		<item>
		<title>Installing Memcached and PHP Memcache on CentOS and Ubuntu</title>
		<link>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/web-development/installing-memcached-and-php-memcache-on-centos-and-ubuntu</link>
		<comments>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/web-development/installing-memcached-and-php-memcache-on-centos-and-ubuntu#comments</comments>
		<pubDate>Wed, 04 Nov 2009 18:13:26 +0000</pubDate>
		<dc:creator>Daniele Occhipinti</dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[memcached]]></category>

		<guid isPermaLink="false">http://www.danieleocchipinti.com/blog-linux-php-lamp-web/?p=278</guid>
		<description><![CDATA[On CentOS:
Install Memcached
_ yum install memcached
_ /sbin/chkconfig memcached on
_ /etc/init.d/memcached start
_ vim /etc/sysconfig/memcached, and edit:
OPTIONS=&#8221;-l 127.0.0.1&#8243;
Install PHP extension for Memcache:
_ yum install zlib-devel
This will prevent this error from occurring:
configure: error: memcache support requires ZLIB. Use &#8211;with-zlib-dir=&#60;DIR&#62; to specify prefix where ZLIB include and library are located
_ pear install pecl/memcache
You should have:
/usr/lib/php/modules/memcache.so
_ echo &#8220;extension=memcache.so&#8221; &#62; /etc/php.d/memcache.ini
_ [...]]]></description>
			<content:encoded><![CDATA[<p>On CentOS:</p>
<p>Install Memcached<br />
_ yum install memcached<br />
_ /sbin/chkconfig memcached on<br />
_ /etc/init.d/memcached start<br />
_ vim /etc/sysconfig/memcached, and edit:<br />
OPTIONS=&#8221;-l 127.0.0.1&#8243;</p>
<p>Install PHP extension for Memcache:<br />
_ yum install zlib-devel<br />
This will prevent this error from occurring:<br />
configure: error: memcache support requires ZLIB. Use &#8211;with-zlib-dir=&lt;DIR&gt; to specify prefix where ZLIB include and library are located<br />
_ pear install pecl/memcache<br />
You should have:<br />
/usr/lib/php/modules/memcache.so<br />
_ echo &#8220;extension=memcache.so&#8221; &gt; /etc/php.d/memcache.ini<br />
_ /etc/init.d/httpd restart</p>
<p>On Ubuntu:</p>
<p>I&#8217;ve installed: apt-get install php5-memcache<br />
I also have memcached installed: apt-get install memcached<br />
restart apache<br />
start memcached</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/web-development/installing-memcached-and-php-memcache-on-centos-and-ubuntu/feed</wfw:commentRss>
		</item>
		<item>
		<title>Minify CSS and Javascript Files With YUI Compressor From Linux Command Line</title>
		<link>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/web-development/web-design/minify-css-and-javascript-files-with-yui-compressor-from-linux-command-line</link>
		<comments>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/web-development/web-design/minify-css-and-javascript-files-with-yui-compressor-from-linux-command-line#comments</comments>
		<pubDate>Mon, 02 Nov 2009 11:49:34 +0000</pubDate>
		<dc:creator>Daniele Occhipinti</dc:creator>
		
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.danieleocchipinti.com/blog-linux-php-lamp-web/?p=277</guid>
		<description><![CDATA[You can download YUICompressor from here:
http://yuilibrary.com/downloads/#yuicompressor
Extract the package
You need Java to execute it (on Ubuntu):
sudo apt-get install sun-java6-jre
To use it, you can execute this on the command line:
cat jquery-*.min.js library.js common.js lists.js tasks.js contexts-mgmt.js keys-mgmt.js &#124; java -jar /home/dan/Desktop/yuicompressor-2.4.2/build/yuicompressor-2.4.2.jar &#8211;type js -o all`date +%Y%m%d%I%M%S`.js
]]></description>
			<content:encoded><![CDATA[<p>You can download YUICompressor from here:</p>
<p>http://yuilibrary.com/downloads/#yuicompressor</p>
<p>Extract the package</p>
<p>You need Java to execute it (on Ubuntu):</p>
<p>sudo apt-get install sun-java6-jre</p>
<p>To use it, you can execute this on the command line:</p>
<p>cat jquery-*.min.js library.js common.js lists.js tasks.js contexts-mgmt.js keys-mgmt.js | java -jar /home/dan/Desktop/yuicompressor-2.4.2/build/yuicompressor-2.4.2.jar &#8211;type js -o all`date +%Y%m%d%I%M%S`.js</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/web-development/web-design/minify-css-and-javascript-files-with-yui-compressor-from-linux-command-line/feed</wfw:commentRss>
		</item>
		<item>
		<title>Symfony - Creating a New Plugin</title>
		<link>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/web-development/symfony/symfony-creating-a-new-plugin</link>
		<comments>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/web-development/symfony/symfony-creating-a-new-plugin#comments</comments>
		<pubDate>Thu, 29 Oct 2009 12:45:38 +0000</pubDate>
		<dc:creator>Daniele Occhipinti</dc:creator>
		
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://www.danieleocchipinti.com/blog-linux-php-lamp-web/?p=276</guid>
		<description><![CDATA[You need this just once:
_ sudo apt-get install php-pear
_ sudo pear channel-discover plugins.symfony-project.com
For every package:
_ Create the file package.xml and put it on the root of the plugin
_ launch:      pear package
To update the repository, use this URL:
http://svn.symfony-project.com/plugins/plugin_name
]]></description>
			<content:encoded><![CDATA[<p>You need this just once:</p>
<p>_ sudo apt-get install php-pear<br />
_ sudo pear channel-discover plugins.symfony-project.com</p>
<p>For every package:<br />
_ Create the file package.xml and put it on the root of the plugin<br />
_ launch:      pear package</p>
<p>To update the repository, use this URL:</p>
<p>http://svn.symfony-project.com/plugins/plugin_name</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/web-development/symfony/symfony-creating-a-new-plugin/feed</wfw:commentRss>
		</item>
		<item>
		<title>MySQL: Deactivate Referential Integrity</title>
		<link>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/web-development/mysql/mysql-deactivate-referential-integrity</link>
		<comments>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/web-development/mysql/mysql-deactivate-referential-integrity#comments</comments>
		<pubDate>Sat, 17 Oct 2009 10:43:52 +0000</pubDate>
		<dc:creator>Daniele Occhipinti</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.danieleocchipinti.com/blog-linux-php-lamp-web/?p=275</guid>
		<description><![CDATA[If you database has InnoDB tables, you will need to deactivate referential integrity while restoring data. Unfortunately, this can’t be done using the mysqldump utility. To do so, backup your database as you would normally. When done, open the SQL file and add the following statement at the very beginning:
SET FOREIGN_KEY_CHECKS=0;
…and add the following at [...]]]></description>
			<content:encoded><![CDATA[<p>If you database has InnoDB tables, you will need to deactivate referential integrity while restoring data. Unfortunately, this can’t be done using the mysqldump utility. To do so, backup your database as you would normally. When done, open the SQL file and add the following statement at the very beginning:</p>
<blockquote><p><span style="font-family: courier new,courier;"><span style="font-family: courier new,courier;">SET FOREIGN_KEY_CHECKS=0;</span></span></p></blockquote>
<p>…and add the following at the end of the file:</p>
<blockquote><p><span style="font-family: courier new,courier;"><span style="font-family: courier new,courier;">SET FOREIGN_KEY_CHECKS=1;</span></span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/web-development/mysql/mysql-deactivate-referential-integrity/feed</wfw:commentRss>
		</item>
		<item>
		<title>Linux Bash: Append and Prepend Strings to Files</title>
		<link>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/linux/linux-command-line/linux-bash-append-and-prepend-strings-to-files</link>
		<comments>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/linux/linux-command-line/linux-bash-append-and-prepend-strings-to-files#comments</comments>
		<pubDate>Sat, 17 Oct 2009 10:37:55 +0000</pubDate>
		<dc:creator>Daniele Occhipinti</dc:creator>
		
		<category><![CDATA[Linux Command Line]]></category>

		<guid isPermaLink="false">http://www.danieleocchipinti.com/blog-linux-php-lamp-web/?p=274</guid>
		<description><![CDATA[I want to append the string &#8220;BYE&#8221; to the file test.txt
echo &#8220;BYE&#8221; &#62;&#62; test.txt
Now, I want to prepend the string &#8220;HI&#8221; to the file test.txt
echo &#8220;HI&#8221;&#124;cat - test.txt &#62; /tmp/out &#38;&#38; mv /tmp/out test.txt
]]></description>
			<content:encoded><![CDATA[<p>I want to append the string &#8220;BYE&#8221; to the file test.txt</p>
<p>echo &#8220;BYE&#8221; &gt;&gt; test.txt</p>
<p>Now, I want to prepend the string &#8220;HI&#8221; to the file test.txt</p>
<pre class="bash"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&#8220;HI&#8221;</span>|cat - test.txt &gt; /tmp/out &amp;&amp; <span style="color: #c20cb9; font-weight: bold;">mv</span> /tmp/out test.txt</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.danieleocchipinti.com/blog-linux-php-lamp-web/linux/linux-command-line/linux-bash-append-and-prepend-strings-to-files/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
