C#, Enums and Strings oh my!

May 07

I find myself having to lookup the same snippets of code a lot. You know, those insignificant lines of code you “never” use. Recently I have had to look this up twice, and hopefully by placing it here, I will never need to again (knock on wood). So again, without further ado… drum roll please… enum CcType { Visa, MasterCard, Discover, Amex,...

Read More

Asp.Net MVC DropDownList With OptGroups

Apr 29

So rarely do I use opt groups, that I had to actually look up their syntax! So when I wanted to use them in a project I’m working on in Asp.Net MVC, I wasn’t very shocked the MVC DropDownList extension didn’t exist for it. So I ended up writing a bit of my own.  Stole some code here and there (no shame in that). So without further ado, for...

Read More

Linq.Js

Mar 22

Most people who hop on my site don’t know much about me, but I am a complete C# fanboy. As such, I love 90% of the .Net framework, and almost all of that love goes to LINQ (Language integrated queries) and LINQ to SQL. I use it not on a weekly or daily basis, but on an hourly basis. Now that it is around, any time I have an array of data, I find myself always...

Read More

Twitter Feed Reader

Mar 19

I have done this many times over, and for once I plan on publishing the code so I can reuse it.  This is a Twitter Feed Reader, you pass it the user_status RSS url, with the number of updates you want. This should work flawlessly, but if it doesn’t… I’m sorry. If you need any help implementing this, just let me know. I’m always around to...

Read More

AdTools 2 Years Later

Feb 23

2 years ago, I launched a service called AdTools.  It was never meant to be used by anyone but me, but instead of spending a lot of time to lock it down to myself, I opened it up to the world.  I never mentioned it to anyone, never marketed it, just used it on all of my craigslist postings.  I had maybe 1 support email a week from it (which I thought was amazingly...

Read More

Gif2Png – Gray scale Only

Feb 22

I’m working with a client that saved out a bunch of motifs in to “transparent” gifs, but wants those motifs on a background “without the jaggy” white pixes. After doing the first 10 or so by hand in PhotoShop (a pain in my rear), I wrote a little C# app to handle all of this for me. It assumes the image is gray scale, and that...

Read More