love to code .net

blogging mostly about one of my favorite subjects, programming

BlogEngine.NET Post List User Control Creates Blank Pages

Today I was looking at Google's Webmaster Tools for my blog.  I noticed there are 11 URLs in my site map and only 6 are indexed.  I started wondering why and that led to looking at what has been indexed.  So I started looking at Google's index of my site, there are 189 pages indexed.  It seemed like a lot considering with this post I've made 10 posts.  I started looking at the links and noticed there were some huge page numbers.

More...

The BlogEngine.NET Syndication Handler throws exceptions when Server Offset is Positive

The syndication handler will throw an exception if you use a positive value for the Server Time Offset setting.  More...

Correct Post Times and Delete in BlogEngine.NET using Windows Live Writer

When posting future posts using Windows Live Writer (WLW) the time was being changed from what I was expecting.  My expected behavior is that specifying a date and time should be the same in both the BlogEngine.NET web interface and WLW.  In other words, if I create a post to be published tomorrow at 1:15 PM in both interfaces, both posts should have the same posted date/time.  This was not the case.

During testing, I found that I couldn't delete items using WLW.  I would get an exception saying I'm "not authorized to delete the object."  As both updates are in the same class, I decided to write them both in this post.

More...

BlogEngine.NET ignores Windows Live Writer post date

I started trying to automate future posts by specifying a post date that was in the future.  Directly posting through the BlogEngine.NET web interface works without a hitch.  When using Windows Live Writer though the post is posted using the current date and time, making it immediately visible.  I found the cause of this problem was in the BlogEngine.Core.API.MetaWeblog class.  The particular problem is that WLW doesn't provide pubDate, instead it provides dateCreated.  Here is the code that needs to be changed that can be found in the GetPost method of the MetaWeblog class.

More...

BlogEngine.NET code formatter extension shows code tag

While evaluating BlogEngine.NET, I noticed the code tag was shown on the first and last line of the formatted code block.  At first, I thought I was using incorrect syntax.  After I checked my syntax and found this post, where you can see the open and close code tag, I realized it was an problem.  So I looked around and found the cause of the problem.  Here's the method that causes the problem.

More...

Proper line numbering with BlogEngine.NET and source code without line feeds

I wanted to use Windows Live Writer to create my posts.  Before going live, I decided to test out WLW with a few posts.  During the tests I noticed that code was being shown with multiple lines, but only one line number.  After looking at the XML posts and code, I noticed that the source code formatter expects each line to be separated by a line feed and that WLW separates lines by a <br/> with no line feed.  So my simple solution was to modify the code sections before they get formatted to insure that there is a line feed after each <br/>.

More...

BlogEngine.NET Alternate Line Highlighting breaks formatting

In testing out BlogEngine.NET, I found an issue with the source code formatter when alternate line highlighting is enabled.  When the alternate line highligting option was on, the code would show the first line in the code block with code formatting, but all subsequent lines appeared outside of the code block without code formatting.  In the following original code, you see that line 41 opens a div tag for an even line, and line 37 opens a p tag for an odd line.  Unfortunately, as you can see on line 54, the code closes both tags as a div.  This invalid syntax is what breaks the formatting.

More...

Welcome to lovetocode.net

After years of putting this off, I've started my own blog.  Posts will be mostly programming and technology related.  Some posts will capture information I've found elsewhere on the web.  Comments will be moderated, so if your comments don't show up immediately or not at all that's why.

Here's a little about myself.  I'm currently programming in C# for the .Net Framework.  I started programming in BASIC on an Apple IIc.  Java, HTML, Javascript, C++, C, Pascal are some of the other languages I know.  I have to say that so far C# is my favorite language.  I work full-time as a software architect, doing more management than programming on any given day.  I do a mix of desktop and web programming.  I'm using WPF for my desktop development and have left Windows Forms behind.  I love programming so much that I program in my spare time.

The blog is powered by BlogEngine.NET 1.4.5.  I chose this blog software after looking at several .NET based solutions.  I found the Paperclip Cactus theme on Themes4BlogEngine.  I made a few changes to the theme to support 1.4.5's widgets.  I made a few changes to the code for the source code formatter.  I will be blogging about these changes soon.

Thanks for stopping by!