Shawn's Blog

a hair-band lovin', techni-junkie's banter about… whatever.

Dynamic Facebook “Like” button in ASP

Posted on | April 22, 2010 | 4 Comments

Yesterday, Facebook rolled out an update which allows people to place “Like” buttons on their websites, which is then shown in their “Recent Activities” on Facebook. As an added bonus, if one of your friends also clicked the “Like” button on the page you are viewing, you will see their thumbnail on that page. It’s kind of a neat feature, although, you have to wonder what the consequences of the “Like” button actually are, in terms of advertising, and personal information sharing.

Facebook provides a “Like” button generator which will give you the code to add to any page you need. The downside of this is that the URL is hard coded into the link, as the facebook script does not pick up where the button is being pressed, so you would need to change that on each page you want the button on. In my scenario, this just wasn’t possible, as the information I wanted to share was called from 1 webpage, which calls information from a database.

Facebook provides the coding for an iFrame, and Facebooks XFBML, if you have the SDK installed on your server. I used the iFrame version.
Read more

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • StumbleUpon

Remove old remnants from a downgrade of Vista 64 bit to 32 Bit

Posted on | March 15, 2010 | No Comments

I’ve recently had to do a downgrade of a Vista 64 bit machine to Vista 32 bit. Because I have a copy of Windows Vista Ultimate Upgrade, I was only able to do a “Clean” install of Windows, from within Windows itself. Despite what the “Clean” install seems to indicate, the HDD is not formatted, and your old files are left on the machine. Because of this, Windows Vista left the “Program Files (x86)” folder intact, and renamed the 64 Bit Windows folder to “Windows.old”. Upon completing the installation of Windows, I wanted to remove all traces of the old installation, and proceeded to Windows Explorer to delete the old directories. “Windows.old” deleted without a hitch, however, “Program Files (x86)” requires “special permission”, and would not delete, even in Safe Mode. After some digging, here is the solution:

    1. Run the command prompt as “Administrator”
    2. Type in : takeown /f “C:\Program Files (x86)” /r /d n
    3. Type in : icacls “C:\Program Files (x86)” /grant administrators:F /t
    4. Go back into Windows Explorer and delete the folder as usual
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • StumbleUpon

Boiling an XBOX 360 Game DVD

Posted on | February 21, 2010 | No Comments

Recently, I ran into an issue where my XBOX 360 would not read a certain game disc. The disc itself looked pristine – no scratches, or smudges to be seen. All other game discs would read in the 360 with no problems at all. This particular game (LEGO Indiana Jones) had always acted up, and would normally only read after opening the DVD drive, and re-reading the disc, eventually getting to the point where it would not read at all.

Remembering back to the original XBOX days, where some of the OXM discs would not read, a method of boiling the DVD was used to remove a coating from the bottom of the disc. After doing a search online, I found this video to remind me of the procedure. Unfortunately, this did not work for me. I tried it twice.

I decided to go a little more extreme with my method. Thankfully, if I messed up, the cost to replace the game now would be $5. Here is what I did (note: you may seriously screw up your game doing this, so you may not want to try this with your brand new copy of Modern Warfare 2.)
Read more

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • StumbleUpon

Create an add to Outlook Calendar option on your website

Posted on | November 13, 2009 | 1 Comment

I was recently asked if I could create an add to Outlook option on a company website.  Searching for code on how to do this, I came up short, as many people were looking to do this, but in the end, the result was people saving the Outlook calendar event to a file, and linking to that.

Since I need to create the event dynamically, that really was not an option.  Basically, what you need to do is create an “.ics” file, which Outlook can import.  Ironically,  exporting a file from Outlook 2007 as an ICS file would not import back into Outlook without modification.  The code below will create the file that you can then link to in your own code. You will need to ensure that you have write permissions set in the folder where the file will be created.

Here is how I obtained the result I was looking for in ASP. 
Read more

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • StumbleUpon
keep looking »
  • Tools