Hockey Players Union

I helped Jason set up the the hockeyplayersunion.com and .ca domain name and at first a simple WordPress blog so he could get the word out about his new hockey lace bracelet product. I set him up with email addresses, a quick tutorial on how to edit the site and he was away. Jason and I have evolved the site quite a bit over the last year or so and it looks pretty different to how it began. I’m happy with it and I hope he is as well!

We also got Paypal set up on there so he can start accepting payments for his products and then ship them out as soon as he receives the email order confirmation. Check it out and hopefully you’ll find one of those bracelets to be a great stocking stuffer! Some of the proceeds go to a good causes as well.

Libya: What happens if we’re successful

I’m not claiming to be an expert and have only read my fair share of articles on what’s going down in Libya right now – but something came to mind and I needed to write it and see what other people think.

Everyone knows the situation: The US with France, Britain, Canada, and other European nations are enforcing air strikes on Libya with this action being placed more on NATO lately. All of this to stop Gaddafi and his military from performing their own air strikes on civilians. The job seems to be widely regarded as a success and I’m fairly confident that lives of protestors, civilians, and rebels were saved by our actions. The West’s language has been “Gaddafi out” but while they haven’t committed to a total overthrow of his power, it seems they are being a guiding hand in the rebellion.

Continue reading

jQuery Keycode Cheatsheet

These are just Javascript keycodes, but when I searched originally I typed in “jQuery keycodes” and didn’t get much. This should be of help to someone in any case. Cheat away!

It’s useful for when you’re using the keydown, keypress, and keyup functions in jQuery. You’d use them in a way like this:

$('#textbox').keyup(function (e) {
if (e.keyCode == 13) {
alert('Enter key pressed!');
}
});

Continue reading

Internet Explorer 9 Download Problems with Chrome

It turns out that my previous download troubles with IE9 were as a result of using the Google Chrome browser. When I view the site ie.microsoft.com/testdrive and try to download IE9 in Chrome I get an error message saying that my operating system is not supported. Viewing the site in any other browser (IE8 shown below, but Safari and Firefox work as well) then you get the proper download screen. Maybe this is an ActiveX thing that Chrome is blocking? Maybe it’s one of my Chrome extensions (I don’t use Adblock)? Anyone else have these problems?

PHP IIS7 Web Platform Installer 3.0 Unsupported OS Error!

OK, so while trying to install PHP 5.3 on IIS7.5 from this page I kept getting an error message saying that I was not using a supported operating system. The issue is that I was using Windows 7 (and later Windows Server 2008) which are both supported operating systems. I don’t have a screenshot of the error, but if you’re reading this – you probably know what I mean. This can’t be an isolated issue and maybe reveals a deeper issue with Microsoft’s bad OS detection mechanism.

How did I fix it? Pretty simple actually. It turns out that I had Web Platform Installer 2.0 installed. The PHP IIS site uses WPI 3.0, so maybe there is a version incompatibility. To get around it I went to Internet Information Services (IIS) Manager, and double clicked “Web Platform Installer” under Management. This did a quick upgrade to 3.0, and then I was able to download PHP 5.3.5 in a snap from the Window that comes up!

Basically – don’t use the website to install it.

Note: Another useful product to install with WPI is “Microsoft SQL Driver v2.0 for PHP v5.3 in IIS” found under “Products”>”Database”. This allows you to easily connect PHP to a SQL Server database using PDO.

God almighty that was a lot of acronyms. I count 6.

Chow,
-Mike

IE9 – Bad to the bone

This morning I read that IE9 is better than other browsers because they “‘dilute’ their energies on other operating systems” with a whole lot of baloney hurrah about how IE9 will work with the operating system and the GPU. It’s all garbage, because as Robert O’Clallahan at Mozilla says – IE9 does nothing differently (unless you call shameful marketing ‘something different’).

All that aside I decided to try and download a copy and see how it ran. My quest was cut short – because it turns out I can’t download IE9. Microsoft said IE9 is optimized to work with your operating system – and they’re doing a right crap job of that from the start. When I visit the download page I get this:

The problem? I am running Windows 7! I can’t even download their damn software because their operating system detection is non-functioning. Well done Microsoft, this holds great promise for your latest and greatest steaming pile of internet sh*t!

I can’t say I look forward to fiddling with CSS/markup in yet-another-version of their spiteful browser until, as Ringo* once said, ‘I’ve got BLISTERS on my fingers’.

*Edit: I should have consulted my Beatles representative before posting. It was Ringo not Paul who said this. Thanks Matt … although I’m still not sure how drummers can get finger blisters. Too much twirling.

Find sticky tags with Tortoise CVS in Windows 7 and Vista

Situation: I want to find a list of all the files in one of my CVS directories that have sticky tags. The code may have been stickied weeks ago, but is no longer receiving updates to the code due to it being fixed!

Problem: Any new (post XP) version of Windows does not allow custom columns in Windows Explorer.  Back in the Windows Server 2000, or XP days when you installed Tortoise CVS you would get a few columns (such as current revision and Sticky Revision) added to any CVS folders in Explorer.

Solution: After trying out a few different types of file managers with no success I finally found the solution inside Tortoise CVS. What you need to do is:

  1. Right-click your root CVS folder, go to the CVS menu, and click Update Special.
  2. Check the box “Get tag/branch/revision” and leave it as Head.
  3. Go to Advanced, and check Simulate update. Now don’t worry, NO FILES WILL BE UPDATED. You won’t be returning your whole application to head branch.
  4. Click OK and after CVS has run it should provide you with a list of files that will be returned to Head branch (basically the files you had stickied).

Hope this helps someone out there who had the same problem as I did.

Happy source-controlling,

Mike