June 2007 Entries

JavaScript cross browser compatiability tip #98439483

If you're dynamically resizing anything in your browser using JavaScript, and you'd like it to work in more than one browser, then you need to remember to set the unit type of your object as well as the value. The following code works in IE, but not in Firefox: myDiv.style.width = height1 + height2; This however, works in both browsers: myDiv.style.width = height1 + height2 + 'px'; As for Safari? Right now your guess is as good as mine. If I get a spare few minutes I'll throw together a...

ReSharper 3.0, Vista, or aliens?

Seeing as I mentioned the ReSharper 3.0 release, I thought I should also mention that I've reverted my main work box (which is running Vista) back to ReSharper 2.5.2. I was having some weird issues around shortcuts not quite sticking, as well as some functionality simply not working (the compilation checking seemed either disabled or incredibly lagged, ctrl-p for parameter info was only working intermittently, and the automatic insertion of using statements wasn't firing either). It was a weird few hours working without full ReSharper functionality - it scared me thinking about how much I missed it. Unfortunately I...

Morning Frost

Frost by itself isn't anything too amazing or interesting. However, when it's in Auckland, and when you can scoop it into a pile and almost make a snowball out of it, then you can say "It's cold today" and feel somewhat justified. Tags: NZ, NZ Trains

The Most Useful .NET Utility Classes Developers Tend To Reinvent Rather Than Reuse

Wow, what a post title. It's a couple of weeks old, but this list over at haacked.com is a quick list of classes that developers tend to code themselves rather than use what's provided in the framework. The constant reinvention is symptomatic of a large and comprehensive framework - there's so much in there, it's sometimes hard to know where to look for something that does what you're trying to do. Looking through the list was quite refreshing. There were a few obvious ones such as System.IO.Path.Combine, however I'd never thought that a framework which is destined to...

JavaScript intellisense in Visual Studio 2008

Scott Guthrie talks about Visual Studio 2008 and it's support for JavaScript intellisense. It looks pretty slick, however I'm guessing that the computation and evaluation required to provide type inference is going to be pretty CPU intensive. Ah well - Moore's law states that we'll all have had a few computer upgrades well before 2008 right? I'm hoping that the support for intellisense within external JavaScript files means that 2008 will offer additional navigational tools - 'go to declaration' being quite a welcome addition. Navigating through large chunks of JavaScript split across multiple files can be a bit...

Domino Web Access does not work in Safari

For those who are interested (both of you!), Domino Web Access does not work with Safari for Windows. Why is that interesting? Well, it's not really, however there was some speculation that it *might* work if you could get past IBM's horrible obfuscated browser detection JavaScript contained in /inotes/forms7.nsf. Speculate no more in the knowledge that it simply doesn't work! Tags: Notes/Domino, Safari,

ReSharper 3.0 released

ReSharper 3.0 is now out of beta and available for download. So far I've installed it on both b0xes I develop on, but haven't really used it as yet. I have to confess, there's not a lot in the new release which has wowed me so far - although I'm hoping the XAML support might be useful in the near future. The addition of 'code suggestions' also sounds like something that will be quite welcomed - there were a few situations before where ReSharper would 'warn' you about things which were fairly legitimate. It'll be nice now to receive...

Analyzing the favorable winds

I threw the leg times for an end to end trip (specifically, the first train of the morning) on the Western line in both directions into a quick Excel spreadsheet, and can now reveal the following useless statistics: There are 18 stations and therefore 17 legs along the western line. The most common leg time is 3 minutes. There are 9 eastbound legs which take 3 minutes, and 12 westbound. There are 7 legs in which the durations for the eastbound and westbound legs differ. Of the 7...

Follow the favorable winds

I was looking through the new timetable for the Western line and thought I'd noticed a screw up in the train times. The trip duration eastbound looked like it took longer than it used to. That was until I checked the old timetable, and realised that apparently it takes less time to travel from Britomart to Waitakere as it does to travel from Waitakere to Britomart. I'd never noticed this before! The eastbound trip end to end (non express) is listed at taking exactly an hour, whereas the return trip is listed as taking 57 minutes...

Apple enters the Windows Browser Wars

As the browser wars heat up signs throughout the web show that the pro Firefox crew are becoming less subtle with each passing day. As far as Apple are concerned it's a pretty good time to get their latest offering out into the Windows world. The somewhat evangelical momentum behind Firefox has definately helped to educate people into realising that there are plenty of Windows based browser alternatives. I spent a bit of time playing with Safari on Windows Vista today. Visually it's very Mac like - thats to be expected. Ive never been an iTunes user, but...

New AJAX Control Toolkit release

The latest release of the AJAX Control Toolkit is now available. On top of over 125 bug fixes and enhancments the new Toolkit includes something called the "ToolkitScriptCombiner" - a control designed to dynamically merge multiple client-side Javascript scripts into a single file that is downloaded to the client at runtime. 2007-06-06 release of the AJAX Control Toolkit has a number of fixes identified as important by the community including designer support for Tabs and Web Services. It also has Animation support for some extenders, event support across the Toolkit, a Script combiner for reducing...

Western line tracking progress

Today was a fairly significant milestone in the double tracking of the Western Line, with the new track opened up all the way through to Henderson. In this article, Newstalk ZB decreed that the entire line has been double tracked. I'm not sure if their definition of entire means 'the entire line (apart from 4 stations)' or whether they consider that finished means 'no tracks, no second platforms, but some digging has been done', or whether they just screwed up. (Note that the entry could have been fixed by the time you read it, if you do, because...

Styling the Atlas UpdatePanel and UpdateProgress controls

Out of the box, the ASP.NET Ajax UpdatePanel and UpdateProgress controls do a pretty good job of removing postbacks from your applications, but they need a little bit of styling to get them looking their best. Here's a couple of links to get you started on the right track: Link: Using the UpdateProgress as a modal overlay Link: Gmail style 'loading' indicator using UpdateProgress Link: UpdateControls: UpdateHistory and AnimatedUpdatePanel Raj's modal overlay (the first link above) allows you to target either an individual control (such as a panel or a GridView), or the entire page. It's very slick looking, but...

SQL Server Web Report Viewer Issues on Longhorn/IIS7

It seems I've come across yet another AXD related issue. This time with the SQL Server Web Report Viewer Control which was being served up via IIS7 on a Longhorn server. As soon as the page loaded I was getting JavaScript errors of 'RSClientController is undefined'. The report had been working fine on development boxes, so I was pretty sure it was either related to the deployment or IIS. In checking the source of the page I found the following entry: <script src="/Reserved.ReportViewerWebControl.axd? OpType=Resource&amp;Version=8.0.50727.817&amp;Name=Scripts.ReportViewer.js" type="text/javascript"></script> Which of course didn't exist when I pasted the URL into...

ReSharper 3.0 Beta now available

The beta release of ReSharper 3.0 is now available for downloaded. The product now features support for VB.NET (Revisualbasicer?), XAML, as well as additional productivity enhancements. ReSharper 3.0 Beta expands its versatile support of languages and technologies, providing improved functionality for C#, VB.NET, ASP.NET, XML, XAML, build script editing and integrated unit testing. In other improvements, ReSharper 3.0 brings much-awaited XML and XAML support. XML features include type completion, various navigation between tags, navigation to referenced types, basic code assistance, and live templates support. XAML features include XML editing in XAML code, all three types of ReSharper's...