<?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>Code Crunching - DasBlog</title>
    <link>http://www.gumpi.com/Blog/</link>
    <description>Software Developement, Karate, Life, and more</description>
    <language>en-us</language>
    <copyright>Daniel Wischnewski</copyright>
    <lastBuildDate>Fri, 05 Oct 2007 11:51:55 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.0.7226.0</generator>
    <managingEditor>blog2@gumpi.com</managingEditor>
    <webMaster>blog2@gumpi.com</webMaster>
    <item>
      <trackback:ping>http://www.gumpi.com/Blog/Trackback.aspx?guid=1e63bd7e-f2b0-4acb-96c1-5999cd43a9ea</trackback:ping>
      <pingback:server>http://www.gumpi.com/Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.gumpi.com/Blog/PermaLink,guid,1e63bd7e-f2b0-4acb-96c1-5999cd43a9ea.aspx</pingback:target>
      <dc:creator>Daniel Wischnewski</dc:creator>
      <wfw:comment>http://www.gumpi.com/Blog/CommentView,guid,1e63bd7e-f2b0-4acb-96c1-5999cd43a9ea.aspx</wfw:comment>
      <wfw:commentRss>http://www.gumpi.com/Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=1e63bd7e-f2b0-4acb-96c1-5999cd43a9ea</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
A few weeks ago, <a href="http://www.gumpi.com/Blog/ct.ashx?id=1e63bd7e-f2b0-4acb-96c1-5999cd43a9ea&amp;url=http%3a%2f%2fwww.stevetrefethen.com%2f">Steve
Trefethen</a> published his Blog entry <a href="http://www.gumpi.com/Blog/ct.ashx?id=1e63bd7e-f2b0-4acb-96c1-5999cd43a9ea&amp;url=http%3a%2f%2fwww.stevetrefethen.com%2fblog%2fPublishingIISLogFileAnalysisUsingMicrosoftLogParser.aspx">Publishing
IIS log file analysis using Microsoft Log Parser</a>, where he outlined how to use
the free software <a href="http://www.gumpi.com/Blog/ct.ashx?id=1e63bd7e-f2b0-4acb-96c1-5999cd43a9ea&amp;url=http%3a%2f%2fwww.microsoft.com%2ftechnet%2fscriptcenter%2ftools%2flogparser%2fdefault.mspx">MS
Log Parser</a> to run a basic analysis of the log files created by IIS. Today I set
up my task scheduler to run two basic tasks once a day to generate Summaries on the <a href="http://www.gumpi.com/Blog/ct.ashx?id=1e63bd7e-f2b0-4acb-96c1-5999cd43a9ea&amp;url=http%3a%2f%2fwww.gumpi.com%2fBlog%2fSpecial.aspx%3f%3dMostHits">most
read blog entries</a> as well as the <a href="http://www.gumpi.com/Blog/ct.ashx?id=1e63bd7e-f2b0-4acb-96c1-5999cd43a9ea&amp;url=http%3a%2f%2fwww.gumpi.com%2fBlog%2fSpecial.aspx%3f%3dDownloads">top
downloaded files</a> from my conference page.
</p>
        <p>
The whole setup process took less than 20 minutes to figure out how to format the
query, to create the templates for displaying them within this blog layout and to
setup the scheduler tasks. The last task was the "hardest", as you cannot use parameters
when using the scheduler interface. After figuring out that problem, I simply created
the batch files and pointed the task scheduler to them, which in turn run the queries.
</p>
        <p>
If you like to use those tasks for your <a href="http://www.gumpi.com/Blog/ct.ashx?id=1e63bd7e-f2b0-4acb-96c1-5999cd43a9ea&amp;url=http%3a%2f%2fwww.dasblog.info">DasBlog</a> site,
simply install the MS Log Parser on your server and adjust the following calls.
</p>
        <p>
          <font size="3">The Top 50 Requested Pages</font>
        </p>
        <pre class="sourcecode">logparser.exe 
"SELECT TOP 50 
  to_lowercase(cs-uri-stem) as Url, COUNT(cs-uri-stem) AS Hits 
FROM
  D:\LogFiles\W3SVC2106058385\ex*.log 
