<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">

<channel>
	<title>Pedro Liska's Blog » Computer Science</title>
	
	<link>http://pedroliska.wordpress.com</link>
	<description />
	<lastBuildDate>Sun, 08 Nov 2009 04:41:53 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain="pedroliska.wordpress.com" port="80" path="/?rsscloud=notify" registerProcedure="" protocol="http-post" />
<image>
		<url>http://www.gravatar.com/blavatar/1d80b8729c17a90a17e6651fa8b91c94?s=96&amp;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Pedro Liska's Blog » Computer Science</title>
		<link>http://pedroliska.wordpress.com</link>
	</image>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/pedroliska-computerscience" type="application/rss+xml" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">pedroliska-computerscience</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Reading the web.config credentials with C#</title>
		<link>http://pedroliska.wordpress.com/2009/10/23/reading-the-web-config-credentials-with-c/</link>
		<comments>http://pedroliska.wordpress.com/2009/10/23/reading-the-web-config-credentials-with-c/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 16:11:40 +0000</pubDate>
		<dc:creator>pedroliska</dc:creator>
				<category><![CDATA[Computer Science]]></category>

		<guid isPermaLink="false">http://pedroliska.wordpress.com/?p=192</guid>
		<description><![CDATA[If you have a section such as this in your ASP.NET web.config:

&#60;authentication mode=&#34;Forms&#34;&#62;
  &#60;!-- 525600 mins = 1 year --&#62;
  &#60;forms cookieless=&#34;UseCookies&#34; timeout=&#34;525600&#34;&#62;
    &#60;credentials passwordFormat=&#34;Clear&#34;&#62;
      &#60;user name=&#34;jdoe&#34; password=&#34;jdoesPassword&#34; /&#62;
      &#60;user name=&#34;mrFancypants&#34; password=&#34;fancyPassword&#34; /&#62;
    &#60;/credentials&#62;
  &#60;/forms&#62;
&#60;/authentication&#62;

You can [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pedroliska.wordpress.com&blog=7179230&post=192&subd=pedroliska&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you have a section such as this in your ASP.NET web.config:</p>
<pre class="brush: xml;">
&lt;authentication mode=&quot;Forms&quot;&gt;
  &lt;!-- 525600 mins = 1 year --&gt;
  &lt;forms cookieless=&quot;UseCookies&quot; timeout=&quot;525600&quot;&gt;
    &lt;credentials passwordFormat=&quot;Clear&quot;&gt;
      &lt;user name=&quot;jdoe&quot; password=&quot;jdoesPassword&quot; /&gt;
      &lt;user name=&quot;mrFancypants&quot; password=&quot;fancyPassword&quot; /&gt;
    &lt;/credentials&gt;
  &lt;/forms&gt;
&lt;/authentication&gt;
</pre>
<p>You can access the user credentials via C# with the following code</p>
<pre class="brush: csharp;">
var webConfig = WebConfigurationManager.OpenWebConfiguration(&quot;~&quot;);
var authSection = (AuthenticationSection)webConfig.GetSection(&quot;system.web/authentication&quot;);
var user = authSection.Forms.Credentials.Users[&quot;jdoe&quot;];

// Check if the user exists and if the passwords match
if (user == null || user.Password != &quot;aPasswordHere&quot;)
    throw new ApplicationException(notAuthMessage);
</pre>
<p>I hope this will save you some time!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pedroliska.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pedroliska.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pedroliska.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pedroliska.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pedroliska.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pedroliska.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pedroliska.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pedroliska.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pedroliska.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pedroliska.wordpress.com/192/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pedroliska.wordpress.com&blog=7179230&post=192&subd=pedroliska&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pedroliska.wordpress.com/2009/10/23/reading-the-web-config-credentials-with-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fa18165cf7e4541a81df39fd3bbb034?s=96&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&amp;r=G" medium="image">
			<media:title type="html">pedroliska</media:title>
		</media:content>
	</item>
		<item>
		<title>Linq “outer join” on a non-nullable integer column</title>
		<link>http://pedroliska.wordpress.com/2009/08/21/outer-join-on-a-non-nullable-integer-column/</link>
		<comments>http://pedroliska.wordpress.com/2009/08/21/outer-join-on-a-non-nullable-integer-column/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 17:07:43 +0000</pubDate>
		<dc:creator>pedroliska</dc:creator>
				<category><![CDATA[Computer Science]]></category>

		<guid isPermaLink="false">http://pedroliska.wordpress.com/?p=145</guid>
		<description><![CDATA[Today I ran into a problem when running the following Linq query with an &#8220;outer join&#8221;. 

from au in dcApp.aspnet_Users
join am in dcApp.aspnet_Memberships on au.UserId equals am.UserId
select new
{
   au.UserName,
   am.Email,
   am.CreateDate,
   au.ApplicantInfo.FirstName,
   au.ApplicantInfo.LastName,
   au.ApplicantInfo.CurrentStep
};

The problem is that the Current Step is a not [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pedroliska.wordpress.com&blog=7179230&post=145&subd=pedroliska&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Today I ran into a problem when running the following Linq query with an &#8220;outer join&#8221;. </p>
<pre class="brush: csharp;">
from au in dcApp.aspnet_Users
join am in dcApp.aspnet_Memberships on au.UserId equals am.UserId
select new
{
   au.UserName,
   am.Email,
   am.CreateDate,
   au.ApplicantInfo.FirstName,
   au.ApplicantInfo.LastName,
   au.ApplicantInfo.CurrentStep
};
</pre>
<p>The problem is that the Current Step is a not null column in the database; so it is of type int not int? . But in this query, I&#8217;m using Linq to get the ApplicantInfo row associated with the aspnet_Users row. The ApplicantInfo row might or might not exist. When the row does not exist linq is trying to convert that null into an int type so you get the following error:</p>
<p>&#8220;The null value cannot be assigned to a member with type System.Int32 which is a non-nullable value type.&#8221;</p>
<p>What is really interesting is that it is only throwing that error with the CurrentStep column in the ApplicantInfo table, not with the FirstName or LastName cols that are also not null in the db. This probably has to do with the fact that the string type is a reference type (and the int type is a value type) and C# treats strings in unique ways.</p>
<p>This is the work-around I came up with:</p>
<pre class="brush: csharp;">
from au in dcApp.aspnet_Users
join am in dcApp.aspnet_Memberships on au.UserId equals am.UserId
select new
{
   au.UserName,
   am.Email,
   am.CreateDate,
   au.ApplicantInfo.FirstName,
   au.ApplicantInfo.LastName,
   curStep = au.ApplicantInfo.FirstName == &quot;&quot; ? &quot;&quot; : au.ApplicantInfo.CurrentStep.ToString()
};
</pre>
<p>As you can see I&#8217;m taking advantage of the the fact that things work good with the string typed columns</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pedroliska.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pedroliska.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pedroliska.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pedroliska.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pedroliska.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pedroliska.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pedroliska.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pedroliska.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pedroliska.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pedroliska.wordpress.com/145/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pedroliska.wordpress.com&blog=7179230&post=145&subd=pedroliska&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pedroliska.wordpress.com/2009/08/21/outer-join-on-a-non-nullable-integer-column/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fa18165cf7e4541a81df39fd3bbb034?s=96&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&amp;r=G" medium="image">
			<media:title type="html">pedroliska</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting an ASP.NET CheckBoxList to work with a RequiredFieldValidator</title>
		<link>http://pedroliska.wordpress.com/2009/08/13/getting-an-asp-net-checkboxlist-to-work-with-a-requiredfieldvalidator/</link>
		<comments>http://pedroliska.wordpress.com/2009/08/13/getting-an-asp-net-checkboxlist-to-work-with-a-requiredfieldvalidator/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 00:14:37 +0000</pubDate>
		<dc:creator>pedroliska</dc:creator>
				<category><![CDATA[Computer Science]]></category>

		<guid isPermaLink="false">http://pedroliska.wordpress.com/2009/08/13/getting-an-asp-net-checkboxlist-to-work-with-a-requiredfieldvalidator/</guid>
		<description><![CDATA[I ran into a situation where I needed the System.Web.UI.WebControls.CheckBoxList to work with a System.Web.UI.WebControls.RequiredFieldValidator.
I found a clever and really easy way to fix it. I subclassed the CheckBoxList class to add the ValidationProperty that the RequiredFieldValidator is looking for.
Just declare this class:

[ValidationPropertyAttribute(&#34;ValidateableProperty&#34;)]
public class ValidateableCheckBoxList : CheckBoxList
{

    public string ValidateableProperty
   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pedroliska.wordpress.com&blog=7179230&post=135&subd=pedroliska&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I ran into a situation where I needed the System.Web.UI.WebControls.CheckBoxList to work with a System.Web.UI.WebControls.RequiredFieldValidator.</p>
<p>I found a clever and really easy way to fix it. I subclassed the CheckBoxList class to add the ValidationProperty that the RequiredFieldValidator is looking for.</p>
<p>Just declare this class:</p>
<pre class="brush: csharp;">
[ValidationPropertyAttribute(&quot;ValidateableProperty&quot;)]
public class ValidateableCheckBoxList : CheckBoxList
{

    public string ValidateableProperty
    {
        get { return (this.Items.Cast&lt;ListItem&gt;()
            .Where(i =&gt; i.Selected).Count() &gt; 0) ?
            &quot;something was selected&quot; : &quot;&quot;; }
    }
}
</pre>
<p>And instead of using a CheckBoxList in your code, use a ValidateableCheckBoxList.</p>
<p>On the aspx file you can now work with the ValidateableCheckBoxList just like you would with a plain TextBox. I&#8217;m not a JavaScript guru so I did not implement or even thought about how to implement the client side validation.</p>
<pre class="brush: xml;">
        &lt;ans:ValidateableCheckBoxList runat=&quot;server&quot;
            ID=&quot;testCheckBoxList&quot;&gt;
            &lt;asp:ListItem Text=&quot;asdf&quot; /&gt;
            &lt;asp:ListItem Text=&quot;asdf&quot; /&gt;
            &lt;asp:ListItem Text=&quot;asdf&quot; /&gt;
        &lt;/ans:ValidateableCheckBoxList&gt;
        &lt;asp:RequiredFieldValidator runat=&quot;server&quot; ID=&quot;rfvTest&quot;
            ControlToValidate=&quot;testCheckBoxList&quot; Text=&quot;Failed validation&quot;  /&gt;
</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pedroliska.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pedroliska.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pedroliska.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pedroliska.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pedroliska.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pedroliska.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pedroliska.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pedroliska.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pedroliska.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pedroliska.wordpress.com/135/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pedroliska.wordpress.com&blog=7179230&post=135&subd=pedroliska&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pedroliska.wordpress.com/2009/08/13/getting-an-asp-net-checkboxlist-to-work-with-a-requiredfieldvalidator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fa18165cf7e4541a81df39fd3bbb034?s=96&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&amp;r=G" medium="image">
			<media:title type="html">pedroliska</media:title>
		</media:content>
	</item>
		<item>
		<title>Problems with Windows 7 64bit and WMP54G</title>
		<link>http://pedroliska.wordpress.com/2009/08/10/problems-with-windows-7-64bit-and-wmp54g/</link>
		<comments>http://pedroliska.wordpress.com/2009/08/10/problems-with-windows-7-64bit-and-wmp54g/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 14:45:04 +0000</pubDate>
		<dc:creator>pedroliska</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://pedroliska.wordpress.com/?p=121</guid>
		<description><![CDATA[I like Windows 7 and was really sad it did not work with my Linksys Wireless-G PCI Adapter (WMP54G). Linksys does not have a 64 bit driver for W7 (not even for vista actually).
But on vista 64 bit, the card works automatically after running the windows updates. That is not the case for W7. I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pedroliska.wordpress.com&blog=7179230&post=121&subd=pedroliska&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I like Windows 7 and was really sad it did not work with my Linksys Wireless-G PCI Adapter (WMP54G). Linksys does not have a 64 bit driver for W7 (not even for vista actually).</p>
<p>But on vista 64 bit, the card works automatically after running the windows updates. That is not the case for W7. I even tried the Ralink drivers, which aparently is the brand of the chip on the Linksys card. I tried installing <a href="http://icrontic.com/forum/showthread.php?t=82889">this driver</a> and <a href="http://www.phishthis.com/2009/01/16/how-to-install-wmp54g-drivers-on-windows-7-beta-64-bit-or-vista-64-bit/">this driver</a> with no luck.</p>
<p>My problem was that the driver installed successfully but I could not enable the card. So I guess I&#8217;ll go back to Vista 64bit on my home computer. I now wonder how well this is going to work on my Lenovo laptop at work; I&#8217;ll be trying W7 on it in a couple of weeks.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pedroliska.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pedroliska.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pedroliska.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pedroliska.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pedroliska.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pedroliska.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pedroliska.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pedroliska.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pedroliska.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pedroliska.wordpress.com/121/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pedroliska.wordpress.com&blog=7179230&post=121&subd=pedroliska&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pedroliska.wordpress.com/2009/08/10/problems-with-windows-7-64bit-and-wmp54g/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fa18165cf7e4541a81df39fd3bbb034?s=96&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&amp;r=G" medium="image">
			<media:title type="html">pedroliska</media:title>
		</media:content>
	</item>
		<item>
		<title>Highly selective parent-child SQL query</title>
		<link>http://pedroliska.wordpress.com/2009/07/30/sql-selective-parent-child-query/</link>
		<comments>http://pedroliska.wordpress.com/2009/07/30/sql-selective-parent-child-query/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 17:19:36 +0000</pubDate>
		<dc:creator>pedroliska</dc:creator>
				<category><![CDATA[Computer Science]]></category>

		<guid isPermaLink="false">http://pedroliska.wordpress.com/2009/07/30/sql-selective-parent-child-query/</guid>
		<description><![CDATA[When I write reports, I often times run into parent-child relationships where I only need one particular child row. And sometimes a group by simply does not cut it because max, average, sum, or some of those aggregate functions simply are not a good fit for your situation when you want some info (or the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pedroliska.wordpress.com&blog=7179230&post=111&subd=pedroliska&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When I write reports, I often times run into parent-child relationships where I only need one particular child row. And sometimes a group by simply does not cut it because max, average, sum, or some of those aggregate functions simply are not a good fit for your situation when you want some info (or the entire row) of the child that was modified last, or that has the largest amount in one column, etc. </p>
<p>So I use a combination the top command with an order by as seen in the query at the bottom. Note that performance can become an issue when doing this. Also if you spot a more efficient way of doing this, I would really like to know.</p>
<p>On this query the <strong>parents</strong> are on HSWithEvent . The HSWithEvent (high school with an event) is really just a select query inside the from clause, this is what I like to call a view on the fly because you could easily create a view for this but since you’ll only use it on this query, it is not worth it.</p>
<p>The <strong>children </strong>come from the CmEvent table. There are many events for each high school.</p>
<p>For each HSWithEvent (parent) I’m selecting all the info for 2 particular events (children), all summarized on the same row. The selection for the children is complex: one is the the event that was completed last and the other one is the closest coming pending event.</p>
<p>select    <br />&#160; HsWithEvent.AmHighSchoolId,     <br />&#160; HsWithEvent.SyOrganizationId,     <br />&#160; lstTemplate.Descrip as lastActivityTemplateName,     <br />&#160; lst.Subject as LastActivitySubject, lst.DueDate as LastActivityDueDate, lst.EndDate as LastActivityCompletedDate,     <br />&#160; comingTemplate.descrip as ComingActivityTemplateName,     <br />&#160; coming.subject as ComingActivitySubject, Coming.DueDate as ComingActivityDueDate, coming.EndDate as ComingActivityCompletedDate     <br />from     <br />&#8211; pliska: The query below filters a lot of high schools, this is important     <br />&#8211; because the orderby top opperations used on this query     <br />&#8211; are very expensive and I don&#8217;t want to run them on all high schools     <br />( &#8212; get all the SyOrganizationId&#8217;s that have a CmEvent     <br />select distinct AmHighSchool.AmHighSchoolId, AmHighSchool.SyOrganizationId     <br />from CmEvent     <br />&#8211; the inner join below filters out the events with no high school organization     <br />inner join AmHighSchool on CmEvent.SyOrganizationID = AmHighSchool.SyOrganizationID) as HSWithEvent     <br />left outer join CmEvent lst on lst.CmEventId = (     <br />&#160;&#160; &#8212; foreach AmHighSchool that has a CmEvent, get the CmEventId that was completed last     <br />&#160;&#160; select top(1) e.CmEventId     <br />&#160;&#160; from CmEvent e     <br />&#160;&#160; where e.SyOrganizationId = HsWithEvent.SyOrganizationId &#8212; 36042 &#8212; hscode 450006 &#8212;     <br />&#160;&#160; order by e.EndDate desc, e.CmEventId desc)     <br />left outer join CmTemplate lstTemplate on lst.CmTemplateId = lstTemplate.CmTemplateId     <br />left outer join CmEvent coming on coming.CmEventId = (     <br />&#160;&#160; &#8212; foreach AmHighSchool that has a CmEvent, get the CmEventId of the coming Pending CmEvent     <br />&#160;&#160; select top(1) e.CmEventId     <br />&#160;&#160; from CmEvent e     <br />&#160;&#160; where e.SyOrganizationId = HsWithEvent.SyOrganizationId     <br />&#160;&#160; and e.DueDate &gt;= cast(floor(cast(getdate() as float)) as datetime)     <br />&#160;&#160; and e.CmEventStatusId = 1 &#8212; Pending     <br />&#160;&#160; order by e.DueDate desc, e.CmEventId desc)     <br />left outer join CmTemplate comingTemplate on coming.CmTemplateId = comingTemplate.CmTemplateId</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pedroliska.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pedroliska.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pedroliska.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pedroliska.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pedroliska.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pedroliska.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pedroliska.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pedroliska.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pedroliska.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pedroliska.wordpress.com/111/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pedroliska.wordpress.com&blog=7179230&post=111&subd=pedroliska&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pedroliska.wordpress.com/2009/07/30/sql-selective-parent-child-query/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fa18165cf7e4541a81df39fd3bbb034?s=96&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&amp;r=G" medium="image">
			<media:title type="html">pedroliska</media:title>
		</media:content>
	</item>
		<item>
		<title>Google Operating System is Underway</title>
		<link>http://pedroliska.wordpress.com/2009/07/08/google-operating-system-is-underway/</link>
		<comments>http://pedroliska.wordpress.com/2009/07/08/google-operating-system-is-underway/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 14:42:29 +0000</pubDate>
		<dc:creator>pedroliska</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://pedroliska.wordpress.com/2009/07/08/google-operating-system-is-underway/</guid>
		<description><![CDATA[Just for Notebook PCs, for now…
http://www.businessweek.com/the_thread/techbeat/archives/2009/07/google_announce.html
It will be perfect for people that use their computer to browse the internet and check email. I know I could use something like this on at least one of my computers at home. 
It is planned to come out next year.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pedroliska.wordpress.com&blog=7179230&post=81&subd=pedroliska&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Just for Notebook PCs, for now…</p>
<p><a href="http://www.businessweek.com/the_thread/techbeat/archives/2009/07/google_announce.html">http://www.businessweek.com/the_thread/techbeat/archives/2009/07/google_announce.html</a></p>
<p>It will be perfect for people that use their computer to browse the internet and check email. I know I could use something like this on at least one of my computers at home. </p>
<p>It is planned to come out next year.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pedroliska.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pedroliska.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pedroliska.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pedroliska.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pedroliska.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pedroliska.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pedroliska.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pedroliska.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pedroliska.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pedroliska.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pedroliska.wordpress.com&blog=7179230&post=81&subd=pedroliska&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pedroliska.wordpress.com/2009/07/08/google-operating-system-is-underway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fa18165cf7e4541a81df39fd3bbb034?s=96&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&amp;r=G" medium="image">
			<media:title type="html">pedroliska</media:title>
		</media:content>
	</item>
		<item>
		<title>Basic Authentication for a C# Web Service without configuring IIS</title>
		<link>http://pedroliska.wordpress.com/2009/06/09/basic-authentication-for-a-c-web-service-without-configuring-iis/</link>
		<comments>http://pedroliska.wordpress.com/2009/06/09/basic-authentication-for-a-c-web-service-without-configuring-iis/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 14:48:14 +0000</pubDate>
		<dc:creator>pedroliska</dc:creator>
				<category><![CDATA[Computer Science]]></category>

		<guid isPermaLink="false">http://pedroliska.wordpress.com/2009/06/09/basic-authentication-for-a-c-web-service-without-configuring-iis/</guid>
		<description><![CDATA[I have an ASP.NET C# web service (*.asmx) that I want to secure using Basic Authentication. This would also apply to a regular ASP.NET web page (*.aspx).
I could have told IIS that if someone is hitting the specific web service file (*.asmx), they need to provide Basic Authentication. But I did not want to do [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pedroliska.wordpress.com&blog=7179230&post=69&subd=pedroliska&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have an ASP.NET C# web service (*.asmx) that I want to secure using Basic Authentication. This would also apply to a regular ASP.NET web page (*.aspx).</p>
<p>I could have told IIS that if someone is hitting the specific web service file (*.asmx), they need to provide Basic Authentication. But I did not want to do that because I wanted the credentials (username and password) to be stored in my application’s web.config . </p>
<p>So I added the following code in the web service’s constructor:</p>
<pre style="font-size:x-small;">string configUsername = ConfigurationManager.AppSettings[&quot;username&quot;];
string configPassword = ConfigurationManager.AppSettings[&quot;password&quot;];
if (!string.IsNullOrEmpty(configUsername))
{
    //---- Check Basic Authentication credentials
    string requestUsername;
    string requestPassword;
    try
    {
        // The header is in the following format
        // &quot;Basic 64BitEncodedUsernameAndPasswordString&quot;
        string userAndPassEncoded =
            this.Context.Request.Headers[&quot;Authorization&quot;].Substring(6);
        // userAndPasswordDecoded is in the following
        // format &quot;theusername:thepassword&quot;
        string userAndPassDecoded = new System.Text.ASCIIEncoding().GetString(
            Convert.FromBase64String(
                this.Context.Request.Headers[&quot;Authorization&quot;].Substring(6)));
        string[] userAndPasswordArray = userAndPassDecoded.Split(':');
        requestUsername = userAndPasswordArray[0];
        requestPassword = userAndPasswordArray[1];
    }
    catch (Exception ex)
    {
        throw new ApplicationException(
            &quot;Unable to get the Basic Authentication credentials from the request&quot;
            , ex);
    }

    if (configUsername != requestUsername || configPassword != requestPassword)
        throw new ApplicationException(
            &quot;You are not authorized to access this web service&quot;);
}</pre>
<p>Even though the code is not long or complex, I wonder if .NET has a class to deal with Basic Authentication (let me know if you know a better way) so I don’t need to access the headers, substring, and decode. I looked around and did not find anything so I’m leaving it as is. </p>
<p><strong>Important note:</strong> Remember that Basic Authentication transmits the credentials in clear text. So you probably want to use Basic Authentication over SSL (https). </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pedroliska.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pedroliska.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pedroliska.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pedroliska.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pedroliska.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pedroliska.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pedroliska.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pedroliska.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pedroliska.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pedroliska.wordpress.com/69/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pedroliska.wordpress.com&blog=7179230&post=69&subd=pedroliska&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pedroliska.wordpress.com/2009/06/09/basic-authentication-for-a-c-web-service-without-configuring-iis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fa18165cf7e4541a81df39fd3bbb034?s=96&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&amp;r=G" medium="image">
			<media:title type="html">pedroliska</media:title>
		</media:content>
	</item>
		<item>
		<title>Student life description on LA Times</title>
		<link>http://pedroliska.wordpress.com/2009/05/15/student-life-description-on-la-times/</link>
		<comments>http://pedroliska.wordpress.com/2009/05/15/student-life-description-on-la-times/#comments</comments>
		<pubDate>Fri, 15 May 2009 15:09:55 +0000</pubDate>
		<dc:creator>pedroliska</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://pedroliska.wordpress.com/2009/05/15/student-life-description-on-la-times/</guid>
		<description><![CDATA[Neumont made the LA Times today with the article: At &#8216;Geek Heaven,&#8217; students are skilled in tech, if not talk . It’s a fun read.
I think the writer got the essence of the average Neumont student. Well, almost. The average Neumont student does not stink (although we do have a fare share of stinkers). And [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pedroliska.wordpress.com&blog=7179230&post=55&subd=pedroliska&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Neumont made the LA Times today with the article: <a href="http://www.latimes.com/business/la-fi-geeks15-2009may15,1,6653527.story" target="_blank">At &#8216;Geek Heaven,&#8217; students are skilled in tech, if not talk</a> . It’s a fun read.</p>
<p>I think the writer got the essence of the average Neumont student. Well, almost. The average Neumont student does not stink (although we do have a fare share of stinkers). And even though we have a lot of geeks, we have a lot of normal students as well.</p>
<p>I guess the author did not talk to instructors or laptop support (the people that sometimes need to touch student’s keyboards) because he didn’t write about dandruffed, crumby keyboards.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pedroliska.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pedroliska.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pedroliska.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pedroliska.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pedroliska.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pedroliska.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pedroliska.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pedroliska.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pedroliska.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pedroliska.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pedroliska.wordpress.com&blog=7179230&post=55&subd=pedroliska&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pedroliska.wordpress.com/2009/05/15/student-life-description-on-la-times/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fa18165cf7e4541a81df39fd3bbb034?s=96&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&amp;r=G" medium="image">
			<media:title type="html">pedroliska</media:title>
		</media:content>
	</item>
		<item>
		<title>Began using categories in my Blog</title>
		<link>http://pedroliska.wordpress.com/2009/05/05/began-using-categories-in-my-blog/</link>
		<comments>http://pedroliska.wordpress.com/2009/05/05/began-using-categories-in-my-blog/#comments</comments>
		<pubDate>Tue, 05 May 2009 23:20:37 +0000</pubDate>
		<dc:creator>pedroliska</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://pedroliska.wordpress.com/?p=40</guid>
		<description><![CDATA[I started categorizing my blog posts to make subscription more flexible. I mostly did this so my family can check out the posts about my life (Personal category) and not get posts about code (Computer Science category).
Here are feeds you can subscribe to:
All categories &#8211; rss - email
&#160;&#160;&#160;Personal &#8211; rss &#8211; email
&#160;&#160;&#160;Computer Science &#8211; rss [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pedroliska.wordpress.com&blog=7179230&post=40&subd=pedroliska&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I started categorizing my blog posts to make subscription more flexible. I mostly did this so my family can check out the posts about my life (Personal category) and not get posts about code (Computer Science category).</p>
<p>Here are feeds you can subscribe to:<a class="orange" href="http://feeds2.feedburner.com/pedroliska"></a></p>
<p><a class="orange" href="http://feeds2.feedburner.com/pedroliska">All categories</a> &#8211; <a href="http://feeds2.feedburner.com/pedroliska">rss </a>- <a href="http://feedburner.google.com/fb/a/mailverify?uri=pedroliska" target="_blank">email</a></p>
<p>&nbsp;&nbsp;&nbsp;<a class="orange" href="http://feeds2.feedburner.com/pedroliska-personal">Personal</a> &#8211; <a href="http://feeds2.feedburner.com/pedroliska-personal">rss</a> &#8211; <a href="http://feedburner.google.com/fb/a/mailverify?uri=pedroliska-personal" target="_blank">email</a></p>
<p>&nbsp;&nbsp;&nbsp;<a class="orange" href="http://feeds2.feedburner.com/pedroliska-computerscience">Computer Science</a> &#8211; <a href="http://feeds2.feedburner.com/pedroliska-computerscience">rss</a> &#8211; <a href="http://feedburner.google.com/fb/a/mailverify?uri=pedroliska-computerscience" target="_blank">email</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pedroliska.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pedroliska.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pedroliska.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pedroliska.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pedroliska.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pedroliska.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pedroliska.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pedroliska.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pedroliska.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pedroliska.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pedroliska.wordpress.com&blog=7179230&post=40&subd=pedroliska&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pedroliska.wordpress.com/2009/05/05/began-using-categories-in-my-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fa18165cf7e4541a81df39fd3bbb034?s=96&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&amp;r=G" medium="image">
			<media:title type="html">pedroliska</media:title>
		</media:content>
	</item>
		<item>
		<title>C# Log Roller Class</title>
		<link>http://pedroliska.wordpress.com/2009/05/05/c-log-roller-class/</link>
		<comments>http://pedroliska.wordpress.com/2009/05/05/c-log-roller-class/#comments</comments>
		<pubDate>Tue, 05 May 2009 21:45:53 +0000</pubDate>
		<dc:creator>pedroliska</dc:creator>
				<category><![CDATA[Computer Science]]></category>

		<guid isPermaLink="false">http://pedroliska.wordpress.com/2009/05/05/c-log-roller-class/</guid>
		<description><![CDATA[Class description:
/// This class handles writing to a log file and rolling it based on
/// the file size. Currently you only need to send one parameter to the
/// constructor: the logFullFilePath
///
/// From the logFullFilePath, this class will determine the folder location where
/// to place all logs and the file names for the log files. Log [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pedroliska.wordpress.com&blog=7179230&post=35&subd=pedroliska&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Class description:</p>
<p>/// This class handles writing to a log file and rolling it based on<br />
/// the file size. Currently you only need to send one parameter to the<br />
/// constructor: the logFullFilePath<br />
///<br />
/// From the logFullFilePath, this class will determine the folder location where<br />
/// to place all logs and the file names for the log files. Log files will be<br />
/// rolled when the file hits 5MB; this will be customizable in the future via<br />
/// constructor parameters or public properties.<br />
///<br />
/// For a logFullFilePath like this one: C:\dir1\dir2\log-file-name.log<br />
///<br />
/// All of the log files will be located in C:\dir1\dir2 , the most recent<br />
/// log file will always be log-file-name.log and once log-file-name.log hits 5MB,<br />
/// it will be renamed log-file-name-01.log and a new log-file-name.log file will<br />
/// be created. Then when log-file-name.log hits 5MB again, log-file-name-01.log<br />
/// will become log-file-name-02.log, log-file-name.log will become log-file-name-01.log<br />
/// and a new log-file-name.log file will be created. And so on&#8230;<br />
///<br />
/// Currently you will have 15 log-file-name-NN.log files; but this will be<br />
/// customizeable in the future via constructor parameters or public properties.</p>
<p>So basically you just have to do the following, and this class takes care of rolling the logs for you:</p>
<pre>LogRoller roller = new LogRoller("C:\dir1\dir2\log-file-name.log");
while (true)
{
    roller.LogMessage("test message");
    roller.LogException(new ApplicationException("this is an exception");
}</pre>
<p>You can find the class here <a href="http://pedroliska.com/files/LogRoller.cs.txt" target="_blank">LogRoller.cs</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pedroliska.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pedroliska.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pedroliska.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pedroliska.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pedroliska.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pedroliska.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pedroliska.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pedroliska.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pedroliska.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pedroliska.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pedroliska.wordpress.com&blog=7179230&post=35&subd=pedroliska&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pedroliska.wordpress.com/2009/05/05/c-log-roller-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fa18165cf7e4541a81df39fd3bbb034?s=96&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&amp;r=G" medium="image">
			<media:title type="html">pedroliska</media:title>
		</media:content>
	</item>
	</channel>
</rss>
