Palermo4

J. Michael Palermo IV

  • Hanging out with Scott(s)

    I am hanging out with Scott Cate and Scott Watermasysk at the W in San Diego.  After talking with Scott Watermasysk, I have added categories to my blogs.  Here he is hard at work at the hotel:

  • Resolving entities when loading XmlDocument

    Recently I needed to place special characters in an xml document.  I had to put the &trade and &reg into the text of an attribute.  When I loaded the xml into XmlDocument, I received an exception:

  • Getting the absolute path in ASP.NET

    Typically when we create ASP.NET applications, we are developing against a virtual directory.  However, when we deploy our app to a production web server, it is likely set up as a web site.  This can have an impact on href assignments when using absolute paths.  In order for paths to be consistant between virtual directories and web sites, I created a helper method that will work in either environment.  Here is the code:

  • A night with Scott Guthrie

    Last night was our super user group meeting - guest speaker Scott Guthrie.  He did the ASP.NET Roadshow for us here in Phoenix.  We had more people show for his presentation than DevDays!!!  All went well thanks to our community super-star, Scott Cate.  Also cool to hang out with Dan Wahlin, who admitted to actually reading my blogs.  I urged him to start blogging as well.  Anyway, the samples from the presentation are available at Scotts web site, http://www.scottgu.com

  • Google this!

    I have just realized the power of Google with weblogs!  The other day I was talking with Robert McLaws about blogging in general, and he told me that he blogs everything so that it can be searchable by Google.  Just provide the weblog name as a search context, followed by any keywords.

  • Getting into shape

     Last week I was teaching a VB.NET class at Interface, and a student in the class took my classic illustration of abstraction and polymorphism to the next level.  I always like using ‘shape’ as an abstract example, where ‘draw’ is an abstract method.  I ask the question “If you create a ‘shape’ with a ‘draw’ method… what will the shape look like?”  Of course, shape is too abstract to know the answer.