WHERE 
  (to_lowercase(cs-uri-stem) NOT LIKE '%%captchaimage%%') AND
  ((to_lowercase(cs-uri-stem) = '/blog') OR 
<br />
(to_lowercase(cs-uri-stem) = '/blog/default.aspx') OR 
<br />
(to_lowercase(cs-uri-stem) like '/blog/20%%.aspx')) GROUP BY Url ORDER BY Hits DESC"
-o:tpl -tpl "D:\Sites\Blog\Content\Special\mosthits.format.tpl" &gt; "D:\Sites\Blog\Content\Special\mosthits.format.html"</pre>
        <p>
          <font size="3">The Downloads-Counter</font>
        </p>
        <pre class="sourcecode">logparser.exe 
"SELECT TOP 50 
  to_lowercase(cs-uri-stem) as Url, COUNT(cs-uri-stem) AS Hits 
FROM
  D:\LogFiles\W3SVC2106058385\ex*.log 
WHERE
  (to_lowercase(cs-uri-stem) like '/downloads/%%')
GROUP BY 
  Url 
ORDER BY
  Hits DESC"
-o:tpl -tpl "D:\Sites\Blog\Content\Special\downloads.format.tpl" &gt; "D:\Sites\Blog\Content\Special\downloads.format.html"</pre>
        <p>
The .tpl-files are formatted similar to the ones shown in Steve's blog.
</p>
        <img width="0" height="0" src="http://www.gumpi.com/Blog/aggbug.ashx?id=1e63bd7e-f2b0-4acb-96c1-5999cd43a9ea" />
      </body>
      <title>Using the MS LogParser for rough statistics</title>
      <guid isPermaLink="false">http://www.gumpi.com/Blog/PermaLink,guid,1e63bd7e-f2b0-4acb-96c1-5999cd43a9ea.aspx</guid>
      <link>http://www.gumpi.com/Blog/2007/10/05/UsingTheMSLogParserForRoughStatistics.aspx</link>
      <pubDate>Fri, 05 Oct 2007 11:51:55 GMT</pubDate>
      <description>&lt;p&gt;
A few weeks ago, &lt;a href="http://www.gumpi.com/Blog/ct.ashx?id=1e63bd7e-f2b0-4acb-96c1-5999cd43a9ea&amp;amp;url=http%3a%2f%2fwww.stevetrefethen.com%2f"&gt;Steve
Trefethen&lt;/a&gt; published his Blog entry &lt;a href="http://www.gumpi.com/Blog/ct.ashx?id=1e63bd7e-f2b0-4acb-96c1-5999cd43a9ea&amp;amp;url=http%3a%2f%2fwww.stevetrefethen.com%2fblog%2fPublishingIISLogFileAnalysisUsingMicrosoftLogParser.aspx"&gt;Publishing
IIS log file analysis using Microsoft Log Parser&lt;/a&gt;, where he outlined how to use
the free software &lt;a href="http://www.gumpi.com/Blog/ct.ashx?id=1e63bd7e-f2b0-4acb-96c1-5999cd43a9ea&amp;amp;url=http%3a%2f%2fwww.microsoft.com%2ftechnet%2fscriptcenter%2ftools%2flogparser%2fdefault.mspx"&gt;MS
Log Parser&lt;/a&gt; to run a basic analysis of the log files created by IIS. Today I set
up my task scheduler to run two basic tasks once a day to generate Summaries on the &lt;a href="http://www.gumpi.com/Blog/ct.ashx?id=1e63bd7e-f2b0-4acb-96c1-5999cd43a9ea&amp;amp;url=http%3a%2f%2fwww.gumpi.com%2fBlog%2fSpecial.aspx%3f%3dMostHits"&gt;most
read blog entries&lt;/a&gt; as well as the &lt;a href="http://www.gumpi.com/Blog/ct.ashx?id=1e63bd7e-f2b0-4acb-96c1-5999cd43a9ea&amp;amp;url=http%3a%2f%2fwww.gumpi.com%2fBlog%2fSpecial.aspx%3f%3dDownloads"&gt;top
downloaded files&lt;/a&gt; from my conference page.
&lt;/p&gt;
&lt;p&gt;
The whole setup process took less than 20 minutes to figure out how to format the
query, to create the templates for displaying them within this blog layout and to
setup the scheduler tasks. The last task was the "hardest", as you cannot use parameters
when using the scheduler interface. After figuring out that problem, I simply created
the batch files and pointed the task scheduler to them, which in turn run the queries.
&lt;/p&gt;
&lt;p&gt;
If you like to use those tasks for your &lt;a href="http://www.gumpi.com/Blog/ct.ashx?id=1e63bd7e-f2b0-4acb-96c1-5999cd43a9ea&amp;amp;url=http%3a%2f%2fwww.dasblog.info"&gt;DasBlog&lt;/a&gt; site,
simply install the MS Log Parser on your server and adjust the following calls.
&lt;/p&gt;
&lt;p&gt;
&lt;font size=3&gt;The Top 50 Requested Pages&lt;/font&gt;
&lt;/p&gt;
&lt;pre class=sourcecode&gt;logparser.exe 
"SELECT TOP 50 
  to_lowercase(cs-uri-stem) as Url, COUNT(cs-uri-stem) AS Hits 
