<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>constructor &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/constructor/</link>
	<description>Feed of posts on WordPress.com tagged "constructor"</description>
	<pubDate>Wed, 25 Nov 2009 22:05:32 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Finantare de 20 de milioane de euro castigata de Consiliul Judetean  Hunedoara]]></title>
<link>http://sensioro.wordpress.com/2009/11/25/finantare-de-20-de-milioane-de-euro-castigata-de-consiliul-judetean-hunedoara/</link>
<pubDate>Wed, 25 Nov 2009 19:23:29 +0000</pubDate>
<dc:creator>Monica</dc:creator>
<guid>http://sensioro.wordpress.com/2009/11/25/finantare-de-20-de-milioane-de-euro-castigata-de-consiliul-judetean-hunedoara/</guid>
<description><![CDATA[Consiliul Judetean Hunedoara a castigat, marti, o finantare nerambursabila in valoare de 20,5 milioa]]></description>
<content:encoded><![CDATA[Consiliul Judetean Hunedoara a castigat, marti, o finantare nerambursabila in valoare de 20,5 milioa]]></content:encoded>
</item>
<item>
<title><![CDATA[Use photographs to adorn your laptop]]></title>
<link>http://nickdiscovers.wordpress.com/2009/11/20/use-photographs-to-adorn-your-laptop/</link>
<pubDate>Fri, 20 Nov 2009 06:47:08 +0000</pubDate>
<dc:creator>nicholasbarry</dc:creator>
<guid>http://nickdiscovers.wordpress.com/2009/11/20/use-photographs-to-adorn-your-laptop/</guid>
<description><![CDATA[This work (my description and pictures of my contraption here) is in the Public Domain.  That means ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><em>This work (my description and pictures of my contraption <a rel="license" href="http://creativecommons.org/licenses/publicdomain/"><img class="alignleft" src="http://i.creativecommons.org/l/publicdomain/88x31.png" alt="Creative Commons License" width="88" height="31" /></a>here) is in the <a rel="license" href="http://creativecommons.org/licenses/publicdomain/">Public Domain</a>.  That means you can use it however you like &#8211; I&#8217;m sharing it!</em></p>
<p>What do you do with your physical photographs in the Facebook age?  It&#8217;s a real problem for me, because on the one hand I <em>almost never</em> look through the photo albums of physical photos sitting on my self.  Probably no more than once every six months or so, and usually then I spend no more than five minutes at it.</p>
<p>But on the other hand, I can hardly stand to throw them all out.  I&#8217;ve scanned all them, but still hate to just throw them all away.</p>
<p>So I decided to throw together a &#8220;photo holder&#8221; for the lid of my laptop, using duct tape and cardstock.  This way I can enjoy a photo for a week, swap it out for another at the end of the week, and feel comfortable about throwing it out because I&#8217;ve enjoyed it for a week.  It also creates a conversation topic, and spruces up my otherwise-plain laptop some.</p>
<p>This is a project you can do in about 5 minutes, for no cost if you have the materials lying around.</p>
<p>Here are the photos of the project:</p>
<div id="attachment_65" class="wp-caption aligncenter" style="width: 310px"><a href="http://nickdiscovers.wordpress.com/files/2009/11/laptop-photo-holder-1.jpg"><img class="size-medium wp-image-65" title="Laptop photo holder materials" src="http://nickdiscovers.wordpress.com/files/2009/11/laptop-photo-holder-1.jpg?w=300" alt="" width="300" height="225" /></a><p class="wp-caption-text">This is all you need - duct tape, cardstock, scissors, and a photo</p></div>
<div id="attachment_66" class="wp-caption aligncenter" style="width: 310px"><a href="http://nickdiscovers.wordpress.com/files/2009/11/laptop-photo-holder-2.jpg"><img class="size-medium wp-image-66" title="Laptop photo holder 2" src="http://nickdiscovers.wordpress.com/files/2009/11/laptop-photo-holder-2.jpg?w=300" alt="" width="300" height="225" /></a><p class="wp-caption-text">Cut triangles from the cardstock</p></div>
<div id="attachment_67" class="wp-caption aligncenter" style="width: 310px"><a href="http://nickdiscovers.wordpress.com/files/2009/11/laptop-photo-holder-3.jpg"><img class="size-medium wp-image-67" title="Laptop photo holder 3" src="http://nickdiscovers.wordpress.com/files/2009/11/laptop-photo-holder-3.jpg?w=300" alt="" width="300" height="225" /></a><p class="wp-caption-text">Use the photograph itself to space the cardstock corners correctly, and tape the cardstock to the laptop</p></div>
<div id="attachment_68" class="wp-caption aligncenter" style="width: 310px"><a href="http://nickdiscovers.wordpress.com/files/2009/11/laptop-photo-holder-4.jpg"><img class="size-medium wp-image-68" title="Laptop photo holder 4" src="http://nickdiscovers.wordpress.com/files/2009/11/laptop-photo-holder-4.jpg?w=300" alt="" width="300" height="225" /></a><p class="wp-caption-text">The photo slips in pretty easily. I gave my holder a tilt to make it more dynamic.</p></div>
<p>In case you were wondering, the photo in the laptop photo holder is of my friends and I goofing off after giving out free milk and cookies around Finals time at UC Davis when we were students there.</p>
<p>Let me know if you have other creative ways of using old photographs!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[JavaScript: Vererbung]]></title>
<link>http://bletra.wordpress.com/2009/11/17/javascript-vererbung/</link>
<pubDate>Tue, 17 Nov 2009 08:23:23 +0000</pubDate>
<dc:creator>bletra</dc:creator>
<guid>http://bletra.wordpress.com/2009/11/17/javascript-vererbung/</guid>
<description><![CDATA[JavaScript ist eine funktionale Sprache, es gibt aber auch Objekte und eine Art Vererbung &#8211; di]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>JavaScript ist eine funktionale Sprache, es gibt aber auch Objekte und eine Art Vererbung &#8211; die Programmiererin muss selbst darauf achten, gewisse Dinge einzuhalten oder sich entsprechende Hilfsfunktionen definieren oder noch besser, gleich ein geeignetes Framework einsetzen. Hier möchte ich auf die einfachste Vererbung in JavaScript eingehen &#8211; Frameworks kommen später <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Im einfachsten Fall habe ich also eine Objektschablone Animal und eine davon erbende Objektschablone Dug.</p>
<pre class="brush: jscript;">
function Animal(name, outputId) {
  /* public */
  this.Name = name;
  this.OutputNode = document.getElementById(outputId);
}
function Dug(name, outputId) {
...
}
Dug.prototype = new Animal();
</pre>
<p>Durch die außerhalb der Vorlage Dug angegebene Anweisung Dug.prototype = new Animal(); findet die Vererbung statt. Genauer gesagt erhält die Objektschablone Dug einen Link auf die Objektschablone Animal. Der Konstruktor, d.h. die Funktion Animal wird damit ausgeführt und Dug hat die öffentlichen Eigenschaften Name und OutputNode. Ich sehe in diesem Ansatz folgende Nachteile:</p>
<ul>
<li>Die Parameter name, outputId können nicht direkt an den Konstruktor der Superklasse Animal übergeben werden.</li>
<li>Prinzipiell kann jede von außen die Schablone Dug oder Animal verändern. Dies kann auch für einzelne Instanzen erfolgen:
<ul>
<li>var donald = new Dug(); donald.Hello = function() {alert(&#8216;Hello&#8217;);} //nur die Instanz donald kennt Hello</li>
<li>Dug.prototype.Fly = &#8220;Ich fliege&#8221;; //alle Instanzen von Dug haben nun die Eigenschaft Fly</li>
</ul>
</li>
</ul>
<p>Am zweiten Problem kann man nichts ändern, dies ist &#8220;by Design&#8221;, also so gewollt. Für das Konstruktorproblem gibt es zwei Ansätze:</p>
<ol>
<li>Einführung einer öffentlichen Eigenschaft, die auf die Superklasse zeigt.</li>
<li>Verwendung von .constructor</li>
</ol>
<p>Für beide Varianten, auch wenn Variante 1 vielleicht anderes suggeriert,  bleibt die Anweisung außerhalb der Objektschablonen<br />
Dug.prototype = new Animal();  zur Definition der Vererbung notwendig.</p>
<p>Variante 1:</p>
<pre class="brush: jscript;">
&#60;pre&#62;function Dug(name, outputId) {
  this.base = Animal; //Zeiger auf Definition Animal, base ist ein frei wählbarer Bezeichner
  this.base(name, outputId);
...
</pre>
<p>Ich muss also zweimal definieren, dass Animal meine Superklasse sein soll, hm.</p>
<p>Variante 2:</p>
<pre class="brush: jscript;">
function Dug(name, outputId) {
  this.constructor(name, outputId);
...
</pre>
<p>Eigentlich ziemlich genau, was ich möchte, wenn auch nicht unbedingt intuitiv. ABER, wenn ich nun vergesse, mit Dug.prototype = new Animal(); die Vererbung zu deklarieren, dann wird nicht, wie ich es vermutet hätte, der Konstruktor von Object ausgeführt, sondern der tatsächliche Konstruktor, nämlich Dug. Man landet dann in einer Endlosschleife. Warum? Für jede Objektschablone, erzeugt JavaScript, per default, folgende Definition:</p>
<pre class="brush: jscript;">
  Dug.prototype = new Object();
  Dug.prototype.constructor = Dug; //alle Instanzen von Dug haben nun die Eigenschaft .constructor = Dug!
</pre>
<p>Erst das Überschreiben von prototype überschreibt auch den Konstruktor entsprechend.</p>
<h2>Fazit</h2>
<p>Es gibt Vererbung in JavaScript. Wenn ich jedoch tatsächlich mehrere von einander erbender Objekte brauche, dann werde ich Hilfsfunktionen wie bei <a title="Mootools Framework" href="http://mootools.net/" target="_blank">MooTools</a> oder anderen implementieren, die mir die Fehlerwahrscheinlichkeit reduzieren. Zu MooTools gibt es eine gute <a title="Mootools Einführung" href="http://www.peterkroener.de/neue-artikelserie-mootools-fuer-die-massen-teil-1-mootools-im-ueberblick/" target="_blank">Einführung von Peter Kröner</a>. Es lohnt sich auch, den Quellcode von MooTools anzusehen!!!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Explicit keyword in c++]]></title>
<link>http://gotechgeek.wordpress.com/2009/11/11/explicit-keyword-in-c/</link>
<pubDate>Wed, 11 Nov 2009 19:42:45 +0000</pubDate>
<dc:creator>niraj2820</dc:creator>
<guid>http://gotechgeek.wordpress.com/2009/11/11/explicit-keyword-in-c/</guid>
<description><![CDATA[Explicit keyword is used in c++ one parameter constructors generally to preserve the semantic meanin]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Explicit keyword is used in c++ one parameter constructors generally to preserve the semantic meaning of the program.</p>
<p>Conside the example :</p>
<p>class object{</p>
<p>private:</p>
<p>int val;</p>
<p>public:</p>
<p>object (int value) { val = value;}</p>
<p>int read() const { return val;}</p>
<p>void write(int value) {val = value;}</p>
<p>};</p>
<p>&#160;</p>
<p>Now if an object is created and then assigned a value like this:</p>
<p>object a ;</p>
<p>a = 2;</p>
<p>the compiler will not give the error and the code will run correctly. Semantically this is wrong because the types on the both side are different and hence default copy assignment constructor will not handle this. The code runs correctly because compiler inserts a temporary statement in between and instruction is executed as following:</p>
<p>object temp = 2;  this assignment is possible only in one parameter constructor case</p>
<p>object a ;</p>
<p>a = temp;</p>
<p>Now the default copy constructor can handle this statement because type is same on the both sides.</p>
<p>To remove this ambiguity , EXPLICIT keyword is added in the constructor declaration so that compiler will not change the type by itself and it will throw an error in this case telling about type mismatch.</p>
<p>explicit object(int value) { val = value;}</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[F1 2009 Provisional Final Drivers Championship Standings]]></title>
<link>http://chrishf1.wordpress.com/2009/11/01/f1-2009-provisional-final-drivers-championship-standings/</link>
<pubDate>Sun, 01 Nov 2009 15:19:36 +0000</pubDate>
<dc:creator>chrishf1</dc:creator>
<guid>http://chrishf1.wordpress.com/2009/11/01/f1-2009-provisional-final-drivers-championship-standings/</guid>
<description><![CDATA[Position Driver Nationality Team Points 1 Jenson Button British Brawn-Mercedes 95 2 Sebastian Vettel]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<th> Position</th>
<th>Driver</th>
<th>Nationality</th>
<th>Team</th>
<th>Points</th>
</tr>
<tr>
<td>1</td>
<td>Jenson Button</td>
<td>British</td>
<td>Brawn-Mercedes</td>
<td>95</td>
</tr>
<tr>
<td>2</td>
<td>Sebastian Vettel</td>
<td>German</td>
<td>RBR-Renault</td>
<td>84</td>
</tr>
<tr>
<td>3</td>
<td>Rubens Barrichello</td>
<td>Brazilian</td>
<td>Brawn-Mercedes</td>
<td>77</td>
</tr>
<tr>
<td>4</td>
<td>Mark Webber</td>
<td>Australian</td>
<td>RBR-Renault</td>
<td>69.5</td>
</tr>
<tr>
<td>5</td>
<td>Lewis Hamilton</td>
<td>British</td>
<td>McLaren-Mercedes</td>
<td>49</td>
</tr>
<tr>
<td>6</td>
<td>Kimi Räikkönen</td>
<td>Finnish</td>
<td>Ferrari</td>
<td>48</td>
</tr>
<tr>
<td>7</td>
<td>Nico Rosberg</td>
<td>German</td>
<td>Williams-Toyota</td>
<td>34.5</td>
</tr>
<tr>
<td>8</td>
<td>Jarno Trulli</td>
<td>Italian</td>
<td>Toyota</td>
<td>32.5</td>
</tr>
<tr>
<td>9</td>
<td>Fernando Alonso</td>
<td>Spanish</td>
<td>Renault</td>
<td>26</td>
</tr>
<tr>
<td>10</td>
<td>Timo Glock</td>
<td>German</td>
<td>Toyota</td>
<td>24</td>
</tr>
<tr>
<td>11</td>
<td>Felipe Massa</td>
<td>Brazilian</td>
<td>Ferrari</td>
<td>22</td>
</tr>
<tr>
<td>12</td>
<td>Heikki Kovalainen</td>
<td>Finnish</td>
<td>McLaren-Mercedes</td>
<td>22</td>
</tr>
<tr>
<td>13</td>
<td>Nick Heidfeld</td>
<td>German</td>
<td>BMW Sauber</td>
<td>19</td>
</tr>
<tr>
<td>14</td>
<td>Robert Kubica</td>
<td>Polish</td>
<td>BMW Sauber</td>
<td>17</td>
</tr>
<tr>
<td>15</td>
<td>Giancarlo Fisichella</td>
<td>Italian</td>
<td>Ferrari</td>
<td>8</td>
</tr>
<tr>
<td>16</td>
<td>Sebastien Buemi</td>
<td>Swiss</td>
<td>STR-Ferrari</td>
<td>6</td>
</tr>
<tr>
<td>17</td>
<td>Adrian Sutil</td>
<td>German</td>
<td>Force India-Mercedes</td>
<td>5</td>
</tr>
<tr>
<td>18</td>
<td>Kamui Kobayashi</td>
<td>Japanese</td>
<td>Toyota</td>
<td>3</td>
</tr>
<tr>
<td>19</td>
<td>Sebastien Bourdais</td>
<td>French</td>
<td>STR-Ferrari</td>
<td>2</td>
</tr>
<tr>
<td>20</td>
<td>Kazuki Nakajima</td>
<td>Japanese</td>
<td>Williams-Toyota</td>
<td>0</td>
</tr>
<tr>
<td>21</td>
<td>Nelsinho Piquet</td>
<td>Brazilian</td>
<td>Renault</td>
<td>0</td>
</tr>
<tr>
<td>22</td>
<td>Vitantonio Liuzzi</td>
<td>Italian</td>
<td>Force India-Mercedes</td>
<td>0</td>
</tr>
<tr>
<td>23</td>
<td>Romain Grosjean</td>
<td>French</td>
<td>Renault</td>
<td>0</td>
</tr>
<tr>
<td>24</td>
<td>Jaime Alguersuari</td>
<td>Spanish</td>
<td>STR-Ferrari</td>
<td>0</td>
</tr>
<tr>
<td>25</td>
<td>Luca Badoer</td>
<td>Italian</td>
<td>Ferrari</td>
<td>0</td>
</tr>
</tbody>
</table>
<p><strong> Reference: F1.com </strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[F1 2009 Provisional Final Teams Championship Standings]]></title>
<link>http://chrishf1.wordpress.com/2009/11/01/f1-2009-provisional-final-teams-championship-standings/</link>
<pubDate>Sun, 01 Nov 2009 15:06:50 +0000</pubDate>
<dc:creator>chrishf1</dc:creator>
<guid>http://chrishf1.wordpress.com/2009/11/01/f1-2009-provisional-final-teams-championship-standings/</guid>
<description><![CDATA[Position Team Points 1 Brawn-Mercedes 172 2 RBR-Renault 153.5 3 McLaren-Mercedes 71 4 Ferrari 70 5 T]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><table cellspacing="0" cellpadding="0">
<tbody>
<tr style="text-align:center;">
<th>Position</th>
<th>Team</th>
<th>Points</th>
</tr>
<tr style="text-align:center;">
<td>1</td>
<td>Brawn-Mercedes</td>
<td>172</td>
</tr>
<tr style="text-align:center;">
<td>2</td>
<td>RBR-Renault</td>
<td>153.5</td>
</tr>
<tr style="text-align:center;">
<td>3</td>
<td>McLaren-Mercedes</td>
<td>71</td>
</tr>
<tr style="text-align:center;">
<td>4</td>
<td>Ferrari</td>
<td>70</td>
</tr>
<tr style="text-align:center;">
<td>5</td>
<td>Toyota</td>
<td>59.5</td>
</tr>
<tr style="text-align:center;">
<td>6</td>
<td>BMW Sauber</td>
<td>36</td>
</tr>
<tr style="text-align:center;">
<td>7</td>
<td>Williams-Toyota</td>
<td>34.5</td>
</tr>
<tr style="text-align:center;">
<td>8</td>
<td>Renault</td>
<td>26</td>
</tr>
<tr style="text-align:center;">
<td>9</td>
<td>Force India-Mercedes</td>
<td>13</td>
</tr>
<tr style="text-align:center;">
<td>10</td>
<td>STR-Ferrari</td>
<td>8</td>
</tr>
</tbody>
</table>
<p style="text-align:center;">Reference: f1.com</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[2009 F1 ABU DHABI GRAND PRIX Provisional Results]]></title>
<link>http://chrishf1.wordpress.com/2009/11/01/2009-f1-abu-dhabi-grand-prix-provisional-results/</link>
<pubDate>Sun, 01 Nov 2009 15:02:53 +0000</pubDate>
<dc:creator>chrishf1</dc:creator>
<guid>http://chrishf1.wordpress.com/2009/11/01/2009-f1-abu-dhabi-grand-prix-provisional-results/</guid>
<description><![CDATA[Pos No Driver Team Laps Time/Retired Grid Points 1 15 Sebastian Vettel RBR-Renault 55 Winner 2 10 2 ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<th>Pos</th>
<th>No</th>
<th>Driver</th>
<th>Team</th>
<th>Laps</th>
<th>Time/Retired</th>
<th>Grid</th>
<th> Points</th>
</tr>
<tr>
<td>1</td>
<td>15</td>
<td>Sebastian Vettel</td>
<td>RBR-Renault</td>
<td>55</td>
<td>Winner</td>
<td>2</td>
<td>10</td>
</tr>
<tr>
<td>2</td>
<td>14</td>
<td>Mark Webber</td>
<td>RBR-Renault</td>
<td>55</td>
<td>+17.8 secs</td>
<td>3</td>
<td>8</td>
</tr>
<tr>
<td>3</td>
<td>22</td>
<td>Jenson Button</td>
<td>Brawn-Mercedes</td>
<td>55</td>
<td>+18.4 secs</td>
<td>5</td>
<td>6</td>
</tr>
<tr>
<td>4</td>
<td>23</td>
<td>Rubens Barrichello</td>
<td>Brawn-Mercedes</td>
<td>55</td>
<td>+22.7 secs</td>
<td>4</td>
<td>5</td>
</tr>
<tr>
<td>5</td>
<td>6</td>
<td>Nick Heidfeld</td>
<td>BMW Sauber</td>
<td>55</td>
<td>+26.2 secs</td>
<td>8</td>
<td>4</td>
</tr>
<tr>
<td>6</td>
<td>10</td>
<td>Kamui Kobayashi</td>
<td>Toyota</td>
<td>55</td>
<td>+28.3 secs</td>
<td>12</td>
<td>3</td>
</tr>
<tr>
<td>7</td>
<td>9</td>
<td>Jarno Trulli</td>
<td>Toyota</td>
<td>55</td>
<td>+34.3 secs</td>
<td>6</td>
<td>2</td>
</tr>
<tr>
<td>8</td>
<td>12</td>
<td>Sebastien Buemi</td>
<td>STR-Ferrari</td>
<td>55</td>
<td>+41.2 secs</td>
<td>10</td>
<td>1</td>
</tr>
<tr>
<td>9</td>
<td>16</td>
<td>Nico Rosberg</td>
<td>Williams-Toyota</td>
<td>55</td>
<td>+45.9 secs</td>
<td>9</td>
<td></td>
</tr>
<tr>
<td>10</td>
<td>5</td>
<td>Robert Kubica</td>
<td>BMW Sauber</td>
<td>55</td>
<td>+48.1 secs</td>
<td>7</td>
<td></td>
</tr>
<tr>
<td>11</td>
<td>2</td>
<td>Heikki Kovalainen</td>
<td>McLaren-Mercedes</td>
<td>55</td>
<td>+52.7 secs</td>
<td>18</td>
<td></td>
</tr>
<tr>
<td>12</td>
<td>4</td>
<td>Kimi Räikkönen</td>
<td>Ferrari</td>
<td>55</td>
<td>+54.3 secs</td>
<td>11</td>
<td></td>
</tr>
<tr>
<td>13</td>
<td>17</td>
<td>Kazuki Nakajima</td>
<td>Williams-Toyota</td>
<td>55</td>
<td>+59.8 secs</td>
<td>13</td>
<td></td>
</tr>
<tr>
<td>14</td>
<td>7</td>
<td>Fernando Alonso</td>
<td>Renault</td>
<td>55</td>
<td>+69.6 secs</td>
<td>15</td>
<td></td>
</tr>
<tr>
<td>15</td>
<td>21</td>
<td>Vitantonio Liuzzi</td>
<td>Force India-Mercedes</td>
<td>55</td>
<td>+94.4 secs</td>
<td>16</td>
<td></td>
</tr>
<tr>
<td>16</td>
<td>3</td>
<td>Giancarlo Fisichella</td>
<td>Ferrari</td>
<td>54</td>
<td>+1 Lap</td>
<td>20</td>
<td></td>
</tr>
<tr>
<td>17</td>
<td>20</td>
<td>Adrian Sutil</td>
<td>Force India-Mercedes</td>
<td>54</td>
<td>+1 Lap</td>
<td>17</td>
<td></td>
</tr>
<tr>
<td>18</td>
<td>8</td>
<td>Romain Grosjean</td>
<td>Renault</td>
<td>54</td>
<td>+1 Lap</td>
<td>19</td>
<td></td>
</tr>
<tr>
<td>Ret</td>
<td>1</td>
<td>Lewis Hamilton</td>
<td>McLaren-Mercedes</td>
<td></td>
<td>+35 Laps (Rear Brakes)</td>
<td>1</td>
<td></td>
</tr>
<tr>
<td>Ret</td>
<td>11</td>
<td>Jaime Alguersuari</td>
<td>STR-Ferrari</td>
<td></td>
<td>+37 Laps (Gearbox)</td>
<td>17</td>
</tr>
</tbody>
</table>
<p>Reference: F1.com</p>
<p>&#160;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[2009 FORMULA 1 ETIHAD AIRWAYS ABU DHABI GRAND PRIX LIVE RACING BLOG]]></title>
<link>http://chrishf1.wordpress.com/2009/11/01/2009-formula-1-etihad-airways-abu-dhabi-grand-prix-live-racing-blog/</link>
<pubDate>Sun, 01 Nov 2009 11:55:53 +0000</pubDate>
<dc:creator>chrishf1</dc:creator>
<guid>http://chrishf1.wordpress.com/2009/11/01/2009-formula-1-etihad-airways-abu-dhabi-grand-prix-live-racing-blog/</guid>
<description><![CDATA[Provisional Results blog live in a min &#8211; http://wp.me/pF7qv-dA 19 weeks until the F1 2010 sess]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Provisional Results blog live in a min &#8211; http://wp.me/pF7qv-dA</p>
<p>19 weeks until the F1 2010 session starts &#8211; 133 days that is</p>
<p>That concludes the 2009 season &#8211; Check back during the next few weeks for Analysis and reviews</p>
<p>WOW Jenson Swearing alert</p>
<p>If red bull had a Double diffuser at the start of the year where would we be now?????</p>
<p>Get in there webber Red Bull 1 &#8211; 2</p>
<p>Brawn 3 and 4</p>
<p>What a fight ohh</p>
<p>Webber purple S1</p>
<p>webber&#8217;s lead down to 0.7 to button</p>
<p>webber&#8217;s lead down to 1.3 to button</p>
<p>webber&#8217;s lead down to 2.2 to button</p>
<p>L47 Vett now 17secs ahead of Webb</p>
<p>Jenson closing on webber by half a sec a lap &#8211; gap down to 3 sec</p>
<p>webber&#8217;s lead down to 3.6 to button</p>
<p>fight possible between 4th, 5th, 6th</p>
<p>Vettel, Webber, Button is what the podium looks like atm</p>
<p>Vettel and Button pitted</p>
<p>Rosberg overtakes Kubica who spins fighting with Buemi</p>
<p>Rubens and Nick in and out, that was quick</p>
<p>Webber in and out of the pits &#8211; option tyres</p>
<p>Kubica in and out of the pits with option tyres</p>
<p>Rosberg in &#8211; First 2 stopper to switch to option tyres studying lap times now I think</p>
<p>brb before 2nd stops</p>
<p>Kob News: Understeer, using the front flap max 6th place is possible</p>
<p>Force India fighting</p>
<p>Speed Trap data:</p>
<p>Kov &#8211; 322</p>
<p>Rubens, Liu and Sut &#8211; 320</p>
<p>Fisi and Button &#8211; 317</p>
<p>Alonso pits &#8211; 8.2 sec puts option tyres on</p>
<p>Top 3 look set now to finish in them positions &#8211; Webber and button may pit on the same lap with Vettel has 1 more lap of fuel</p>
<p>3 wins in a row for Red Bull Japan Vet, Brazil Webber, That is looking likely</p>
<p>Kov, Fisi, Gro and Liuzzi in the pits</p>
<p>Sutil killing the bollard</p>
<p>Fisi to get drive though pen for speeding in the pit lane</p>
<p>Kob lovely stop now on the option tyres</p>
<p>Kimi just pitted lets see how he will take the option tyres</p>
<p>Fisi just pitted the only driver to have used the option tyres</p>
<p>All 2 stoppers now pitted 1 stoppers should pit soon</p>
<p>Jamie went to pit stop at the wrong pit (stopped at Red Bull not STR, easy mistake) then ran out of fuel in the next lap very slow on that lap</p>
<p>Lewis: Couldn&#8217;t stop the car, right rear breaks, failure maybe???</p>
<p>Red Bull 1 -2 now both of them in my FR team with Sutil and Buemi go go go !! lol <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Button nearly lost it again</p>
<p>1 stoppers now mixing with the front runners &#8211; Kob for points???</p>
<p>Silly Jamie trying to stop in the Red Bull pit with problem stopped on the circuit now</p>
<p>Yellow flag S3 STR stopped &#8211; Turn 11</p>
<p>Lewis in the pit again &#8211; He is out NOOOOOOOOOOO first retirement  and he is in my Fantasy Racers team</p>
<p>McLaren clearing space in the pit lane</p>
<p>STR running slow</p>
<p>Lewis: Could have a right rear break problem</p>
<p>Webber in pits, also Truill, Buemi, Rosberg in</p>
<p>Hamilton and Button in the pits, all safe out of the tunnel into clear air</p>
<p>Ferrari not use tyres all the time because of a heat issue</p>
<p>Kubica and Rubens in and out of the pits staying on the prime (Medium) tyres</p>
<p>Button is lewis&#8217; threat now</p>
<p>Red Bull 1 -2 is looking likely</p>
<p>Back Kob looking good for a chance of points</p>
<p>i will brb pit stops start in 2 laps time</p>
<p>2 stoppers need to be at least 1.5 sec every lap quicker than all the one stoppers otherwise they could lose position and get in traffic</p>
<p>Lewis lost .8 of a sec oops Now lewis has to run and overtake Vettel in the 2nd part of the race</p>
<p>Lewis is smashing everyone in S2 half a sec quicker</p>
<p>1 stoppers on good pace</p>
<p>Top 5 pace within 2 tenth of a sec</p>
<p>Lewis Radio: Vettel quicker, losing most time in S3 and a bit in S1</p>
<p>Lewis not doing enough, grip not there atm, also it&#8217;s tyre heat low atm</p>
<p>Lewis half a sec quicker than anyone thought S2</p>
<p>Jenson 6 sec back from the leader Lewis</p>
<p>Lewis needs to get the gap to Vettel to over 5 secs or he will lose the place after the pit stops</p>
<p>Soz about that had to set dad sat nav</p>
<p>Rubens has a damaged car &#8211; Confirmed</p>
<p>Remember the fastest lap from this race will be the lap record</p>
<p>Jenson jumped rubens</p>
<p>Kubica jumped Truill</p>
<p>Button Quick with lots of grip</p>
<p>Rubens may have lost downforce from the front wing</p>
<p>GRO in front of Alonso</p>
<p>Lewis not sprinting atm</p>
<p>Kubica to stop about lap 15/16</p>
<p>Truill and Kubica fighting</p>
<p>Webber and Rubens have touched</p>
<p>The lights are out</p>
<p>Fisi on the option tyres for the start</p>
<p>Parade Lap is go go go</p>
<p>I am listening to BBC during the race today not 5live, what is everyone else listening to?</p>
<p>The grid is clearing</p>
<p>Ready?</p>
<p>Track Temp 33 c<br />
Air Temp: 31 c<br />
Air speed: 3.9 mps</p>
<p>Is everybody set, I have blog, Live commenting and blog post Comments</p>
<p>If u have a question, comment, idea or if i miss something please put a comment on any of my posts</p>
<p>Not good for Brawn and Kubica on pit stops</p>
<p>YAY Ron Dennis back on the grid thats very nice to see</p>
<p>9 Minutes to go</p>
<p>Martin and DC in a 2 seater love it</p>
<p>Loving the tunnel</p>
<p>Luca on the grid lol if he was quicker maybe he would be in the car for this race</p>
<p>End of grid walk today loved it like normal under 15 minutes to do to lights out</p>
<p>JC &#8211; Look at him lol &#8211; He is quick at the Top Gear track tho</p>
<p>I like Mark Webber, Webber Lewis and Jenson for podium</p>
<p>Lewis Interview WOOP WOOP Best car on the grid today</p>
<p>Grid walk time with Martin and Eddie YAY</p>
<p>WOW I wish i was a racing driver now, I have missed my chance of f1 as u have to start karting at about 7/8</p>
<p>I think jake will do well</p>
<p>Jake racing yay</p>
<p>half a hour to lights out can&#8217;t wait</p>
<p>Ferrari &#8211; a very ruff year for them, big crash, few podiums not what they looking for</p>
<p>I am wearing my F1 t-shirt today, lets hope it gives jenson and lewis some luck for 2 brits on the podium</p>
<p>McLaren: I thought they would be mega this year, lots of charactor building i think this year for lewis</p>
<p>BMW &#8211; I was quoted saying last winter they were my tip for success this year race wins and a challenge for the championship</p>
<p>Fernando to Ferrari 2010</p>
<p>What a year for them</p>
<p>Renault Renault Renault</p>
<p>Here is the grid:</p>
<p>Lewis, Seb, Mark, Rubens, Jenson,</p>
<p>Alonso out in Q1 &#8211; love Quail features</p>
<p>Buemi is in one of my  Fantasy Racers teams so Go Go Buemi</p>
<p>maybe I would love for STR to get points today with Buemi</p>
<p>I am loving the BBC intro love that song, look at that pretty car (BGP 001)</p>
<p>Jenson Button &#8211; 2009 World Drivers Champion don&#8217;t forget</p>
<p>BBC Intro is go go go, Remember after the race the bbc do a race forum today it will not be on freeview just Sky red button, Online and Virgin media (i think). I will add live comments on the forum into this live blog</p>
<p>Who will crash into the tunnel on the pit lane exit first, if any?</p>
<p>Will Lewis run away in the first stint</p>
<p>From the fuel weights we see the top 10 2 stopping and the last 10 1 stopping with Renault stacking the car with fuel</p>
<p>Afternoon All, under 10 minutes until the BBC coverage starts!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Qualifying analysis - flying Hamilton surprises Red Bull]]></title>
<link>http://chrishf1.wordpress.com/2009/10/31/qualifying-analysis-flying-hamilton-surprises-red-bull/</link>
<pubDate>Sat, 31 Oct 2009 21:28:57 +0000</pubDate>
<dc:creator>chrishf1</dc:creator>
<guid>http://chrishf1.wordpress.com/2009/10/31/qualifying-analysis-flying-hamilton-surprises-red-bull/</guid>
<description><![CDATA[The first day/night qualifying session proved a complete success on the dramatic new Yas Marina circ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>The first day/night qualifying session proved a complete success on the dramatic new Yas Marina circuit in Abu Dhabi, where Lewis Hamilton’s pace in the McLaren surprised Red Bull duo Sebastian Vettel and Mark Webber. This trio seems to have a small but crucial advantage over the Brawn duo of Rubens Barrichello and Jenson Button.</p>
<p>For the record, the fuel weights were: Hamilton, 658.5 kg; Vettel 663, Webber 660, Barrichello 655, Button 657, Toyota’s Jarno Trulli 661, BMW Sauber’s Robert Kubica 654.5, BMW Sauber’s Nick Heidfeld 664, Williams’ Nico Rosberg 665 and Toro Rosso’s Sebastien Buemi 661.5.</p>
<p><strong>McLaren<br />
Lewis Hamilton, 1m 40.948s, P1<br />
Heikki Kovalainen, 1m 40.983, P13, will start P18</strong><br />
Hamilton was delighted with the MP4-24, saying it felt the best it had all season. He used KERS for all it was worth, and said things just got better and better as he regained the advantage from the speedy Red Bull duo. Kovalainen’s chances were damned straight away in Q2; he had just set the first fast time when he suffered a gearbox failure. The unit required replacement, leaving him with a grid-place penalty that dropped him from 13th to 18th.</p>
<p><strong>Red Bull<br />
Sebastian Vettel, 1m 41.615s, P2<br />
Mark Webber, 1m 41.726s, P3</strong><br />
Vettel admitted that he and Webber were surprised by Hamilton’s pace, especially when it transpired that he wasn’t that much lighter on fuel. Both felt they got the best from their RB5s and said the cars were working well. They also thought that McLaren’s KERS was particularly advantageous here.</p>
<p><strong>Brawn GP<br />
Rubens Barrichello, 1m 41.786s, P4<br />
Jenson Button, 1m 41.892s, P5</strong><br />
Barrichello said he was happy with the way his car improved as the temperatures dropped for qualifying. Button was very quick all through practice and Q1 and Q2, but with a fuel load in Q3 he started to get serious vibrations which led to debilitating understeer.</p>
<p><strong>Toyota<br />
Jarno Trulli, 1m 41.897s, P6<br />
Kamui Kobayashi, 40.777s, P12</strong><br />
Trulli felt he got things right in all of the sessions and was happy with sixth, especially as Button only marginally improved on his time. Kobayashi had hoped to make Q3 in his first fully dry Formula One qualifying. In the end he was philosophical to miss out by just a couple of tenths.</p>
<p><strong>BMW Sauber<br />
Robert Kubica, 1m 41.992s, P7<br />
Nick Heidfeld, 1m 42.343s, P8</strong><br />
Kubica rued Friday’s loss of time after his second session engine failure and said that the lower track temperature in qualifying had a deleterious affect on his F1.09’s handling. Heidfeld was quite happy on the greater fuel load and said that his marginal chance of a final improvement might have been frustrated when he came across Webber late in the lap.</p>
<p><strong>Williams<br />
Nico Rosberg, 1m 42.583s, P9<br />
Kazuki Nakajima, 1m 41.148s, P14, will start P13</strong><br />
Rosberg made the top 10 again in his final race for Williams, and felt that ninth was the best he could have expected as his FW31 struggled on the open sections of the circuit. Nakajima didn’t manage to get his last lap together in Q2.</p>
<p><strong>Toro Rosso<br />
Sebastien Buemi, 1m 42.583s, P10<br />
Jaime Alguersuari, 1m 41.689s, P15, will start P14</strong><br />
Buemi admitted that he had hoped for better than 10th after shining all through practice, but said he was happy overall given his fuel load. Alguersuari lost valuable track time when he didn’t run at all in the morning, for reasons the team didn’t divulge, and never managed to catch up.</p>
<p><strong>Ferrari<br />
Kimi Raikkonen, 1m 40.726s, P11<br />
Giancarlo Fisichella, 1m 42.184s, P20</strong><br />
Once again Raikkoinen got the most out of the ageing F60, and Fisichella didn’t, and prospects for regaining third place in the constructors’ championship from McLaren appear weak.</p>
<p><strong>Renault<br />
Fernando Alonso, 1m 41.667, P16, will start P15<br />
Romain Grosjean, 1m 41.950s, P19</strong><br />
Renault struggled throughout practice and qualifying here, and 16th and 19th indicated the depth of the problem.</p>
<p><strong>Force India<br />
Vitantonio Liuzzi 1m 41.701s, P17, will start P16<br />
Adrian Sutil, 1m 41.863s, P18, will start P17</strong><br />
Liuzzi was really happy with his VJM02 on his first run in Q1 and believed he had the pace to get through to Q2. But the second set of soft tyres changed its behaviour for the worst as it lost grip. Sutil also complained of oversteer.</p>
<p>Reference: F1.com</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[fuel-adjusted Abu Dhabi GP grid]]></title>
<link>http://chrishf1.wordpress.com/2009/10/31/fuel-adjusted-abu-dhabi-gp-grid/</link>
<pubDate>Sat, 31 Oct 2009 19:18:39 +0000</pubDate>
<dc:creator>chrishf1</dc:creator>
<guid>http://chrishf1.wordpress.com/2009/10/31/fuel-adjusted-abu-dhabi-gp-grid/</guid>
<description><![CDATA[Lewis Hamilton looks in superb shape to take a third victory of the season at the Formula 1 finale i]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Lewis Hamilton looks in superb shape to take a third victory of the season at the Formula 1 finale in Abu Dhabi on Sunday.</p>
<p>The McLaren driver was on pole by a margin of nearly 0.7 seconds and he was still half a second clear when the amount of fuel in the cars was taken into account &#8211; an astonishing margin in a season that has been so close.</p>
<p>The cars in the top 10 qualifying shoot-out are not allowed to refuel between qualifying and the race, so the amount of fuel they carry dictates their pace on Saturday as well as when they will make their first pit stops on Sunday.</p>
<p>So grid positions can be misleading until the fuel weights are published and the ramifications of that calculated. Assessing those figures underlines just how strong Hamilton is looking.</p>
<p>This is BBC Sport&#8217;s fuel-adjusted Abu Dhabi Grand Prix grid, with projected first pit stops:</p>
<p>1 Lewis Hamilton (lap 17)<br />
2 Sebastian Vettel +0.496secs (lap 19)<br />
3 Mark Webber +0.721 (lap 18)<br />
4 Jarno Trulli +0.854 (lap 18)<br />
5 Rubens Barrichello +0.971 (lap 16)<br />
6 Jenson Button +1.001 (lap 17)<br />
7 Nick Heidfeld +1.186 (lap 19)<br />
8 Robert Kubica +1.196 (lap 15)<br />
9 Nico Rosberg +1.388 (lap 19)<br />
10 Sebastien Buemi +1.651 (lap 18)</p>
<p>Because he has two laps&#8217; less fuel on board, Hamilton&#8217;s fuel-adjusted margin over the Red Bulls is not as large as it was on the track but at nearly half a second it is still more than big enough for the race to look like it is his for the taking.</p>
<p>It seems as if the Abu Dhabi track could have been made for the McLaren.</p>
<p>There are two long straights for them to get the most out of their Kers power-boost system, which gives them an extra 80bhp for 6.7 seconds a lap.</p>
<p>And the track abounds in the slow- and medium-speed corners in which the car is so strong, while lacking the high-speed bends in which it struggles &#8211; and in which the Red Bull is the class of the field.</p>
<p>Not only that, but it should ensure he is unpassable on the first lap, so he should be able to lap at his own pace for the first stint.</p>
<p>If Hamilton has any rivals for victory, it looks like being the Red Bull drivers.</p>
<p>They are making their first pit stops a little later than Hamilton &#8211; Vettel on lap 19, compared to Hamilton&#8217;s 17, and Webber on 18 &#8211; but, as long as the Englishman maintain his superior speed into the first stint of the race, it is hard to see Vettel or Webber being able to make up enough time to leapfrog him.</p>
<p>More likely is that the Red Bull drivers will be engaged in a tight battle with the Brawn drivers and Jarno Trulli&#8217;s Toyota behind Hamilton.</p>
<p>With regards to Vettel and Brawn&#8217;s Rubens Barrichello, that means a fight for second place in the championship as well as in the race &#8211; the German has a two-point advantage heading into the grand prix.</p>
<p>But just as they are fighting for the crumbs left by Jenson Button in the championship, they look certain to be doing the same behind Hamilton in the final race of the season.</p>
<p>Reference: BBC Sport F1</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Abu Dhabi: Fuel loads analysis]]></title>
<link>http://chrishf1.wordpress.com/2009/10/31/abu-dhabi-fuel-loads-analysis/</link>
<pubDate>Sat, 31 Oct 2009 19:12:57 +0000</pubDate>
<dc:creator>chrishf1</dc:creator>
<guid>http://chrishf1.wordpress.com/2009/10/31/abu-dhabi-fuel-loads-analysis/</guid>
<description><![CDATA[Lewis Hamilton will stop just one lap earlier than main rival Sebastian Vettel in tomorrow&#8217;s r]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Lewis Hamilton will stop just one lap earlier than main rival Sebastian Vettel in tomorrow&#8217;s race, making the Briton&#8217;s excellent pole position lap in qualifying this evening even more impressive. The 2008 champion went two thirds of a second quicker than second-placed Vettel, but the publication of the post-qualifying fuel weights revealed that the pair would stop just one lap apart on laps 18 and 19 respectively, hitting Red Bull&#8217;s victory hopes in the process.</p>
<p>With Vettel going just one lap longer than Hamilton, the German&#8217;s chances of leapfrogging the McLaren driver during the pitstops are now very slim, especially with Hamilton having KERS at his disposal to easily re-pass Vettel should he be behind. Webber is equally disadvantaged, stopping on lap 18, the same lap as Hamilton.</p>
<p>Behind the leading trio, Brawn&#8217;s Barrichello and Button will stop on laps 17 and 18, or possible earlier, with Jarno Trulli set to pit for the first time on lap 19. BMW Sauber&#8217;s Robert Kubica has the lightest car on the grid with just 16 laps of fuel on-board, with Heidfeld, Rosberg and Buemi all stopping in or around lap 20.</p>
<p>While all the top-ten runners are geared up for two-stop strategies, the entire latter half of the grid have the option of stopping just once, depending on tyre wear. Both Ferraris are the lightest cars in the bottom 10 with 30 laps of fuel, while the heaviest are the Renaults, with Alonso and Grosjean set to go 36 and 37 laps respectively before stopping.</p>
<p>Reference: Manipe F1</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Blocurile Planorama, abandonate şi de al doilea constructor]]></title>
<link>http://sensioro.wordpress.com/2009/10/31/blocurile-planorama-abandonate-si-de-al-doilea-constructor/</link>
<pubDate>Sat, 31 Oct 2009 12:03:22 +0000</pubDate>
<dc:creator>Monica</dc:creator>
<guid>http://sensioro.wordpress.com/2009/10/31/blocurile-planorama-abandonate-si-de-al-doilea-constructor/</guid>
<description><![CDATA[Compania israeliană Danya Cebus, braţul de construcţii al Africa-Israel Investments, dezvoltatorul m]]></description>
<content:encoded><![CDATA[Compania israeliană Danya Cebus, braţul de construcţii al Africa-Israel Investments, dezvoltatorul m]]></content:encoded>
</item>
<item>
<title><![CDATA[Naivety with C++]]></title>
<link>http://lostwebsite.wordpress.com/2009/10/27/naivety-with-c/</link>
<pubDate>Wed, 28 Oct 2009 00:00:18 +0000</pubDate>
<dc:creator>fdgonthier</dc:creator>
<guid>http://lostwebsite.wordpress.com/2009/10/27/naivety-with-c/</guid>
<description><![CDATA[Warning, major n00bness ahead. I&#8217;m not a big user of C++, but recently some work I have had to]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Warning, <i>major n00bness ahead</i>.</p>
<p>I&#8217;m not a big user of C++, but recently some work I have had to do with .NET has made me use C++/CLI, the .NET version of C++.</p>
<p>The API I work have a well defined and consistent <code>Alloc</code>/Use/<code>Free</code> cycle. This has gave me an incentive to learn to use <a href="http://en.wikipedia.org/wiki/RAII">RAII</a> (via <a href="http://hbfs.wordpress.com/">DrMax</a>) to elegantly wrap the required cleanup operation in my code.</p>
<p>The following class around Windows <code>GlobalAlloc</code> is an example of such a wrapper.</p>
<pre class="brush: cpp;">
    // RAII friendly wrapper over Win32 GlobalAlloc.
    class Memory
    {
    private:
        bool m_isAlloc;

    public:
        HGLOBAL Ptr;
        SIZE_T Size;

        void Alloc(UINT flags, size_t dwBytes)
        {
            if (IsAlloc()) Free();
            Size = dwBytes;
            Ptr = GlobalAlloc(flags, dwBytes);
            if (Ptr == 0)
                throw gcnew OutOfMemoryException();
            m_isAlloc = 1;
        }

        void Free()
        {
            if (Ptr) GlobalFree(Ptr);
            m_isAlloc = 0;
            Size = 0;
            Ptr = 0;
        }

        bool IsAlloc()
        {
            return m_isAlloc;
        }

        Memory(UINT flags, size_t dwBytes)
        {
            Alloc(flags, dwBytes);
        }

        Memory()
        {
            Ptr = 0;
        }

        ~Memory()
        {
            if (Ptr) GlobalFree(Ptr);
        }
    };
</pre>
<p>Expert eyes will obviously see that this code lacks 2 important things:</p>
<ul>
<li>there is no copy constructor</li>
<li>there is no assignment operator</li>
</ul>
<p>I&#8217;m not very experienced in C++ so I don&#8217;t the reflexes that make C++ programmers write those things when the define a class, and I don&#8217;t yet know when the implicit copy constructor and assignment operator are called.  I&#8217;ve found that the easiest way to discover that is to to prevent them from being usable by the clients of the class.  In the case of my small class above, I needed to make 2 functions private.</p>
<pre class="brush: cpp;">
class Memory {
...
private:
    Memory&#38; operator=(const Memory&#38; mem);
    Memory(const Memory&#38; mem);
...
</pre>
<p>This makes the compiler freak out when compiling my program&#8230;</p>
<pre>
...Memory::operator =' : cannot access private member declared in class 'Memory'...
</pre>
<p>The compiler has helpfully pointed to me out which place in my code those functions needs to be called.</p>
<p><i>Oops, so I really need that assignment operator after all.</i></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[The good news is here: We know when we’re opening!  ]]></title>
<link>http://supergites.wordpress.com/2009/10/25/opening/</link>
<pubDate>Sun, 25 Oct 2009 17:39:28 +0000</pubDate>
<dc:creator>Marco de Boer</dc:creator>
<guid>http://supergites.wordpress.com/2009/10/25/opening/</guid>
<description><![CDATA[This Saturday we went to see the progress in Tourteron. Although we were kept informed by Stepháne o]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>This Saturday we went to see the progress in Tourteron. Although we were kept informed by Stepháne on a regular basis, we were not sure what to expect. In the end, even the three-and-a-half-hour drive does make us feel a bit helpless. It&#8217;s the same with any construction project: being there at least speeds the workmen.</p>
<div id="attachment_513" class="wp-caption alignleft" style="width: 190px"><img class="size-full wp-image-513" title="Sanding Mess" src="http://supergites.wordpress.com/files/2009/10/sandingmess.jpg" alt="Sanding Mess" width="180" height="240" /><p class="wp-caption-text">Sanding Mess</p></div>
<p>When we arrived, the whole place was barricaded with hardboard. All the windows were closed and covered with black plastic. The larger ones were even covered with wooden panels. We couldn’t enter the house by the front door. We had to take the second door uphill. Entering bedroom 3, we stepped into one big, dirty cloud of grey dust. It instantly grabbed our throats. What happened here? Throughout the house the floor was covered with a 5 cm-thick layer of black crystal sand. OK, they have been sanding the wood. In the bare light coming through some holes in the roof and windows we could see the result. All of the wooden beams had become this beautiful light-brown, rough oak colour. Fantastic!<br />
The second fantastic thing that happened was this: the water meter had been moved from the inside of the house to the outside. As strange as it sounds, the meter was originally installed in the middle of bedroom 3. That can be quite unhandy when you need to check something while people are renting. So Monsieur de l’Eau Official came, dug a hole, and placed the meter outside of the house. This resulted in a completely hidden water system. I love it!<br />
The third thing I love about this update is the letters from the officials. The first letter  came from S.P.A.N.C.; it’s the official note telling us we have to wait another two weeks before we&#8217;ll know if we can install the new 4000-liter <a class="zem_slink" title="Environmentally friendly" rel="wikipedia" href="http://en.wikipedia.org/wiki/Environmentally_friendly">eco-friendly</a> <a class="zem_slink" title="Septic tank" rel="wikipedia" href="http://en.wikipedia.org/wiki/Septic_tank">septic tank</a> where we want it. Why does that make me happy? Because it means they have at least approved it! There’s another bureau involved who’ll have a final say, but this is a good start.<br />
The second letter has not arrived yet. Why does that make me happy? It means we have to wait one more week. No news here means the complete building permit has been approved and we can start on the roofs and windows in one week.</p>
<p>Our plan is to open for rental guests the third week of March. Saturday March 20 will be the first time somebody can rent the first Super Gîte. That’s right before the Easter holidays.</p>
<p>In the next weeks we’ll have a reservation module online at the official <a title="Reservation Website" href="http://www.supergites.com" target="_blank">supergites.com</a> site, but any early birds who really can’t wait should contact us here: marco AT artmiks . nl . Because we would appreciate the risk you&#8217;d take by making a reservation on a project that isn’t even finished, we’ll have a very nice proposal waiting for you.</p>
<p>And you probably wonder what rent costs at the mill. A full week&#8217;s stay&#8211;Saturday 14.00 hours to Saturday 10.00 hours&#8211;will be 1200 euro in high season and 800 euro in low season. This includes double fireplace, four bedrooms each with its own bathroom, a 90-square meter living room, designer kitchen, and a warm welcome. It does not include electricity, wood for the fireplace, or cleaning. So, who’ll be our first guests?</p>
<h6 class="zemanta-related-title" style="font-size:1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://www.healthhype.com/what-does-septic-mean.html">What Does Septic Mean?</a> (healthhype.com)</li>
</ul>
<div class="zemanta-pixie" style="margin-top:10px;height:15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/0d326796-7284-4f07-a616-027d304e6b3a/"><img class="zemanta-pixie-img" style="float:right;" src="http://img.zemanta.com/reblog_e.png?x-id=0d326796-7284-4f07-a616-027d304e6b3a" alt="Reblog this post [with Zemanta]" /></a></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Curatenie interioara,exterioara,menajera]]></title>
<link>http://crysmarovstyle.wordpress.com/2009/10/16/curatenie-interioaraexterioaramenajera/</link>
<pubDate>Fri, 16 Oct 2009 21:48:28 +0000</pubDate>
<dc:creator>crysmarovstyle</dc:creator>
<guid>http://crysmarovstyle.wordpress.com/2009/10/16/curatenie-interioaraexterioaramenajera/</guid>
<description><![CDATA[CATEGORII DE CURATENIE : CURATENIE  DUPA CONTRUCTOR CURATENIE  INDUSTRIALA CURATENIE  EXTERIOARA SI/]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>CATEGORII DE CURATENIE :</p>
<ol>
<li><em>CURATENIE  DUPA CONTRUCTOR</em></li>
<li><em>CURATENIE  INDUSTRIALA</em></li>
<li><em>CURATENIE  EXTERIOARA SI/ SAU INTERIOARA</em></li>
<li><em>CURATARE  COVOARE, MOCHETE</em></li>
<li><em>TRATAMENTE  MARMURA, GRESIE, GRANIT,LINOLEUM,PARCHET</em></li>
<li><em>RECONDITIONARI</em></li>
</ol>
<p>cateva detalii:</p>
<ul>
<li><em><strong>Curatenie dupa constructor</strong></em></li>
</ul>
<p>curatare resturi si strangerea molozului</p>
<p>curatare mecanizata, spalare, lustruire a suprafetelor dure si a parchetului</p>
<p>spalare interior-exterior geamuri accesibile ,pervazuri,tocarie</p>
<p>spalare si dezinfectare gresie, faianta, grupuri sanitare, igienizari</p>
<p>curatare interioara a lifturilor</p>
<p>curatarea caloriferelor,prizelor, plintelor si balustradelor</p>
<p>evacuarea gunoiului si a resturilor in locuri amenajte si indicate de beneficiar</p>
<ul>
<li><em><strong>curatarea interioara</strong></em></li>
</ul>
<p>aspirare si spalare pardoseli</p>
<p>spalare gresie,faianta,oglinzi,grupuri sanitare</p>
<p>stergerea prafului</p>
<p>stergerea exterioara a obiectelor electrocasnice</p>
<p>curatare vitralii, balustrade,usi,tocuri,intrerupatoare,tablouri,lustre etc</p>
<p>tratarea mobilierului si echipamentelor de birou cu solutie antistatica</p>
<p>curatare, lustruire parchet cu solutii special adaptate tipului de parchet</p>
<p>curatare,lustruire mozaic, marmura</p>
<p>aerisire si odorizare incaperi</p>
<p>degajarea gunoiului menajer</p>
<ul>
<li><em><strong>curatenia industriala</strong></em></li>
</ul>
<p>aceasta se efectueaza in special in hale industriale unde este necesar a fi curatate de praf si pete tavane, grinzi, tubulaturi de aerisire, corpuri de iluminat, pardoseli sipereti</p>
<ul>
<li><em><strong>tratamente marmura ,gresie, granit, linoleum, parchet</strong></em></li>
</ul>
<p>se folosesc metode de intretinere si curatenie adaptate tipului de pardoseala si folosind solutii dedicate acestora</p>
<p>lucrari curente:</p>
<p>spalarea si lustruirea pardoselilor rezistente la apa</p>
<p>decaparea ,ceruirea si lustruirea pardoselilor</p>
<p>curatarea mecanizata si tratarea cu polish acrylic a pardoselilor neporoase din PVC ,gresie neglazurata, marmura, linoleum, granit</p>
<ul>
<li><em><strong>reconditionari suprafete deteriorate ale marmurei, granitului, parchetului, gresiei</strong></em></li>
<li><em><strong>curatarea covoarelor si mochetelor</strong></em></li>
</ul>
<p>curatare de ultima tehnologie cu spuma uscata</p>
<p>produse ecologice</p>
<p>produse ce permit uscarea rapida a tesaturii si care preintampina aparitia mirosuriloe neplacute</p>
<ul>
<li><em><strong>curatenie exterioara</strong></em></li>
</ul>
<p>curatare si intretinere parcuri, alei, parcari</p>
<p>curatare si intretinere spatii verzi</p>
<p>taierea gardului viu, a gazonului, a crengilor arbustilor si copacilor</p>
<p>deszapezirile aleilor si parcarilor in timpul iernii</p>
<p>evacuarea gunoiului aflat in cosurile de gunoi</p>
<p>ingrijirea plantelor naturale de interior si exterior</p>
<p><strong>Detalierea mai sus efectuata nu are pretentia de a fi una completa; de aceea, daca aveti nevoie de unele servicii pe care nu le regasiti mai sus, nu ezitati sa intrebati. Cu siguranta vom avea capacitatea si competenta de a va satisface  solicitarile.</strong></p>
<p><strong>De asemenea,  oferim</strong></p>
<ul>
<li><strong><em>servicii de inchiriere personal</em> </strong>pentru curatenie sau prestari servicii cum sunt: ajutor pentru petreceri, evenimente etc.</li>
<li><em><strong>servicii menajere</strong></em> cum ar fi : calcat rufe, efectuarea de cumparaturi in baza listei clientului , plata facturilor la utilitatile lunare</li>
</ul>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Quick Tips: C# inline event handlers and Reordering method / constructor parameters]]></title>
<link>http://royalexander.wordpress.com/2009/10/15/quick-tips-c-inline-event-handlers-and-reordering-method-constructor-parameters/</link>
<pubDate>Thu, 15 Oct 2009 11:03:58 +0000</pubDate>
<dc:creator>royalexander</dc:creator>
<guid>http://royalexander.wordpress.com/2009/10/15/quick-tips-c-inline-event-handlers-and-reordering-method-constructor-parameters/</guid>
<description><![CDATA[I always hate having to write an extra method to deal with event handlers and today it irritated me ]]></description>
<content:encoded><![CDATA[I always hate having to write an extra method to deal with event handlers and today it irritated me ]]></content:encoded>
</item>
<item>
<title><![CDATA[Sportrack LB 12, Una Super Motard con motor 1200 de Harley]]></title>
<link>http://dogsville.wordpress.com/2009/10/13/sportrack-lb-12-una-super-motard-con-motor-1200-de-harley/</link>
<pubDate>Tue, 13 Oct 2009 17:05:48 +0000</pubDate>
<dc:creator>dogsville</dc:creator>
<guid>http://dogsville.wordpress.com/2009/10/13/sportrack-lb-12-una-super-motard-con-motor-1200-de-harley/</guid>
<description><![CDATA[En The Kneeslider hay un post de  conversiones off-road sobre HD. Una vez más se confirma que hay ge]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class="alignnone size-full wp-image-768" title="st2-600" src="http://dogsville.wordpress.com/files/2009/10/st2-600.jpg" alt="st2-600" width="460" height="376" /></p>
<p>En The Kneeslider hay un <a href="http://thekneeslider.com/archives/2009/10/09/harley-davidson-sportster-off-road-conversions/">post</a> de  conversiones off-road sobre HD. Una vez más se confirma que hay gente &#8220;pa to&#8221;, Christian Dubreucq, jefe de <a href="http://www.kilometre66.com">Kilometre 66</a>, es el autor de ésta. Una Sportster 1200 anda sobre los 230 kg., la Sportrack LB 12 anuncia 160 kg. en seco. Me gusta más el resultado de la transformación a SM de la <a href="http://dogsville.wordpress.com/2009/09/01/honda-africa-twin-supermotard-by-picota/">Africa Twin</a>.</p>
<p><!--more--><img class="alignnone size-full wp-image-769" title="st1-600" src="http://dogsville.wordpress.com/files/2009/10/st1-600.jpg" alt="st1-600" width="460" height="318" /></p>
<p><img class="alignnone size-full wp-image-770" title="st4" src="http://dogsville.wordpress.com/files/2009/10/st4.jpg" alt="st4" width="460" height="518" /></p>
<p>Más info <a href="http://www.planete-biker.com/sportster-supermoto.php">akí</a>.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Asa lucreaza unii...]]></title>
<link>http://chrispg77.wordpress.com/2009/10/09/asa-lucreaza-unii/</link>
<pubDate>Thu, 08 Oct 2009 21:15:12 +0000</pubDate>
<dc:creator>chrispg77</dc:creator>
<guid>http://chrispg77.wordpress.com/2009/10/09/asa-lucreaza-unii/</guid>
<description><![CDATA[Din motive obiective, am să încerc și o traducere în engleză a articolului. Nu am multe de spus și a]]></description>
<content:encoded><![CDATA[Din motive obiective, am să încerc și o traducere în engleză a articolului. Nu am multe de spus și a]]></content:encoded>
</item>
<item>
<title><![CDATA[Constructores del infierno]]></title>
<link>http://ciudadanosunidad.wordpress.com/2009/10/02/constructores-del-infierno/</link>
<pubDate>Fri, 02 Oct 2009 13:03:18 +0000</pubDate>
<dc:creator>Andrés Marín de Pedro</dc:creator>
<guid>http://ciudadanosunidad.wordpress.com/2009/10/02/constructores-del-infierno/</guid>
<description><![CDATA[Constructores del infierno. La próxima manifestación del 17 de octubre en favor de la mujer y la vid]]></description>
<content:encoded><![CDATA[Constructores del infierno. La próxima manifestación del 17 de octubre en favor de la mujer y la vid]]></content:encoded>
</item>
<item>
<title><![CDATA[Using PHP5 object constructors in WP Widget API]]></title>
<link>http://markjaquith.wordpress.com/2009/09/29/using-php5-object-constructors-in-wp-widget-api/</link>
<pubDate>Tue, 29 Sep 2009 17:15:40 +0000</pubDate>
<dc:creator>Mark Jaquith</dc:creator>
<guid>http://markjaquith.wordpress.com/2009/09/29/using-php5-object-constructors-in-wp-widget-api/</guid>
<description><![CDATA[Someone mentioned to me that they couldn&#8217;t use PHP5-style object constructors when using the W]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Someone mentioned to me that they couldn&#8217;t use PHP5-style object constructors when using the WP Widget API. I looked into it, and it turns out it does work. Example:</p>
<pre class="brush: php;">
class My_Widget extends WP_Widget {
	function __construct() {
		$widget_ops = array( 'classname' =&#62; 'css-class', 'description' =&#62; 'Description' );
		parent::__construct( 'css-class', 'Title', $widget_ops );
	}
	// Rest of your widget subclass goes here
}
</pre>
<p>The key is using <code>parent::__construct()</code> instead of <code>$this-&#62;WP_Widget()</code>.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[C# do not inherit parent class constructor]]></title>
<link>http://maxi326.wordpress.com/2009/09/28/c-do-not-inherit-parent-class-constructor/</link>
<pubDate>Mon, 28 Sep 2009 14:01:33 +0000</pubDate>
<dc:creator>maxi326</dc:creator>
<guid>http://maxi326.wordpress.com/2009/09/28/c-do-not-inherit-parent-class-constructor/</guid>
<description><![CDATA[C# inheritance do not inherit parent class constructor. If you want to invoke the parent constructor]]></description>
<content:encoded><![CDATA[C# inheritance do not inherit parent class constructor. If you want to invoke the parent constructor]]></content:encoded>
</item>
<item>
<title><![CDATA[CSI (Crime Scene Investigation)]]></title>
<link>http://supergites.wordpress.com/2009/09/20/crime-scene-investigation/</link>
<pubDate>Sun, 20 Sep 2009 19:56:01 +0000</pubDate>
<dc:creator>Marco de Boer</dc:creator>
<guid>http://supergites.wordpress.com/2009/09/20/crime-scene-investigation/</guid>
<description><![CDATA[When we arrived at the crime scene it was close to 10 a.m. We expected someone to be there, but the ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>When we arrived at the crime scene it was close to 10 a.m. We expected someone to be there, but the house was locked. We headed back to the car to pick up the keys and to grab our phone. “Why is nobody here?” we wondered. The builders should have been there working&#8211;they promised to start at 8:00. But there were no sounds of drilling or hammering; the property was deserted.</p>
<p>After Sara opened the door we were confronted with a scene of delict. Next to the stairs there was a broken cup, a splash of coffee, a smudge of blood, a trace of driblets, and a Stanley knife. Grissom said, “This can’t be right. Something&#8217;s missing.” We looked around and followed a small trail of blood to the locked front door. “The victim is still alive,” Grissom observed. He continued with his findings. &#8220;There must have been two people, as the door is locked without any smudging of blood. But where did the blood on the floor come from? Did the victim cut himself or was he attacked?” The Stanley knife did not look as if it had just been used&#8211;the blade was pulled back. I picked it up. “No blood on the knife,” I announced.</p>
<p>Grissom went up the stairs to investigate the situation. I followed him admiringly. “What if someone fell down, losing his mug, and fell onto something sharp like&#8230;?&#8221; I went over the movements. “Like a shard of mug?” “We only follow the facts!” Grissom said with certainty. “Assumptions have many shapes, reality only one.” Smart guy. I bucked up.</p>
<p>We needed to find Stephane or Jamal, his assistant. Either one should know what had happened. We walked up the hill to Stephane&#8217;s house and we ran into Arthur, a fairy-blond boy with deep blue eyes&#8211;the 7-year-old son of Stephane. I gave him my regular greeting, “Bonjour Arthur, çava?” “Bien merci,” came his weary reply. “Ou est ton papa?” I asked him. “Au l’hopital.” He answered without a wink and continued his play.</p>
<p>There are moments you just wish you could speak all languages of the world. <em>D’accord</em>. Stephane is at the hospital. Not good. The blood must be his.</p>
<p>To make a long story short, Stephane did fall off the stairs and cut his hand deeply. Jamal took him to the hospital in Reims where he had to stay for two days. He needed surgery since he&#8217;d cut himself quite deeply and hit a tendon. He can’t use his right hand for some time: the delay will be at least three weeks.</p>
<div id="attachment_430" class="wp-caption alignnone" style="width: 610px"><img class="size-full wp-image-430" title="Hand_Stephane" src="http://supergites.wordpress.com/files/2009/09/hand_stephane.jpg" alt="No igh Fives for Stephane." width="600" height="338" /><p class="wp-caption-text">No High Fives for Stephane.</p></div>
<p>“Oh well, we need to wait for the building permit anyway.”</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Out-of-reach fruit]]></title>
<link>http://nickdiscovers.wordpress.com/2009/09/16/out-of-reach-fruit/</link>
<pubDate>Wed, 16 Sep 2009 20:40:09 +0000</pubDate>
<dc:creator>nicholasbarry</dc:creator>
<guid>http://nickdiscovers.wordpress.com/2009/09/16/out-of-reach-fruit/</guid>
<description><![CDATA[This work (my description and pictures of my contraption here) is in the Public Domain.  That means ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><em><br />
This work <a rel="license" href="http://creativecommons.org/licenses/publicdomain/"><img class="alignleft" src="http://i.creativecommons.org/l/publicdomain/88x31.png" alt="Creative Commons License" width="88" height="31" /></a>(my description and pictures of my contraption </em><em>here) is in the <a rel="license" href="http://creativecommons.org/licenses/publicdomain/">Public Domain</a>.  That means you can use it however you like &#8211; I&#8217;m sharing it!</em></p>
<p>In one of Aesop&#8217;s fables, a fox tries to jump for some grapes he&#8217;d like to eat.  After realizing they&#8217;re too high for him to reach, he gives up and walks away, muttering that they were probably sour anyway.</p>
<p>What he should have done, of course, was get me on the job!  Because I was faced with a similar problem last year in the form of some tantalizing coconuts about 15 feet out of reach. And you had better believe I didn&#8217;t walk away frustrated.</p>
<p>At hand were some construction materials &#8211; a long piece of bamboo, a long 2&#215;4, some bricks, a wire, a shipping pallet, plenty of sand, a tire, and a hammer.  How would you use these to get the coconuts down?</p>
<p>First my family and I tried using the bamboo pole and the 2&#215;4 (both of which were long enough to reach the coconuts) to knock them off.  The 2&#215;4 was far too heavy to be wielded easily, though, and the bamboo wasn&#8217;t strong enough to knock the coconuts off.  We decided throwing bricks probably wouldn&#8217;t work, and wasn&#8217;t advisable considering that there were buildings around.</p>
<p>Finally I had an idea.  I made a loop of wire around the end of the bamboo pole, then maneuvered the loop around one of the coconuts.  Once it was over the top of the coconut, I could pull on the stem of the coconut, and the wire would tighten around it.  I tugged down, which yanked the coconut off.  Voila!  We had our fill of coconuts that day.  Can you think of other ways to get the coconuts down given the materials at hand?</p>
<p>This got me thinking about how to create a fruit picker that I could use in future years.  Y&#8217;see, my family comes to Hawaii every year, and we always pick lots of local fruit &#8211; mangoes, coconuts, breadfruit, papayas, passion fruit, guavas, etc.  There are usually many tasty-looking fruit far out of reach.  I didn&#8217;t think I could count on finding a long piece of bamboo near every fruit tree that caught my eye, and knew we couldn&#8217;t fit anything nearly that long in our car.  What to do?</p>
<p>My first thought was to buy some pipes and pipe fittings so I could screw together a long pole.  That way I could fit it in my suitcase, and reassemble it whenever I wanted.  That seemed like a decent solution, except that I didn&#8217;t really want to spend more than about $15, or more than 30 minutes, making my solution.  Was there a cheaper way to do this?</p>
<p>I realized, finally, that a pole like the bamboo pole we initially found (or like the screw-together pole I envisioned) actually has two important properties which needn&#8217;t be part of the same object.  The first property is rigidity &#8211; something rigid to get the loop of wire up to the desired fruit.  The second property is tensile strength &#8211; the ability to pull down on the fruit.  A pole has both, but there are other possibilities.</p>
<p>I realized that a tent-pole is collapsible, lightweight, and easily provides the necessary rigidity.  And a rope is lightweight, and provides the necessary tensile strength.  I could tie a loop of wire to the end of a tent pole, and tie a rope to the loop of wire.  I could lift the loop with the tent pole, then pull on the fruit with the rope!</p>
<p>Upon searching my tent bag, I realized all my tent-poles were 4-way tent-poles, not single tent poles, so they wouldn&#8217;t work.  I ended up using PVC pipe segments instead.  (I drilled a hole in the end of one pipe segment for the wire to loop through.)</p>
<p>Then it was easy to loop together a wire and rope to pull down all the fruit I could handle!</p>
<div class="wp-caption alignnone" style="width: 463px"><img src="http://photos-b.ak.fbcdn.net/hphotos-ak-snc1/hs250.snc1/9732_793091516113_3203905_45159337_5620484_n.jpg" alt="Me with PVC" width="453" height="604" /><p class="wp-caption-text">Me with PVC</p></div>
<div class="wp-caption alignnone" style="width: 614px"><img title="I used 2-foot lengths of 1/2-inch PVC pipe" src="http://photos-c.ak.fbcdn.net/hphotos-ak-snc1/hs270.snc1/9732_793091521103_3203905_45159338_5009873_n.jpg" alt="I used 2-foot lengths of 1/2-inch PVC pipe" width="604" height="453" /><p class="wp-caption-text">I used 2-foot lengths of 1/2-inch PVC pipe</p></div>
<address class="mceTemp"></address>
<dl class="wp-caption alignnone">
<dt class="wp-caption-dt"><img title="1/2-inch couplings hold the pipes together, but its just a friction fit, which is why the PVC doesnt provide the necessary tensile strength." src="http://photos-d.ak.fbcdn.net/hphotos-ak-snc1/hs270.snc1/9732_793091526093_3203905_45159339_6918763_n.jpg" alt="1/2-inch couplings hold the pipes together, but its just a friction fit, which is why the PVC doesnt provide the necessary tensile strength." width="453" height="604" /></dt>
<dd class="wp-caption-dd">1/2-inch couplings hold the pipes together, but it&#8217;s just a friction fit, which is why the PVC doesn&#8217;t provide the necessary tensile strength.</dd>
</dl>
<div class="wp-caption alignnone" style="width: 463px"><img title="The pole is made up of 6 segments (12 feet total), so combined with my height and reach, I can reach almost to 20 feet off the ground!" src="http://photos-f.ak.fbcdn.net/hphotos-ak-snc1/hs250.snc1/9732_793091536073_3203905_45159341_7821536_n.jpg" alt="The pole is made up of 6 segments (12 feet total), so combined with my height and reach, I can reach almost to 20 feet off the ground!" width="453" height="604" /><p class="wp-caption-text">The pole is made up of 6 segments (12 feet total), so combined with my height and reach, I can reach almost to 20 feet off the ground!</p></div>
<div class="wp-caption alignnone" style="width: 463px"><img title="The pole bundles down to a pretty small size." src="http://photos-h.ak.fbcdn.net/hphotos-ak-snc1/hs250.snc1/9732_793091551043_3203905_45159343_3352176_n.jpg" alt="The pole bundles down to a pretty small size." width="453" height="604" /><p class="wp-caption-text">The pole bundles down to a pretty small size.</p></div>
<div class="wp-caption alignnone" style="width: 463px"><img title="Since I already own rope and wire, the whole project cost me $6.50.  If I had had a suitable tent pole, it would have been free." src="http://photos-a.ak.fbcdn.net/hphotos-ak-snc1/hs270.snc1/9732_793091556033_3203905_45159344_8007931_n.jpg" alt="Since I already own rope and wire, the whole project cost me $6.50.  If I had had a suitable tent pole, it would have been free." width="453" height="604" /><p class="wp-caption-text">Since I already own rope and wire, the whole project cost me $6.50.  If I had had a suitable tent pole, it would have been free.</p></div>
<div class="wp-caption alignnone" style="width: 614px"><img title="Heres the loop of wire with the rope tied to it." src="http://photos-d.ak.fbcdn.net/hphotos-ak-snc1/hs270.snc1/9732_793091575993_3203905_45159347_5318648_n.jpg" alt="Heres the loop of wire with the rope tied to it." width="604" height="453" /><p class="wp-caption-text">Here&#39;s the loop of wire with the rope tied to it.</p></div>
<div class="wp-caption alignnone" style="width: 463px"><img title="This jackfruit is no match for my harvester!" src="http://photos-e.ak.fbcdn.net/hphotos-ak-snc1/hs250.snc1/9732_793091585973_3203905_45159348_7041681_n.jpg" alt="This jackfruit is no match for my harvester!" width="453" height="604" /><p class="wp-caption-text">This jackfruit is no match for my harvester!</p></div>
<div class="wp-caption alignnone" style="width: 614px"><img title="Here Im getting a breadfruit down.  Ive already positioned the loop of wire, and Im pulling on the rope.  This breadfruit was attached firmly enough that I had to drop the pole (letting it hang) and pull the rope with both hands." src="http://photos-e.ak.fbcdn.net/hphotos-ak-snc1/hs250.snc1/9732_793091635873_3203905_45159356_2507836_n.jpg" alt="Here Im getting a breadfruit down.  Ive already positioned the loop of wire, and Im pulling on the rope.  This breadfruit was attached firmly enough that I had to drop the pole (letting it hang) and pull the rope with both hands." width="604" height="453" /><p class="wp-caption-text">Here I&#39;m getting a breadfruit down.  I&#39;ve already positioned the loop of wire, and I&#39;m pulling on the rope.  This breadfruit was attached firmly enough that I had to drop the pole (letting it hang) and pull the rope with both hands.</p></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Initialization Blocks - Java]]></title>
<link>http://shadab5.wordpress.com/2009/09/16/initialization-blocks/</link>
<pubDate>Wed, 16 Sep 2009 02:54:46 +0000</pubDate>
<dc:creator>Faraah Dabhoiwala</dc:creator>
<guid>http://shadab5.wordpress.com/2009/09/16/initialization-blocks/</guid>
<description><![CDATA[Well, back to JAVA Hmm, so an Initialization Block &#8211; the name itself suggests that it has some]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Well, back to JAVA <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Hmm, so an Initialization Block &#8211; the name itself suggests that it has something related to initialization &#8211; of what? Of Objects.</p>
<p>Of Objects because whenever we create an object in Java using &#8220;new&#8221; keyword the constructor is called and basically constructor is meant for initialization of instance(member)(Object) variables.</p>
<p>Let’s take a look at a very simple example</p>
<p>class Parent</p>
<p>{</p>
<p>static { System.out.println(&#8220;Parent static 1&#8243;);}    //#1</p>
<p>{ System.out.println(&#8220;Parent Instance Block 1&#8243;);}          //#2</p>
<p>static { System.out.println(&#8220;Parent static 2&#8243;);}</p>
<p>{ System.out.println(&#8220;Parent Instance Block 2&#8243;);}</p>
<p>Parent()</p>
<p>{</p>
<p>System.out.println(&#8220;Parent constructor&#8221;);</p>
<p>}</p>
<p>}</p>
<p>class InitializationBlocks</p>
<p>{</p>
<p>public static void main(String args[])</p>
<p>{</p>
<p>Parent p1=new Parent();</p>
<p>}</p>
<p>}</p>
<p>Now look above we have some blocks of code&#8230;</p>
<p>Some are marked static and some are simply lying with no keyword attached to them&#8230;</p>
<p>The one marked static (see comment #1) are Static Initialization Blocks, they are loaded</p>
<p>when the class is loaded. Well, you can use them to initialize your static variables. Nice na?</p>
<p>And the one marked &#8230;marked? Have I marked them? (Oh c&#8217;mon see comment #2) those are Instance Initialization Blocks, they are basically called when you create objects of your class. Suppose if you want a similar work to be done for all the objects then you can put it in Instance IB.. Just Try It..!!</p>
<p>Static IB will be called only once when the class is loaded and Instance IB will be called every time when you create an object of your class.</p>
<p>And finally Constructor will be called.</p>
<p>Hey why don’t you look at the output of the above program?</p>
<blockquote><p>Parent static 1</p>
<p>Parent static 2</p>
<p>Parent Instance Block 1</p>
<p>Parent Instance Block 2</p>
<p>Parent constructor</p></blockquote>
<p>Now what if we have an inheritance tree&#8230;</p>
<p>In that case &#8230;do you know how the constructors are called in case if you have an inheritance tree??</p>
<p>grandparent, parent and then child&#8230;m I rite?</p>
<p>So just remember this sequence&#8230;</p>
<p>First grandparent will be loaded then parent and then child will be loaded &#8230;.so</p>
<p>Static IB will run&#8230;</p>
<p>Then Instance IB of grandparent followed by constructor of grandparent</p>
<p>Next Instance IB of parent followed by constructor of parent</p>
<p>Finally, Instance IB of child then constructor of child</p>
<p>Here is the code..</p>
<p>Have a look..</p>
<p>//Initialization Blocks</p>
<p>class GrandParent</p>
<p>{</p>
<p>GrandParent()</p>
<p>{</p>
<p>System.out.println(&#8220;GrandParent constructor&#8221;);</p>
<p>}</p>
<p>static { System.out.println(&#8220;GrandParent static 1&#8243;);}</p>
<p>{ System.out.println(&#8220;GrandParent Instance Block 1&#8243;);}</p>
<p>static { System.out.println(&#8220;GrandParent static 2&#8243;);}</p>
<p>{ System.out.println(&#8220;GrandParent Instance Block 1&#8243;);}</p>
<p>}</p>
<p>class Parent extends GrandParent</p>
<p>{</p>
<p>Parent()</p>
<p>{</p>
<p>System.out.println(&#8220;Parent constructor&#8221;);</p>
<p>}</p>
<p>static { System.out.println(&#8220;Parent static 1&#8243;);}</p>
<p>{ System.out.println(&#8220;Parent Instance Block 1&#8243;);}</p>
<p>static { System.out.println(&#8220;Parent static 2&#8243;);}</p>
<p>{ System.out.println(&#8220;Parent Instance Block 2&#8243;);}</p>
<p>}</p>
<p>class Child extends Parent</p>
<p>{</p>
<p>Child()</p>
<p>{</p>
<p>System.out.println(&#8220;Child constructor&#8221;);</p>
<p>}</p>
<p>static { System.out.println(&#8220;Child static 1&#8243;);}</p>
<p>{ System.out.println(&#8220;Child Instance Block 1&#8243;);}</p>
<p>static { System.out.println(&#8220;Child static 1&#8243;);}</p>
<p>{ System.out.println(&#8220;Child Instance Block 2&#8243;);}</p>
<p>}</p>
<p>class InitializationBlocks</p>
<p>{</p>
<p>public static void main(String args[])</p>
<p>{</p>
<p>Child c1=new Child();</p>
<p>}</p>
<p>}</p>
<p>Ok so what will be the output its simple right?</p>
<p>Isn’t it?</p>
<p>If you have understood this topic then you can put the output in comment&#8230;please do this</p>
<p>favour so that I can save my keystrokes&#8230;.lol</p>
<p>Regards,</p>
<p>Faraah Dabhoiwala.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[basic of C# (part 21)]]></title>
<link>http://sevenlamp.wordpress.com/2009/09/10/static_constructor/</link>
<pubDate>Thu, 10 Sep 2009 03:01:33 +0000</pubDate>
<dc:creator>sevenlamp</dc:creator>
<guid>http://sevenlamp.wordpress.com/2009/09/10/static_constructor/</guid>
<description><![CDATA[ဟိုေန႔က ကြၽန္ေတာ္တို႔ Instant constructor အေၾကာင္းသိခဲ႔ျပီးျပီ။ Constructor လို႔ဆိုလိုက္တာနဲ႔ progra]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;">ဟိုေန႔က ကြၽန္ေတာ္တို႔ <span style="color:#ff00ff;">Instant constructor</span> အေၾကာင္းသိခဲ႔ျပီးျပီ။ Constructor လို႔ဆိုလိုက္တာနဲ႔ programmer ေတာ္ေတာ္မ်ားမ်ား ေျပးျမင္မီၾကတာလည္း ဒီ Instant Constructor ပါပဲ။ အသံုးအမ်ားဆံုးနဲ႔ မသံုးမျဖစ္ Constructor လည္းျဖစ္ပါတယ္။ Instant Constructor အျပင္ တျခား လူသိနည္းတဲ႔ constructor ၂ ခုရွိပါေသးတယ္။ အဲ့ဒါေတြကေတာ့ Private Constructor နဲ႔ Static Constructor တို႔ပါပဲ။ Instant Constructor ကို public constructor လိုလဲ ေခၚပါေသးတယ္။ constructor ရဲ႕ ေရွ႕မွာ public keyword ကိုေရးေပးရပါတယ္။ ဘာလို႔လဲ ဆိုေတာ့ class ကို object ေဆာက္ဖို႔အတြက္ တျခား class ေတြ ထဲမွာ ေခၚသံုးလို႔ ရေအာင္ပါ။ private လို႔ေရးလိုက္လို႔ရွိရင္ေတာ့ အဲ့ဒီ <span style="color:#ff00ff;">private constructor</span> ပါတဲ႔ class ကို object ေဆာက္လုိ႔ မရေတာ့ပါဘူး။ ဒါေၾကာင့္ object မေဆာက္ေစခ်င္တဲ႔ class ေတြမွာ private constructor ကိုေရးေပးေလ့ရွိပါတယ္။ ဥပမာ…</p>
<div style="background-color:lightgray;padding:5px;">
<pre>using System;
class Constant
{
    private Constant()
    {}
    public static string DeveloperName = "Sevenlamp";
}
class Program
{
    static void Main()
    {
    <span style="color:#ff0000;">//Constant c = new Constant(); // error</span>
        Console.WriteLine(<span style="color:#339966;">Constant.DeveloperName</span>);
        Console.Read();
    }
}</pre>
</div>
<p style="text-align:justify;">ဒီ program ေလးမွာ private constructor ေၾကျငာထားလို႔ Constant class ကို object ေဆာက္လို႔ မရပါဘူး။ ဒါဆိုရင္ အဲ့ဒီ class ထဲမွာ ရွိတဲ႔ member data ေတြကို ဘယ္လို ျပန္ေခၚသံုးမလဲ။ ဟုတ္ကဲ႔ ကြၽန္ေတာ္တို႔ private constructor ရွိတဲ႔ class ေတြထဲက member ေတြကို ျပန္သံုးလို႔ ရေအာင္ အဲ့ဒီ member ေတြကို static keyword နဲ႔ တြဲ႔ျပီး ေၾကျငာေပးရပါမယ္။ ဟုတ္ျပီ အဲ့ဒီ variable ေတြကို static variable တနည္းအားျဖင့္ class variable လို႔ေခၚပါတယ္။ အဲ့ဒီ class variable ေတြကို ေခၚဖို႔အတြက္ သူရွိေနတဲ႔ class ကုိ object ေဆာက္စရာ မလိုပါဘူး။ program မွာ ေခၚထားသလို class name ကေနတဆင့္ ေခၚသံုးလို႔ ရပါတယ္။ ေနာက္ constructor တစ္မ်ိဳးကေတာ့ static constructor ပါ။ class တစ္ခုအတြင္းမွာ ရွိတဲ႔ static member ေတြအလုပ္မလုပ္ခင္ အရင္ဆံုး static constructor က အလုပ္လုပ္ေလ့ရွိပါတယ္။ ခုန program ေလးကိုပဲ static constructor ေလးထည့္ျပီး ျပန္ run ၾကည့္ရေအာင္။</p>
<div style="background-color:lightgray;padding:5px;">
<pre>using System;
class Constant
{
    private Constant()
    {}
    static Constant()
    {
        Console.WriteLine("print from static constructor");
        DeveloperName = "Sevenlamp";
    }
    public static string DeveloperName;
}
class Program
{
    static void Main()
    {
        Console.WriteLine(Constant.DeveloperName);
        Console.WriteLine(Constant.DeveloperName);
        Console.Read();
    }
}</pre>
</div>
<p style="text-align:justify;">Program run လိုက္ရင္ “Sevenlamp” ဆိုတဲ႔ စာသားကို မရိုက္ျပခင္မွာ “print from static constructor” ဆိုတဲ႔ စာသားကိုအရင္ ရိုက္သြားတာ ေတြ႔ရမွာပါ။ ဒါေပမယ့္ တစ္ခုသိထားရမွာက static constructor က static member ေတြကို မေခၚခင္ ပထမဆံုး တစ္ၾကိမ္ပဲ အလုပ္လုပ္ပါတယ္။ ဒါေၾကာင့္ ကြၽန္ေတာ္က developername ကို ၂ ၾကိမ္ရိုက္ျပထားေပမယ့္  “print from static constructor” ကေတာ့ တစ္ၾကိမ္ပဲ ေပၚလာမွာျဖစ္ပါတယ္။ ကဲ ဒီေလာက္ဆို ကြၽန္ေတာ္တို႔ constructor ေတြ အေၾကာင္း နည္းနည္းနားလည္လာျပီ ထင္ပါတယ္။</p>
<p style="text-align:justify;">ေနာက္ပိုဒ့္မွာ static member နဲ႔ instant member အေၾကာင္း ဆက္ေျပာပါ့မယ္။</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
