<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Coeamyd's</title>
    <link>http://www.coeamyd.net/</link>
    <description>...It ain't easy being green</description>
    <language>en-us</language>
    <copyright>Christoph Herold</copyright>
    <lastBuildDate>Mon, 16 Nov 2009 16:08:01 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 1.9.6264.0</generator>
    <managingEditor>Christoph.Herold@coeamyd.net</managingEditor>
    <webMaster>Christoph.Herold@coeamyd.net</webMaster>
    <item>
      <trackback:ping>http://www.coeamyd.net/Trackback.aspx?guid=b8d418dd-227c-4c8c-a8c6-f38cbd8bf11f</trackback:ping>
      <pingback:server>http://www.coeamyd.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.coeamyd.net/PermaLink,guid,b8d418dd-227c-4c8c-a8c6-f38cbd8bf11f.aspx</pingback:target>
      <dc:creator>Christoph Herold</dc:creator>
      <wfw:comment>http://www.coeamyd.net/CommentView,guid,b8d418dd-227c-4c8c-a8c6-f38cbd8bf11f.aspx</wfw:comment>
      <wfw:commentRss>http://www.coeamyd.net/SyndicationService.asmx/GetEntryCommentsRss?guid=b8d418dd-227c-4c8c-a8c6-f38cbd8bf11f</wfw:commentRss>
      <title>550 Die verwendete Absenderadresse gehoert nicht zu Ihrem authentifizierten STRATO Paket.</title>
      <guid isPermaLink="false">http://www.coeamyd.net/PermaLink,guid,b8d418dd-227c-4c8c-a8c6-f38cbd8bf11f.aspx</guid>
      <link>http://www.coeamyd.net/PermaLink,guid,b8d418dd-227c-4c8c-a8c6-f38cbd8bf11f.aspx</link>
      <pubDate>Mon, 16 Nov 2009 16:08:01 GMT</pubDate>
      <description>&lt;p&gt;
Today, one of my customers noticed, that the contact form on his site was not working
anymore. Since nothing had changed for quite a while, I went to look, and it was actually
so. A short check with the error returned from the SMTP mail library (PEAR_Mail) told
me, the error was
&lt;/p&gt;
&lt;pre&gt;550 Die verwendete Absenderadresse gehoert nicht zu Ihrem authentifizierten STRATO Paket.&lt;/pre&gt;
&lt;p&gt;
For those of you who don't understand german, it translates roughly to "The used sender's
address does not belong to your authenticated STRATO account." So I thought, no shit,
it never has been, because I send the mails using the email address the user enters,
so my customer can simply click "reply" in his mail program. This had never been a
problem before, so why was it now. What complicated the matter even more, was that
there is another form on the page, that also uses data entered by the user as the
sender's address, and it worked perfectly well.
&lt;/p&gt;
&lt;p&gt;
To keep things short: After tracing the tcp communication, I could not find any relevant
difference. So, I tested sending a mail with a simple "This is a test" message. What
can I say: It worked! Bj&amp;ouml;rn's an my guess is, that the STRATO mail server uses
a spam filter and did not accept my mail due to its content. I removed some superfluous
server data always submitted when sending a contact mail, and now things are working
again. That error message, though, is really misleading, and I hope they change it
to something more meaningful.
&lt;/p&gt;
&lt;p&gt;
So, if anyone else has this problem, try checking your mails content. It might be
"spammy" :-)
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=b8d418dd-227c-4c8c-a8c6-f38cbd8bf11f" /&gt;</description>
      <comments>http://www.coeamyd.net/CommentView,guid,b8d418dd-227c-4c8c-a8c6-f38cbd8bf11f.aspx</comments>
      <category>Mail</category>
    </item>
    <item>
      <trackback:ping>http://www.coeamyd.net/Trackback.aspx?guid=c915d182-ecff-4e37-b22d-70185058e97f</trackback:ping>
      <pingback:server>http://www.coeamyd.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.coeamyd.net/PermaLink,guid,c915d182-ecff-4e37-b22d-70185058e97f.aspx</pingback:target>
      <dc:creator>Christoph Herold</dc:creator>
      <wfw:comment>http://www.coeamyd.net/CommentView,guid,c915d182-ecff-4e37-b22d-70185058e97f.aspx</wfw:comment>
      <wfw:commentRss>http://www.coeamyd.net/SyndicationService.asmx/GetEntryCommentsRss?guid=c915d182-ecff-4e37-b22d-70185058e97f</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Today, I was dumbfounded by LINQ's optimization skills. I built a query over a list
of items, which have an assigned category and a display order. I wanted to fetch a
list of the distinct categories, to display them as an overview, and have them sorted
according to the order of the entries themselves. My LINQ query looked something like
this:
</p>
        <pre>var categories = context.Entries.OrderBy(e =&gt; e.DisplayOrder).Select(e =&gt; e.Category).Distinct();</pre>
        <p>
Everything seemed to work, but when I started ordering things around, the categories
would remain as they were. What I also noticed, was that they were ordered alphabetically,
which perplexed me. I decided to look at the generated query, and lo and behold, there
was not a single ORDER BY clause in it. I took the generated query, added my own order
by clause to it, and got an error:
</p>
        <pre>ORDER BY items must appear in the select list if SELECT DISTINCT is specified.</pre>
        <p>
Of course: Distinct probably just sorts the values to make filtering out duplicates
easier. I left out the Distinct() method, and my ordering was the way I wanted to
have it.
</p>
        <p>
I have not yet worked on a sql-based solution for this, since my structure holding
the categories handled duplicate filtering by itself. And my data barely has any duplicates
in it anyways, so I left it at that.
</p>
        <p>
