You Are Viewing Uncategorized

How to use IIS7 to rewrite URL’s and remove the www.

Posted By Corey on April 29th, 2009

I’m not sure why, but I’ve grown to dislike the www. in front of websites. I think it’s because it’s pretty superfluous now. Sure one could just type coreygo and press CTRL+Enter and FF or IE adds everything in. But it’s nice to have a bit more control server side and ensure that everyone goes to the same URL. It’s also nice to prevent double entries in search engines and all that that entails.

If you’re using some LAMP type set up you could always just use mod_rewrite with .htaccess  and just do:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]

IIS7 can actually import a .htaccess file and does a good job of converting them over. However if you just want to do the same thing from scratch the quickest way is to pop open the web.config for the website (you can create one if it doesn’t exist) and add the rewrite rules. Here’s my complete web.config as an example:

< ?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system .webServer>
        <rewrite>
            <rules>
                <rule name="Redirect www." stopProcessing="true">
                    <match url="^(.*)" ignoreCase="false" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{HTTP_HOST}" negate="true" pattern="^$" ignoreCase="false" />
                        <add input="{HTTP_HOST}" negate="true" pattern="^coreygo.com" />
                    </conditions>
                    <action type="Redirect" url="http://coreygo.com/{R:1}" redirectType="Permanent" />
                </rule>
            </rules>
        </rewrite>
    </system>
</configuration>

Just replace coreygo.com with your own domain and that’s it. I’ve got the bindings set up for this site so there’s just www. but this would also redirect blogs. if that was included as a binding. There’s a way to make exceptions and such but for that head over to IIS.net :) .

Am I missing something? Adamo v. MacBook…

Posted By Corey on April 16th, 2009

Decided to sell my D430 with docking station today. I don’t have a clue how much it even cost me 3 years ago. It’s still a good laptop, I guess… I’m just tired of its plastic case and the general crud feel of it. I’ve punched the screen a few times out of frustration.

I was browsing through my RSS feeds and noticed an Adamo video which was just horribly uncomfortably bad. I won’t even link to it. To see if it was just a fluke I went to the Adamo website. Unfortunately the same VP of design was in the video. To view it go to the Encounter bit then see how the story of lameness begins.

The odd thing was that while watching this video it totally reminded me of Apple’s MacBook design video. What really let me down about the Dell video was the tackiness. When you need lame models and stupid sets and crap to sell your laptop design, you’re on the path to failure. Apple’s video highlights the machine, the design, the engineering, pure and simple. The way Apple has done for ages.

As I watch the Apple video right now, I think it’s just dawned on me why Apple systems rock. This argument for me has nothing to do with Windows v. OSX, that’s irrelevant to me. Why my next system will be a Mac is because I get the feeling that their hardware has a tyrannical asshole genius dictating every minute detail.

When I watch the Dell video I get the feeling that attention to details wasn’t done because they’re insane about these things. It was done to play catch up to Apple, to say, see we can be cool and come out with good design if we want to.  That’s no way to convince me. Sure it’s Dell’s hottest machine ever, but the rest of it failed to deliver. Amusing to me as well is how the second best laptop Dell ever made, the X1, was actually a Samsung laptop rebranded but I digress.

Like the title suggests, I personally compared the Adamo to the 13″ MacBook. I’d get the MacBook. Now I know it’s actually being compared to the MacBook Air. This is definitely a good compare, while neither system have me wanting… if I were forced to pick one I almost think I’d still go with the Air. The Adamo’s only saving graces are the additional built in ports at the back (where ports should be imho). Otherwise the Air is cheaper, lighter, and faster. Whoa, *not* cheaper than a Mac?! WTF, ah, SSD, at this point in time – meh.

So with that, I guess I’m going to put my laptop up on Craigslist and hope I get somewhere. I think I’ll probably end up actually getting the 15″ MacBook Pro if only because I can’t be arsed to install my own 7200RPM drive into the MacBook. Plus the 15″ has a discrete nVidia GPU too. I just wish the display was 1920×1200.

I wish I were an asshole genius. Then I really would dictate the perfect system.

Grr. Comcast techs need some serious training.

Posted By Corey on March 6th, 2009

I’m not sure where I should begin. I recently upgraded from my 6/1Mbps Comcast service to a DOCSIS 3.0 enabled 22/5Mbps service. Ever since then it’s been a nightmare of visit after visit, I’m now on the 5th. In total I’ve probably had to take at least 20 hours off work just to be here to witness the technician incopetence first hand.

The first visit was the install, he didn’t even run a speed test to confirm everything. The second visit they tried swapping the modem but apparently that replacement was bad. The third visit they sent a home service guy who didn’t even know the login for the modem. The fourth visit was the only good visit but that was because he was an office technician, not some field dude. This guy clearly knew what he was talking about and we got to the bottom of the problem quickly. It was the modem. What’s sad though is this guy had the best customer interaction of any of them yet he’s the one that the customers never get to talk to or see.

