Tuesday, November 20, 2007

You need to get out waaaaayy more if I'm the one telling you Visual Studio 2008 has shipped for MSDN subscribers.  It's available for download as of yesterday from the MSDN Subscribers Download.

Kudos to the Visual Studio team this time--uninstillation of beta 2 and installation of the RTM bits is so much smoother this time.  Not everything you need to uninstall is removed when you remove beta 2, so you have to go through the add/remove programs and get the stragglers.  Use the list at http://www.microsoft.com/express/support/uninstall/ for guidance.  But, some of the names on the list vary slightly (Crystal Reports 2007 was listed in my Add/Remove as Crystal Reports for Visual Studio 2008), but they're easy to match up.  Also, some of the items on the list (e.g., Microsoft .NET Framework 3.5) are removed by the beta 2 uninstaller, so you may see them in Add/Remove, and get an error when you try to uninstall them.  They clean up with the next reboot.  Expect 2-3 hours of uninstallation, manual clean up and reinstallation.

All in all, though, so much better than with VS 2005.

Tuesday, November 20, 2007 5:26:00 PM (Eastern Standard Time, UTC-05:00)

The ACE Team (Application Consulting and Engineering) has released a beta version of their tool to scan managed code and detect potential vulnerabilities to cross-site scripting.  XSSDetect runs as a visual studio plug-in.

From their blog:

One of the biggest, constant problems we've seen our enterprise customers deal with and we here at Microsoft have to also contend with is that of the XSS (Cross Site Scripting) bug.  It's very common and unfortunately, still an issue we have to deal with in many web applications.  Internally, the ACE Team has been working on several projects to help mitigate and fix these issues, as well as detect them in the code bases that we review so that they can be fixed before going live.

They also have a follow-up post which discusses using XSSDetect to scan large applications.  For very large applications, you may run into an "out of memory" error.  Besides bigger and badder hardware, the suggestion is to analyze binaries in smaller chunks.

Tuesday, November 20, 2007 12:37:16 PM (Eastern Standard Time, UTC-05:00)
 Monday, October 29, 2007

When working with some Linq today, I kept getting the following error:

String must be exactly one character long.

This one had me scratching my head for a while.  Turns out the problem was in the Linq to SQL designer, and the way the code generator interpreted results from the view I was using.

The problem stems from the designer translating a varchar(1) to a system.char(1), a fixed length variable, instead of a system.string, which can have a variable length.  If the value is blank or NULL (allowable in the database), the fixed length condition isn't met and an error is thrown.

To remedy this, go back to the designer, pin the Properties sidebar open, and look at the elements which have been mapped.  Any one which is mapped to Char(1) should be changed to a String.  This should fix your problem.

Below, the image on the left shows the improper mapping, and the image on the right shows the fixed mapping.

Monday, October 29, 2007 5:34:47 PM (Eastern Standard Time, UTC-05:00)
 Friday, October 19, 2007

Anytime something doesn't work quite right, there's always the question of which version and service pack level of SQL Server you're running.

For SQL Server 2005, there's a simple query you can run which will tell you the version, service pack and edition (standard, enterprise, etc):

SELECT  SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')

The full article, with queries for SQL Server 6.5 to 2005, is at http://support.microsoft.com/kb/321185.

Friday, October 19, 2007 11:25:23 AM (Eastern Standard Time, UTC-05:00)
 Sunday, September 16, 2007

Flip Video Ultra Series

Summary: Totally unsuitable for a wedding videographer, but a total blast for a wedding guest.

I'm on my way to a conference next week, and I want to take a small video camera with me.  After reading the Wall Street Journal's review, I picked up the Flip Video Ultra Series today.  w00t!

Unboxing the Flip was pleasant--their packaging engineers obviously took notes from Apple's group, since the experience was evocative of unboxing an iPod.  When you remove the inner packaging, you're greeted with the question "What will you see today?", which makes you feel creative, or at least feel like trying to be creative.

Immediate gratification nuts will be pleased that the Flip video is powered by two AA batteries, which are included in the box.  Not only can you start playing with the camera immediately, if you find yourself short of power, but far from a plug, you can usually find AAs nearby.

Recording your first video is almost too easy.  Find the dog or the baby, turn on the device, aim it, and press the red button to start.  You're recording!  Press the same red button to stop.  When you have a video or two, you can play it back on the small screen on the back of the camera.  Or, it's time to connect the Flip to your computer.  Simply turn it off, pop out the USB connector (it opens with a sexy switchblade type of action), and plug it in to the USB port on your computer.  You might want to think about a USB extension cable here, if your USB ports are in an awkward location or closely packed (honestly, nearly all of them are).

