Archive for December 2004

Enabling JavaScript Debugging With Visual Studio

Ah. Within Internet Explorer, you go to “Tools | Internet Options | Advanced” and clear the checkbox for “Disable script debugging.” Then, within your JavaScript, you add the statement “debugging;” to activate a breakpoint. This should help things considerably…

ASP.Net, <object> tag, and Viewstate

I’m stumped. If anyone can help me, I’d appreciate a pointer.

In an ASP.NET page, I’m embedding a Windows Forms control by use of an <object> tag. My challenge is getting the state of the embedded object during postback, and maintaining / restoring the object after postback. Since the object tag is not server-side, I can’t figure out how to retrieve its state in my Page_Load() event.

The tactic that I was (mostly) pursuing was a client-side event-handler for the onblur() event of the <object> tag, which would grab the state of the object (by way of reading a property, i.e., document.forms[0].myObject.MyProperty) and write it to a hidden <INPUT> tag, which I figured I could retrieve on the server-side by looking at the Request object. So, basically, very non-ASP.NET-y in approach.

I don’t know if this is the right approach and it certainly seems error-prone (at least, I spent the whole day today trying to watch the process by writing Javascript alert() functions — a side question is ‘how the heck do ASP.NET programmers debug Javascript?’ ). Any feedback appreciated.

Am I doomed to handle the state / postback issue by writing separate HTTP POST/GETs within the embedded Windows Forms object?

Unleash the mimes!

Forget the death penalty – if you want to alter people’s behavior, sic a mime on them:

Another innovative idea was to use mimes to improve both traffic and citizens’ behavior. Initially 20 professional mimes shadowed pedestrians who didn’t follow crossing rules: A pedestrian running across the road would be tracked by a mime who mocked his every move. Mimes also poked fun at reckless drivers. The program was so popular that another 400 people were trained as mimes. Link via [Boing Boing]

When Self-Selecting Polls Attack

Sys-Con is running  a poll on “The Top 20 Software People In The World” which is silly but harmless. The funny thing though is that Don Ferguson, head of IBM’s Software Group Architecture Board, has garnered more than 3300 votes so far. Oh, okay, so how many does, say, Alan Turing get? 538. Well, he is dead, so let’s say… Tim Berners-Lee? 266. Roy Fielding: 80. Danny Hillis: 30. Nathan Myrrhvold: 13. (Now that’s just mean). What do you think — memo going around IBM, an intern at their PR firm, or an ill-considered afternoon from a advertising sales rep?

Happy Solstice!

I’m so happy to have moved somewhere where I don’t get winter blues…

 

MS’ Domain Specific Languages Toolkit Updated

Via [DevHawk], news that Microsoft has shipped a new release of the DSL toolkit. That’s good news, as the previous version was really just a visual shell. The new version includes the tools for code generation, which is a crucial function.

jkontherun suddenly invisible?

I’m still getting jkontherun in my aggregator, but his page’s are showing up without content when I click through (doubly troubling since he only aggregates summaries). I can’t find a contact link on his site (maybe it’s in the missing content). Anyone else having trouble with him? If anyone knows him, shoot him this post. (I’m using IE 6 on a Tablet, but can’t think of any new blocking software or anything like that that I’ve added recently…)

Tablets and kids

Mike Torres discovers how quickly kids catch on to Tablets. Agreed. via
[Incremental Blogger]

+1. My nieces and nephews love my Tablet. I’ve seen a concept drawing from Microsoft on a Tablet ruggedized for child use (tethered pen, ability to survive a drop, etc.). Probably hard to make profitable, but kids really do “get it.”

Best of the Blogs: VS Tools for Office 2003

Kevin Schuler and Drew Robbins have compiled a list of dozens of the best VSTO blog entries in 2003 across seven categories ranging from architecture to troubleshooting. Via [Marquee de Sells: Chris's insight outlet]

Every year for the past several, I’ve thought that Office programming was about to flourish. It still hasn’t happened (I mean, there are people who program Office, but there’s not nearly the industry you’d expect for The Most Used Software That Isn’t An OS).

Microsoft is building a managed-code OS

Singularity is a cross-discipline research project in Microsoft Research building a managed code operating system. This technical report describes the motivation and priorities for Singularity. Other technical reports describe the abstractions and implementations of Singularity features.  Via [Microsoft Research Publications]