Now I’m writing this during my 5th visit. This guy has been up since 3AM. But it’s hardly an excuse. What should’ve been a very simple modem replacement has turned into a 3 hour wait. He didn’t even bring the replacement modem that was noted in the service request. Instead he’s made about a dozen calls and we’ve been waiting for some other tech to actually bring the modem. I’m pretty sure the guy that just showed up isn’t him, I think it’s his manager. But they’re still trying to figure out how to get into this modem despite it working fine through my router. Why they can’t just replace my modem and leave I don’t know. Sigh…

10 minutes later… Yep I was right “three’s a party we’ve got another guy coming”. Great… Do they have no concept that customer’s time, especially business customer’s time is valuable!?

The main problem I have with this guy is that he keeps getting things wrong. Example, first thing he did was pull up the info to look at the down and upstream channel. Everything was fine, it was locked at 64QAM like it should be. He reset some stuff, then made a few calls after he couldn’t get in, then that person said it was locked to 16QAM. They do more crap and 64QAM again like it was before, retest directly through the modem and now it’s getting 30/8, great… 5 minutes later it’s 30/1. Bad…

I’m already upstairs now just leaving them to do their thing since it’s actually rather annoying not being at work waiting for them to really just sit there. On the possitive side I think I just figured out the buzz from my receiver was being caused by interference from the power cord on the TV. Go figure…

3rd guy has arrived right now. He apparently knows what he’s doing, somewhat… Now they’re saying they need my laptop because they can only seem to get to the modem through my router… Ruh roh.

Okay so they’ve factory reset the modem and can now get into it finally. Getting the right speeds via dynamic IP so that’s good. He’s on the phone with a guy to push down a brand new created from scratch config file. Fingers crossed as it flashes and reboots. I really just want to go to work (surprising since it’s Friday and I should just say WFH at this point since it’s now 2:15).

Downstream Channel
Downstream Frequency 603.001465 MHz  597.000122 MHz
Lock Status    Locked    Locked
Modulation     256 QAM    256 QAM
Symbol Rate    5.360537Msym/sec  5.360537Msym/sec
Downstream Power   5.066157 dBmV   4.432274 dBmV
SNR      36.844 dB    37.093 dB   
Upstream Channel
Upstream Frequency   37000000 Hz
Lock Status    Locked
Modulation     64QAM
Symbol Rate    5120 KSym/sec
Upstream Power    41.1800 dBmV
Channel ID     3

SpeedTest.netYay, good speeds with a static IP!!!

Why on Earth did this take 5 visits!? Why on Earth did I have to miss 20 hours of work? And why couldn’t they have just solved this directly from their office?

The signals all looked good from the start, they could’ve tested from my box with a test modem to confirm everything. And most importantly they could’ve just created a brand new config file from the office!

How totally lame :(

Another Roku SoundBridge Radio Dead

Posted By Corey on March 6th, 2009

I bought my Roku SoundBridge Radio on 5/14/2007 for $300. About a month ago now in the middle of the night it just kept rebooting. It woke me up so I just unplugged it. The next day I go to plug it in again and it refuses to turn on. First thing I did was check the warranty, sadly it was only 1 year long. Next thing I did was check the Roku Forums

Within 10 seconds it became apparent why the warranty was only 1 year and not 3 or 5. The first 5 threads on the forum were all for dead SoundBridge Radio’s, total view count on these threads is about 50K. The root cause of the problem? Faulty PSU’s which were inadequately designed. What’s amazing is just how many people really truly loved this product, including me. So much so that when they all started failing people tried fixing the units themselves and tried helping others figure out the problems. Some hardcore electrical engineering geekiness too. Hell, one guy even provided a Flickr page showing the fault capacitor. What’s depressing is that this WiFi network audio alarm radio costs a full $300, and yet they couldn’t even spare an extra 20 cents of profit per unit to use higher quality components to ensure customer satisfaction and product longevity. WTF!?

As a professional engineer with many years experience I consider that the Soundbridge radio is a unit where the power supply is bound to fail on a regular basis. Because of the total lack of thermal management which is mainly due to the plastic box and tape around the box the components on the PSU, which is always on, run at an excessive temperature. Back of the envelope calculations suggest the mean time to failure will be in the order of 7 months! Even with the higher rated replacements I have only improved this figure by about a factor of three.

I really loved my Roku, in fact I used to say how it was the one piece of technology in my life that “just worked”. It did exactly what I wanted and worked perfectly, sounded great too. Then this… What a shame. I’m guessing the little Roku’s aren’t as susceptible to this kind of failure, mainly because they’re much simpler in design and don’t require the same power. But I’m sure they’re just as poorly engineered none the less.

With that, let me say, I will never recommend or buy a Roku product again. I highly suggest you don’t either. Even if that $100 Roku Player looks tempting.

Being ahead of the curve with Media Center

Posted By Corey on March 4th, 2009

Below is an email I sent that I’ve modified just a bit to fit a discussion that’s been coming up pretty regularly. This email was in response to a thread that was started about how the Apple TV is doing, it was sent before the Boxee / Hulu removal announcement though that news doesn’t really change any of this post for me.

FWIW, I honestly think a lot of the sales this quarter were thanks to Boxee Alpha/Beta which quite frankly rocks on the Apple TV. I wouldn’t buy an Apple TV, but would now thanks to Boxee even in its early stages.

While Apple TV may only have ~400-500K units, I’m pretty sure every one of those users is using it as intended with a TV. On the other hand, Media Center has shipped what? 20M+ units last I remember seeing from the banners… But that’s just counting SKU’s that contained Media Center correct? Microsoft shouldn’t be concerned with that number when comparing, Microsoft should be looking at the number of users actually using the app and using TV. Usage data for the number of WMC PC’s connected to TV’s? Data for the number of unique guide downloads… IIRC it’s a heck of a lot closer to 500K than 20M :) .

