14. February 2010 by Mads

When you have a web site, for instance an installation of BlogEngine, you often want to be able to know about errors on it and if it is down. There are a lot of tools to help you out here, but in this post I will talk about using a build-in ASP.NET feature called Health Monitoring and a tool I wrote called WebMonitor.

More...

2. February 2010 by Mads

So today it happened, finally, the new version of BlogEngine has been released. It comes with some major Comment Spam Protection changes, multi widget support and more. This is all great and I really hope that this can beat these bad comment spam bots, which I guess we all hate.

I have just upgraded my blog to this latest release and the upgrade went pretty good without any real problems. So far so good, now I just have to wait and see if the spam protection is working as intended.

More...

22. September 2009 by Mads

Yes sorry, this isn’t Silverlight related at all, but it’s still nice to know, so I thought I would share.

I am currently doing a website that uses a “fancy” menu with a lot of jQuery. It were all working fine, until I added Lightbox2. Well, the product it self is working fine and is actually very nice, but when used together with jQuery, at least the combination of the versions I were using of both, it causes problems – “Error: 'null' is null or not an object”.

To make a long story short, I found the problem. A script that comes from the lightbox2 overwrites the jQuery “$” sign, which isn’t good and makes this error appear. Luckily there is a very easy fix for this.

Replace “$()” with “jQuery()” – and now your running again, at least I were. Hope this helps you too.

- Enjoy!

15. December 2008 by Mads

I have heard about podcast for a long time and of cause knew what it was, but if you should be in doubt here goes:

According to the New Oxford American Dictionary, a podcast is "a digital recording of a radio broadcast or similar program, made available on the Internet for downloading to a personal audio player," but the generally accepted definition has expanded to include video as well as audio. Originally derived from a combination of "broadcasting" and "iPod ™," the word was declared "word of the year" when it was added to the dictionary at the end of 2005.

I have never owned an Ipod untill I brought my iPhone 3G this summer. At that point I, sadly, HAD to install iTunes. As you all know iTunes is a virus on a PC, but if I wanted my iPhone 3G to work at all, I had no choice. Therefore iTunes got installed.

As I now were the owner of an “ipod”, formed as an iPhone, I could start look more into podcast. Actually it all started when I found the Sparkling Client – Silverlight podcast by searching for “silverlight” inside iTunes Store. I subscribed for the podcast and got them all on my iPhone 3G. On my way to work the next day, on my bike cycle, I started the first podcast. When I arrived at work 15 minutes later, I realized that I had actually learned something while doing something simple as riding my bike, which I do 25-30 min. two times a day(to and from work).

This is were it started to get very interesting for me. Instead of listening to Ozzy, Metallica, Plain White T’s etc. to and from work, I could now learn something real, while doing something trivial as riding my bike. When I say real, I mean something I can actually use at my job or on my hobby projects, and not just the “lastest news” and “weather” in the normal FM radio (which the iphone 3G actually don’t have :P).

So at this point I became wiser, times two. I learned that listening to podcast could actually give me some knowledge, while I’m doing other trivial things. I also learned something about templating in silverlight as Jesse Liberty were on this podcast :) 

Nothing new

Yes, your right, this is nothing new and you all knew it all along. I know. I just learned that now and are now listening to podcast when I do the dishes, the laundry etc. Generally task that I don’t need to think to much about is great for listening to podcasts.

Great podcasts I enjoy at the moment

As already stated, I listen to the Sparkling Client – Silverlight podcast. This is the only podcast I have been able to find which is only about Silverlight. If you know others, please let me know.

Hanselsminutes Podcast is also a podcast I enjoy alot at the moment. It not only about silverlight, but generally interesting stuff for a developer. Besides that, these podcasts is actually very funny. It’s seems that Scott Hanselman is a funny guy by nature, which just makes it all much better. See for instance his BabeSmash session at PDC2008 which shows his own “Babysmash application” but also gives an overview of the .NET framework.

23. November 2008 by Mads

I have thought about this many times, but never had the time to make the research to find an solution.

The problem is that if you put an .asmx (web service) on a web server, it will as the default, be able to show the WSDL information to everybody. This isn’t of cause very good, as anyone then easily can see all methods in the web service. Of cause a web service is typically accessible from the public, as this is where it’s purpose to be used from. Anyways, it’s not good to show the WSDL, so I wanted to remove it.

All you need to do, is to add these lines to your web.config:

<? xmlversion="1.0" encoding="utf-8"?>
<configuration>
<system.web>
                <webServices>      
                     <protocols>        
                           <remove name="Documentation"/>       
                     </protocols>  
              </webServices>
</system.web>
</configuration>

Read the rest of the article from where I found this here: http://www.15seconds.com/Issue/040609.htm