Re: Cannot get GeoCode web service client to work.

2011-01-20 Thread Peter Maddin


  
  
Ok I have had a look with
  fiddler
  
  This is the results of using a delphi soap application
  
  "http://www.w3.org/2001/XMLSchema-instance"
  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">"http://rpc.geocoder.us/Geo/Coder/US">"http://rpc.geocoder.us/Geo/Coder/US/">"http://rpc.geocoder.us/Geo/Coder/US/">160038.898748PennsylvaniaDCWashington20502NW-77.037684Ave
  
  When I run my itty bitty C# application I see this
  


If I click on 'Click here to transform' I get 

"http://www.w3.org/2001/XMLSchema-instance"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">"http://rpc.geocoder.us/Geo/Coder/US/">"http://rpc.geocoder.us/Geo/Coder/US/">"http://rpc.geocoder.us/Geo/Coder/US/">160038.898748PennsylvaniaDCWashington20502NW-77.037684Ave

Ok looks like what whatever is returned needs to be transformed. At
this point in time I have do not know what fiddler is using to do
any transform.

Looking at the response in hex I see
HTTP/1.1 200 OK
Date: Thu, 20 Jan 2011 07:58:52 GMT
Server: Apache/2.2.9 (Debian) mod_perl/2.0.4 Perl/v5.10.0
Content-Type: text/xml; charset=utf-8
SOAPServer: SOAP::Lite/Perl/0.710.08
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 458
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
<>

It looks like the response has been gzipped. 

Looks like I need to do extra research but if anyone has some
pointers as to what I should do next it would be appreciated.
I am not sure why one returns the response as plain text and the
other is compressed.
May there is some setting in the request headers  (??) that asks for
this.

Full marks for Fiddler though, an absolutely brilliant piece of
software. 

Regards Peter

On 20/01/2011 11:25 AM, Stephen Price wrote:

  Have you had a look at whats happening using Fiddler? (or other
suitable traffic monitoring tool)
Might give you a hint as to whats being sent/returned. might even show
you an error rather than just empty result

On Thu, Jan 20, 2011 at 11:23 AM, Peter Maddin  wrote:

  
I am re-learning WCF and am trying a simple web service client to the US Geo
Coordinate service at http://geocoder.us/

WSDL is at  http://rpc.geocoder.us/dist/eg/clients/GeoCoder.wsdl

There is a C# Client at
http://www.c-sharpcorner.com/uploadfile/scottlysle/geocoderuswebservice01232008035119am/geocoderuswebservice.aspx

but it does not work. It keeps saying that the address given is invalid.

I have used the sample addresses at http://geocoder.us/  and while they work
in the web site they don't in the c# demo.

I have a demo Delphi application that also works against this site.

So the site  is working!!

I wrote a extremely basic web service client. I added a service reference
using the WSDL and created a simple winForm application

Code

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.ServiceModel;
using GeoCodeTest.ServiceReference1;

namespace GeoCodeTest
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private GeocoderResult[] LocationResult = null;
private GeoCode_PortTypeClient proxy = null;

private void btnGo_Click(object sender, EventArgs e)
{
LocationResult = proxy.geocode(txtLocation.Text); // always returns a null !!!
geocoderResultBindingSource.DataSource = LocationResult;
}

private void Form1_Load(object sender, EventArgs e)
{
proxy = new GeoCode_PortTypeClient("GeoCode_Port");
}
}
}

No matter what address I put in, the result returned is always null.
In the C# demo from
http://www.c-sharpcorner.com/uploadfile/scottlysle/geocoderuswebservice01232008035119am/geocoderuswebservice.aspx
the location returned was also null.

This is the app.config file that was generated.
















"http://rpc.geocoder.us/service/soap/" binding="basicHttpBinding"
bindingConfiguration="GeoCode_Binding" contract="ServiceReference1.GeoCode_PortType"
name="GeoCode_Port" />





There is a link to passing 

Re: Cannot get GeoCode web service client to work.

2011-01-20 Thread Peter Maddin


  
  
Found some differences.
  
  For the Delphi Soap application for the 'Transformer' tab I get
  


For my C# application I get


I can see the difference, but how do I turn of HTTP compression for
my C# application?

More research, but if anyone has some answers before I google myself
to death, please let me know.

Regards Peter

On 20/01/2011 11:25 AM, Stephen Price wrote:

  Have you had a look at whats happening using Fiddler? (or other
suitable traffic monitoring tool)
Might give you a hint as to whats being sent/returned. might even show
you an error rather than just empty result

