<?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>exception &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/exception/</link>
	<description>Feed of posts on WordPress.com tagged "exception"</description>
	<pubDate>Sat, 28 Nov 2009 03:52:54 +0000</pubDate>

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

<item>
<title><![CDATA[Is it okay to text?]]></title>
<link>http://singleandalmost30.wordpress.com/2009/11/27/is-it-okay-to-text/</link>
<pubDate>Fri, 27 Nov 2009 14:33:10 +0000</pubDate>
<dc:creator>singleandalmost30</dc:creator>
<guid>http://singleandalmost30.wordpress.com/2009/11/27/is-it-okay-to-text/</guid>
<description><![CDATA[Is it okay to text your ex or anyone else for that mater during the Holidays?  Yesterday, being Than]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Is it okay to text your ex or anyone else for that mater during the Holidays?  Yesterday, being Thanksgiving and all, I received an enormous amount of &#8220;Happy Thanksgiving&#8221;, &#8220;Happy Turkey Day&#8221;, &#8220;Save a turkey&#8221; (from my vegetarian friends), etc&#8230; text messages.  I love to text, just like the next person, but I really hate Holiday texts!</p>
<p>They are so impersonal and generic.  I guess on one hand, I should be grateful so many people wanted to wish me a happy day&#8230;but what if your ex sends you a text?  Do you respond, even if you are trying to move on?  Are Holidays the exception?  Is it okay to text?</p>
<p>I don&#8217;t know, the jury is still out on this question.  Long story short, the ex texted me yesterday.  I didn&#8217;t text him or anyone else back for that matter.  I don&#8217;t know why he still has my number or contact info and why he continues to use them?  I&#8217;m trying my best here, but he&#8217;s making it hard!</p>
<p>Maybe it&#8217;s not about me and maybe he was just trying to be nice and festive&#8230;only time will tell.  Until then, I&#8217;m going to do my best to stay clear of my phone for a while.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Ruby: The Basics of Reading a File]]></title>
<link>http://juggernautfreak.wordpress.com/2009/11/20/ruby-the-basics-of-reading-a-file/</link>
<pubDate>Fri, 20 Nov 2009 06:48:47 +0000</pubDate>
<dc:creator>juggernautfreak</dc:creator>
<guid>http://juggernautfreak.wordpress.com/2009/11/20/ruby-the-basics-of-reading-a-file/</guid>
<description><![CDATA[Example 1 &#8211; Read File and close counter = 1 file = File.new(&quot;readfile.rb&quot;, &quot;r]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Example 1 &#8211; Read File and close</strong></p>
<pre class="brush: css;">
counter = 1
file = File.new(&#34;readfile.rb&#34;, &#34;r&#34;)
while (line = file.gets)
    puts &#34;#{counter}: #{line}&#34;
    counter = counter + 1
end
file.close
</pre>
<p><strong>Example 2 &#8211; Pass file to block</strong></p>
<pre class="brush: css;">

File.open(&#34;readfile.rb&#34;, &#34;r&#34;) do &#124;infile&#124;
while (line = infile.gets)
    puts &#34;#{counter}: #{line}&#34;
    counter = counter + 1
    end
end
</pre>
<p><strong>Example 3 &#8211; Read File with Exception Handling</strong></p>
<pre class="brush: css;">

counter = 1
begin
    file = File.new(&#34;readfile.rb&#34;, &#34;r&#34;)
    while (line = file.gets)
    puts &#34;#{counter}: #{line}&#34;
    counter = counter + 1
end
file.close

rescue =&#62; err
    puts &#34;Exception: #{err}&#34;
    err
end
</pre>
<p><strong>Modes</strong><br />
r &#8211; Read-only, starts at beginning of file (default mode).<br />
r+ &#8211; Read-write, starts at beginning of file.<br />
w &#8211; Write-only, truncates existing file to zero length or creates a new file for writing.<br />
w+ &#8211; Read-write, truncates existing file to zero length or creates a new file for reading and writing.<br />
a &#8211; Write-only, starts at end of file if file exists, otherwise creates a new file for writing.<br />
a+ &#8211; Read-write, starts at end of file if file exists, otherwise creates a new file for reading and writing.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Uncaught exception 'Zend_Gdata_App_HttpException' with message 'Expected response code 200, got 400]]></title>
<link>http://mooncakephp.wordpress.com/2009/11/17/uncaught-exception-zend_gdata_app_httpexception-with-message-expected-response-code-200-got-400/</link>
<pubDate>Tue, 17 Nov 2009 12:18:05 +0000</pubDate>
<dc:creator>joetsuihk</dc:creator>
<guid>http://mooncakephp.wordpress.com/2009/11/17/uncaught-exception-zend_gdata_app_httpexception-with-message-expected-response-code-200-got-400/</guid>
<description><![CDATA[今天我在使用 gdata(來自 PHP Zend framework) 嘗試存取一段youtube video的影片的時候遇到了標題的error. 我使用了半個小時設定一個正確的 Installtio]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>今天我在使用 <a href="http://code.google.com/intl/zh-TW/apis/gdata/articles/php_client_lib.html#gdata-installation">gdata</a>(來自 PHP Zend framework) 嘗試存取一段youtube video的影片的時候遇到了標題的error. 我使用了半個小時設定一個正確的 InstalltionChecker.php, 先排除我的伺服器已經裝有 php-xml libraries, ssl libraries, 但仍然無解. Google 沒有提供一個合用的答案.</p>
<p>最後我發現, 是youtube 判定該 video 違反了某些版權協定, 所以返回了 400錯誤碼, 正解是:</p>
<pre class="brush: php;">
&#60;?php
try {
  $yt = new Zend_Gdata_YouTube();
  $videoEntry = $yt-&#62;getVideoEntry($key);
} catch(Zend_Gdata_App_HttpException e) {
  //handle error
}
?&#62;
</pre>
<p>Today i encountered the above error when i am trying to fetch youtube data given the video id using PHP Zend framework suggested by <a href="http://code.google.com/intl/zh-TW/apis/gdata/articles/php_client_lib.html#gdata-installation">google</a>. I had made half an hour top setup the InstallationChecker.php, which shows the installation had no errors. I further debug using xdebug, cross check php-xml libraries, ssl libraries on the server, but no clue. Google do not provide a solution.</p>
<p>In the end, youtube banned the video because of copyrights, but just throw a response code 400&#8230; to solve it:</p>
<pre class="brush: php;">
&#60;?php
try {
  $yt = new Zend_Gdata_YouTube();
  $videoEntry = $yt-&#62;getVideoEntry($key);
} catch(Zend_Gdata_App_HttpException e) {
  //handle error
}
?&#62;
</pre>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[2009 Martinique Jazz Festival Lineup Released ]]></title>
<link>http://pilaut.wordpress.com/2009/11/15/martinique-jazz-festival/</link>
<pubDate>Sun, 15 Nov 2009 22:51:01 +0000</pubDate>
<dc:creator>kronaz</dc:creator>
<guid>http://pilaut.wordpress.com/2009/11/15/martinique-jazz-festival/</guid>
<description><![CDATA[Melodious musique de jazz will fill the air once more this fall as the Caribbean&#8217;s longest run]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Melodious musique de jazz will fill the air once more this fall as the Caribbean&#8217;s longest running jazz festival, the <a href="http://pilaut.wordpress.com">Martinique Jazz Festival</a>, will be held November 26 to December 6. The festival, which dates back to 1983, has long provided a showcase for local and international artists to share their talents with a lively and appreciative crowd of music lovers from all corners of the globe. This year will be no exception, as a solid line-up of musicians are set to combine with interactive master classes, film screenings and exhibits to create the ultimate jazz experience under the warm Caribbean sun.</p>
<p>Among the <a href="http://mp3vita.net">international artists </a>scheduled to perform are Elizabeth Kontomanou (France), the Kenny Barron Trio (USA), and Lionel Loueke (Bénin/USA). A highlight of the event will no doubt be the performance of steel pan master, Andy Narell (USA), who will team with calypso legend, Relator (Trinidad) to perform innovative &#8220;PanJazz&#8221; selections from their new album, University of Calypso.</p>
<p>Muriel Wiltord, director Americas for the Martinique Promotion Bureau/CMT USA, commented on the festival, stating: &#8220;Over the years, the Martinique Jazz Festival has attracted some of the biggest names in jazz and scores of their fans to our shores. We look forward to more of the same in 2009 and beyond.&#8221;</p>
<p>Jazz luminaries who have performed at the Martinique Jazz Festival in years past include the Marsalis brothers, Dee Dee Bridgewater, Paquito d&#8217;Rivera, Chucho Valdes, and many more.</p>
<p><a href="http://pilaut.wordpress.com/2009/11/09/joe-jackson-piano-jazz-cool/">Martinique Jazz Festival </a>performances will be held primarily at L&#8217;Atrium, in the capital city, Fort-de-France, with additional concerts and events held in the towns of Sainte Anne, Sainte Marie, Lamentin, Riviere Salee, Sainte Luce and the La Pagerie Museum in Trois-Ilets, childhood home of Empress Josephine.</p>
<p>The Caribbean island with French flair, The Isle of Flowers, The Rum Capital of the World, The Isle of the Famed Poet (Aimé Césaire) – by any one of its many names Martinique remains one of the most alluring and enchanting destinations in the world; as unforgettable as a summer romance or a first kiss. Named &#8220;Best Gourmet Island of the Year 2008&#8243; by Caribbean World Magazine, Martinique is an overseas region of France that stirs the passions with distinctive culinary delights, awe-inspiring natural beauty, a rich cultural history, warm smiles and so much more. Napoleon&#8217;s bride, Empress Josephine, was born and raised here. The Pompeii of the Caribbean, St. Pierre, is found here. The finest French products, from Chanel fashions to Limoges porcelain, are readily available here. La Route des Rhums, a tour of the world&#8217;s finest rum distilleries based on France&#8217;s famed Route des Vins, is offered here. A special place, to be sure, with so much to offer – Martinique c&#8217;est magnifique!<!-- end --></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Reunion... as if "A" can be anything other than "A"]]></title>
<link>http://audisee.wordpress.com/2009/11/14/reunion/</link>
<pubDate>Sat, 14 Nov 2009 01:18:11 +0000</pubDate>
<dc:creator>audisee</dc:creator>
<guid>http://audisee.wordpress.com/2009/11/14/reunion/</guid>
<description><![CDATA[Still the only thing fresh in this town is the manure.   The stagnation of inherited inbred ideology]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Still the only thing fresh in this town is the manure.   The stagnation of inherited inbred ideology lingers with this aire.  To some, this night of memorabilia is their only experience of a dream.  Long lost hopes, from the gates of a requiem walking hand in hand with a Coors light and some road kill at their side.  For others, it was like the day after their cousin married outside of their race&#8230; being careful with their words, afraid to ask real questions&#8230;  None the less, no real care to take a step out.</p>
<p>After the bar was spit up on by the drooling outsiders, the classmate&#8217;s reunited and separated once again into their old cliques. </p>
<p>Lacking any real truth, with manipulating, superficial honesty, they go back and forth with attacks on each other and those they feel threatened by.   Curtness and lack of propriety in their values and morals with each breath out, they seem to be warm and cozy in their disgusting dialog.  The pot calling the kettle black.  Gossiping about gossipers.  Tragedy of life being so pitiful is the only reality here that is spoken, though the directors of this play haven&#8217;t the faintest idea of how the script is as old as their addicted, handed down, rewinded and rewinded &#8221;original ideas&#8221; that they all share and pretend are so original.  Each actor plays the part of enabling this to continue, playing ignorant and growing older. </p>
<p> I sit to wait for the tow truck.  Keys in the trunk, sister in His bed.  The one exception I saw all night and I offered her to him, best indeed.  To keep myself from a weakness that could bring this place&#8230; this heap of a town closer to me.  I doubt there would be any power from him, but I stay careful of tragedy and a trip into hell.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[BEA WebLogic: Number Format Exception while starting WebLogic Server]]></title>
<link>http://dullaertdknowledge.wordpress.com/2009/11/13/bea-weblogic-number-format-exception-while-starting-weblogic-server/</link>
<pubDate>Fri, 13 Nov 2009 11:48:04 +0000</pubDate>
<dc:creator>dullaertd</dc:creator>
<guid>http://dullaertdknowledge.wordpress.com/2009/11/13/bea-weblogic-number-format-exception-while-starting-weblogic-server/</guid>
<description><![CDATA[When starting the Admin Server of our domain we encountered following error: ####&lt;Nov 13, 2009 11]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>When starting the Admin Server of our domain we encountered following error:</p>
<pre style="padding-left:30px;">####&#60;Nov 13, 2009 11:58:23 AM CET&#62; &#60;Critical&#62; &#60;WebLogicServer&#62; &#60;machine-name&#62; &#60;as&#62; &#60;Main Thread&#62; &#60;&#60;WLS Kernel&#62;&#62; &#60;&#62; &#60;&#62; &#60;12
58109903043&#62; &#60;BEA-000386&#62; &#60;Server subsystem failed. Reason: java.lang.NumberFormatException: null
java.lang.NumberFormatException: null
        at java.lang.Integer.parseInt(Integer.java:415)
        at java.lang.Integer.parseInt(Integer.java:497)
        at weblogic.ldap.EmbeddedLDAP.validateVDEDirectories(EmbeddedLDAP.java:1035)
        at weblogic.ldap.EmbeddedLDAP.start(EmbeddedLDAP.java:212)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
&#62;</pre>
<p>The first thing we tried is restoring a backup of the ldap folder. This backup can be found at: ../<em>domain-name</em>/server/<em>adminserver</em>/data/ldap/backup/ and should be restored at ../<em>domain-name</em>/server/<em>adminserver</em>/data/ldap/ldapfiles.</p>
<p>When this was not working, we kept looking and stumbled upon a site that told us that this error could be caused when the volume that contains these files is running full. WebLogic will corrupt these files. And the solution is to add &#8216;replica.num=0&#8242; to the ../<em>domain-name</em>/server/<em>adminserver</em>/data/ldap/config/replicas.prop file. Or just remove this file..</p>
<p>Source: <a href="http://ghattus.com/2008/10/number-format-exception-while-starting-weblogic-server.html">http://ghattus.com/2008/10/number-format-exception-while-starting-weblogic-server.html</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Biopolitics &amp; The Body: The Science-Policy-Media Nexus &amp; The Athletic Exception]]></title>
<link>http://politicsofsport.wordpress.com/2009/11/11/biopolitics-the-body-the-science-policy-media-nexus-the-athletic-exception/</link>
<pubDate>Wed, 11 Nov 2009 17:25:01 +0000</pubDate>
<dc:creator>jenniferjanehardes</dc:creator>
<guid>http://politicsofsport.wordpress.com/2009/11/11/biopolitics-the-body-the-science-policy-media-nexus-the-athletic-exception/</guid>
<description><![CDATA[What do Caster Semenya, Oscar Pistorius, Eero Mantyranta, and Asmahan Mansour have in common? Their ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>What do Caster Semenya, Oscar Pistorius, Eero Mantyranta, and Asmahan Mansour have in common? Their athletic bodies are all contested sites of media speculation. Each athlete has been thrust into the spotlight in calling attention to the means by which their bodies are the exception to, and challenge what we perceive to be, the “norm.” Semenya, for example, has recently been placed in the limelight as a challenge to the long-debated sex/gender binary in sport; Pistorius was brought to the fore for his alleged advantage due to his (dis)ability media status as a “blade runner,” and Mantyranta was in the spotlight for years as an alleged potential drug abuser due to a genetic mutation giving him a “naturally” high blood count. The youngest of these is 11-year-old Mansour, who, in 2007, <em>Fédération Internationale de Football Association</em> (FIFA) prevented from participating in a Canadian junior soccer league due to her “choice” to wear a religious headscarf, a Hijab.</p>
<p>In consideration of the vast media attention given to these particular athletes, I have opted to focus on the body as a common theme, or, more specifically, on what constitutes the natural, “normalized” body. I&#8217;m interested in the way in which a power-knowledge nexus constructs and shapes bodies as natural or biological, labeling them, categorizing them, and finally stamping them with a seal of approval or, as is the case of these athletes, disapproval. Further, I&#8217;m keen to explore, through the case studies listed, the disruption of such norms through these “athletic exceptions.” Within each of these particular case studies, I hope to further examine what it means to be considered “(ab)normal” or biologically “(un)natural,” and the role the media, in addition to its intersection with scientific discourse and sport policy, plays in perpetuating and reinforcing these binaries between norms and exceptions, resultantly hypostatizing both sides of the binary as essential truths, whether that be the truth of normality or abnormality. Such “truths” arising from common sense belief, scientific discourse, and policy that circulate in the popular media serve to determine whether a body is normal and accepted or contested terrain construed as an anomaly.</p>
<p> The link between scientific discourse, media, and policy is an imperative nexus to comprehend because it allows us to appreciate the way in which knowledge and power are inter-connected and in no way unilateral. For example, scientific discourse problematically intersects with international sporting policy, such as that stipulated by the International Olympic Committee (IOC) and FIFA, in terms of its influence in shaping policy regulations and identifying who can compete in the said sport. Regulations for gender testing found in the IOC policy is just one example of this, as is the regulation of disability sport, who counts as able bodied, or what constitutes a “doped” body as opposed to a “natural” body. In this way science underpins policy; it informs it and is deeply embedded within it.<a href="http://politicsofsport.wordpress.com/wp-admin/post-new.php#_ftn1">[1]</a></p>
<p>When governing bodies deem cases “exceptional,” since they do not comport with classifications provided within policy guidelines, it is the media which reports these cases to the general public and it is, therefore through this communication medium that such stringent bodily ideals as defined in science and policy are perpetuated. Those exposed to media discussions of these athletic cases thus comprehend the scientific discourse perpetuated as a truth, whereby the body is a biologically classifiable site in which these exceptional cases do not fit; exceptional cases are ousted, “othered,” and construed as abnormal. Not only is this a problem in terms of general public awareness and understanding, but it is also a problem in terms of sport policy. Since the media-policy-science nexus articulates itself as presenting axiomatic truths, cases that fail to conform to policy regulation are reified in the media as abnormal, thus reinforcing policy, and policy remains without change.</p>
<p>Given this intricate nexus between media, policy, and scientific knowledge, it is my task to understand this nexus further, and to articulate how this centers the natural, normal body as the source of scientific investigation. In order to reach this understanding and to trouble contemporary discourses of athletic bodily identity from a scientific perspective, I intend to use the theoretical tools provided in the work of Michel Foucault. Following Foucault’s understanding of power, knowledge, biopower and governmentality, I argue through a biopolitical lens that athletic identity is represented in sport policy and the popular media through a biologically given, pre-determined scope which serves to render the athletic bodily anomaly as exception. Within each case study, I further intend to derive a more nuanced understanding of the exceptional cases through further theoretical exploration. I&#8217;ll therefore be drawing on the philosophy of Giles Deleuze and Felix Guattari to discuss the notion of the “naturalness” of the body and the distinction between nature and man, or the natural and synthetic.</p>
<p>Of the four listed case studies, Semenya represents a question of the inter-connectedness of assumptions made regarding the female body, the racialized body, and the national body. Her case elucidates the prevalent belief in an essential female self whereby challenges aimed at Semenya were based on her appearance as not conforming to the stereotypical Western, white female physique. Pistorius, likewise, indicates the difficulty in distinguishing between the able-bodies and disabled, the natural and the synthetic, disrupting the image of the normal biological body and defying the boundaries set by nature in terms of a potential cyborg self. Mantyranta, perhaps the oldest of the cases, competing in the winter Olympics of the 1960s, indicates, similarly to Pistorius, a disruption of the distinction between what we understand as natural or unnatural. Mantyranta is an interesting case given that during his competition era, although he admitted to taking hormones, these had not been banned at this point in time. But, further, he was also suspected of blood doping during his career, yet was found to in fact have a rare genetic mutation giving him a naturally high blood hemoglobin level. The binary between natural and synthetic is found, therefore, within Mantyranta’s own body. Asmahan Mansour perhaps appears the least likely candidate since she may not be deemed to fit into the “body” category as with Semenya, Pistorius, and Mantyranta. However, my purpose for including Mansour is this very fact.</p>
<p>As Jasbir Puar (2008) posits in <em>Terrorist Assemblages: Homonormativity in Queer Times</em>, how can one distinguish so matter-of-factly, whether something so much a “part” of a person’s body like a Hijab or, in Puar’s example a turban, is in reality unnatural and a mere bodily appendage? Surely one may comprehend a Hijab as natural an appendage as, say, someone’s arm or leg? As Puar states, from a Deluezian perspective, it is difficult to comprehend where the line between natural and synthetic begins and ends, which is further echoed in the case of Pistorius. Is his prosthetic limb or “blade” a synthetic appendage, or is it a “natural” part of him?</p>
<p>The purpose of these examples is not to ask the ethical question of what ought to be the case and thus to find a normative standpoint for policy regulations, but rather to challenge normativity itself, putting into question the idea of corporeal “naturalness” and rendering it problematic. In this way, it is hoped that such a study can inform both policy and media in challenging the underpinning reliance on scientific discourse that asserts as axiomatic scientific classifications of identity.</p>
<hr size="1" /><a href="http://politicsofsport.wordpress.com/wp-admin/post-new.php#_ftnref1">[1]</a> The case of Mansour is slightly different but perhaps may even be linked to scientific rejection of theology, whereby FIFA’s disapproval of a Hijab reflects the difficulty in dealing with religious as opposed to scientifically classifiable issues. <strong>This needs further explanation!</strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[predeploy for PersistenceUnit failed]]></title>
<link>http://ryznar.wordpress.com/2009/11/11/predeploy-for-persistenceunit-failed/</link>
<pubDate>Wed, 11 Nov 2009 14:44:49 +0000</pubDate>
<dc:creator>Paweł Ryznar</dc:creator>
<guid>http://ryznar.wordpress.com/2009/11/11/predeploy-for-persistenceunit-failed/</guid>
<description><![CDATA[Poniżej zamieściłem fragment bardzo ładnego wyjątku i jestem ciekaw skąd się to bierze? W NetBeans s]]></description>
<content:encoded><![CDATA[Poniżej zamieściłem fragment bardzo ładnego wyjątku i jestem ciekaw skąd się to bierze? W NetBeans s]]></content:encoded>
</item>
<item>
<title><![CDATA[Viewstate error : 12031]]></title>
<link>http://thetechjungle.wordpress.com/2009/11/10/viewstate-error-12031/</link>
<pubDate>Tue, 10 Nov 2009 18:23:52 +0000</pubDate>
<dc:creator>Abhi</dc:creator>
<guid>http://thetechjungle.wordpress.com/2009/11/10/viewstate-error-12031/</guid>
<description><![CDATA[Few days ago I was asked to look into an issue. In our application we have created dynamic grids to ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div>Few days ago I was asked to look into an issue. In our application we have created dynamic grids to show data from database. This ASPX page was Ajax enabled. Moreover all the rows of the grid were in edit mode ie. the normal controls like textbox,dropdowns etc  were displayed in all the rows. This grid was Paginated. But for the past few days the paging was not working.<br />
I executed the page and found that the page was generating an error 12031  with the following message</p>
<p><em>Sys.webForms.PageRequestManagerServerErrorException:An unknown error occurred while processing the request on the server .the status code returned from the server was:12031.</em></p>
<p>On my first round of analysis I found the issue with Viewstate. If the viewstate is large then connection is reset (ERROR_INTERNET_CONNECTION_RESET ). In local machine with less load this problem will not occur but as the load &#38; network latency increases this error will come. Once this error is generated the general events of grid is not triggered. So advised my team to minimize the use of viewstate. It will help in to load the page faster &#38; reduce the network traffic. I can increase the maxRequestlength value to allow more data but ideally i shouldn&#8217;t increase that.</p>
</div>
<div><a title="Viewstate error : 12031" href="http://thetechjungle.blogspot.com/2009/11/viewstate-error-12031.html#more">Read more » http://thetechjungle.blogspot.com/2009/11/viewstate-error-12031.html</a></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[The Bluest Eye]]></title>
<link>http://reallifesdsu.wordpress.com/2009/11/05/the-bluest-eye/</link>
<pubDate>Fri, 06 Nov 2009 05:37:47 +0000</pubDate>
<dc:creator>tdvh11</dc:creator>
<guid>http://reallifesdsu.wordpress.com/2009/11/05/the-bluest-eye/</guid>
<description><![CDATA[I just finished reading a book called: &#8220;The Bluest Eye&#8221; by Toni Morrison. It&#8217;s my ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I just finished reading a book called: &#8220;The Bluest Eye&#8221; by Toni Morrison. It&#8217;s my one week assignment for my AFRAS260 class. AFRAS260 is a course with the objective of understanding deeper about Africana Literature.</p>
<p>First of all, I dont often read books. Second, I dont like literature. I think there is too much abstract in literature and I&#8217;d prefer stuff that are more realistic. However, this book was a kind of an exception. I find it to be quite interesting.<img class="alignright" title="The Bluest Eye" src="http://photos4.meetupstatic.com/photos/event/b/9/7/9/highres_6947481.jpeg" alt="" width="306" height="384" /></p>
<p>The Bluest Eye is a book about the lives of black people in the 1940&#8217;s. The main character, Pecola, is an eleven-year-old black girl who desperately wants blue eyes. She believed in her whole life that she was ugly, and thought that having blue eyes will make her a better person, so she wouldn&#8217;t be treated as bad&#8230;</p>
<p>There are way more interesting characters in &#8220;The Bluest Eye,&#8221;  Winner of the Nobel Prize in Literature. They all struggled for an acceptable identity in their community.</p>
<p>I strongly recommend buying and reading this book. <a href="http://www.amazon.com/Bluest-Eye-Vintage-International/dp/0307278441/ref=sr_1_1?ie=UTF8&#38;s=books&#38;qid=1257528777&#38;sr=8-1">Get it on Amazon!</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Exception #2: Happy Birthday Ayne!]]></title>
<link>http://akmalkhadir.wordpress.com/2009/11/06/exception-2-happy-birthday-ayne-2/</link>
<pubDate>Fri, 06 Nov 2009 01:15:59 +0000</pubDate>
<dc:creator>akmalkhadir</dc:creator>
<guid>http://akmalkhadir.wordpress.com/2009/11/06/exception-2-happy-birthday-ayne-2/</guid>
<description><![CDATA[  This is What Ayne Gets for Her 18th Birthday! from Akmal Khadir on Vimeo.]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p> </p>
<p><a href="http://vimeo.com/7449473">This is What Ayne Gets for Her 18th Birthday!</a> from <a href="http://vimeo.com/user2587806">Akmal Khadir</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[The Effect Spectrum (I)]]></title>
<link>http://xosfaere.wordpress.com/2009/11/05/the-effect-spectrum-i/</link>
<pubDate>Thu, 05 Nov 2009 22:51:14 +0000</pubDate>
<dc:creator>xosfaere</dc:creator>
<guid>http://xosfaere.wordpress.com/2009/11/05/the-effect-spectrum-i/</guid>
<description><![CDATA[Effects of Intuition In the march of pure functional programming toward pervasive mainstream use the]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Effects of Intuition</strong></p>
<p>In the march of pure functional programming toward pervasive mainstream use the notion of effects have become an interesting topic. I&#8217;ve begun looking at what you might call &#8220;the effect spectrum&#8221; or &#8220;the effect zoo&#8221;: the different kinds of effects and what they do (to your program).</p>
<p>I shall name these functions by personal preference, these names are likely unconventional but they have &#8220;symbolic&#8221; value.The first examples will not be effects at all but I will gradually move into effects over the next few posts, well maybe just one more post. I have a few ideas queued up on time-slicing, &#8220;forced&#8221; pre-emption (OS terminology abuse alert) and exceptions.</p>
<p>The structural notation will be a &#8220;pseudo/semi-formalism&#8221;, Haskell-like.</p>
<p><strong>Exhibit 1: Non [ineffective]</strong></p>
<p>This function takes no arguments, computes nothing, does nothing and returns no result. It is the computational equivalent of brain death.</p>
<p><em>structure</em></p>
<p style="padding-left:30px;">() → ()</p>
<p><em>substance</em></p>
<p style="padding-left:30px;">public void non()<br />
{<br />
}</p>
<p><strong>Exhibit 2: Som [ineffective]</strong></p>
<p>This function takes one argument and returns that argument. The &#8220;zero&#8221; function may be seen as a special case of the &#8220;one&#8221; function, accepting only the empty tuple.</p>
<p><em><em>structure</em></em></p>
<p style="padding-left:30px;">a → a</p>
<p><em><em>substance</em></em></p>
<p style="padding-left:30px;">public void som&#60;T&#62; (T x)<br />
{<br />
&#160;&#160;return x;<br />
}</p>
<p><strong>Exhibit 3: Som-Non [ineffective]</strong></p>
<p>This function takes one argument and returns nothing as a result, never caring about what the argument actually was, you might call this a comatose function: it gets everything you say but can&#8217;t respond back with anything (the empty tuple () being the equivalent of silence).</p>
<p><em><em>structure</em></em></p>
<p style="padding-left:30px;">a → ()</p>
<p><em><em>substance</em></em></p>
<p style="padding-left:30px;">public void somnon&#60;T&#62; (T x)<br />
{<br />
}</p>
<p><strong>Exhibit 4: Non-Som [ineffective]</strong></p>
<p>This function takes nothing and returns something. It is the dual of comatose &#8211; it can only give and it always gives the same thing.</p>
<p><em>structure</em></p>
<p style="padding-left:30px;">() → a</p>
<p><em>substance</em></p>
<p style="padding-left:30px;">public T nonsom&#60;T&#62;()<br />
{<br />
&#160;&#160; return default(T);<br />
}</p>
<p><strong>Exhibit 5: Som-Time [time-"in"-effective]</strong></p>
<p>This function takes something and returns that same thing, after some time. You might say it&#8217;s the functional equivalent of bullet-time; it slows down time (if e.g. we define time as state-transitions; ticks, or whatever). This means it has an effect, meaning its &#8220;effective&#8221; but this time-effect also makes it &#8220;in-effective&#8221;.</p>
<p><em>structure</em></p>
<p style="padding-left:30px;">a → Δ a</p>
<p><em>substance</em></p>
<p style="padding-left:30px;">public T somtime&#60;T&#62;(T x)<br />
{<br />
&#160;&#160; Thread.Sleep(1000);<br />
&#160;&#160; return x;<br />
}</p>
<p>One may argue whether this function actually contains a [side-]effect (messing with time) or not. In a sense all functions mess with time, as in the real world they take time to compute. So the result is some delta into the future where the argument is some point in the past, depending on when you look at it.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[The Bulk Still Lives]]></title>
<link>http://onewhosenameiswritinwater.wordpress.com/2009/11/05/the-bulk-still-lives/</link>
<pubDate>Thu, 05 Nov 2009 02:47:45 +0000</pubDate>
<dc:creator>John Keats</dc:creator>
<guid>http://onewhosenameiswritinwater.wordpress.com/2009/11/05/the-bulk-still-lives/</guid>
<description><![CDATA[It makes me cry to think, Not that.  Whenever I look around I find at least one thing for which this]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>It makes me cry to think, Not that.  Whenever I look around I find at least one thing for which this might be said.  Isn&#8217;t there an exception to every rule?  The stars, for instance, and the stone.  And from that one, say, Christ, there comes a whole new hope.  Yes.  That would be nice.  It is enough to climb out on my roof and look.  I check off names as if it were a roster in my hand.  A clipboard of names.  A catalogue.  The night has always been.  And I and you and they have not.  Should it find wonder in our faces, too?  Shouldn&#8217;t she discover which one of us today rises first and shines most like magnitude?  Tonight another part of me is dead, and yet the bulk still lives.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[culture, industrie, mondes]]></title>
<link>http://yannickprimel.wordpress.com/2009/11/03/culture-industrie-mondes/</link>
<pubDate>Tue, 03 Nov 2009 20:36:30 +0000</pubDate>
<dc:creator>Yannick</dc:creator>
<guid>http://yannickprimel.wordpress.com/2009/11/03/culture-industrie-mondes/</guid>
<description><![CDATA[La &#8220;mondialisation des cultures&#8221; est soluble dans l&#8217;analyse. Elle se désagrège lor]]></description>
<content:encoded><![CDATA[La &#8220;mondialisation des cultures&#8221; est soluble dans l&#8217;analyse. Elle se désagrège lor]]></content:encoded>
</item>
<item>
<title><![CDATA[Visual Studio Break On Exception]]></title>
<link>http://sladescross.wordpress.com/2009/11/03/visual-studio-break-on-exception/</link>
<pubDate>Tue, 03 Nov 2009 10:30:50 +0000</pubDate>
<dc:creator>sladescross</dc:creator>
<guid>http://sladescross.wordpress.com/2009/11/03/visual-studio-break-on-exception/</guid>
<description><![CDATA[To break execution when an exception is thrown On the Debug menu, click Exceptions. In the Exception]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><h3>To break execution when an exception is thrown</h3>
<div>
<ol>
<li>On the <strong>Debug</strong> menu, click <strong>Exceptions</strong>.</li>
<li>In the <strong>Exceptions</strong> dialog box, select <strong>Thrown</strong> for an entire category of exceptions, for example, <strong>Common Language Runtime Exceptions</strong>.-or-
<p>Expand the node for a category of exceptions, for example, <strong>Common Language Runtime Exceptions</strong>, and select <strong>Thrown</strong> for a specific exception within that category.</li>
</ol>
</div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Adversus Nullus, Unnullable&lt;T&gt;]]></title>
<link>http://xosfaere.wordpress.com/2009/10/27/adversus-nullus/</link>
<pubDate>Tue, 27 Oct 2009 19:58:21 +0000</pubDate>
<dc:creator>xosfaere</dc:creator>
<guid>http://xosfaere.wordpress.com/2009/10/27/adversus-nullus/</guid>
<description><![CDATA[Let&#8217;s fix C.A.R. Hoare&#8217;s billion dollar mistake for C#: Null-pointer dereferences. ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Let&#8217;s fix <a href="http://en.wikipedia.org/wiki/C._A._R._Hoare">C.A.R. Hoare</a>&#8217;s <a href="http://www.infoq.com/presentations/Null-References-The-Billion-Dollar-Mistake-Tony-Hoare">billion dollar mistake</a> for C#: Null-pointer dereferences. &#8211; Isn&#8217;t hindsight great?</p>
<p>By default, C# reference types are nullable, meaning one can assign a null value to a variable of a reference type. These null values can propagate away from the point of origin and spread terror and havoc. There is a good and sound principle in software engineering that says: <em>fail early, fail often</em>. This means that a program should detect or exhibit a software defect right where it occurs (which is as soon as it occurs; well possibly sooner using static analysis and symbolic execution) and it should exibit a predictable behavior towards it, failing each time, reflexively. A program that just carries on can end up making much more damage along the way and can be harder to debug.</p>
<p>Then of course we might choose to interpret what we mean by &#8220;fail&#8221;. It might be a brutal failure or a recovered failure. The base philosophy has to be that the defect is at least signalled at its origin, handled or not.</p>
<p>One approach to dealing with this issue is using contracts. One can annotate function and method definitions with pre- and post-conditions expressing that the input and output of a piece of code will not and must not accept or deliver a null value. If spread everywhere, this will help catch the error where it occurs. It&#8217;s like a finely masked web spread out over the code, which will not allow a null value much freedom to move around before it is caught: thus enforcing the fail fast principle.</p>
<p>In Microsoft .Net, traditionally, there has not been support for contract programming or what is known as Design by Contract from Eiffel. People can write their own assert functions and sprinkle them all over the place which may help but it is not a very good contract solution. Things improve in .Net 4.0 with language-agnostic contract support.</p>
<p>A different approach is to have types help out.</p>
<p>In software engineering we face the same problem over and over again: in an imperative world it used to be fine to have object be mutable by default. In the new manycore world this approach is untennable. Similarly, in the past, it used to be (somewhat) ok to have reference types include null in the domain. It just turns out that in practice this was a really bad mistake. Null-pointer exceptions én masse. In the first case a paradigm shift forces us to change strategy, at least gradually. In the second, a painful history of bugs teaches us better ways.</p>
<p>As an aside, recently Dr. Erik Meijer and team have dualized the <em>IEnumerable/IEnumerator</em> types, creating the quite beautiful <em>IObservable/IObserver</em> types. In other words, the two type sets form eachothers duals. That is not to say that the former is no longer needed but it&#8217;s one more example of dualization. Mutable vs Immutable another (well an opposite at least).</p>
<p>New since, what, .Net 2.0 is Nullable&#60;T&#62;. This type allows us to define primitive (struct) types as nullable by wrapping them in another type that signal whether the wrapped value is actually null. It will not work for classes since they are already nullable and the Nullable type is defined to only work for T where T is a struct type.</p>
<p>The obvious thought here is: OK, we had integers that we needed to be nullable. Now we have objects that we need not to be nullable. Let&#8217;s &#8220;dualize&#8221; this. And so I made a simple struct to demonstrate the idea. This would benefit from language support but can really help out on its own. The Nullable&#60;T&#62; type has syntactic support in C# via the T? notation.</p>
<p>The definition is as follows.</p>
<p><span>&#160;&#160;public struct Unnullable&#60;T&#62; where T : class<br />
&#160;&#160;{<br />
&#160;&#160;&#160;&#160;public Unnullable(T x)<br />
&#160;&#160;&#160;&#160;{<br />
&#160;&#160;&#160;&#160;&#160;&#160;if (x == null)<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;throw new NullReferenceException();<br />
&#160;&#160;&#160;&#160;&#160;&#160;item = x;<br />
&#160;&#160;&#160;&#160;}<br />
&#160;&#160;&#160;&#160;<br />
&#160;&#160;&#160;&#160;public T Item<br />
&#160;&#160;&#160;&#160;{<br />
&#160;&#160;&#160;&#160;&#160;&#160;get<br />
&#160;&#160;&#160;&#160;&#160;&#160;{<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return item;<br />
&#160;&#160;&#160;&#160;&#160;&#160;}<br />
&#160;&#160;&#160;&#160;}<br />
&#160;&#160;&#160;&#160;<br />
&#160;&#160;&#160;&#160;private readonly T item;<br />
&#160;&#160;}</span></p>
<p>I made it up an early morning, after waking up far far too early and it has to be tested out thouroughly. But just quickly trying some obvious null assignments fails. Even not assigning a value to a newly declared Unnullable&#60;T&#62; variable will fail at compile-time; well, even before, as Intellisense and background compilation will warn you before you run a regular compile. At least if you use Visual Studio.</p>
<p>It&#8217;s impossible to construct an Unmutable that contains a null. So it really is <em>un-nullable</em>. At least if not resorting to evil means such as reflection. If this type is used, whereever it is used it will provide null-safety, i.e. non-nullness.</p>
<p>In a not too distant future we may see this built into C# and VB, maybe even on the class level where we can say that a class is unnullable by design. This may create other problems that we&#8217;ll defer indefinitely &#8211; for now.</p>
<p><strong>References</strong></p>
<p>- <a href="http://channel9.msdn.com/forums/TechOff/499699-Suggestions-for-C-50/#Page=2">A Channel 9 thread on ideas for C# 5.0</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[The CLR has been unable to transition from COM context 0xXXXXXX to COM context 0xXXXXXX for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages]]></title>
<link>http://indiandeve.wordpress.com/2009/10/23/the-clr-has-been-unable-to-transition-from-com-context-0xxxxxxx-to-com-context-0xxxxxxx-for-60-seconds-the-thread-that-owns-the-destination-contextapartment-is-most-likely-either-doing-a-non-pumping/</link>
<pubDate>Fri, 23 Oct 2009 12:24:18 +0000</pubDate>
<dc:creator>falaque</dc:creator>
<guid>http://indiandeve.wordpress.com/2009/10/23/the-clr-has-been-unable-to-transition-from-com-context-0xxxxxxx-to-com-context-0xxxxxxx-for-60-seconds-the-thread-that-owns-the-destination-contextapartment-is-most-likely-either-doing-a-non-pumping/</guid>
<description><![CDATA[Error Message: “The CLR has been unable to transition from COM context 0&#215;1979d8 to COM context ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Error Message:</strong></p>
<p><span style="color:#808080;">“The CLR has been unable to transition from COM context 0&#215;1979d8 to COM context 0&#215;197868 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations.”</span></p>
<p>You get this nasty error message and your life is sucked. This happens when you are debugging your application and using breakpoints.</p>
<p><strong>Fix For The Problem:</strong></p>
<p>Go to menu Debug-&#62;Exception-&#62; a form appears. Then in Managed Debug Assistants section, just uncheck the ContextSwitchDeadlock.</p>
<p><strong>Note:</strong></p>
<p>If you are not able to see Exception MenuItem in debug menu, then add it from Tools-&#62;Customize-&#62;Commands.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[TransactionScope Class (System.Transactions)]]></title>
<link>http://enggtech.wordpress.com/2009/10/16/transactionscope-class-system-transactions/</link>
<pubDate>Fri, 16 Oct 2009 04:33:10 +0000</pubDate>
<dc:creator>Visitor Blogs</dc:creator>
<guid>http://enggtech.wordpress.com/2009/10/16/transactionscope-class-system-transactions/</guid>
<description><![CDATA[It is recommended that you create implicit transactions using the TransactionScope class, so that th]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><span>It is recommended that you create implicit transactions using the <span><span class="selflink">TransactionScope</span></span> class, so that the ambient transaction context is automatically managed for you. You should also use the <span><span class="selflink">TransactionScope</span></span> and <span><a id="ctl00_MTCS_main_ctl44_ctl00_ctl03" href="http://msdn.microsoft.com/en-us/library/system.transactions.dependenttransaction.aspx">DependentTransaction</a></span> class for applications that require the use of the same transaction across multiple function calls or multiple thread calls. For more information on this model, see the <span><a id="ctl00_MTCS_main_ctl44_ctl00_ctl04" href="http://msdn.microsoft.com/en-us/library/ms172152.aspx">Implementing an Implicit Transaction using Transaction Scope</a></span> topic. For more information on writing a transactional application, see <span><a id="ctl00_MTCS_main_ctl44_ctl00_ctl05" href="http://msdn.microsoft.com/en-us/library/ms229973.aspx">Writing a Transactional Application</a></span>.</span></p>
<p>The top-most transaction scope is referred to as the root scope.</p>
<p>The <strong>TransactionScope</strong> class provides several overloaded constructors that accept an enumeration of the type <a id="ctl00_MTCS_main_ctl12" href="http://msdn.microsoft.com/en-us/library/system.transactions.transactionscopeoption.aspx">TransactionScopeOption</a>, which defines the transactional behavior of the scope.</p>
<p>A <strong>TransactionScope</strong> object has three options:</p>
<ul>
<li>Join the ambient transaction, or create a new one if one does not exist.</li>
<li>Be a new root scope, that is, start a new transaction and have that transaction be the new ambient transaction inside its own scope.</li>
<li>Not take part in a transaction at all. There is no ambient transaction as a result.</li>
</ul>
<p>If the scope is instantiated with <a id="ctl00_MTCS_main_ctl13" href="http://msdn.microsoft.com/en-us/library/system.transactions.transactionscopeoption.required.aspx">Required</a>, and an ambient transaction is present, the scope joins that transaction. If, on the other hand, there is no ambient transaction, then the scope creates a new transaction, and become the root scope. This is the default value. When <strong>Required</strong> is used, the code inside the scope does not need to behave differently whether it is the root or just joining the ambient transaction. It should operate identically in both cases.</p>
<p>If the scope is instantiated with <a id="ctl00_MTCS_main_ctl14" href="http://msdn.microsoft.com/en-us/library/system.transactions.transactionscopeoption.requiresnew.aspx">RequiresNew</a>, it is always the root scope. It starts a new transaction, and its transaction becomes the new ambient transaction inside the scope.</p>
<p>If the scope is instantiated with <a id="ctl00_MTCS_main_ctl15" href="http://msdn.microsoft.com/en-us/library/system.transactions.transactionscopeoption.suppress.aspx">Suppress</a>, it never takes part in a transaction, regardless of whether an ambient transaction is present. A scope instantiated with this value always have <strong>null</strong> as its ambient transaction.</p>
<p>The above options are summarized in the following table.</p>
<div class="labelheading"><strong></strong></div>
<div class="tableSection">
<table border="0" width="100%">
<tbody>
<tr>
<th> TransactionScopeOption</th>
<th> Ambient Transaction</th>
<th> The scope takes part in</th>
</tr>
<tr>
<td>Required</td>
<td>No</td>
<td>New Transaction (will be the root)</td>
</tr>
<tr>
<td>Requires New</td>
<td>No</td>
<td>New Transaction (will be the root)</td>
</tr>
<tr>
<td>Suppress</td>
<td>No</td>
<td>No Transaction</td>
</tr>
<tr>
<td>Required</td>
<td>Yes</td>
<td>Ambient  Transaction</td>
</tr>
<tr>
<td>Requires New</td>
<td>Yes</td>
<td>New Transaction (will be the root)</td>
</tr>
<tr>
<td>Suppress</td>
<td>Yes</td>
<td>No Transaction</td>
</tr>
</tbody>
</table>
</div>
<p>When a <strong>TransactionScope</strong> object joins an existing ambient transaction, disposing of the scope object may not end the transaction, unless the scope aborts the transaction. If the ambient transaction was created by a root scope, only when the root scope is disposed of, does <strong>Commit</strong> get called on the transaction. If the transaction was created manually, the transaction ends when it is either aborted, or committed by its creator.</p>
<p>Although the default and most commonly used value of <strong>TransactionScopeOption</strong> is <strong>Required</strong>, each of the other values has its unique purpose.</p>
<p><strong>Suppress</strong> is useful when you want to preserve the operations performed by the code section, and do not want to abort the ambient transaction if the operations fail. For example, when you want to perform logging or audit operations, or when you want to publish events to subscribers regardless of whether your ambient transaction commits or aborts. This value allows you to have a non-transactional code section inside a transaction scope.</p>
<h2 class="heading">Setting the TransactionScope isolation level</h2>
<div id="sectionSection5" class="seeAlsoNoToggleSection">
<p>Some of the overloaded constructors of <strong>TransactionScope</strong> accept a structure of type <a id="ctl00_MTCS_main_ctl19" href="http://msdn.microsoft.com/en-us/library/system.transactions.transactionoptions.aspx">TransactionOptions</a> to specify an isolation level, in addition to a <em>timeout </em>value. By default, the transaction executes with isolation level set to <a id="ctl00_MTCS_main_ctl20" href="http://msdn.microsoft.com/en-us/library/system.transactions.isolationlevel.serializable.aspx">Serializable</a>. Selecting an isolation level other than <strong>Serializable</strong> is commonly used for <em>read-intensive systems. </em>This requires a solid understanding of transaction processing theory and the semantics of the transaction itself, the concurrency issues involved, and the consequences for system consistency.</p>
<p>In addition, not all resource managers support all levels of isolation, and they may elect to take part in the transaction at a higher level than the one configured.</p>
<p>Every isolation level besides <strong>Serializable</strong> is susceptible to inconsistency resulting from other transactions accessing the same information. The difference between the different isolation levels is in the way <em>read and write locks</em> are used. A lock can be held only when the transaction accesses the data in the resource manager, or it can be held until the transaction is committed or aborted. The former is better for throughput, the latter for consistency. The two kinds of locks and the two kinds of operations (read/write) give four basic isolation levels. See <a id="ctl00_MTCS_main_ctl21" href="http://msdn.microsoft.com/en-us/library/system.transactions.isolationlevel.aspx">IsolationLevel</a> for more information.</p>
<p>When using nested <strong>TransactionScope</strong> objects, all nested scopes must be configured to use exactly the same isolation level if they want to join the ambient transaction. If a nested <strong>TransactionScope</strong> object tries to join the ambient transaction yet it specifies a different isolation level, an <a id="ctl00_MTCS_main_ctl22" href="http://msdn.microsoft.com/en-us/library/system.argumentexception.aspx">ArgumentException</a> is thrown.</p>
<p><strong><span><span><a id="ctl00_MTCS_main_ctl22_ctl00_ctl01" href="http://msdn.microsoft.com/en-us/library/system.transactions.transaction.isolationlevel.aspx">IsolationLevel</a></span> property of a transaction.</span></strong></p>
<p>The lowest isolation level, <span><span class="input">ReadUncommitted</span></span>, allows many transactions to operate on a data store simultaneously and provides no protection against data corruption due to interruptive transactions. The highest isolation level, <span><span class="input">Serializable</span></span>, provides a high degree of protection against interruptive transactions, but requires that each transaction complete before any other transactions are allowed to operate on the data.</p>
<p>The isolation level of a transaction is determined when the transaction is created. By default, the <span><a id="ctl00_MTCS_main_ctl22_ctl00_ctl00" href="http://msdn.microsoft.com/en-us/library/system.transactions.aspx">System.Transactions</a></span> infrastructure creates <span><span class="input">Serializable</span></span> transactions.</p>
<div class="ColumnTypeSubTitle"><em><strong>Data Points</strong></em> :: <strong>ADO.NET and System.Transactions</strong></div>
<p><span class="CodeDownloadText"><a href="http://msdn.microsoft.com/en-us/magazine/cc163847.aspx#S2">Local Implicit Transactions</a><br />
<a href="http://msdn.microsoft.com/en-us/magazine/cc163847.aspx#S3">Transaction Options</a><br />
<a href="http://msdn.microsoft.com/en-us/magazine/cc163847.aspx#S4">Distributed Implicit Transactions</a><br />
<a href="http://msdn.microsoft.com/en-us/magazine/cc163847.aspx#S5">Smart Transactions with SQL Server 2005</a><br />
<a href="http://msdn.microsoft.com/en-us/magazine/cc163847.aspx#S6">Alternatives</a></span></p>
<p><span></p>
<div class="MTPS_CollapsibleRegion">
<div class="CollapseRegionLink">TransactionScopeOptions</div>
<div class="MTPS_CollapsibleSection" style="display:block;"></div>
</div>
<p></span></p>
<table class="charttable" border="0">
<tbody>
<tr valign="top">
<th>TransactionScopeOptions</th>
<th>Description</th>
</tr>
<tr valign="top">
<td>Required</td>
<td>If within a currently active transaction scope, this transaction scope will join it. Otherwise it will create its own transaction scope.</td>
</tr>
<tr valign="top">
<td>RequiresNew</td>
<td>This transaction will create its own transaction scope.</td>
</tr>
<tr valign="top">
<td>Supports</td>
<td>If within a currently active transaction scope, this transaction scope will join it. Otherwise no transaction scope will be created.</td>
</tr>
<tr valign="top">
<td>NotSupported</td>
<td>No transaction scope will be created.</td>
</tr>
</tbody>
</table>
<p><span>Use the new <span><a id="ctl00_MTCS_main_ctl53_ctl00_ctl01" href="http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnectionstringbuilder.aspx">SqlConnectionStringBuilder</a></span> to construct valid connection strings at run time.</span></p>
<p><span><span><a id="ctl00_MTCS_main_ctl53_ctl00_ctl15" href="http://msdn.microsoft.com/en-us/library/ms254947.aspx">Connection String Builders (ADO.NET)</a></span></span></p>
<p><span><span><a id="ctl00_MTCS_main_ctl53_ctl00_ctl10" href="http://msdn.microsoft.com/en-us/library/8xx3tyca.aspx">SQL Server Connection Pooling (ADO.NET)</a></span>.</span></p>
<div class="CollapseRegionLink"><strong>Members </strong></div>
<p><a id="membersToggle"></a></p>
<table id="memberList" class="members" border="0">
<tbody>
<tr>
<th></th>
<th class="nameColumn">Member name</th>
<th class="descriptionColumn">Description</th>
</tr>
<tr>
<td></td>
<td><span class="selflink">Serializable</span></td>
<td><span>Volatile data can be read but not modified, and no new data can be added during the transaction.</span></td>
</tr>
<tr>
<td></td>
<td><span class="selflink">RepeatableRead</span></td>
<td><span>Volatile data can be read but not modified during the transaction. New data can be added during the transaction.</span></td>
</tr>
<tr>
<td></td>
<td><span class="selflink">ReadCommitted</span></td>
<td><span>Volatile data cannot be read during the transaction, but can be modified.</span></td>
</tr>
<tr>
<td></td>
<td><span class="selflink">ReadUncommitted</span></td>
<td><span>Volatile data can be read and modified during the transaction.</span></td>
</tr>
<tr>
<td></td>
<td><span class="selflink">Snapshot</span></td>
<td><span>Volatile data can be read. Before a transaction modifies data, it verifies if another transaction has changed the data after it was initially read. If the data has been updated, an error is raised. This allows a transaction to get to the previously committed value of the data.</span>When you try to promote a transaction that was created with this isolation level, an <span><a id="ctl00_MTCS_main_ctl21_ctl00_ctl00" href="http://msdn.microsoft.com/en-us/library/system.invalidoperationexception.aspx">InvalidOperationException</a></span> is thrown with the error message &#8220;Transactions with IsolationLevel Snapshot cannot be promoted&#8221;.</td>
</tr>
<tr>
<td></td>
<td><span class="selflink">Chaos</span></td>
<td><span>The pending changes from more highly isolated transactions cannot be overwritten.</span></td>
</tr>
<tr>
<td></td>
<td><span class="selflink">Unspecified</span></td>
<td><span>A different isolation level than the one specified is being used, but the level cannot be determined. An exception is thrown if this value is set.</span></td>
</tr>
</tbody>
</table>
</div>
<h2 class="heading">Interop with COM+</h2>
<div id="sectionSection6" class="seeAlsoNoToggleSection">
<p>When you create a new <strong>TransactionScope</strong> instance, you can use the <a id="ctl00_MTCS_main_ctl23" href="http://msdn.microsoft.com/en-us/library/system.transactions.enterpriseservicesinteropoption.aspx">EnterpriseServicesInteropOption</a> enumeration in one of the constructors to specify how to interact with COM+. For more information on this, see <a id="ctl00_MTCS_main_ctl24" href="http://msdn.microsoft.com/en-us/library/ms229974.aspx">Interoperability with Enterprise Services and COM+ Transactions</a>.</div>
<p><a href="http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx">TransactionScope Class (System.Transactions)</a>.</p>
<p>The <strong>System.Transactions namespace </strong>can make the management of transactions quick and easy without the need to inherit from a <strong>ServicedComponent</strong>. One of the greatest features of the <strong>LightweightTransaction </strong>object is that it can determine if it needs to promote itself to a <strong>distributed </strong>transaction. The lightweight transactions are also a faster alternative to using the DTC for local transactions.</p>
<table border="0">
<tbody>
<tr><span> </span></p>
<td>Transaction Binding</td>
<td>Implicit Unbind</td>
<td>Controls connection association with an enlisted <span><span class="input">System.Transactions</span></span> transaction.</p>
<p>Possible values are:</p>
<p><span class="code">Transaction Binding=Implicit Unbind;</span></p>
<p><span class="code">Transaction Binding=Explicit Unbind;</span></p>
<p>Implicit Unbind causes the connection to detach from the transaction when it ends. After detaching, additional requests on the connection are performed in autocommit mode. The <span><span class="input">System.Transactions.Transaction.Current</span></span> property is not checked when executing requests while the transaction is active. After the transaction has ended, additional requests are performed in autocommit mode.</p>
<p>Explicit Unbind causes the connection to remain attached to the transaction until the connection is closed or an explicit <span><span class="input">SqlConnection.TransactionEnlist(null)</span></span> is called. An <span><span class="input">InvalidOperationException</span></span> is thrown if <span><span class="input">Transaction.Current</span></span> is not the enlisted transaction or if the enlisted transaction is not active.</td>
</tr>
</tbody>
</table>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Cast Number Conversion Exception]]></title>
<link>http://blog.flexuous.com/2009/10/13/cast-number-conversion-exception/</link>
<pubDate>Tue, 13 Oct 2009 22:44:24 +0000</pubDate>
<dc:creator>justinohms</dc:creator>
<guid>http://blog.flexuous.com/2009/10/13/cast-number-conversion-exception/</guid>
<description><![CDATA[All strings being equal&#8230;:) this was one strange problem to figure out. I was using the CF debu]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>All strings being equal&#8230;:)  this was one strange problem to figure out.</p>
<p>I was using the CF debugger in eclipse yesterday and my ColdFusion (CF8) code kept throwing the same debugger error on simple string equality statements such as : <strong>if( stringVar1 EQ stringVar2)</strong></p>
<p>Here is the debugger error:</p>
<p style="padding-left:60px;"><span style="color:#333399;">coldfusion.runtime.Cast$NumberConversionException<br />
The value XX cannot be converted to a number.</span><br />
<img src="http://flexuous.files.wordpress.com/2009/10/castnumberconversionexception.jpg?w=450&#038;h=168" alt="castnumberconversionexception" vspace="20" width="450" height="168" /></p>
<p>It took a little digging to figure out what the problem was but I think I finally got it<!--more--></p>
<p>It seems that the exception is thrown by any direct comparison of strings.  Now if you&#8217;ve been using CF as long as I have you are thinking that this is crazy because how else are you supposed to compare strings&#8230;. well there apparently is a better way to compare to strings.  The solution is to use the <strong><em>compare</em></strong> or <strong><em>comparenocase</em></strong> functions.  The way these work is basically as such:  <strong>if(comparenocase(stringVar1, stringVar2) eq 0)<br />
</strong>The function returns 0 if the strings are equivalent, and -1 or +1 if one or the other string is greater or less than the other.  If you switch all of your string comparisons to this the debugger exception goes away.   Apparently this is one of those cases where CF basically handles the exception gracefully however it still gets reported if the <strong>Exception Information</strong> option is turned on in the debugger settings on the server. If you uncheck the box marked <strong>Exception Information</strong> on the Debug Output Settings in the ColdFusion 8 administrator (and restart the server) these debug exceptions go away.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[A practical method for understanding intelligent design in two weeks]]></title>
<link>http://winteryknight.wordpress.com/2009/10/07/a-practical-method-for-understanding-intelligent-design-in-two-weeks/</link>
<pubDate>Wed, 07 Oct 2009 22:00:59 +0000</pubDate>
<dc:creator>Wintery Knight</dc:creator>
<guid>http://winteryknight.wordpress.com/2009/10/07/a-practical-method-for-understanding-intelligent-design-in-two-weeks/</guid>
<description><![CDATA[ECM sent me this awesome post from Uncommon Descent. The post explains how someone who doesn&#8217;t]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://www.uncommondescent.com/intelligent-design/how-to-become-ider-in-two-weeks/" target="_blank">ECM sent me this awesome post from Uncommon Descent</a>. The post explains how someone who doesn&#8217;t want to <em>read</em> about intelligent design can <em>learn </em>what intelligent design by <em>doing.</em> That&#8217;s right &#8211; you can learn about intelligent design by <em>practicing intelligent design</em>.</p>
<p>Excerpt:</p>
<blockquote><p>Of course a good example of design would be engineering in all its specialties. Unfortunately almost all fields of engineering are inaccessible to laymen for many reasons. But the good news is that there is a field that is theorically and practically available (at least at a basic level) to almost all people (or at least to scientific-minded people as most ID deniers are): computer science. Our suggested patent-pending method to become IDer is based on computer programming. Developing programs gives ID refuters a lot of advantages to learn ID.</p>
<p>(1) Computer programming is an activity where, differently from literature, philosophy, journalism and so on, a severe control overarches all the design cycle. In programming errors matter, also the minor ones are never condoned. This is good discipline for the student, to be always forced to correct his errors. If you write a book filled with errors, no worry, it will be published the same. If you write a program with one error nothing works. This is the difference between storytelling and programming. Usually there are at least two kinds of control or filter: at compilation time and at run-time. Any program works only if it passes the two filters.</p>
<p>[...](2) Computer programs don’t arise by unguided evolution. They entail CSI and only intelligence can create CSI. Whether software were generable by mean of randomness and machines, software houses wouldn’t need to pay legions of expensive programmers. When you are programming you see directly your intelligence at work. Eventually other programmers can help you but no other unintelligent thing can do the job for you.</p>
<p>(3) To develop programs is a good exercise to learn CSI, IC, nested functional hierarchies, sub-functions, structures, dependences among parts, meta-information, libraries, etc.</p></blockquote>
<p>Intelligent design is nothing more than sequencing a large number of parts into a chain that has function. That&#8217;s it &#8211; that&#8217;s all it is. <em>God is a software engineer. </em>And if you&#8217;re interested in seeing some of the published research done by ID theorists, check out <a href="http://www.discovery.org/a/2640" target="_blank">this list of their publications</a> in scientific, peer-reviewed research journals. (H/T <a href="http://truthbomb.blogspot.com/2009/09/common-objection-7.html" target="_blank">Truthbomb Apologetics</a>)<em><br />
</em></p>
<p>There is only one problem with the post at UD, though. They recomment Perl and PHP for the exercise. Perl and PHP are crappy languages for any program longer than 100 lines that needs to be maintained longer than 2 months, or maintained by another developer who did not write it. The readability and maintainability of Perl and PHP are <em>atrocious.</em> Stick with languages like Java, Smalltalk or C#.</p>
<p><strong>Other arguments for a Creator and Designer</strong></p>
<p>To learn more about arguments for a Creator and Designer, check out some of my favorites below, taken from <a href="http://winteryknight.wordpress.com/index-to-christian-posts/" target="_blank">the big list of arguments and counter-arguments</a>:</p>
<ul>
<li><a href="../2009/04/08/how-to-defend-the-kalam-cosmological-argument-just-like-william-lane-craig/" target="_blank">The origin of the universe</a></li>
<li><a href="../2009/04/09/how-to-defend-the-fine-tuning-argument-just-like-william-lane-craig/" target="_blank">The fine-tuning of the universe for complex life</a></li>
<li><a href="../2009/04/02/what-conditions-are-needed-to-create-a-habitable-planet/" target="_blank">The galactic, stellar and planetary fine-tuning to provide a habitable environment for complex life</a></li>
<li><a href="../2009/06/10/could-the-building-blocks-of-life-have-emerged-spontaneously-on-the-early-earth/" target="_blank">The origin of the building blocks in the simplest replicating cell</a></li>
<li><a href="../2009/06/11/could-life-have-emerged-spontaneously-on-the-early-earth/" target="_blank">The origin of biological information in the simplest replicating cell</a></li>
<li><a href="../2009/06/12/does-the-cambrian-explosion-disprove-darwinian-evolution/" target="_blank">The sudden origin of all major body plans in the Cambrian explosion</a></li>
<li><a href="http://www.leaderu.com/orgs/probe/docs/natlim.html" target="_blank">The natural limits to biological change</a></li>
</ul>
<p><a href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwinteryknight.wordpress.com%2F2009%2F10%2F07%2Fa-practical-method-for-understanding-intelligent-design-in-two-weeks%2F&#38;linkname=A%20practical%20method%20for%20understanding%20intelligent%20design%20in%20two%20weeks"><img src="http://static.addtoany.com/buttons/share_save_256_24.png" alt="Share" /></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Sharepoint Exception Handling - SPException]]></title>
<link>http://sladescross.wordpress.com/2009/10/06/sharepoint-exception-handling-spexception/</link>
<pubDate>Tue, 06 Oct 2009 14:28:00 +0000</pubDate>
<dc:creator>sladescross</dc:creator>
<guid>http://sladescross.wordpress.com/2009/10/06/sharepoint-exception-handling-spexception/</guid>
<description><![CDATA[http://sharepointexception.wordpress.com/ SharePoint Exception handling In SharePoint always throw S]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong><a href="http://sharepointexception.wordpress.com/">http://sharepointexception.wordpress.com/</a></strong></p>
<p><strong>SharePoint Exception handling</strong></p>
<ul>
<li>In SharePoint always throw SPException Objects to the top of the UI call stack and pass user friendly messages to the SPException object as this will be the message displayed to the user in the browser. Do not pass the Message property of the specific exception into the SPExcetption object as the user may not understand such a technically messages. </li>
<li>When exceptions occur in custom feature receivers catch the specific exception, log the error and throw a SPException object to the top of the UI stack as shown below.</li>
</ul>
<p>public class MyFeatureReciver : SPFeatureReceiver</p>
<p>{</p>
<p>   public override void FeatureActivated(SPFeatureReceiverProperties properties)</p>
<p>   {</p>
<p>      try</p>
<p>      {</p>
<p>         // Do Something</p>
<p>      }</p>
<p>      Catch(ArgumentException)</p>
<p>      {</p>
<p>         PortalLog.LogString(”log Log detailed message.”);</p>
<p>         throw new SPException(“Enter user friendly message.”);</p>
<p>      }</p>
<p>   }</p>
<p>}</p>
<p>If you only catch and log the exception without throwing the SPException  then the  feature will complete the requested feature  activation or de-activation (which ever the user is currently requesting) instead of aborting the feature activation or de-activation.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[一个该算作例外的东西]]></title>
<link>http://forexsome.wordpress.com/2009/10/05/%e4%b8%80%e4%b8%aa%e8%af%a5%e7%ae%97%e4%bd%9c%e4%be%8b%e5%a4%96%e7%9a%84%e4%b8%9c%e8%a5%bf/</link>
<pubDate>Mon, 05 Oct 2009 07:25:20 +0000</pubDate>
<dc:creator>forexsome</dc:creator>
<guid>http://forexsome.wordpress.com/2009/10/05/%e4%b8%80%e4%b8%aa%e8%af%a5%e7%ae%97%e4%bd%9c%e4%be%8b%e5%a4%96%e7%9a%84%e4%b8%9c%e8%a5%bf/</guid>
<description><![CDATA[]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a target="_blank" href="http://forexsome.files.wordpress.com/2009/10/gbpusd.gif"><img alt="" title="" style="max-width:800px;" src="http://forexsome.files.wordpress.com/2009/10/gbpusd.gif?w=500" width="500" /></a></p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=270273a7-6daa-813b-9921-5a2370d2046b" /></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[exception has been thrown by the target of an invocation (bing + mono = fail)]]></title>
<link>http://hexesec.wordpress.com/2009/10/04/exception-has-been-thrown-by-the-target-of-an-invoation-bing-fail/</link>
<pubDate>Sun, 04 Oct 2009 02:31:09 +0000</pubDate>
<dc:creator>jcran</dc:creator>
<guid>http://hexesec.wordpress.com/2009/10/04/exception-has-been-thrown-by-the-target-of-an-invoation-bing-fail/</guid>
<description><![CDATA[if an app crashes on the internet, and no one is around to hear it....]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div id="attachment_274" class="wp-caption aligncenter" style="width: 510px"><img class="size-medium wp-image-274" title="bing!" src="http://hexesec.wordpress.com/files/2009/10/11point4.png?w=300" alt="if an app crashes on the internet, and no one is around to hear it...." width="500" height="302" /><p class="wp-caption-text">if an app crashes on the internet, and no one is around to hear it....</p></div>
</div>]]></content:encoded>
</item>

</channel>
</rss>
