Category Archives: tips&tricks

Boxee and my Harmony Remote

I was excited to see the Boxee Windows Media Center Integration, especially since there doesn’t seem to be any other way to get Pandora on a Windows Media Center.  Unfortunately, my Harmony Remote, emulating an MCE remote through streamzap, can’t navigate Boxee very well.  You need to be able to send a backspace, which doesn’t seem to be available on the remote.

Long a fan of AutoHotkey, I found that it comes with a compiler that can take any AutoHotkey script and turn it into an exe!  It was easy to create a script to send a backspace character (“Send {BS}”) and then compile that into this executable.

Then I used the streamzap application to assign one of the remote’s colored buttons to the backspace.exe program, and I can navigate Boxee!


Error hosting facebook app on 1and1

facebook error

I was creating a facebook app and trying to host the canvas URL on my 1and1 hosting account.  Even though I could browse directly to the index.html and it would render fine, I would get an error when trying to browse to it via

“Method Not Allowed.  The requested method POST is not allowed for the URL …”

Although I have not encountered this problem on other web hosts, it appears that 1and1’s web server is set up a little differently.  When you browse to the canvas page via, facebook sends some POST variables to your site.  1and1 doesn’t allow an html file to render when POST variables are sent.

A simple workaround is to rename your index.html to index.php. That makes 1and1 think that the POST variables are expected.

Media Center Ordeal (part 2)

Zap2ItOr, “When Zap2It Disappoints”.

I’ve been frustrated by Windows 7 Media Center not finding listings for the broadcast stations in my zip code.  I have an antenna and Comcast cable, and would like to be able to record from both.  When I program Media Center with my zip code, the broadcast listings show 3 channels (out of approximately 40).

A friend told me that he switched over to Indianapolis’ zip code and was able to get broadcast listings.  I tried that, but then my cable company wasn’t offered.  And it takes at least 10 minutes to switch zip codes and see what happens.

I finally realized that I could go to (the provider of TV listings to Microsoft), try different zip codes, and try to find one that has broadcast and Comcast listings.  I found the zip code map at and tried 46060 first.  It works!  I finally have listings for all of the channels that I care about.

DotNetNuke Active Directory Login Error

DotNetNukeThanks to some people on the DNN Forums, I discovered that the Windows login error “Login Failed. Please remember that passwords are case sensitive” can also mean “you typed your Windows password correctly, but it’s shorter than the DNN default minimum password length of 7”.

The situation was confusing, because some people could log in with their Windows credentials, but others couldn’t.

Either ask your user to change their password to something at least 7 characters long (which is obviously the right way to go), or change the default minimum password length in web.config.  The parameter there is “minRequiredPasswordLength”.

Awesome Drop: An Awesome Android App

Awesome DropAwesome Drop is cool.  You want to copy some files to your Android phone, but don’ t have a cable handy.  Browse for the Awesome Drop app in the Android Market.  Install it an run it.  It tells you the URL and code to enter in Chrome on your computer (it uses some HTML 5 features that are probably only in Chrome right now).  Drag your files onto the browser window, and they’re automagically transferred to your phone!

Transfer Large Files to Amazon S3

I didn’t realize until this week that you can’t use the Amazon S3 web console to transfer files larger than about 300 MB into S3.  In fact, sometimes files less than 300 MB will fail to transfer.

CloudBerry S3 Explorer is a free tool that lets you transfer files to and from S3, and it works for much larger files, too!

Customizing the DotNetNuke login page

I’ve been wanting to change some things about how our DotNetNuke Intranet site’s login page works, so here’s my record of what I did.  I’m mainly writing this so that I’ll be able to reproduce it when I need to.

The default login page is shown at left.  I don’t like how the buttons are stacked, I’d like to add some hints for users about how to use the Windows Login, and I’d ideally like people to be able to hit <enter> when they’re using Windows Login.  I doubt I’ll figure that last one out before publishing this post.  Right now, you can hit <enter> when using the Standard login, but hitting <enter> with Windows Login causes a “Login failed” message.  I’m guessing that the <enter> is triggering a hidden Standard login button instead of the visible Windows login button.

