<?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>Fri, 03 Sep 2010 09:59:48 +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>Problema di rete dopo la copia di una virtual machine UBUNTU Server</title>
		<link>http://www.synaptica.info/2010/09/03/problema-di-rete-dopo-la-copia-di-una-virtual-machine-ubuntu-server/langswitch_lang/en/</link>
		<comments>http://www.synaptica.info/2010/09/03/problema-di-rete-dopo-la-copia-di-una-virtual-machine-ubuntu-server/langswitch_lang/en/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 09:59:48 +0000</pubDate>
		<dc:creator>Marco</dc:creator>
		
		<category><![CDATA[Sistemi Operativi]]></category>

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

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

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

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

		<guid isPermaLink="false">http://www.synaptica.info/?p=1037&amp;langswitch_lang=it</guid>
		<description><![CDATA[<p>Nel momento in cui si effettua lo start up di una macchina virtuale ubuntu server precedentemente duplicata, VM-WARE, in genere, chiede all&#8217;utente se la macchina in questione è stata duplicata oppure semplicemente spostata. Questa operazione consente a vmware di generare, per un&#8217; eventuale macchina virtuale duplicata, una nuova configurazione nella quale è presente un nuovo MAC ADDRESS [...]]]></description>
			<content:encoded><![CDATA[<p>Nel momento in cui si effettua lo start up di una macchina virtuale ubuntu server precedentemente duplicata, VM-WARE, in genere, chiede all&#8217;utente se la macchina in questione è stata duplicata oppure semplicemente spostata. Questa operazione consente a vmware di generare, per un&#8217; eventuale macchina virtuale duplicata, una nuova configurazione nella quale è presente un nuovo MAC ADDRESS associato ad una nuova interfaccia di rete &#8220;ETHX&#8221;.</p>
<p>A questo punto potrebbero presentarsi alcuni problemi con la configurazione di rete del server, in particolare se sul server è stato configurato un IP statico apportando le opportune modifiche al file <strong>/etc/network/interfaces&#8221;</strong>.</p>
<p>Il problema sta nel fatto che, dichiarando a vmware che la macchina è stata duplicata, vengono create nel file: <strong>&#8220;/etc/udev/rules.d/70-persistent-net.rules&#8221; </strong>righe di configurazione come di seguito:</p>
<p># PCI device 0&#215;10de:0&#215;054c (forcedeth) SUBSYSTEM==&#8221;net&#8221;, DRIVERS==&#8221;?*&#8221;, ATTRS{address}==&#8221;00:00:6c:cf:97:0d&#8221;, NAME=&#8221;eth0&#8243;</p>
<p># PCI device 0&#215;10de:0&#215;054c (forcedeth) SUBSYSTEM==&#8221;net&#8221;, DRIVERS==&#8221;?*&#8221;, ATTRS{address}==&#8221;00:00:6c:ed:c4:70&#8243;, NAME=&#8221;eth1&#8243;</p>
<p>Ogni duplicazione della macchina crea una nuova interfaccia di rete ethX, ogni interfaccia, con il relativo MAC ADDRESS generato da vmware viene aggiunta nel file sopra citato.</p>
<p>Se l&#8217;interfaccia eth attiva non presenta lo stesso mac address della configurazione della macchina virtuale, la rete non funziona correttamente.</p>
<p><strong>SOLUZIONE:</strong></p>
<p>1) Verificare nel file &#8220;/etc/network/interfaces&#8221; quale interfaccia di rete ethx viene utilizzata dal server</p>
<p>2) Nel file <strong>&#8220;/etc/udev/rules.d/70-persistent-net.rules&#8221;</strong> eliminare tutte le righe che non corrispondono all&#8217;interfaccia di rete correntemente utilizzata</p>
<p>3) Aggiornare la riga dell&#8217;interfaccia corrente con il mac address che potete trovare nel file di configurazione della virtual machine &#8220;.vmx&#8221; alla voce</p>
<p>ethernet0.generatedAddress = &#8220;xx:xx:xx:xx:xx:xx:&#8221;</p>
<p>4) Salvate e riavviate la macchina</p>
<p>Il tutto dovrebbe risolversi. Spero di essere stato chiaro, a presto.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.synaptica.info/2010/09/03/problema-di-rete-dopo-la-copia-di-una-virtual-machine-ubuntu-server/feed/langswitch_lang/en/</wfw:commentRss>
		</item>
		<item>
		<title>Embarcadero Rad Studio XE</title>
		<link>http://www.synaptica.info/2010/08/10/embarcadero-rad-studio-xe/langswitch_lang/en/</link>
		<comments>http://www.synaptica.info/2010/08/10/embarcadero-rad-studio-xe/langswitch_lang/en/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 13:36:51 +0000</pubDate>
		<dc:creator>ivan</dc:creator>
		
		<category><![CDATA[Delphi .Net]]></category>

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

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

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

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

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

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

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

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

		<category><![CDATA[rad studio xe]]></category>

		<guid isPermaLink="false">http://www.synaptica.info/?p=1031&amp;langswitch_lang=it</guid>
		<description><![CDATA[<p></p>
<p>Some good news from Embarcadero, some products like Delphi4Php (now radPhp) and Delphi Prism and the new XE IDE for Delphi (now Delphi XE) and C++ Builder.</p>
<p>An exception to the name, more news on RadStudio seems to be:</p>
<p>1) integration with Subversion SVN
2) The ability to generate sequence diagrams directly from the IDE to increase the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.embarcadero.com/rad-studio-xe-preview" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.embarcadero.com/rad-studio-xe-preview');"><img src="http://www.synaptica.info/wp-content/uploads/2010/08/delphi.jpeg" alt="delphi" title="delphi" width="276" height="219" class="aligncenter size-full wp-image-1033" /></a></p>
<p>Some good news from Embarcadero, some products like Delphi4Php (now radPhp) and Delphi Prism and the new XE IDE for Delphi (now Delphi XE) and C++ Builder.</p>
<p>An exception to the name, more news on RadStudio seems to be:</p>
<p>1) integration with Subversion SVN<br />
2) The ability to generate sequence diagrams directly from the IDE to increase the degree of readability of the Pascal code</p>
<p>On Delphi4Php the name has changed completely in RadPhp, watching the demo can be seen substantial improvements on IDE. In this upgrade Embarcadero is focused on improve quality and performance to the existing products. </p>
<p>About Delphi Prism there is an integration with SVN too like the same in Rad Studio (Delphi and C++Builder).</p>
<p>The work done seems really good but : what about cross-platform mentioned in the roadmap ? What about the mac osx compiler? </p>
<p><a href="http://www.embarcadero.com/rad-studio-xe-preview" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.embarcadero.com/rad-studio-xe-preview');">Click here to view the sneak video about rad studio XE</a></p>
<p>rgds<br />
ivan</p>
]]></content:encoded>
			<wfw:commentRss>http://www.synaptica.info/2010/08/10/embarcadero-rad-studio-xe/feed/langswitch_lang/en/</wfw:commentRss>
		</item>
		<item>
		<title>SQL Server 2000 set Date Time format&#8230;</title>
		<link>http://www.synaptica.info/2010/06/08/sql-server-2000-set-date-time-format/langswitch_lang/en/</link>
		<comments>http://www.synaptica.info/2010/06/08/sql-server-2000-set-date-time-format/langswitch_lang/en/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 10:56:17 +0000</pubDate>
		<dc:creator>ivan</dc:creator>
		
		<category><![CDATA[Articles]]></category>

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

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

		<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false">http://www.synaptica.info/?p=1017&amp;langswitch_lang=it</guid>
		<description><![CDATA[<p>Convertire una stringa (sequenza di caratteri) in un dato di tipo data o timestamp in SQL standard è abbastanza semplice tramite il comando &#8216;cast&#8216; . Semplicemente scrivento : </p>
<p>cast(&#8217;2010-3-31&#8242; as datetime) </p>
<p>oppure  </p>
<p>cast(&#8217;2010-3-31&#8242; as timestamp)</p>
<p>otteniamo la conversione, ma come sempre nel caso delle date non esiste la parola semplice, i formati con cui si [...]]]></description>
			<content:encoded><![CDATA[<p>Convertire una stringa (sequenza di caratteri) in un dato di tipo data o timestamp in SQL standard è abbastanza semplice tramite il comando &#8216;<strong>cast</strong>&#8216; . Semplicemente scrivento : </p>
<p>cast(&#8217;2010-3-31&#8242; as datetime) </p>
<p>oppure  </p>
<p>cast(&#8217;2010-3-31&#8242; as timestamp)</p>
<p>otteniamo la conversione, ma come sempre nel caso delle date non esiste la parola semplice, i formati con cui si possono proporre sono sempre molteplici e spesso legati alla locale del sistema. </p>
<p>Ci potremmo trovare anche ad esempio un DB con tabelle in cui le date son nel formato inglese.</p>
<p>con il comando : </p>
<p>SET DATEFORMAT YMD; </p>
<p>andiamo a settare per SQL Server il formato anno - mese - giorno</p>
<p>se scrivessimo </p>
<p>SET DATEFORMAT YDM; </p>
<p>andiamo a settare per SQL Server il formato anno - giorno - mese</p>
<p>questo comando va utilizzato con coerenza ovviamente , perchè potrebbe far funzionare la vostra stored e bloccarne mille che usano un formato , ma conoscendolo è possibile a volte evitare di dover scriver le solite rognose procedure di riformattazione della stringa da convertire.</p>
<p>a presto<br />
i</p>
]]></content:encoded>
			<wfw:commentRss>http://www.synaptica.info/2010/06/08/sql-server-2000-set-date-time-format/feed/langswitch_lang/en/</wfw:commentRss>
		</item>
		<item>
		<title>Chroot SFTP users</title>
		<link>http://www.synaptica.info/2010/05/31/chroot-sftp-users/langswitch_lang/en/</link>
		<comments>http://www.synaptica.info/2010/05/31/chroot-sftp-users/langswitch_lang/en/#comments</comments>
		<pubDate>Mon, 31 May 2010 21:00:28 +0000</pubDate>
		<dc:creator>walter</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://www.synaptica.info/?p=1005&amp;langswitch_lang=en</guid>
		<description><![CDATA[Obiettivo
<p>l&#8217;obiettivo è quello di configurare degli utenti che possano accedere in ssh senza uscire dalla loro home.
Devono poter pubblicare i loro file, quindi i virtual host punteranno a tali home directory</p>
Requisiti

ssh &#62;= 4.7

<p>
syna@serverweb-prod:/home$ aptitude show openssh-server
Pacchetto: openssh-server
Stato: installato
Installato automaticamente: no
Versione: 1:5.1p1-6ubuntu2
</p>

Apache 2 con moduserdir

<p>
root@serverweb-prod:/etc/apache2/mods-enabled# aptitude show apache2
Pacchetto: apache2
Stato: installato
Installato automaticamente: no
Versione: 2.2.12-1ubuntu2.2
</p>
Implementazione
apache
<p>utilizziamo il mod_userdir di [...]]]></description>
			<content:encoded><![CDATA[<h2><span style="font-family: mceinline;">Obiettivo</span></h2>
<p>l&#8217;obiettivo è quello di configurare degli utenti che possano accedere in ssh senza uscire dalla loro home.<br />
Devono poter pubblicare i loro file, quindi i virtual host punteranno a tali home directory</p>
<h3><span style="font-family: mceinline;">Requisiti</span></h3>
<ul>
<li>ssh &gt;= <strong>4.7</strong></li>
</ul>
<p><code><br />
syna@serverweb-prod:/home$ aptitude show openssh-server<br />
Pacchetto: openssh-server<br />
Stato: installato<br />
Installato automaticamente: no<br />
Versione: 1:5.1p1-6ubuntu2<br />
</code></p>
<ul>
<li>Apache 2 con moduserdir</li>
</ul>
<p><code bash><br />
root@serverweb-prod:/etc/apache2/mods-enabled# aptitude show apache2<br />
Pacchetto: apache2<br />
Stato: installato<br />
Installato automaticamente: no<br />
Versione: 2.2.12-1ubuntu2.2<br />
</code></p>
<h2><span style="font-family: mceinline;">Implementazione</span></h2>
<h3><span style="font-family: mceinline;">apache</span></h3>
<p>utilizziamo il mod_userdir di apache per pubblicare i files presenti nelle directory pubbliche di ogni utente&#8230;</p>
<p><code><br />
root@serverweb-prod:/# a2enmod  userdir<br />
Enabling module userdir.<br />
Run '/etc/init.d/apache2 restart' to activate new configuration!<br />
root@serverweb-prod:/etc/apache2/mods-enabled# /etc/init.d/apache2 restart<br />
* Restarting web server apache2               ... waiting                  [ OK ]<br />
</code></p>
<h2><span style="font-family: mceinline;">sshd</span></h2>
<p>Utilizzo le features di SSH per effettuare la jail&#8230;</p>
<blockquote><p>Linked sftp-server into sshd. The internal sftp server is used when the command &#8220;internal-sftp&#8221; is specified in a Subsystem or ForceCommand declaration. When used with ChrootDirectory, the internal sftp server requires no special configuration of files inside the chroot environment.</p></blockquote>
<p>Verranno imprigionati tutti gli utenti che appartengono al gruppo <strong>sftp</strong></p>
<p><code><br />
# groupadd sftp<br />
</code></p>
<h4><span style="font-family: mceinline;">Modifica alla configurazione di SSH</span></h4>
<p><code><br />
#Subsystem sftp /usr/lib/openssh/sftp-server<br />
Subsystem sftp internal-sftp</code></p>
<p><code> </code></p>
<p><code># Deve essere in coda al file di configurazione<br />
Match Group sftp<br />
ChrootDirectory %h<br />
ForceCommand internal-sftp<br />
X11Forwarding no<br />
AllowTcpForwarding no<br />
</code></p>
<h4>Aggiungere nuovi utenti</h4>
<p>aggiungere come al solito gli utenti con il comando adduser :<br />
<code><br />
# adduser walter<br />
</code></p>
<p>Aggiungiamo il nuovo utente al gruppo <strong>sftp</strong></p>
<p><code><br />
# usermod -G sftp walter<br />
</code></p>
<p>Disabilitiamo la shell</p>
<p><code><br />
# usermod -s /bin/false walter<br />
</code></p>
<p>NB: l&#8217;home directory deve appartenere a <strong>root</strong> altrimenti internal-sftp non puo&#8217; funzionare correttamente</p>
<p><code><br />
# chown root:root /home/walter<br />
# chmod 0755 /home/walter<br />
</code></p>
<p>sarà  sufficente creare con i diritti dell&#8217;utente una directory &#8220;public_html&#8221; o &#8220;www&#8221; dove l&#8217;utente metterà  i file pubblici&#8230;</p>
<p><code><br />
# mkdir /home/walter/public_html<br />
# chown walter:walter /home/walter/public_html<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.synaptica.info/2010/05/31/chroot-sftp-users/feed/langswitch_lang/en/</wfw:commentRss>
		</item>
		<item>
		<title>Small Talk on zkoss.org</title>
		<link>http://www.synaptica.info/2010/05/18/small-talk-on-zkossorg/langswitch_lang/en/</link>
		<comments>http://www.synaptica.info/2010/05/18/small-talk-on-zkossorg/langswitch_lang/en/#comments</comments>
		<pubDate>Tue, 18 May 2010 12:59:26 +0000</pubDate>
		<dc:creator>Riccardo</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://www.synaptica.info/?p=999&amp;langswitch_lang=en</guid>
		<description><![CDATA[<p></p>
<p>One of our article, reviewed and extendend, today appears on the official zk site !</p>
<p>We are very proud to appear on the zk official site, it is also a confirmation of the advanced work we made here.</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.synaptica.info/wp-content/uploads/2010/05/zkoss-home-component-extractor-riccardo-casatta-news.png" onclick=""><img class="alignleft size-full wp-image-1000" title="zkoss-home-component-extractor-riccardo-casatta-news" src="http://www.synaptica.info/wp-content/uploads/2010/05/zkoss-home-component-extractor-riccardo-casatta-news.png" alt="zkoss-home-component-extractor-riccardo-casatta-news" width="345" height="165" /></a></p>
<p>One of <a href="http://www.synaptica.info/2010/04/07/zk-component-extractor/langswitch_lang/it/" onclick="">our article</a>, reviewed and extendend, today appears on the official <a href="http://docs.zkoss.org/wiki/Component_Extractor" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://docs.zkoss.org/wiki/Component_Extractor');">zk site</a> !</p>
<p>We are very proud to appear on the zk official site, it is also a confirmation of the advanced work we made here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.synaptica.info/2010/05/18/small-talk-on-zkossorg/feed/langswitch_lang/en/</wfw:commentRss>
		</item>
		<item>
		<title>Embarcadero RAD Studio RoadMap Update</title>
		<link>http://www.synaptica.info/2010/05/17/embarcadero-rad-studio-roadmap-update/langswitch_lang/en/</link>
		<comments>http://www.synaptica.info/2010/05/17/embarcadero-rad-studio-roadmap-update/langswitch_lang/en/#comments</comments>
		<pubDate>Mon, 17 May 2010 13:27:43 +0000</pubDate>
		<dc:creator>ivan</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://www.synaptica.info/?p=991&amp;langswitch_lang=it</guid>
		<description><![CDATA[<p>From Embarcadero there is a new roadmap update at http://edn.embarcadero.com/article/39934 that speak about RAD Studio Solution to build native x86 applications.
In particular is focused on future of Delphi / C++ Builder on cross platform and Native 64bit.</p>
<p><p class="wp-caption-text">Project Fulcrum</p></p>
<p>regards
ivan</p>
]]></description>
			<content:encoded><![CDATA[<p>From Embarcadero there is a new roadmap update at <a href="http://edn.embarcadero.com/article/39934" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://edn.embarcadero.com/article/39934');">http://edn.embarcadero.com/article/39934</a> that speak about RAD Studio Solution to build native x86 applications.<br />
In particular is focused on future of Delphi / C++ Builder on cross platform and Native 64bit.</p>
<p><center><div class="wp-caption alignnone" style="width: 624px"><img title="Project Fulcrum" src="http://edn.embarcadero.com/article/images/39934/03000009.png" alt="Project Fulcrum" width="614" height="460" /><p class="wp-caption-text">Project Fulcrum</p></div></center></p>
<p>regards<br />
ivan</p>
]]></content:encoded>
			<wfw:commentRss>http://www.synaptica.info/2010/05/17/embarcadero-rad-studio-roadmap-update/feed/langswitch_lang/en/</wfw:commentRss>
		</item>
		<item>
		<title>Oracle tip #8 [Enable apex not only for localhost]</title>
		<link>http://www.synaptica.info/2010/05/10/oracle-tip-8-enable-apex-not-only-for-localhost/langswitch_lang/en/</link>
		<comments>http://www.synaptica.info/2010/05/10/oracle-tip-8-enable-apex-not-only-for-localhost/langswitch_lang/en/#comments</comments>
		<pubDate>Mon, 10 May 2010 14:35:39 +0000</pubDate>
		<dc:creator>ivan</dc:creator>
		
		<category><![CDATA[Programmazione]]></category>

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

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

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

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

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

		<category><![CDATA[Ivan Revelli]]></category>

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

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

		<category><![CDATA[set listener]]></category>

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

		<guid isPermaLink="false">http://www.synaptica.info/?p=986&amp;langswitch_lang=it</guid>
		<description><![CDATA[<p>After installing Oracle 10g on an Ubuntu 9.04 system, i found that the Apex application was enabled only for the localhost. </p>
<p>Some time is necessary open or close the access of apex from remote. To do this is only need to access to your oracle system by a dba user and run this sql command:</p>
<p>to [...]]]></description>
			<content:encoded><![CDATA[<p>After installing Oracle 10g on an Ubuntu 9.04 system, i found that the Apex application was enabled only for the localhost. </p>
<p>Some time is necessary open or close the access of apex from remote. To do this is only need to access to your oracle system by a dba user and run this sql command:</p>
<p>to allow remote access: </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;EXEC DBMS_XDB.SETLISTENERLOCALACCESS<span class="br0">&#40;</span>FALSE<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
<p>to close remote access :</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;EXEC DBMS_XDB.SETLISTENERLOCALACCESS<span class="br0">&#40;</span>TRUE<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
<p>that&#8217;s all<br />
regards<br />
ivan</p>
]]></content:encoded>
			<wfw:commentRss>http://www.synaptica.info/2010/05/10/oracle-tip-8-enable-apex-not-only-for-localhost/feed/langswitch_lang/en/</wfw:commentRss>
		</item>
		<item>
		<title>Extend swap file on Ubuntu</title>
		<link>http://www.synaptica.info/2010/05/01/extend-swap-file-on-ubuntu/langswitch_lang/en/</link>
		<comments>http://www.synaptica.info/2010/05/01/extend-swap-file-on-ubuntu/langswitch_lang/en/#comments</comments>
		<pubDate>Sat, 01 May 2010 14:14:03 +0000</pubDate>
		<dc:creator>ivan</dc:creator>
		
		<category><![CDATA[Sistemi Operativi]]></category>

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

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

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

		<guid isPermaLink="false">http://www.synaptica.info/?p=968&amp;langswitch_lang=it</guid>
		<description><![CDATA[<p>Sometimes happen that you need to extend the swap space on your system, so it happens to me when i tried to install Oracle10ex on my ubuntu system.
So i found the solution on this ubuntu forum : http://ubuntuforums.org/showthread.php?t=89782</p>
<p>To extend the swap file to 1gb :</p>




First, create a large empty file:</p>

Code:
sudo dd if=/dev/zero of=/swap_file bs=1M count=1000

<p>Replace [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes happen that you need to extend the swap space on your system, so it happens to me when i tried to install Oracle10ex on my ubuntu system.<br />
So i found the solution on this ubuntu forum : <a href="http://ubuntuforums.org/showthread.php?t=89782" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://ubuntuforums.org/showthread.php?t=89782');">http://ubuntuforums.org/showthread.php?t=89782</a></p>
<p>To extend the swap file to 1gb :</p>
<table id="post489196" class="tborder" style="width: 864px; height: 780px;" border="0" cellspacing="0" cellpadding="6" align="center">
<tbody>
<tr valign="top">
<td id="td_post_489196" style="border-right: 1px solid #ffffff;">
<div id="post_message_489196" class="vbclean_msgtext">First, create a large empty file:</p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Code:</div>
<pre class="alt2" style="margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto;" dir="ltr">sudo dd if=/dev/zero of=/swap_file bs=1M count=1000</pre>
</div>
<p>Replace 1000 with the size of the swap file desired, in MB. You  can also put the swap_file in a different location if desired.</p>
<p>Next, we&#8217;ll secure the swapspace, so ordinary users cannot read the  contents (potential security breach):</p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Code:</div>
<pre class="alt2" style="margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 50px; text-align: left; overflow: auto;" dir="ltr">sudo chown root:root /swap_file
sudo chmod 600 /swap_file</pre>
</div>
<p>Then, turn it into swap space:</p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Code:</div>
<pre class="alt2" style="margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto;" dir="ltr">sudo mkswap /swap_file</pre>
</div>
<p>Next, turn it on:</p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Code:</div>
<pre class="alt2" style="margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto;" dir="ltr">sudo swapon /swap_file</pre>
</div>
<p>To make it turn on at every bootup, open up /etc/fstab:</p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Code:</div>
<pre class="alt2" style="margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto;" dir="ltr">sudo gedit /etc/fstab</pre>
</div>
<p>Add this line to the end of the file:</p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Code:</div>
<pre class="alt2" style="margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto;" dir="ltr">/swap_file       none            swap    sw              0       0</pre>
</div>
</div>
<p><!-- / message --></td>
</tr>
<tr>
<td class="alt3">I know that this article is only a copy of a forum but only for more simple search and report.</p>
<p>bye</p>
<p>ivan</td>
<td class="alt1" style="border: 0px 1px 1px 0px none solid solid none -moz-use-text-color #ffffff #ffffff -moz-use-text-color;" align="right"><!-- controls --></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.synaptica.info/2010/05/01/extend-swap-file-on-ubuntu/feed/langswitch_lang/en/</wfw:commentRss>
		</item>
		<item>
		<title>AsyncWebServiceHandler</title>
		<link>http://www.synaptica.info/2010/04/24/asyncwebservicehandler/langswitch_lang/en/</link>
		<comments>http://www.synaptica.info/2010/04/24/asyncwebservicehandler/langswitch_lang/en/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 09:18:01 +0000</pubDate>
		<dc:creator>walter</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://www.synaptica.info/?p=972&amp;langswitch_lang=en</guid>
		<description><![CDATA[L&#8217;immagine mostra le differenze tra una pagina Asp.Net Sincrona e Asincrona;

Per modificare il comportamento di un Webservice .Net in modo simile ad una pagina Asp.Net asincrona (quelle con &#60;%@ Page Async=&#8221;true&#8221; &#8230; %&#62; ) èÂ sufficente modificare l&#8217;HttpHandler dell&#8217;applicazione web come segue:
Aprire ilÂ Â Web.config eÂ nel tagÂ &#60;httpHandlers&#62; diÂ &#60;system.web&#62; commentare l&#8217;attuale Handler come segue:

&#60;!-- &#60;add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, [...]]]></description>
			<content:encoded><![CDATA[<div>L&#8217;immagine mostra le differenze tra una pagina Asp.Net Sincrona e Asincrona;</div>
<div style="text-align: center; "><img title="Syncronous Page vs Asyncronous Page" src="http://www.synaptica.info/wp-content/uploads/2010/05/syncasyncpages.gif" alt="Syncronous Page vs Asyncronous Page" width="354" height="365" /></div>
<div>Per modificare il comportamento di un Webservice .Net in modo simile ad una pagina Asp.Net asincrona (quelle con &lt;%@ Page Async=&#8221;true&#8221; &#8230; %&gt; ) èÂ sufficente modificare l&#8217;HttpHandler dell&#8217;applicazione web come segue:</div>
<div>Aprire ilÂ Â Web.config eÂ nel tagÂ &lt;httpHandlers&gt; diÂ &lt;system.web&gt; commentare l&#8217;attuale Handler come segue:</div>
<div>
<pre>&lt;!-- &lt;add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, Version=3.5.0.0,Â Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt; --&gt;</pre>
</div>
<div>A questo punto aggiungere il nuovo handler la cui dll dovrà  essere presente nella vostra /bin</div>
<div>
<pre>&lt;add verb="*" path="*.asmx" type="AsyncWebServiceHandler.AsyncWebServiceHandler, AsyncWebServiceHandler" /&gt;</pre>
</div>
<div>Operazione conclusa.</div>
<div>Sorgenti della DLL (AsyncWebServiceHandler.cs)</div>
<pre>namespace AsyncWebServiceHandler
{yncWebServiceHandler.AsyncWebServiceHandler, AsyncWebServiceHandler" /&gt;

	using System;
	using System.Web;
	using System.Web.SessionState;
	using System.Web.Services.Protocols; 

	public class AsyncWebServiceHandler :
	    System.Web.UI.Page, IHttpAsyncHandler, IRequiresSessionState
	{
	    protected override void OnInit(EventArgs e)
	    {
		AsyncMode=true;
	        IHttpHandler handler =
	            new WebServiceHandlerFactory ().GetHandler(
	                this.Context,
	                this.Context.Request.HttpMethod,
	                this.Context.Request.FilePath,
	                this.Context.Request.PhysicalPath);
	        handler.ProcessRequest(this.Context);
	        this.Context.ApplicationInstance.CompleteRequest();
	    } 

	    public IAsyncResult BeginProcessRequest(
	        HttpContext context, AsyncCallback cb, object extraData)
	    {
	        return this.AsyncPageBeginProcessRequest(
	            context, cb, extraData);
	    } 

	    public void EndProcessRequest(IAsyncResult result)
	    {
	        this.AsyncPageEndProcessRequest(result);
	    } 

	}
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.synaptica.info/2010/04/24/asyncwebservicehandler/feed/langswitch_lang/en/</wfw:commentRss>
		</item>
		<item>
		<title>ZK Component extractor</title>
		<link>http://www.synaptica.info/2010/04/07/zk-component-extractor/langswitch_lang/en/</link>
		<comments>http://www.synaptica.info/2010/04/07/zk-component-extractor/langswitch_lang/en/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 10:39:22 +0000</pubDate>
		<dc:creator>Riccardo</dc:creator>
		
		<category><![CDATA[Articles]]></category>

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

		<category><![CDATA[regular expression]]></category>

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

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

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

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

		<guid isPermaLink="false">http://www.synaptica.info/?p=958&amp;langswitch_lang=it</guid>
		<description><![CDATA[<p>Hello,</p>
<p>today we share a little tool for extracting components name and id from a standard zul file.</p>
<p></p>
<p>The idea behind this tool borns after readingÂ this small talk byÂ Ashish Dasnurkar and after a comment on his works. I think in ZK there are many ways to access components from controller class (i.e. getFellow(), Composer, CDI&#8230;) but none [...]]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>today we share a little tool for extracting components name and id from a standard zul file.</p>
<p><a href="http://www.shareteam.eu/extract.zul" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.shareteam.eu/extract.zul');"><img class="size-full wp-image-959 alignnone" title="schermata-component-extractor-google-chrome-1" src="http://www.synaptica.info/wp-content/uploads/2010/04/schermata-component-extractor-google-chrome-1.png" alt="schermata-component-extractor-google-chrome-1" width="707" height="477" /></a></p>
<p>The idea behind this tool borns after readingÂ <a href="http://docs.zkoss.org/wiki/Getting_started_with_ZK_CDI" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://docs.zkoss.org/wiki/Getting_started_with_ZK_CDI');">this small talk</a> byÂ Ashish Dasnurkar and after a comment on his works. I think in ZK there are many ways to access components from controller class (i.e. getFellow(), Composer, CDI&#8230;) but none of them save us from writing component variable declaration. This is why i need this tool.</p>
<p>There is a working demo at this <a href="http://www.shareteam.eu/extract.zul" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.shareteam.eu/extract.zul');">link</a>. <a href="http://www.synaptica.info/wp-content/uploads/2010/04/extract.zul" onclick="">Here</a> are the source of the standalone zul page. I used a regular expression (&lt;(\w*) [^&gt;]*id=["|'](\w*)["|'][^&gt;]*) to parse the zul file, it sounds a simply and reasonable approach to me. Another approach could be to create the components via the Execution.createComponents() and iterating over component tree, but it will be a little more complex and involve security risk, so i choose the easy way.</p>
<p>Hoping some guys from <a href="http://www.zkoss.org" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.zkoss.org');">zkoss</a> will accept the <a href="https://sourceforge.net/tracker/?func=detail&amp;aid=2843650&amp;group_id=225644&amp;atid=1065693" onclick="javascript:pageTracker._trackPageview('/outbound/article/https://sourceforge.net/tracker/?func=detail&amp;aid=2843650&amp;group_id=225644&amp;atid=1065693');">feature request</a> to integrate this feature directly in <a href="http://www.zkoss.org/smalltalks/zkstudioI/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.zkoss.org/smalltalks/zkstudioI/');">zk studio</a>.</p>
<p>Comments appreciated,</p>
<p>Thank you and see you next time</p>
]]></content:encoded>
			<wfw:commentRss>http://www.synaptica.info/2010/04/07/zk-component-extractor/feed/langswitch_lang/en/</wfw:commentRss>
		</item>
	</channel>
</rss>