But what amazed me, was that LINQ actually left out the order by on its own accord,
since it would have caused an error. The LINQ to SQL parser really knows, what it's
doing, although in my case, I would have liked to get some sort of warning, that the
query will not behave as expected. Nonetheless, I love LINQ :-)
</p>
        <img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=c915d182-ecff-4e37-b22d-70185058e97f" />
      </body>
      <title>OrderBy, Distinct, and LINQ's optimization skills</title>
      <guid isPermaLink="false">http://www.coeamyd.net/PermaLink,guid,c915d182-ecff-4e37-b22d-70185058e97f.aspx</guid>
      <link>http://www.coeamyd.net/PermaLink,guid,c915d182-ecff-4e37-b22d-70185058e97f.aspx</link>
      <pubDate>Thu, 16 Jul 2009 11:04:26 GMT</pubDate>
      <description>&lt;p&gt;
Today, I was dumbfounded by LINQ's optimization skills. I built a query over a list
of items, which have an assigned category and a display order. I wanted to fetch a
list of the distinct categories, to display them as an overview, and have them sorted
according to the order of the entries themselves. My LINQ query looked something like
this:
&lt;/p&gt;
&lt;pre&gt;var categories = context.Entries.OrderBy(e =&amp;gt; e.DisplayOrder).Select(e =&amp;gt; e.Category).Distinct();&lt;/pre&gt;
&lt;p&gt;
Everything seemed to work, but when I started ordering things around, the categories
would remain as they were. What I also noticed, was that they were ordered alphabetically,
which perplexed me. I decided to look at the generated query, and lo and behold, there
was not a single ORDER BY clause in it. I took the generated query, added my own order
by clause to it, and got an error:
&lt;/p&gt;
&lt;pre&gt;ORDER BY items must appear in the select list if SELECT DISTINCT is specified.&lt;/pre&gt;
&lt;p&gt;
Of course: Distinct probably just sorts the values to make filtering out duplicates
easier. I left out the Distinct() method, and my ordering was the way I wanted to
have it.
&lt;/p&gt;
&lt;p&gt;
I have not yet worked on a sql-based solution for this, since my structure holding
the categories handled duplicate filtering by itself. And my data barely has any duplicates
in it anyways, so I left it at that.
&lt;/p&gt;
&lt;p&gt;
But what amazed me, was that LINQ actually left out the order by on its own accord,
since it would have caused an error. The LINQ to SQL parser really knows, what it's
doing, although in my case, I would have liked to get some sort of warning, that the
query will not behave as expected. Nonetheless, I love LINQ :-)
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=c915d182-ecff-4e37-b22d-70185058e97f" /&gt;</description>
      <comments>http://www.coeamyd.net/CommentView,guid,c915d182-ecff-4e37-b22d-70185058e97f.aspx</comments>
      <category>.NET;SQL Server;LINQ</category>
    </item>
    <item>
      <trackback:ping>http://www.coeamyd.net/Trackback.aspx?guid=ff32191b-0509-4b63-9696-a824d8db558a</trackback:ping>
      <pingback:server>http://www.coeamyd.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.coeamyd.net/PermaLink,guid,ff32191b-0509-4b63-9696-a824d8db558a.aspx</pingback:target>
      <dc:creator>Christoph Herold</dc:creator>
      <wfw:comment>http://www.coeamyd.net/CommentView,guid,ff32191b-0509-4b63-9696-a824d8db558a.aspx</wfw:comment>
      <wfw:commentRss>http://www.coeamyd.net/SyndicationService.asmx/GetEntryCommentsRss?guid=ff32191b-0509-4b63-9696-a824d8db558a</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I just launched a new project at codeplex aiming at the integration of jQuery UI in
DotNetNuke: <a href="http://jquidnn.codeplex.com/" target="_blank">http://jquidnn.codeplex.com/</a>.
The first releases are already available in form of DNN module packages containing
the core functionality, including infrastructural code to include jQuery and jQuery
UI, two web controls for the Tabs and Datepicker widgets, and the smoothness theme.
</p>
        <p>
Also available are module packages for three more themes: Cupertino, UI Darkness and
UI Lightness. Further skins are actually quite easy to package and will follow over
time, or when someone issues a request for one ;-)
</p>
        <p>
So please, start grabbing the releases and giving me feedback.
</p>
        <img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=ff32191b-0509-4b63-9696-a824d8db558a" />
      </body>
      <title>jQuery UI DotNetNuke integration</title>
      <guid isPermaLink="false">http://www.coeamyd.net/PermaLink,guid,ff32191b-0509-4b63-9696-a824d8db558a.aspx</guid>
      <link>http://www.coeamyd.net/PermaLink,guid,ff32191b-0509-4b63-9696-a824d8db558a.aspx</link>
      <pubDate>Fri, 03 Apr 2009 11:04:47 GMT</pubDate>
      <description>&lt;p&gt;
