Category Archives: Main - Page 2

Atlas New RC build released

There is a new Atlas RC available for download. 
This one has got really cool new features.  If you haven’t looked at atlas before you should look at it now.

AJAX just became as simple as 1-2-3.

Nikhil Kothari blogs about the new features :

A quick tour of Atlas December CTP :
http://www.nikhilk.net/AtlasM1.aspx

The role and functionality of the Atlas Scriptmanager :
http://www.nikhilk.net/AtlasScriptManager.aspx

That should get your appetite for AJAX going :-D

WebDav Exchange …

I live in new zealand.

I can successfully create appointments in exchange using webDAV.  But I can only create them in the timezone Z if I change the timezone to Y (which is mine) I always get bad request.

Do I say ok.. so not during string conversion but I just calculate the offset and add that to the date and create the appointment then that should be ok. Also not !!!

My conversion function is very basic but i didn’t find a way to get it properly formatted in .NET so this is my way. The function below ends with “Y“ and this doesn’t work, when I end it on Z it does work. Any suggestions ?

All sorted now.. instead of passing on the timezone I should replace the Y with the offset of the timezone to +13:00 in the new zealand case.

string

formatDate(DateTime input){

return input.ToString(“yyyy-MM-ddTHH:mm:ss.fffzzz”);
}

 

Design templates for websites from microsoft

http://msdn.microsoft.com/asp.net/reference/design/templates/default.aspx

Getting subtotal in xslt

To get the subtotal of products in their own subcategory


  
        
               1234
               233
        

        
               1235
               23
        

  

  
        
               124
               298
        

  

<

xsl:template mode =”do-sum” match=”Products”>
<xsl:param name=”sum” select=”0″/>
<xsl:variable name=”running-sum” select=”number(translate($sum + number(number(Product_Verkoopbasis)*number(Product_Voorraad)),’.',”))”/>
<xsl:choose>
<xsl:when test=”following-sibling::Products”>
<xsl:apply-templates mode=”do-sum” select=”following-sibling::Products[1]“>
<xsl:with-param name=”sum” select=”$running-sum”/>
xsl:apply-templates>
xsl:when>
<xsl:otherwise>
<xsl:value-of select=”format-number( $running-sum, ‘#.##0,00′, ‘numfrmt’)”/>
xsl:otherwise>
xsl:choose>
xsl:template>
<xsl:template name=”getSubtotal”>
<fo:table-row>
<fo:table-cell background-color=”#CCCCCC” number-columns-spanned=”3″>fo:table-cell>
<fo:table-cell background-color=”#CCCCCC” text-align=”right”>
<fo:block>Subtotal :fo:block>
fo:table-cell>
<fo:table-cell background-color=”#CCCCCC” text-align=”right”>
<fo:block>
<xsl:apply-templates mode=”do-sum” select=”SubCategory[1]/Products[1]“/>
fo:block>
fo:table-cell>
fo:table-row>
xsl:template>

 

Rss Parsing

As mentioned earlier in this blog, I am building a rss program together with http://datafreakz.blogspot.com

Right now we have about 100000 feeds from this feeds I had before the weekend about 5000 that failed. Now most of these feeds were valid rss although my google sidebar doesn’t parse a lot of them either.

Then I’ve noticed that lots of people never took the time to read the specifications and dump whatever they like in an rss feed.
Furthermore there are a lot of people including w3c and ms that put stylesheets in their xml.  Up until last week (because I had a parser that seemed to parse a lot of it already), I was one of these people that thought that just using the System.Xml.XmlReader would be enough and that I would get everything on the first pass through my xml.

Now after the weekend I’ve figured out that it takes 3 passes, that is 3 different ways to get the xml in my program to parse almost everything. The next problem that shows up are feeds that do exist, but their hosts are pretty slow in resolving the domains etc.. so I will be needing some retry mechanism.  The idea behind our system is that we want to be able to parse every valid feed from the internet.

I’ve got the different encodings sorted now.

One of the feeds that bounces the first time :


http://presscenter.org/repository/rss/nl/Ext_102110_5.xml

And this one doesn’t want to parse yet :


http://www.musicalfan.be/rssfeed.xml

probably because of its description field in a few posts.  but I do read feeds with html in them that is what I find so strange.. I don’t know why this one doesn’t want to parse.. for now. ;-)

Always I will appreciate ideas…. I can’t show you my code for my parsers but it is based on the xml reader class, too which you pass an encoded textreader. at least the first try parser.  I parse more feeds than Rss.NET and I parse more than rssbandit or rssfeeder.net But I want to be able to say that I parse about 99,99% of the feeds out there.
I don’t want to use serialisation because of the performance overhead.. If you need to parse 100 000 – 300 000 feeds every bit counts ;)   And once we open up for the general public it will be even more feeds.

When everything will be finished online.. probably I will be providing a vs2k5 add in and outlook add in.

Got added to the new zealand user group

I haven’t been posting much lately because I got pretty busy over the past few months and it looks like it isn’t going to change quickly either.

I got added to the new zealand .NET user group with this blog. and would like to thank nic wise for adding me. his blog can be found @ http://www.fastchicken.co.nz/blog

I decided together with 2 other guys to start writing a book about quick and simple programming using .NET 2 technology. And what better way is there than to write a fully working application for this.
The application that we will be writing will be a Forum engine à la Communityserver

The software will be developped under an open source license. I will be posting regularly articles about what I did and the controls I built. 

If somebody has a suggestion on features that are missing now in communityserver, or in other forum engines in general, now would be a good time to comment them in this post.

For the moment I am planning the rss engine.  I decided that I will just be supporting RSS 2.0 and Atom 1.0  as syndicators (OPML seems to be becoming pretty popular too, so maybe I will look at OPML as well).
The feed outputs will be kept as simple as possible (I think simple is good, the simpler it is the more programs will be able to read it even the poorly written ones.)

The aggregator used should be based on AJAX and if I feel really bored someday I will build a smart client to as an extension as well.

That’s all for now..

Run VS 2k5 Webserver from everywhere

The built in webserver from Visual Studio 2005 is great for locally quickviewing asp.net websites.
I always thought it was a pitty that I had to start visual studio for it.

Today I came accross a blog of a guy who wrote a small shell extension so you can right-click any folder and choose run asp.net 2.0 website from the context menu. It will run the webserver on that folder. How easy do you want it ?

Read more about it here :
http://weblogs.asp.net/rmclaws/archive/2005/10/25/428422.aspx
http://weblogs.asp.net/rmclaws/archive/2005/10/26/428600.aspx

Download here :
http://www.interscapeusa.com/downloads/download.aspx?file=WebServerHere_v1.msi

My vision on protecting your querystrings

http://geekswithblogs.net/casualjim/articles/64639.aspx

 

Page 2 of 212