<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Ryan Ternier </title><link>http://weblogs.asp.net/rternier/default.aspx</link><description>Killer ASP.NET ninja coding monkeys do exist!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Microsoft Expressions – Web Super Preview</title><link>http://weblogs.asp.net/rternier/archive/2009/04/02/microsoft-expressions-web-super-preview.aspx</link><pubDate>Thu, 02 Apr 2009 18:21:06 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7023176</guid><dc:creator>Ryan Ternier</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/rternier/rsscomments.aspx?PostID=7023176</wfw:commentRss><comments>http://weblogs.asp.net/rternier/archive/2009/04/02/microsoft-expressions-web-super-preview.aspx#comments</comments><description>&lt;p&gt;So Here I am trying to figure out how to test my application in IE6, IE7, IE8 and the rest of the plethora of browsers. Aside from the fact that my customers still use IE6… … I couldn’t find a computer / RDP / VM Machine that has IE6 on it.&amp;#160; Through my searching, I found this beauty:&lt;/p&gt;  &lt;p&gt;&lt;a title="http://www.webdesignerdepot.com/2009/03/microsoft-announces-superpreview-for-ie-browser-testing/" href="http://www.webdesignerdepot.com/2009/03/microsoft-announces-superpreview-for-ie-browser-testing/"&gt;http://www.webdesignerdepot.com/2009/03/microsoft-announces-superpreview-for-ie-browser-testing/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;This gives the ability to have multiple versions of IE looking at the same web page. Now, it’s not perfect but it’s a start (it’s still in beta). you can see by the picture below that the textbox I’ve selected on the left side (IE8), selects the same textbox on the right side, however the position is off.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/rternier/image_3BB98EB4.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://weblogs.asp.net/blogs/rternier/image_thumb_738BD2D7.png" width="877" height="73" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;My thoughts:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;It’s good if you’re looking at a plain page, however there is no user interaction. You can’t navigate, you can’t type, you can’t do much except watch and look at positioning.&lt;/li&gt;    &lt;li&gt;It does help with CSS issues… like putting : style=”display:none;” on a textbox. It works in IE7+ but not in IE6.&lt;/li&gt;    &lt;li&gt;The download for the install is 236MB, yet the program you’re installing is only 36megs after install… what else is in there?&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;So if you’re looking for a page by page comparison, don’t need to test ajax, or anything else, this works.&amp;#160; Personally, I’m getting someone to build me a Win98 VM and a Windows XP VM so I can have those running to test my apps.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7023176" width="1" height="1"&gt;</description></item><item><title>Hosts file auto updated to IP v6…</title><link>http://weblogs.asp.net/rternier/archive/2009/03/09/hosts-file-auto-updated-to-ip-v6.aspx</link><pubDate>Mon, 09 Mar 2009 23:10:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6951934</guid><dc:creator>Ryan Ternier</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/rternier/rsscomments.aspx?PostID=6951934</wfw:commentRss><comments>http://weblogs.asp.net/rternier/archive/2009/03/09/hosts-file-auto-updated-to-ip-v6.aspx#comments</comments><description>&lt;p&gt;We had an issue today at work. A few developer machines couldn’t debug any ASP.NET 2.0 web application. After an hour of looking, we found out that some of our host files had the entry:&lt;/p&gt;  &lt;p&gt;::0&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; localhost&lt;/p&gt;  &lt;p&gt;instead of:&lt;/p&gt;  &lt;p&gt;127.0.0.1&amp;#160;&amp;#160;&amp;#160;&amp;#160; localhost&lt;/p&gt;  &lt;p&gt;If you are getting issues with trying to debug your ASP.NET Website (Like the following):&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/rternier/image_43A094E4.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://weblogs.asp.net/blogs/rternier/image_thumb_5D945506.png" width="567" height="262" /&gt;&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/rternier/image_5BE38932.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://weblogs.asp.net/blogs/rternier/image_thumb_43243C22.png" width="834" height="572" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Check your hosts file to make sure it’s correct.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6951934" width="1" height="1"&gt;</description></item><item><title>Application logging – yes it is important</title><link>http://weblogs.asp.net/rternier/archive/2009/02/19/application-logging-yes-it-is-important.aspx</link><pubDate>Thu, 19 Feb 2009 22:42:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6917250</guid><dc:creator>Ryan Ternier</dc:creator><slash:comments>11</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/rternier/rsscomments.aspx?PostID=6917250</wfw:commentRss><comments>http://weblogs.asp.net/rternier/archive/2009/02/19/application-logging-yes-it-is-important.aspx#comments</comments><description>&lt;p&gt;I’ve spent most of my professional career working on Enterprise Applications (mostly web based). Sometimes you release your code and everything goes smoothly (this is where praise is warranted by rarely given). However, there are times when code has been in place for many days, weeks, months without any issues and all of a sudden – all hell breaks loose and it stops (this is where harsh comments are never wanted but always received).&lt;/p&gt;  &lt;p&gt;So, what do we do when that happens? If we cannot see what’s going on, we’re pretty much hosed. Sure we could start doing some knee-jerk reactions, do code changes to try trapping for situations, but come on… knee-jerk reactions are bad. Say it with me: “BAD”.&lt;/p&gt;  &lt;p&gt;So this is where application logging comes in.&amp;#160; Below are 2 lists. The first list contains some things you just should not do… though everyone has probably done these. We learn through making mistakes, others and school (… yea), so the list below is mostly mistakes I’ve made in my career so hopefully some can learn from them. &lt;/p&gt;  &lt;h4&gt;What Not To do.&lt;/h4&gt;  &lt;p&gt;There are many ways to “log” what happens in an application. What I want to do here is list some of the ones I’ve encountered that really don’t give much info.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Rely on just Exception Logs&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;There is something to be said about logging exceptions, however, relying on just exception logs is a mistake. Exceptions are raised either when a code error, system exception, user exception or when a user manually throws it. However there are cases where there’s an error with your system, and it’s not throwing an exception. &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Write out every action to the Hard Disk&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;I love this one. I’ve seen a system log over 100Mb an HOUR to the hard disk based on actions happening on it. Sure, it could be useful… if you had a hard disk that had a crap load of room on it. But come on, you let it run for a month un-checked. 100 * 24… um * 30… dot the i…&amp;#160; … that’s around 72GB of logging. Yes, some of it “might” be useful but who would want the daunting task of looking through that mess when we could doing real work.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Use a single log file&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Whenever you log information to the system – split it up into files. One file per day, or one file per hour. If you have a log file that’s massive (look above) and you’re reading it every time you log something, you’ll be overloading your system in no time on read/writes. What i do is:&amp;#160;&amp;#160;&amp;#160; name files like:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;BicNet.Enfora_LOG_19_FEB_2008_0800.log&lt;/li&gt;    &lt;li&gt;BicNet.Enfora_LOG_19_FEB_2008_0900.log&lt;/li&gt;    &lt;li&gt;BicNet.BlueTree_LOG_19_FEB_2008_0800.log&lt;/li&gt;    &lt;li&gt;BicNet.AI.NinjaRevengePlan2000_LOG_59_SEPTEBURARY_2108_0800.log&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;If an error occurs at 8:30AM with some customers sending in GPS Data through an Enfora Modem, it’s pretty self-explanatory where I need to look.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Do nothing&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;YES! Awesome!… die… well actually this is better than the next one.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Log useless information&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Have you ever seen a log file that looks like:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&amp;gt;Awesome function just called. Woo I rock. Go Canucks go! &lt;/p&gt;    &lt;p&gt;&amp;gt;Another Awesome function was just called. It’s now 12:34PM. GO CANADA GO! &lt;/p&gt;    &lt;p&gt;&amp;gt;WOO I ROCK! &lt;/p&gt;    &lt;p&gt;&amp;gt;… Stupid user did an error. Message is “Object reference not set to an instance of an object”. COME ON! &lt;/p&gt;    &lt;p&gt;&amp;gt;ANOTHER ERROR!? Gah button1 was clicked. Check the code to see why I was written. DO IT! DO IT NOW!&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;If you looked through some of my college programs you might find some error logs like this. &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;h1&gt;What to do&lt;/h1&gt;  &lt;p&gt;Honestly, don’t do any of the above and you’re better off already. There’s an example of a logging system I have in place that writes logs out.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Don’t bloat your logs&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;When doing logs – I rarely use XML. Wha!? NO XML!? HERESY! Yes yes it formats nicely, and yes it’s well it’s XML. However, there’s an overhead on using it. Only use it if you need to. If you can get by with writing logs in plain text, do it. XML can be used when you have complex object you need to write out, or if you nave a lot of data, however, for simple logging – use plain text.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Log raw information coming into the system&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Whenever you have a system that needs it’s information logged, log the incoming data. If you don’t log that data, it could be transformed or corrupted at the time you do log it. If you log it when it’s coming in you can later on run tests against that function with the correct data if there’s an error. For web services, there’s ways of tapping into the raw SOAP data (using ASP.NET) before it hits your web-service. This allows you to log/trace that information to your disk before your web-service gets the data, very useful.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Example – UDP / TCP Listener&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;I have a service running on our servers that listens on TCP and UDP Ports. Whenever a device connects to our servers, my listener service picks it up and processes the information.&amp;#160; Every time I get a connection on our server, I log who connected, the message received, and the time (I don’t write anything out at this time). Every time I send something to a user, I log the IP, the message and the time. Every 10 minutes I’ll stream the output to one file, and the input to another file. If an exception is raised, I write out all the information, as well as the exception to an exception log file. Every hour I create a new file so they’re never too large.&lt;/p&gt;  &lt;p&gt;I don’t log every function, I don’t log simple operations, I don’t need to because if they ever throw an exception, I already have it. If there is bad data coming in which is compromising the integrity of my system, I have it already logged with the date/time. This gives us all the information we need to perform tests to see what has gone wrong, and it catches exceptions. It also allows me to quickly count the # of connections coming in, to debug connectivity issues.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Code Example – Generic Log Entry Method&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Here’s a sample “Logging” method I use to fill my StringBuilder with the data I need to log out:&lt;/p&gt;  &lt;div class="csharpcode"&gt;   &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;   1:  &lt;/span&gt; &lt;span class="kwrd"&gt;private&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; LogEntry(&lt;span class="kwrd"&gt;string&lt;/span&gt; message, &lt;span class="kwrd"&gt;string&lt;/span&gt; customer, &lt;span class="kwrd"&gt;int&lt;/span&gt; reportID)&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;   2:  &lt;/span&gt;        {&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;   3:  &lt;/span&gt;            &lt;span class="kwrd"&gt;string&lt;/span&gt; sReportID = &lt;span class="kwrd"&gt;null&lt;/span&gt;;&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;   4:  &lt;/span&gt;            &lt;span class="kwrd"&gt;char&lt;/span&gt; c = &lt;span class="str"&gt;' '&lt;/span&gt;;&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;   5:  &lt;/span&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;   6:  &lt;/span&gt;            System.Diagnostics.Debug.WriteLine(message);&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;   7:  &lt;/span&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;   8:  &lt;/span&gt;            &lt;span class="kwrd"&gt;if&lt;/span&gt; (_sbLog == &lt;span class="kwrd"&gt;null&lt;/span&gt;)&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;   9:  &lt;/span&gt;                _sbLog = &lt;span class="kwrd"&gt;new&lt;/span&gt; StringBuilder();&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  10:  &lt;/span&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  11:  &lt;/span&gt;            &lt;span class="kwrd"&gt;if&lt;/span&gt; (reportID &amp;gt; -1)&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  12:  &lt;/span&gt;                sReportID = reportID.ToString();&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  13:  &lt;/span&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  14:  &lt;/span&gt;            &lt;span class="kwrd"&gt;if&lt;/span&gt; (customer != &lt;span class="kwrd"&gt;null&lt;/span&gt; &amp;amp;&amp;amp; customer.Length &amp;gt; 25)&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  15:  &lt;/span&gt;                customer = customer.Substring(0, 25);&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  16:  &lt;/span&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  17:  &lt;/span&gt;            &lt;span class="kwrd"&gt;if&lt;/span&gt; (sReportID != &lt;span class="kwrd"&gt;null&lt;/span&gt; &amp;amp;&amp;amp; sReportID.Length &amp;gt; 9)&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  18:  &lt;/span&gt;                sReportID = &lt;span class="str"&gt;&amp;quot;XX&amp;quot;&lt;/span&gt; + sReportID.Substring(2, 7);&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  19:  &lt;/span&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  20:  &lt;/span&gt;            &lt;span class="kwrd"&gt;if&lt;/span&gt; (message.ToLower().IndexOf(&lt;span class="str"&gt;&amp;quot;exception&amp;quot;&lt;/span&gt;) &amp;gt; -1)&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  21:  &lt;/span&gt;            {&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  22:  &lt;/span&gt;                _sbLog.AppendLine(&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  23:  &lt;/span&gt;                    DateTime.Now&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  24:  &lt;/span&gt;                    + &lt;span class="str"&gt;&amp;quot; - &amp;quot;&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  25:  &lt;/span&gt;                    + (customer == &lt;span class="kwrd"&gt;null&lt;/span&gt; ? &lt;span class="kwrd"&gt;new&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt;(c, 25) : customer + &lt;span class="kwrd"&gt;new&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt;(c, 25 - customer.Length))&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  26:  &lt;/span&gt;                    + &lt;span class="str"&gt;&amp;quot; - &amp;quot;&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  27:  &lt;/span&gt;                    + (sReportID == &lt;span class="kwrd"&gt;null&lt;/span&gt; ? &lt;span class="kwrd"&gt;new&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt;(c, 9) : sReportID + &lt;span class="kwrd"&gt;new&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt;(c, 9 - sReportID.Length))&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  28:  &lt;/span&gt;                    + &lt;span class="str"&gt;&amp;quot; - &amp;quot;&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  29:  &lt;/span&gt;                    + &lt;span class="str"&gt;&amp;quot;Exception occured.&amp;quot;&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  30:  &lt;/span&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  31:  &lt;/span&gt;                _sbLog.AppendLine(message);&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  32:  &lt;/span&gt;            }&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  33:  &lt;/span&gt;            &lt;span class="kwrd"&gt;else&lt;/span&gt;&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  34:  &lt;/span&gt;            {&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  35:  &lt;/span&gt;                _sbLog.AppendLine(&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  36:  &lt;/span&gt;                    DateTime.Now&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  37:  &lt;/span&gt;                    + &lt;span class="str"&gt;&amp;quot; - &amp;quot;&lt;/span&gt;&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  38:  &lt;/span&gt;                    + (customer == &lt;span class="kwrd"&gt;null&lt;/span&gt; ? &lt;span class="kwrd"&gt;new&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt;(c, 25) : customer + &lt;span class="kwrd"&gt;new&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt;(c, 25 - customer.Length))&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  39:  &lt;/span&gt;                    + &lt;span class="str"&gt;&amp;quot; - &amp;quot;&lt;/span&gt;&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  40:  &lt;/span&gt;                    + (sReportID == &lt;span class="kwrd"&gt;null&lt;/span&gt; ? &lt;span class="kwrd"&gt;new&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt;(c, 9) : sReportID + &lt;span class="kwrd"&gt;new&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt;(c, 9 - sReportID.Length))&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  41:  &lt;/span&gt;                    + &lt;span class="str"&gt;&amp;quot; - &amp;quot;&lt;/span&gt;&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  42:  &lt;/span&gt;                    + message);&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  43:  &lt;/span&gt;            }&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  44:  &lt;/span&gt;        }&lt;/pre&gt;
&lt;/div&gt;
&lt;style type="text/css"&gt;
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }&lt;/style&gt;