I just launched a new project at codeplex aiming at the integration of jQuery UI in
DotNetNuke: &lt;a href="http://jquidnn.codeplex.com/" target="_blank"&gt;http://jquidnn.codeplex.com/&lt;/a&gt;.
The first releases are already available in form of DNN module packages containing
the core functionality, including infrastructural code to include jQuery and jQuery
UI, two web controls for the Tabs and Datepicker widgets, and the smoothness theme.
&lt;/p&gt;
&lt;p&gt;
Also available are module packages for three more themes: Cupertino, UI Darkness and
UI Lightness. Further skins are actually quite easy to package and will follow over
time, or when someone issues a request for one ;-)
&lt;/p&gt;
&lt;p&gt;
So please, start grabbing the releases and giving me feedback.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=ff32191b-0509-4b63-9696-a824d8db558a" /&gt;</description>
      <comments>http://www.coeamyd.net/CommentView,guid,ff32191b-0509-4b63-9696-a824d8db558a.aspx</comments>
      <category>.NET;ASP.NET;Development;DotNetNuke;jQuery;Web</category>
    </item>
    <item>
      <trackback:ping>http://www.coeamyd.net/Trackback.aspx?guid=a2da5e82-d6aa-42f0-8913-8538cd7502f0</trackback:ping>
      <pingback:server>http://www.coeamyd.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.coeamyd.net/PermaLink,guid,a2da5e82-d6aa-42f0-8913-8538cd7502f0.aspx</pingback:target>
      <dc:creator>Christoph Herold</dc:creator>
      <wfw:comment>http://www.coeamyd.net/CommentView,guid,a2da5e82-d6aa-42f0-8913-8538cd7502f0.aspx</wfw:comment>
      <wfw:commentRss>http://www.coeamyd.net/SyndicationService.asmx/GetEntryCommentsRss?guid=a2da5e82-d6aa-42f0-8913-8538cd7502f0</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I just wasted another hour, trying to figure out, what exactly ASP.NET was trying
to tell me, when giving me an <strong>"ASPNET: Make sure that the class defined in
this code file matches the 'inherits' attribute, and that it extends the correct base
class (e.g. Page or UserControl)."</strong> message on compiling my ascx file.
</p>
        <p>
Ok, so I used a custom namespace, but I've done that hundreds of times, so that shouldn't
be the problem. I also had a custom base class inheriting from UserControl. Also,
nothing I haven't done before. So what was the issue now?!
</p>
        <p>
I basically retyped everything concerning the namespace and class names in all files,
but nothing helped. So I reverted to commenting out my code. This helped me find the
issue: I used a
</p>
        <pre>&lt;% if (somethingOrOther) { %&gt; Some code here &lt;% } %&gt;</pre>
        <p>
construct in my ascx-file (Please don't start an argument on whether this is good
practice or not. I know it's not the cleanest way to do things, but that is not the
concern here :-) ), and actually forgot to put in the closing <code>&lt;% } %&gt;</code>.
Ok, my fault, but shouldn't you get a better Compiler message than "ASPNET: Make sure
that the class defined in this code file matches the 'inherits' attribute, and that
it extends the correct base class (e.g. Page or UserControl)."?!
</p>
        <p>
So, if you encouter this error (and believe me, I've had it more than once due to
typos), and are 100% positive you've spelled everything correctly, check for unbalanced
parentheses!
</p>
        <img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=a2da5e82-d6aa-42f0-8913-8538cd7502f0" />
      </body>
      <title>Bogus errors from ASP.NET compiler</title>
      <guid isPermaLink="false">http://www.coeamyd.net/PermaLink,guid,a2da5e82-d6aa-42f0-8913-8538cd7502f0.aspx</guid>
      <link>http://www.coeamyd.net/PermaLink,guid,a2da5e82-d6aa-42f0-8913-8538cd7502f0.aspx</link>
      <pubDate>Wed, 18 Mar 2009 16:43:48 GMT</pubDate>
      <description>&lt;p&gt;
I just wasted another hour, trying to figure out, what exactly ASP.NET was trying
to tell me, when giving me an &lt;strong&gt;"ASPNET: Make sure that the class defined in
this code file matches the 'inherits' attribute, and that it extends the correct base
class (e.g. Page or UserControl)."&lt;/strong&gt; message on compiling my ascx file.
&lt;/p&gt;
&lt;p&gt;
Ok, so I used a custom namespace, but I've done that hundreds of times, so that shouldn't
be the problem. I also had a custom base class inheriting from UserControl. Also,
nothing I haven't done before. So what was the issue now?!
&lt;/p&gt;
&lt;p&gt;
I basically retyped everything concerning the namespace and class names in all files,
but nothing helped. So I reverted to commenting out my code. This helped me find the
issue: I used a
&lt;/p&gt;
&lt;pre&gt;&amp;lt;% if (somethingOrOther) { %&amp;gt; Some code here &amp;lt;% } %&amp;gt;&lt;/pre&gt;
&lt;p&gt;
construct in my ascx-file (Please don't start an argument on whether this is good
practice or not. I know it's not the cleanest way to do things, but that is not the
concern here :-) ), and actually forgot to put in the closing &lt;code&gt;&amp;lt;% } %&amp;gt;&lt;/code&gt;.
Ok, my fault, but shouldn't you get a better Compiler message than "ASPNET: Make sure
that the class defined in this code file matches the 'inherits' attribute, and that
it extends the correct base class (e.g. Page or UserControl)."?!
&lt;/p&gt;
&lt;p&gt;
So, if you encouter this error (and believe me, I've had it more than once due to
typos), and are 100% positive you've spelled everything correctly, check for unbalanced
parentheses!
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=a2da5e82-d6aa-42f0-8913-8538cd7502f0" /&gt;</description>
      <comments>http://www.coeamyd.net/CommentView,guid,a2da5e82-d6aa-42f0-8913-8538cd7502f0.aspx</comments>
      <category>.NET;ASP.NET;Development;HTML;Pitfall;Web</category>
    </item>
    <item>
      <trackback:ping>http://www.coeamyd.net/Trackback.aspx?guid=f596bb07-01ec-439a-860a-84830935243c</trackback:ping>
      <pingback:server>http://www.coeamyd.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.coeamyd.net/PermaLink,guid,f596bb07-01ec-439a-860a-84830935243c.aspx</pingback:target>
      <dc:creator>Christoph Herold</dc:creator>
      <wfw:comment>http://www.coeamyd.net/CommentView,guid,f596bb07-01ec-439a-860a-84830935243c.aspx</wfw:comment>
      <wfw:commentRss>http://www.coeamyd.net/SyndicationService.asmx/GetEntryCommentsRss?guid=f596bb07-01ec-439a-860a-84830935243c</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Yesterday, I had one of those WTF moments. I had a page with a form for entering two
