Read My Tweets
Ever feel like you're not getting the best experience on the web?
Get Silverlight to see the whole site!

TUTORIAL #6: Visual Studio Code Highlighting To HTML

Tuesday, October 07, 2008


Many times when I'm writing a blog post, I want to include some of the source code from the project I am talking about. For most people, seeing the syntax highlighted the way it is in Visual Studio makes it the most readable. I've tried it manually, and it's very hard to do. (At least to do quickly.)

Then I discovered that there was a plug-in for Live Writer (actually, there's like 6.) But Live Writer has some quirks working with my blogging engine, so I really struggled with it (even though the code looked awesome!)

Today I almost just sat down and wrote my own converter, that would take source code from Visual Studio, and translate it into CSS styles. But I figured one more trip around the web couldn't hurt, so I headed to my favorite search engine and started hunting. The very first entry was exactly what I was looking for.

A guy named Douglas Stockwell has created a tiny little executable that interacts with your clipboard in Windows. He actually created one of the Live Writer plug-ins as well. The basics of the application he wrote is this. Copy some source code to your clipboard (Ctrl + C), run this executable, and then paste (Ctrl + V) your newly formatted HTML into your blog engine, HTML page, etc. It even allows for customization of fonts and sizes, just by renaming the .exe file. For example, renaming it from vs2html.exe to vs2html.arial.10.exe will make the default font Arial in 10 point size. My setting is Consolas 11.

The program he created is called VS2HTML, and it's freely available. You can download it here.

kick it on DotNetKicks.com

Labels: , , , ,

posted by Jeff Blankenburg, 2:09 PM | link | 0 comments |

RSS is not pronounced Arse...

Thursday, July 24, 2008

Alternate Title: Why Do You Read Websites Anymore?

Have you ever seen that icon to the left? Ever wonder why almost every site has one? My question to you is this...why are you still visiting websites for their content?


I remember it like it was yesterday...I would get in to work each morning, and open my browser. I would then proceed to open 5 tabs. One for CNN. One for FARK. One for Scott Hanselman's blog. One for ESPN. One for my email. And then I'd spend 20 minutes reading about what was going on in the world. It used to really frustrate me when Scott didn't have a post. Why did I waste my time going to his site? I wish I could just get him to let me know when he posted a message!  (Note: I know I don't post every day, and I would hate to think that there are some of you coming to my site to see if I've updated anything...here's my RSS feed.)

Does this sound like you? Did you think that icon up above stood for Wi-Fi, or audio podcast, or maybe you just haven't noticed it before. It's the key to saving you time and effort on the Internet. There's no need to visit websites anymore. At least not the ones that have new content to publish. The icon represents the term RSS, which stands for "Really Simple Syndication." The general idea behind it is straightforward: Rather than go to each site that you want to read, why not have them "push" the content to you, like an email? 

Why I Hate Browser Bookmarks

There was a day when my browser's bookmarks could have been compared to the early versions of Yahoo's seach index. Hundreds of links categorized into dozens of subjects. All useful, but only when you're using that computer.  Once you get home, you don't have access to that information any more (unless you're using Live Mesh.) Then came browser toolbars, like Google's, to save the day (temporarily).

Why I Hate Browser Toolbars

Browser toolbars are a vast improvement over standard bookmarking, because you can store your list in the Internet cloud. But you still have to install the toolbar on your system, which at times can be intrusive (and requires admin rights). This also makes it difficult for multiple user experiences, like I have at home.  It's also a challenge when you're using a computer that's not yours.  Like at a friend's house, or at the library.  Now, since the data is stored in the cloud, we can still get to it relatively easily, but it doesn't ultimately solve the primary problem:  pulling data vs. having it pushed to us.

Why I Love RSS

Nearly every kind of published data can be exposed as an RSS feed.  At its core, it's just XML.  But the infrastructure surrounding this technology is so robust, it really doesn't make sense NOT to use it.  Each morning now, I scan through over 100 websites-worth of content, read the articles that peak my interest, and discard the rest.  And I only had to go to one place to do it:  my RSS aggregator.

Now, here is the place where I'm supposed to tell you that Outlook can do RSS aggregation for you, and actually, so can Vista (it's built into the OS).  But I don't use those.  Nor do I use the one in Live Hotmail, or any one of probably 10 other Microsoft products that will do it for you.  Nope, I use Google Reader.  And the reason is simple:  it works for what I want it to do.  There's probably well over 100 popular RSS aggregation applications out there for you to try.  Some are desktop based (I don't recommend this, because it brings you back to being stuck on one machine), and many are web based.  The reason I like Reader is because it simply and easily contributes to my social networking addiction as well.

Why RSS and Social Networking Go Together

After reading a post in my aggregator, it gives me the option to "Share" it.  What this actually does is add the article to yet another RSS feed that I can provide to people.  In this case, it's not what I have written, but what I have enjoyed reading.  Click here to see my shared items.  But not only that, there's also a widget that I can add to my blog.  You'll see it on the right side, titled "Stuff I've Read."  It gets better.  I've also added it to my FriendFeed, so that when I share something, people following my feed will know about it.

The Real Reason I Wrote This

Most bloggers really enjoy the statistics their blog generates.  There are two reasons I write these posts:

1)  I am super-passionate about technology, and I think my thoughts and opinions might expose someone to something they've never seen before.

