<?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>Yet another Python blog &#187; Uncategorized</title>
	<atom:link href="https://www.tarral.net/?cat=1&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>https://www.tarral.net</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Sat, 02 Jul 2016 18:58:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.39</generator>
	<item>
		<title>Android &#8211; Final project COMP 3617</title>
		<link>https://www.tarral.net/?p=119</link>
		<comments>https://www.tarral.net/?p=119#comments</comments>
		<pubDate>Tue, 28 Jun 2016 03:33:21 +0000</pubDate>
		<dc:creator><![CDATA[nick]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.tarral.net/?p=119</guid>
		<description><![CDATA[COMP 3617 needs to be validated by a  final project, that need to be presented to the class, for the last session. Here is the pitch : Motivation : I like to visit the Georgia straight new paper on my smartphone to check for the latest events and have time to see them. I find [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>COMP 3617 needs to be validated by a  final project, that need to be presented to the class, for the last session.</p>
<p>Here is the pitch :</p>
<p>Motivation :</p>
<p>I like to visit the Georgia straight new paper on my smartphone to check for the latest events and have time to see them.</p>
<p>I find out the website to be a little heavy in order to access the information I just need.</p>
<p>The purpose of this application will be to display the<strong> just</strong> <strong>announced </strong>events which are under the URL :</p>
<p>http:// <a href="http://www.straight.com/listings/events" target="_blank" rel="noreferrer">http://www.straight.com/listings/events</a></p>
<p><a href="http://www.tarral.net/wp-content/uploads/2016/06/georgia.png"><img class="alignnone size-medium wp-image-120" src="http://www.tarral.net/wp-content/uploads/2016/06/georgia-300x259.png" alt="georgia" width="300" height="259" /></a></p>
<p>I can choose to display the Music events  or arts event from the Georgia straight Journal.</p>
<p>Clicking on one of the event shows the details of the show with the Image, the location the date, the price and the full description.</p>
<p>Implementations :</p>
<p>The main activity will display a list View with 2 tab , one tab will display the music events and the other to display the arts events.</p>
<p>It will display those events with the title, the image, and the date.</p>
<p>Clicking on one of the item in the listView , will display a second Activity called EventActivity</p>
<p>EventActivity :</p>
<p>Displaying further details of the event.</p>
<p>Display the picture, the date of the show, the event’s location, the price and also a short description.</p>
<p>There will be options to set up the event on the calendar or to share it by email.</p>
<p>In order to get the information’s from the website I could choose to use the news feeds or to try to GET the webpage and parse the HTML, I find out than the news feeds might not have the <strong>just announced</strong> events.</p>
<p>I will also implement a preference menu to choose to display the images or not in the Main Activity, and also an another CheckBoxPreference to choose to display only the week end events.</p>
<p>Every time the application opens, the Main activity will load the events from the website, which depends on the users Preferences, there will be a refresh button to refresh those events.</p>
<p>Further implementation :</p>
<p>If I have the time I can choose to show the event’s address on a map with a button in the EventActivity.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.tarral.net/?feed=rss2&#038;p=119</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First Game in C</title>
		<link>https://www.tarral.net/?p=29</link>
		<comments>https://www.tarral.net/?p=29#comments</comments>
		<pubDate>Tue, 19 Aug 2014 00:27:03 +0000</pubDate>
		<dc:creator><![CDATA[nick]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.tarral.net/?p=29</guid>
		<description><![CDATA[Hello, i was busy learning about C and making some progress as i did manage to get a Game fully working in C with the SDL library. This is a very short video  of my game working, i did manage to get it working on my linux box with the GCC 4.7.2 and SDL version [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Hello,</p>
<p>i was busy learning about C and making some progress as i did manage to get a Game fully working in C with the SDL library.</p>
<p>This is a very short video  of my game working, i did manage to get it working on my linux box with the GCC 4.7.2 and SDL version 1.2.</p>
<p>but i do not have an exe file for windows for now.</p>
<p><a href="https://www.youtube.com/watch?v=lVhs96_6kdI">Borpion</a></p>
]]></content:encoded>
			<wfw:commentRss>https://www.tarral.net/?feed=rss2&#038;p=29</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dessiner en C</title>
		<link>https://www.tarral.net/?p=17</link>
		<comments>https://www.tarral.net/?p=17#comments</comments>
		<pubDate>Sat, 22 Mar 2014 21:23:11 +0000</pubDate>
		<dc:creator><![CDATA[nick]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.tarral.net/?p=17</guid>
		<description><![CDATA[Voice un petit dessin realiser uniquement avec du code en C Pour informations, il s&#8217;agit de cercle avec differents degrade de gris.]]></description>
				<content:encoded><![CDATA[<p>Voice un petit dessin realiser uniquement avec du code en C</p>
<p><a href="http://www.tarral.net/wp-content/uploads/2014/03/essai.png"><img src="http://www.tarral.net/wp-content/uploads/2014/03/essai-300x225.png" alt="essai" width="300" height="225" class="alignnone size-medium wp-image-18" /></a></p>
<p>Pour informations, il s&#8217;agit de cercle avec differents degrade de gris.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.tarral.net/?feed=rss2&#038;p=17</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>exercice sur les operations binaires.</title>
		<link>https://www.tarral.net/?p=11</link>
		<comments>https://www.tarral.net/?p=11#comments</comments>
		<pubDate>Mon, 27 Jan 2014 20:38:38 +0000</pubDate>
		<dc:creator><![CDATA[nick]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.tarral.net/?p=11</guid>
		<description><![CDATA[voici un exercice tire du livre learning c with K&#38;R 2nd edition il sagit de l&#8217;exercice 2-6 Exercise 2-6. Write a function setbits(x,p,n,y) that returns x with the n bits that begin at position p set to the rightmost n bits of y, leaving the other bits unchanged. voici une solution trouver sur un forum. [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>voici un exercice tire du livre learning c with K&amp;R 2nd edition<br />
il sagit de l&#8217;exercice 2-6</p>
<p>Exercise 2-6. Write a function setbits(x,p,n,y) that returns x with the n bits that begin at position<br />
p set to the rightmost n bits of y, leaving the other bits unchanged.</p>
<p>voici une solution trouver sur un forum.<br />
je vais tenter d&#8217;expliquer le resonnement pour y arriver</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>// Assume x = 10010011 (binary), p = 3 (decimal), n = 2 (decimal), y = 11001010 (binary)<br />
// Also assume rightmost bit (LSB) is position 1.</p>
<p>uint8_t setbits(uint8_t x, uint8_t p, uint8_t n, uint8_t y)<br />
{<br />
uint8_t mask;<br />
uint8_t temp;</p>
<p>mask = ~0; // All bits set (mask = 11111111)<br />
mask &gt;&gt;= 8 &#8211; n; // n bits set in lowest position (mask = 00000011)</p>
<p>temp = y &amp; mask; // set to first n bits of y (temp = 00000010)<br />
temp &lt;&lt;= p &#8211; 1; // set to n bits of y at position p (temp = 00001000)</p>
<p>mask &lt;&lt;= p &#8211; 1; // n bits set at position p (mask = 00001100)</p>
<p>x &amp;= ~mask; // n bits at position p cleared (x = 10010011)<br />
x |= temp; // x set to first n bits of y at position p (x = 10011011)</p>
<p>return x;<br />
}</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>explications :</p>
<p>Il faut mettre le nombre de bit de longeur n venat de y(qui commence a la position p) dans x sans modifier les autres bits.<br />
il faudra donc pour cela utiliser un masque, on l&#8217;apelle temp.</p>
<p>ce masque temp devra donc avoir des valeurs qui seront les seules valeurs a modifier les restantes ne seront pas modifier et garderont leurs valeurs apres l&#8217;operation.</p>
<p>l&#8217;operateur le plus apte a cette mission semble etre le OU (|), car il met a &#8216;1&#8217; les bits qui sont a &#8216;0&#8217; mais pas bit qui sont a &#8216;1&#8217; ou &#8216;0&#8217; vers &#8216;1&#8217; si le temp est a &#8216;0&#8217;.</p>
<p>comment obtenir cette temp.<br />
on sait que les bits a modifier sur ce temp seront a &#8216;1&#8217; les autres seront a &#8216;0&#8217;, il seront aussi a la bonne position.</p>
<p>pour l&#8217;instant mettons en pausse l&#8217;etape precedente nous y reviendront.</p>
<p>il faut dons modifier certains bits de x, donc il va falloir initialiser les bits qui seront modifier.<br />
il faudra un autre masque appelons le MASK.<br />
ce masque devra faire une operation ET (&amp;) entre MASK et X, mettant les valeurs a initialiser ( a &#8216;0&#8217;) dans x a zero, celles qui ne doivent pas etre modifier seront a &#8216;1&#8217; dans le masque MASK ex : 0 &amp; 1 = 0, 0 &amp; 0 = 0.</p>
<p>Donc ce masque MASK doit connaitre la position des bits a modifier, p nous aide dans cette tache, car il indique la position ou commencer a compter les bits n a modifier (en allant ver la droite).</p>
<p>on sait combien de bit ne doivent pas etre modifier 8bits &#8211; n donne le nombre de bit qui ne seont pas modifier.</p>
<p>maintenant MASK connait le nombre de bits a modifier il seront mis tous a droite dans MASK, L&#8217;etape suivante est de les positionner.</p>
<p>(pour cela on utilisera Temp qui connait les bits a modifier et leur positions.)</p>
<p>on utilisera MAK et Y pour avoir les valeurs qui doivent etre apporter a X et seulemtn celles-ci.<br />
un &amp; operateur fera l&#8217;affaire, seulement les positions a calquer de Y seront dans TEMP, si Y =&#8217;0&#8242; il sera mis a &#8216;0&#8217; dans TEMP, si Y = &#8216;1&#8217; il sera tjs a &#8216;1&#8217; dans MASK.</p>
<p>donc TEMP decoulera de Y &amp; MASK.</p>
<p>temp connais maintenant les valeurs a modifier ainsi que leur positions.</p>
<p>et voila.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.tarral.net/?feed=rss2&#038;p=11</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