addresses. Both had the same fields, including a <code>RadioButtonList</code> with
identical items. Since the items are resourced, I decided to optimize the performance
by reusing the <code>ListItem</code>s like so:
</p>
        <pre>ListItem[] items = new ListItem[2];
items[0] = new ListItem(this.GetString("salutation.Mister"), "Mr");
items[1] = new ListItem(this.GetString("salutation.Misses"), "Mrs");
this.salutation.Items.AddRange(items);
this.salutation2.Items.AddRange(items);</pre>
        <p>
Simple eh. Everything seems to be ok. And was I amazed, when I tested it, and I always
got the <code>SelectedItem</code> to be the one selected in <code>salutation2</code>.
I double-checked every location were I was storing the values, in case I forgot to
change the field name after copy/pasting. But everything was correct, as far as I
could tell. I even checked the values submitted by the browser, they were also correct.
</p>
        <p>
Finally, it hit me: The ListItem has a <code>Selected</code> property, and it is used
to find the <code>RadioButtonList</code>s <code>SelectedItem</code> property. And
since I reused the items, the first list parses its items on postback, sets the appropriate <code>ListItem</code>'s <code>Selected</code> property
to <code>true</code>. Same thing happens with the second <code>RadioButtonList</code>.
And since the <code>ListItem</code>s are used in both lists, the last one wins.
</p>
        <p>
So, I changed my code to look like this:
</p>
        <pre>ListItem[] items = new ListItem[2];
items[0] = new ListItem(this.GetString("salutation.Mister"), "Mr");
items[1] = new ListItem(this.GetString("salutation.Misses"), "Mrs");
this.salutation.Items.AddRange(items);
items = new ListItem[2];
items[0] = new ListItem(this.GetString("salutation.Mister"), "Mr");
items[1] = new ListItem(this.GetString("salutation.Misses"), "Mrs");
this.salutation2.Items.AddRange(items);</pre>
        <p>
Now everything works as it should. So next time, be careful when reusing your <code>ListItem</code>s!
</p>
        <img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=f596bb07-01ec-439a-860a-84830935243c" />
      </body>
      <title>Be careful when reusing ListItems</title>
      <guid isPermaLink="false">http://www.coeamyd.net/PermaLink,guid,f596bb07-01ec-439a-860a-84830935243c.aspx</guid>
      <link>http://www.coeamyd.net/PermaLink,guid,f596bb07-01ec-439a-860a-84830935243c.aspx</link>
      <pubDate>Tue, 17 Mar 2009 11:12:24 GMT</pubDate>
      <description>&lt;p&gt;
Yesterday, I had one of those WTF moments. I had a page with a form for entering two
addresses. Both had the same fields, including a &lt;code&gt;RadioButtonList&lt;/code&gt; with
identical items. Since the items are resourced, I decided to optimize the performance
by reusing the &lt;code&gt;ListItem&lt;/code&gt;s like so:
&lt;/p&gt;
&lt;pre&gt;ListItem[] items = new ListItem[2];
items[0] = new ListItem(this.GetString("salutation.Mister"), "Mr");
items[1] = new ListItem(this.GetString("salutation.Misses"), "Mrs");
this.salutation.Items.AddRange(items);
this.salutation2.Items.AddRange(items);&lt;/pre&gt;
&lt;p&gt;
Simple eh. Everything seems to be ok. And was I amazed, when I tested it, and I always
got the &lt;code&gt;SelectedItem&lt;/code&gt; to be the one selected in &lt;code&gt;salutation2&lt;/code&gt;.
I double-checked every location were I was storing the values, in case I forgot to
change the field name after copy/pasting. But everything was correct, as far as I
could tell. I even checked the values submitted by the browser, they were also correct.
&lt;/p&gt;
&lt;p&gt;
Finally, it hit me: The ListItem has a &lt;code&gt;Selected&lt;/code&gt; property, and it is used
to find the &lt;code&gt;RadioButtonList&lt;/code&gt;s &lt;code&gt;SelectedItem&lt;/code&gt; property. And
since I reused the items, the first list parses its items on postback, sets the appropriate &lt;code&gt;ListItem&lt;/code&gt;'s &lt;code&gt;Selected&lt;/code&gt; property
to &lt;code&gt;true&lt;/code&gt;. Same thing happens with the second &lt;code&gt;RadioButtonList&lt;/code&gt;.
And since the &lt;code&gt;ListItem&lt;/code&gt;s are used in both lists, the last one wins.
&lt;/p&gt;
&lt;p&gt;
So, I changed my code to look like this:
&lt;/p&gt;
&lt;pre&gt;ListItem[] items = new ListItem[2];
items[0] = new ListItem(this.GetString("salutation.Mister"), "Mr");
items[1] = new ListItem(this.GetString("salutation.Misses"), "Mrs");
this.salutation.Items.AddRange(items);
items = new ListItem[2];
items[0] = new ListItem(this.GetString("salutation.Mister"), "Mr");
items[1] = new ListItem(this.GetString("salutation.Misses"), "Mrs");
this.salutation2.Items.AddRange(items);&lt;/pre&gt;
&lt;p&gt;
Now everything works as it should. So next time, be careful when reusing your &lt;code&gt;ListItem&lt;/code&gt;s!
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=f596bb07-01ec-439a-860a-84830935243c" /&gt;</description>
      <comments>http://www.coeamyd.net/CommentView,guid,f596bb07-01ec-439a-860a-84830935243c.aspx</comments>
      <category>ASP.NET;Development;HTML;Web;Pitfall</category>
    </item>
    <item>
      <trackback:ping>http://www.coeamyd.net/Trackback.aspx?guid=e5ac8655-ab1d-4482-8591-4ecade2db5ae</trackback:ping>
      <pingback:server>http://www.coeamyd.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.coeamyd.net/PermaLink,guid,e5ac8655-ab1d-4482-8591-4ecade2db5ae.aspx</pingback:target>
      <dc:creator>Christoph Herold</dc:creator>
      <wfw:comment>http://www.coeamyd.net/CommentView,guid,e5ac8655-ab1d-4482-8591-4ecade2db5ae.aspx</wfw:comment>
      <wfw:commentRss>http://www.coeamyd.net/SyndicationService.asmx/GetEntryCommentsRss?guid=e5ac8655-ab1d-4482-8591-4ecade2db5ae</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Last night, I went to visit Monty Python's Spamalot musical in Cologne. I had no idea,
