Coffee and Code

The Life and Times of Jeff Woodman

First Previous 1 2 3 4 5  ... Next Last  Displaying 1 - 5 of 98 entries.

This Old Blog

Posted: 01/03/2021 12:31 PM | permaLink

Tags: personal

Hi everyone, and happy belated New Year 2021!

Looking back at my blog here,  I can't believe it's been 5,559 days since my first post on October 14, 2005! It's been alive over fifteen years in one form or another. Even though I rarely post here, I keep it alive just for fun. I can use it to say things like:

  • Stay safe and healthy out there!
  • Cook with cast iron.
  • I'm probably watching too many food-related videos on YouTube.

I'm looking forward making some major updates to my websites and apps in 2021. Keeping those tools sharp even though I'm management these days! Over the winter, I'll be hunkered down, enjoying good company, food and drinks, and working on the ol' website as time allows. 

To your health and wellness in 2021,
Jeff Woodman


Still Alive

Posted: 07/19/2018 02:42 PM from Santa Fe, New Mexico | permaLink | Comment on this entry!

Tags: personal

This weblog has been inactive for quite a while. 1,579 days (or 4.326 years), to be exact-ish! I'm honestly very surprised that it's been that long, because it feels like much less time has passed.

I am still very much alive. I have made some career transitions from developer to web manager to full-on, non-technical management for my day-to-day work. Lately, I've missed application development and web design as a hobby... so, I got on the phone with my web hosts and got this blog working properly again. I hope to post updates of a personal nature in the future, but know better than to fully commit to it right now.

More to come!

 


Announcing jeff woodman dot com

Posted: 03/23/2014 02:44 PM | permaLink

Tags: web-design personal,

Hello, World!

Today marks a milestone, as I publish my first log entry on my new public website – www.jeff-woodman.com. To be correct, the website is not officially “live” yet. I still need to perform a number of tweaks and optimizations to the current design – but I’m very happy with the overall theme.

I’ve maintained some form of personal website since the late nineties. I do this purely for the love of internet tech, and have used my personal sites to make any money. In 2005, I created my first personal domain, www.sanctumvoid.net. Around this time, I was heavily into web standards and web 2.0, and wanted to cut my teeth with object-oriented programming techniques. I found designing and building the site and its related applications to be highly educational and valuable.

Nine years later, www.sanctumvoid.net is still online.  :-(  I’m honestly going to be a little sad when it finally goes dark, but nothing on the ‘net ever really dies…

- Jeff Woodman – SFNM|USA


Erstwhile in New Mexico

Posted: 08/23/2013 10:27 AM | permaLink

Tags: personal camping new-mexico

Just a quick note to let you know that I am still alive and well here in sunny Santa Fe, New Mexico. The past two years of my life have been an absolute whirlwind. Ups and downs, strikes and gutters (as the Dude says).

Suffice to say, I'm happily re-employed at the New Mexico Department of Transportation, and even though I was away from the agency for 5.5 years, it feels as if I've never left. I am very lucky to work with a group of fine people that will literally do anything for friends, and we have a lot of fun as well. Tonight, several of us will camp in the Pecos wilderness now that parts of the forest have been re-opened.

 


ASP.Net - Supporting Currency Input

Posted: 05/13/2011 01:23 PM | permaLink

Tags: development asp.net regex

Question:
I have an ASP.Net application that allows users to enter currency amounts, which are stored in the SQL Server database with the type money. How can I support input of USD currency values, including the dollar sign and thousands separators, within the context of ASP.Net databound controls such as ListView, and declarative data access controls such as SqlDataSource?

Answer:
There are a few little tricks you need to know to support currency input in this scenario.

1. The most important, magical trick I've found is to simply declare your parameter with no Type or DbType attribute.
Example: <asp:parameter name="TuitionPerCredit" />

2. Use a RegularExpressionValidator control with a really solid, well tested expression for validating the currency input The expression I've been using is applicable to US currency, so if you're coding for another culture, the advice in #1 still applies but you'll need a regex that applies to your specific currency format

The currency regex I use is below:

\$?-?([1-9]{1}[0-9]{0,2}(\,\d{3})(.\d{0,2})?|[1-9]{1}\d{0,}(.\d{0,2})?|0(.\d{0,2})?|(.\d{1,2}))$|^-?\$?([1-9]{1}\d{0,2}(\,\d{3})(.\d{0,2})?|[1-9]{1}\d{0,}(.\d{0,2})?|0(.\d{0,2})?|(.\d{1,2}))$|^(\$?([1-9]{1}\d{0,2}(\,\d{3})*(.\d{0,2})?|[1-9]{1}\d{0,}(.\d{0,2})?|0(.\d{0,2})?|(.\d{1,2})))$

The regex above will validate entries like: $3, $3.00, $3,000, and $3000.00 It's not perfect, because it will validate something like $3000[.] (a digit at the end without the following two digits). However, I've found that SQL Server ignores the trailing period, so it's not a serious issue. The regex was posted on StackOverflow.com by the user JohnM, at the following link:
http://stackoverflow.com/questions/354044/what-is-the-best-u-s-currency-regex

Finally, one additional word of advice: If you application has many areas where currency values can be entered or edited, centralize your Regex pattern inside of a resource file. That way, whenever you need to apply a RegularExpressionValidator control, you can obtain the pattern for use in the ValidationExpression property like so:

<asp:regularexpressionvalidator>
   ID="TuitionRegularExpressionValidator
   ControlToValidate="InputTextBox"
   ErrorMessage="The value entered in the 'Tuition' field is not a valid USD currency value."
   ValidationExpression="<%$ Resources:CommonValidation, Currency %>"
   runat="server" />

I am counting down to a full week off work beginning Friday, May 13th at 5:00 PM sharp. Oh yeah!