FROM
  D:\LogFiles\W3SVC2106058385\ex*.log 
WHERE 
  (to_lowercase(cs-uri-stem) NOT LIKE '%%captchaimage%%') AND
  ((to_lowercase(cs-uri-stem) = '/blog') OR 
&lt;br&gt;
(to_lowercase(cs-uri-stem) = '/blog/default.aspx') OR 
&lt;br&gt;
(to_lowercase(cs-uri-stem) like '/blog/20%%.aspx')) GROUP BY Url ORDER BY Hits DESC"
-o:tpl -tpl "D:\Sites\Blog\Content\Special\mosthits.format.tpl" &amp;gt; "D:\Sites\Blog\Content\Special\mosthits.format.html"&lt;/pre&gt;
&lt;p&gt;
&lt;font size=3&gt;The Downloads-Counter&lt;/font&gt;
&lt;/p&gt;
&lt;pre class=sourcecode&gt;logparser.exe 
"SELECT TOP 50 
  to_lowercase(cs-uri-stem) as Url, COUNT(cs-uri-stem) AS Hits 
FROM
  D:\LogFiles\W3SVC2106058385\ex*.log 
WHERE
  (to_lowercase(cs-uri-stem) like '/downloads/%%')
GROUP BY 
  Url 
ORDER BY
  Hits DESC"
-o:tpl -tpl "D:\Sites\Blog\Content\Special\downloads.format.tpl" &amp;gt; "D:\Sites\Blog\Content\Special\downloads.format.html"&lt;/pre&gt;
&lt;p&gt;
The .tpl-files are formatted similar to the ones shown in Steve's blog.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.gumpi.com/Blog/aggbug.ashx?id=1e63bd7e-f2b0-4acb-96c1-5999cd43a9ea" /&gt;</description>
      <comments>http://www.gumpi.com/Blog/CommentView,guid,1e63bd7e-f2b0-4acb-96c1-5999cd43a9ea.aspx</comments>
      <category>DasBlog</category>
      <category>Development</category>
      <category>Development (English)</category>
      <category>English</category>
      <category>Samples</category>
    </item>
    <item>
      <trackback:ping>http://www.gumpi.com/Blog/Trackback.aspx?guid=9a4795f3-7c9b-4630-b5e0-7bb82c140887</trackback:ping>
      <pingback:server>http://www.gumpi.com/Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.gumpi.com/Blog/PermaLink,guid,9a4795f3-7c9b-4630-b5e0-7bb82c140887.aspx</pingback:target>
      <dc:creator>Daniel Wischnewski</dc:creator>
      <wfw:comment>http://www.gumpi.com/Blog/CommentView,guid,9a4795f3-7c9b-4630-b5e0-7bb82c140887.aspx</wfw:comment>
      <wfw:commentRss>http://www.gumpi.com/Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=9a4795f3-7c9b-4630-b5e0-7bb82c140887</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Due to a problem with the setup of the SMTP-Account comments to my blog where saved,
however I was not notified and therefore did not publish them so far. I have scanned
through all posts and published your comments now, as well as fixing the setup. In
the future, comments should appear faster now, as I get notified about them from now
on.
</p>
        <p>