what to expect from it, and I was quite sceptical concerning the german translation.
I was very surprised by the job, the whole team has done. It was very funny, in typical
Monty Python style, many unexpected gags, and very ludicrous. I actually believe,
they got some gags in german, that weren't in the english version. At least, I wouldn't
know, how to translate it, to make it funny :-) I'm very interested in the english
version, though. Humor is definitely best in the original language. Nonetheless, the
musical is definitely worth seeing.
</p>
        <img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=e5ac8655-ab1d-4482-8591-4ecade2db5ae" />
      </body>
      <title>Monty Python's Spamalot musical</title>
      <guid isPermaLink="false">http://www.coeamyd.net/PermaLink,guid,e5ac8655-ab1d-4482-8591-4ecade2db5ae.aspx</guid>
      <link>http://www.coeamyd.net/PermaLink,guid,e5ac8655-ab1d-4482-8591-4ecade2db5ae.aspx</link>
      <pubDate>Thu, 29 Jan 2009 12:29:07 GMT</pubDate>
      <description>&lt;p&gt;
Last night, I went to visit Monty Python's Spamalot musical in Cologne. I had no idea,
what to expect from it, and I was quite sceptical concerning the german translation.
I was very surprised by the job, the whole team has done. It was very funny, in typical
Monty Python style, many unexpected gags, and very ludicrous. I actually believe,
they got some gags in german, that weren't in the english version. At least, I wouldn't
know, how to translate it, to make it funny :-) I'm very interested in the english
version, though. Humor is definitely best in the original language. Nonetheless, the
musical is definitely worth seeing.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=e5ac8655-ab1d-4482-8591-4ecade2db5ae" /&gt;</description>
      <comments>http://www.coeamyd.net/CommentView,guid,e5ac8655-ab1d-4482-8591-4ecade2db5ae.aspx</comments>
      <category>Leisure;Musical</category>
    </item>
    <item>
      <trackback:ping>http://www.coeamyd.net/Trackback.aspx?guid=53accd33-6788-4f91-b847-f316050c0e41</trackback:ping>
      <pingback:server>http://www.coeamyd.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.coeamyd.net/PermaLink,guid,53accd33-6788-4f91-b847-f316050c0e41.aspx</pingback:target>
      <dc:creator>Christoph Herold</dc:creator>
      <wfw:comment>http://www.coeamyd.net/CommentView,guid,53accd33-6788-4f91-b847-f316050c0e41.aspx</wfw:comment>
      <wfw:commentRss>http://www.coeamyd.net/SyndicationService.asmx/GetEntryCommentsRss?guid=53accd33-6788-4f91-b847-f316050c0e41</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Yesterday, I wasted a few hours trying to upgrade my SQL Server 2005 installation
to 2008. Actually, upgrading is a simple process. You can simply select, which instance
to upgrade, and the installer does the rest. It worked absolutely fine for my regular
instance. I got some installation errors for a component, but didn't mind that at
first. Everything seemed to be working.
</p>
        <p>
At least I thought so, until I noticed, WHAT component got the errors. The SQL Server
Management Studio was not installed. And the older 2005 version isn't able to connect
to 2008. Bummer.
</p>
        <p>
So I thought, let's try to reinstall it. Same error: "The error code is 2349." When
you copy the details to the clipboard, you at least find the URL <a href="http://www.microsoft.com/products/ee/transform.aspx?ProdName=Microsoft+SQL+Server&amp;EvtSrc=setup.rll&amp;EvtID=50000&amp;ProdVer=10.0.1600.22&amp;EvtType=0xF45F6601%25401201%25401">http://www.microsoft.com/products/ee/transform.aspx?ProdName=Microsoft+SQL+Server&amp;EvtSrc=setup.rll&amp;EvtID=50000&amp;ProdVer=10.0.1600.22&amp;EvtType=0xF45F6601%25401201%25401</a>,
that gives you the information, that the SQL Server Native Client is causing the trouble.
</p>
        <p>
So I tried upgrading my SQL Server Express instance, but that was also dismissed with
an error. Next, I uninstalled my SQL Server 2005 express instance, uninstalled the
native client, and now added the Management Studio feature to my SQL Server 2008 instance.
Same error, this is really getting frustrating.
</p>
        <p>
So now, my last resort is to uninstall the whole d*rn thing and try to reinstall it.
At least the installation only takes about 2 hours *cough*.
</p>
        <p>
          <strong>UPDATE:</strong> Even the complete uninstall did not help. As the error message