On Thu, Jan 20, 2011 at 11:23 AM, Peter Maddin  wrote:

  
I am re-learning WCF and am trying a simple web service client to the US Geo
Coordinate service at http://geocoder.us/

WSDL is at  http://rpc.geocoder.us/dist/eg/clients/GeoCoder.wsdl

There is a C# Client at
http://www.c-sharpcorner.com/uploadfile/scottlysle/geocoderuswebservice01232008035119am/geocoderuswebservice.aspx

but it does not work. It keeps saying that the address given is invalid.

I have used the sample addresses at http://geocoder.us/  and while they work
in the web site they don't in the c# demo.

I have a demo Delphi application that also works against this site.

So the site  is working!!

I wrote a extremely basic web service client. I added a service reference
using the WSDL and created a simple winForm application

Code

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.ServiceModel;
using GeoCodeTest.ServiceReference1;

namespace GeoCodeTest
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private GeocoderResult[] LocationResult = null;
private GeoCode_PortTypeClient proxy = null;

private void btnGo_Click(object sender, EventArgs e)
{
LocationResult = proxy.geocode(txtLocation.Text); // always returns a null !!!
geocoderResultBindingSource.DataSource = LocationResult;
}

private void Form1_Load(object sender, EventArgs e)
{
proxy = new GeoCode_PortTypeClient("GeoCode_Port");
}
}
}

No matter what address I put in, the result returned is always null.
In the C# demo from
http://www.c-sharpcorner.com/uploadfile/scottlysle/geocoderuswebservice01232008035119am/geocoderuswebservice.aspx
the location returned was also null.

This is the app.config file that was generated.
















"http://rpc.geocoder.us/service/soap/" binding="basicHttpBinding"
bindingConfiguration="GeoCode_Binding" contract="ServiceReference1.GeoCode_PortType"
name="GeoCode_Port" />





There is a link to passing credentials here to fix an issue
http://geocoder.us/help/msxml.shtml.
But I don't think that has anything to do with this (could be wrong). I am
using the free service.

