<?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>Ramón Berrutti</title>
	<atom:link href="http://ramonberrutti.com/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://ramonberrutti.com</link>
	<description>Mi vida, en un simple blog...</description>
	<lastBuildDate>Sun, 03 Apr 2011 01:44:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Yo por ahora, no me olvido de esto</title>
		<link>http://ramonberrutti.com/index.php/2011/04/yo-por-ahora-no-me-olvido-de-esto/</link>
		<comments>http://ramonberrutti.com/index.php/2011/04/yo-por-ahora-no-me-olvido-de-esto/#comments</comments>
		<pubDate>Sun, 03 Apr 2011 01:44:39 +0000</pubDate>
		<dc:creator>ramon</dc:creator>
				<category><![CDATA[Otra]]></category>

		<guid isPermaLink="false">http://ramonberrutti.com/?p=79</guid>
		<description><![CDATA[jaaaa, el blog sigue on como siempre. Pero con una decaída inlevantable creo. Por ahora voy a hacer todo lo posible por empezar a sacar de la galera temas para poner. Ahora voy arrancar un nuevo proyecto del cual tengo pensado poner un reporte diario. Saludos, y pásense dentro de un mes.]]></description>
			<content:encoded><![CDATA[<p>jaaaa, el blog sigue on como siempre. Pero con una decaída inlevantable creo.<br />
Por ahora voy a hacer todo lo posible por empezar a sacar de la galera temas para poner.</p>
<p>Ahora voy arrancar un nuevo proyecto del cual tengo pensado poner un reporte diario.</p>
<p>Saludos, y pásense dentro de un mes.</p>
]]></content:encoded>
			<wfw:commentRss>http://ramonberrutti.com/index.php/2011/04/yo-por-ahora-no-me-olvido-de-esto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Volvemos volvemos</title>
		<link>http://ramonberrutti.com/index.php/2011/03/volvemos-volvemos/</link>
		<comments>http://ramonberrutti.com/index.php/2011/03/volvemos-volvemos/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 03:03:06 +0000</pubDate>
		<dc:creator>ramon</dc:creator>
				<category><![CDATA[Otra]]></category>

		<guid isPermaLink="false">http://ramonberrutti.com/?p=66</guid>
		<description><![CDATA[como no había nada nuevo estaba caliente. No tengo tiempo para escribir mucho en el blog, pero si en el twitter, jaaaa]]></description>
			<content:encoded><![CDATA[<p>como no había nada nuevo estaba caliente. No tengo tiempo para escribir mucho en el blog, pero si en el twitter, jaaaa</p>
]]></content:encoded>
			<wfw:commentRss>http://ramonberrutti.com/index.php/2011/03/volvemos-volvemos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>a este flaco le dan mas de 500 puntos por cortar el pasto</title>
		<link>http://ramonberrutti.com/index.php/2011/02/a-este-flaco-le-dan-mas-de-500-puntos-por-cortar-el-pasto/</link>
		<comments>http://ramonberrutti.com/index.php/2011/02/a-este-flaco-le-dan-mas-de-500-puntos-por-cortar-el-pasto/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 03:12:21 +0000</pubDate>
		<dc:creator>ramon</dc:creator>
				<category><![CDATA[Otra]]></category>

		<guid isPermaLink="false">http://ramonberrutti.com/?p=75</guid>
		<description><![CDATA[esto es muy loco, a un loco en Taringa le por ahora, en el momento que cree la entrada del blog le dieron mas de 570 puntos. Lo mas gracioso, son las fotos. Esto es mucho pasto? Para un poco&#8230; en mi patio crece así, si no lo corto en 15 días nada mas. En [...]]]></description>
			<content:encoded><![CDATA[<p>esto es muy loco, a un loco en Taringa le por ahora, en el momento que cree la entrada del blog le dieron mas de 570 puntos.</p>
<p>Lo mas gracioso, son las fotos.<br />
<img src="http://a6.sphotos.ak.fbcdn.net/hphotos-ak-snc3/22256_227628227225_592747225_3011972_2635584_n.jpg" alt="" /><br />
<img src="http://velatele.com/wp-content/uploads/2010/03/cantinflas.jpg" alt="" /></p>
<p>Esto es mucho pasto? Para un poco&#8230;<br />
<img src="http://a6.sphotos.ak.fbcdn.net/hphotos-ak-snc3/22256_227612422225_592747225_3011882_6963500_n.jpg" alt="" /><br />
en mi patio crece así, si no lo corto en 15 días nada mas.</p>
<p>En fin, lo mas gracioso fue que le hagan un Top, por que corto el pasto&#8230; Esto fomenta la ridiculez.</p>
<p> <img src='http://ramonberrutti.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://ramonberrutti.com/index.php/2011/02/a-este-flaco-le-dan-mas-de-500-puntos-por-cortar-el-pasto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sigo escribiendo</title>
		<link>http://ramonberrutti.com/index.php/2011/02/sigo-escribiendo/</link>
		<comments>http://ramonberrutti.com/index.php/2011/02/sigo-escribiendo/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 02:54:47 +0000</pubDate>
		<dc:creator>ramon</dc:creator>
				<category><![CDATA[Otra]]></category>

		<guid isPermaLink="false">http://ramonberrutti.com/?p=68</guid>
		<description><![CDATA[La cosa es así, estoy escribiendo un par de tutoriales para el blog, muchos ya están las entradas guardadas como borrador, pero tengo que acomodarlas un poco así queda lindas, con imágenes y bien explicadas para que el blog no se valla a la deriva. Estoy utilizando mucho los colares, la negrita y las listas [...]]]></description>
			<content:encoded><![CDATA[<p>La cosa es así, estoy escribiendo un par de tutoriales para el blog, muchos ya están las entradas guardadas como borrador, pero tengo que acomodarlas un poco así queda lindas, con imágenes y bien explicadas para que el blog no se valla a la deriva. Estoy utilizando mucho los colares, la negrita y las listas así queda todo prolijo y comprensible.<br />
Bueno, para despedir los dejo con uno de los momentos mas recordados en el mundo de informática:<br />
<center><object width="400" height="325"><param name="movie" value="http://www.youtube.com/v/TGLhuF3L48U"></param><embed src="http://www.youtube.com/v/TGLhuF3L48U" type="application/x-shockwave-flash" width="400" height="325"></embed></object></center><br />
&nbsp;</p>
<p>Saludos&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://ramonberrutti.com/index.php/2011/02/sigo-escribiendo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adentro!!</title>
		<link>http://ramonberrutti.com/index.php/2011/02/adentro/</link>
		<comments>http://ramonberrutti.com/index.php/2011/02/adentro/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 16:56:34 +0000</pubDate>
		<dc:creator>ramon</dc:creator>
				<category><![CDATA[Otra]]></category>

		<guid isPermaLink="false">http://ramonberrutti.com/?p=50</guid>
		<description><![CDATA[Bueno gente, ya estoy dentro de la facultad, nadie me puede sacar!! Les dejo alto vídeo de paso: Saludos&#8230;]]></description>
			<content:encoded><![CDATA[<p>Bueno gente, ya estoy dentro de la facultad, nadie me puede sacar!!</p>
<p>Les dejo alto vídeo de paso:<br />
<object width="400" height="325"><param name="movie" value="http://www.youtube.com/v/JHUuqsSCn5g"></param><embed src="http://www.youtube.com/v/JHUuqsSCn5g" type="application/x-shockwave-flash" width="400" height="325"></embed></object></p>
<p>Saludos&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://ramonberrutti.com/index.php/2011/02/adentro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Un Alivio para mi Vida :D</title>
		<link>http://ramonberrutti.com/index.php/2011/02/un-alivio-para-mi-vida-d/</link>
		<comments>http://ramonberrutti.com/index.php/2011/02/un-alivio-para-mi-vida-d/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 19:21:24 +0000</pubDate>
		<dc:creator>ramon</dc:creator>
				<category><![CDATA[Otra]]></category>

		<guid isPermaLink="false">http://ramonberrutti.com/?p=46</guid>
		<description><![CDATA[Si leyeron la entrada anterior se habran dado cuenta que tenia que rendir un examen para el ingreso a la facultad. Hoy me entregaron la nota, un 88: Pensé que seria el examen mas difícil de aprobar, pero por suerte no fue asi. Ahora solo me queda aprobar &#8220;Trigonometría&#8221; con mas de un 40/100 y [...]]]></description>
			<content:encoded><![CDATA[<p>Si leyeron la entrada anterior se habran dado cuenta que tenia que rendir un examen para el ingreso a la facultad. Hoy me entregaron la nota, un 88:<br />
<a href="http://ramonberrutti.com/wp-content/uploads/2011/02/descarga.jpg"><img src="http://ramonberrutti.com/wp-content/uploads/2011/02/descarga.jpg" alt="" title="descarga" width="604" height="453" class="alignnone size-full wp-image-47" /></a></p>
<p>Pensé que seria el examen mas difícil de aprobar, pero por suerte no fue asi.<br />
Ahora solo me queda aprobar &#8220;Trigonometría&#8221; con mas de un 40/100 y por fin seré estudiante de Ingeniería Electrónica.</p>
<p>Si todo sale bien, el 2 de Marzo&#8230;&#8230; &#8220;Matemática A&#8221; <img src='http://ramonberrutti.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://ramonberrutti.com/index.php/2011/02/un-alivio-para-mi-vida-d/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mañana el Tercer Examen</title>
		<link>http://ramonberrutti.com/index.php/2011/02/manana-el-tercer-examen/</link>
		<comments>http://ramonberrutti.com/index.php/2011/02/manana-el-tercer-examen/#comments</comments>
		<pubDate>Mon, 14 Feb 2011 00:26:24 +0000</pubDate>
		<dc:creator>ramon</dc:creator>
				<category><![CDATA[Otra]]></category>

		<guid isPermaLink="false">http://ramonberrutti.com/?p=44</guid>
		<description><![CDATA[Mañana, si, mañana lunes 14 tengo el tercer examen del ingreso de Ingeniería en la Universidad Nacional de La Plata. Espero poder rendir bien, el tema es ecuaciones. Es uno de los que mas se me complico y menos fe me tengo, pero bueno, no hay que desconfiarse plenamente, siempre alguna posibilidad hay. Aprobando con [...]]]></description>
			<content:encoded><![CDATA[<p>Mañana, si, mañana lunes 14 tengo el tercer examen del ingreso de Ingeniería en la Universidad Nacional de La Plata.<br />
Espero poder rendir bien, el tema es ecuaciones. Es uno de los que mas se me complico y menos fe me tengo, pero bueno, no hay que desconfiarse plenamente, siempre alguna posibilidad hay. Aprobando con mas de 40 ya me voy a sentir un poco mas confiado para el ultimo tema que es Trigonometría que parece complicado, pero no creo. </p>
<p>Ahora me voy a ir a comer y dormir tempranito así mañana me levanto a repasar un poco las ecuaciones canónicas, tema principal del examen.</p>
<p>El miércoles pongo el resultado.</p>
]]></content:encoded>
			<wfw:commentRss>http://ramonberrutti.com/index.php/2011/02/manana-el-tercer-examen/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hoy nacia Julio Verne</title>
		<link>http://ramonberrutti.com/index.php/2011/02/hoy-nacia-julio-verne/</link>
		<comments>http://ramonberrutti.com/index.php/2011/02/hoy-nacia-julio-verne/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 21:24:51 +0000</pubDate>
		<dc:creator>ramon</dc:creator>
				<category><![CDATA[Otra]]></category>

		<guid isPermaLink="false">http://ramonberrutti.com/?p=3</guid>
		<description><![CDATA[Quien no lleyo &#8220;Veinte mil leguas de viaje submarino&#8221; o &#8220;La vuelta al mundo en ochenta días&#8221;? Bueno estas exelentes novelas fueron creadas por Julio Verne, quien hoy cumpliria años, si muchos muchos]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="http://upload.wikimedia.org/wikipedia/commons/thumb/b/b6/Jules_Verne.jpg/200px-Jules_Verne.jpg" title="Julio Verne" class="alignnone" width="200" height="279" /></p>
<p>Quien no lleyo &#8220;Veinte mil leguas de viaje submarino&#8221; o &#8220;La vuelta al mundo en ochenta días&#8221;? Bueno estas exelentes novelas fueron creadas por Julio Verne, quien hoy cumpliria años, si muchos muchos <img src='http://ramonberrutti.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://ramonberrutti.com/index.php/2011/02/hoy-nacia-julio-verne/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Algoritmo de Permutaciones</title>
		<link>http://ramonberrutti.com/index.php/2011/02/algoritmo-de-permutaciones/</link>
		<comments>http://ramonberrutti.com/index.php/2011/02/algoritmo-de-permutaciones/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 00:50:06 +0000</pubDate>
		<dc:creator>ramon</dc:creator>
				<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://www.ramonberrutti.com/?p=16</guid>
		<description><![CDATA[Aca LINK un usuario pidio lo siguiente: [AYUDA]Para hacer un programa en c++ &#160; Hola a todos, veran, tengo que hacer un programa que haga permutaciones dado un numero , es decir, si ingreso el numero 3 me tendria que mostrar algo como esto: 123 132 213 231 312 321 y asi con cualquier numero [...]]]></description>
			<content:encoded><![CDATA[<p>Aca <a href="http://www.taringa.net/comunidades/programadores/1821991/%5BAYUDA%5DPara-hacer-un-programa-en-c++.html">LINK</a> un usuario pidio lo siguiente:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[AYUDA]Para hacer un programa en c++
&nbsp;
Hola a todos, veran, tengo que hacer un programa que haga permutaciones
dado un numero , es decir, si ingreso el numero 3 me tendria que mostrar algo como esto:
123
132
213
231
312
321
y asi con cualquier numero que le introdusca.
alguna idea de como hacer ese programa sin funciones complicadas?
espero me ayuden.grasias de antemano</pre></div></div>

<p>entonces agarre y en un par de minutos pude lograrlo.<br />
Dandome como resultado este codigo:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
</pre></td><td class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #666666;">// Ramón Berrutti ( http://www.ramonberrutti.com )</span>
<span style="color: #666666;">// main.cpp</span>
<span style="color: #339900;">#include &lt;stdio.h&gt;</span>
<span style="color: #339900;">#include &lt;stdlib.h&gt;</span>
<span style="color: #339900;">#include &lt;string.h&gt;</span>
<span style="color: #339900;">#include &lt;math.h&gt;</span>
&nbsp;
<span style="color: #0000ff;">void</span> element_swap<span style="color: #008000;">&#40;</span> <span style="color: #0000ff;">char</span> <span style="color: #000040;">*</span>buffer, <span style="color: #0000ff;">size_t</span> a, <span style="color: #0000ff;">size_t</span> b <span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
&nbsp;
<span style="color: #0000ff;">int</span> main<span style="color: #008000;">&#40;</span> <span style="color: #0000ff;">int</span> argc, <span style="color: #0000ff;">char</span> <span style="color: #000040;">*</span>argv<span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span> <span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
	<span style="color: #0000ff;">char</span> <span style="color: #000040;">*</span>buffer<span style="color: #008080;">;</span>
&nbsp;
	<span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span> argc <span style="color: #000080;">&lt;</span> <span style="color: #0000dd;">2</span> <span style="color: #008000;">&#41;</span>
	<span style="color: #008000;">&#123;</span>
		<span style="color: #0000dd;">printf</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">&quot;Uso:<span style="color: #000099; font-weight: bold;">\n</span>%s &lt;numero&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>, argv<span style="color: #008000;">&#91;</span><span style="color: #0000dd;">0</span><span style="color: #008000;">&#93;</span> <span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
		<span style="color: #0000ff;">return</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
	<span style="color: #008000;">&#125;</span>
&nbsp;
	<span style="color: #0000ff;">size_t</span> len <span style="color: #000080;">=</span> <span style="color: #0000dd;">strlen</span><span style="color: #008000;">&#40;</span> argv<span style="color: #008000;">&#91;</span><span style="color: #0000dd;">1</span><span style="color: #008000;">&#93;</span> <span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
	buffer <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">char</span><span style="color: #000040;">*</span><span style="color: #008000;">&#41;</span><span style="color: #0000dd;">malloc</span><span style="color: #008000;">&#40;</span> len <span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
	<span style="color: #0000dd;">strcpy</span><span style="color: #008000;">&#40;</span>buffer, argv<span style="color: #008000;">&#91;</span><span style="color: #0000dd;">1</span><span style="color: #008000;">&#93;</span> <span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
&nbsp;
	<span style="color: #0000ff;">size_t</span> opciones <span style="color: #000080;">=</span> <span style="color: #0000dd;">1</span><span style="color: #008080;">;</span>
	<span style="color: #0000ff;">for</span><span style="color: #008000;">&#40;</span> <span style="color: #0000ff;">size_t</span> i <span style="color: #000080;">=</span> <span style="color: #0000dd;">1</span><span style="color: #008080;">;</span> i <span style="color: #000080;">&lt;=</span> len <span style="color: #008080;">;</span> i<span style="color: #000040;">++</span> <span style="color: #008000;">&#41;</span>
	<span style="color: #008000;">&#123;</span>
		opciones <span style="color: #000040;">*</span><span style="color: #000080;">=</span> i<span style="color: #008080;">;</span>
	<span style="color: #008000;">&#125;</span>
&nbsp;
	<span style="color: #0000dd;">printf</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">&quot;Mostrando las %d Opciones:<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>, opciones <span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
	<span style="color: #0000ff;">for</span><span style="color: #008000;">&#40;</span> <span style="color: #0000ff;">size_t</span> i <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span> i <span style="color: #000080;">&lt;</span> opciones <span style="color: #008080;">;</span> i<span style="color: #000040;">++</span> <span style="color: #008000;">&#41;</span>
	<span style="color: #008000;">&#123;</span>
		<span style="color: #0000dd;">printf</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">&quot;%s<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>, buffer <span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
		element_swap<span style="color: #008000;">&#40;</span>buffer, i <span style="color: #000040;">%</span> <span style="color: #008000;">&#40;</span>len<span style="color: #000040;">-</span><span style="color: #0000dd;">1</span><span style="color: #008000;">&#41;</span>, len <span style="color: #000040;">-</span> <span style="color: #0000dd;">1</span> <span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
	<span style="color: #008000;">&#125;</span>
&nbsp;
	<span style="color: #0000dd;">free</span><span style="color: #008000;">&#40;</span> buffer <span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
	<span style="color: #0000ff;">return</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
<span style="color: #008000;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #0000ff;">void</span> element_swap<span style="color: #008000;">&#40;</span> <span style="color: #0000ff;">char</span> <span style="color: #000040;">*</span>buffer, <span style="color: #0000ff;">size_t</span> a, <span style="color: #0000ff;">size_t</span> b <span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
	<span style="color: #0000ff;">char</span> temp <span style="color: #000080;">=</span> buffer<span style="color: #008000;">&#91;</span> a <span style="color: #008000;">&#93;</span><span style="color: #008080;">;</span>
	buffer<span style="color: #008000;">&#91;</span> a <span style="color: #008000;">&#93;</span> <span style="color: #000080;">=</span> buffer<span style="color: #008000;">&#91;</span> b <span style="color: #008000;">&#93;</span><span style="color: #008080;">;</span>
	buffer<span style="color: #008000;">&#91;</span> b <span style="color: #008000;">&#93;</span> <span style="color: #000080;">=</span> temp<span style="color: #008080;">;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<p>Cualquier inconveniente, dejen un comentario.</p>
]]></content:encoded>
			<wfw:commentRss>http://ramonberrutti.com/index.php/2011/02/algoritmo-de-permutaciones/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[BB] Aplicación Simple Con un Menu</title>
		<link>http://ramonberrutti.com/index.php/2011/02/bb-aplicacion-simple-con-un-menu/</link>
		<comments>http://ramonberrutti.com/index.php/2011/02/bb-aplicacion-simple-con-un-menu/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 23:15:02 +0000</pubDate>
		<dc:creator>ramon</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.ramonberrutti.com/?p=8</guid>
		<description><![CDATA[Una aplicación muy, pero muy simple en la cual crea un menu y una opcion. y el evento muestra un Mensaje. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 [...]]]></description>
			<content:encoded><![CDATA[<p>Una aplicación muy, pero muy simple en la cual crea un menu y una opcion. y el evento muestra un Mensaje.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">net.rim.device.api.ui.MenuItem</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">net.rim.device.api.ui.UiApplication</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">net.rim.device.api.ui.component.Dialog</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">net.rim.device.api.ui.component.RichTextField</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">net.rim.device.api.ui.container.MainScreen</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Main Class</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> FirstApp <span style="color: #000000; font-weight: bold;">extends</span> UiApplication
<span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">//Globals || Globales</span>
	<span style="color: #000000; font-weight: bold;">private</span> RichTextField g_Output<span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">//Constructor || Constructor</span>
	<span style="color: #000000; font-weight: bold;">public</span> FirstApp<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">//Create the Screen || Creamos la pantalla.</span>
		pushScreen<span style="color: #009900;">&#40;</span> <span style="color: #000000; font-weight: bold;">new</span> FirstAppScreen<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">//Start Function || Funcion donde Arranca la Aplicación</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">new</span> FirstApp<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">enterEventDispatcher</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">//Class where process all the GUI Thread</span>
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">class</span> FirstAppScreen <span style="color: #000000; font-weight: bold;">extends</span> MainScreen
	<span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">//Constructor || Constructor</span>
	    FirstAppScreen<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	    <span style="color: #009900;">&#123;</span>
	    	<span style="color: #666666; font-style: italic;">//We add the menu Variable</span>
	    	addMenuItem<span style="color: #009900;">&#40;</span> _hola <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	    	<span style="color: #666666; font-style: italic;">//Set Title || Seteamos un titulo para nuestra Aplicacion</span>
	        setTitle<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;FirstApp&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	        <span style="color: #666666; font-style: italic;">//We Create a RichTextField to set the Debug's Messages.</span>
	        g_Output <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> RichTextField<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	        add<span style="color: #009900;">&#40;</span> g_Output <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	    <span style="color: #009900;">&#125;</span>
&nbsp;
	    <span style="color: #666666; font-style: italic;">//This is a Special function of the MenuItem</span>
	    <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #003399;">MenuItem</span> _hola <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">MenuItem</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;Seleccioname!!&quot;</span> , <span style="color: #cc66cc;">10</span>, <span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span>
	    <span style="color: #009900;">&#123;</span>
	    	<span style="color: #666666; font-style: italic;">//Run is called then I select this item on menu.</span>
	    	<span style="color: #666666; font-style: italic;">//Esta funcion es llamada cuando se selecciona la opcion del menu.</span>
	    	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> run<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	    	<span style="color: #009900;">&#123;</span>
	    		<span style="color: #666666; font-style: italic;">//Show the Debug Message. || Mostramos el mensaje.</span>
	    		message<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Debug: Se apreto: &quot;</span> <span style="color: #339933;">+</span> _hola.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	    	<span style="color: #009900;">&#125;</span>
	    <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
	    <span style="color: #666666; font-style: italic;">//a esto no le des bola.. xD</span>
	    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">boolean</span> onSavePrompt<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	    <span style="color: #009900;">&#123;</span>
	    	<span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">true</span><span style="color: #339933;">;</span>
	    <span style="color: #009900;">&#125;</span>
&nbsp;
	    <span style="color: #666666; font-style: italic;">//Overwrite function. that is called when the App need to close.</span>
	    <span style="color: #666666; font-style: italic;">//Funcion sobre escrita, es llamada cuando se quiere cerrar la aplicacion.</span>
	    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> close<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	    <span style="color: #009900;">&#123;</span>
	    	<span style="color: #666666; font-style: italic;">//Show a Dialog || mostramos un dialogo antes de cerrar</span>
	        <span style="color: #003399;">Dialog</span>.<span style="color: #006633;">alert</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;Chau Reymon!&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	        <span style="color: #666666; font-style: italic;">//Call the MainScreen close</span>
	        <span style="color: #666666; font-style: italic;">//Como sobre escribimos la funcion, necesitamos llamar a la funcion base.</span>
	        <span style="color: #000000; font-weight: bold;">super</span>.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	    <span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">//A Simple function to make it more easy the Debug's Messages.</span>
	<span style="color: #666666; font-style: italic;">//Una simple funcion para ayudarnos a Debugear(xD) la Aplicacion.</span>
    <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> message<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">final</span> <span style="color: #003399;">String</span> msg<span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        invokeLater<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Runnable</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> run<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
            <span style="color: #009900;">&#123;</span>
            	<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> g_Output.<span style="color: #006633;">getTextLength</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #cc66cc;">0</span> <span style="color: #009900;">&#41;</span>
            	<span style="color: #009900;">&#123;</span>
            		g_Output.<span style="color: #006633;">setText</span><span style="color: #009900;">&#40;</span>g_Output.<span style="color: #006633;">getText</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">+</span> msg<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            	<span style="color: #009900;">&#125;</span>
            	<span style="color: #000000; font-weight: bold;">else</span>
            	<span style="color: #009900;">&#123;</span>
            		g_Output.<span style="color: #006633;">setText</span><span style="color: #009900;">&#40;</span> msg <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            	<span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Don't forget the ;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Deja un Comentario por Ayuda.</p>
]]></content:encoded>
			<wfw:commentRss>http://ramonberrutti.com/index.php/2011/02/bb-aplicacion-simple-con-un-menu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