states, the Native Client is supposedly not installed from the sqlncli.msi package.
Well, I even uninstalled and reinstalled ONLY THAT package, to no avail. I'm still
getting the same bogus error, when I try to install SSMS. Any help is welcome! I'm
out of ideas.
</p>
        <p>
But at least I'm not all alone with my ss2008 install problems. A friend of mine had
other issues, but at least he was able to resolve them: <a href="http://www.entwicklungsgedanken.de/2009/01/28/installation-problems-with-sql-server-2008/comment-page-1/#comment-252">http://www.entwicklungsgedanken.de/2009/01/28/installation-problems-with-sql-server-2008/comment-page-1/#comment-252</a>.
</p>
        <p>
          <strong>UPDATE 2:</strong> I have found out, that it's the Visual Studio Tools for
Applications 2.0 installer, that is causing the problems. But I still have no idea
why.
</p>
        <p>
          <strong>UPDATE 3:</strong> Rollback all rants :-) I found the issue. A file could
not be replaced/updated by the installer. This was due to the fact, that my hard disk
seems to be defective. The file could not be read, even less replaced. After renaming
it, the installation went fine. So now, I have performed a scandisk, the errors have
been cleared, and everything is in order. Guess I'll be backing up more often now,
though.
</p>
        <img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=53accd33-6788-4f91-b847-f316050c0e41" />
      </body>
      <title>Upgrade hassles with SQL Server 2008</title>
      <guid isPermaLink="false">http://www.coeamyd.net/PermaLink,guid,53accd33-6788-4f91-b847-f316050c0e41.aspx</guid>
      <link>http://www.coeamyd.net/PermaLink,guid,53accd33-6788-4f91-b847-f316050c0e41.aspx</link>
      <pubDate>Wed, 28 Jan 2009 09:36:10 GMT</pubDate>
      <description>&lt;p&gt;
Yesterday, I wasted a few hours trying to upgrade my SQL Server 2005 installation
to 2008. Actually, upgrading is a simple process. You can simply select, which instance
to upgrade, and the installer does the rest. It worked absolutely fine for my regular
instance. I got some installation errors for a component, but didn't mind that at
first. Everything seemed to be working.
&lt;/p&gt;
&lt;p&gt;
At least I thought so, until I noticed, WHAT component got the errors. The SQL Server
Management Studio was not installed. And the older 2005 version isn't able to connect
to 2008. Bummer.
&lt;/p&gt;
&lt;p&gt;
So I thought, let's try to reinstall it. Same error: "The error code is 2349." When
you copy the details to the clipboard, you at least find the URL &lt;a href="http://www.microsoft.com/products/ee/transform.aspx?ProdName=Microsoft+SQL+Server&amp;amp;EvtSrc=setup.rll&amp;amp;EvtID=50000&amp;amp;ProdVer=10.0.1600.22&amp;amp;EvtType=0xF45F6601%25401201%25401"&gt;http://www.microsoft.com/products/ee/transform.aspx?ProdName=Microsoft+SQL+Server&amp;amp;EvtSrc=setup.rll&amp;amp;EvtID=50000&amp;amp;ProdVer=10.0.1600.22&amp;amp;EvtType=0xF45F6601%25401201%25401&lt;/a&gt;,
that gives you the information, that the SQL Server Native Client is causing the trouble.
&lt;/p&gt;
&lt;p&gt;
So I tried upgrading my SQL Server Express instance, but that was also dismissed with
an error. Next, I uninstalled my SQL Server 2005 express instance, uninstalled the
native client, and now added the Management Studio feature to my SQL Server 2008 instance.
Same error, this is really getting frustrating.
&lt;/p&gt;
&lt;p&gt;
So now, my last resort is to uninstall the whole d*rn thing and try to reinstall it.
At least the installation only takes about 2 hours *cough*.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;UPDATE:&lt;/strong&gt; Even the complete uninstall did not help. As the error message
states, the Native Client is supposedly not installed from the sqlncli.msi package.
Well, I even uninstalled and reinstalled ONLY THAT package, to no avail. I'm still
getting the same bogus error, when I try to install SSMS. Any help is welcome! I'm
out of ideas.
&lt;/p&gt;
&lt;p&gt;
But at least I'm not all alone with my ss2008 install problems. A friend of mine had
other issues, but at least he was able to resolve them: &lt;a href="http://www.entwicklungsgedanken.de/2009/01/28/installation-problems-with-sql-server-2008/comment-page-1/#comment-252"&gt;http://www.entwicklungsgedanken.de/2009/01/28/installation-problems-with-sql-server-2008/comment-page-1/#comment-252&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;UPDATE 2:&lt;/strong&gt; I have found out, that it's the Visual Studio Tools for
Applications 2.0 installer, that is causing the problems. But I still have no idea
why.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;UPDATE 3:&lt;/strong&gt; Rollback all rants :-) I found the issue. A file could
not be replaced/updated by the installer. This was due to the fact, that my hard disk
seems to be defective. The file could not be read, even less replaced. After renaming
it, the installation went fine. So now, I have performed a scandisk, the errors have
been cleared, and everything is in order. Guess I'll be backing up more often now,
though.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=53accd33-6788-4f91-b847-f316050c0e41" /&gt;</description>
      <comments>http://www.coeamyd.net/CommentView,guid,53accd33-6788-4f91-b847-f316050c0e41.aspx</comments>
      <category>Administration;Development;SQL Server</category>
    </item>
    <item>
      <trackback:ping>http://www.coeamyd.net/Trackback.aspx?guid=3fc8b3ac-79ec-48f4-ae2b-4b61919334d6</trackback:ping>
      <pingback:server>http://www.coeamyd.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.coeamyd.net/PermaLink,guid,3fc8b3ac-79ec-48f4-ae2b-4b61919334d6.aspx</pingback:target>
      <dc:creator>Christoph Herold</dc:creator>
      <wfw:comment>http://www.coeamyd.net/CommentView,guid,3fc8b3ac-79ec-48f4-ae2b-4b61919334d6.aspx</wfw:comment>
      <wfw:commentRss>http://www.coeamyd.net/SyndicationService.asmx/GetEntryCommentsRss?guid=3fc8b3ac-79ec-48f4-ae2b-4b61919334d6</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I just ran across a really nice article describing how to create a self hosted WCF