Can anyone tell me why the C# solution won't work where as other solutions
do?
Is there something else one needs to do (apart from tearing one's hair out).

Regards Peter








  
  


  



RE: Using web services in IIS/WAS

2011-01-20 Thread Greg Keogh
>If I want to publish wcf web services to iis/was I have to run Visual
Studio as administrator.

>There is no problem doing this but is there a way around having to do this?

>Apart from this, I have not needed to do this for any other development
work.

 

Peter, this general topic has been bugging me for years. Perhaps 5 years ago
I spent a whole afternoon trying to get my development environment working
as usual under a normal User account, but I got bogged down on hitting F5 in
ASP.NET apps. I gave up back then.

 

Several months ago I purchased The .NET Developer's Guide to Windows
Security by Keith Brown, and it has a whole chapter on how to develop as an
non-admin. Sadly, the book is so old that Framework 2 was just released, so
most of the advice in the chapter is now obsolete. I got all excited back
then and had another go at non-admin development, but I had to give up
again.

 

I do develop now as a domain user account in the local Administrators group,
so I still need elevation prompts and "run as admin" shortcuts, which I
don't mind. The whole IIS-admin-developer topic is irritating. If anyone
here does smooth IIS development as a non-admin I'd like to hear what tricks
you use.

 

Greg

 



Re: Cannot get GeoCode web service client to work.

2011-01-20 Thread djones147
Have a look at the generated file.

On the httpclient remove the usecompression line


Davy
"When all you have is a hammer, every problem looks like a nail." I feel much 
the same way about xml

-Original Message-
From: Peter Maddin 
Sender: ozdotnet-boun...@ozdotnet.com
Date: Thu, 20 Jan 2011 16:11:48 
To: ozDotNet
Reply-To: ozDotNet 
Subject: Re: Cannot get GeoCode web service client to work.

Found some differences.

For the Delphi Soap application for the 'Transformer' tab I get



For my C# application I get


I can see the difference, but how do I turn of HTTP compression for my 
C# application?

More research, but if anyone has some answers before I google myself to 
death, please let me know.

Regards Peter

On 20/01/2011 11:25 AM, Stephen Price wrote:
> Have you had a look at whats happening using Fiddler? (or other
> suitable traffic monitoring tool)
> Might give you a hint as to whats being sent/returned. might even show
> you an error rather than just empty result
>
> On Thu, Jan 20, 2011 at 11:23 AM, Peter Maddin  
> wrote:
>> I am re-learning WCF and am trying a simple web service client to the US Geo
>> Coordinate service at http://geocoder.us/
>>
>> WSDL is at  http://rpc.geocoder.us/dist/eg/clients/GeoCoder.wsdl
>>
>> There is a C# Client at
>> http://www.c-sharpcorner.com/uploadfile/scottlysle/geocoderuswebservice01232008035119am/geocoderuswebservice.aspx
>>
>> but it does not work. It keeps saying that the address given is invalid.
>>
>> I have used the sample addresses at http://geocoder.us/  and while they work
>> in the web site they don't in the c# demo.
>>
>> I have a demo Delphi application that also works against this site.
>>
>> So the site  is working!!
>>
>> I wrote a extremely basic web service client. I added a service reference
>> using the WSDL and created a simple winForm application
>>
>> Code
>>
>> using System;
>> using System.Collections.Generic;
>> using System.ComponentModel;
>> using System.Data;
>> using System.Drawing;
>> using System.Linq;
>> using System.Text;
>> using System.Windows.Forms;
>> using System.ServiceModel;
>> using GeoCodeTest.ServiceReference1;
>>
>> namespace GeoCodeTest
>> {
>>  public partial class Form1 : Form
>>  {
>>  public Form1()
>>  {
>>  InitializeComponent();
>>  }
>>
>>  private GeocoderResult[] LocationResult = null;
>>  private GeoCode_PortTypeClient proxy = null;
>>
>>  private void btnGo_Click(object sender, EventArgs e)
>>  {
>>  LocationResult = proxy.geocode(txtLocation.Text); // always 
>> returns a null !!!
>>  geocoderResultBindingSource.DataSource = LocationResult;
>>  }
>>
>>  private void Form1_Load(object sender, EventArgs e)
>>  {
>>  proxy = new GeoCode_PortTypeClient("GeoCode_Port");
>>  }
>>  }
>> }
>>
>> No matter what address I put in, the result returned is always null.
>> In the C# demo from
>> http://www.c-sharpcorner.com/uploadfile/scottlysle/geocoderuswebservice01232008035119am/geocoderuswebservice.aspx
>> the location returned was also null.
>>
>> This is the app.config file that was generated.
>>
>> 
>> 
>>  
>>  
>>  
>>  > openTimeout="00:01:00"
>>  receiveTimeout="00:10:00" sendTimeout="00:01:00" 
>> allowCookies="false"
>>  bypassProxyOnLocal="false" 
>> hostNameComparisonMode="StrongWildcard"
>>  maxBufferSize="65536" maxBufferPoolSize="524288" 
>> maxReceivedMessageSize="65536"
>>  messageEncoding="Text" textEncoding="utf-8" 
>> transferMode="Buffered"
>>  useDefaultWebProxy="true">
>>  > maxStringContentLength="8192" maxArrayLength="16384"
>>  maxBytesPerRead="4096" 
>> maxNameTableCharCount="16384" />
>>  
>>  > proxyCredentialType="None"
>>  realm="" />
>>  > algorithmSuite="Default" />
>>  
>>  
>>  
>>  
>>  
>>  http://rpc.geocoder.us/service/soap/"; 
>> binding="basicHttpBinding"
>>  bindingConfiguration="GeoCode_Binding" 
>> contract="ServiceReference1.GeoCode_PortType"
>>  name="GeoCode_Port" />
>>  
>>  
>> 
>>
>>
>> There is a link to passing credentials here to fix an issue
>> http://geocoder.us/help/msxml.shtml.
>> But I don't think that has anything to do with this (could be wrong). I am
>> using the free service.
>>
>> Can anyone tell me why the C# solution won't work where as other solutions
>> do?
>> Is there something else one needs to do (apart from tearing one's hair out).
>>
>> Regards Peter
>>
>>
>>
>>
>>
>>
>>



Re: Cannot get GeoCode web service client to work.

2011-01-20 Thread Stephen Price
I'm not an expert at WCF but I did know there's a compression option
(enabled server side I believe). I didn't think you had to do anything to
handle it, but I could be wrong there.

On Thu, Jan 20, 2011 at 4:11 PM, Peter Maddin wrote:

>  Found some differences.
>
> For the Delphi Soap application for the 'Transformer' tab I get
>
>
>
> For my C# application I get
>
>
> I can see the difference, but how do I turn of HTTP compression for my C#
> application?
>
> More research, but if anyone has some answers before I google myself to
> death, please let me know.
>
>
> Regards Peter
>
> On 20/01/2011 11:25 AM, Stephen Price wrote:
>
> Have you had a look at whats happening using Fiddler? (or other
> suitable traffic monitoring tool)
> Might give you a hint as to whats being sent/returned. might even show
> you an error rather than just empty result
>
> On Thu, Jan 20, 2011 at 11:23 AM, Peter Maddin  
>  wrote:
>
>  I am re-learning WCF and am trying a simple web service client to the US Geo
> Coordinate service at http://geocoder.us/
>
> WSDL is at  http://rpc.geocoder.us/dist/eg/clients/GeoCoder.wsdl
>
> There is a C# Client 
> athttp://www.c-sharpcorner.com/uploadfile/scottlysle/geocoderuswebservice01232008035119am/geocoderuswebservice.aspx
>
> but it does not work. It keeps saying that the address given is invalid.
>
> I have used the sample addresses at http://geocoder.us/  and while they work
> in the web site they don't in the c# demo.
>
> I have a demo Delphi application that also works against this site.
>
> So the site  is working!!
>
> I wrote a extremely basic web service client. I added a service reference
> using the WSDL and created a simple winForm application
>
> Code
>
> using System;
> using System.Collections.Generic;
> using System.ComponentModel;
> using System.Data;
> using System.Drawing;
> using System.Linq;
> using System.Text;
> using System.Windows.Forms;
> using System.ServiceModel;
> using GeoCodeTest.ServiceReference1;
>
> namespace GeoCodeTest
> {
> public partial class Form1 : Form
> {
> public Form1()
> {
> InitializeComponent();
> }
>
> private GeocoderResult[] LocationResult = null;
> private GeoCode_PortTypeClient proxy = null;
>
> private void btnGo_Click(object sender, EventArgs e)
> {
> LocationResult = proxy.geocode(txtLocation.Text); // always 
> returns a null !!!
> geocoderResultBindingSource.DataSource = LocationResult;
> }
>
> private void Form1_Load(object sender, EventArgs e)
> {
> proxy = new GeoCode_PortTypeClient("GeoCode_Port");
> }
> }
> }
>
> No matter what address I put in, the result returned is always null.
> In the C# demo 
> fromhttp://www.c-sharpcorner.com/uploadfile/scottlysle/geocoderuswebservice01232008035119am/geocoderuswebservice.aspx
> the location returned was also null.
>
> This is the app.config file that was generated.
>
> 
> 
> 
> 
> 
>  openTimeout="00:01:00"
> receiveTimeout="00:10:00" sendTimeout="00:01:00" 
> allowCookies="false"
> bypassProxyOnLocal="false" 
> hostNameComparisonMode="StrongWildcard"
> maxBufferSize="65536" maxBufferPoolSize="524288" 
> maxReceivedMessageSize="65536"
> messageEncoding="Text" textEncoding="utf-8" 
> transferMode="Buffered"
> useDefaultWebProxy="true">
>  maxArrayLength="16384"
> maxBytesPerRead="4096" maxNameTableCharCount="16384" 
> />
> 
>  proxyCredentialType="None"
> realm="" />
>  algorithmSuite="Default" />
> 
> 
> 
> 
> 
> http://rpc.geocoder.us/service/soap/"; 
>  binding="basicHttpBinding"
> bindingConfiguration="GeoCode_Binding" 
> contract="ServiceReference1.GeoCode_PortType"
> name="GeoCode_Port" />
> 
> 
> 
>
>
> There is a link to passing credentials here to fix an 
> issuehttp://geocoder.us/help/msxml.shtml.
> But I don't think that has anything to do with this (could be wrong). I am
> using the free service.
>
> Can anyone tell me why the C# solution won't work where as other solutions
> do?
> Is there something else one needs to do (apart from tearing one's hair out).
>
> Regards Peter
>
>
>
>
>
>
>
>
>


Re: Using web services in IIS/WAS

2011-01-20 Thread Stephen Price
Hey what about the new lite IIS (forget its name now) I saw released
recently... maybe you can develop against that (I'm sure you can), but
in user mode/Non-Admin?

On Thu, Jan 20, 2011 at 4:12 PM, Greg Keogh  wrote:
>>If I want to publish wcf web services to iis/was I have to run Visual
>> Studio as administrator.
>
>>There is no problem doing this but is there a way around having to do this?
>
>>Apart from this, I have not needed to do this for any other development
>> work.
>
>
>
> Peter, this general topic has been bugging me for years. Perhaps 5 years ago
> I spent a whole afternoon trying to get my development environment working
> as usual under a normal User account, but I got bogged down on hitting F5 in
> ASP.NET apps. I gave up back then.
>
>
>
> Several months ago I purchased The .NET Developer's Guide to Windows
> Security by Keith Brown, and it has a whole chapter on how to develop as an
> non-admin. Sadly, the book is so old that Framework 2 was just released, so
> most of the advice in the chapter is now obsolete. I got all excited back
> then and had another go at non-admin development, but I had to give up
> again.
>
>
>
> I do develop now as a domain user account in the local Administrators group,
> so I still need elevation prompts and "run as admin" shortcuts, which I
> don't mind. The whole IIS-admin-developer topic is irritating. If anyone
> here does smooth IIS development as a non-admin I'd like to hear what tricks
> you use.
>
>
>
> Greg
>
>


Re: Cannot get GeoCode web service client to work.

2011-01-20 Thread Peter Maddin

I think that it compression must be the default.

Find all "usecompression", Subfolders, Find Results 1, "Entire Solution"
  Matching lines: 0Matching files: 0Total files searched: 29

Find all "gzip", Subfolders, Find Results 1, "Entire Solution"
  Matching lines: 0Matching files: 0Total files searched: 29

Looks like one must disable it somehow. At least that is my guess.

On 20/01/2011 4:14 PM, djones...@gmail.com wrote:

Have a look at the generated file.

On the httpclient remove the usecompression line


Davy
"When all you have is a hammer, every problem looks like a nail." I feel much 
the same way about xml

-Original Message-
From: Peter Maddin
Sender: ozdotnet-boun...@ozdotnet.com
Date: Thu, 20 Jan 2011 16:11:48
To: ozDotNet
Reply-To: ozDotNet
Subject: Re: Cannot get GeoCode web service client to work.

Found some differences.

For the Delphi Soap application for the 'Transformer' tab I get



For my C# application I get


I can see the difference, but how do I turn of HTTP compression for my
C# application?

More research, but if anyone has some answers before I google myself to
death, please let me know.

Regards Peter

On 20/01/2011 11:25 AM, Stephen Price wrote:

Have you had a look at whats happening using Fiddler? (or other
suitable traffic monitoring tool)
Might give you a hint as to whats being sent/returned. might even show
you an error rather than just empty result

On Thu, Jan 20, 2011 at 11:23 AM, Peter Maddin   wrote:

I am re-learning WCF and am trying a simple web service client to the US Geo
Coordinate service at http://geocoder.us/

WSDL is at  http://rpc.geocoder.us/dist/eg/clients/GeoCoder.wsdl

There is a C# Client at
http://www.c-sharpcorner.com/uploadfile/scottlysle/geocoderuswebservice01232008035119am/geocoderuswebservice.aspx

but it does not work. It keeps saying that the address given is invalid.

I have used the sample addresses at http://geocoder.us/  and while they work
in the web site they don't in the c# demo.

I have a demo Delphi application that also works against this site.

So the site  is working!!

I wrote a extremely basic web service client. I added a service reference
using the WSDL and created a simple winForm application

Code

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.ServiceModel;
using GeoCodeTest.ServiceReference1;

namespace GeoCodeTest
{
  public partial class Form1 : Form
  {
  public Form1()
  {
  InitializeComponent();
  }

  private GeocoderResult[] LocationResult = null;
  private GeoCode_PortTypeClient proxy = null;

  private void btnGo_Click(object sender, EventArgs e)
  {
  LocationResult = proxy.geocode(txtLocation.Text); // always 
returns a null !!!
  geocoderResultBindingSource.DataSource = LocationResult;
  }

  private void Form1_Load(object sender, EventArgs e)
  {
  proxy = new GeoCode_PortTypeClient("GeoCode_Port");
  }
  }
}

No matter what address I put in, the result returned is always null.
In the C# demo from
http://www.c-sharpcorner.com/uploadfile/scottlysle/geocoderuswebservice01232008035119am/geocoderuswebservice.aspx
the location returned was also null.

This is the app.config file that was generated.



  
  
  
  
  
  
  
  
  
  
  
  
  
  http://rpc.geocoder.us/service/soap/"; 
binding="basicHttpBinding"
  bindingConfiguration="GeoCode_Binding" 
contract="ServiceReference1.GeoCode_PortType"
  name="GeoCode_Port" />
  
  



There is a link to passing credentials here to fix an issue
http://geocoder.us/help/msxml.shtml.
But I don't think that has anything to do with this (could be wrong). I am
using the free service.

Can anyone tell me why the C# solution won't work where as other solutions
do?
Is there something else one needs to do (apart from tearing one's hair out).

Regards Peter









Re: Using web services in IIS/WAS

2011-01-20 Thread Peter Maddin

Thanks but I can live with the run as Administrator role.
Your solution may be better but I can't spare the time to install even 
more stuff.


On 20/01/2011 4:16 PM, Stephen Price wrote:

Hey what about the new lite IIS (forget its name now) I saw released
recently... maybe you can develop against that (I'm sure you can), but
in user mode/Non-Admin?

On Thu, Jan 20, 2011 at 4:12 PM, Greg Keogh  wrote:

If I want to publish wcf web services to iis/was I have to run Visual
Studio as administrator.
There is no problem doing this but is there a way around having to do this?
Apart from this, I have not needed to do this for any other development
work.



Peter, this general topic has been bugging me for years. Perhaps 5 years ago
I spent a whole afternoon trying to get my development environment working
as usual under a normal User account, but I got bogged down on hitting F5 in
ASP.NET apps. I gave up back then.



Several months ago I purchased The .NET Developer's Guide to Windows
Security by Keith Brown, and it has a whole chapter on how to develop as an
non-admin. Sadly, the book is so old that Framework 2 was just released, so
most of the advice in the chapter is now obsolete. I got all excited back
then and had another go at non-admin development, but I had to give up
again.



I do develop now as a domain user account in the local Administrators group,
so I still need elevation prompts and "run as admin" shortcuts, which I
don't mind. The whole IIS-admin-developer topic is irritating. If anyone
here does smooth IIS development as a non-admin I'd like to hear what tricks
you use.



Greg




Re: [OT](ish) Interview Questions

2011-01-20 Thread Tony McGee

You're hired! Coffee as a Service (CaaS) is going to be the next big thing.


On 20/01/2011 11:02 AM, Noon Silk wrote:


Haha, wow, I would completely fail here. I must admit I have no
technical understanding of the process of coffee making. I could
explain the process of walking to the local cafe though.





Re: [OT](ish) Interview Questions

2011-01-20 Thread Stephen Price
we'll call it Java!

wait. ohh... I see what they did

On Thu, Jan 20, 2011 at 4:57 PM, Tony McGee  wrote:
> You're hired! Coffee as a Service (CaaS) is going to be the next big thing.
>
>
> On 20/01/2011 11:02 AM, Noon Silk wrote:
>>
>> Haha, wow, I would completely fail here. I must admit I have no
>> technical understanding of the process of coffee making. I could
>> explain the process of walking to the local cafe though.
>>
>
>


Re: ObjectDataSource SelectParameters to URL query string

2011-01-20 Thread Hoss Ravanparsa
On Thu, Jan 20, 2011 at 5:43 PM, Tristan Reeves  wrote:
> Since the very first sentence of that wikipedia entry, "A comma-separated
> values or character-separated values (CSV) file is a simple text format for
> a database table", is at best poorly worded (database table?!), I wouldn't
> necessarily give too much weight to the rest it.

I was more referring to things like ensuring fields with commas are
qualified with quotes, etc.  I've seen simple rules like this missed
all the time.

>
> On Thu, Jan 20, 2011 at 5:10 PM, Hoss Ravanparsa 
> wrote:
>>
>> On Thu, Jan 20, 2011 at 11:09 AM, Noon Silk  wrote:
>> > On Thu, Jan 20, 2011 at 9:46 AM, Arjang Assadi 
>> > wrote:
>> >> Using C#,Asp.net What is the (non-string mocking around) way of
>> >> turning ObjectDataSources Select Parameters to Url query string?
>> >
>> > Well, you'd just do it, right? There's no inbuilt method for that,
>> > AFAIK.
>> >
>> >
>> >> I need it in order to turn keep the Query that generated the view and
>> >> use it to turn it into a downloadable file,
>> >>
>> >> On the same note is there a framework supported way of turning
>> >> DataTables, List of Objects into CSV / XML etc.? This seems a way to
>> >> common scenario, having a way to do it using .net framework rather
>> >> than reinventing the wheel seems more appropriate.
>> >
>> > Again not that I know of. And again this should be a reasonably
>> > trivial process. Depending on what objects you are returning, you can
>> > just have them implement appropriately serialisation methods
>> > individually, then in the CSV case loop over them, and in the XML
>> > cause use the inbuilt XML serialisation.
>> >
>>
>> Please just make sure your CSV is actually valid CSV
>> (http://en.wikipedia.org/wiki/Comma-separated_values).
>>
>> >
>> >> Thank you
>> >
>> > --
>> > Noon Silk
>> >
>> > http://dnoondt.wordpress.com/  (Noon Silk) |
>> > http://www.mirios.com.au:8081 >
>> >
>> > "Every morning when I wake up, I experience an exquisite joy — the joy
>> > of being this signature."
>> >
>
>


Re: ObjectDataSource SelectParameters to URL query string

2011-01-20 Thread Arjang Assadi
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.parameter.viewstate.aspx


RE: [OT](ish) Interview Questions

2011-01-20 Thread Dylan Tusler
Filter? Machine? I would flunk that one. Then, I only drink decaf.
 

-Original Message-
From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On 
Behalf Of djones...@gmail.com
Sent: Thursday, 20 January 2011 10:56 AM
To: ozDotNet
Subject: Re: [OT](ish) Interview Questions

I've interviewed hundreds of candidates over the years.

I start with.

"There is no pass or fail here, I'm going to start simple and if you know the 
answers then I'll ask more difficult questions, if you don't know the answer 
just say so. I don't know everything about .net and I don't expect you to 
either" 

Then, subjects.

Database
file reads writes
Serialization
Windows forms
Asp.net
 
Differences between .net versions
Sql server. / oracle questions.

Where do they look to solve problems. Team mates, google etc.

And finish on.

I'm at your home and I want a cup of coffee, explain all the steps of how to 
make a cup of coffee.  

Key replys.

Do they ask me if I want sugar, or do they provide it anyway.  

Do they go through all the steps.

Do they check if the old filter is still in the machine.

Etc.


Hth
Davy 



--Original Message--
From: Noon Silk
Sender: ozdotnet-boun...@ozdotnet.com
To: ozDotNet
ReplyTo: ozDotNet
Subject: [OT](ish) Interview Questions
Sent: 20 Jan 2011 01:43

Hello,

 Anyone have any thoughts/lists on a update-to-date set of questions to ask 
people (senior .net). I'm preparing a list now (trying to find my old one from 
a few years ago), just wondering if anyone has any new/interesting questions 
that they are asking.

--
Noon Silk

http://dnoondt.wordpress.com/  (Noon Silk) | http://www.mirios.com.au:8081 >

"Every morning when I wake up, I experience an exquisite joy - the joy of being 
this signature."


"When all you have is a hammer, every problem looks like a nail." I feel much 
the same way about xml
-
To find out more about the Sunshine Coast Regional Council, visit your local 
office at Caloundra, Maroochydore, Nambour or Tewantin or visit us online at 
www.sunshinecoast.qld.gov.au.  If correspondence includes personal information, 
please refer to Council's Privacy Policy at http://www.sunshinecoast.qld.gov.au 
.

This email and any attachments are confidential and only for the use of the 
addressee.  If you have received this email in error you are requested to 
notify the sender by return email or contact council on 1300 00 7272 and are 
prohibited from forwarding, printing, copying or using it in anyway, in whole 
or part. Please note that some council staff utilise Blackberry devices, which 
results in information being transmitted overseas prior to delivery of any 
communication to the device.  In sending an email to Council you are agreeing 
that the content of your email may be transmitted overseas. Any views expressed 
in this email are the author's, except where the email makes it clear 
otherwise. The unauthorised publication of an email and any attachments 
generated for the official functions of council is strictly prohibited. Please 
note that council is subject to the Right to Information Act 2009 (Qld) and 
Information Privacy Act 2009 (Qld).


RE: [OT](ish) Interview Questions

2011-01-20 Thread Dylan Tusler
Seriously, though, I was reading a book called "The Gift of Fear" recently, and 
in a section about avoiding hiring people who are likely to go postal on you, 
it had some interview questions that I jotted down. We've actually had some 
unstable people here from time to time, and they take a bit of managing, so I 
thought it was worthwhile keeping the questions handy.

I share them here:
"Describe the best boss you ever had" and "Describe the worst boss you ever 
had."
Danger signs:
* Speaks for just a moment about best boss, but waxes on enthusiastically about 
worst one.
* Uses expressions like "Personality conflict" to explain why things didn't 
work out.
* Ridicules former employer.
* Does not take responsibility for any prior conflict.

"Tell me about a failure in your life and tell me why it occurred."
* Cannot think of one
* Blames others for failure (eg "I never graduated high school because those 
damned teachers didn't know how to motivate me.")

"What are some of the things your last employer could have done to be more 
successful?"
* Applicant offers a long list of items and appears to feel they could have run 
things better than management.
* Angry rather than constructive comments.

Follow up with:
"Did you ever tell your previous employer any of your thoughts on ways they 
could improve?"
* "Yes, but they never listened to anyone" or similar indicates communication 
problems
* "What's the use of making suggestions? Nothing ever changes anyway."
* Accusations of former employers stealing their ideas.
* War stories about solo efforts to get employers to change (as opposed to 
working with co-workers)
* Saying things like co-workers "didn't have the guts to confront management 
like I did."

"What are some of the things your last employer could have done to keep you?"
* List of demands that demonstrate unreasonable expectations (eg: Double my 
salary, make me vice-president, etc.)

"How do you go about solving problems at work?"
* Themes of confrontation
* Does nothing "Nothing ever changes anyway."

"Describe a problem you had in your life where someone else's help was very 
important to you."
* Unable to recall a situation
* Does not give credit or express appreciation.

I know these aren't technical questions, but I thought they were interesting.

Cheers,


Dylan.




-Original Message-
From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On 
Behalf Of Noon Silk
Sent: Thursday, 20 January 2011 10:44 AM
To: ozDotNet
Subject: [OT](ish) Interview Questions

Hello,

 Anyone have any thoughts/lists on a update-to-date set of questions to ask 
people (senior .net). I'm preparing a list now (trying to find my old one from 
a few years ago), just wondering if anyone has any new/interesting questions 
that they are asking.

--
Noon Silk

http://dnoondt.wordpress.com/  (Noon Silk) | http://www.mirios.com.au:8081 >

"Every morning when I wake up, I experience an exquisite joy - the joy of being 
this signature."

-
To find out more about the Sunshine Coast Regional Council, visit your local 
office at Caloundra, Maroochydore, Nambour or Tewantin or visit us online at 
www.sunshinecoast.qld.gov.au.  If correspondence includes personal information, 
please refer to Council's Privacy Policy at http://www.sunshinecoast.qld.gov.au 
.

This email and any attachments are confidential and only for the use of the 
addressee.  If you have received this email in error you are requested to 
notify the sender by return email or contact council on 1300 00 7272 and are 
prohibited from forwarding, printing, copying or using it in anyway, in whole 
or part. Please note that some council staff utilise Blackberry devices, which 
results in information being transmitted overseas prior to delivery of any 
communication to the device.  In sending an email to Council you are agreeing 
that the content of your email may be transmitted overseas. Any views expressed 
in this email are the author's, except where the email makes it clear 
otherwise. The unauthorised publication of an email and any attachments 
generated for the official functions of council is strictly prohibited. Please 
note that council is subject to the Right to Information Act 2009 (Qld) and 
Information Privacy Act 2009 (Qld).


Accept-Encoding WCF Header issue

2011-01-20 Thread Peter Maddin
Apparently when building a web service under .NET 4.0, this heading is 
automatically added with gzip, deflate.


See "WCF Adding AcceptEncoding Header after Framework Upgrade from 3.5 
to 4.0" at

 
http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/bad614e9-9bf1-4062-b0b5-e5beba4539b5/

I found if you build against .Net 3.5 this heading was not added. So 
that is one way out.


If you need .NET 4.0 then you can turn it off, see 
http://msdn.microsoft.com/en-us/library/dd456789.aspx


   
   By default, a WCF client sends an *Accept-Encoding*header to the
   server to notify that it can decompress data.
   This default behavior can be turned off by creating a custom binding
   based on the HttpTransportBindingElement
    and setting
   the DecompressionEnabled
   

   property to *false*.
   


However in my test application, I still get a null returned from my 
client proxy.method call.  The Accept-Encoding probably had nothing to 
do with my problem.


Interesting, neither of two geocoder c# demo applications I downloaded 
from web work either (they both get a null  returned from their client 
proxy method call as well. It must be something else. I will investigate 
this later after I have learnt some more.


Regards Peter