How To: Expand a Virtual PC Disk with VhdResizer and DiskPart

05.09.09 | Permalink | 10 Comments

Question: What does “Dynamically expanding virtual hard disk” mean to you?

For some reason, while setting up a development machine in Virtual PC, I had this thought that “dynamically expanding” meant that the disk would start out at a specified size, and expand as needed. However, it’s the opposite. A “dynamically expanding” disk starts off small, and expands to the specified size. So needless to say, 10Gbs wasn’t enough to install Visual Studio 2008 (90 day trial), SQL Express 2005 and 2008, plus the service packs and Windows’ Updates.

After doing a bit of sleuthing (”Googling“), I discovered how wrong I was, but also discovered a tool called VHD Resizer.

(Continue Reading…)

kick it on DotNetKicks.com

What’s the difference between CONST and READONLY in .Net?

03.09.09 | Permalink | 9 Comments

Ever sit around talking to your co-workers about random things, when all of a sudden you ask “What’s the difference between const and readonly in .Net?“. If so, you are not alone. If not, well, you’re just weird.

A few weeks ago, I was talking to a developer that I work with, when I asked the exact same question. I remembered though, that when I was working on Poynt while at my last job, we kept getting warnings saying that we should either change our const to readonly, or vice versa. I can’t remember exactly which one, or the reason that was given. I do also vaguley remember that it had something to do with compile time.

Knowing that I wouldn’t be able to sleep without knowing the answer to this riddle, I decided to use Google to see what I could find (If you’ve never used Google, I suggest giving it a try It’s a neat little web site that gives you links to web pages, that are relevant to what you are searching for. I have a feeling that it will become big one day).

(Continue Reading…)

kick it on DotNetKicks.com

How Do You Name Your PCs?

11.29.08 | Permalink | No Comments

Last weekend I went out and picked myself up a refurbished HP DX5150 Small Form Factor PC, which I’m planning on turning into a little Media Center. The current PC that’s connected to my TV will now become a network storage server (most likely using Windows Home server). And my main computer will stay as my main computer.

At some of the places that I’ve worked, they’ve usually named their servers with letters to describe the location/city and functionality (production, development, mail, …) of the computer, as well as give it a number to give it a uniqueness. One place that I worked at, they decided to give their servers names, such as “Sunny”, “Shade”, “Dark”, “Mirage”. Another place that I worked at, they used “Dev”, “Prod”, and so on.

So, instead of using the default computer names that Windows likes to generate (COMP-23k4h5g221nlm34), I decided to have a little fun at my PCs’ expense, and give each computer their own name, a name that will attempt to somewhat describe each one, and a name that isn’t so blah.

Here is what I’ve came up with so far:

Maggie: This is my laptop, the smallest of the computers, but not the dumbest (Intel Core2 Duo @ 2.2Ghz with 2GB of PC2 5300 RAM).

Homer: This is by far the biggest (2TB of storage) of all the computers, but is also the dumest (AMD 2400+, 1GB PC3200 RAM).

Krusty: This is an “entertaining” PC, and is my Media PC which is connected to the TV. It’s big. but not the biggest (1TB of storage), and isn’t quite the dumbest either (AMD 3200+, 1.5GB of PC3200 RAM).

Lisa: This is by far the smartest of computers (AMD 64 Dual Core 4200+, 3GB of RAM). This is also no where near being the biggest, but isn’t the smallest either (200GB of storage).

Do you like to have a little fun, and give your PCs a unique friendly name? If so, what are they?

kick it on DotNetKicks.com

Multiplied Media’s Poynt is a BlackBerry Developer Challenge Grand Prize Winner

10.30.08 | Permalink | No Comments

Multiplied Media's Poynt On October 21st, it was announced that Multiplied Media’s (TSX:MMC) local search application “Poynt” (I previously reviewed the beta release) was one of three Best in Show Grand Prize winners in the Blackberry Partners Fund’s Developer Challenge.

For being a winner, each of the three companies will receive a $150,000 investment and will be entered into the “Jump Start” program.

Along with Poynt, the other two winners are:
- Strands Social Player: A music player that lets you discover new music, connect with people, and share your tastes with friends. It automatically shows cover art, provides artist and song recommendations from over 6 million songs featuring free previews, and fully integrates with a social network of music enthusiasts.
- Nobex Radio Companion: Shows you what song is playing on any of 2700 radio stations and when you hear a song you like click “Get It!” and it will send you an email with a link to buy the song, so you can keep your music collection fresh. Over a hundred stations are now playable on your BlackBerry Smartphone.

I’m pretty sure that the guys over at MM wish that the winners were announced a few months ago, but hopefully, as the saying goes, “It’s never too late”.

(Disclosure: I’m a former employee of illumicell/Multiplied Media)

kick it on DotNetKicks.com

Microsoft is giving you a Second Shot

