<?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>S.G. Vulcan</title>
	<atom:link href="http://www.sgvulcan.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sgvulcan.com</link>
	<description>Silviu&#039;s tech blog. Resources and informations about linux, windows, symbian systems, networks, reviews, microcontrollers, and more.</description>
	<lastBuildDate>Wed, 01 Feb 2012 09:20:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Adding pcntl_fork support on a cpanel server</title>
		<link>http://www.sgvulcan.com/adding-pcntl_fork-support-on-a-cpanel-server/</link>
		<comments>http://www.sgvulcan.com/adding-pcntl_fork-support-on-a-cpanel-server/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 09:20:13 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[easyapache]]></category>
		<category><![CDATA[pcntl]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=2082</guid>
		<description><![CDATA[A php application on a cpanel server kept throwing this: Fatal error: Call to undefined function pcntl_fork() in /path/blah.php on line 5 The fix requires recompiling php with &#8211;enable-pcntl Fortunately cpanel offers the Easy Apache script. The bad part is that it doesn&#8217;t have an option for pcntl. So you have to specify it as a custom compile time option. Edit (or create &#8211; for PHP5) and add /var/cpanel/easy/apache/rawopts/all_php5 View Code INI1 --enable-pcntl On one line Then rebuild Easy Apache. &#160;]]></description>
			<content:encoded><![CDATA[<p>A php application on a cpanel server kept throwing this:</p>
<p><strong>Fatal error</strong>: Call to undefined function pcntl_fork() in <strong>/path/blah.php </strong>on line <strong>5</strong></p>
<p>The fix requires recompiling php with <strong>&#8211;enable-pcntl</strong> Fortunately cpanel offers the Easy Apache script. The bad part is that it doesn&#8217;t have an option for pcntl. So you have to specify it as a custom compile time option. Edit (or create &#8211; for PHP5) and add<strong> /var/cpanel/easy/apache/rawopts/all_php5</strong></p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2082code2'); return false;">View Code</a> INI</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p20822"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p2082code2"><pre class="ini" style="font-family:monospace;">--enable-pcntl</pre></td></tr></table></div>

<p>On one line</p>
<p>Then rebuild Easy Apache.</p>
<p>&nbsp;</p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/adding-pcntl_fork-support-on-a-cpanel-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Got a packet bigger than &#8216;max_allowed_packet&#8217; bytes</title>
		<link>http://www.sgvulcan.com/got-a-packet-bigger-than-max_allowed_packet-bytes/</link>
		<comments>http://www.sgvulcan.com/got-a-packet-bigger-than-max_allowed_packet-bytes/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 09:02:49 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[mysq]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=2077</guid>
		<description><![CDATA[I got this on a newly installed server when I tried to import a database: View Code BASH1 2 3 &#91;root@host ~&#93;# mysql -u user -pPassword database &#38;lt; database.sql Enter password: ERROR 1153 &#40;08S01&#41; at line 53: Got a packet bigger than 'max_allowed_packet' bytes It&#8217;s easily fixable. The default is probably 16M, I added the following in /etc/my.cnf View Code INI1 max_allowed_packet=32M And restarted mysql (depending on your distro you will do this differently): View Code BASH1 service mysqld restart]]></description>
			<content:encoded><![CDATA[<p>I got this on a newly installed server when I tried to import a database:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2077code6'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p20776"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p2077code6"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>host ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># mysql -u user -pPassword database &amp;lt; database.sql</span>
Enter password:
ERROR <span style="color: #000000;">1153</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>08S01<span style="color: #7a0874; font-weight: bold;">&#41;</span> at line <span style="color: #000000;">53</span>: Got a packet bigger than <span style="color: #ff0000;">'max_allowed_packet'</span> bytes</pre></td></tr></table></div>

<p>It&#8217;s easily fixable. The default is probably 16M, I added the following in /etc/my.cnf</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2077code7'); return false;">View Code</a> INI</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p20777"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p2077code7"><pre class="ini" style="font-family:monospace;"><span style="color: #000099;">max_allowed_packet</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">32M</span></pre></td></tr></table></div>

<p>And restarted mysql (depending on your distro you will do this differently):</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2077code8'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p20778"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p2077code8"><pre class="bash" style="font-family:monospace;">service mysqld restart</pre></td></tr></table></div>

<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/got-a-packet-bigger-than-max_allowed_packet-bytes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up master-slave replication for mysql</title>
		<link>http://www.sgvulcan.com/setting-up-master-slave-replication-for-mysql/</link>
		<comments>http://www.sgvulcan.com/setting-up-master-slave-replication-for-mysql/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 19:27:08 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Articles]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[master]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[slave]]></category>
		<category><![CDATA[slow]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=2073</guid>
		<description><![CDATA[&#160; So, I had to set-up master-slave replication. Here&#8217;s how you do it: Why would one want to set-up this? Easy. 1)Spread the read load across multiple servers:  you can use the MySQL master for writing (inserts, updates) and the slave(s) for reading (SELECT) This should speed up things nicely for your application. 2)Do the backups from the slave. You might have noticed that backing-up, especially big databases, slows things down. That happens because mysqldump locks tables as it reads them. This can slow a big site or even takes it down from a few seconds to a few minute. Reading from the slave affects nothing. You can even stop the slave, read the /var/lib/mysql folder and start it back. Following are the steps on how to set it up, but first let&#8217;s not a few assumptions. Also please note that this sets up only the basic things. Many more settings can be tweaked to improve MySQL performance. Master server ip: 192.168.0.1 Slave server ip: 192.168.0.2 Slave username: slaveusr Slave pw: slavepass Your data directory is: /var/lib/mysql Add the following lines in your master my.cnf file under [mysqld] section: # master my.cnf server-id = 1 relay-log = /var/lib/mysql/mysql-relay-bin relay-log-index = [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>So, I had to set-up master-slave replication. Here&#8217;s how you do it:</p>
<p>Why would one want to set-up this? Easy.</p>
<p>1)Spread the read load across multiple servers:  you can use the MySQL master for writing (inserts, updates) and the slave(s) for reading (SELECT) This should speed up things nicely for your application.</p>
<p>2)Do the backups from the slave. You might have noticed that backing-up, especially big databases, slows things down. That happens because mysqldump locks tables as it reads them. This can slow a big site or even takes it down from a few seconds to a few minute. Reading from the slave affects nothing. You can even stop the slave, read the /var/lib/mysql folder and start it back.</p>
<p>Following are the steps on how to set it up, but first let&#8217;s not a few assumptions. Also please note that this sets up only the basic things. Many more settings can be tweaked to improve MySQL performance.</p>
<blockquote><p>Master server ip: 192.168.0.1<br />
Slave server ip: 192.168.0.2<br />
Slave username: slaveusr<br />
Slave pw: slavepass<br />
Your data directory is: /var/lib/mysql</p></blockquote>
<p>Add the following lines in your master my.cnf file under [mysqld] section:</p>
<p><code># master my.cnf<br />
server-id = 1<br />
relay-log = /var/lib/mysql/mysql-relay-bin<br />
relay-log-index = <code>/var/lib/mysql/</code>mysql-relay-bin.index<br />
log-error = <code>/var/lib/mysql/</code>mysql.err<br />
master-info-file = <code>/var/lib/mysql/</code>mysql-master.info<br />
relay-log-info-file = <code>/var/lib/mysql/</code>mysql-relay-log.info<br />
datadir = <code>/var/lib/mysql</code><br />
log-bin = <code>/var/lib/mysql/</code>mysql-bin<br />
# end master <code></code><br />
</code></p>
<p>The following settings are for the slave’s my.cnf under the same [mysqld] section:</p>
<p><code># slave's my.cnf<br />
server-id = 2<br />
relay-log = <code>/var/lib/mysql/</code>mysql-relay-bin<br />
relay-log-index = <code>/var/lib/mysql/</code>mysql-relay-bin.index<br />
log-error = <code>/var/lib/mysql/</code>mysql.err<br />
master-info-file = <code>/var/lib/mysql/</code>mysql-master.info<br />
relay-log-info-file = <code>/var/lib/mysql/</code>mysql-relay-log.info<br />
datadir = <code>/var/lib/mysql</code><br />
# end slave settings</code></p>
<p>Restart both mysql instances after changing the settings in my.cnf</p>
<p>Create the slave user on master server:<br />
<code>mysql&gt; grant replication slave on *.* to slaveusr@'10.0.0.2' identified by 'slavepass';</code></p>
<p>Dump the full data and copy it (scp, etc.) to the slave<br />
<code></code></p>
<p><code>mysqldump -u root -pROOTPASS --all-databases --single-transaction --master-data=1 &gt; masterdump.sql</code></p>
<p>import this dump on the slave server:<br />
<code></code></p>
<p><code>mysql -u root -pROOTPASS &lt; masterdump.sql</code></p>
<p>After dump is imported go in to mysql client by typing mysql. Let us tell the slave which master to connect to and what login/password to use:<br />
<code>mysql&gt; CHANGE MASTER TO MASTER_HOST='192.168.0.1', MASTER_USER='slaveusr', MASTER_PASSWORD='slavepass';</code></p>
<p>Start the slave:<br />
<code>mysql&gt; start slave;</code></p>
<p>&nbsp;</p>
<p>Check the status on the slave:<br />
<code>mysql&gt; show slave status\G</code></p>
<p>The last row will tell how many seconds the slave runs behind the master. No worries if it&#8217;s not 0, it should catch up quickly (at that time it will show Seconds_Behind_Master: 0) If it reads NULL, maybe the slave is not started (you can start by typing: start slave) or it could be that there is a problem(shows up in Last_errno: and Last_error under show slave status).</p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/setting-up-master-slave-replication-for-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hidden waterfall</title>
		<link>http://www.sgvulcan.com/hidden-waterfall/</link>
		<comments>http://www.sgvulcan.com/hidden-waterfall/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 19:00:06 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/hidden-waterfall/</guid>
		<description><![CDATA[Hidden waterfall by Silviu Vulcan (silviuvulcan) Silviu Vulcan: Photos · Blog · Activity · Friends · Favorites RSS: Popular Photos · Editors Choice · Upcoming Photos · Fresh Photos &#160; Social: Twitter · Facebook · LiveJournal · Blog]]></description>
			<content:encoded><![CDATA[<p><a href="http://500px.com/photo/4696830"><img src="http://pcdn.500px.net/4696830/c277b0600e648dca800c767be317475f694f8100/3.jpg" /></a></p>
<h2><a href="http://500px.com/photo/4696830">Hidden waterfall</a> by <a href="http://500px.com/silviuvulcan">Silviu Vulcan</a> (<a href="http://500px.com/silviuvulcan">silviuvulcan</a>)</h2>
<p>          	Silviu Vulcan: <a href="http://500px.com/silviuvulcan">Photos</a> · <a href="http://500px.com/silviuvulcan/blog">Blog</a> · <a href="http://500px.com/silviuvulcan/activity">Activity</a> · <a href="http://500px.com/silviuvulcan/friends">Friends</a> ·  <a href="http://500px.com/silviuvulcan/favorites">Favorites</a><br />
          	RSS:<br />
            <a href="http://rss.500px.com/500px">Popular Photos</a> ·<br />
            <a href="http://rss.500px.com/500px/editors">Editors Choice</a> ·<br />
            <a href="http://rss.500px.com/500px/upcoming">Upcoming Photos</a> ·<br />
            <a href="http://rss.500px.com/500px/fresh">Fresh Photos</a> &nbsp;<br /> <br />
            Social: <a href="http://twitter.com/500px">Twitter</a> ·<br />
            <a href="http://facebook.com/500px">Facebook</a> ·<br />
            <a href="http://community.livejournal.com/500px/">LiveJournal</a> ·<br />
            <a href="http://500px.com/blog">Blog</a>               </p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/hidden-waterfall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>In the green</title>
		<link>http://www.sgvulcan.com/in-the-green/</link>
		<comments>http://www.sgvulcan.com/in-the-green/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 19:00:05 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/in-the-green/</guid>
		<description><![CDATA[In the green by Silviu Vulcan (silviuvulcan) Silviu Vulcan: Photos · Blog · Activity · Friends · Favorites RSS: Popular Photos · Editors Choice · Upcoming Photos · Fresh Photos &#160; Social: Twitter · Facebook · LiveJournal · Blog]]></description>
			<content:encoded><![CDATA[<p><a href="http://500px.com/photo/4696829"><img src="http://pcdn.500px.net/4696829/515e58fab177578cca92b4c5dd8371fa776ff667/3.jpg" /></a></p>
<h2><a href="http://500px.com/photo/4696829">In the green</a> by <a href="http://500px.com/silviuvulcan">Silviu Vulcan</a> (<a href="http://500px.com/silviuvulcan">silviuvulcan</a>)</h2>
<p>          	Silviu Vulcan: <a href="http://500px.com/silviuvulcan">Photos</a> · <a href="http://500px.com/silviuvulcan/blog">Blog</a> · <a href="http://500px.com/silviuvulcan/activity">Activity</a> · <a href="http://500px.com/silviuvulcan/friends">Friends</a> ·  <a href="http://500px.com/silviuvulcan/favorites">Favorites</a><br />
          	RSS:<br />
            <a href="http://rss.500px.com/500px">Popular Photos</a> ·<br />
            <a href="http://rss.500px.com/500px/editors">Editors Choice</a> ·<br />
            <a href="http://rss.500px.com/500px/upcoming">Upcoming Photos</a> ·<br />
            <a href="http://rss.500px.com/500px/fresh">Fresh Photos</a> &nbsp;<br /> <br />
            Social: <a href="http://twitter.com/500px">Twitter</a> ·<br />
            <a href="http://facebook.com/500px">Facebook</a> ·<br />
            <a href="http://community.livejournal.com/500px/">LiveJournal</a> ·<br />
            <a href="http://500px.com/blog">Blog</a>               </p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/in-the-green/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Frozen</title>
		<link>http://www.sgvulcan.com/frozen/</link>
		<comments>http://www.sgvulcan.com/frozen/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 19:00:04 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/frozen/</guid>
		<description><![CDATA[Frozen by Silviu Vulcan (silviuvulcan) Silviu Vulcan: Photos · Blog · Activity · Friends · Favorites RSS: Popular Photos · Editors Choice · Upcoming Photos · Fresh Photos &#160; Social: Twitter · Facebook · LiveJournal · Blog]]></description>
			<content:encoded><![CDATA[<p><a href="http://500px.com/photo/4696823"><img src="http://pcdn.500px.net/4696823/2aab3afd7039591a2a76cac4e7c3da20a1099447/3.jpg?t=1327943983" /></a></p>
<h2><a href="http://500px.com/photo/4696823">Frozen</a> by <a href="http://500px.com/silviuvulcan">Silviu Vulcan</a> (<a href="http://500px.com/silviuvulcan">silviuvulcan</a>)</h2>
<p>          	Silviu Vulcan: <a href="http://500px.com/silviuvulcan">Photos</a> · <a href="http://500px.com/silviuvulcan/blog">Blog</a> · <a href="http://500px.com/silviuvulcan/activity">Activity</a> · <a href="http://500px.com/silviuvulcan/friends">Friends</a> ·  <a href="http://500px.com/silviuvulcan/favorites">Favorites</a><br />
          	RSS:<br />
            <a href="http://rss.500px.com/500px">Popular Photos</a> ·<br />
            <a href="http://rss.500px.com/500px/editors">Editors Choice</a> ·<br />
            <a href="http://rss.500px.com/500px/upcoming">Upcoming Photos</a> ·<br />
            <a href="http://rss.500px.com/500px/fresh">Fresh Photos</a> &nbsp;<br /> <br />
            Social: <a href="http://twitter.com/500px">Twitter</a> ·<br />
            <a href="http://facebook.com/500px">Facebook</a> ·<br />
            <a href="http://community.livejournal.com/500px/">LiveJournal</a> ·<br />
            <a href="http://500px.com/blog">Blog</a>               </p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/frozen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make sensors report temperature on slacware64-current with an Intel I7 2600k</title>
		<link>http://www.sgvulcan.com/make-sensors-report-temperature-on-slacware64-current-with-an-intel-i7-2600k/</link>
		<comments>http://www.sgvulcan.com/make-sensors-report-temperature-on-slacware64-current-with-an-intel-i7-2600k/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 20:01:49 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[2600k]]></category>
		<category><![CDATA[i7]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[slackware]]></category>
		<category><![CDATA[temperature]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=2049</guid>
		<description><![CDATA[For some reasons the required modules don&#8217;t get loaded. Add the following to /etc/rc.d/rc.modules right above the line reading ### Mouse support: View Code BASH1 2 3 ### by SV for i2600k temperature /sbin/modprobe coretemp /sbin/modprobe pkgtemp Now sensors report the temperatures.]]></description>
			<content:encoded><![CDATA[<p>For some reasons the required modules don&#8217;t get loaded. Add the following to /etc/rc.d/rc.modules right above the line reading ### Mouse support:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2049code10'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p204910"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p2049code10"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">### by SV for i2600k temperature</span>
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>modprobe coretemp
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>modprobe pkgtemp</pre></td></tr></table></div>

<p>Now sensors report the temperatures.</p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/make-sensors-report-temperature-on-slacware64-current-with-an-intel-i7-2600k/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cum sa explici occidentalilor taierea porcului de Craciun</title>
		<link>http://www.sgvulcan.com/cum-sa-explici-occidentalilor-taierea-porcului-de-craciun/</link>
		<comments>http://www.sgvulcan.com/cum-sa-explici-occidentalilor-taierea-porcului-de-craciun/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 11:18:38 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[Fun]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=2039</guid>
		<description><![CDATA[A tot circulat pe mail si mi s-a parut foarte buna Credit autorulu necunoscut! Relatarea unui roman care traieste in Occident De criză, de dor și de fițe mi-a venit ideea să tai porc de Crăciun, cum se făcea pe timpuri la mine la țară. Bine, ai mei nu îl tăiau de Crăciun, ci înainte de Sfântul Andrei, noi nemaiavînd răbdare și nici prea multe prin cămară să-l putem păsui pînă la Ignat. După ce mi-am ascuțit cuțitele pe gresia de la baie și am procurat doi baloți de paie, decorativi, uitați de un vecin în fața casei încă de la Halloween, m-am pus să caut porc. Prima dată am dat anunț pe internet că doresc să achiziționez, pentru sacrificare, animal de talie medie, pînă în 150 de kilograme, dar nu mi-a răspuns nimeni, în afară de un sonat care mi-a zis că-i plac ideile mele și, dacă vreau, putem să sacrificăm împreună, mai mulți! Eu cred că toți nebunii au fugit din lume și s-au ascuns pe internet! Dar divaghez! Cînd mi-am întrebat colegii la serviciu dacă știu pe undeva un porc viu, au devenit foarte curioși că ce vreau să fac cu el, că e mare de pet [...]]]></description>
			<content:encoded><![CDATA[<p><strong><em>A tot circulat pe mail si mi s-a parut foarte buna <img src='http://www.sgvulcan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Credit autorulu necunoscut!</em></strong></p>
<p>Relatarea unui roman care traieste in Occident</p>
<p>De criză, de dor și de fițe mi-a venit ideea să tai porc de Crăciun, cum se făcea pe timpuri la mine la țară. Bine, ai mei nu îl tăiau de Crăciun, ci înainte de Sfântul Andrei, noi nemaiavînd răbdare și nici prea multe prin cămară să-l putem păsui pînă la Ignat.</p>
<p>După ce mi-am ascuțit cuțitele pe gresia de la baie și am procurat doi baloți de paie, decorativi, uitați de un vecin în fața casei încă de la Halloween, m-am pus să caut porc. Prima dată am dat anunț pe internet că doresc să achiziționez, pentru sacrificare, animal de talie medie, pînă în 150 de kilograme, dar nu mi-a răspuns nimeni, în afară de un sonat care mi-a zis că-i plac ideile mele și, dacă vreau, putem să sacrificăm împreună, mai mulți! Eu cred că toți nebunii au fugit din lume și s-au ascuns pe internet! Dar divaghez!</p>
<p>Cînd mi-am întrebat colegii la serviciu dacă știu pe undeva un porc viu, au devenit foarte curioși că ce vreau să fac cu el, că e mare de pet (animal de companie, adică, în loc de mîtză sau cîine), că face mizerie multă. Cînd le-am spus că vreau să-l tai, au făcut ochii cît cepele și m-au luat la rost că de ce. Ca să-l mănînc, de-aia, le-am răspuns, moment în care și ultimele rămășițe de simpatie, toleranță și înțelegere pe care le aveau pentru mine au dispărut. Cum să omori un animal și să-l manînci, așa, ca un barbar?</p>
<p>Eh, cînd am văzut eu că ăștia sunt gata să sune la PETA, am început să le descriu în amănunt operațiunile specifice, insistînd pe secționarea carotidei și colectarea sîngelui într-un lighean, de preferință cu smalțul sărit, ca la mama acasă, în vederea preparării sîngeretelui și mai ales a borîndăului. N-am știut eu cum se zice în engleză la borîndău, la fel cum nu știu nici în românește, dar le-am explicat că e un fel de mămăligă din făină de porumb cu sînge în loc de apă. Cred că vreo trei, mai simțitori, așa, au dispărut spre baie, iar restul, că acum deja se strînsese tot compartimentul în jurul meu, să mă asculte, mă priveau cînd cu milă, cînd cu dezgust. Apoi, zic, pîrlim șoriciul cu paie, sau la butelie, dacă stăm la bloc, și tăiem urechile animalului, pe care le consumăm pe loc, cu puțină sare.</p>
<p>Mai trimisei vreo doi la baie, dar i-am dat înainte, fiind conștient că un alt moment în care să mă asculte oamenii cu atîta atenție nu o să mai prind, poate, niciodată. După ce epilăm animalul cu flacăra, continui eu, îl despicăm cu securea sau toporul, ce ne vine la mînă, și scoatem organele, pe care le fierbem împreună cu capul, în vederea preparării caltaboșului. Știți, bănuiesc – le-am zis eu degajat –, că pentru caltaboș se folosește intestinul gros, spălat facultativ și opărit în apă cu ceapă, pentru mascarea miasmelor naturale. S-a plecat cu grupul după fraza asta, și am mai rămas cu vreo trei, cei mai tari de înger și de stomac, cred, de fapt doi, că unul dintre ei era un coreean care nu pricepe engleză și stă toată ziua cu căștile pe urechi, dar se alătură oricărui grup și dă din cap aprobator la orice discuție.</p>
<p>Cu restul cărnii, am zis eu mai departe, facem cîrnați, grătare și sarmale, iar dacă răposatul a fost gras, putem să frigem și o oală de jumări, așa, de poftă, care să mai taie din tăria băuturii.</p>
<p>Eu zic că au scăpat ieftin totuși, pentru că dacă m-aș fi apucat să le povestesc cum se fac hot dogii și parizerul pe care le înfulecă ei la lunch, băgam toată firma-n spital.&#8221;</p>
<p>Traiasca globalizarea!</p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/cum-sa-explici-occidentalilor-taierea-porcului-de-craciun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recursively remove digikam&#8217;s xmp embeded tags</title>
		<link>http://www.sgvulcan.com/recursively-remove-digikams-xmp-embeded-tags/</link>
		<comments>http://www.sgvulcan.com/recursively-remove-digikams-xmp-embeded-tags/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 22:06:44 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[digikam]]></category>
		<category><![CDATA[exiftool]]></category>
		<category><![CDATA[sidecar]]></category>
		<category><![CDATA[tags]]></category>
		<category><![CDATA[xmp]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=2036</guid>
		<description><![CDATA[Because digikam made a mess of the tags I started to add to my pictures I decided to start from scratch. Note that I tried to get the max and I had set to write tags both to .xmp sidecar files and inside the image files. I also use the mysql backend. One of the above broken everything (I started seeing _digikam_root_tag) and some of my tags were doubled. So all in all I wanted to delete them all: Remove your collection from digikam Drop all tables from the digikam database Remove all .xmp files. In the folder containing your collection: find . -name *.xmp -exec rm {} \; Remove all embedded xmp tags (again in the folder containing you collection) exiftool -r -P -xmp:TagsList= -xmp:LastKeywordXMP= -xmp:HierarchicalSubject= -xmp:Subject= -iptc:Keywords= * DON&#8217;T FOLLOW THIS BLINDLY This is just a sketch of the process. If you don&#8217;t understand what are you doing don&#8217;t do it! I also kept all .original files exiftool generated, just in case I discover something later on. &#160;]]></description>
			<content:encoded><![CDATA[<p>Because digikam made a mess of the tags I started to add to my pictures I decided to start from scratch. Note that I tried to get the max and I had set to write tags both to .xmp sidecar files and inside the image files. I also use the mysql backend.</p>
<p>One of the above broken everything (I started seeing _digikam_root_tag) and some of my tags were doubled. So all in all I wanted to delete them all:</p>
<ul>
<li>Remove your collection from digikam</li>
<li>Drop all tables from the digikam database</li>
<li>Remove all .xmp files. In the folder containing your collection:<br />
find . -name *.xmp -exec rm {} \;</li>
<li>Remove all embedded xmp tags (again in the folder containing you collection)<br />
exiftool -r -P -xmp:TagsList= -xmp:LastKeywordXMP= -xmp:HierarchicalSubject= -xmp:Subject= -iptc:Keywords= *</li>
</ul>
<p><strong>DON&#8217;T FOLLOW THIS BLINDLY</strong></p>
<p>This is just a sketch of the process. If you don&#8217;t understand what are you doing don&#8217;t do it! I also kept all .original files exiftool generated, just in case I discover something later on.</p>
<p>&nbsp;</p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/recursively-remove-digikams-xmp-embeded-tags/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unpacking a .deb file (including scripts)</title>
		<link>http://www.sgvulcan.com/unpacking-a-deb-file-including-scripts/</link>
		<comments>http://www.sgvulcan.com/unpacking-a-deb-file-including-scripts/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 10:11:54 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[deb]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[extract]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[slackware]]></category>
		<category><![CDATA[tar.gz]]></category>
		<category><![CDATA[tgz]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=2034</guid>
		<description><![CDATA[While attempting to install a deb package on a slackware system I wanted to check the install script that the package runs. I tried the deb2tgz utility but unfortunately that only left me the files in the package in a ready to install .tgz file. Here&#8217;s how to unpack a .deb to obtain both scripts and files: View Code BASH1 2 cd /tmp/somefolder ar x somepackage.deb This leaves you with two files: control.tar.gz and data.tar.gz The first contains the pre and post install scripts and the second contains the files.]]></description>
			<content:encoded><![CDATA[<p>While attempting to install a deb package on a slackware system I wanted to check the install script that the package runs. I tried the deb2tgz utility but unfortunately that only left me the files in the package in a ready to install .tgz file.</p>
<p>Here&#8217;s how to unpack a .deb to obtain both scripts and files:</p>
<div>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2034code12'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p203412"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p2034code12"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>somefolder
<span style="color: #c20cb9; font-weight: bold;">ar</span> x somepackage.deb</pre></td></tr></table></div>

<p>This leaves you with two files:</p>
<p>control.tar.gz and data.tar.gz The first contains the pre and post install scripts and the second contains the files.
</p></div>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/unpacking-a-deb-file-including-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