service using HTTPS bindings. It's a nice step-by-step instruction on how to create
your own certificates, adding them to your store, configuring the Windows HTTP runtime,
and configuring your WCF service. You can find the article on CodeProject at this
url: <a href="http://www.codeproject.com/KB/WCF/WCFSSL.aspx">http://www.codeproject.com/KB/WCF/WCFSSL.aspx</a>.
Really nice article, helped me a lot. Kudos to Chris.
</p>
        <p>
Also, Steve Johnson created a nice little GUI for the httpcfg command line tool, which
you can find here: <a href="http://www.stevestechspot.com/ABetterHttpcfg.aspx">http://www.stevestechspot.com/ABetterHttpcfg.aspx</a>.
It's a nice addition to the article, so you are not completely bound to the console
:-)
</p>
        <img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=3fc8b3ac-79ec-48f4-ae2b-4b61919334d6" />
      </body>
      <title>Developing WCF with HTTPS</title>
      <guid isPermaLink="false">http://www.coeamyd.net/PermaLink,guid,3fc8b3ac-79ec-48f4-ae2b-4b61919334d6.aspx</guid>
      <link>http://www.coeamyd.net/PermaLink,guid,3fc8b3ac-79ec-48f4-ae2b-4b61919334d6.aspx</link>
      <pubDate>Tue, 13 Jan 2009 20:22:35 GMT</pubDate>
      <description>&lt;p&gt;
I just ran across a really nice article describing how to create a self hosted WCF
service using HTTPS bindings. It's a nice step-by-step instruction on how to create
your own certificates, adding them to your store, configuring the Windows HTTP runtime,
and configuring your WCF service. You can find the article on CodeProject at this
url: &lt;a href="http://www.codeproject.com/KB/WCF/WCFSSL.aspx"&gt;http://www.codeproject.com/KB/WCF/WCFSSL.aspx&lt;/a&gt;.
Really nice article, helped me a lot. Kudos to Chris.
&lt;/p&gt;
&lt;p&gt;
Also, Steve Johnson created a nice little GUI for the httpcfg command line tool, which
you can find here: &lt;a href="http://www.stevestechspot.com/ABetterHttpcfg.aspx"&gt;http://www.stevestechspot.com/ABetterHttpcfg.aspx&lt;/a&gt;.
It's a nice addition to the article, so you are not completely bound to the console
:-)
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=3fc8b3ac-79ec-48f4-ae2b-4b61919334d6" /&gt;</description>
      <comments>http://www.coeamyd.net/CommentView,guid,3fc8b3ac-79ec-48f4-ae2b-4b61919334d6.aspx</comments>
      <category>.NET;Development;WCF</category>
    </item>
    <item>
      <trackback:ping>http://www.coeamyd.net/Trackback.aspx?guid=6998dbab-23b2-4fc4-9e21-ce3a327d5d82</trackback:ping>
      <pingback:server>http://www.coeamyd.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.coeamyd.net/PermaLink,guid,6998dbab-23b2-4fc4-9e21-ce3a327d5d82.aspx</pingback:target>
      <dc:creator>Christoph Herold</dc:creator>
      <wfw:comment>http://www.coeamyd.net/CommentView,guid,6998dbab-23b2-4fc4-9e21-ce3a327d5d82.aspx</wfw:comment>
      <wfw:commentRss>http://www.coeamyd.net/SyndicationService.asmx/GetEntryCommentsRss?guid=6998dbab-23b2-4fc4-9e21-ce3a327d5d82</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">I have been using jQuery with DotNetNuke
for a while now, and was very happy to finally see it integrated into DotNetNuke.
What makes me wonder, is that there is no central method for including it in DNN 4.9.1.
The library has been placed into the folder ~/Resources/Shared/scripts/jquery, but
the one usage I could find does not use the ClientScriptManager to include the script.
Instead, it manually creates a Literal script control. This will cause the script
to be included multiple times, if different controls use it simultaneously. Perhaps
this will be "fixed" in a future release. Perhaps adding a method to the ClientAPI
for including it would be a good solution for a global include mechanism.<br /><p></p><img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=6998dbab-23b2-4fc4-9e21-ce3a327d5d82" /></body>
      <title>DotNetNuke now with jQuery</title>
      <guid isPermaLink="false">http://www.coeamyd.net/PermaLink,guid,6998dbab-23b2-4fc4-9e21-ce3a327d5d82.aspx</guid>
      <link>http://www.coeamyd.net/PermaLink,guid,6998dbab-23b2-4fc4-9e21-ce3a327d5d82.aspx</link>
      <pubDate>Wed, 07 Jan 2009 10:06:15 GMT</pubDate>
      <description>I have been using jQuery with DotNetNuke for a while now, and was very happy to finally see it integrated into DotNetNuke. What makes me wonder, is that there is no central method for including it in DNN 4.9.1. The library has been placed into the folder ~/Resources/Shared/scripts/jquery, but the one usage I could find does not use the ClientScriptManager to include the script. Instead, it manually creates a Literal script control. This will cause the script to be included multiple times, if different controls use it simultaneously. Perhaps this will be "fixed" in a future release. Perhaps adding a method to the ClientAPI for including it would be a good solution for a global include mechanism.&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=6998dbab-23b2-4fc4-9e21-ce3a327d5d82" /&gt;</description>
      <comments>http://www.coeamyd.net/CommentView,guid,6998dbab-23b2-4fc4-9e21-ce3a327d5d82.aspx</comments>
      <category>.NET;ASP.NET;Development;DotNetNuke;Web;jQuery</category>
    </item>
    <item>
      <trackback:ping>http://www.coeamyd.net/Trackback.aspx?guid=c76428e2-4d76-40d0-a68c-6b3dea04b03c</trackback:ping>
      <pingback:server>http://www.coeamyd.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.coeamyd.net/PermaLink,guid,c76428e2-4d76-40d0-a68c-6b3dea04b03c.aspx</pingback:target>
      <dc:creator>Christoph Herold</dc:creator>
      <wfw:comment>http://www.coeamyd.net/CommentView,guid,c76428e2-4d76-40d0-a68c-6b3dea04b03c.aspx</wfw:comment>
      <wfw:commentRss>http://www.coeamyd.net/SyndicationService.asmx/GetEntryCommentsRss?guid=c76428e2-4d76-40d0-a68c-6b3dea04b03c</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Today, I had to make a template for a mailing. I decided to create it as a stationery
