<?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 &#187; Tips and tricks</title>
	<atom:link href="http://www.sgvulcan.com/category/articles/tips-and-tricks/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, 08 Feb 2012 09:39:01 +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 id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><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>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 id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><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>Fixing a self pressing button on an Asus VW202SR monitor</title>
		<link>http://www.sgvulcan.com/fixing-a-self-pressing-button-on-an-asus-vw202sr-monitor/</link>
		<comments>http://www.sgvulcan.com/fixing-a-self-pressing-button-on-an-asus-vw202sr-monitor/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 18:51:16 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[asus]]></category>
		<category><![CDATA[brightness]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[lcd]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[stuck]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=2006</guid>
		<description><![CDATA[Well, today instead of working I had the pleasure of fixing the monitor The monitor is an older Asus VW202 SR that my wife uses connected to the laptop. I tried everything else (power cycling, another signal cable, another computer) but it turns out to be really the button. The issue manifested itself by the brightness setting window appearing and going eventually all the way to 100. First I thought that the button was stuck in the frame but it was safely depressed. That means a broken button on the pcb board. I thought it would be pretty easy to solder a new one in place. But first I had to disassemble it: 1. Search and remove. There are 7 philips screws. 2 under rubber caps, 2 under flat foil, 2 holding the stand and 1 on the middle of the bottom frame. Make notes that the two of the stand are a different size. One is hidden under the warranty seal. Don&#8217;t loose the rubber caps and place the flat ones with the adhesive side facing up. This way you can reuse them. There are two openings in the frame at the bottom. Place the monitor facing up and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sgvulcan.com/wp-content/uploads/2012/01/IMG_0379.jpg" rel="lightbox[2006]"><img class="alignleft  wp-image-2016" title="Broken button Asus Monitor showing Brightness menu" src="http://www.sgvulcan.com/wp-content/uploads/2012/01/IMG_0379-300x200.jpg" alt="" width="210" height="140" /></a></p>
<p>Well, today instead of working I had the pleasure of fixing the monitor <img src='http://www.sgvulcan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  The monitor is an older Asus VW202 SR that my wife uses connected to the laptop. I tried everything else (power cycling, another signal cable, another computer) but it turns out to be really the button. The issue manifested itself by the brightness setting window appearing and going eventually all the way to 100. First I thought that the button was stuck in the frame but it was safely depressed. That means a broken button on the pcb board. I thought it would be pretty easy to solder a new one in place.</p>
<p><span id="more-2006"></span></p>
<p>But first I had to disassemble it:</p>
<p><a href="http://www.sgvulcan.com/wp-content/uploads/2012/01/IMG_0366_v1.jpg" rel="lightbox[2006]"><img class="alignnone  wp-image-2007" title="Asus monitor dissasembly step" src="http://www.sgvulcan.com/wp-content/uploads/2012/01/IMG_0366_v1-464x333.jpg" alt="Asus monitor dissasembly step" width="464" height="333" /></a></p>
<p>1. Search and remove. There are 7 philips screws. 2 under rubber caps, 2 under flat foil, 2 holding the stand and 1 on the middle of the bottom frame. Make notes that the two of the stand are a different size.</p>
<p><a href="http://www.sgvulcan.com/wp-content/uploads/2012/01/IMG_0368_v1.jpg" rel="lightbox[2006]"><img class="alignnone size-500 wp-image-2008" title="Asus monitor dissasembly step" src="http://www.sgvulcan.com/wp-content/uploads/2012/01/IMG_0368_v1-500x213.jpg" alt="Asus monitor dissasembly step" width="500" height="213" /></a></p>
<p>One is hidden under the warranty seal.</p>
<p><a href="http://www.sgvulcan.com/wp-content/uploads/2012/01/IMG_0369_v1.jpg" rel="lightbox[2006]"><img title="Asus monitor dissasembly step" src="http://www.sgvulcan.com/wp-content/uploads/2012/01/IMG_0369_v1-216x333.jpg" alt="Asus monitor dissasembly step" width="216" height="333" /></a></p>
<p>Don&#8217;t loose the rubber caps and place the flat ones with the adhesive side facing up. This way you can reuse them.</p>
<p><a href="http://www.sgvulcan.com/wp-content/uploads/2012/01/IMG_0371_v1.jpg" rel="lightbox[2006]"><img title="Asus monitor dissasembly step" src="http://www.sgvulcan.com/wp-content/uploads/2012/01/IMG_0371_v1-500x96.jpg" alt="Asus monitor dissasembly step" width="500" height="96" /></a></p>
<p>There are two openings in the frame at the bottom. Place the monitor facing up and use a plastic tool (or if, like me, you don&#8217;t care about marks you can use a flat-head screwdriver) <strong>Pull very gently</strong> as the frame holds a small pcb board with the buttons and the power led. Disconnect it before lifting the frame.</p>
<p><a href="http://www.sgvulcan.com/wp-content/uploads/2012/01/IMG_0372_v1.jpg" rel="lightbox[2006]"><img title="Asus monitor dissasembly step" src="http://www.sgvulcan.com/wp-content/uploads/2012/01/IMG_0372_v1-500x287.jpg" alt="Asus monitor dissasembly step" width="500" height="287" /></a></p>
<p>That is the PCB that needs removing. You need to bend one of the plastic posts holding it in place. Be very careful not to snap it.</p>
<p><a href="http://www.sgvulcan.com/wp-content/uploads/2012/01/IMG_0373_v1.jpg" rel="lightbox[2006]"><img title="Asus monitor dissasembly step" src="http://www.sgvulcan.com/wp-content/uploads/2012/01/IMG_0373_v1-500x105.jpg" alt="Asus monitor dissasembly step" width="500" height="105" /></a></p>
<p>Make note of the button causing you troubles. For me it was menu right (toggles brightness when not in menu)</p>
<p><a href="http://www.sgvulcan.com/wp-content/uploads/2012/01/IMG_0375_v1.jpg" rel="lightbox[2006]"><img title="Asus monitor dissasembly step" src="http://www.sgvulcan.com/wp-content/uploads/2012/01/IMG_0375_v1-500x239.jpg" alt="Asus monitor dissasembly step" width="500" height="239" /></a></p>
<p><strong>Try not to open the wrong one</strong> like I did!The problem was that I didn&#8217;t have buttons like this to solder in place. So I tried to see if I can fix it. Ok this is a bit tricky. Use a magnifying glass if you need to. The button has a metal casing held in place by 4 <em>clamps</em> (clasp? &#8211; for lack of a better term). I used a snapped syringe needle to gently lift it over the four clamps. Inside you will find a dome shaped metal disk (this is the one closing the circuit) and two plastic parts. Try to lift the casing without moving them and make note (take a picture) of their arrangement. It is important that they face the same way when assembling the button.</p>
<p><a href="http://www.sgvulcan.com/wp-content/uploads/2012/01/IMG_0376_v1.jpg" rel="lightbox[2006]"><img title="Asus monitor dissasembly step" src="http://www.sgvulcan.com/wp-content/uploads/2012/01/IMG_0376_v1-500x245.jpg" alt="Asus monitor dissasembly step" width="500" height="245" /></a></p>
<p>Not a good picture but enough detail on the bad button. The problem was caused by 1-2 metal particulates in the button. I cleaned it with a cotton swab. After you put the disc and the two plastic parts in place simply press the casing to snap in place.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><a href="http://www.sgvulcan.com/wp-content/uploads/2012/01/IMG_0377_v1.jpg" rel="lightbox[2006]"><img title="Asus monitor dissasembly step" src="http://www.sgvulcan.com/wp-content/uploads/2012/01/IMG_0377_v1-500x227.jpg" alt="Asus monitor dissasembly step" width="500" height="227" /></a></p>
<p>Don&#8217;t forget to connect the cable back to the PCB.</p>
<p>Do everything you did to get here in reverse to assemble the monitor!</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/fixing-a-self-pressing-button-on-an-asus-vw202sr-monitor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Limit number of related articles returned in Joomla 1.7 and Joomla 2.5</title>
		<link>http://www.sgvulcan.com/limit-number-of-related-articles-returned-in-joomla-1-7/</link>
		<comments>http://www.sgvulcan.com/limit-number-of-related-articles-returned-in-joomla-1-7/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 15:39:15 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[articles]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[limit]]></category>
		<category><![CDATA[mod_related_items]]></category>
		<category><![CDATA[related]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1988</guid>
		<description><![CDATA[Joomla 1.7 has a nice module mod_related_items (Articles Related) that shows articles related to the current one the visitor is browsing. It has one issue though, you can&#8217;t set a limit. So a little code hacking is in order. Open modules/mod_related_items/helper.php and go to line 94 (right after the Filter by language if) and modify $db-&#62;setQuery($query); to read: View Code PHP1 $db-&#38;gt;setQuery&#40;$query,0,10&#41;; Of course you can change the limit from 10 with whatever you like. Random order is commented out because using ORDER BY RAND has performance issues. If you think you can handle it feel free to uncomment. This hack also works for Joomla 2.5! Homework: add parameter in the admin interface Feel free to post the solution]]></description>
			<content:encoded><![CDATA[<p>Joomla 1.7 has a nice module mod_related_items (Articles Related) that shows articles related to the current one the visitor is browsing. It has one issue though, you can&#8217;t set a limit.</p>
<p>So a little code hacking is in order. Open modules/mod_related_items/helper.php and go to line 94 (right after the <em>Filter by language </em>if<em>)</em> and modify $db-&gt;setQuery($query); to read:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1988code4'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p19884"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p1988code4"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$db</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>setQuery<span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Of course you can change the limit from 10 with whatever you like. Random order is commented out because using ORDER BY RAND has performance issues. If you think you can handle it feel free to uncomment.</p>
<p><strong>This hack also works for Joomla 2.5!</strong></p>
<p><strong>Homework:</strong></p>
<ul>
<li>add parameter in the admin interface Feel free to post the solution <img src='http://www.sgvulcan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/limit-number-of-related-articles-returned-in-joomla-1-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cbnet Ping Optimizer is killing a site</title>
		<link>http://www.sgvulcan.com/cbnet-ping-optimizer-is-killing-a-site/</link>
		<comments>http://www.sgvulcan.com/cbnet-ping-optimizer-is-killing-a-site/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 10:28:20 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[cbnet Ping Optimizer]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[slow]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1984</guid>
		<description><![CDATA[Some wise soul decided many moons ago that installing the aforementioned plugin on a site I host. The wise soul is long gone (admining websites for ngo&#8217;s as a volunteer is no fun to many ) but the site was getting more and more sluggish lately. I decided to clean a bit the many modules he thought in his wisdom to install. Like any major work on a site I started with a backup. I was puzzled to see that mysqldump would hang. I checked, it was not hanging, it was dumping a really huge .sql file. That was not normal as the site only has a few hundreds of articles. A check in phpmyadmin later and I found the culprit: WPPREFIX_cbnetpo_ping_optimizer table had over 11Gb. Great, 82 million records for some errors about not being able to ping. Great: no limit on how much you log in the table, no throttling on errors (each error is logged tens of times in the same second) and so on. I could track where this comes from but I simply removed the darn plugin and dropped the table.]]></description>
			<content:encoded><![CDATA[<p>Some wise soul decided many moons ago that installing the aforementioned plugin on a site I host. The wise soul is long gone (admining websites for ngo&#8217;s as a volunteer is no fun to many <img src='http://www.sgvulcan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ) but the site was getting more and more sluggish lately. I decided to clean a bit the many modules he thought in his wisdom to install. Like any major work on a site I started with a backup. I was puzzled to see that <a href="http://manpages.sgvulcan.com/mysqldump.1.php">mysqldump</a> would hang. I checked, it was not hanging, it was dumping a really huge .sql file. That was not normal as the site only has a few hundreds of articles. A check in phpmyadmin later and I found the culprit:</p>
<p><strong>WPPREFIX_cbnetpo_ping_optimizer</strong> table had over <strong>11Gb. Great, 82 million records</strong> for some errors about not being able to ping. Great: no limit on how much you log in the table, no throttling on errors (each error is logged tens of times in the same second) and so on. I could track where this comes from but I simply removed the darn plugin and dropped the table.</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/cbnet-ping-optimizer-is-killing-a-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cadsoft Eagle on Slackware Current 64bit</title>
		<link>http://www.sgvulcan.com/cadsoft-eagle-on-slackware-current-64bit/</link>
		<comments>http://www.sgvulcan.com/cadsoft-eagle-on-slackware-current-64bit/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 09:00:29 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[cadsoft]]></category>
		<category><![CDATA[current]]></category>
		<category><![CDATA[eagle]]></category>
		<category><![CDATA[eaglepcb]]></category>
		<category><![CDATA[slackwre]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1821</guid>
		<description><![CDATA[I want to start building some new electronics projects and I wanted to use some tool to build my schematics. Even if not open source Cadsoft&#8217;s Eagle seems to be the de-facto standard between hobbyists. Unfortunately trying to run the setup on Slackware gives the errors regarding to /&#8230;/bin/eagle: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory libssl.so.1.0.0 and libcrypto.so.1.0.0 I run a multilib setup so that&#8217;s not it. It turns that all I had to do was: View Code BASH1 2 3 cd /lib ln -s libssl.so.0.9.8 libssl.so.1.0.0 ln -s libcrypt-2.14.1.so libcrypto.so.1.0.0 in /lib Hope that helps.]]></description>
			<content:encoded><![CDATA[<p>I want to start building some new electronics projects and I wanted to use some tool to build my schematics. Even if not open source <a href="http://www.cadsoftusa.com/" target="_blank">Cadsoft&#8217;s Eagle</a> seems to be the de-facto standard between hobbyists.</p>
<p>Unfortunately trying to run the setup on Slackware gives the errors regarding to</p>
<p>/&#8230;/bin/eagle: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory</p>
<p>libssl.so.1.0.0 and libcrypto.so.1.0.0</p>
<p>I run a multilib setup so that&#8217;s not it. It turns that all I had to do was:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1821code6'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p18216"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p1821code6"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>lib
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> libssl.so.0.9.8 libssl.so.1.0.0
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> libcrypt-2.14.1.so libcrypto.so.1.0.0</pre></td></tr></table></div>

<p>in /lib</p>
<p>Hope that helps.</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/cadsoft-eagle-on-slackware-current-64bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New AdSense interface language</title>
		<link>http://www.sgvulcan.com/new-adsense-interface-language/</link>
		<comments>http://www.sgvulcan.com/new-adsense-interface-language/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 08:06:47 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[adsense]]></category>
		<category><![CDATA[default]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[qa]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1801</guid>
		<description><![CDATA[Though not my native language I like all my software in English. It always sounds weird to me to see it different. Ever since AdSense upgraded the looks it switched to Romanian. Today I wanted to tackle this: I went to Home-&#62;Account settings-&#62;Display Language It was already English US Well, it won&#8217;t be the first webapp displaying a default that was there in the interface but not in the settings database. So I clicked EDIT switched to English UK, hit save and then back to English US and save again. It worked. QA was at lunch again for google.]]></description>
			<content:encoded><![CDATA[<p>Though not my native language I like all my software in English. It always sounds weird to me to see it different. Ever since AdSense upgraded the looks it switched to Romanian. Today I wanted to tackle this:</p>
<p>I went to<strong> Home-&gt;Account settings-&gt;Display Language</strong></p>
<p>It was already<strong> English US</strong></p>
<p>Well, it won&#8217;t be the first webapp displaying a default that was there in the interface but not in the settings database.</p>
<p>So I clicked <strong>EDIT</strong> switched to English UK, hit <strong>save</strong> and then back to English US and <strong>save </strong>again.</p>
<p>It worked. QA was at lunch <a href="http://www.sgvulcan.com/concatenate-multiple-vcf-files-into-one-for-importing-into-gmail/">again </a>for google.</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/new-adsense-interface-language/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Concatenate multiple *.vcf files into one for importing into gMail</title>
		<link>http://www.sgvulcan.com/concatenate-multiple-vcf-files-into-one-for-importing-into-gmail/</link>
		<comments>http://www.sgvulcan.com/concatenate-multiple-vcf-files-into-one-for-importing-into-gmail/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 13:46:50 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[maemo]]></category>
		<category><![CDATA[n900]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1718</guid>
		<description><![CDATA[I have a secondary phone that is running Android. My main phone is still a Nokia N900 for which I gave up trying to sync contacts with gmail. Two options basically exist for n900 none of which works for me: using MFE which works from time to time use syncevolution which invariably screws my contacts on the n900 (I guess google&#8217;s implementation of syncml or exchange support is dubious at best) So I devised a third. Since I edit and store all my contacts on the n900 I will export them from time to time (Contacts-&#62;Export-&#62;All contacts)  and import them manually into gmail. Note that Gmail doesn&#8217;t support vCard 3.0; you have to export as 2.1. Unfortunately the n900 will export each contact into a separate file. Since google doesn&#8217;t offer bulk import support I thought of concatenating all files into one: cat *.vcf &#62; all_contacts.vcf Good idea, but it doesn&#8217;t work. In another example of fine programming skills clicking import uploads the file and returns with no contact imported and no error message. Nice one. It seems some new lines are missing; and so this will work (in the folder with the vcf files) for i in *.vcf; do [...]]]></description>
			<content:encoded><![CDATA[<p>I have a secondary phone that is running Android. My main phone is still a Nokia N900 for which I gave up trying to sync contacts with gmail. Two options basically exist for n900 none of which works for me:</p>
<ol>
<li>using MFE which works from time to time</li>
<li>use syncevolution which invariably screws my contacts on the n900 (I guess google&#8217;s implementation of syncml or exchange support is dubious at best)</li>
</ol>
<p>So I devised a third. Since I edit and store all my contacts on the n900 I will export them from time to time <strong>(Contacts-&gt;Export-&gt;All contacts)  </strong>and import them manually into gmail. <strong><em>Note that Gmail doesn&#8217;t support vCard 3.0; you have to export as 2.1</em></strong>. Unfortunately the n900 will export each contact into a separate file. Since google doesn&#8217;t offer bulk import support I thought of concatenating all files into one:</p>
<p><strong>cat *.vcf &gt; all_contacts.vcf</strong></p>
<p>Good idea, but it doesn&#8217;t work. In another example of fine programming skills clicking import uploads the file and returns with no contact imported and <strong>no error message</strong>. Nice one.</p>
<p>It seems some new lines are missing; and so this will work (in the folder with the vcf files)</p>
<p><strong>for i in *.vcf; do cat &#8220;$i&#8221; &gt;&gt; ../all_contacts.vcf; echo &gt;&gt; ../all_contacts.vcf; done</strong></p>
<p>Import worked now ok!</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/concatenate-multiple-vcf-files-into-one-for-importing-into-gmail/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Optimizing all mysql tables (from all databases)</title>
		<link>http://www.sgvulcan.com/optimizing-all-mysql-tables-from-all-databases/</link>
		<comments>http://www.sgvulcan.com/optimizing-all-mysql-tables-from-all-databases/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 06:44:55 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[Bash scripting]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[automatically]]></category>
		<category><![CDATA[databases]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[optimize]]></category>
		<category><![CDATA[tables]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1598</guid>
		<description><![CDATA[You want to optimize mysql tables from time to time in order to reduce fragmentation. Here&#8217;s an easy way to do it automatically (put it in a script and run it from cron for example) View Code BASH1 mysqlcheck -Aop -h hostname -u user -pPASSWORD What all those mean: &#8211;all-databases, -A; Check all tables in all databases. This is the same as using the &#8211;databases option and naming all the databases on the command line. &#8211;optimize, -o Optimize the tables. -h host to optimize (you can skip if it&#8217;s the localhost) -u mysql user -p the password]]></description>
			<content:encoded><![CDATA[<p>You want to optimize mysql tables from time to time in order to reduce fragmentation. Here&#8217;s an easy way to do it automatically (put it in a script and run it from cron for example)</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1598code8'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p15988"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p1598code8"><pre class="bash" style="font-family:monospace;">mysqlcheck <span style="color: #660033;">-Aop</span> <span style="color: #660033;">-h</span> <span style="color: #c20cb9; font-weight: bold;">hostname</span> <span style="color: #660033;">-u</span> user <span style="color: #660033;">-pPASSWORD</span></pre></td></tr></table></div>

<p>What all those mean:</p>
<p>&#8211;all-databases, -A; Check all tables in all databases. This is the same as using the &#8211;databases option and naming all the databases on the command line.<br />
&#8211;optimize, -o Optimize the tables.<br />
-h host to optimize (you can skip if it&#8217;s the localhost)<br />
-u mysql user<br />
-p the password</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/optimizing-all-mysql-tables-from-all-databases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clear Windows 7&#8243;Recent Items&#8221;/ jumplists</title>
		<link>http://www.sgvulcan.com/clear-windows-7recent-items-jumplists/</link>
		<comments>http://www.sgvulcan.com/clear-windows-7recent-items-jumplists/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 18:44:29 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[hidden]]></category>
		<category><![CDATA[jumlist]]></category>
		<category><![CDATA[recent items]]></category>
		<category><![CDATA[scheduler]]></category>
		<category><![CDATA[task]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1592</guid>
		<description><![CDATA[I hate windows&#8217;s jump lists. If you read this you probably hate them too They are stored as hidden files in a, you guessed, hidden directory. You can&#8217;t browse to it but you can type it in RUN or windows explorer location bar: %APPDATA%\Microsoft\Windows\Recent\AutomaticDestinations You will see there a bunch of files with long weird names. You can either search trough them to find the one you want to delete or simply do like I do: delete them all! Not just from time to time, but add a task in Windows Task Scheduler to remove them on shutdown. &#160;]]></description>
			<content:encoded><![CDATA[<p>I hate windows&#8217;s jump lists. If you read this you probably hate them too <img src='http://www.sgvulcan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>They are stored as hidden files in a, you guessed, hidden directory. You can&#8217;t browse to it but you can type it in RUN or windows explorer location bar:</p>
<p><strong><code>%APPDATA%\Microsoft\Windows\Recent\AutomaticDestinations</code></strong></p>
<p>You will see there a bunch of files with long weird names. You can either search trough them to find the one you want to delete or simply do like I do: delete them all! Not just from time to time, but add a task in Windows Task Scheduler to remove them on shutdown.</p>
<p>&nbsp;</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/clear-windows-7recent-items-jumplists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