Step 1: Create a new login page so that other content can be added more easily

Following the tips at, I created a new page, added the Account Login module, and changed the Site Settings so that this page is the Login Page for the site.

Step 2: Reformat the login module

Since we’re allowing Standard and Windows logins, we need to edit two different Login.ascx files: one in DesktopModules\AuthenticationServices\DNN, and one in AuthenticationServices\ActiveDirectory.  I changed the table width to 240, aligned the Windows login parts to the left to match the Standard login, and added helptext = “” to the labels to get rid of the little help icons (I found that tip here).

I also wanted it to be more obvious when someone clicked on Windows Login, so I edited AuthenticationServices\ActiveDirectory\App_LocalResources\Login.ascx.resx to change the label on the User Name box to “Keynote User Name” and the label on the button to “Windows Login”.

Step 3: Add other content to the page

I added a text/html module to the page with some login tips.

Here’s the final result:

Media Center 7 “problem” solved

I’m still on the Windows 7 Media Center journey that I started describing earlier.  With the addition of an IR Blaster I can now get through the channel setup and record from cable.  I don’t see the listings again for my antenna, but that will have to wait.

The latest issue is that it appeared that my Recorded TV was gone.  I could see the files through Windows Explorer and even double-click on them to play them, but when I would choose “Recorded TV” in Media Center, it would look like there wasn’t anything there.  The error message said “Windows Media Center could not find any shared libraries on your network or there is no content in those libraries …”

I finally realized that the “Sort by” tool at the top had gotten moved to “Shared”.  Of course, I don’t have any recorded TV shared from other machines, so the list is blank:

MC Error

All we had to do was change that indicator at the top to any other sort method, and the programs appeared.  Duh!

MC Sorting

JW Player, Amazon Cloudfront, and playlists

[update: JW Player has some nice instructions on how to use the player with CloudFront.  But it doesn’t clarify the interaction with playlists…]

I have some flv videos that I need to make available to our staff, and I don’t want to put them on a public site like YouTube.  I’m new at hosting streaming videos, and didn’t realize that people won’t be able to skip around in the video unless the server supports RTMP streaming or you figure out “PHP fake streaming”.

Then I found that Amazon CloudFront supports RTMP.  It’s pretty easy to set it up, until I started working with playlists.  I wanted people to be able to choose between four different videos in a single player.  It took quite a bit of experimentation to get the configuration parameters correct.  Here are the steps:

  1. Sign up for Amazon Simple Storage Service (S3), create a “bucket”, and upload your flv videos.  Set the permissions on the files to allow everyone to open/download.  I also created a folder called “videos” to keep things organized.  Let’s assume that we have “video1.flv” and “video2.flv” in the folder “videos”.  These files can be accessed with links like
  2. Get the JW Player and upload the files to your S3 bucket.  I put them in a folder called “player”.
  3. Sign up for Amazon Cloudfront from the AWS console and create a Distribution, Delivery Method = Streaming, that points to your S3 bucket.  Your distribution will have a domain name like
  4. At this point you can test everything by using the JW Player Setup Wizard.  Change height and width in “Embed parameters” to match your video.  Change file in “File properties” to “videos/video1.flv”.  Change streamer in “External Communication” to “rtmp://” (note the added “cfx/st”.  Now you should be able to click the Update/Preview link and try out your settings.  The code can be copied into an html file (like “cloudtest.html”), the html uploaded into the player folder, and then you can browse to

    for the next test.

The next step is to build a playlist file that will let people choose from several videos.  The JW Player documentation here shows that you can choose from several XML feed formats.  I threw a dart at the wall and chose ATOM.  The only information that I wanted to include was the video title and the URL to the flv file.  The trick is figuring out what pieces of the RTMP path, file path, and file name go in what places.

Here’s what worked for me.  The folder and file name go into the playlist file, along with the “provider” type of rtmp:

The Amazon CloudFront RTMP path goes into the player configuration in your html file:

Note some other aspects of the html:  the height needs to be increased to make room for the playlist.  Also, the full path to the playlist needs to be specified.

Hopefully this will help you work through the process faster than I did!