panteravb.com

Interfaces, Abstractions, Separation of Concerns, and Everything Else I DIDN'T Do…

Interfaces, Abstractions, Separation of Concerns, and Everything Else I DIDN'T Do... This is a post about what NOT to do ... oved the necessary changes up the priority stream, so to speak. Print | posted on Wednesday, August 29, 2007 8:43 PM

Ugh, why does it have to be so hard?

Ugh, why does it have to be so hard? Where's My Favicon?? I was in the midst of a little facelift for this site and got ... hile demonstrating good architecture.  I'll post the code as I go. Print | posted on Sunday, August 26, 2007 5:31 PM

Timesheets Suck

I have yet to see a good timesheet. The online type. I realize this when I'm entering my time every week(in two systems). ... code: http://panteravb.com/downloads/tektime.zip. Might be a useful example of how to draw text on images, or it might not.

C# Var: The Religious War

I've been seeing a lot of people posting code examples that have the C# var keyword sprinkled liberally through their code. ... q query that returns an anonymous type. Using it in situations where you know what the type is makes your code hard to read.

Simple Forms

How do you build forms?  We are tasked with building a toolkit that's pretty framework agnostic, meaning it should work in as ... t of code you can write to get no less than 100% of the desired form functionality.  This includes any field validation, etc.

More Html.ValidateTextBox

OK.  So why is it, that most of the validation examples I see for ASP.NET MVC always include allowing the user to submit pote ... public bool Validate(object value) { if (value == null) return false; return System.Convert.ToString(value).Length

FreeTextBox + Scriptaculous + Prototype Window Class = Goodness

Recently, I've needed to add some functionality that includes the FreeTextbox control and modal windows.  One of the things ... w.FreeTextBox.com Scriptaculous :: http://script.aculo.us/ Prototype Window Class :: http://prototype-window.xilinus.com/

IModelBinder with AutoBinder

Today I noticed this post on the ModelBinder attribute that ships with Preview 5 of ASP.NET MVC. I looked at the example and ... bute. Anyway, here's the spectacular example: ModelBinder.zip.  It assumes that you have Preview 5 of ASP.NET MVC installed.

DNAP — Dot Net And Prototype

I develop a lot of AJAX-y apps, mostly tools, at work.  Most of the time I need a very easy way of hooking up a server side c ... gical in there so it works in VS2005 as well.  There is a bare minimum example included and you can view the examples here. 

Pet Peeve: Not «using» IDisposable

I am amazed that I see very little usage of the using statement in c# code.  This is a nobrainer for clean code, but continu ... fragment. Doing so ensures that the connection is automatically closed when the code exits the block.

Politics And Money

Are You Fucking Kidding Me? I'm usually not into politics, actually almost never.  Sadly, this is the first year I am voting. ... t?  Bandwidth isn't free, but that's where well placed commercials come in, kinda like how NBC does it now.    OK.  I'm done.

DNAP — Parameter Validation

I've been wanting to add some way of auto validating parameters passed to ajax methods.  Since we know the method parameters ... roxy which is not cool, so I need to figure out where or why that doesn't work.  The zip file is updated with my latest code.

ActiveRecord Noob

"Hi everyone. My name is Chris, and I'm an ActiveRecord noob." I've been avoiding adding "tags" to my posts due to my percei ... post.Tags.Clear(); bool createIfNotFound = true; post.Tags.Add(Tag.FindByName("JavaScript", createIfNotFound)); post.Save();

Grrrr…Screencast Bloat

Apparently, there's more to screencasting than just pressing record. I have my first one ready to post. The problem is that ... left, I'm gonna keep surfing for some other tools, that sure seems like a long time to convert a 5 minute AVI file to MPEG...

Architecture Challenge

OK.  Here's the challenge.  We have 3 physical tiers. The database tier, the middle tier, and the front end tier.  These aren ... dle tier to the database, and plain ol web service calls from the front end to the middle tier.  I'll post that guy in a few.

The Ultimate Regular Expression Tutorial

Step one.  Admit to yourself that you know nothing about regular expressions, and that it's more of a black art than anything ... ponent", "third word should be Component but as " + words[2]); 1 2 3 4 5 Any regular expression advice is appreciated.

New Power Supply or How I Spent 2 hours On Sunday

It started off as a good idea.  I wanted to see if I could set up vmware on linux.  So I thought to myself, well  my old moth ... ime to waste on a Sunday. I figured since I wasted so much time on the shiny new box I'd take a few photos of the innards:

Why I Don't Do Dell

Point number one.  This was the best I could do, and it's not even what I wanted: So it's three times more than the parts I ... unning.  No adware bullshit is installed on my machine(my thinkpad had quite a bit of crapware installed which was annoying).

Ninject + ActiveRecord + ASP.NET MVC + Scaffolding

OK.  So using a combination of Ninject for my IOC, ActiveRecord(the Mediator flavor) for my data access objects slash models, ... uld work with minimal effort on your machine, lemme know otherwise.  You can grab a zip of the code here(it's about 10 megs).

IRepository

As I'm testing features of ASP.NET MVC, I'm noticing that it would  be really nice to be able perform non-persistent CRUD ope ... vn.chrisjcarter.com/public/EPS.  I have a sample ASP.NET MVC(Preview 4) solution available for download here(less than 100k).