<?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>Forgotten Memories &#187; Programmazione</title>
	<atom:link href="http://theray.altervista.org/wordpress/category/programmazione/feed/" rel="self" type="application/rss+xml" />
	<link>http://theray.altervista.org/wordpress</link>
	<description>ThE_RaY&#039;s Personal Blog</description>
	<lastBuildDate>Thu, 26 Nov 2009 16:08:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Modulo per la lettura/scrittura di file csv in vb.net</title>
		<link>http://theray.altervista.org/wordpress/programmazione/modulo-per-la-lettura-di-file-csv-in-vb-net/</link>
		<comments>http://theray.altervista.org/wordpress/programmazione/modulo-per-la-lettura-di-file-csv-in-vb-net/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 16:06:44 +0000</pubDate>
		<dc:creator>ThE_RaY</dc:creator>
				<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[streamwriter]]></category>
		<category><![CDATA[vb.net]]></category>

		<guid isPermaLink="false">http://theray.altervista.org/wordpress/?p=691</guid>
		<description><![CDATA[Scrivo questa nota più come appunto personale più che per reale utilità da parte di alcuni lettori (o forse no&#8230;non si sa mai).
Comunque ho dovuto fare un programma che legge, elabora e riscrive file .csv (quelli di excel per intenderci). Il modulo che presento qui contiene 2 funzioni: la prima serve a importare un file [...]


No related posts.

Articoli correlati elaborati dal plugin <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts</a>.]]></description>
			<content:encoded><![CDATA[<p>Scrivo questa nota più come appunto personale più che per reale utilità da parte di alcuni lettori (o forse no&#8230;non si sa mai).</p>
<p>Comunque ho dovuto fare un programma che legge, elabora e riscrive file .csv (quelli di excel per intenderci). Il modulo che presento qui contiene 2 funzioni: la prima serve a importare un file .csv all&#8217;interno di un array bidimensionale per permetterne l&#8217;elaborazione mentre, la seconda, serve a prendere i dati di un array bidimensionale e esportarlo come file .csv . Non posto spiegazioni per il momento, ma se vi interessa sarò felice di rispondere alle vostre domande sui commenti (il codice comunque è semplice e si dovrebbe spiegare da se anche se purtroppo non posso inserire le indentature).</p>
<p><span id="more-691"></span></p>
<pre class="brush: vb;">

Imports System.IO

Module Module2

 Public Sub csv_parsing(ByVal csv_file As String, ByVal array(,) As String)

 Dim riga As String = &quot;&quot;
 Dim testo As String = &quot;&quot;
 Dim lettera As String
 Dim k As Integer
 Dim x As Integer
 Dim y As Integer

 Dim readFile As System.IO.TextReader = New StreamReader(csv_file)

 While True
 riga = readFile.ReadLine()
 If riga Is Nothing Then
 Exit While
 Else
 k = 1
 While True
 lettera = Mid(riga, k, 1)
 If lettera = &quot;&quot; Then
 array(y, x) = testo
 testo = &quot;&quot;
 x = 0
 Exit While
 Else
 If lettera = &quot;;&quot; Then
 array(y, x) = testo
 testo = &quot;&quot;
 k = k + 1
 x = x + 1
 Else
 testo = testo + lettera
 k = k + 1
 End If
 End If

 End While
 y = y + 1
 End If
 End While
 readFile.Close()

 End Sub

 Public Sub csv_write(ByVal array(,) As String, ByVal nomefile As String)

 Dim cella As String = &quot;asd&quot;
 Dim k As Integer
 Dim linea As String
 Dim correggi As Integer = 0

 Using writer As StreamWriter = New StreamWriter(nomefile)
 Do While cella &lt;&gt; Nothing

 linea = &quot;&quot;
 cella = array(k, 0)
 For x = 0 To array.GetUpperBound(0)
 linea = linea &amp; array(k, x) &amp; &quot; ; &quot;
 Next
 writer.WriteLine(linea)
 k = k + 1
 Loop
 writer.Close()
 End Using

 End Sub

End Module
</pre>
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-sexy"><ul class="socials"><li class="sexy-myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://theray.altervista.org/wordpress/programmazione/modulo-per-la-lettura-di-file-csv-in-vb-net/&amp;t=Modulo+per+la+lettura%2Fscrittura+di+file+csv+in+vb.net" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a></li><li class="sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://theray.altervista.org/wordpress/programmazione/modulo-per-la-lettura-di-file-csv-in-vb-net/&amp;t=Modulo+per+la+lettura%2Fscrittura+di+file+csv+in+vb.net" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a></li><li class="sexy-twitter"><a href="http://twitter.com/home?status=Modulo+per+la+lettura%2Fscrittura+di+file+csv+in+vb.net+-+http://tinyurl.com/ygotb56+(via+@theray)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li class="sexy-comfeed"><a href="http://theray.altervista.org/wordpress/programmazione/modulo-per-la-lettura-di-file-csv-in-vb-net/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a></li></ul><div style="clear:both;"></div></div>

<p>No related posts.</p>
<p>Articoli correlati elaborati dal plugin <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://theray.altervista.org/wordpress/programmazione/modulo-per-la-lettura-di-file-csv-in-vb-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CaveRun ha una Grafica!</title>
		<link>http://theray.altervista.org/wordpress/programmazione/caverun-ha-una-grafica/</link>
		<comments>http://theray.altervista.org/wordpress/programmazione/caverun-ha-una-grafica/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 19:10:13 +0000</pubDate>
		<dc:creator>ThE_RaY</dc:creator>
				<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[S60]]></category>
		<category><![CDATA[3rd]]></category>
		<category><![CDATA[accelerometer]]></category>
		<category><![CDATA[accelerometro]]></category>
		<category><![CDATA[CaveRun]]></category>
		<category><![CDATA[developing]]></category>
		<category><![CDATA[fp1]]></category>
		<category><![CDATA[pys60]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://theray.altervista.org/wordpress/?p=121</guid>
		<description><![CDATA[E dopo aver capito per bene come disegnare sui canvas ecco qui la nuova versione di CaveRun. Ovviamente siamo ancora lontani da qualcosa di distribuibile, ma siamo sulòla buona strada!!!


Post this to MySpaceShare this on FacebookTweet This!Subscribe to the comments for this post?

Related posts:CaveRun: Implementato l&#8217;accelerometro Ho implementato l&#8217;accelerometro per tutti i 3rd FP1 grazie [...]


Related posts:<ol><li><a href='http://theray.altervista.org/wordpress/programmazione/caverun-implementato-laccelerometro/' rel='bookmark' title='Permanent Link: CaveRun: Implementato l&#8217;accelerometro'>CaveRun: Implementato l&#8217;accelerometro</a> <small>Ho implementato l&#8217;accelerometro per tutti i 3rd FP1 grazie al...</small></li><li><a href='http://theray.altervista.org/wordpress/programmazione/porting-di-caverun-su-s60/' rel='bookmark' title='Permanent Link: Porting di CaveRun su S60'>Porting di CaveRun su S60</a> <small>Finalmente ho un pò ti tempo per provare a giocare...</small></li></ol>

Articoli correlati elaborati dal plugin <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts</a>.]]></description>
			<content:encoded><![CDATA[<p>E dopo aver capito per bene come disegnare sui canvas ecco qui la nuova versione di CaveRun. Ovviamente siamo ancora lontani da qualcosa di distribuibile, ma siamo sulòla buona strada!!!</p>
<p align="Center">
<object width="324" height="244" ><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.facebook.com/v/1133187535044" /><embed src="http://www.facebook.com/v/1133187535044" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="324" height="244"></embed></object></p>
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-sexy"><ul class="socials"><li class="sexy-myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://theray.altervista.org/wordpress/programmazione/caverun-ha-una-grafica/&amp;t=CaveRun+ha+una+Grafica%21" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a></li><li class="sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://theray.altervista.org/wordpress/programmazione/caverun-ha-una-grafica/&amp;t=CaveRun+ha+una+Grafica%21" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a></li><li class="sexy-twitter"><a href="http://twitter.com/home?status=CaveRun+ha+una+Grafica%21+-+http://tinyurl.com/ye5fz5z+(via+@theray)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li class="sexy-comfeed"><a href="http://theray.altervista.org/wordpress/programmazione/caverun-ha-una-grafica/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a></li></ul><div style="clear:both;"></div></div>

<p>Related posts:<ol><li><a href='http://theray.altervista.org/wordpress/programmazione/caverun-implementato-laccelerometro/' rel='bookmark' title='Permanent Link: CaveRun: Implementato l&#8217;accelerometro'>CaveRun: Implementato l&#8217;accelerometro</a> <small>Ho implementato l&#8217;accelerometro per tutti i 3rd FP1 grazie al...</small></li><li><a href='http://theray.altervista.org/wordpress/programmazione/porting-di-caverun-su-s60/' rel='bookmark' title='Permanent Link: Porting di CaveRun su S60'>Porting di CaveRun su S60</a> <small>Finalmente ho un pò ti tempo per provare a giocare...</small></li></ol></p>
<p>Articoli correlati elaborati dal plugin <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://theray.altervista.org/wordpress/programmazione/caverun-ha-una-grafica/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CaveRun: Implementato l&#8217;accelerometro</title>
		<link>http://theray.altervista.org/wordpress/programmazione/caverun-implementato-laccelerometro/</link>
		<comments>http://theray.altervista.org/wordpress/programmazione/caverun-implementato-laccelerometro/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 16:51:33 +0000</pubDate>
		<dc:creator>ThE_RaY</dc:creator>
				<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[S60]]></category>
		<category><![CDATA[3rd]]></category>
		<category><![CDATA[accelerometer]]></category>
		<category><![CDATA[accelerometro]]></category>
		<category><![CDATA[CaveRun]]></category>
		<category><![CDATA[developing]]></category>
		<category><![CDATA[fp1]]></category>
		<category><![CDATA[pys60]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://theray.altervista.org/wordpress/?p=118</guid>
		<description><![CDATA[Ho implementato l&#8217;accelerometro per tutti i 3rd FP1 grazie al modulo aXYZ. Ho anche fatto una semplice calibrazione prima di partire. Ecco il video!


Post this to MySpaceShare this on FacebookTweet This!Subscribe to the comments for this post?

Related posts:CaveRun ha una Grafica! E dopo aver capito per bene come disegnare sui canvas...Porting di CaveRun su S60 [...]


Related posts:<ol><li><a href='http://theray.altervista.org/wordpress/programmazione/caverun-ha-una-grafica/' rel='bookmark' title='Permanent Link: CaveRun ha una Grafica!'>CaveRun ha una Grafica!</a> <small>E dopo aver capito per bene come disegnare sui canvas...</small></li><li><a href='http://theray.altervista.org/wordpress/programmazione/porting-di-caverun-su-s60/' rel='bookmark' title='Permanent Link: Porting di CaveRun su S60'>Porting di CaveRun su S60</a> <small>Finalmente ho un pò ti tempo per provare a giocare...</small></li></ol>

Articoli correlati elaborati dal plugin <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts</a>.]]></description>
			<content:encoded><![CDATA[<p>Ho implementato l&#8217;accelerometro per tutti i 3rd FP1 grazie al modulo aXYZ. Ho anche fatto una semplice calibrazione prima di partire. Ecco il video!</p>
<p align="Center">
<object width="320" height="240" ><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.facebook.com/v/1131605215487" /><embed src="http://www.facebook.com/v/1131605215487" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="320" height="240"></embed></object></p>
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-sexy"><ul class="socials"><li class="sexy-myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://theray.altervista.org/wordpress/programmazione/caverun-implementato-laccelerometro/&amp;t=CaveRun%3A+Implementato+l%27accelerometro" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a></li><li class="sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://theray.altervista.org/wordpress/programmazione/caverun-implementato-laccelerometro/&amp;t=CaveRun%3A+Implementato+l%27accelerometro" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a></li><li class="sexy-twitter"><a href="http://twitter.com/home?status=CaveRun%3A+Implementato+l%27accelerometro+-+http://tinyurl.com/yexmw7w+(via+@theray)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li class="sexy-comfeed"><a href="http://theray.altervista.org/wordpress/programmazione/caverun-implementato-laccelerometro/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a></li></ul><div style="clear:both;"></div></div>

<p>Related posts:<ol><li><a href='http://theray.altervista.org/wordpress/programmazione/caverun-ha-una-grafica/' rel='bookmark' title='Permanent Link: CaveRun ha una Grafica!'>CaveRun ha una Grafica!</a> <small>E dopo aver capito per bene come disegnare sui canvas...</small></li><li><a href='http://theray.altervista.org/wordpress/programmazione/porting-di-caverun-su-s60/' rel='bookmark' title='Permanent Link: Porting di CaveRun su S60'>Porting di CaveRun su S60</a> <small>Finalmente ho un pò ti tempo per provare a giocare...</small></li></ol></p>
<p>Articoli correlati elaborati dal plugin <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://theray.altervista.org/wordpress/programmazione/caverun-implementato-laccelerometro/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Porting di CaveRun su S60</title>
		<link>http://theray.altervista.org/wordpress/programmazione/porting-di-caverun-su-s60/</link>
		<comments>http://theray.altervista.org/wordpress/programmazione/porting-di-caverun-su-s60/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 11:53:12 +0000</pubDate>
		<dc:creator>ThE_RaY</dc:creator>
				<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[S60]]></category>
		<category><![CDATA[3rd]]></category>
		<category><![CDATA[CaveRun]]></category>
		<category><![CDATA[Edition]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://theray.altervista.org/wordpress/?p=110</guid>
		<description><![CDATA[Finalmente ho un pò ti tempo per provare a giocare con il mio caro N95 8gb  
Oggi in un ora circa ho realizzato la base di un idea che ho in testa da tempo: il porting di CaveRun. In questo semplice gioco lo scopo è quello di condurre una specie di serpente attraverso una [...]


Related posts:<ol><li><a href='http://theray.altervista.org/wordpress/programmazione/caverun-implementato-laccelerometro/' rel='bookmark' title='Permanent Link: CaveRun: Implementato l&#8217;accelerometro'>CaveRun: Implementato l&#8217;accelerometro</a> <small>Ho implementato l&#8217;accelerometro per tutti i 3rd FP1 grazie al...</small></li><li><a href='http://theray.altervista.org/wordpress/programmazione/caverun-ha-una-grafica/' rel='bookmark' title='Permanent Link: CaveRun ha una Grafica!'>CaveRun ha una Grafica!</a> <small>E dopo aver capito per bene come disegnare sui canvas...</small></li></ol>

Articoli correlati elaborati dal plugin <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts</a>.]]></description>
			<content:encoded><![CDATA[<p>Finalmente ho un pò ti tempo per provare a giocare con il mio caro N95 8gb <img src='http://theray.altervista.org/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Oggi in un ora circa ho realizzato la base di un idea che ho in testa da tempo: il porting di CaveRun. In questo semplice gioco lo scopo è quello di condurre una specie di serpente attraverso una grotta 2d evitando tutti gli ostacoli. Il sistema di controllo è molto semplice perchè si gioca con un solo tasto ( in questo caso il tasto centrale) e se premuto il serpente sale, altrimenti scende. Per ora ho realizzato il controllo del serpente ( approsimativo quindi sicuramente lo migliorerò ).</p>
<p align="center"><object width="324" height="244" data="http://www.facebook.com/v/1129450921631" type="application/x-shockwave-flash"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.facebook.com/v/1129450921631" /></object></p>
<p>Il gioco per ora è molto fludio anche se nel video non sembra perchè ho dovuto registrare lo schermo con remote s60 professional e poi catturare la porzione di schermo del pc con Camstasia recorder, quindi ho perso qualche frame per strada <img src='http://theray.altervista.org/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Cosa ne pensate? può andare come progettino per il prossimo periodo xD</p>
<p>Aggiornamento:</p>
<p>Ecco qui il primo semplice ed incompleto algoritmo per la creazione e animazione degli ostacoli!</p>
<p align="center">
<object width="324" height="244" ><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.facebook.com/v/1129461481895" /><embed src="http://www.facebook.com/v/1129461481895" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="324" height="244"></embed></object></p>
<p>Altro aggiornamento:</p>
<p>Ho modificato il codice del serpente per avere un movimento più fluido e scriptato un piccolo algoritmo per la collisione con gli ostacoli&#8230;tutto abbozzato ancora e so già come migliorarlo però purtroppo ora non ho tempo <img src='http://theray.altervista.org/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p align="center">
<object width="324" height="244" ><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.facebook.com/v/1129698447819" /><embed src="http://www.facebook.com/v/1129698447819" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="324" height="244"></embed></object></p>
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-sexy"><ul class="socials"><li class="sexy-myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://theray.altervista.org/wordpress/programmazione/porting-di-caverun-su-s60/&amp;t=Porting+di+CaveRun+su+S60" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a></li><li class="sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://theray.altervista.org/wordpress/programmazione/porting-di-caverun-su-s60/&amp;t=Porting+di+CaveRun+su+S60" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a></li><li class="sexy-twitter"><a href="http://twitter.com/home?status=Porting+di+CaveRun+su+S60+-+http://tinyurl.com/yfbqwad+(via+@theray)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li class="sexy-comfeed"><a href="http://theray.altervista.org/wordpress/programmazione/porting-di-caverun-su-s60/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a></li></ul><div style="clear:both;"></div></div>

<p>Related posts:<ol><li><a href='http://theray.altervista.org/wordpress/programmazione/caverun-implementato-laccelerometro/' rel='bookmark' title='Permanent Link: CaveRun: Implementato l&#8217;accelerometro'>CaveRun: Implementato l&#8217;accelerometro</a> <small>Ho implementato l&#8217;accelerometro per tutti i 3rd FP1 grazie al...</small></li><li><a href='http://theray.altervista.org/wordpress/programmazione/caverun-ha-una-grafica/' rel='bookmark' title='Permanent Link: CaveRun ha una Grafica!'>CaveRun ha una Grafica!</a> <small>E dopo aver capito per bene come disegnare sui canvas...</small></li></ol></p>
<p>Articoli correlati elaborati dal plugin <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://theray.altervista.org/wordpress/programmazione/porting-di-caverun-su-s60/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