&lt;p&gt;From here, you just have to tell it to write this out whenever you need.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6917250" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/rternier/archive/tags/ASP.NET+/default.aspx">ASP.NET </category><category domain="http://weblogs.asp.net/rternier/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://weblogs.asp.net/rternier/archive/tags/General+Software+Development/default.aspx">General Software Development</category></item><item><title>Hiring more developers doesn’t always speed things up.</title><link>http://weblogs.asp.net/rternier/archive/2009/02/19/hiring-more-developers-doesn-t-always-speed-things-up.aspx</link><pubDate>Thu, 19 Feb 2009 17:05:30 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6916976</guid><dc:creator>Ryan Ternier</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/rternier/rsscomments.aspx?PostID=6916976</wfw:commentRss><comments>http://weblogs.asp.net/rternier/archive/2009/02/19/hiring-more-developers-doesn-t-always-speed-things-up.aspx#comments</comments><description>&lt;p&gt;Who’s heard of the term : “Too many cooks in the kitchen”? It’s a fundamental problem if ruling.&lt;/p&gt;  &lt;p&gt;I was talking to someone awhile ago about this problem where they needed to get Task A done in a specific time frame and his boss wanted him to just hire more developers.&lt;/p&gt;  &lt;p&gt;So I’ll give the same answer to you that we talked about:&lt;/p&gt;  &lt;p&gt;It takes 9 months for a baby to be born. If you add 9 women into the fray, would the baby be born in 1 month?&lt;/p&gt;  &lt;p&gt;I’ll stop there so minds don’t wander… yea that means you!&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6916976" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/rternier/archive/tags/General+Software+Development/default.aspx">General Software Development</category><category domain="http://weblogs.asp.net/rternier/archive/tags/Utter+Nonsense/default.aspx">Utter Nonsense</category></item><item><title>Find All Databases with…?</title><link>http://weblogs.asp.net/rternier/archive/2009/02/18/find-all-databases-with.aspx</link><pubDate>Wed, 18 Feb 2009 16:07:44 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6915258</guid><dc:creator>Ryan Ternier</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/rternier/rsscomments.aspx?PostID=6915258</wfw:commentRss><comments>http://weblogs.asp.net/rternier/archive/2009/02/18/find-all-databases-with.aspx#comments</comments><description>&lt;p&gt;I work with a lot of databases. Currently, we have over 500 databases on our one SQL box. Whenever I have to go in and modify a a specific XML section, I need a quick way to find any DataBase that has that specific XML text. I came up with a quick Script that goes through every database, searches for the table I want to see if it contains my XML text.&lt;/p&gt;  &lt;p&gt;Here’s a script that has done well for me:    &lt;br /&gt;&lt;/p&gt;  &lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;Exec&lt;/span&gt; sp_MSforeachdb @command1= &lt;span class="str"&gt;'USE ? IF '&lt;/span&gt;&lt;span class="str"&gt;'?'&lt;/span&gt;&lt;span class="str"&gt;' &amp;lt;&amp;gt; '&lt;/span&gt;&lt;span class="str"&gt;'master'&lt;/span&gt;&lt;span class="str"&gt;' AND '&lt;/span&gt;&lt;span class="str"&gt;'?'&lt;/span&gt;&lt;span class="str"&gt;' &amp;lt;&amp;gt; '&lt;/span&gt;&lt;span class="str"&gt;'model'&lt;/span&gt;&lt;span class="str"&gt;' AND '&lt;/span&gt;&lt;span class="str"&gt;'?'&lt;/span&gt;&lt;span class="str"&gt;' &amp;lt;&amp;gt; '&lt;/span&gt;&lt;span class="str"&gt;'msdb'&lt;/span&gt;&lt;span class="str"&gt;' AND '&lt;/span&gt;&lt;span class="str"&gt;'?'&lt;/span&gt;&lt;span class="str"&gt;' &amp;lt;&amp;gt; '&lt;/span&gt;&lt;span class="str"&gt;'tempdb'&lt;/span&gt;&lt;span class="str"&gt;' 
begin 
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('&lt;/span&gt;&lt;span class="str"&gt;'[dbo].[tblProcessConfigurations]'&lt;/span&gt;&lt;span class="str"&gt;') AND type in ('&lt;/span&gt;&lt;span class="str"&gt;'U'&lt;/span&gt;&lt;span class="str"&gt;')) 
BEGIN 
SELECT * FROM dbo.tblProcessConfigurations 
END 
end'&lt;/span&gt;&lt;/pre&gt;
&lt;style type="text/css"&gt;


