Recent Entries
Contact Doug!
Learn About Doug!
View Doug Boude's online resume
updated 11/18/2009

View Doug Boude's profile on LinkedIn
Link to me!

Follow Doug Boude on Twitter
Follow me!

Be Doug's friend on Facebook
Befriend me!
(I promise not to follow you home)
OO Lexicon
Chat with Doug!
You may also be interested in...
Web Hosting

<< August, 2009 >>
SMTWTFS
1
2345678
9101112131415
16171819202122
23242526272829
3031
Search Blog

Recent Comments
Re: November 7th, 2012 - Day 1 of the Restoration of America's Greatness (by dougboude at 5/04 9:47 AM)
Re: November 7th, 2012 - Day 1 of the Restoration of America's Greatness (by Simon Magnus at 5/04 9:24 AM)
Re: Providing for Service Layer Objects in CFWheels: Hello Wirebox! (by Brad at 5/03 11:37 AM)
Re: PayPal IPN Coldfusion CFC (by No at 4/29 9:28 AM)
Re: Java: The Journey Begins (by jwilliam at 4/23 11:56 PM)
Re: Providing for Service Layer Objects in CFWheels: Hello Wirebox! (by geirman at 4/21 10:24 AM)
Re: Providing for Service Layer Objects in CFWheels: Hello Wirebox! (by dougboude at 4/20 11:32 AM)
Re: Providing for Service Layer Objects in CFWheels: Hello Wirebox! (by geirman at 4/20 10:27 AM)
Re: The Model-Glue Event Lifecycle in Layman's Terms (by Ashwini at 4/18 2:51 PM)
Re: Viewing Option Text (in IE7) that's Wider than the Select List (by cormac at 4/18 4:18 AM)
Re: Providing For Service Layer Objects in CFWheels (by Chris Geirman at 4/16 2:04 PM)
Re: Why Provide for Service layer objects in CFWheels? (by dougboude at 4/13 9:13 AM)
Re: Why Provide for Service layer objects in CFWheels? (by Eric Cobb at 4/13 8:26 AM)
Re: Why Provide for Service layer objects in CFWheels? (by Chris Geirman at 4/13 6:44 AM)
Re: Why Provide for Service layer objects in CFWheels? (by Per Djurner at 4/12 3:39 PM)
Re: Refreshing Cached ColdFusion Webservices Through the Back Door (by Paul at 4/11 3:26 PM)
Re: Adding and Customizing Mura Editor Styles (by dougboude at 4/05 3:54 PM)
Re: Adding and Customizing Mura Editor Styles (by mike at 4/05 2:28 PM)
Re: Adding Mura Components to a Page Without Cascading (by Suzy Naschansky at 3/28 10:38 AM)
Re: Adding Mura Components to a Page Without Cascading (by Suzy Naschansky at 3/28 4:36 AM)
Categories
Archives
Photo Albums
Funnies (5)
Family (3)
RSS

Powered by
BlogCFM v1.11

28 August 2009
Locating Files Containing Specified Text in "*IX" Environment

This is nothing revolutionary, but since it was new to me and it DID take me far longer finding the solution via Googling than it should have, I'm posting it here for my own and others' reference.

Let's say you need to do some search and replace of a specified email address within a BUTT LOAD of PHP files you inherited from your predecessor, but you don't want to have to download the whole can of worms via FTP, only the relevant files (I know, I know: why did my predecessor hard code the email address all over the place?). Anyway, this next snippet will give you back a list of all PHP files containing the text specified:


find . -name "*.php" -exec grep -H "someEmailAddress@oldDomain.com" {} \;

 

The results will look something like this:

