<?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>SIMOTRONE WEB PAGE &#187; Web</title>
	<atom:link href="http://www.simotrone.it/tag/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.simotrone.it</link>
	<description>Simotrone is back!</description>
	<lastBuildDate>Fri, 30 Jul 2010 05:47:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CGI in C</title>
		<link>http://www.simotrone.it/2010/05/25/cgi-in-c/</link>
		<comments>http://www.simotrone.it/2010/05/25/cgi-in-c/#comments</comments>
		<pubDate>Tue, 25 May 2010 05:30:11 +0000</pubDate>
		<dc:creator>Simotrone</dc:creator>
				<category><![CDATA[Binary People]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[CGI]]></category>
		<category><![CDATA[lib]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.simotrone.it/?p=2866</guid>
		<description><![CDATA[Qualche tempo fa mi sono messo a guardare framework web vari e curiosi, trovando le cose più disparate: mi avevano colpito molto due engine scriptati in bash e rc (nanoblog e werc).
La shell è molto affacinante, ma l&#8217;overheading del codice legato ai vari &#8220;system&#8221; che la shell lancia per avviare figli di se stessa sono [...]]]></description>
			<content:encoded><![CDATA[<p>Qualche tempo fa mi sono messo a guardare framework web vari e curiosi, trovando le cose più disparate: mi avevano colpito molto due engine scriptati in bash e rc (<a href="http://nanoblogger.sourceforge.net/">nanoblog</a> e <a href="http://werc.cat-v.org/">werc</a>).<br />
La shell è molto affacinante, ma l&#8217;overheading del codice legato ai vari &#8220;system&#8221; che la shell lancia per avviare figli di se stessa sono mostruosi.</p>
<p>Dunque, in un weekend lontano da casa ma col portatilino a mano, mi sono messo a guardare queste cose lato C &#8211; un po&#8217; macchinosetto, non c&#8217;è dubbio.</p>
<p>Mi sono messo a scrivere una lib cgi, per esercizio, in modo che sapesse interpretare un form in GET ed in POST (non avevo mica capito come client e server si passavano i dati in POST) e la cosa funzionava pure (a parte un bug, suvvia).</p>
<p>Tornato a casa, un <strong>apt-cache search libcgi</strong> ha evidenziato i seguenti pacchetti, che indicavano chiaramente il mio lavoro come inutile:</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;"><span class="br0">&#91;</span>&#8230;<span class="br0">&#93;</span><br />
libcgi-dev &#8211; library <span class="kw1">for</span> CGI programs <span class="kw1">in</span> C<br />
libcgi-doc &#8211; documentation <span class="kw1">for</span> libcgi <span class="kw1">in</span> html<br />
libcgi0 &#8211; library <span class="kw1">for</span> CGI programs <span class="kw1">in</span> C<br />
libcgic-dev &#8211; C library <span class="kw1">for</span> developing CGI applications<br />
libcgic2 &#8211; C library <span class="kw1">for</span> developing CGI applications<span class="br0">&#91;</span>&#8230;<span class="br0">&#93;</span></div>
</div>
<p>La pagina introduttiva di libcgi-doc (su <a href="http://libcgi.sourceforge.net/page.htm">sourceforge</a>) dice quel che segue:</p>
<blockquote><p>Hello!<br />
My name is Rafael Steil, I&#8217;m from Brazil.</p>
<p>I started programming LibCGI just for fun at september/2001. The reason I wrote<br />
this lib was, originally, to learn more about C programming. In that time, I<br />
had many problems with pointers manipulation, and I was being a bit bored about<br />
it.<br />
I needed a reason, a good reason continue. Those days I&#8217;ve been coding in PHP,<br />
and I sill like PHP a lot, because it is powerful and fun to code with. But on<br />
the other hand, I don&#8217;t want to work with PHP for the rest of my life, I want<br />
to do something of exciting, like programming games <img src='http://www.simotrone.it/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>Just as curiosity, currently I spend my time ( which means, I&#8217;m paid for )<br />
coding in Java and C#.</p>
<p>When I wrote the first LibCGI&#8217;s line of code ( in this time LibCGI was just a<br />
test program ), I knew absolutely nothing about CGI programming, I didn&#8217;t know<br />
how to read form variables, nothing.<br />
After some time searching in the Internet, I found some cool papers, and one of<br />
them described how to read data, and before reading it, I thought &#8220;sucks, It<br />
seems to be really complex&#8221;, but not, I was wrong! How fun!! After some hours I<br />
finished a more complex program, that reads from STDIN and parses it! So I<br />
thought &#8220;why not make a lib???&#8221;.</p>
<p>Great! I had one more reason to code in C. At that time, I was already codding<br />
much better, and I was safe that could do something very cool! Now, the result<br />
is LibCGI. I would like to thank to everyone that send me suggestions, bugs and<br />
bug-fixes, well, to everyone that uses LibCGI. Thanks a lot guys.!!</p></blockquote>
<p> <img src='http://www.simotrone.it/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Esiste anche il pacchetto <strong>libcgic-dev</strong> (sviluppato da <a href="http://www.boutell.com/cgic/">boutell.com</a>), ma visto che si trascinava dietro mille cose in debian e non mi interessava, l&#8217;ho lasciato lì.</p>
<p>Sicuramente la lib di Boutell sarà meglio (oltre che più aggiornata), ma mi sento &#8220;romanticamente&#8221; vicino al brasiliano.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simotrone.it/2010/05/25/cgi-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mastering CSS</title>
		<link>http://www.simotrone.it/2009/08/15/mastering-css/</link>
		<comments>http://www.simotrone.it/2009/08/15/mastering-css/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 06:22:54 +0000</pubDate>
		<dc:creator>Simotrone</dc:creator>
				<category><![CDATA[Binary People]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[effetti grafici]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.simotrone.it/?p=2065</guid>
		<description><![CDATA[Un indice di un resoconto di articoli sui css, da smashingmagazine.com.  
Mastering CSS, Part 1: Styling Design Elements

Layout and User Interface Techniques
Navigation and Menu Techniques
Image Styles and Galleries
Typography Techniques
Icons, Buttons and Links


Mastering CSS, Part 2: Advanced Techniques and Tools

Calendars, Lists, Tables, and Timelines
iPhone CSS Techniques
Form and Search Techniques
Visualization Techniques
Other Handy Techniques and Tips
CSS3 Techniques
CSS [...]]]></description>
			<content:encoded><![CDATA[<p>Un indice di un resoconto di articoli sui css, da <a href="http://www.smashingmagazine.com">smashingmagazine.com</a>. <img src='http://www.simotrone.it/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.smashingmagazine.com/2009/08/03/mastering-css-styling-design-elements/">Mastering CSS, Part 1: Styling Design Elements</a></p>
<ol>
<li>Layout and User Interface Techniques</li>
<li>Navigation and Menu Techniques</li>
<li>Image Styles and Galleries</li>
<li>Typography Techniques</li>
<li>Icons, Buttons and Links</li>
</ol>
<p><a href="http://www.smashingmagazine.com/2009/08/10/mastering-css-advanced-techniques-and-tools/"><br />
Mastering CSS, Part 2: Advanced Techniques and Tools</a></p>
<ol>
<li>Calendars, Lists, Tables, and Timelines</li>
<li>iPhone CSS Techniques</li>
<li>Form and Search Techniques</li>
<li>Visualization Techniques</li>
<li>Other Handy Techniques and Tips</li>
<li>CSS3 Techniques</li>
<li>CSS Tools</li>
<li>More Articles and Resources</li>
</ol>
<p>Per ora ho usato i <a href="http://cssglobe.com/post/3875/cssg-collections-web-forms">form</a>, e letti gli articoli riguardanti le <a href="http://css-tricks.com/date-display-with-sprites/">date</a> (O_O), il <a href="http://css-tricks.com/text-blocks-over-image/">testo sulle immagini</a>, e gli <a href="http://www.sohtanaka.com/web-design/simple-page-peel-effect-with-jquery-css/">angoli da sfogliare</a> (bellissimo, provate il <a href="http://www.sohtanaka.com/web-design/examples/peeling-effect/">demo</a>!). Molto carini anche gli articoli sulle <a href="http://www.jankoatwarpspeed.com/post/2009/07/07/Adaptable-view.aspx">liste visualizzabili in maniera diversa</a> e riguardanti la <a href="http://www.smashingmagazine.com/2009/07/07/web-form-validation-best-practices-and-tutorials/">validazione dei form</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simotrone.it/2009/08/15/mastering-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cocoon bleargh</title>
		<link>http://www.simotrone.it/2009/05/17/cocoon-bleargh/</link>
		<comments>http://www.simotrone.it/2009/05/17/cocoon-bleargh/#comments</comments>
		<pubDate>Sun, 17 May 2009 15:54:09 +0000</pubDate>
		<dc:creator>Simotrone</dc:creator>
				<category><![CDATA[Binary People]]></category>
		<category><![CDATA[caccasciolta]]></category>
		<category><![CDATA[cocoon]]></category>
		<category><![CDATA[tomcat]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.simotrone.it/?p=1874</guid>
		<description><![CDATA[Ho installato su kripton (debian) apache Tomcat, e ci ho messo sopra Cocoon (dopo 1 giorno e mezzo di bestemmie).
In linea generale, l&#8217;accrocchio mi sembra notevolmente schifoso: lento e inutile.
Ovviamente, non ho ancora capito niente. Perchè complicarsi così tanto la vita?
Non capisco ancora (ma c&#8217;è, sicuro che c&#8217;è) la fichezza di questi oggetti.
Apache + php [...]]]></description>
			<content:encoded><![CDATA[<p>Ho installato su kripton (debian) apache <a href="http://tomcat.apache.org/">Tomcat</a>, e ci ho messo sopra <a href="http://cocoon.apache.org/">Cocoon</a> (dopo 1 giorno e mezzo di bestemmie).</p>
<p>In linea generale, l&#8217;accrocchio mi sembra notevolmente schifoso: lento e inutile.<br />
Ovviamente, non ho ancora capito niente. Perchè complicarsi così tanto la vita?<br />
Non capisco ancora (ma c&#8217;è, sicuro che c&#8217;è) la fichezza di questi oggetti.</p>
<p><strong>Apache + php è bello rapido e mi è chiaro</strong>. Qualcuno chiede una pagina, apache interpeta il suo bel codicillo php, che nel migliore dei casi è un html e basta, nel peggiore un html embeddato di php che elabora e passa. Lineare. Se ci sono javascript e css se li carica e se li legge.</p>
<p>Sul funzionamento di Tomcat non mi ci metto, ma già i file di configurazione mi lasciano sbalordito (l&#8217;xml mi pare attualmente una caterva di tasti sbattuti li per l&#8217;anima del &#8230;).<br />
Comunque, quando arriva una richiesta quella viene passata a Cocoon, che fa dei giri strabilianti: si deve leggere una sitemap (xmap), un xslt e un xml da interpretare, ovviamente con tutte le risorse accessorie (CSS, javascript e altro) sempre dietro.<br />
Sicuramente per qualcuno sarà banale&#8230; Io lo trovo a dir poco contorto. :-/<br />
Non riesco a starci dietro a sto ambaradan.</p>
<p>Boh, a me per ora sta divisione dei contenuti non mi fa impazzire. (Rails mi è parso comunque molto più chiaro.)</p>
<p>Per far girare questa cosa fantastica ho preso tomcat5.5 dai repo debian, NON ho caricato -admin e -webapps che sicuramente a qualcuno piacciono, ma a me &#8217;ste interfacce d&#8217;aiuto punta e clicca mi fan venire il vomitino e mi incasino di più. Poi ho scaricato dal sito di cocoon la versione <a href="http://apache.multidist.com/cocoon/">2.1.11</a>, ho buildato il war e l&#8217;ho messo sotto le webapps di tomcat. Al riavvio, ha scompattato ed è partito.</p>
<p>Per ora non ho molto da dire, se non che mi pare cacca sciolta. Sic. :-/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simotrone.it/2009/05/17/cocoon-bleargh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby on Idrogeno</title>
		<link>http://www.simotrone.it/2009/04/23/ruby-on-idrogeno/</link>
		<comments>http://www.simotrone.it/2009/04/23/ruby-on-idrogeno/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 23:47:42 +0000</pubDate>
		<dc:creator>Simotrone</dc:creator>
				<category><![CDATA[Binary People]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.simotrone.it/?p=1669</guid>
		<description><![CDATA[Preso dalla foga di provare qualcosa di nuovo (non so quando mai troverò il tempo di approfondire, ma intanto&#8230;) e soprattutto non riuscendo a dormire, mi sono installato Ruby e Rails su Idrogeno.
Non sono manco sicuro di aver capito tutto bene, fatto sta che attualmente il tutto sembra funzionare.
Per la cronaca, ho installato i seguenti [...]]]></description>
			<content:encoded><![CDATA[<p>Preso dalla foga di provare qualcosa di nuovo (non so quando mai troverò il tempo di approfondire, ma intanto&#8230;) e soprattutto non riuscendo a dormire, <strong>mi sono installato Ruby e Rails su Idrogeno</strong>.<br />
Non sono manco sicuro di aver capito tutto bene, fatto sta che attualmente il tutto sembra funzionare.</p>
<p>Per la cronaca, ho installato i seguenti pacchetti con un paio di <strong>apt-get</strong> (install ruby libzlib-ruby rdoc irb rubygems rubygems-doc libfcgi-ruby1.8 libapache2-mod-fastcgi rails libapache2-mod-ruby libapache2-mod-fcgid):</p>
<pre>2009-04-23 01:03:16 install libruby1.8 1.8.7.22-3 1.8.7.72-3.1
2009-04-23 01:03:17 install ruby1.8 &lt;none&gt; 1.8.7.72-3.1
2009-04-23 01:03:17 install libreadline-ruby1.8 &lt;none&gt; 1.8.7.72-3.1
2009-04-23 01:03:17 install irb1.8 1.8.7.22-3 1.8.7.72-3.1
2009-04-23 01:03:17 install irb &lt;none&gt; 4.2
2009-04-23 01:03:17 install libruby &lt;none&gt; 4.2
2009-04-23 01:03:17 install libzlib-ruby &lt;none&gt; 4.2
2009-04-23 01:03:17 install rdoc1.8 &lt;none&gt; 1.8.7.72-3.1
2009-04-23 01:03:18 install rdoc &lt;none&gt; 4.2
2009-04-23 01:03:18 install ruby &lt;none&gt; 4.2
2009-04-23 01:05:44 install rubygems1.8 &lt;none&gt; 1.2.0-3
2009-04-23 01:05:45 install rubygems &lt;none&gt; 1.2.0-3
2009-04-23 01:05:45 install rubygems-doc &lt;none&gt; 1.2.0-3
2009-04-23 01:12:47 install libapache2-mod-fastcgi &lt;none&gt; 2.4.6-1
2009-04-23 01:12:47 install libfcgi0ldbl 2.4.0-7 2.4.0-7
2009-04-23 01:12:47 install libfcgi-ruby1.8 &lt;none&gt; 0.8.7-4.1
2009-04-23 01:17:59 install wwwconfig-common &lt;none&gt; 0.2.1
2009-04-23 01:18:00 install javascript-common &lt;none&gt; 5
2009-04-23 01:18:00 install libapache-ruby1.8 &lt;none&gt; 1.2.6-2
2009-04-23 01:18:00 install libapache2-mod-fcgid &lt;none&gt; 1:2.2-1
2009-04-23 01:18:00 install libapache2-mod-ruby &lt;none&gt; 1.2.6-2
2009-04-23 01:18:00 install libbreakpoint-ruby1.8 &lt;none&gt; 0.5.1-2
2009-04-23 01:18:00 install libbuilder-ruby1.8 &lt;none&gt; 2.1.2-1
2009-04-23 01:18:00 install libbuilder-ruby &lt;none&gt; 2.1.2-1
2009-04-23 01:18:01 install libcmdparse2-ruby1.8 &lt;none&gt; 2.0.2-2
2009-04-23 01:18:01 install libdaemons-ruby1.8 &lt;none&gt; 1.0.10-2
2009-04-23 01:18:01 install libjs-prototype &lt;none&gt; 1.6.0.3-1
2009-04-23 01:18:01 install liblog4r-ruby1.8 &lt;none&gt; 1.0.5-7
2009-04-23 01:18:01 install libmmap-ruby1.8 &lt;none&gt; 0.2.6-3
2009-04-23 01:18:01 install libmocha-ruby1.8 &lt;none&gt; 0.9.5-1
2009-04-23 01:18:01 install libmocha-ruby &lt;none&gt; 0.9.5-1
2009-04-23 01:18:01 install libncurses-ruby1.8 &lt;none&gt; 1.1-3
2009-04-23 01:18:02 install libopenssl-ruby1.8 &lt;none&gt; 1.8.7.72-3.1
2009-04-23 01:18:02 install libredcloth-ruby1.8 &lt;none&gt; 4.1.9-2
2009-04-23 01:18:02 install libredcloth-ruby &lt;none&gt; 4.1.9-2
2009-04-23 01:18:02 install libruby1.8-extras &lt;none&gt; 0.5
2009-04-23 01:18:02 install libsqlite3-ruby1.8 &lt;none&gt; 1.2.4-2
2009-04-23 01:18:02 install libsqlite3-ruby &lt;none&gt; 1.2.4-2
2009-04-23 01:18:02 install libxml-simple-ruby &lt;none&gt; 1.0.11-2
2009-04-23 01:18:02 install rake &lt;none&gt; 0.8.4-1
2009-04-23 01:18:03 install rails &lt;none&gt; 2.2.2-1</pre>
<p>Seguendo <a href="http://www.debian-administration.org/articles/329">questa guida</a> (a grandi linee) ho poi creato la dir <strong>/var/rails/</strong> e ci ho buttato dentro un&#8217;applicativo di default con <strong># rails trone</strong>.<br />
Of course, ho dovuto creare un virtualhost su apache e modificare bind9.</p>
<p>Il risultato è stato questo:<br />
<a href="/wp-content/img/rails-on-H.png"><img src="/wp-content/img/rails-on-H.th.png" alt="Rails on H" /></a>.<br />
Per ora è tutto.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simotrone.it/2009/04/23/ruby-on-idrogeno/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Icedove e il webrowser</title>
		<link>http://www.simotrone.it/2009/03/14/icedove-e-il-webrowser/</link>
		<comments>http://www.simotrone.it/2009/03/14/icedove-e-il-webrowser/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 06:54:12 +0000</pubDate>
		<dc:creator>Simotrone</dc:creator>
				<category><![CDATA[Binary People]]></category>
		<category><![CDATA[icedove]]></category>
		<category><![CDATA[iceweasel]]></category>
		<category><![CDATA[tennici]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.simotrone.it/?p=1416</guid>
		<description><![CDATA[Se usate Icedove come client di posta, e ricevete una mail con un link web, c&#8217;è un&#8217;ampia possibilità che il suddetto client vi voglia far navigare con epiphany.
Questo è dovuto ad un link simbolico in /etc/alternatives della vostra Debian che risulta essere:
lobaloba:/etc/alternatives# ll x-www-browser*
lrwxrwxrwx 1 root root 17 2009-01-22 10:19 x-www-browser ->
    [...]]]></description>
			<content:encoded><![CDATA[<p>Se usate Icedove come client di posta, e ricevete una mail con un link web, c&#8217;è un&#8217;ampia possibilità che il suddetto client vi voglia far navigare con epiphany.<br />
Questo è dovuto ad un link simbolico in /etc/alternatives della vostra Debian che risulta essere:</p>
<pre>lobaloba:/etc/alternatives# ll x-www-browser*
lrwxrwxrwx 1 root root 17 2009-01-22 10:19 x-www-browser ->
     /usr/bin/epiphany
lrwxrwxrwx 1 root root 33 2009-01-22 10:19 x-www-browser.1.gz ->
     /usr/share/man/man1/epiphany.1.gz</pre>
<p>Supponendo che vogliate aprire gli hyperlink con iceweasel, vi informo che con un sanissimo whereis si possono scoprire alcune info fondamentali.</p>
<pre>lobaloba:/etc/alternatives# whereis iceweasel
iceweasel: /usr/bin/iceweasel [...]
/usr/share/man/man1/iceweasel.1.gz</pre>
<p>A questo punto basta ricreare i symlink, ed il gioco e&#8217; fatto.</p>
<pre>lobaloba:/etc/alternatives# ln -s /usr/bin/iceweasel
     x-www-browser
lobaloba:/etc/alternatives# ln -s /usr/share/man/man1/iceweasel.1.gz
      x-www-browser.1.gz</pre>
<p>La soluzione più elegante comunque, passa attraverso  <strong>$ update-alternatives &#8211;config x-www-browser</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simotrone.it/2009/03/14/icedove-e-il-webrowser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
