By now, you’ve probably read the blog post by Kevin Sites, the journalist who filmed the disturbing video of an American Marine killing a wounded Iraqi insurgent. I’m posting the link anyway, because If you haven’t, you probably should.
Working with InfoPath often requires you to unlearn some things you probably take for granted if you’ve been developing windows or web apps for a while.
On my current project, each InfoPath form has two views which show either the full data set, or a filtered view. Unfortunately, each time the user switched between the “full” view and the “filtered” view they needed to scroll back down to the repeating section that contains the data. I needed a way to automatically set focus on the repeating section after the user switched between views.
I immediately looked for a Focus method on the InfoPath control classes, but no dice. Luckily, the InfoPath Team Blog has a post about programmatic selection in InfoPath. I couldn’t get the SelectText method to work, but the SelectNodes method selected the first row in my repeating section exactly as I wanted.
One little gotcha: The InfoPath SDK documentation says that the varViewContext argument of the SelectText and SelectNodes methods is optional, but the actual interop signature doesn’t include an overload without the argument. I’m using “Type.Missing” as my argument value, and it’s working.
I’m a dedicated Amazon shopper. If I need a book or a cd I hit the lovely one click ordering button without even thinking about browsing to a different site. Bookstore? What’s a bookstore? That said, I’m never pre-ordering anything from them again.
I pre-ordered the XBOX from Amazon months before it was released. I naively assumed that it would be shipped the day it came out, and was pissed to receive it about two weeks later. Throughout that two weeks I walked past tons of stores where I could have walked out with a console in five minutes. I complained to Amazon, and after a bunch of emails back and forth received free shipping. Ugh.
Well, simple boy that I am, I somehow decided to pre-order Halo 2 Limited Edition at Amazon a few months ago. Surprise, surprise, they still haven’t shipped it. It’s listed as “shipping soon”, with an estimated delivery date of yesterday. So, instead of spending the day counting the moments until I could get home and start a’fraggin’, I got to know the amazon orders page intimately. Instead of spending the night gleefully needling my fellow xbox livers, I’m sitting here whining on my blog.
My only comfort is that I wasn’t the only one dumb enough to try pre-ordering from amazon. Here’s a sample gripe from the user reviews:
Well guys, never pre-order a video game for amazon again. When I preorder halo 2, it said it was going to be on my door on november 9th. Now it is November 9th and guess what… Im here pissed off writing a review about how amazon pissed me off. It says it hasn’t even shipped the game yet. You guys will probobly give me bad feedback or whatever about this review because it doesnt say how awsome halo 2 is but I still am going to write it to tell everyone that you just can’t trust amazon anymore.
p.s. Halo 2 is a videogame for XBOX. You may have heard of it, it’s expected to sell fairly well. If anyone geeky called in sick for work today at your job they’re probably playing it.
Yet another friend of Pickabar joins the blogosphere! Welcome Ray, I’m looking forward to lots of movie and show reviews.
I’ve uploaded a fixed version of my “Custom Search Popup Controls” to gotdotnet. The version I uploaded on 10/25 has a bug in that I try to get the value for the search term, the text control client id, and the value control client id during page load. I’ve moved the assignments into the property accessors and it works as expected.
Unfortunately, the site is having some trouble and it’s a weekend, so I’m not sure when the new version will be up.
…and Halloween Eve, I guess, since we went out both nights.
Yet another experience I never would have had without Sarah. For the first time since grade school, I dressed up for Halloween…as Slash. Sarah went as an 80′s hair metal chick, along with a homemade twisted sister shirt. The slash costume went over pretty well, people seemed to be yelling “Slash!” or “G’n'R rules!” at me every time we hit a new block. A few of my friends didn’t even recognize me when we walked into the bar where we ended the night on halloween proper.
And now, for your viewing pleasure, big fat slash…
The contest for most popular costume in downtown Manhattan ended in a three way tie between Marilyn Monroe (alll but one in the iconic white dress), slutty woman (probably the easiest costume choice if you’re a woman), and butterfly/angel/winged type thing.
The contest for best costume out of our friends who dressed up also ended up in a tie between Devo:
Now what am I going to go as next year?
For the second time in the last month I’ve bumped into a problem, googled it, clicked on a link to Addy’s blog, and found the perfect solution.
- Getting the POSITION() of the PARENT node using Xpath
- XmlDocument.CreateProcessingInstruction goes better with XmlDocument.InsertBefore
There are lots of .NET blogs that cover the esoterics of CLR internals, v-next versions of the tools, and geek chic stuff that is very interesting but not all that useful for shipping apps. Then there are the blogs that contain practical information and insights that make you more productive writing code day to day. The first category of blogs are fun, but the I’d be less able to get things done without the latter group.