Feeds:
Posts
Comments

Archive for the ‘general’ Category

Blog is moving!

I’m moving my blog to my own domain, this for various reasons, which you can read on my new blog 😉

Here is the new location: kevinpelgrims.com/blog

Advertisements

Read Full Post »

Blog is moving! You should check this post out on kevinpelgrims.com

Testing e-mails sent from .NET code

It’s always a big hassle to test sending e-mails from websites or applications written in .NET (or any other platform/language). Your inbox gets flooded or even worse, customers’ inboxes get flooded. Or you’ve set up a dummy account to test if e-mails get sent. But sometimes e-mail addresses need to be picked up dynamically depending on certain parameters, from a database, for example. Testing gets annoying here. You can debug and check if the address you want is the right one, you can bother people to check their inbox everytime you’re testing, ..

There has to be a better solution, right? Yes there is!

Developers, let’s start testing!

Thanks to this little tool I found last week, this has become a lot easier. It’s actually been around for about 2,5 years already. Too bad I never found out about it earlier 🙂

UPDATE: Just found out about this thing, which is on CodePlex, so we can play with the code! It’s called smtp4dev and can be found here: http://smtp4dev.codeplex.com/.

Here are URLs to the 3 blogposts by Donovan Brown about the little server app:

Note: Don’t download the application from the first blogpost! The post about POP3 has the latest version.

Be sure to read the documentation, it has everything you need to know about using this tool.

Too bad Donovan has never put this on Codeplex (or any other open source repository), because I think we can all imagine some nice features to add to this little useful thing..

Read Full Post »

Format source code on WordPress

Blog is moving! You should check this post out on kevinpelgrims.com

I had a few people asking me how I managed to format the source code for my PowerShell posts, so here’s a short explanation.
Just type (or paste) your post and when it’s time to insert the source code, switch to HTML view.

There you can insert these tags:

[sourcecode language="csharp"]
somecode
[/sourcecode]

And it will come out like this:

  if(formatting)
  {
    return "Yay!";
  }

Yes, that’s all there is to it.

There are actually quite a few languages that are supported. You can see the full list and an explanation on some extra parameters on this official WordPress page: http://en.support.wordpress.com/code/posting-source-code/

Read Full Post »