Monday, July 27, 2009

PM Labs 2009 conference by Luxoft Training Center

Hi all,

Last Saturday (2009 July 25th) I've attended a quite funny event - PM Labs 2009 held by Luxoft Training Center, this year in Kiev. There way some issues, but generally it look like a most interesting PM community event in Ukraine - thanks Luxoft.
There was an assumption that it may be too headhunting-targeted, but it was rather an advvertisement of training center services those are not so imposing.

More info is here: http://www.pm-labs.ru/news/105

So let's go on!

Thursday, June 25, 2009

Azure Cloud over firewall: HTTP protocol incompatibility

Hello there,

Just got a real problem - out corporative Squid firewall does not support HTTP 1.1 properly, and Azure data storage strictly requires it.
As a result, accessing Azure data from local application is not possible at all.
For example, log viewer application are useless.

And of course it is really hard to kick our administrators to change it.

Tuesday, June 23, 2009

Issue with parsing command lines containing path in c#

Hi!
Another strange detail of .NET/C#:
I needed to pass two pathes to c# command line arguments, and wasn't able to control whether they are ended with backslash or not. Really it was a C# post-build tool so arguments were passed by MsBuild. Final command line looked like following:
"C:\My Path\My Program.exe" "C:\First Path\" "C:\Second Path\"
However C# command-line parser treats \" as esacape sequence
so for this sample
args[0]=="C:\\First Path\" "
and args[1]=="C:\Second"
and even args[2]=="Path\"".
Absolutely unacceptable, isn't it?
The only way to solve it I can see is to get the whole original command line from Environment.CommandLine and have your own parser. Please remember that this value includes executable name as well that may be or may be not quoted too.

Some explanation is here:
http://www.eggheadcafe.com/conversation.aspx?messageid=31268633&threadid=31268617

Wednesday, June 03, 2009

Converting Word document to clean HTML

Just got a request to convert our User Manual from Word 2007 to nice HTML format. As you may know Word provides really ugly formatting when exporting to HTML. There is another option named "Filtered HTML" that provides much cleaner one but still not acceptable.
I tried different approached found from Google - exporting and cleaning by Tidy, manual replaces, even using Gmail preview function (send document to GMail account and use preview on site).
Still looks ugly. I did not try DreamWeaver funcion for Word HTMl cleaning yet, maybe found one to try.
If it didn't help - need to copy-paste without formatting and format manually :-(.

Really Format Manual seemed to be the only possible solution - did it finally in Expression Web I had at hand. Funny tool but still missing some important features like formatting copier.

Monday, June 01, 2009

Troubles accessing WCF service on Vista

Got this problem seconf time so need to describe it for future.
(Strange that there are so few comments on it found by Google.
Do any other developers use Vista? Or they know some secret way?
One of useful advises I met was "Get rid of Vista")

So, back to the problem.
I tried to debug by WCF service-based application on Vista
after succesfully running it on Windows XP.
However, it did not work.
First idea was to restart VisualStudio with Administrator permissions that is usual.
But it did not work again and gave smth. "is in Faulted state" error.

Magic words are the command:
netsh http add urlacl url=http://+:9001/ user=DOMAIN\user
Replace URL and user domain/name with your data.

More details are here:
http://stackoverflow.com/questions/598643/hosting-a-wcf-service-in-vista
and here
http://msdn.microsoft.com/en-us/library/ms733768.aspx

By the way, thanks a lot for all the guys from http://stackoverflow.com/. Great job!

(Sidenote. Why is it so complex to request permissions elevation from .NET? I got samples from Microsoft here but it is very unconmmon anyway)

Tuesday, May 26, 2009

My Azure Crawler is quite working now, will publish it soon either if have time to improve or not.
Also, going to try cloud solution from Google and maybe Amazon but it seems last one have no free option, and I haven't internet-enabled card now (another big story)

Wednesday, May 20, 2009

Cloud computing: Microsoft Azure

Recently I had a closer look at Microsoft implementation of cloud computing paradigm: Azure plateform. Despite of issues those are inevitable for pre-release product, it looks really promising and quite developer-friendly.
Hope to show something runnable and presentable soon!

I'll be adding my thoughts here for now, andlater structure them up

0. Use StorageClient helpers from Azure SDK. It'll save you lots of effort

1. When you save data in Table storage - always fill both Partition and Row key, or you'll be unable to delete records. Also remember that keys cannot contain / \ # , ?

2. Select operations to Table storage are limited to 1000 records and is surely limited by 1000 charcters per text field. It brings sound limitations for your data operations. For example, it does not make sence to select all records - instead you should have some filtering field (partition key or smth else) able to divide data to bunches below 1000 items each.

3. Read focumentation or goggle for other workarounds like foreign keys simulation.

Visual Studio Team System 2008 Test Load Agent troubles

Recently we had an idea to test one of sites being developed from multiple client locations - so have a distributed test.
Since I am usually oriented at Microsoft product and moreover I remember old Web Application Stress Tools from Microsoft thst was really good for that time, I believed there should be something for distribute testing in Visual Studio 2008 Team Suite Edition.
Sounds logically? Not for Microsoft!
VSTE does not support distributed testing.
If you really want it so much - you should install separate product: Visual Studio Team System 2008 Test Load Agent
Pricing? Well.. Around $5000 for volume license. No other options.
But! there is a 90-day Trial here: http://www.microsoft.com/downloads/details.aspx?FamilyID=572e1e71-ae6b-4f92-960d-544cabe62162&displaylang=en
Again but! It does not work for me - I have VS 2008 SP1 but trial is compiled against pre-SP1 libraries. Really there are LOTS of reasons it may not work for you at all. Some of them are here: http://weblogs.asp.net/okloeten/archive/2008/09/09/6612870.aspx.
So it seems we'll look for some other product - more friendly and worth its money...