10.16.08 | Permalink | No Comments

A buddy of mine pointed out to me today that the good folks over at Microsoft are again offering their Second Shot for free.

If you register and take a Microsoft exam between October 15, 2008 and December 31, and fail, you can rewrite it for free anytime up until June 30, 2009. If you pass the exam on your first try, you will get a 25% discount on your next exam which has to be taken before February 28, 2009.

For more information and to register for the Second Shot, go to http://www.microsoft.com/learning/mcp/offers/2ndchance/default.mspx.

Personally, I’m hoping that I can take advantage of this offer, and write my Distributed Applications exam and then my Windows Application of Pro Web Developer exam.

kick it on DotNetKicks.com

This Day in History: September 2, 2008

09.04.08 | Permalink | No Comments

Do you know what today is? Yes, it’s the day that Google finally released there much rumoured GBrowser browser, “Chrome”. Today also marks the First Anniversary of CarlJ.ca.

It only seems like yesterday that I was sitting at the office of my former employer on a Sunday afternoon when I wrote my first post, “Linux Surpasses Windows in PC Market Share”, congradulating the whole collective of distros for finally surpassing Windows 98 in market share. Well actually, according to the stats, they were both tied at 1.34% (As of today, Windows 98 has slipped to 0.66% while Linux has a whopping 2%, and will soon overtake Windows 2000).

A few days after that post, I received my first link back, and I knew right then that I was destined to be a blogger, and managed to write and publish a staggering 31 posts, with dozens of more drafts.

All kidding aside for a minute, I’m quite shocked at the number of people, the page views and comments that the site has received since then. When I first started, I remember telling a few fellow employees that I would be happy if I could get 100 visits a month. Over the span of the year, I’m averaging 221 per day.

In case you’re curious, here’s a few more stats according to Google for the year.

(Continue Reading…)

kick it on DotNetKicks.com

Fixing Firefox’s ‘NS_ERROR_NOT_AVAILABLE’ Error When Using PageMethods.

06.18.08 | Permalink | 7 Comments

So here I am, doing some Virtual Earth stuff with PageMethods (which will be in an upcoming post), something I’ve done many times over the last year and some, and I’m running into some issues.

First off, IE7 does nothing, it just sits there. I add some break points in the static method that the PageMethod is calling, and again, nothing. So I load up Firefox, poynt to the URL of the page, and unlike IE7, Firefox does something.

However, it wasn’t something that I was expecting. In the Error Console it had the following message:

Error: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]” nsresult: “0×80040111 (NS_ERROR_NOT_AVAILABLE)” location: “JS frame :: http://localhost:50007/NS_ERROR_NOT_AVAILABLE/ScriptResource.axd?d=ZgyDU9i45kjT :: Sys$Net$XMLHttpExecutor$get_statusCode :: line 4166″ data: no]
Source File: http://localhost:50007/NS_ERROR_NOT_AVAILABLE/ScriptResource.axd?d=ZgyDU9i45kjT-145205
Line: 4166

(Continue Reading…)

kick it on DotNetKicks.com

Multiplied Media launches beta of Poynt for the BlackBerry

06.14.08 | Permalink | 2 Comments

Poynt Logo On June 11 2008, Multiplied Media (Symbol: TSX-V:MMC) announced the release of the beta version of Poynt for the Blackberry handheld devices.

For those that are unfamiliar with Poynt, it’s a local search service currently for North America (agreements have been signed with t-info of Germany and Infobel which covers over 30 European countries) and is available on MSN (poynt@live.com) and on AIM (Poynt).

(Continue Reading…)

kick it on DotNetKicks.com

Adding (or Inserting) Subheader Rows into a Gridview

04.20.08 | Permalink | 40 Comments

Ever come across a situation where you needed to manually add (or insert) rows to a Gridview, but weren’t quite sure how to do it? A few weeks ago I came across this exact problem, where I needed to create sub headers based on the category for each row. Here’s how I did it.

(Continue Reading…)

kick it on DotNetKicks.com

3 Great Fitness Sites to Help You Get Back in Shape

03.26.08 | Permalink | No Comments

One of the most popular New Year’s Eve resolutions is to lose weight, or to get in shape. Unfortunately, most people never follow through with their resolutions, and end up giving up within a few months when they see little or no results. (No, I don’t have the stats to back it up, but Gyms and Fitness Centers usually make their money by getting you to signup for a long term contract, knowing that there is a good chance that that you will rarely go, or do the opposite and give out dirt cheap memberships to get as many members as they can, knowing the same thing).

Well here are a few websites that I’ve ran across that will help you get back into shape. No, they won’t drag you out of bed at 6am every morning, and no they won’t be your spotter. Some will help motivate you by showing your progress, while others will help you plan out your routines or running/biking routes.

(Continue Reading…)

kick it on DotNetKicks.com