Personally, when I moved to West Seattle I completely dropped all cable services and vowed not to pay Comcast again [except for my business Internet]. OCUR was great, it really was. Despite the royal pain the setup process was, thanks to Comcast’s inexperience with the technology, afterwards it was great and ran smoothly for me. At the end of the day though it just wasn’t worth the monthly service fees. And heck, I could only do OCUR because I was internal, not because I spent another $1K+ on a brand new PC. So the fallback would then become a tuner with NTSC/ATSC/QAM… Like many OEM’s are doing, I personally skipped over the TV Pack and went right to 7 so it’s only now that I could get digital content easily. Up until now though if I wanted to use Media Center as my TV source, as a normal consumer, I’d have to be using two clunky STB’s in combo with a dual tuner and the IR blasters and all that other junk. Not very elegant…

So like the growing few, I dumped the cable and bumped up my business Internet service speeds. $65/mo for 12/2Mbps… I use Hulu, Netflix, Joost, network sites, MTV, you name it. Combine that with P2P and there’s really no need to ever go back to cable. The one thing that makes me sad, really sad, is that Media Center doesn’t fit into this new TV ecosystem. It’s only now with 7 that it’s becoming a bit more compelling for users who don’t use tuners. Internet content through MSN and such is great but where’s the MCML from Hulu, Netflix, and all those? Where’s the rich metadata for my downloaded content? Where’s the social aspects as well?

Boxee Episode ListOne thing Boxee has done and done really well is create an experience around the way people use downloaded and online media making it incredibly easy to dump the wire. What really got me was when I loaded up Boxee the second day. I went in to watch some of the Arrested Development that auto downloaded via RSS. It parsed the share and sorted each show, then under that each season, then under that each episode. What’s more the thumb for every episode is perfect (see screenshot). Going to more for the episode pulls up complete metadata. All it had to go on was TVArrested Development310 – Fakin’ It.avi there’s no other metadata, no XML files, no album art in the folder. It does this for my MKV movies too, MoviesWALL-EWALL-E.mkv and sure enough it has the art and metadata, no DVDID.xml, no pain.

Boxee Details for EpisodeYes Boxee is Alpha, no, it doesn’t have any of the amazingly hard work that went into making it compatible with the multitude of tuners. It has a lot of usability and stability issues, it’s not gone through as many iterations as Media Center so it’s not as refined. But man, for an Alpha it’s bloody awesome, I highly suggest getting the Windows Alpha asap and give it a honest go, set up uTorrent with RSS, see if you could make the switch to a cableless life and live on the bleeding edge.

Honestly, I’ve loved Media Center since the days when it was only Freestyle. I supported it as a MVP for 6 years, 3 years on the eHome beta team, and will continue to support it. I’m just a bit bummed out by the fact that Media Center has failed to deliver on features that have been asked for since 2002. What is Microsoft going to do to remain competitive when Boxee goes mainstream and releases STB devices like the Apple TV? I’m happy to see the start of Internet content via MSN but where are the third party deals with the providers that people use now?

When I was sitting for 4 hours in Las Vegas International for Snowpocalypse 2008 to allow my plane to arrive; I busted out the iPhone, connected to the free WiFi, downloaded Joost and started watching The Fifth Element for free. It wasn’t a big TV and it wasn’t HD, but honestly it didn’t matter. I had the content and the experience was awesome and easy. How is Media Center going to deliver that same grin on people’s faces when the predominant source of content is the Internet and third party services?

So there you have it… My little rant about why Media Center doesn’t fit me anymore. Writing this and discussing it further later made me realize that there’s actually nothing really wrong with Media Center at all, for your every day average person it’s great. Sure it could be a little simpler to get going like TiVo but as far as the ultimate experience, Media Center is definitely it. This will continue to be true so long as TV and movies continue to be delivered the way everyone has received this content for years. However I personally believe that as more people realize that dumping the wire is easy the trend to only use the Internet will continue. Plus to make things more interesting, analog broadcasts won’t necessarily continue from all the cable providers. They could very well move them over to encrypted QAM as far as I know. If this were to happen you’d need to rent a fugly STB for each tuner you planned on using. Even less elegant.

I realized that I’m just way ahead of the curve. I was watching TV on my PC with an old BT848 Hauppauge tuner back in 1997 then tried but failed to use WinTV. Then I used Media Center before it was Media Center, then OCUR came and went. Now I’ve completely ditched TV altogether and only stream with the Internet. If the past is any indication the wave should finally catch up with me in another 3 to 5 years, what I’ll be doing at that point is anybody’s guess.