Error using SquishIt and an Ektron control together


Earlier at work I ran into a conflict between SquishIt (which is a great utility for .Net for concatenating and minifying your CSS and JavaScript files, more info) and an Ektron control (Ajax HTMLEditor) that was included on a .Net ASPX page .  SquishIt was set in the MasterPage, so just removing it for that page wasn’t really an option.

The error I was getting was:

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Read more

Leap Motion Lightning Talk


I gave a quick 5-10 minute lightning talk at the Ann Arbor .Net Group tonight about the Leap Motion.  It was a brief introduction to the device and it’s capabilities, as well as a couple of demos.

The slideshow has Leap Controls built into it, so you can perform a KeyTap gesture to go to the next slide, or a ScreenTap for the previous slide, as well as swiping in any direction there is a slide.

Google also recently announced they had integrated the Leap Motion controller into Google Earth, and so I gave a demo of Google Earth, although I had quite a bit of trouble controlling it in front of the audience.  It requires quite a bit of focus to use successfully.

Read more

Facebook Feed Dialog vs. Share Link Dialog


Facebook has 2 relatively simple ways to let you add share links to your website that you can style to match your website.  I don’t count the Like Button, which although easy to setup, doesn’t allow any customization of the button itself.

After the Like Button was introduced, the Share Link was originally deprecated by Facebook in an attempt to encourage people to use the Like Button or the Feed Dialog.  But, imagine my surprise earlier today, despite often telling people the Share Link using sharer.php was deprecated, to find a full documentation page explaining how to use it.  My best guess is that too many people continued to use it, so Facebook fixed some of the early inconsistent behavior and put up some official documentation for it.

The Feed Dialog was introduced around the same time as the Like Button, and remains a good way to control the specifics of a share post.  It is highly customizable and doesn’t rely on Open Graph tags on a page for it’s information.

Read more

Internet Explorer 9 & 10 CSS bug with overflow-y?


I ran into an interesting problem, maybe a bug, in Internet Explorer 10 (and IE9) today.  Basically, if I had the following styles applied to the HTML tag, and then collapsed sections of the page with JavaScript, the height of the page would not collapse along with the content, ending up with significant white space left at the bottom of the document after collapsing large page sections.  Removing either of the styles fixed the problem, but the combination didn’t work properly.

html { 
    height: 100%;
    overflow-y: scroll;
}

I tried various combinations of styles to fix it, but in the end I had to remove the overflow-y style with JavaScript before expanding or collapsing content, and then reapplying it after the animation is complete.   As the problem didn’t affect standard’s compliant non-IE browsers, I added a class during animation and only applied the style to remove the overflow-y property to IE9 and IE10.

Read more