.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }&lt;/style&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;p&gt;What this will do is print out the contents of every tblProcessConfigurations of every database on my server. However, I had an issue – what Databases were they from?&lt;/p&gt;

&lt;p&gt;I add the simple function: db_name() to my query and voila:&lt;/p&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;div class="csharpcode"&gt;
  &lt;pre class="alt"&gt;&lt;span class="kwrd"&gt;Exec&lt;/span&gt; sp_MSforeachdb @command1= &lt;span class="str"&gt;'USE ? IF '&lt;/span&gt;&lt;span class="str"&gt;'?'&lt;/span&gt;&lt;span class="str"&gt;' &amp;lt;&amp;gt; '&lt;/span&gt;&lt;span class="str"&gt;'master'&lt;/span&gt;&lt;span class="str"&gt;' AND '&lt;/span&gt;&lt;span class="str"&gt;'?'&lt;/span&gt;&lt;span class="str"&gt;' &amp;lt;&amp;gt; '&lt;/span&gt;&lt;span class="str"&gt;'model'&lt;/span&gt;&lt;span class="str"&gt;' AND '&lt;/span&gt;&lt;span class="str"&gt;'?'&lt;/span&gt;&lt;span class="str"&gt;' &amp;lt;&amp;gt; '&lt;/span&gt;&lt;span class="str"&gt;'msdb'&lt;/span&gt;&lt;span class="str"&gt;' AND '&lt;/span&gt;&lt;span class="str"&gt;'?'&lt;/span&gt;&lt;span class="str"&gt;' &amp;lt;&amp;gt; '&lt;/span&gt;&lt;span class="str"&gt;'tempdb'&lt;/span&gt;&lt;span class="str"&gt;' &lt;/pre&gt;

  &lt;pre&gt;begin &lt;/pre&gt;

  &lt;pre class="alt"&gt;IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('&lt;/span&gt;&lt;span class="str"&gt;'[dbo].[tblProcessConfigurations]'&lt;/span&gt;&lt;span class="str"&gt;') AND type in ('&lt;/span&gt;&lt;span class="str"&gt;'U'&lt;/span&gt;&lt;span class="str"&gt;')) &lt;/pre&gt;

  &lt;pre&gt;BEGIN &lt;/pre&gt;

  &lt;pre class="alt"&gt;print db_name() &lt;/pre&gt;

  &lt;pre&gt;SELECT * FROM dbo.tblProcessConfigurations &lt;/pre&gt;

  &lt;pre class="alt"&gt;END &lt;/pre&gt;

  &lt;pre&gt;end'&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;style type="text/css"&gt;