I plugged the Flip in to my laptop's USB port, and it was recognized instantly, even on a very old laptop running Windowx XP SP2.  It showed up as an extrernal drive, so I could copy the AVI file from the Flip to my laptop.  However, when I tried to play the video, Windows Media Player needed to downlad a codec, which failed.  I was prompted to download an update to WiMP, which started the lengthy process of downloading and installing WiMP 11.  Even on cable internet, this takes a while, and requires a reboot to finish.  If Windows Media Player gives you problems, just avoid it.  The good news is, the wonderful Gomplayer worked like a charm.  And, being free, I'd recommend checking this out, rather than diddling around with Windows Media Player.

The Flip Video also includes its own software, which I tried after my experiment with Gomplayer.  The software lives and runs on the camera, so there’s no installation.  On PCs with the autorun feature turned on, the software should automatically start when you connect the camera.  The camera’s software allows you to play videos directly on the device, copy them to your computer, share them with  others via e-mail, YouTube, AOL Video or shrink the viideos for uploading to other sites yourself.  Also included is Muvee, which you can use to make video mashups with what you record.  There is software for both Mac and Windows.  For uploading, videos are converted to WMV from AVI, and shrunk to a smaller screen size.  Even still, on a computer monitor, the compressed videos had enough detail so you really knew what was going on.

This is a device meant for small-screen recording, and fairly close to the subjects.  The zoom is only 2x, so this isn't a device you'd want to use to record a seminar from the back of the room.  It might work in a classroom to record lectures, but it's really better designed for carrying around and shooting in close social environments.  The condensor mike is internal and on the front of the camera, and doesn't pick up sounds too far away, which can also be a good thing since there isn't a lot of background noise.  What's really impressive is the way the camera automatically and quickly adjusts to light conditions.  You can point the camera at a TV or window, and in around a second, the camera has adjusted itself so you have a clear image of what's on TV or going on outside.  Pan back to a darker area, and again in about a second the camera has readjusted itself so you have a fairly clear view of what you’re aiming at.

Included in the package is a cable you can use to connect the Flip Video directly to a TV (the standard 1 video/stereo audio cable, nothing fancy).  I did the experiment, and hooked my Flip up directly to a 34” Sony Bravia HDTV.  On this TV, the picture quality is lower than an analog TV signal, but still good enough to share party or vacation videos on.  I recommend sticking to lower resolution PC monitors, but on a standard TV, you probably couldn’t tell the difference between the Flip and the TV signal.

While talking to the sales guy, my buddy Jon Palmiero of Honda North walks by, and starts ogling the Flip Video I'm carrying.  He was picking up a new point-and-click for an upcoming vacation, and I promised he could play with my Flip when he gets back.  Watch for some little videos on their blog (http://www.hondanorthblog.com/) after we're all back from vacations.

Overall, I'm really impressed.  I wondered about the video quality and the light adjustment, but both seem to be quite good.  I'm not sure if I'd hand this to a very small child, but older children would have a blast with this camera, and even your grandmother could use it.  There’s nothing fancy about this camera—it’s just a little device which works.

Positives:

  1. Unbelievably incredibly easy to use.
  2. Very compact--almost the identical size as my Treo 700w (minus anntenna).
  3. Decent image quality with good automatic exposure compensation, but meant for the smaller, lower resolution screens.
  4. Tripod connector, for stability
  5. The software is carried around on the device, so no matter what computer you plug into, you can compress and share the videos you make, right from the camera.
  6. 2 GB of onboard RAM, no cards, hard drives, tapes, etc.

Negatives:

  1. Tough to plug in on my laptop with a second device (such as the wireless mouse fob), and when it is plugged in, it hangs a little awkwardly from the USB port.  I recommend purchasing a USB extension cord.  It would be really cool if they're include even a short one in the package--I tink that would be more useful than the cable to connect the camera to your TV.   I would have happily paid a few bucks more to have a short cable included in the package, and avoid the PITA (and wait) of obtaining one myself.
  2. Since the software lives on the device, you will need something else to play/edit your files when the camera is not connected.  Use your favorite, or check out Gomplayer to play, and find an editor on this list of open source video editing software.  If you’re really into the portability aspects, you can find portable versions of a couple of tools at Portable Apps.
  3. No lens cap.  Be really, really careful with the camera.
  4. No pause function.  You start and stop, but can’t pause a recording.
  5. You get 60 min, and then you need to move some videos to your PC.  You can’t simply switch out a tape or a memory card.