for Outlook, since this was the desired way of sending the mails. Not much to it,
one might think. I created the HTML for the template (of course using the dreaded
layout tables, since OL2007 went back to the stone age with its rendering engine),
and copied it and the required images to the stationery folder. Having done that,
the stationery showed in my list and I was able to create a mail using the template.
</p>
        <p>
But what's this?! Were do the gaps in between the images come from?! And why are my
shadows not aligned anymore?! Outlook simply went on and pratically destroyed my layout.
I basically tried everything that came to my mind, trying to fix the gaps: modified
paddings and margins using css, html attributes, added fixed widths and heights, nothing
seemed to work. I even removed all the tables and simply placed two images after one
another, no white space in between. Still, I got my gaps.
</p>
        <p>
When everything seemed hopeless, I decided to simply send the mail the way it was.
Guess what: everything is in perfect shape, when the mail arrives. No gaps, everything
is aligned perfectly. I can even simply forward this mail, and it looks great in the
editor. So the gaps only show, when you first create the mail using the stationery.
Afterwards, everything is as it should be.
</p>
        <p>
&lt;rant&gt;Now that's what I call a consistent user experience! Great job from the
folks at Microsoft. I wasted a whole day trying to work around this bug.&lt;/rant&gt;
</p>
        <p>
And by the way, using stationery is probably not the best solution, since Outlook
completely reformats your code and places all those unneccessary MSO* css styles in
your mail's code. So if something goes wrong with your mail, you might consider NOT
using Outlook to send it in the first place.<br /></p>
        <img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=c76428e2-4d76-40d0-a68c-6b3dea04b03c" />
      </body>
      <title>Outlook 2007 stationeries and image spacing</title>
      <guid isPermaLink="false">http://www.coeamyd.net/PermaLink,guid,c76428e2-4d76-40d0-a68c-6b3dea04b03c.aspx</guid>
      <link>http://www.coeamyd.net/PermaLink,guid,c76428e2-4d76-40d0-a68c-6b3dea04b03c.aspx</link>
      <pubDate>Sun, 14 Dec 2008 22:50:02 GMT</pubDate>
      <description>&lt;p&gt;
Today, I had to make a template for a mailing. I decided to create it as a stationery
for Outlook, since this was the desired way of sending the mails. Not much to it,
one might think. I created the HTML for the template (of course using the dreaded
layout tables, since OL2007 went back to the stone age with its rendering engine),
and copied it and the required images to the stationery folder. Having done that,
the stationery showed in my list and I was able to create a mail using the template.
&lt;/p&gt;
&lt;p&gt;
But what's this?! Were do the gaps in between the images come from?! And why are my
shadows not aligned anymore?! Outlook simply went on and pratically destroyed my layout.
I basically tried everything that came to my mind, trying to fix the gaps: modified
paddings and margins using css, html attributes, added fixed widths and heights, nothing
seemed to work. I even removed all the tables and simply placed two images after one
another, no white space in between. Still, I got my gaps.
&lt;/p&gt;
&lt;p&gt;
When everything seemed hopeless, I decided to simply send the mail the way it was.
Guess what: everything is in perfect shape, when the mail arrives. No gaps, everything
is aligned perfectly. I can even simply forward this mail, and it looks great in the
editor. So the gaps only show, when you first create the mail using the stationery.
Afterwards, everything is as it should be.
&lt;/p&gt;
&lt;p&gt;
&amp;lt;rant&amp;gt;Now that's what I call a consistent user experience! Great job from the
folks at Microsoft. I wasted a whole day trying to work around this bug.&amp;lt;/rant&amp;gt;
&lt;/p&gt;
&lt;p&gt;
And by the way, using stationery is probably not the best solution, since Outlook
completely reformats your code and places all those unneccessary MSO* css styles in
your mail's code. So if something goes wrong with your mail, you might consider NOT
using Outlook to send it in the first place.&lt;br&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=c76428e2-4d76-40d0-a68c-6b3dea04b03c" /&gt;</description>
      <comments>http://www.coeamyd.net/CommentView,guid,c76428e2-4d76-40d0-a68c-6b3dea04b03c.aspx</comments>
      <category>HTML;Mail;Outlook;Web</category>
    </item>
  </channel>
</rss>