Sorry for any hurt feelings about not publishing them, they are online now.
</p>
        <img width="0" height="0" src="http://www.gumpi.com/Blog/aggbug.ashx?id=9a4795f3-7c9b-4630-b5e0-7bb82c140887" />
      </body>
      <title>Comments are working now</title>
      <guid isPermaLink="false">http://www.gumpi.com/Blog/PermaLink,guid,9a4795f3-7c9b-4630-b5e0-7bb82c140887.aspx</guid>
      <link>http://www.gumpi.com/Blog/2007/10/04/CommentsAreWorkingNow.aspx</link>
      <pubDate>Thu, 04 Oct 2007 15:11:49 GMT</pubDate>
      <description>&lt;p&gt;
Due to a problem with the setup of the SMTP-Account comments to my blog where saved,
however I was not notified and therefore did not publish them so far. I have scanned
through all posts and published your comments now, as well as fixing the setup. In
the future, comments should appear faster now, as I get notified about them from now
on.
&lt;/p&gt;
&lt;p&gt;
Sorry for any hurt feelings about not publishing them, they are online now.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.gumpi.com/Blog/aggbug.ashx?id=9a4795f3-7c9b-4630-b5e0-7bb82c140887" /&gt;</description>
      <comments>http://www.gumpi.com/Blog/CommentView,guid,9a4795f3-7c9b-4630-b5e0-7bb82c140887.aspx</comments>
      <category>DasBlog</category>
      <category>English</category>
    </item>
    <item>
      <trackback:ping>http://www.gumpi.com/Blog/Trackback.aspx?guid=69be7631-831c-4d1f-b2dc-563179b9b43d</trackback:ping>
      <pingback:server>http://www.gumpi.com/Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.gumpi.com/Blog/PermaLink,guid,69be7631-831c-4d1f-b2dc-563179b9b43d.aspx</pingback:target>
      <dc:creator>Daniel Wischnewski</dc:creator>
      <wfw:comment>http://www.gumpi.com/Blog/CommentView,guid,69be7631-831c-4d1f-b2dc-563179b9b43d.aspx</wfw:comment>
      <wfw:commentRss>http://www.gumpi.com/Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=69be7631-831c-4d1f-b2dc-563179b9b43d</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Currently it is not much, but I already was asked how I added Google AdSense into
my blog, which is based upon <a href="http://www.gumpi.com/Blog/ct.ashx?id=69be7631-831c-4d1f-b2dc-563179b9b43d&amp;url=http%3a%2f%2fwww.dasblog.info">DasBlog</a>.
As far as I know, DasBlog offers no direct way to add an element only once between
the feeds. Google AdSense limits you to three (I think) ad-areas per page, so adding
the AdSense after every post is way too much and guarantees your removal from the
AdSense program.
</p>
        <p>
For now, I'll simply offer my macro for download and you can use it as you will. It
is fairly easy to implement into your templates. To get it working, you have to edit
the <strong>web.config</strong> file of your DasBlog. If you have not done so, you'll
have to uncomment the settings for using macros and you have to instert a node for
my macro in the <strong>newtelligence.DasBlog.Macros</strong> section.
</p>
        <p>
        </p>
        <pre class="sourcecode">&lt;CONFIGSECTIONS&gt;
        &lt;SECTION type="newtelligence.DasBlog.Web.Core.MacroSectionHandler, newtelligence.DasBlog.Web.Core" name="newtelligence.DasBlog.Macros" requirePermission="false" /&gt;
        [...]
&lt;/CONFIGSECTIONS&gt;

[...]

&lt;NEWTELLIGENCE.DASBLOG.MACROS&gt;
        &lt;ADD type="MyGoogles.MyGoogleMacros,MyGoogles" macro="MyGoogleMacros" /&gt;
&lt;/NEWTELLIGENCE.DASBLOG.MACROS&gt;</pre>
        <p>
        </p>
        <p>
You need to download <a href="/Downloads/Tools/MyGoogles.zip">my macro</a> (2 KB)
and copy it into your DasBlog-bin folder. Now you are up and running. Open your template
for your blog and insert the following line (customize the location of the file) for inserting
any file content at the position.
</p>
        <pre class="sourcecode">&lt;%IncludeContentOnce("C:\Webs\Site\Blog\Content\GoogleAdSense.txt", "ContentAdSense")|MyGoogleMacros%&gt;</pre>
        <p>
You can add multiple content this way, it will load the file and output its content
straight into the expected position. The second parameter is a simple identifier which
will allow you, when change, to add multiple different contents into your blog. I'll
update this function soon to take more parameters allowing you to further control
the contents position within the list of feeds.
</p>
        <p>