Sunday, September 16, 2007 7:38:35 PM (Eastern Standard Time, UTC-05:00)
 Friday, August 31, 2007

Wow, the number of ways to manipulate search results just keep growing.  A technique coined "mapspamming" has begun to pollute Yahoo! Local's results, as has "comment bombing".

In a known case, a company pretending to be a local florist engages in fals advertising--they buy a local phone number with a fake business address, and gets themselves listed in Yahoo! Local.  Part of the ranking algo for Yahoo! Local includes proximity to the geographic center, these reults appear near the top.  Next, several fake Yahoo! user accounts are used to rate the scammers highly, and denigrate the competing local florists.

Calls to the phone number are forwarded to a national call center, where the pretend florist takes the order and transmits it to a real florist, keeping a hefty percentage of the order and any service charges.  Although the consumer thinks they're dealing with a florist local to that town, they're actually getting ripped off.

For the full story, see http://www.floristdetective.com/localsearchforflorists.aspx

Friday, August 31, 2007 10:55:52 PM (Eastern Standard Time, UTC-05:00)
 Thursday, August 30, 2007

MarketingProfs has some good food for thought in their Q&A with Josh Hallett:

Q: We keep hearing about the growth of Facebook. For most companies, does it make more sense to use its blog, or social sites such as Facebook and Twitter, as tools to stay in touch with its customers?

A: If we look at many of the "tools" of social media and social networks, the foundation is conversation and relationships. The majority of users are on the services to interact with friends. But can a corporation be a friend? Does a corporation really have anything of value to offer a customer in terms of conversation or relationships?

This is where the human element comes in (has DOW trademarked that yet?). I'm not going to "friend" a company, but I will friend somebody who works for the company. However, is that person able to speak on behalf of the company?

Ooohhh, that's good stuff.  I see a lot of companies--large and small--thinking they need to get into Twitter, Facebook, MySpace, etc.  Why?  People are loyal to brands, but don't really relate to companies.  Now, the owner of a small business can build a cult of personality around themselves, but that makes separating oneself from the business especially tricky.

Read the full story at http://www.marketingprofs.com/7/social-media-qa-with-josh-hallett-collier.asp.

Thursday, August 30, 2007 8:16:15 AM (Eastern Standard Time, UTC-05:00)
 Thursday, August 16, 2007

Following on the heels of my question Do We Really Want Open Search to Beat Google, one has to wonder how much of a problem vandalism and general inaccuracies really are in Wikipedia.

One example I mentioned was politicians and their staff and their detractors editing and re-editing the articles.  Microsoft didn't do any better when it paid a blogger to maintain the Open Office XML page.  A Wikipedia editor discusses these examples at http://searchengineland.com/070717-113550.php.

Recently, the same editor published an article about The Right Way To Fix Inaccurate Wikipedia Articles.  A politician did not correct inaccuracies because he feared a PR backlash:

The exact text as it appeared in Wikipedia was:

"A graduate of the University of Michigan, LaTourette studied law at the Cleveland-Marshall College of Law and had the dubious distinction there of disrupting a school assembly honoring Prince Charles, the Prince of Wales. LaTourette was roughly removed by the Secret Service."

The really damaging aspect of that allegation is how it bears a tangential resemblance to the truth. There actually had been a student disturbance when Prince Charles visited that law school. LaTourette was enrolled at the time but had nothing to do with the incident.

A Wikipedia Scanner has also been developed to track who has been editing entries:

Every once and a while Wikipedia seems to get some odd editing's and phony entries. They get caught fast but are extremely annoying for people who rely on the tool for research.

More story at http://www.downloadsquad.com/2007/08/15/want-to-see-who-s-editing-wikipedia/.

Thursday, August 16, 2007 10:41:55 PM (Eastern Standard Time, UTC-05:00)
 Saturday, August 11, 2007

I got 3/10 correct.  I need to more closely scrutinize my colleagues:

Can you tell a coder from a cannibal?  Try to work out which of the following spent their time hacking computers, and which preferred hacking away at corpses instead.

http://www.malevole.com/mv/misc/killerquiz/

Saturday, August 11, 2007 9:04:06 PM (Eastern Standard Time, UTC-05:00)