<?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>/dev/random &#187; c</title>
	<atom:link href="http://alex.amiran.it/tag/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://alex.amiran.it</link>
	<description></description>
	<lastBuildDate>Sun, 08 Jan 2012 15:49:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<image>
<link>http://alex.amiran.it</link>
  <url>http://alex.amiran.it/wp-content/themes/shu-ok/img/favicon.png</url>
  <title>/dev/random</title>
</image>
		<item>
		<title>LXterminal on steroids (2)</title>
		<link>http://alex.amiran.it/20080824/lxterminal-on-steroids-2/</link>
		<comments>http://alex.amiran.it/20080824/lxterminal-on-steroids-2/#comments</comments>
		<pubDate>Sun, 24 Aug 2008 17:39:40 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://alex.amiran.it/?p=214</guid>
		<description><![CDATA[Un altro aggiornamento per lxterminal. Grazie al lavoro di Giggio, che, oltre a creare il pacchetto per Ubuntu di lxterminal ha anche modificato il sorgente in modo che le modifiche alla configurazione vengano applicate al volo, oggi vi presento un&#8217;altra versione di lxterminal. Ma bando alle ciance, ecco i pacchetti da scaricare: Paccetto tar.gz (debianizzato) [...]]]></description>
			<content:encoded><![CDATA[<p class="caption"     style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;font-style: italic; padding: 0 1em;font-style: italic; padding: 0 1em;">Un altro aggiornamento per lxterminal.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Grazie al lavoro di Giggio, che, oltre a creare il pacchetto per Ubuntu di lxterminal ha anche modificato il sorgente in modo che le modifiche alla configurazione vengano applicate al volo, oggi vi presento un&#8217;altra versione di lxterminal.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Ma bando alle ciance, ecco i pacchetti da scaricare:</p>
<ul>
<li><a href="http://alex.amiran.it/wp-content/uploads/2008/08/lxterminal-0132tar.gz"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">Paccetto tar.gz (debianizzato)</a></li>
<li><a href="http://alex.amiran.it/wp-content/uploads/2008/08/lxterminal_0132-1_i386.deb"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">Pacchetto deb per Debian Lenny x86-32</a></li>
<li><a href="http://alex.amiran.it/wp-content/uploads/2008/08/lxterminal_0132-1_amd64.deb"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">Pacchetto deb per Debian Lenny x86-64 (amd64)</a></li>
<li><a href="http://alex.amiran.it/wp-content/uploads/2008/08/lxterminal_0132-1ubuntu1_i386.deb"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">Pacchetto deb per Ubuntu 8.04 x86-32</a></li>
</ul>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Oltre ai pacchetti deb già pronti per l&#8217;installazione, potete scaricare il tar.gz dei sorgenti, già debianizzato, nel caso vogliate compilarlo da soli, fare altre modifiche o semplicemente se non vi fidate dei pacchetti già pronti. <img src="http://alex.amiran.it/wp-includes/images/smilies/icon_wink.gif"  alt=";)"  class="wp-smiley"   style="border: 0;"/> </p>
]]></content:encoded>
			<wfw:commentRss>http://alex.amiran.it/20080824/lxterminal-on-steroids-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LXterminal on steroids</title>
		<link>http://alex.amiran.it/20080812/lxterminal-on-steroids/</link>
		<comments>http://alex.amiran.it/20080812/lxterminal-on-steroids/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 16:46:59 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[lxde]]></category>
		<category><![CDATA[patch]]></category>

		<guid isPermaLink="false">http://alex.amiran.it/?p=205</guid>
		<description><![CDATA[Qualche miglioramento per rendere migliore questo ottimo programma. Da un po&#8217; di tempo uso lxterminal (dal progetto LXDE) al posto di gnome-terminal, ma mi sono scontrato subito con alcune sue limitazioni. E come me anche altri utenti, come Giggio che me l&#8217;ha segnalato nei commenti del mio articolo su Debian sull&#8217;Eee900. Ho quindi preso il [...]]]></description>
			<content:encoded><![CDATA[<p class="caption"     style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;font-style: italic; padding: 0 1em;font-style: italic; padding: 0 1em;">Qualche miglioramento per rendere migliore questo ottimo programma.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Da un po&#8217; di tempo uso lxterminal (dal progetto <a href="http://www.lxde.org/"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">LXDE</a>) al posto di gnome-terminal, ma mi sono scontrato subito con alcune sue limitazioni. E come me anche altri utenti, come Giggio che me l&#8217;ha segnalato nei <a href="http://alex.amiran.it/20080809/debian-su-eee900-parte-4/#comments"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">commenti del mio articolo su Debian sull&#8217;Eee900</a>.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Ho quindi preso il coraggio a quattro mani e mi sono messo a studiarne il sorgente. Nonostante sia in C, è scritto in modo molto pulito, quindi sono riuscito facilmente a risolvere i due problemi grossi che aveva: un buffer di scrollback troppo limitato (il valore di default, credo un centinaio di righe), e le scritte in grigio su fondo nero, che rendevano stancante o anche impossibile la lettura.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">I miei sforzi si sono concretizzati in una <a href="http://sourceforge.net/tracker/index.php?func=detail&amp;aid=2047695&amp;group_id=180858&amp;atid=894871"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">patch che ho segnalato all&#8217;upstream</a> (che spero verrà integrata presto), e già che c&#8217;ero ho rimesso in ordine anche l&#8217;interfaccia di configurazione, che era un po&#8217; confusionaria con due parametri, figurarsi ora che sono 5. <img src="http://alex.amiran.it/wp-includes/images/smilies/icon_smile.gif"  alt=":)"  class="wp-smiley"   style="border: 0;"/> </p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;"><a href="http://alex.amiran.it/wp-content/uploads/2008/08/lxterminal-preferences.png"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;"><img hspace="auto"  vspace="1em"  class="float_center"  title="Nuova interfaccia delle impostazioni di lxterminal"  src="http://alex.amiran.it/wp-content/uploads/2008/08/lxterminal-preferences.png"  alt=""  width="369"  height="291"     style="border: 0;display: block; border: 0; clear: both; margin: 1em auto; padding: 5px;"/></a></p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Ora vi potete sbizzarrire come preferite coi colori, con combinazioni anche oltre il limite dell&#8217;assurdo.<span id="more-205" ></span><a href="http://alex.amiran.it/wp-content/uploads/2008/08/lxterminal_mashup.png"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;"><img hspace="0"  vspace="1em"  align="left"  class="float_left"  title="Stroboscopio di colori per lxterminal"  src="http://alex.amiran.it/wp-content/uploads/2008/08/lxterminal_mashup-150x120.png"  alt=""  width="150"  height="120"     style="border: 0;display: block; border: 0; float: left; clear: left; margin: 1em 1em 1em 0; padding: 5px;"/></a></p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Per ora (e forse per sempre) la modifica delle impostazioni non ha effetto sulle finestre e sulle tab già aperte, ma solo su quelle che aprirete dopo le modifiche.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Ho fatto un confronto a spanne sull&#8217;occupazione di memoria di lxterminal contro gnome-terminal, e sono rimasto abbastanza sorpreso.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">lxterminal, per risparmiare RAM, al momento del caricamento verifica se c&#8217;è già un&#8217;istanza di sé stesso in memoria, e se c&#8217;è le segnala di aprire una nuova finestra, quindi esce. In ogni momento avrete una sola copia di lxterminal in memoria.<a href="http://alex.amiran.it/wp-content/uploads/2008/08/lxterminal-ram.png"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;"><img hspace="1em"  vspace="1em"  align="right"  class="float_right"  title="lxterminal contro gnome-terminal"  src="http://alex.amiran.it/wp-content/uploads/2008/08/lxterminal-ram-150x120.png"  alt=""  width="150"  height="120"     style="border: 0;display: block; border: 0; float: right; clear: right; margin: 1em 0 1em 1em; padding: 5px;"/></a></p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Perciò, anche se non occupa molta meno RAM di gnome-terminal (circa 1.5 o 2 MB in meno), il vantaggio lo vedrete quando ne aprirete diverse finestre. Come potete vedere dallo screenshot di top, qui a fianco, 5 finestre di lxterminal occupano 17 MB (meno 8.8 condivisi, quindi 9.2 MB), mentre 5 finestre di gnome-terminal occupano ognuna tra i 15 e i 18 MB, meno i 9.3 condivisi, sono tra i 5 e gli 8 MB ognuna, per un totale di 25-30 MB circa.</p>
<h2  style="font-size: 1.4em; font-weight: bold; line-height: 1.5em; font-family: 'DejaVu Serif' Tahoma 'Times New Roman' times serif;font-size: 1.4em; font-weight: bold; line-height: 1.5em; font-family: 'DejaVu Serif' Tahoma 'Times New Roman' times serif;">La patch e i pacchetti deb</h2>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Potete scaricare la <a href="http://alex.amiran.it/wp-content/uploads/2008/08/lxterminal_scrollback_colors_preferences.patch"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">patch</a> da applicare alla versione attualmente nel subversion ufficiale (838), il <a href="http://alex.amiran.it/wp-content/uploads/2008/08/lxterminal_0131-1_i386.deb"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">pacchetto deb di lxterminal per Debian Lenny</a>, o <a href="http://alex.amiran.it/wp-content/uploads/2008/08/lxterminal-0131tar.gz"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">il sorgente debianizzato di lxterminal</a> da cui potete compilare il pacchetto deb per altri sistemi (Ubuntu, Sidux, ecc.).</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Per compilare dal mio sorgente, scaricatelo (purtroppo WordPress mi ha segato tutti i punti nel nome del file tranne l&#8217;ultimo&#8230;), poi aprite una shell e digitate:</p>
<pre  style="font-family: 'DejaVu Sans Mono' Consola Inconsolata fixed; margin: 1em; padding: 0.5em; border: 1px solid #9f9;font-family: 'DejaVu Sans Mono' Consola Inconsolata fixed; margin: 1em; padding: 0.5em; border: 1px solid #9f9;">sudo aptitude install fakeroot
mkdir temp
cd temp
sudo apt-get builddep lxterminal
tar -xzovf /path/al/file/scaricato/lxterminal-0131tar.gz
cd lxterminal-0.1.3.1
fakeroot debian/rules binary</pre>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">A questo punto, dentro temp/ dovreste avere (se la compilazione è andata a buon fine) il pacchetto lxterminal-0.1.3.1-1.deb che potete installare con</p>
<pre  style="font-family: 'DejaVu Sans Mono' Consola Inconsolata fixed; margin: 1em; padding: 0.5em; border: 1px solid #9f9;font-family: 'DejaVu Sans Mono' Consola Inconsolata fixed; margin: 1em; padding: 0.5em; border: 1px solid #9f9;">sudo dpkg -i lxterminal-0.1.3.1-1.deb</pre>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">In caso di dubbi, chiedete pure, vedrò di aiutarvi, nei limiti del possibile.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Se qualcuno si volesse prendere la briga di compilarlo per Ubuntu e volesse inviarmelo, sarò felice di ospitare qui il pacchetto.</p>
]]></content:encoded>
			<wfw:commentRss>http://alex.amiran.it/20080812/lxterminal-on-steroids/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

