Backing up a computer to an HP Pocket Media Drive

  • October 4, 2009
  • James Skemp
Recently I purchased another HP Pocket Media Drive, with 500 GB of space (instead of the 160 GB drives I had purchased before). Since I'd like to plan out my backup strategy, and need to backup for my upcoming Windows 7 install (which since I have Vista Ultimate, will require a deal of work), I decided to write this post. My computer's setup Currently I have a primary 450 GB hard drive (advertised as 500 GB) and a 700 GB secondary drive that I put in (advertised as 750 GB).

Read More

Parsing Yahoo! Music's Artist Web Services with C# and LINQ to XML - Search for artists

  • September 12, 2009
  • James Skemp
Similar to my post on parsing Last.fm's artist.getSimilar, I've been working with Yahoo! Music's Web services today. Unfortunately, Yahoo!'s services aren't quite as friendly as those made available by Last.fm. So that I remember, and others don't have to tackle this as well, here's the class I've created. (Download JamesRSkemp.WebServices.YahooMusic.cs.) /* Created by James Skemp - http://jamesrskemp.com/ Version 1.0 More information at http://strivinglife.com/words/post/Parsing-Yahoo!-Musics-Artist-Web-Services-with-C-and-LINQ-to-XML-Search-for-artists.aspx Shared under a Creative Commons Attribution 3.0 United States License - http://creativecommons.

Read More

On the Saying "I can't wait"

  • September 12, 2009
  • James Skemp
I would be willing to bet that at least 90% of the time when someone uses the phrase "I can't wait" they're lying. What made me realize this is when I read a comment the other day regarding a video game's review. In this comment the individual had basically stated that they couldn't wait for the game. At the time of their comment, however, the game was already in stores and available for purchase.

Read More

Parsing Last.fm Web Services' artist.getSimilar with C# and LINQ to XML

  • September 12, 2009
  • James Skemp
The following covers how to parse the XML response of artist.getSimilar, from Last.fm's Web Services. Setup and assumptions The first step is sign up for a free API account at Last.fm. You'll also need to target .NET Framework 3.5 when you setup your project, so as to access LINQ functionality. When writing the steps listed below, I was working on a Windows Forms Application, but the steps should be the same, or very similar, for other project types.

Read More

Muenchian Method grouping in XSLT

  • July 1, 2009
  • James Skemp
I owe a deal of thanks for figuring out the Muenchian Method of grouping in XSLT (1.0) to Jeni's article Grouping Using the Muenchian Method. It took, however, a while for me to get my mind around the method completely, and some experimentation, which I'm sharing below. Specifically I was looking to get a listing of tracks, from my iTunes Playlists to Xml application's output, and group them by album.

Read More

On Self Control

  • June 29, 2009
  • James Skemp
There's a difference between self control and killing something off. Self control is when you hunger for something, but say no. Killing something off is when you no longer hunger for something. The former is a near-constant struggle, depending upon how often the hunger makes itself known, while the latter is, once the desire is killed, relatively easy, except perhaps during moments of rememberence. Trying to remember what it was like to have a hunger/desire of a particular sort, can be, at times, more painful than the desire itself.

Read More

Programmatic SQL command timeout using a SqlDataSource (C#)

  • June 24, 2009
  • James Skemp
Granted, in the case where this came up, I should have moved away from a SqlDataSource, but I wrote it using one, and a re-write isn't possible at the moment. So, I had to find a way yesterday to programmatically set the command timeout of a select, using a SqlDataSource (that was programmatically written). After much research, I found that you have to set the timeout on selecting. After opening a dummy document to see if I could determine how it was normally done, I came up with something like the following:

Read More

Programmatic MSSQL data source in ASP.NET (C#) without System.Web

  • June 6, 2009
  • James Skemp
In a similar article I detailed how I was doing programmatic access of Microsoft SQL Server. However, on another project I was creating a class in App_Code. Using my method required the use of a couple additional namespaces from System.Web. That seemed a bit excessive. So I did some digging around and came up with what I believe is a better solution, for use in classes/non-Web code. First, the following must be included in.

Read More

Programmatic MSSQL data source in ASP.NET (C#)

  • June 1, 2009
  • James Skemp
I keep having to search through code to find it, so, since writing about it makes it easier for me to find … here’s how I’ve been programmatically making calls to Microsoft SQL Server. If I’m doing something wrong, please comment below or send me an email. Some times have been changed to dummy values. SqlDataSource dataSource = new SqlDataSource(); dataSource.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; dataSource.SelectCommand = "stored_proc"; dataSource.SelectCommandType = SqlDataSourceCommandType.StoredProcedure; dataSource.SelectParameters.Add("id", value); dataSource.

Read More

On Achievements and Trophies

  • May 16, 2009
  • James Skemp
To a very large extent, I consider myself to be a gamer. Around the time the NES came out, my family picked up an Atari 2600, used. I don't know who sold it to us, but I can remember going with my dad to pick it up at my school's playground (that was the meeting place). At a later point we picked up an NES, via my dad, and then my mom bought us a SNES.

Read More