Archive for the ‘Uncategorized’ Category

Script data in Sqlserver

May 17th, 2011

I don’t know for how long this has been possible but I guess my years of whining about lack of data scripting capabilities in Sqlserver management studio is moot.

I found an article which describes the hidden setting.  I wonder for how long the possibility has been there.

http://www.kodyaz.com/articles/how-to-script-data-in-sql-server-2011.aspx

I remember Sqlbase scripting its own data back in last century.  I remember myself writing sprocs for the same for Sqlserver.  I remember myself hunting scripts for the same on the web.  I now foresee a future with lots of clicketyclick – the GUI of MS’s Sqlserver tools is way too fiddly for my taste.

Placeholder for review of HP Pavilion dm1-3110eo Notebook PC

May 4th, 2011

This is a place holder for a possible review of HP Pavilion dm1-3110eo Notebook PC.

New site: ideas, ideas, ideas

January 9th, 2011

I have started a new blog to run parallel with this.  It is about ideas.

I get ideas all the time.  So instead of just dropping them I let them out for others to see and use.

http://ideas.selfelected.com/

Devop

December 10th, 2010

Why do we do a hand over when we release a system into production?  There is a new machine(s) involved.  There are different protocols for talking with the computer.  Due to security there are different tools involved.  But.  It is the same system.

Just as programming is designing is architecting is designing is programming I say that developing is running is developing.

Now there is a word for it, Devop.  Developer and Operator.  Makes it much easier to explain when it is googleable.

tags: | categories: Uncategorized | no comments »

Placeholder for a possible future review of Nokia BH-217

December 10th, 2010

Placeholder for a possible future review of Nokia BH-217.

Virtual PC under Windows7

December 1st, 2009

If one wants to run a virtual machine on Windows 7 Windows Virtual PC is the official way to go.

It requires hardware supported virtualization though, which means not everyone’s machine can do it.  On my HP 8510w it meant a cold reboot – just restarting and changing the BIOS was not enough.

The older VirtualPC2007 doesn’t need any hardware virtualization stuff and a small text about how to install it is found here: http://blogs.msdn.com/virtual_pc_guy/archive/2009/08/19/running-virtual-pc-2007-on-windows-7.aspx

It looks like Microsoft wants everyone who installs Windows Virtual PC to also install Windows XP Mode by some reason unknown to me.  I am a developer and I am hesistant to installing apps that might tweek the OS.
The whole page at http://www.microsoft.com/windows/virtual-pc/download.aspx pushes you into installing Windows XP Mode but if one selects a system at step 3 two buttons pop up and one of them says “Windows Virtual PC”.

Download and install.  But instead of the usual application GUI one gets a view of a folder under C:\Users\username\Virtual Machines prepared for virtual machines.  This might be good for people who backup what is under their personal account but as a developer I don’t want to tie my data to an account and instead prefer something like C:\DATA\VMACHINE\.
Come to think of it – is it good for anyone?

It also took me a while to find out how to create a new virtual machine.  Instead of having an app with a button or menu as is de facto standard someone has decided to hide the button in the toolbar or extra menu system ( I have never figured that out. )

Don’t bother to cut and paste the .vmcx file to some other place.  It will be copied but not removed so you end up with the original .vmcx file in the original place and a not functioning copy of it in your target directory.
The .vmc file can be run though.

Mount an ISO with your preferred OS on the virtual D: drive.  The virtual machines chews through your NICs and DHCP.  I had my WLAN card turned of in the host OS, but the virtual machine seemed to first look for my WLAN card and then my regular one.

The rest looks just like ususal.

>Microsoft Virtual CD-ROM

October 5th, 2009

>

Microsoft has for a long time had a very simple application for mounting ISO images to look like a CD-ROM.  The application is called Microsoft Virtual CD-ROM Control Panel.

It is hard to locate though.  The very link is here:
http://download.microsoft.com/download/7/b/6/7b6abd84-7841-4978-96f5-bd58df02efa2/winxpvirtualcdcontrolpanel_21.exe
and can for instance be found through here.

It works for 2000?, XP, Vista, 2003, 2008? but not Windows7.

>How to install Visual Studio 2008 for TFS

October 5th, 2009

>

Installing Visual Studio 2008 is a breeze.  Installing it to work with TFS is not so.  It is not even enough to install the Visual Studio 2008 TFS update but one has to install Visual Studio 2008 SP1 as well.  In this written order.

And here is where I got this information.

>Go to definition VBNet to C#

July 13th, 2009

>

In visual studio a very handy context menu item is the Go to definition item.  Position you caret on a metod call, open the context menu and choose “Go to definition”.  The caret is then positioned on the method.  Press ctrl-minus to go back again.

You cannot do this when a VBNet project calls a method i a C# dll.  The trick here is to instead choose Find all references and choose the correct result row.

Operation cannot be performed on a shared row

October 6th, 2008

On http://msdn.microsoft.com/en-us/library/ha5xt0d9.aspx one finds some good advises on how to use Dotnet’s DataGridView with large data.  Amongst others one is told to care about Shared Row for data reuse.

A solution of mine was to populate the grid with objects of my own creation and then call SetValues; but when I refactored my solution and put the calls in the “right place” I got an InvalidOperationException exception with the message “Operation cannot be performed on a shared row.”

The SetValues call was made from a class that inherited DataGridViewRow.  The solution was to move the call out of the class (to my class that inherited the UserControl).

This article might hopefully help someone in the future with the same problem.

Update:

6.5 years later and no comment shows that I probably was alone with this problem. Or that my site doesn’t rate high enough.