2)  My ego absolutely loves the traffic spike a new post creates.

And I know I'm not alone.  There's a few statistics, specifically, that bloggers compare themselves with.  The first is just pure traffic.  "How many unique visitors did you have last month?" is a good example.  I had 1,668 in June 2008.

The second statistic is "How many comments, on average, do each of your posts get?"  This is a number that can vary greatly from post to post, but it gives you a decent measure of how impactful your posts are on the reading community.  My average is around 2.  Scott Hanselman, for example, is probably up near 20-25.

"How many subscribers do you have?" is the last. This one is important because it's an indication of the number of people that have added you to their RSS aggregator.  They are the people that want to hear what you have to say, on a daily basis.  I have about 260 subscribers as I write this post.  That means, in a month, there are over 1,400 people that come to my blog, but don't subscribe.  That's the reason I'm writing this post.

So here's my call to action for all of you new to RSS (or those of you that have been putting it off).  Find an aggregator, and subscribe to your favorite blogs.  You can always "unsubscribe" if someone gets on your nerves.  When someone writes something that you enjoyed, let them know with a comment.  If you disagree, let them know that too.  But participate!  That's the key.



kick it on DotNetKicks.com

Labels: , , , , , ,

posted by Jeff Blankenburg, 9:41 AM | link | 11 comments |

Live Messenger Punishment

Monday, July 14, 2008

So I've added a new feature to my blog today. And I'm pretty sure all of you are going to make me pay for it, at least initially.

I've added Windows Live Messenger to my sidebar. This way, if someone reads a post, and wants to ask me a question (and I'm online), they can. In real-time. I've also added it to this page, so you can abuse the privilege I am offering more conveniently. Exploit my effort at reaching the masses in 3...2...1...



Oh, and here's how to do it, if you're interested in adding it to your site as well...

http://settings.messenger.live.com/Applications/WebSettings.aspx

Labels: , ,

posted by Jeff Blankenburg, 12:38 PM | link | 1 comments |

What Do You Want From Me?

Thursday, January 31, 2008

Every morning, I sit down to my computer and think, what are people going to care about reading today? I've accumulated a decent audience for this blog, and I feel like I should be earning, not holding, a spot in your RSS reader.

Some days, it's an interesting story that hits me. Others, it's a tutorial on some technology I'm jazzed about playing with. If I've really got something itching me, I'll put a video together.

But my question to you, dear reader, is:

What, if anything, would make you tell your friends about what I've written?

Most of you are accomplished software developers. Some of you are friends in other industries. One of you is my Mom.

I'm looking for comments, emails, phone calls, twitters, facebook messages...however you'd like to throw me some feedback. I would honestly and truly appreciate anything you can offer me. Positive or negative.

Labels: , ,

posted by Jeff Blankenburg, 4:38 PM | link | 2 comments |

CodeMash Contest...

Wednesday, December 19, 2007


You're reading this post, so clearly you have enough time to write your own.

Here's what I've got planned for my loyal readers...

A CodeMash enthusiasm contest.





I want to make sure that we're spreading the word about CodeMash, and the amazing event that it is. For those of you that were there last year, let's hear about it. For those of you that weren't...let's hear what you're hoping to get from it this year. I want to crush the web under the weight of the enthusiasm for this conference.



Haven't heard of CodeMash? Go to http://www.codemash.org and get registered!

CodeMash is a technology conference taking place in Sandusky, OH in just a few weeks. It is taking place January 10-11, 2008 at the Kalahari resort.

The purpose of the conference is very unique. The idea is to give software developers from all of the different technologies and platforms an opportunity to learn from one another. For example, I learned quite a bit from Neal Ford and Bruce Eckel last year, two noted Java enthusiasts.

We have so much in common in what we are trying to accomplish with our respective technologies, that sometimes we only focus on our differences. OOP is OOP. Plain and simple. So why do we keep our distances? Let's take an open-minded approach to software development, and perhaps learning a bit about Ruby, Python, .NET, Java or others will help us to better understand the technologies we are most familiar with.



So...on to the contest. I want everyone that reads this to create some enthusiastic content about CodeMash. Make it meaningful. Let your excitement show. And once you've posted it on the web, leave a comment on this post with a link to yours.

The deadline to get them in is the event itself. January 10, 2008 at 8:00 AM. Each and every entry that is listed in my comments will be entered in a drawing for a SwagBag. I'm not going to disclose the contents of the bag, I'm only going to assure you that it will be well worth your while to enter.

Also, each person that enters will get a small something. Just come find me at the event (Microsoft will have a booth) and introduce yourself. If you had a post in my comments, I'll give it to you right then and there.

In addition, if we can get 100 blog posts (from 100 people, you cheater) on this list, I will guarantee that there will be a Zune 8GB in the SwagBag in addition to everything else it will contain.

So get writing. And if you don't like writing...make a video. Or a song. Or a poem. Or a photo collage. The medium doesn't matter, as long as we can get it on the web to share with everyone else.

Labels: , , ,

posted by Jeff Blankenburg, 4:01 PM | link | 42 comments |