HTML Sites for Beginners

I was asked to show one of our new programmers around how to build a website and they didn’t have any experience in the area yet, so I did a little digging to find some beginners guides to HTML:
  • Read HTML Beginner/Intermediate, CSS Beginer/Intermediate
  • The advanced HTML isn’t really needed for us (though it can’t hurt)
  • Advanced CSS, Display & Page Layout are important to know
  • Read the current top voted answer ‘Learn Simple Things First’
  • Another good site with various tutorials across a wide range of topics
  • Great tutorials though a little outdated when it comes to current best practices

Visual Studio Find and Replace with Regular Expressions

One of the latest neat little features I’ve started using is Visual Studio’s Find & Replace function but using regular expressions for the search terms, for example:

Find what:
\.Item\("{(:a|_|-)*}"\)
Replace With:
!\1
Converts
.Item("cState")
Into:
!cState

If we were to break down what each regex is doing we would have the following:

In our first expression we have \.Item\("{(:a|_|-)*}"\)
  • The :a is a VS shortcut for [a-zA-Z0-9]
  • (:a|_|-) groups it with the underscore and dash giving us the effect of ([a-zA-Z0-9]|_|-)
  • * matches 0 or more of the previous expression

Now the special chars:

  • the {} tags the expression so we can use it as a variable in our replace box.
  • the replace box just has !\1, where \1 refers to the first tagged expression in our find box, if we had multiple {} in the find string, we could address them accordingly with \2, \3 and so on.
Here’s a second example using multiple tagged expressions. Another time I was refactoring a sub routine into a function.  Previously the sub was taking in a datatable by reference and modifying it locally, but now it was returning the datatable.  So every where the method was being called needed to be altered in pretty much the same way.  The following terms made the rest of my refactoring chore much easier:
Find What:
Code\.FillDataTable\({"(:a|_|-)*"}, {(:a|_|-)*}\)
Replace With:
\2 = FillDataTable(\1)
findreplace
Takes code of the format:
Code.FillDataTable("usp_FillStates", dtStates)
and changes it to:
dtStates = FillDataTable("usp_FillStates")
Thanks to the find/replace feature this saved me a bunch of time!

Visual Studio 2005 Unable to Drag Yellow Arrow – Solution Found!

Finally found a solution to a problem that was annoying me for soo long!

After getting my new PC at work and going through the various options in VS 2005 getting it setup as I wanted I found that one little feature was not working as expected.  That is the ability to change the current execution point by clicking and dragging on the yellow execution arrow while debugging.   Whenever I would try, it would only toggle a break point at the current location.
An alternate to this is the ability to right click and choose Set Next Statement which would be the same behavior but takes a fraction of time longer and requires me to consciously think about it. I was just too used to dragging the arrow around…
The related setting is Options -> Text Editor -> General -> Drag and drop text editing
With this unchecked, the arrow can’t be moved with the mouse. Checking it solves my issue, I’d finally found it!

Visual Voice Mail with the Droid 2 & Google Voice

So I’ve had Google Voice for quite a while but have not really taken advantage of it.  I just recently got the Droid 2 and installed the Google Voice app from the market place. Verizon wants to charge $3/mo for their visual voice mail service, but with Google Voice it’s completely free! (as long as you don’t mind Google being able to data mine all your personal data.. but that’s for another discussion..)

Today I activated the voice mail forwarding and it appears to work rather well!

To enable voice mail forwarding dial *71<Your Google Voice Number>.  After you’ve done that, when someone calls your real number and you do not pick up, it will be redirected to Google Voice where it will ring once then ask them to leave a message.  The message will then show up in Google Voice with all the various goodies you’ve set up (Transcribing, SMS/Email notification, etc).

To deactivate the voice mail forwarding, simply dial *73 from your phone, and the forwarding will be removed.