The nice thing about creating macros for DasBlog is, that it is straight forward and
easy. From first finding out abou macros to finally implementing a working solution
it took me less than 15 minutes.
</p>
        <img width="0" height="0" src="http://www.gumpi.com/Blog/aggbug.ashx?id=69be7631-831c-4d1f-b2dc-563179b9b43d" />
      </body>
      <title>DasBlog Extension for Google AdSense</title>
      <guid isPermaLink="false">http://www.gumpi.com/Blog/PermaLink,guid,69be7631-831c-4d1f-b2dc-563179b9b43d.aspx</guid>
      <link>http://www.gumpi.com/Blog/2007/10/04/DasBlogExtensionForGoogleAdSense.aspx</link>
      <pubDate>Thu, 04 Oct 2007 06:54:24 GMT</pubDate>
      <description>&lt;p&gt;
Currently it is not much, but I already was asked how I added Google AdSense into
my blog, which is based upon &lt;a href="http://www.gumpi.com/Blog/ct.ashx?id=69be7631-831c-4d1f-b2dc-563179b9b43d&amp;amp;url=http%3a%2f%2fwww.dasblog.info"&gt;DasBlog&lt;/a&gt;.
As far as I know, DasBlog offers no direct way to add an element only once between
the feeds. Google AdSense limits you to three (I think) ad-areas per page, so adding
the AdSense after every post is way too much and guarantees your removal from the
AdSense program.
&lt;/p&gt;
&lt;p&gt;
For now, I'll simply offer my macro for download and you can use it as you will. It
is fairly easy to implement into your templates. To get it working, you have to edit
the &lt;strong&gt;web.config&lt;/strong&gt; file of your DasBlog. If you have not done so, you'll
have to uncomment the settings for using macros and you have to instert a node for
my macro in the &lt;strong&gt;newtelligence.DasBlog.Macros&lt;/strong&gt; section.
&lt;/p&gt;
&lt;p&gt;
&lt;pre class=sourcecode&gt;&amp;lt;CONFIGSECTIONS&amp;gt;
        &amp;lt;SECTION type="newtelligence.DasBlog.Web.Core.MacroSectionHandler, newtelligence.DasBlog.Web.Core" name="newtelligence.DasBlog.Macros" requirePermission="false" /&amp;gt;
        [...]
&amp;lt;/CONFIGSECTIONS&amp;gt;

[...]

&amp;lt;NEWTELLIGENCE.DASBLOG.MACROS&amp;gt;
        &amp;lt;ADD type="MyGoogles.MyGoogleMacros,MyGoogles" macro="MyGoogleMacros" /&amp;gt;
&amp;lt;/NEWTELLIGENCE.DASBLOG.MACROS&amp;gt;&lt;/pre&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
You need to download &lt;a href="/Downloads/Tools/MyGoogles.zip"&gt;my macro&lt;/a&gt;&amp;nbsp;(2&amp;nbsp;KB)
and copy it into your DasBlog-bin folder. Now you are up and running. Open your template
for your blog and insert the following line (customize the location of the file) for&amp;nbsp;inserting
any file content at the position.
&lt;/p&gt;
&lt;pre class=sourcecode&gt;&amp;lt;%IncludeContentOnce("C:\Webs\Site\Blog\Content\GoogleAdSense.txt", "ContentAdSense")|MyGoogleMacros%&amp;gt;&lt;/pre&gt;
&lt;p&gt;
You can add multiple content this way, it will load the file and output its content
straight into the expected position. The second parameter is a simple identifier which
will allow you, when change, to add multiple different contents into your blog. I'll
update this function soon to take more parameters allowing you to further control
the contents position within the list of feeds.
&lt;/p&gt;
&lt;p&gt;
The nice thing about creating macros for DasBlog is, that it is straight forward and
easy. From first finding out abou macros to finally implementing a working solution
it took me less than 15 minutes.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.gumpi.com/Blog/aggbug.ashx?id=69be7631-831c-4d1f-b2dc-563179b9b43d" /&gt;</description>
      <comments>http://www.gumpi.com/Blog/CommentView,guid,69be7631-831c-4d1f-b2dc-563179b9b43d.aspx</comments>
      <category>Development</category>
      <category>Development (English)</category>
      <category>English</category>
      <category>DasBlog</category>
    </item>
  </channel>
</rss>