./data/QuickupAdj.php:                     // $MailStaff = "someEmailAddress@oldDomain.com ";
./data/QuickupAdj.php:                     mail("
someEmailAddress@oldDomain.com ", $Subject, $Strx, $headers, "-f $MailFrom");
./data/QuickupAdj.php:                     // $MailStaff = "
someEmailAddress@oldDomain.com ";
./data/QuickupAdj.php:                   mail("
someEmailAddress@oldDomain.com ", $Subject, $Strx, $headers, "-f $MailFrom");
./data/QuickupAdjo5.php:                     // $MailStaff = "
someEmailAddress@oldDomain.com ";
./data/QuickupAdjo5.php:                     mail("
someEmailAddress@oldDomain.com ", $Subject, $Strx, $headers, "-f $MailFrom");
./data/QuickupAdjo5.php:                     // $MailStaff = "
someEmailAddress@oldDomain.com ";
./data/QuickupAdjo5.php:                   mail("
someEmailAddress@oldDomain.com ", $Subject, $Strx, $headers, "-f $MailFrom");

 

Told ya, nothing special about this post! :)

Doug out.

Posted by dougboude at 8:47 AM | PRINT THIS POST! | Link | 0 comments



25 August 2009
Strange Validation Issue with CFARGUMENT

I was chatting with a buddy of mine today about an issue he had encountered when passing a list of numbers into a cfargument whose type was set to "numeric" (CF 8). For whatever reason, he could pass in the string "1,6,7" and it would actually validate as a numeric value. When passing in a fourth number, such as "1,6,7,9", it threw an error based on the argument type, which it rightfully should have done when being passed "1,6,7".

To try and narrow down the reason behind this behavior I whipped up a quickie function to test with. Here's the code:

<cffunction name="test" access="public" output="false" returntype="any">
 <cfargument name="thevalue" type="numeric" required="yes" />
 <cfset var retval = structnew() />
 <cfset retval.isnumeric = isnumeric(arguments.thevalue) />
 <cfset retval.rawvalue = arguments.thevalue />
 <cfset retval.dothemath = arguments.thevalue - 0 />
 <cfset retval.theval = val(arguments.thevalue) />
 <cfreturn retval />
</cffunction>

<cfset valList = "1,1,6|0,1|1,1,6,9|0,0,1" />

<cfloop list="#valList#" index="i" delimiters="|">
 Passing in: <cfoutput>#i#</cfoutput><br>
 <cftry>
  <cfset retval = test(i) />
 <cfcatch type="any">
  <cfset retval = "ERROR: " & cfcatch.detail />
 </cfcatch>
 </cftry>
 <cfdump var="#retval#">
 <hr>
</cfloop>

Here's the results:

results of a string validating against a numeric argument type

I tried many more combinations of numbers as well, and couldn't see any common denominators nor figure out what might be going on under the covers. Just thought I'd share this in case anybody had some input that might explain such behavior.

Posted by dougboude at 3:40 PM | PRINT THIS POST! | Link | 2 comments
24 August 2009
Buying a New Home is EASY! Part 1 of 2
The Night Before Closing - summary of the experience

(I shared more details prior to this post in a previous post)

Tomorrow morning at 9 am, my wife and I go to close on our new home. Just to make sure we come prepared, we called the builder today to find out what the specific amount of closing costs would be. To our surprise, I was told that the only thing we needed to bring with us is a picture ID, and in fact, we would be receiving money from them. That's right, we get money back. In a nutshell then, what has occurred is that my wife and I put $500 down on a $178,000 home which was built for us from the ground up, and when we sign the papers tomorrow to take the keys and move in, they are handing us back almost $300. No down payment, no closing costs out of pocket, and out a total of only $200 that we spent. Oh, and they gave us a 5.3% interest rate. America (and Centex), you totally rock.

You Can Do It Too!

Some of the details, in case anybody would like to duplicate what has been a very rewarding and satisfying home buyer's experience for my wife and I...

First of all, you really need to get yourself to Texas just as fast as you can (seriously), especially the San Antonio area. Real estate prices are some of the best (if not THE best) in the country, the winters are pretty mild, the people and culture are great, jobs are in decent supply, and the cost of living is quite tolerable. Secondly, find yourself the nearest Pulte or Centex subdivision where building is still going on and walk into the sales office. They'll take it from there. My wife and I, on a whim, stopped in on a Saturday and by end of day Sunday had all of our options and amenities picked out and our new home process had begun. Now a mere 5 months later, we're moving in to our brand new home.

A few fun facts

Incentives

Centex (and probably most home builders) will very often have a wide variety of incentives designed to, well, give you incentive to buy :) . They change all the time though, and from one weekend to the next may be completely different. Make sure when you walk in that you ask about available incentives, because depending on what's most important to you, certain ones may appeal more than others. For instance, my wife and I are looking at buying a new home almost exclusively as an investment of our money and resources. So, knowing that we are going to sell in 5 to 7 years from now, we wanted to include everything possible that will make the home stand out and be more appealing to potential buyers. Centex just happened to have (that particular weekend) three lots that had a $5,000 dollar upgrade incentive, meaning that if we chose to build on one of those, we could select up to $5,000 worth of upgrades without upping the purchase price! So, we added that fireplace, and we upgraded that AC unit, etc.. Make sure you ask about upcoming incentives, too. The sales people usually have heard what's coming down the pipe, so if a more appealing incentive will be in place next weekend, you may want to wait till then to make a decision on which lot to build on.

VA Benefit

If you've spent any time in the military, then you can use your VA home buyers benefit during the purchase. In a nutshell what this does for you is allow you to not have to put any money down towards the purchase. It doesn't necessarily mean there won't be any closing costs (money paid to the title company for doing their paperwork, etc.), but it does mean you won't have to come up with a giant chunk of cash if you don't want to. Oh, and it used to be that a VA benefit could only be used towards ONE home. Not anymore. Now they pro-rate it, and your certificate is worth a certain amount. I'm not sure what that amount is, I believe they said 300k. So, if I use it to buy a home worth 85K, I still have 215K worth of certificate left to use towards another home! That's exactly what we did, too. If you're young and reading this, you should seriously consider giving 4 years of your life to the guvment. You'll have a steady job for 4 years with all benefits and probably some travel, and when you get out you'll be able to pay for your education AND your first home. It's a pretty sweet deal.

HUD

If you don't have VA home buyer's benefits, you will also want to know this little tidbit: if you get financed through the HUD program, you will only be required to come up with 3% down payment, and NOT the 10% or more that we typically think we do. That's a HUGE difference, and it can make a purchase completely do-able when going through the builder for financing instead of an "on the street" lending institution. So, whereas that $180,000 dollar dream home may have been out of your range due to having to come up with $18,000 as a down payment, through HUD you'd only have to save up $5,400! Still a lot of money for someone on a budget, but MUCH more achievable!

Realtors

Another tip: use a realtor. Even when buying from a builder, you are still entitled to a realtor. Cool thing about that: the builder pays the realtor's fees, not you. Don't ask me why, I have no clue, but nothing comes out of your pocket to compensate the realtor. Their primary job in this is to just act as a second set of educated eyes and ears on your behalf, making sure nothing gets overlooked and that you understand the process as it happens.

Credit

Credit. Most of us really hate that subject, but unfortunately it's a fact of life we have to live with. The good news is that Centex/Pulte are not robots like so many other institutions, and will actually evaluate items on your credit report to determine their validity. For instance, I am still legally bound to the first home I bought over ten years ago which my ex spouse got in the divorce, so every time she makes a late payment, it shows up on my credit. All I had to do was provide proof that the home was no longer mine, and the Centex underwriter didn't count it against me.

A year and a half prior to beginning the home buying process, I did what has turned out to be a very wise thing, and invested $400 with a local credit repair company to get my report cleaned up. They were totally awesome and their work in combination with me being fiscally responsible for the past couple of years has resulted in a credit score in the low 700s! Something I have NEVER had in my whole life. You really do want to reap the rewards of decent credit, so I highly recommend finding and using a reputable credit repair company to give that process a boost...it has really paid off for me.

Conclusion

When I share my home buying experience with some people, I'm often amazed at how DISinterested they are. I think it has a lot to do with their age, as the younger among us (physically or mentally) tend to think of buying a home as the equivalent of taking a spouse: some kind of life long commitment that they just aren't ready to make. But au contraire, buying a home is nothing but an investment of your hard earned money, a place to put it where it can grow and become much more than it would sitting in a bank account. You have to pay to live somewhere, right? You might as well pay yourself! If you don't, you are without a doubt giving your money to someone else so that THEY can reap the rewards of YOUR money. Exactly...that makes zero sense except in only a few circumstances. Buying a house doesn't mean you HAVE to live in it, either. You can always rent it out, or sell it. Of course you can't force it to sell, so the possibility exists that you may be stuck making the payment when you really didn't want to, but if you're willing to at least commit to living in the same city for 5 to 7 years, you should put your money into your own home.

All in all, the experience of buying a home through Centex (now Pulte) has been absolutely incredible, and I couldn't have wished for it to have been more pleasant. They treat you truly like a valued customer every step of the way.

Post number 2 on this subject! "Post-Closing" :)

Posted by dougboude at 10:50 PM | PRINT THIS POST! | Link | 1 comment
23 August 2009
DougBoude.com Now Hosted with Hostek
This has been a long time coming, but I finally invested the time to migrate to another web host: Hostek.com. For a mere $5 a month, I get the usual "works" plus CF 8, not to mention outSTANDING technical support! I may be only paying $5 a month, but they make me feel like I'm paying $50.

On that note, let me take a moment to warn you NOT to use Dantor.com, my old host and the motivation for me migrating my site. They've been around a long time, and way back in the day (circa 2000 or so) they were a good deal. But, their customer support has, for the past couple of years, epitomized the phrase "YOU SUCK!", having left myself and at least two other people I know virtually stranded more than one time while our sites were unreachable. The contact info they have on their site is pretty much useless...a phone number that reaches a voice mail box that is full, a fax number that is wrong, and an email address that doesn't bounce, but typically doesn't receive a response for days on end. So yeah, Dantor.com, located (supposedly) at
34646 Jefferson Ave, Harrison Township, MI ... avoid them at all costs for your hosting needs.

If you notice anything funky, like errors, please take the time to shoot me an email with some details so I can get it fixed.

Thanks!

Doug  :0)
Posted by dougboude at 3:20 PM | PRINT THIS POST! | Link | 0 comments