<?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/"
	>

<channel>
	<title>Synaptica srl</title>
	<atom:link href="http://www.synaptica.info/feed/langswitch_lang/en/" rel="self" type="application/rss+xml" />
	<link>http://www.synaptica.info</link>
	<description></description>
	<pubDate>Thu, 11 Mar 2010 20:22:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ubuntu 9.10 and iNvidia drivers for dual monitor</title>
		<link>http://www.synaptica.info/2010/03/11/ubuntu-910-and-invidia-drivers-for-dual-monitor/langswitch_lang/en/</link>
		<comments>http://www.synaptica.info/2010/03/11/ubuntu-910-and-invidia-drivers-for-dual-monitor/langswitch_lang/en/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 12:35:03 +0000</pubDate>
		<dc:creator>ivan</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<category><![CDATA[9.10]]></category>

		<category><![CDATA[Add new tag]]></category>

		<category><![CDATA[drivers]]></category>

		<category><![CDATA[dual monitor]]></category>

		<category><![CDATA[karmic]]></category>

		<category><![CDATA[koala]]></category>

		<category><![CDATA[nvidia]]></category>

		<category><![CDATA[proprietary]]></category>

		<category><![CDATA[scheda video]]></category>

		<category><![CDATA[ubuntu]]></category>

		<category><![CDATA[Ubuntu 9.10]]></category>

		<category><![CDATA[xorg]]></category>

		<category><![CDATA[xorg.conf]]></category>

		<guid isPermaLink="false">http://www.synaptica.info/?p=902&amp;langswitch_lang=it</guid>
		<description><![CDATA[<p>This morning i got a problem configuring my dual monitor on my ubuntu 9.10&#8230; after had enabled the propetary driver from invidia when i try to write the xorg.conf i got an error from the interface of that driver like : can&#8217;t parse the /etc/X11/xorg.conf.</p>
<p>  So i opened my shell and i do that [...]]]></description>
			<content:encoded><![CDATA[<p>This morning i got a problem configuring my dual monitor on my ubuntu 9.10&#8230; after had enabled the propetary driver from invidia when i try to write the xorg.conf i got an error from the interface of that driver like : can&#8217;t parse the /etc/X11/xorg.conf.</p>
<p>  So i opened my shell and i do that on my risks  .</p>
<p>1) backuped the original xorg.conf (that function well with a single monitor) lik : </p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="kw2">sudo</span> <span class="kw2">cp</span> /etc/X11/xorg.conf /etc/X11/xorg.conf.backup </div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
<p>2) i deleted the original xorg.conf</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; $ <span class="kw3">cd</span> /etc/X11</div>
</li>
<li class="li1">
<div class="de1">&nbsp; $ <span class="kw2">sudo</span> <span class="kw2">rm</span> xorg.conf</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
<p>3) i run the nvidia setting with sudo like : </p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; $ <span class="kw2">sudo</span> nvidia-settings</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
<p>4) after this i saved the xorg.conf with the nvidia configuration tool : </p>
<p><a href="http://www.synaptica.info/wp-content/uploads/2010/03/nvidia.png" onclick=""><img src="http://www.synaptica.info/wp-content/uploads/2010/03/nvidia.png" alt="nvidia" title="nvidia" width="703" height="649" class="aligncenter size-full wp-image-903" /></a></p>
<p>5) before restart i checked if the xorg.conf exits and i watched what was happend : </p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">$ <span class="kw2">more</span> xorg.conf</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">Section <span class="st0">&quot;ServerLayout&quot;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; Identifier &nbsp; &nbsp; <span class="st0">&quot;Layout0&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Screen &nbsp; &nbsp; &nbsp;<span class="nu0">0</span> &nbsp;<span class="st0">&quot;Screen0&quot;</span> <span class="nu0">1680</span> <span class="nu0">0</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Screen &nbsp; &nbsp; &nbsp;<span class="nu0">1</span> &nbsp;<span class="st0">&quot;Screen1&quot;</span> LeftOf <span class="st0">&quot;Screen0&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; InputDevice &nbsp; &nbsp;<span class="st0">&quot;Keyboard0&quot;</span> <span class="st0">&quot;CoreKeyboard&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; InputDevice &nbsp; &nbsp;<span class="st0">&quot;Mouse0&quot;</span> <span class="st0">&quot;CorePointer&quot;</span></div>
</li>
<li class="li2">
<div class="de2">EndSection</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">Section <span class="st0">&quot;Files&quot;</span></div>
</li>
<li class="li1">
<div class="de1">EndSection</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2">Section <span class="st0">&quot;Module&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Load &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;dbe&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Load &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;extmod&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Load &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;type1&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Load &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;freetype&quot;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; Load &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;glx&quot;</span></div>
</li>
<li class="li1">
<div class="de1">EndSection</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">Section <span class="st0">&quot;ServerFlags&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Option &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;Xinerama&quot;</span> <span class="st0">&quot;0&quot;</span></div>
</li>
<li class="li2">
<div class="de2">EndSection</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">Section <span class="st0">&quot;InputDevice&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="re3"># generated from default</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Identifier &nbsp; &nbsp; <span class="st0">&quot;Mouse0&quot;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; Driver &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;mouse&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Option &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;Protocol&quot;</span> <span class="st0">&quot;auto&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Option &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;Device&quot;</span> <span class="st0">&quot;/dev/psaux&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Option &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;Emulate3Buttons&quot;</span> <span class="st0">&quot;no&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Option &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;ZAxisMapping&quot;</span> <span class="st0">&quot;4 5&quot;</span></div>
</li>
<li class="li2">
<div class="de2">EndSection</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">Section <span class="st0">&quot;InputDevice&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="re3"># generated from default</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Identifier &nbsp; &nbsp; <span class="st0">&quot;Keyboard0&quot;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; Driver &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;kbd&quot;</span></div>
</li>
<li class="li1">
<div class="de1">EndSection</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">Section <span class="st0">&quot;Monitor&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="re3"># HorizSync <span class="kw3">source</span>: edid, VertRefresh <span class="kw3">source</span>: edid</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; Identifier &nbsp; &nbsp; <span class="st0">&quot;Monitor0&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; VendorName &nbsp; &nbsp; <span class="st0">&quot;Unknown&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; ModelName &nbsp; &nbsp; &nbsp;<span class="st0">&quot;NEC LCD2170NX&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; HorizSync &nbsp; &nbsp; &nbsp; <span class="nu0">31.0</span> - <span class="nu0">92.0</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; VertRefresh &nbsp; &nbsp; <span class="nu0">56.0</span> - <span class="nu0">85.0</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; Option &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;DPMS&quot;</span></div>
</li>
<li class="li1">
<div class="de1">EndSection</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">Section <span class="st0">&quot;Monitor&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="re3"># HorizSync <span class="kw3">source</span>: edid, VertRefresh <span class="kw3">source</span>: edid</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; Identifier &nbsp; &nbsp; <span class="st0">&quot;Monitor1&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; VendorName &nbsp; &nbsp; <span class="st0">&quot;Unknown&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; ModelName &nbsp; &nbsp; &nbsp;<span class="st0">&quot;ACI ASUS VK221&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; HorizSync &nbsp; &nbsp; &nbsp; <span class="nu0">30.0</span> - <span class="nu0">85.0</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; VertRefresh &nbsp; &nbsp; <span class="nu0">55.0</span> - <span class="nu0">75.0</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; Option &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;DPMS&quot;</span></div>
</li>
<li class="li1">
<div class="de1">EndSection</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">Section <span class="st0">&quot;Device&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Identifier &nbsp; &nbsp; <span class="st0">&quot;Device0&quot;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; Driver &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;nvidia&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; VendorName &nbsp; &nbsp; <span class="st0">&quot;NVIDIA Corporation&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; BoardName &nbsp; &nbsp; &nbsp;<span class="st0">&quot;GeForce 9500 GT&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; BusID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="st0">&quot;PCI:1:0:0&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Screen &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="nu0">0</span></div>
</li>
<li class="li2">
<div class="de2">EndSection</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">Section <span class="st0">&quot;Device&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Identifier &nbsp; &nbsp; <span class="st0">&quot;Device1&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Driver &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;nvidia&quot;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; VendorName &nbsp; &nbsp; <span class="st0">&quot;NVIDIA Corporation&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; BoardName &nbsp; &nbsp; &nbsp;<span class="st0">&quot;GeForce 9500 GT&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; BusID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="st0">&quot;PCI:1:0:0&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Screen &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="nu0">1</span></div>
</li>
<li class="li1">
<div class="de1">EndSection</div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">Section <span class="st0">&quot;Screen&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Identifier &nbsp; &nbsp; <span class="st0">&quot;Screen0&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Device &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;Device0&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Monitor &nbsp; &nbsp; &nbsp; &nbsp;<span class="st0">&quot;Monitor0&quot;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; DefaultDepth &nbsp; &nbsp;<span class="nu0">24</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Option &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;TwinView&quot;</span> <span class="st0">&quot;0&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Option &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;metamodes&quot;</span> <span class="st0">&quot;DFP: nvidia-auto-select +0+0&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; SubSection &nbsp; &nbsp; <span class="st0">&quot;Display&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; Depth &nbsp; &nbsp; &nbsp; <span class="nu0">24</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; EndSubSection</div>
</li>
<li class="li1">
<div class="de1">EndSection</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">Section <span class="st0">&quot;Screen&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Identifier &nbsp; &nbsp; <span class="st0">&quot;Screen1&quot;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; Device &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;Device1&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Monitor &nbsp; &nbsp; &nbsp; &nbsp;<span class="st0">&quot;Monitor1&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; DefaultDepth &nbsp; &nbsp;<span class="nu0">24</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Option &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;TwinView&quot;</span> <span class="st0">&quot;0&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Option &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;metamodes&quot;</span> <span class="st0">&quot;CRT: nvidia-auto-select +0+0&quot;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; SubSection &nbsp; &nbsp; <span class="st0">&quot;Display&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; Depth &nbsp; &nbsp; &nbsp; <span class="nu0">24</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; EndSubSection</div>
</li>
<li class="li1">
<div class="de1">EndSection</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
</ol>
</div>
<p>and i restarded the system and all function well&#8230;.</p>
<p>bst rgds<br />
i</p>
]]></content:encoded>
			<wfw:commentRss>http://www.synaptica.info/2010/03/11/ubuntu-910-and-invidia-drivers-for-dual-monitor/feed/langswitch_lang/en/</wfw:commentRss>
		</item>
		<item>
		<title>Oracle Tips #6 [Metadata Info X]</title>
		<link>http://www.synaptica.info/2010/03/10/oracle-tips-6-metadata-info-x/langswitch_lang/en/</link>
		<comments>http://www.synaptica.info/2010/03/10/oracle-tips-6-metadata-info-x/langswitch_lang/en/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 18:06:21 +0000</pubDate>
		<dc:creator>ivan</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<category><![CDATA[10g]]></category>

		<category><![CDATA[Add new tag]]></category>

		<category><![CDATA[dataexport]]></category>

		<category><![CDATA[metadata]]></category>

		<category><![CDATA[oracle]]></category>

		<category><![CDATA[S]]></category>

		<guid isPermaLink="false">http://www.synaptica.info/?p=897&amp;langswitch_lang=it</guid>
		<description><![CDATA[<p>In Oracle ,to get some ddl information and source you can call system tables like user_objects. So with a particular function called DBMS_METADATA.GET_DDL you can have the entire source of an object passing two parameter : first: the object type and the second parameter is the name of the object that you want to know [...]]]></description>
			<content:encoded><![CDATA[<p>In Oracle ,to get some ddl information and source you can call system tables like <strong>user_objects</strong>. So with a particular function called <strong>DBMS_METADATA.GET_DDL</strong> you can have the entire source of an object passing two parameter : first: the object type and the second parameter is the name of the object that you want to know the ddl definition.</p>
<p>I the next example i&#8217;ll get all ddl about all trigger in my schema :</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw1">SELECT</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp;U.OBJECT_NAME,U.<span class="kw1">STATUS</span> ,DBMS_METADATA.GET_DDL<span class="br0">&#40;</span>U.object_type,u.object_name<span class="br0">&#41;</span> </div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw1">FROM</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;user_objects u</div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw1">WHERE</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;object_type = <span class="st0">&#8216;TRIGGER&#8217;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">SELECT</span> object_type, COUNT<span class="br0">&#40;</span>*<span class="br0">&#41;</span> <span class="kw1">FROM</span> USER_OBJECTS</div>
</li>
<li class="li2">
<div class="de2"><span class="kw1">GROUP</span> <span class="kw1">BY</span> OBJECT_TYPE </div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
<p>so you can also access to metadata api to export full schema , by creating a table and a procedure you  can have full schema inside the new table. I took the example from <a href="http://www.di.unipi.it/~ghelli/didattica/bdl/B19306_01/server.102/b14215/metadata_api.htm" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.di.unipi.it/~ghelli/didattica/bdl/B19306_01/server.102/b14215/metadata_api.htm');">http://www.di.unipi.it</a> the code : </p>
<p>creating table:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">.</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="kw1">CREATE</span> <span class="kw1">TABLE</span> my_metadata <span class="br0">&#40;</span>md CLOB<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">&#8211; Create a table to store the retrieved objects.</span></div>
</li>
<li class="li1">
<div class="de1">CONNECT scott/tiger</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">DROP</span> <span class="kw1">TABLE</span> my_metadata;</div>
</li>
<li class="li2">
<div class="de2"><span class="kw1">CREATE</span> <span class="kw1">TABLE</span> my_metadata <span class="br0">&#40;</span>md CLOB<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">CREATE</span> <span class="kw1">OR</span> <span class="kw1">REPLACE</span> PROCEDURE get_schema_md <span class="kw1">IS</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">&#8211; Define local variables.</span></div>
</li>
<li class="li1">
<div class="de1">h &nbsp; &nbsp; &nbsp; NUMBER; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">&#8211; handle returned by OPEN</span></div>
</li>
<li class="li2">
<div class="de2">th &nbsp; &nbsp; &nbsp;NUMBER; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">&#8211; handle returned by ADD_TRANSFORM</span></div>
</li>
<li class="li1">
<div class="de1">doc &nbsp; &nbsp; CLOB; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">&#8211; metadata is returned in a CLOB</span></div>
</li>
<li class="li1">
<div class="de1">BEGIN</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">&#8211; Specify the object type.</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp;h := DBMS_METADATA.OPEN<span class="br0">&#40;</span><span class="st0">&#8216;SCHEMA_EXPORT&#8217;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="co1">&#8211; Use filters to specify the schema.</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;DBMS_METADATA.SET_FILTER<span class="br0">&#40;</span>h,<span class="st0">&#8216;SCHEMA&#8217;</span>,<span class="st0">&#8216;&lt;### YOUR SCHEMA NAME ####&gt;&#8217;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2">&nbsp;<span class="co1">&#8211; Request that the metadata be transformed into creation DDL.</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;th := DBMS_METADATA.ADD_TRANSFORM<span class="br0">&#40;</span>h,<span class="st0">&#8216;DDL&#8217;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="co1">&#8211; Fetch the objects.</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;LOOP</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp;doc := DBMS_METADATA.FETCH_CLOB<span class="br0">&#40;</span>h<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="co1">&#8211; When there are no more objects to be retrieved, FETCH_CLOB returns NULL.</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;EXIT WHEN doc <span class="kw1">IS</span> <span class="kw1">NULL</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp;<span class="co1">&#8211; Store the metadata in the table.</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="kw1">INSERT</span> <span class="kw1">INTO</span> my_metadata<span class="br0">&#40;</span>md<span class="br0">&#41;</span> <span class="kw1">VALUES</span> <span class="br0">&#40;</span>doc<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;COMMIT;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;END LOOP;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2">&nbsp;<span class="co1">&#8211; Release resources.</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;DBMS_METADATA.CLOSE<span class="br0">&#40;</span>h<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">END;</div>
</li>
<li class="li1">
<div class="de1">/</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
</ol>
</div>
<p>you only need to replace <### YOUR SCHEMA NAME ####> with your real schema name or add a parameter to your procedure.</p>
<p>after your can call from a sql interface like </p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">.</div>
</li>
<li class="li1">
<div class="de1">&nbsp; exec get_schema_md;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
<p>now inside your table &#8220;my_metadata&#8221; there is all your db schema.</p>
<p>rgds<br />
i</p>
]]></content:encoded>
			<wfw:commentRss>http://www.synaptica.info/2010/03/10/oracle-tips-6-metadata-info-x/feed/langswitch_lang/en/</wfw:commentRss>
		</item>
		<item>
		<title>Oracle Tips #5 [Exception on the fly]</title>
		<link>http://www.synaptica.info/2010/03/10/oracle-tips-5-exception-on-the-fly/langswitch_lang/en/</link>
		<comments>http://www.synaptica.info/2010/03/10/oracle-tips-5-exception-on-the-fly/langswitch_lang/en/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 17:07:09 +0000</pubDate>
		<dc:creator>ivan</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<category><![CDATA[databases]]></category>

		<category><![CDATA[oracle]]></category>

		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.synaptica.info/?p=891&amp;langswitch_lang=it</guid>
		<description><![CDATA[<p>to raise an Exception from a Trigger, Stored Procedure or Function without needing enithing you can use the function : raise_application_error.</p>
<p>Syntax : raise_application_error(&#60;your excpetion integer code&#62;, &#60;your string description&#62;);</p>
]]></description>
			<content:encoded><![CDATA[<p>to raise an Exception from a Trigger, Stored Procedure or Function without needing enithing you can use the function : <strong>raise_application_error</strong>.</p>
<p>Syntax : <span style="font-size: small;"><strong>raise_application_error</strong>(</span>&lt;your excpetion integer code&gt;, &lt;your string description&gt;);</p>
]]></content:encoded>
			<wfw:commentRss>http://www.synaptica.info/2010/03/10/oracle-tips-5-exception-on-the-fly/feed/langswitch_lang/en/</wfw:commentRss>
		</item>
		<item>
		<title>ClipArt &amp; Icons for All</title>
		<link>http://www.synaptica.info/2010/03/10/clipart-icons-for-all/langswitch_lang/en/</link>
		<comments>http://www.synaptica.info/2010/03/10/clipart-icons-for-all/langswitch_lang/en/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 15:33:19 +0000</pubDate>
		<dc:creator>ivan</dc:creator>
		
		<category><![CDATA[Programmazione]]></category>

		<category><![CDATA[Articles]]></category>

		<category><![CDATA[clipart]]></category>

		<category><![CDATA[icons]]></category>

		<category><![CDATA[png]]></category>

		<category><![CDATA[svg]]></category>

		<guid isPermaLink="false">http://www.synaptica.info/?p=886&amp;langswitch_lang=it</guid>
		<description><![CDATA[<p style="text-align: center;"></p>
<p style="text-align: center;">
<p style="text-align: justify;">http://www.openclipart.org , non lo conoscevo e ne sono rimasto veramente impressionato, è un archivio di ClipArt in fomrato vettoriale SVG enorme, qualsiasi cosa ho scritto nella ricerca mi son trovato l&#8217;immagine corrispondente. Come direbbe il signor Burns dei Simpons &#8220;Eccellente&#8221;. Ogni immagine selezionata è disponibile per il download in [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.openclipart.org" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.openclipart.org');"><img class="aligncenter" src="http://www.openclipart.org/assets/images/images/logo.jpg" alt="clipart" /></a></p>
<p style="text-align: center;">
<p style="text-align: justify;"><a href="http://www.openclipart.org" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.openclipart.org');">http://www.openclipart.org</a> , non lo conoscevo e ne sono rimasto veramente impressionato, è un archivio di ClipArt in fomrato vettoriale SVG enorme, qualsiasi cosa ho scritto nella ricerca mi son trovato l&#8217;immagine corrispondente. Come direbbe il signor Burns dei Simpons &#8220;Eccellente&#8221;. Ogni immagine selezionata è disponibile per il download in formato sia svg che png.</p>
<p style="text-align: justify;">Ogni immagine è sotto la copertura delle Creative Commons, quindi in teoria l&#8217;uso commerciale è consentito a patto che se ne citi la fonte, il che mi sembra veramente un requisito minimo. Se penso al tempo che ho buttato creandomi delle immagini oscene per le mie presentazioni - siti e applicazioni ad un sito così mi sarei felicemente abbonato.</p>
<p style="text-align: justify;">a presto</p>
<p style="text-align: justify;">ivan</p>
<p style="text-align: justify;">
]]></content:encoded>
			<wfw:commentRss>http://www.synaptica.info/2010/03/10/clipart-icons-for-all/feed/langswitch_lang/en/</wfw:commentRss>
		</item>
		<item>
		<title>Oracle Tips #4 [Trigger : Mutating Tables &amp; Autonomos Transactions]</title>
		<link>http://www.synaptica.info/2010/03/08/oracle-tips-4-trigger-mutating-tables-autonomos-transactions/langswitch_lang/en/</link>
		<comments>http://www.synaptica.info/2010/03/08/oracle-tips-4-trigger-mutating-tables-autonomos-transactions/langswitch_lang/en/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 16:47:44 +0000</pubDate>
		<dc:creator>ivan</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<category><![CDATA[10g]]></category>

		<category><![CDATA[mutating tables]]></category>

		<category><![CDATA[oracle]]></category>

		<category><![CDATA[sql]]></category>

		<category><![CDATA[synaptica]]></category>

		<category><![CDATA[table]]></category>

		<category><![CDATA[Transactions]]></category>

		<category><![CDATA[trigger]]></category>

		<category><![CDATA[triggers]]></category>

		<guid isPermaLink="false">http://www.synaptica.info/?p=878&amp;langswitch_lang=it</guid>
		<description><![CDATA[<p>Oracle Version : 10g</p>
<p>As you know inside a Oracle row trigger you cannot access to the base table, for example when you make a trigger like this, on  a table named &#8220;activity&#8220;.</p>



&#160;


CREATE OR REPLACE TRIGGER UNAME.ACTIVITY_FK_MENU_INTEGRITY


AFTER INSERT OR UPDATE


ON UNAME.ACTIVITY


REFERENCING NEW AS New OLD AS Old


FOR EACH ROW


DECLARE


&#160;


tmpVar NUMBER;


e_Menu_Already_Exists EXCEPTION;


&#160;


BEGIN


&#160; &#160; &#160; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Oracle Version : 10g</p>
<p>As you know inside a Oracle row trigger you cannot access to the base table, for example when you make a trigger like this, on  a table named &#8220;<strong>activity</strong>&#8220;.</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">CREATE</span> <span class="kw1">OR</span> <span class="kw1">REPLACE</span> <span class="kw1">TRIGGER</span> UNAME.ACTIVITY_FK_MENU_INTEGRITY</div>
</li>
<li class="li1">
<div class="de1">AFTER <span class="kw1">INSERT</span> <span class="kw1">OR</span> <span class="kw1">UPDATE</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">ON</span> UNAME.ACTIVITY</div>
</li>
<li class="li2">
<div class="de2">REFERENCING NEW <span class="kw1">AS</span> New OLD <span class="kw1">AS</span> Old</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">FOR</span> EACH ROW</div>
</li>
<li class="li1">
<div class="de1">DECLARE</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">tmpVar NUMBER;</div>
</li>
<li class="li2">
<div class="de2">e_Menu_Already_Exists EXCEPTION;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">BEGIN</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="kw1">SELECT</span> count<span class="br0">&#40;</span>*<span class="br0">&#41;</span> <span class="kw1">INTO</span> tmpVar <span class="kw1">FROM</span> Activity aa <span class="kw1">WHERE</span> <span class="br0">&#40;</span>aa.fk_menu = :new.fk_menu<span class="br0">&#41;</span><span class="kw1">AND</span><span class="br0">&#40;</span>aa.pk_id &lt;&gt; :new.pk_id<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">&#8211; if (tmpVar &gt; 0) then </span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="co1">&#8211;:New.FK_MENU := null;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">&#8211; raise e_Menu_Already_Exists;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">&#8211; end if;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li class="li1">
<div class="de1">END ACTIVITY_FK_MENU_INTEGRITY;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
<p>when you try to use the table making an update happen this : </p>
<p><a href="http://www.synaptica.info/wp-content/uploads/2010/03/toaderror.png" onclick=""><img src="http://www.synaptica.info/wp-content/uploads/2010/03/toaderror.png" alt="toaderror" title="toaderror" width="434" height="405" class="aligncenter size-full wp-image-879" /></a></p>
<p>To avoid this error and obviusly assuming the risk about ricorsive trigger, you can define a custom transaction for your trigger, so you can access to data inside the mutating table.  To do this you need to declare &#8220;<strong>PRAGMA</strong> AUTONOMOUS_TRANSACTION;&#8221; means that the trigger give a specific transaction. So now you need to specify an explicit &#8220;<strong>commit</strong>;&#8221; at the end of the trigger.</p>
<p>The example will result like: </p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">CREATE</span> <span class="kw1">OR</span> <span class="kw1">REPLACE</span> <span class="kw1">TRIGGER</span> UNAME.ACTIVITY_FK_MENU_INTEGRITY</div>
</li>
<li class="li1">
<div class="de1">AFTER <span class="kw1">INSERT</span> <span class="kw1">OR</span> <span class="kw1">UPDATE</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">ON</span> UNAME.ACTIVITY</div>
</li>
<li class="li2">
<div class="de2">REFERENCING NEW <span class="kw1">AS</span> New OLD <span class="kw1">AS</span> Old</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">FOR</span> EACH ROW</div>
</li>
<li class="li1">
<div class="de1">DECLARE</div>
</li>
<li class="li1">
<div class="de1">PRAGMA AUTONOMOUS_TRANSACTION;</div>
</li>
<li class="li1">
<div class="de1">tmpVar NUMBER;</div>
</li>
<li class="li2">
<div class="de2">e_Menu_Already_Exists EXCEPTION;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">BEGIN</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="kw1">SELECT</span> count<span class="br0">&#40;</span>*<span class="br0">&#41;</span> <span class="kw1">INTO</span> tmpVar <span class="kw1">FROM</span> Activity aa <span class="kw1">WHERE</span> <span class="br0">&#40;</span>aa.fk_menu = :new.fk_menu<span class="br0">&#41;</span><span class="kw1">AND</span><span class="br0">&#40;</span>aa.pk_id &lt;&gt; :new.pk_id<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;commit; &nbsp; </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li class="li1">
<div class="de1">END ACTIVITY_FK_MENU_INTEGRITY;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
<p>that&#8217;s all until next tip<br />
bye<br />
ivan</p>
]]></content:encoded>
			<wfw:commentRss>http://www.synaptica.info/2010/03/08/oracle-tips-4-trigger-mutating-tables-autonomos-transactions/feed/langswitch_lang/en/</wfw:commentRss>
		</item>
		<item>
		<title>Sync two directories with rsync and ssh through the internet</title>
		<link>http://www.synaptica.info/2010/02/26/sync-two-directories-with-rsync-and-ssh-through-the-internet/langswitch_lang/en/</link>
		<comments>http://www.synaptica.info/2010/02/26/sync-two-directories-with-rsync-and-ssh-through-the-internet/langswitch_lang/en/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 10:34:31 +0000</pubDate>
		<dc:creator>Riccardo</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<category><![CDATA[public-key]]></category>

		<category><![CDATA[rsync]]></category>

		<category><![CDATA[ssh]]></category>

		<category><![CDATA[sync]]></category>

		<guid isPermaLink="false">http://www.synaptica.info/?p=854&amp;langswitch_lang=it</guid>
		<description><![CDATA[<p>Hello,</p>
<p>we want to sync two directories in two different server that are connected to the internet. We want to use ssh as channel protocol because we already have the firewall rules to connect and because it is encrypted.
First of all we need that machine A will connect to machine B without password asking, this can [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-865" title="view-refresh2" src="http://www.synaptica.info/wp-content/uploads/2010/02/view-refresh2.png" alt="view-refresh2" width="150" height="150" />Hello,</p>
<p>we want to sync two directories in two different server that are connected to the internet. We want to use ssh as channel protocol because we already have the firewall rules to connect and because it is encrypted.<br />
First of all we need that machine A will connect to machine B without password asking, this can be achieved by generating public key from machine A and copy it to machine B. Here are the commands:<br />
generate the key from machine A.</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">ssh-keygen -t rsa</div>
</li>
</ol>
</div>
<p>the public key will be created in /home/[user]/.ssh/id_rsa.pub<br />
then we copy it to the machine B</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">scp /home/[user]/.ssh/id_rsa.pub [user]@[machine-B]</div>
</li>
</ol>
</div>
<p>now we have to append the contents of the file id_rsa.pub in ./ssh/authorized_keys</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">cat id_rsa.pub &gt;&gt;~/.ssh/authorized_keys</div>
</li>
</ol>
</div>
<p>Now we can connect with ssh from machine A to machine B without password asking.<br />
Now we use rsync from machine A to sync the directories.</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">rsync -zave ssh &#8211;numeric-ids &#8211;recursive &#8211;delete [user]@[machine-B]:/dir1 /dir2</div>
</li>
</ol>
</div>
<p>After this command we found /dir2/dir1 on machine A, backupped and synced. Put the commands in cron to have sync over time.</p>
<p>We can now sleep peacefully. <img src='http://www.synaptica.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.synaptica.info/2010/02/26/sync-two-directories-with-rsync-and-ssh-through-the-internet/feed/langswitch_lang/en/</wfw:commentRss>
		</item>
		<item>
		<title>FOSS [ Free and Open Source Software ]</title>
		<link>http://www.synaptica.info/2010/02/25/foss-free-and-open-source-software/langswitch_lang/en/</link>
		<comments>http://www.synaptica.info/2010/02/25/foss-free-and-open-source-software/langswitch_lang/en/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 15:21:14 +0000</pubDate>
		<dc:creator>ivan</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<category><![CDATA[foss]]></category>

		<category><![CDATA[Open Source]]></category>

		<category><![CDATA[opinioni]]></category>

		<category><![CDATA[ossblog]]></category>

		<guid isPermaLink="false">http://www.synaptica.info/?p=851&amp;langswitch_lang=it</guid>
		<description><![CDATA[<p>L&#8217;inversione di tendenza ? ma speriamo di no, che l&#8217;Open Source abbia permesso a milioni di società e di individui singoli di poter accedere ,e dare il proprio contributo ,a Software prima inarrivabili è ormai noto. Era normale aspettarsi che tutti coloro che giustamente vivono sulle licenze dei &#8220;loro&#8221; software non vedano di buon occhio [...]]]></description>
			<content:encoded><![CDATA[<p>L&#8217;inversione di tendenza ? ma speriamo di no, che l&#8217;Open Source abbia permesso a milioni di società e di individui singoli di poter accedere ,e dare il proprio contributo ,a Software prima inarrivabili è ormai noto. Era normale aspettarsi che tutti coloro che giustamente vivono sulle licenze dei &#8220;loro&#8221; software non vedano di buon occhio questa nuova filosofia, che a detta di molti non è una cosa che va contro le regole del mercato.<br />
In questo senso non mi esprimo, ma credo che fino ad oggi la bilancia dei vantaggi e svantaggi di questa nuova filosofia di cooperazione penda fortemente dalla parte dei vantaggi.<br />
Ulitmamente mi capita di leggere cose che mi lasciano un po sconcertato, una di queste fù <a href="http://www.synaptica.info/2010/02/04/lopen-source-e-illegale/langswitch_lang/it/" onclick="">l&#8217;articolo</a> pubblicato da Riccardo che ad una riunione presso un grosso cliente sentì dire la frase &#8220;l&#8217;open source è illegale&#8221;.<br />
Oggi leggendo ,come di mio consueto, il blog <a href="http://www.ossblog.it" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.ossblog.it');">http://www.ossblog.it</a> , che è un blog a mio avviso molto &#8220;fico&#8221; e attendibile mi ritrovo quest&#8217;articolo : &#8220;<a href="http://www.ossblog.it/post/5836/usate-software-foss-allora-siete-dei-pirati#continua" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.ossblog.it/post/5836/usate-software-foss-allora-siete-dei-pirati#continua');">Usate software FOSS? Allora siete dei pirati!</a>&#8220;.<br />
C&#8217;era da aspettarselo? boh non credo comunque sia non sta a me decidere, penso che in tutte le cose ci voglia moderazione e in questo caso son andati un po oltre, creando anche una lista nera di paesi additati per questo.</p>
<p>a presto<br />
ivan</p>
]]></content:encoded>
			<wfw:commentRss>http://www.synaptica.info/2010/02/25/foss-free-and-open-source-software/feed/langswitch_lang/en/</wfw:commentRss>
		</item>
		<item>
		<title>Oracle Tips #3  [Extract Metadata Info ]</title>
		<link>http://www.synaptica.info/2010/02/19/oracle-tips-3-extract-metadata-info/langswitch_lang/en/</link>
		<comments>http://www.synaptica.info/2010/02/19/oracle-tips-3-extract-metadata-info/langswitch_lang/en/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 17:11:45 +0000</pubDate>
		<dc:creator>ivan</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<category><![CDATA[databases]]></category>

		<category><![CDATA[oracle]]></category>

		<category><![CDATA[key field]]></category>

		<category><![CDATA[list]]></category>

		<category><![CDATA[metadata]]></category>

		<category><![CDATA[table]]></category>

		<category><![CDATA[table name]]></category>

		<guid isPermaLink="false">http://www.synaptica.info/?p=844&amp;langswitch_lang=it</guid>
		<description><![CDATA[<p>by using some simple view in Oracle you can extract a lot of information about your DB schema, some explicit samples : </p>
<p>(assuming that MyDBOwner is the owner of the DB and ACTIVITY is a table of a schema, this sample is succesfully tested on Oracle 10g)</p>



&#160;


&#8211; LIST OF USERS 


&#160;


SELECT OWNER,COUNT&#40;DISTINCT TABLE_NAME&#41; FROM ALL_TAB_COLUMNS [...]]]></description>
			<content:encoded><![CDATA[<p>by using some simple view in Oracle you can extract a lot of information about your DB schema, some explicit samples : </p>
<p>(assuming that MyDBOwner is the owner of the DB and ACTIVITY is a table of a schema, this sample is succesfully tested on Oracle 10g)</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">&#8211; LIST OF USERS </span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">SELECT</span> OWNER,COUNT<span class="br0">&#40;</span><span class="kw1">DISTINCT</span> TABLE_NAME<span class="br0">&#41;</span> <span class="kw1">FROM</span> ALL_TAB_COLUMNS <span class="kw1">GROUP</span> <span class="kw1">BY</span> OWNER</div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">&#8211; LIST OF TABLES PER OWNER</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">SELECT</span> table_name <span class="kw1">FROM</span> ALL_TAB_COLUMNS &nbsp;<span class="kw1">WHERE</span> owner = <span class="st0">&#8216;MyDBOwner&#8217;</span> <span class="kw1">GROUP</span> <span class="kw1">BY</span> table_name</div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">&#8211; LIST OF FIELDS PER TABLE</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">SELECT</span> COLUMN_NAME, DATA_TYPE, DATA_LENGTH, NULLABLE, CHAR_LENGTH <span class="kw1">FROM</span> ALL_TAB_COLUMNS &nbsp;<span class="kw1">WHERE</span> owner = <span class="st0">&#8216;MyDBOwner&#8217;</span> <span class="kw1">AND</span> TABLE_NAME = <span class="st0">&#8216;ACTIVITY&#8217;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2"><span class="co1">&#8211; FINDING PRIMARY KEYS</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">SELECT</span> COLUMN_NAME, DATA_TYPE, DATA_LENGTH, NULLABLE, CHAR_LENGTH <span class="kw1">FROM</span> ALL_TAB_COLUMNS &nbsp;<span class="kw1">WHERE</span> owner = <span class="st0">&#8216;MyDBOwner&#8217;</span> <span class="kw1">AND</span> TABLE_NAME = <span class="st0">&#8216;ACTIVITY&#8217;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2"><span class="co1">&#8211; A single character that indicates the type of constraint: &#8216;C&#8217; = NOT NULL, &#8216;P&#8217; = PRIMARY KEY, &#8216;U&#8217; = UNIQUE, and &#8216;R&#8217; = FOREIGN KEY.</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">SELECT</span> UC.CONSTRAINT_NAME, UCC.* <span class="kw1">FROM</span> USER_CONSTRAINTS UC, USER_CONS_COLUMNS UCC <span class="kw1">WHERE</span> UC.OWNER=<span class="st0">&#8216;MyDBOwner&#8217;</span> <span class="kw1">AND</span> UC.TABLE_NAME = <span class="st0">&#8216;ACTIVITY&#8217;</span> <span class="kw1">AND</span> UC.CONSTRAINT_TYPE = <span class="st0">&#8216;P&#8217;</span> <span class="kw1">AND</span> UC.CONSTRAINT_NAME = UCC.CONSTRAINT_NAME</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
<p>a great article about this is : <a href="http://college.yukondude.com/2002_09_comp210/html/note-container.php?file=10^Handout^Oracle_Metadata" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://college.yukondude.com/2002_09_comp210/html/note-container.php?file=10^Handout^Oracle_Metadata');">http://college.yukondude.com/2002_09_comp210/html/note-container.php?file=10^Handout^Oracle_Metadata</a> and on wiki too at this address <a href="http://en.wikipedia.org/wiki/Oracle_metadata#Example_2:_finding_columns" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://en.wikipedia.org/wiki/Oracle_metadata#Example_2:_finding_columns');">http://en.wikipedia.org/wiki/Oracle_metadata#Example_2:_finding_columns</a></p>
<p>bye ivan</p>
]]></content:encoded>
			<wfw:commentRss>http://www.synaptica.info/2010/02/19/oracle-tips-3-extract-metadata-info/feed/langswitch_lang/en/</wfw:commentRss>
		</item>
		<item>
		<title>Java to Delphi througth Midas and ClientDataSet</title>
		<link>http://www.synaptica.info/2010/02/17/java-to-delphi-througth-midas-and-clientdataset/langswitch_lang/en/</link>
		<comments>http://www.synaptica.info/2010/02/17/java-to-delphi-througth-midas-and-clientdataset/langswitch_lang/en/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 19:50:35 +0000</pubDate>
		<dc:creator>ivan</dc:creator>
		
		<category><![CDATA[Delphi .Net]]></category>

		<category><![CDATA[Delphi w32s]]></category>

		<category><![CDATA[Articles]]></category>

		<category><![CDATA[DataSnap. n-Tier]]></category>

		<category><![CDATA[delphi]]></category>

		<category><![CDATA[JAVA]]></category>

		<category><![CDATA[Midas]]></category>

		<category><![CDATA[pHp]]></category>

		<category><![CDATA[Send Framework]]></category>

		<category><![CDATA[TclientDstaSet]]></category>

		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://www.synaptica.info/?p=841&amp;langswitch_lang=it</guid>
		<description><![CDATA[<p>(This article is a draft but if something is of interesting &#8230;. )</p>
<p>  The fantastic world of old Midas now called DataSnap introduced the TClientDataSet component , that is a in memory DataSet for Delphi and C++ Builder. With TClientDataSet was introduced the concept of Brief Case model Application Style.
  A brief case [...]]]></description>
			<content:encoded><![CDATA[<p>(This article is a draft but if something is of interesting &#8230;. )</p>
<p>  The fantastic world of old Midas now called DataSnap introduced the TClientDataSet component , that is a in memory DataSet for Delphi and C++ Builder. With TClientDataSet was introduced the concept of Brief Case model Application Style.<br />
  A brief case model App. is the best concept application that exchnage data between server when and where there is a connection. Now TClientDataSet have two type of rapresenting the in memory data, one binary and one in a static xml format that is well explained in this article on Embarcadero site : <a href="http://edn.embarcadero.com/article/10405" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://edn.embarcadero.com/article/10405');">http://edn.embarcadero.com/article/10405</a>.<br />
  Using Java , the world of JDBC  and ,of course, Tomcat we are trying to provide data to a client dataset via some Servlet and update data parsing the Delta sended by our TclientDataSet. So that we can connect to Oracle for example without usinig direct connection or driver.<br />
   We also found a similar project done with pHp posted on the Zend site at this url : <a href="http://www.zend.com//code/codex.php?ozid=1049&#038;single=1." onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.zend.com//code/codex.php?ozid=1049&#038;single=1.');">http://www.zend.com//code/codex.php?ozid=1049&#038;single=1.</a><br />
    Soon we will post all about that.</p>
<p>stay tuned<br />
bye ivan</p>
]]></content:encoded>
			<wfw:commentRss>http://www.synaptica.info/2010/02/17/java-to-delphi-througth-midas-and-clientdataset/feed/langswitch_lang/en/</wfw:commentRss>
		</item>
		<item>
		<title>Happy birday Delphi &#8230;</title>
		<link>http://www.synaptica.info/2010/02/15/happy-birday-delphi/langswitch_lang/en/</link>
		<comments>http://www.synaptica.info/2010/02/15/happy-birday-delphi/langswitch_lang/en/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 16:49:52 +0000</pubDate>
		<dc:creator>ivan</dc:creator>
		
		<category><![CDATA[Delphi .Net]]></category>

		<category><![CDATA[Delphi w32s]]></category>

		<category><![CDATA[Pascal]]></category>

		<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://www.synaptica.info/?p=832&amp;langswitch_lang=it</guid>
		<description><![CDATA[<p></p>
<p>Delphi was born exactly fifteen years ago from Today, Marco Cantu on his web site have posted a great article on this because he is one of the first guru of this beatifull dev language&#8230; the article</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.synaptica.info/wp-content/uploads/2010/02/safe_imagephp.jpeg" onclick=""><img class="aligncenter size-full wp-image-833" title="safe_imagephp" src="http://www.synaptica.info/wp-content/uploads/2010/02/safe_imagephp.jpeg" alt="safe_imagephp" width="565" height="425" /></a></p>
<p>Delphi was born exactly fifteen years ago from Today, Marco Cantu on his web site have posted a great article on this because he is one of the first guru of this beatifull dev language&#8230; <a href="http://www.marcocantu.com/delphibirth/default.htm" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.marcocantu.com/delphibirth/default.htm');" target="_blank">the article</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.synaptica.info/2010/02/15/happy-birday-delphi/feed/langswitch_lang/en/</wfw:commentRss>
		</item>
	</channel>
</rss>