.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }&lt;/style&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;p&gt;I can now document every DataBase that will need to be updated, and what the Updates need to be.&amp;#160; &lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6915258" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/rternier/archive/tags/XML/default.aspx">XML</category><category domain="http://weblogs.asp.net/rternier/archive/tags/SQL/default.aspx">SQL</category></item><item><title>Google Chrome - A player?</title><link>http://weblogs.asp.net/rternier/archive/2008/12/03/google-chrome-a-player.aspx</link><pubDate>Wed, 03 Dec 2008 22:39:44 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6764732</guid><dc:creator>Ryan Ternier</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/rternier/rsscomments.aspx?PostID=6764732</wfw:commentRss><comments>http://weblogs.asp.net/rternier/archive/2008/12/03/google-chrome-a-player.aspx#comments</comments><description>&lt;p&gt;So today I'm playing with Google Chrome at work.&amp;#160; From my first look at it, it has promise. There's some beautiful things about it like when one tab freezes for one reason or another (something that would likely shut down Firefox / IE), only that tab freezes and not the entire application - allowing you to continue to work rather than stare at an un-responsive browser.&lt;/p&gt;  &lt;p&gt;The one major beef I have is when fully maximized, there is a 10 pixel gap at the bottom of the screen where you can click on windows behind Chrome – this does annoy me because I have a habit of clicking there – and now that I know it’s there… it will annoy me… …&lt;/p&gt;  &lt;p&gt;There are some cool features thought:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Ability to resize any textarea control &lt;/li&gt;    &lt;li&gt;Screen realastate is huge!&lt;/li&gt;    &lt;li&gt;Google keeps a record of previous and most visited sites. So when you open chrome, you can see them all right there.&lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;&lt;a href="http://weblogs.asp.net/blogs/rternier/image_02DFCEE2.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="146" alt="image" src="http://weblogs.asp.net/blogs/rternier/image_thumb_2DA80D27.png" width="244" border="0" /&gt;&lt;/a&gt;&lt;/li&gt;   &lt;/ul&gt;    &lt;li&gt;The: Right Click –&amp;gt;Page Info is quite amusing&lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;&lt;a href="http://weblogs.asp.net/blogs/rternier/image_261C9DBA.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="188" alt="image" src="http://weblogs.asp.net/blogs/rternier/image_thumb_0C48678B.png" width="244" border="0" /&gt;&lt;/a&gt; &lt;/li&gt;      &lt;li&gt;But what do you expect from a Beta… oh wait… isn’t everything from Google in Beta?&lt;/li&gt;   &lt;/ul&gt;    &lt;li&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;h1&gt;JavaScript &lt;/h1&gt;  &lt;p&gt;First off I try it against my Vehicle Tracking application I wrote for police agencies in the states. Heck, it's quick. It does everything great! I then started to play with overlaying ESRI data on top of my maps, and working with my playback and history functions and again it amazed me with how quick it is.&amp;#160; The only hiccups I got was when I played around with running 50 simultaneous functions at the same time, each one doing a lot of trig. math. The browser finally gave up and crashed.&amp;#160; I'm not surprised, IE and Firefox did the same.&lt;/p&gt;  &lt;p&gt; So as far as I'm concerned - it works great.&lt;/p&gt;  &lt;h1&gt;&lt;strong&gt; CSS&lt;/strong&gt; &lt;/h1&gt;  &lt;p&gt; There is a bit of issues with CSS styling - mainly I believe it's being too pedantic.&amp;#160; Chrome has a feature that highlights &amp;lt;input /&amp;gt; elements with an orange glow. I can see how this is nice, however to those of us that sometimes spend too much time making our application visual appealing, it’s annoying.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;h1&gt;INcogNITO!&lt;/h1&gt;  &lt;p&gt;IE8 has one, why not Chrome! HIDE EVERYTHING! No Cookies (sorry cookie monster), no traces… can we turn this off? I am personally not putting this browser on my computer at home because I do like to see what goes on with the history – and I don’t want to give anyone using my computer (&amp;lt;cough&amp;gt; kids) the ability to view bad (&amp;lt;wheeze&amp;gt; Sites with Barny the Dinosaur on them) sites without me knowing… stupid dinosaur…&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/rternier/image_4486DEA3.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="160" alt="image" src="http://weblogs.asp.net/blogs/rternier/image_thumb_18A664E7.png" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;h1&gt;Developer Tools&lt;/h1&gt;  &lt;p&gt;Google Chrome comes with a few developer tools built in.&amp;#160;&amp;#160; The JavaScript debugger failed to impress me. I've used Firebug for the past few years and It's the only one that I will recommend. The JavaScript consol caused Chrome to freeze on me fully. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/rternier/image_1BE7B0F5.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="192" alt="image" src="http://weblogs.asp.net/blogs/rternier/image_thumb_4AE9ECCC.png" width="244" border="0" /&gt;&lt;/a&gt; JavaScript Consol&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/rternier/image_2A62AD1A.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="151" alt="image" src="http://weblogs.asp.net/blogs/rternier/image_thumb_50C49065.png" width="244" border="0" /&gt;&lt;/a&gt; Javascript Debugger (Command line? What is this COBOL?)&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Having the Document Source open in a tab is... ok... and I can see the uses however I do like to move source around while I look at WebPages - why else would you use multiple monitors!?&lt;/p&gt;  &lt;p&gt; The task manager is quite... &amp;quot;nifty&amp;quot;, easy way of telling what applications are running under chrome. I especially appreciate the &amp;quot;Stats for Nerds&amp;quot; option which loads up the memory usage of the browsers (Firefox, IE, Chrome) opened and the processes (tabs) used.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/rternier/image_303D50B3.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="158" alt="image" src="http://weblogs.asp.net/blogs/rternier/image_thumb_0896D489.png" width="244" border="0" /&gt;&lt;/a&gt; Task manager&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/rternier/image_43EA3A47.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="148" alt="image" src="http://weblogs.asp.net/blogs/rternier/image_thumb_206D95E2.png" width="244" border="0" /&gt;&lt;/a&gt; Memory Usage&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;All in All, it’s better than the beta of IE8 (Sorry MS), but I don’t think It’s going to be the next best thing to hit the Internet. Ninjas did that a long time ago.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6764732" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/rternier/archive/tags/Ninjas/default.aspx">Ninjas</category><category domain="http://weblogs.asp.net/rternier/archive/tags/JavaScript/default.aspx">JavaScript</category><category domain="http://weblogs.asp.net/rternier/archive/tags/CSS/default.aspx">CSS</category><category domain="http://weblogs.asp.net/rternier/archive/tags/Google/default.aspx">Google</category></item><item><title>The grass is greener where you water it.</title><link>http://weblogs.asp.net/rternier/archive/2008/03/28/the-grass-is-greener-where-you-water-it.aspx</link><pubDate>Sat, 29 Mar 2008 02:15:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6043783</guid><dc:creator>Ryan Ternier</dc:creator><slash:comments>5</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/rternier/rsscomments.aspx?PostID=6043783</wfw:commentRss><comments>http://weblogs.asp.net/rternier/archive/2008/03/28/the-grass-is-greener-where-you-water-it.aspx#comments</comments><description>&lt;p&gt;I love watching people. I like to sit back, and watch peoples expressions, their body movements, their reactions to certain things. I don't really consider it eavesdropping, as I am not paying attention to the conversation, and I don't usually hear what's going on.&amp;nbsp; The other day I was watching a few developers from a larger company here in town bicker about something.. A friend of mine joined their group and saw I was drinking some coffee and invited me over.&amp;nbsp; The conversation soon turned towards working conditions, job satisfaction, salary, management etc... really whatever a group of developers talk about at a coffee shop. Now many would think we'd talk about games, however as "Geeks" we must maintain the persona that we have lives (note Geeks, not nerds... Geeks).&lt;/p&gt;&lt;p&gt;One person then mentioned the well coined phrase "Well the grass is always greener on the other side of the fence". At that point I had to but in and tell him to give his head a shake. The grass is greener where you water it! &lt;/p&gt;&lt;p&gt;As a working individual it is your duty, heck it's your God given duty to put 100% into your career / job. It doesn't matter if it's full time, part time, a "stepping stone", or whatever. If you are getting paid for a job, put your all into it because that's really what you're getting paid for. If you think the grass is greener on the other side, look at where you're at. Think of what makes the grass greener on the other side and bring it up with your manager / boss. Now there are some cases where the grass you're currently on was laid on a bed of concrete, in those rare occasions even the dirt looks greener (And you might want to either talk to your manager about buying an excavator if you're in this boat).&lt;br&gt;&lt;/p&gt;&lt;p&gt;Yes this is a bit of a rant, and it might be because I'm a new dad and my career is very important to my family. But wherever you are in your career, make it the best it can be. Put your all into it. Yes, the company across the street might have the newest computers, or the company across the way has lunch time gaming time... whatever it is, if you put your all into where you are, whenever you decide to move on you'll do it with integrity.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I'm going to change my babies poopy diaper now.&lt;br&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6043783" width="1" height="1"&gt;</description></item><item><title>Acid 3 Test?</title><link>http://weblogs.asp.net/rternier/archive/2008/03/16/acid-3-test.aspx</link><pubDate>Mon, 17 Mar 2008 04:22:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5981082</guid><dc:creator>Ryan Ternier</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/rternier/rsscomments.aspx?PostID=5981082</wfw:commentRss><comments>http://weblogs.asp.net/rternier/archive/2008/03/16/acid-3-test.aspx#comments</comments><description>&lt;p&gt;Yes the &lt;a href="http://acid3.acidtests.org/" mce_href="http://acid3.acidtests.org/"&gt;Acid 3 &lt;/a&gt;test has been released. The &lt;a href="http://www.webstandards.org/press/releases/20080303/" mce_href="http://www.webstandards.org/press/releases/20080303/"&gt;official announcement is here&lt;/a&gt;, and because I loath copy/paste blog posts you will need to go there to read all the nitty/gritty about it. Pretty much Acid3 tests specifications for "web 2.0" (What the heck is web 2.0 anyways? When did the web get an update... I'm still waiting for my CD!). Too see exactly what's tested, check &lt;a href="http://www.webstandards.org/action/acid3/" mce_href="http://www.webstandards.org/action/acid3/"&gt;this &lt;/a&gt;out.&lt;/p&gt;&lt;p&gt;The cool this about this is that It shows the "Percent" on how good your browser is. Believe it or not, IE7 gets like 13%. FireFox 2.0 gets around 52%.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I'm not even going to attempt to do this in IE8 beta.&lt;br&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br&gt;&lt;br&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5981082" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/rternier/archive/tags/XHTML/default.aspx">XHTML</category><category domain="http://weblogs.asp.net/rternier/archive/tags/CSS/default.aspx">CSS</category><category domain="http://weblogs.asp.net/rternier/archive/tags/HTML/default.aspx">HTML</category><category domain="http://weblogs.asp.net/rternier/archive/tags/Acid+Test/default.aspx">Acid Test</category></item><item><title>IE8 is comming out, FireFox 3 is comming out, When's my duplicate comming out?</title><link>http://weblogs.asp.net/rternier/archive/2008/03/16/ie8-is-comming-out-firefox-3-is-comming-out-when-s-my-duplicate-comming-out.aspx</link><pubDate>Mon, 17 Mar 2008 04:20:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5981158</guid><dc:creator>Ryan Ternier</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/rternier/rsscomments.aspx?PostID=5981158</wfw:commentRss><comments>http://weblogs.asp.net/rternier/archive/2008/03/16/ie8-is-comming-out-firefox-3-is-comming-out-when-s-my-duplicate-comming-out.aspx#comments</comments><description>&lt;p&gt;Holy Cow! I know this isn't new news.&amp;nbsp; IE8 and FireFox 3.. Acid 2 tests, heck &lt;a href="http://weblogs.asp.net/rternier/archive/2008/03/16/acid-3-test.aspx" mce_href="http://weblogs.asp.net/rternier/archive/2008/03/16/acid-3-test.aspx"&gt;Acid 3&lt;/a&gt; tests. When is it going to stop?!?&lt;/p&gt;&lt;p&gt;&amp;nbsp;As some know, I'm writing a very complicated vehicle tracking system that is all web based. It can track up to 200 vehicles at once (in one browser instance), draw them on the map, and give you all the nice tid-bits of information about them. This application is very heavy CSS and JavaScript. I pretty much took most of .NET out of the application except for 3 web service calls.&lt;/p&gt;&lt;p&gt;&amp;nbsp;However, To make applications like the one I'm developing work in a real world environment, they need to be efficient. That means that if I'm going to be doing collision detection on vehicle labels (so they don't overlap) I would rather use a few extra bits of memory to remember the answers from complicated math (storing the values that are returned by using COS / SIN calculations) than to have to calculate them each time. If you didn't know anything done using COS, SIN, TAN etc.&amp;nbsp; are extremely expensive. &lt;/p&gt;&lt;p&gt;&amp;nbsp;So back on topic, I have my application, It's as efficient as I can make it, and now I have to test the efficiency in not 4, but SIX browsers. And to top it off, those browsers have tweaked Javascript engines. WHY WHY WHY! I already tried my app in these 2 new browsers, and they "do" work, but not as well as I would've hoped.&amp;nbsp; Come on, when can a Guy run a simple &amp;lt;div&amp;gt; collision detection script that checks over 100 divs and repositions them in a self expanding circle every second? Why does it need to take 3.2 seconds?&lt;br&gt;&amp;nbsp;&lt;br&gt;I know... to better humanity and all other species on this earth, new web browsers are pertinent in order to form an electronic self sustaining ecosystem. Anyways, WHY! I already have 4 browsers to test (IE7, FireFox 2.0, Opera, safari... stupid Safari), and now I need to test on 2 more? You know, the day when those 2 browsers (or days) get released I'll forget to test on them and I'll get over 100 emails in my inbox stating that my website broke the internet (if that were true then I'd really have something to blog about).&lt;/p&gt;&lt;p&gt;Can we invest more money in holograms like on Star Trek so I can get a duplicate to do the testing? I know testing is the bestest most funnestest thing ever and that programmers everywhere are running at the opportunity to test... but I'll sacrifice my ego and let my hologram clone do it for me.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br&gt;Ok I'll stop whining now.&lt;br&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5981158" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/rternier/archive/tags/JavaScript/default.aspx">JavaScript</category><category domain="http://weblogs.asp.net/rternier/archive/tags/IE8/default.aspx">IE8</category><category domain="http://weblogs.asp.net/rternier/archive/tags/IE7/default.aspx">IE7</category><category domain="http://weblogs.asp.net/rternier/archive/tags/Whining/default.aspx">Whining</category><category domain="http://weblogs.asp.net/rternier/archive/tags/FIreFox+3.0/default.aspx">FIreFox 3.0</category></item><item><title>Why I love Javascript, and Ie7 hates extra ,'s in prototyping</title><link>http://weblogs.asp.net/rternier/archive/2008/01/31/why-i-love-javascript-and-ie7-hates-extra-s-in-prototyping.aspx</link><pubDate>Thu, 31 Jan 2008 18:04:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5682776</guid><dc:creator>Ryan Ternier</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/rternier/rsscomments.aspx?PostID=5682776</wfw:commentRss><comments>http://weblogs.asp.net/rternier/archive/2008/01/31/why-i-love-javascript-and-ie7-hates-extra-s-in-prototyping.aspx#comments</comments><description>&lt;p&gt;I've been working with javascript rather heavily for the past few... many months. Years ago when I started working with ASP.NET I was naive and thought everything should be done server side. I thought that the server should do all the work so the clients computers would be able to work fast.&amp;nbsp; It took only 1 year for me to turn that thinking around.&amp;nbsp; JavaScript rocks!&amp;nbsp; &lt;/p&gt;  &lt;p&gt;ASP.NET AJAX works great with JavaScript.&amp;nbsp; You can point to a web service (in your current domain), get the data you need,&amp;nbsp; and do all the XHTML/HTML Markup changes necessary without a postback to the server. (yes some postbacks are evil)&lt;/p&gt;  &lt;p&gt;So why do I love JavaScript? Aside from the Asynchronous nature of it (which can really screw with your mine sometimes), it makes the client computers do the work, and takes the load of your servers. It might be easy for your server to render a DataList of 100 rows. However, if you need that list updated every 10 seconds with the newest data, your server will start complaining when 1000-10,000 people are viewing that page.&amp;nbsp; You could cache the data, but you'll still be rendering the DataList in your presentation layer.&amp;nbsp; With JavaScript, you can create a simple object (note JavaScript is not an object based language, you use prototypes... but for the simple eye they look like objects) that can do this for you:&lt;/p&gt;  &lt;p&gt;DataItem = function(data)   &lt;br&gt;{    &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.UserID = data.UserID;    &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.UserName = data.UserName;    &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.FullName = data.FullName;    &lt;br&gt;} &lt;/p&gt;  &lt;p&gt;DataItem.prototype = {   &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; toString = function()    &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {    &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return '&amp;lt;div class="detail"&amp;gt;UserID: ' + this.UserID = ', UserName: ' + this.UserName = ', FullName: ' + this.FullName = '&amp;lt;/div&amp;gt;';    &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },    &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; test = function()    &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {    &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var d = "test";    &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return d;    &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },    &lt;br&gt;}&lt;/p&gt;  &lt;p&gt;When you get the results back from your webservice, you can loop through them, creating this object (yea yea) from the data returned, and easily output the data you need.&amp;nbsp; Very simple, and you have full control. You don't need to rebuild your application if you want to change how a simple list works. &lt;/p&gt;  &lt;p&gt;This is where I left off last night with some script I was working on. I get to the office and I began testing it again, pulling my hair out.&amp;nbsp; FireFox was working fine, however IE7 was blowing up. I kept getting "&amp;lt;custom object&amp;gt; is Undefined".&amp;nbsp; After creating a few test prototypes I found the culprit... the trailing "&lt;b&gt;,&lt;/b&gt;" in the last function of my prototype. IE is expecting there to be a new function, FireFox ignores it.&lt;/p&gt;  &lt;p&gt;JavaScript is strict, and I love it!&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5682776" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/rternier/archive/tags/JavaScript/default.aspx">JavaScript</category><category domain="http://weblogs.asp.net/rternier/archive/tags/IE7/default.aspx">IE7</category></item><item><title>CSS - Sprites?</title><link>http://weblogs.asp.net/rternier/archive/2008/01/17/css-sprites.aspx</link><pubDate>Thu, 17 Jan 2008 19:13:33 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5613675</guid><dc:creator>Ryan Ternier</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/rternier/rsscomments.aspx?PostID=5613675</wfw:commentRss><comments>http://weblogs.asp.net/rternier/archive/2008/01/17/css-sprites.aspx#comments</comments><description>&lt;p&gt;Web Designers are always trying to find new and innovative (read:easier and better) ways of creating web sites. Today I stumbled across two sites that really push this.&lt;/p&gt;  &lt;p&gt;Remember back in the VB 6 days, or even the C and C++ days where you used Sprites? If any of you ever looked at old NES, SNES emulated games, you would see the graphics were all sprites.&lt;/p&gt;  &lt;p&gt;Now you can do this with CSS... well you've always been able to do it, but now it's been shown to really work.&amp;#160; Take a roll-over button for example. Instead of creating 2-3 images for this roll-over, why not have 1 image and you just use a bit of CSS (&lt;a href="http://weblogs.asp.net/rternier/archive/2007/10/18/a-table-some-text-and-css-pseudo-classes.aspx" target="_blank"&gt;pseudo classes&lt;/a&gt;)&amp;#160; and you're done. This is &lt;a href="http://wellstyled.com/css-nopreload-rollovers.html" target="_blank"&gt;explained&lt;/a&gt; on &lt;a href="http://wellstyled.com" target="_blank"&gt;WellStyled.com&lt;/a&gt; very well.&lt;/p&gt;  &lt;p&gt;Another great &lt;a href="http://www.alistapart.com/articles/sprites/" target="_blank"&gt;example&lt;/a&gt; of this was found on &lt;a href="http://www.alilstapart.com" target="_blank"&gt;A List Apart&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Gone are the days of creating massive images for everything. Aren't the old ways always best? &lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5613675" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/rternier/archive/tags/CSS/default.aspx">CSS</category></item><item><title>VS 2008 - Crashing</title><link>http://weblogs.asp.net/rternier/archive/2007/12/27/vs-2008-crashing.aspx</link><pubDate>Thu, 27 Dec 2007 16:00:26 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5508515</guid><dc:creator>Ryan Ternier</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/rternier/rsscomments.aspx?PostID=5508515</wfw:commentRss><comments>http://weblogs.asp.net/rternier/archive/2007/12/27/vs-2008-crashing.aspx#comments</comments><description>&lt;p&gt;For the past bit now I've been getting this when starting VS 2008:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/rternier/WindowsLiveWriter/VS2008Crashing_7096/image_2.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="210" alt="image" src="http://weblogs.asp.net/blogs/rternier/WindowsLiveWriter/VS2008Crashing_7096/image_thumb.png" width="375" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;This happens whenever I start VS 2008 from a shortcut / main application.&amp;#160; Even If I quickly close the start screen and load my project this happens. The only way to actually get into a project is to open in VS 2008 is to open it from the .SLN file. This will not crash VS 2008 and it will work fine.&lt;/p&gt;  &lt;p&gt;I'm not sure why this is happening - I'll probably re-install it... when I have time...&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5508515" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/rternier/archive/tags/Visual+Studio+2008/default.aspx">Visual Studio 2008</category><category domain="http://weblogs.asp.net/rternier/archive/tags/VS+2008/default.aspx">VS 2008</category></item><item><title>IE8 Passes the Acid2 test</title><link>http://weblogs.asp.net/rternier/archive/2007/12/21/ie8-passes-the-acid2-test.aspx</link><pubDate>Fri, 21 Dec 2007 18:29:56 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5484370</guid><dc:creator>Ryan Ternier</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/rternier/rsscomments.aspx?PostID=5484370</wfw:commentRss><comments>http://weblogs.asp.net/rternier/archive/2007/12/21/ie8-passes-the-acid2-test.aspx#comments</comments><description>&lt;p&gt;As many web developers know, Internet Explorer has always been behind the times for Web Standards.&amp;#160; Just last week IE8 (Which is still in development) passed the Acid2 test. The Acid2 Test's main website is &lt;a href="http://www.webstandards.org/action/acid2/" target="_blank"&gt;here&lt;/a&gt;, and you can view the actual &lt;a href="http://www.webstandards.org/files/acid2/test.html#top" target="_blank"&gt;test here&lt;/a&gt;.&amp;#160; The Acid2 test has correct CSS and incorrect CSS. The test is to determine how a browser handles CSS(correct and incorrect). The long list of standards that web browsers has to support (W3C is only one body of standards), you can imagine how great the IE team must feel.&lt;/p&gt;  &lt;p&gt;The ironic thing was as I was reading about this, I was told my new application needs to be supported by IE6 now... 10,000 lines of JS Script... 100+ images (alpha-transparent PNG...) oh the joy.&lt;/p&gt;  &lt;p&gt;Here's a &lt;a href="http://blogs.msdn.com/ie/archive/2007/12/19/internet-explorer-8-and-acid2-a-milestone.aspx" target="_blank"&gt;link&lt;/a&gt; to the IEBlog that talks more about this.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5484370" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/rternier/archive/tags/CSS/default.aspx">CSS</category><category domain="http://weblogs.asp.net/rternier/archive/tags/IE8/default.aspx">IE8</category><category domain="http://weblogs.asp.net/rternier/archive/tags/Web+Standards/default.aspx">Web Standards</category></item><item><title>First  look at VS 2008 - JavaScript intelisence.</title><link>http://weblogs.asp.net/rternier/archive/2007/12/19/first-look-at-vs-2008-javascript-intelisence.aspx</link><pubDate>Wed, 19 Dec 2007 15:33:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5473344</guid><dc:creator>Ryan Ternier</dc:creator><slash:comments>6</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/rternier/rsscomments.aspx?PostID=5473344</wfw:commentRss><comments>http://weblogs.asp.net/rternier/archive/2007/12/19/first-look-at-vs-2008-javascript-intelisence.aspx#comments</comments><description>&lt;p&gt;Yesterday I downloaded and installed VS 2008 Professional (MSDN License). The process was mild and pretty easy... uninstall all the beta software, install the new software etc. The only problem I had was when I launched a 2005 application (under TFS Source control). VS 2008 (And Team Explorer 2008 by extension) didn't really like this. I got a lot of errors, so I went back to VS 2005, manually checked out the entire solution, then loaded it up in VS 2008.&amp;nbsp; This worked like a charm.&lt;/p&gt;&lt;p&gt;Once my app was loaded in VS 2008 I was eager to try the new JavaScript Intelisence.&amp;nbsp; This is actually the main reason for me installing this new release as my application is 80% JavaScript (approx 10,000 lines).&amp;nbsp; One thing I noticed is the Intelisence only worked for the JS file I was working on. It wouldn't map to the other 30 or so JS files I have in my folder (I'm not sure If I need to do anything special for this).&amp;nbsp; This really was a bit of a disapointment, but I understand why... the compiler doesn't know I'm using the other JS files... I wonder if there's an "include" command or something that would work... &lt;br&gt;&lt;/p&gt;&lt;p&gt;If anyone knows any ways of telling the complier to link JS files (without manually copying the script) let me know.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So far I'm impressed. Good job Microsoft &amp;amp; the VS Team.&amp;nbsp;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5473344" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/rternier/archive/tags/JavaScript/default.aspx">JavaScript</category><category domain="http://weblogs.asp.net/rternier/archive/tags/VS+2008/default.aspx">VS 2008</category></item><item><title>Ryan has become a Dad!</title><link>http://weblogs.asp.net/rternier/archive/2007/11/23/ryan-has-become-a-dad.aspx</link><pubDate>Fri, 23 Nov 2007 17:29:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5319761</guid><dc:creator>Ryan Ternier</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/rternier/rsscomments.aspx?PostID=5319761</wfw:commentRss><comments>http://weblogs.asp.net/rternier/archive/2007/11/23/ryan-has-become-a-dad.aspx#comments</comments><description>&lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/rternier/WindowsLiveWriter/RyanhasbecomeaDad_8576/Baby%20Aidan%20011_2.jpg" mce_href="http://weblogs.asp.net/blogs/rternier/WindowsLiveWriter/RyanhasbecomeaDad_8576/Baby%20Aidan%20011_2.jpg"&gt;&lt;img src="http://weblogs.asp.net/blogs/rternier/WindowsLiveWriter/RyanhasbecomeaDad_8576/Baby%20Aidan%20011_thumb.jpg" style="border: 0px none ;" alt="Baby Aidan 011" mce_src="http://weblogs.asp.net/blogs/rternier/WindowsLiveWriter/RyanhasbecomeaDad_8576/Baby%20Aidan%20011_thumb.jpg" align="left" border="0" height="184" width="244"&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;nbsp;&lt;/p&gt;  &lt;p&gt;It's been a long week. But I am very proud to announce that I have become a Dad and joined the elite.&amp;nbsp; Thursday 15 November 2007 at 9:38pm PST the little ninja on the left was born.&amp;nbsp; He was born at 7lb 10 ounces, 50cm long and was the most beautiful thing in the world.&lt;/p&gt;  &lt;p&gt;My wife and I agree on this: I never believed in true love at first site until I saw Aidan. Oh, my sons name?&amp;nbsp; Aidan George Alexander Ternier.&amp;nbsp; It's been an amazing week. He's kept us up at night, he's made us laugh with all of his facial expressions, and has made me appreciate my parents way more. He's also helped all the local coffee companies out there because I'm drinking more than usual now.&amp;nbsp; &lt;/p&gt;  &lt;p&gt;My blogging will slow down a bit as I now have almost 0 time. I'm still alive... but just barely... need... coffee... green tea... pii...zza?&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5319761" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/rternier/archive/tags/Ninjas/default.aspx">Ninjas</category><category domain="http://weblogs.asp.net/rternier/archive/tags/Personal/default.aspx">Personal</category></item></channel></rss>