Re: [vwrap] Removing first name / last name assumptions?
Carlo Wood <carlo@alinoe.com> Tue, 06 April 2010 12:33 UTC
Return-Path: <carlo@alinoe.com>
X-Original-To: vwrap@core3.amsl.com
Delivered-To: vwrap@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix)
with ESMTP id A1B323A6837 for <vwrap@core3.amsl.com>;
Tue, 6 Apr 2010 05:33:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.852
X-Spam-Level:
X-Spam-Status: No, score=0.852 tagged_above=-999 required=5 tests=[AWL=-0.918,
BAYES_50=0.001, HELO_EQ_AT=0.424, HOST_EQ_AT=0.745, J_CHICKENPOX_43=0.6]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com
[127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cEiccCO3E+ol for
<vwrap@core3.amsl.com>; Tue, 6 Apr 2010 05:33:12 -0700 (PDT)
Received: from viefep20-int.chello.at (viefep20-int.chello.at [62.179.121.40])
by core3.amsl.com (Postfix) with ESMTP id 28B293A6810 for <vwrap@ietf.org>;
Tue, 6 Apr 2010 05:33:11 -0700 (PDT)
Received: from edge01.upcmail.net ([192.168.13.236]) by viefep20-int.chello.at
(InterMail vM.8.01.02.02 201-2260-120-106-20100312) with ESMTP id
<20100406123309.KRC26047.viefep20-int.chello.at@edge01.upcmail.net>;
Tue, 6 Apr 2010 14:33:09 +0200
Received: from mail9.alinoe.com ([77.250.43.12]) by edge01.upcmail.net with
edge id 2CZ51e0410FlQed01CZ6ia; Tue, 06 Apr 2010 14:33:09 +0200
X-SourceIP: 77.250.43.12
Received: from carlo by mail9.alinoe.com with local (Exim 4.71) (envelope-from
<carlo@alinoe.com>) id 1Nz7xp-0007S0-Di; Tue, 06 Apr 2010 14:33:05 +0200
Date: Tue, 6 Apr 2010 14:33:05 +0200
From: Carlo Wood <carlo@alinoe.com>
To: Meadhbh Hamrick <ohmeadhbh@gmail.com>
Message-ID: <20100406123305.GD27189@alinoe.com>
References: <62BFE5680C037E4DA0B0A08946C0933DCB738C13@rrsmsx506.amr.corp.intel.com>
<t2jb325928b1004051220i5f1d8f04od2602f26f758f3da@mail.gmail.com>
<CDB96FF3-A282-40B3-94D8-A9B6A00D8AF5@bbn.com>
<62BFE5680C037E4DA0B0A08946C0933DCB738C9B@rrsmsx506.amr.corp.intel.com>
<y2gb325928b1004051307u5f5e64d9zd18b70bfd8307d6a@mail.gmail.com>
<BAY136-DS161108878D3ED4F1383E2FDC190@phx.gbl>
<o2lb325928b1004051341ib0b441bfidcf661fa0a15693b@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <o2lb325928b1004051341ib0b441bfidcf661fa0a15693b@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
X-Cloudmark-Analysis: v=1.1 cv=KBHyIoyMIRH440NzHl6uMYpbxJngTLC2P1JzLC/QbPg=
c=1 sm=0 a=MQuG_ZtAow4A:10 a=38zWk6xDZSoA:10 a=kj9zAlcOel0A:10
a=BjFOTwK7AAAA:8 a=o8aY3WBxWsZXkbQwgDcA:9 a=X_Of6uW9cDryZY7z61oA:7
a=ORx7SrKydGfGl4we1NGS_N2xmnkA:4 a=CjuIK1q_8ugA:10 a=bW3kdApBr58A:10
a=HpAAvcLHHh0Zw7uRqdWCyQ==:117
Cc: vwrap@ietf.org
Subject: Re: [vwrap] Removing first name / last name assumptions?
X-BeenThere: vwrap@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Virtual World Region Agent Protocol - IETF working group
<vwrap.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/vwrap>,
<mailto:vwrap-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vwrap>
List-Post: <mailto:vwrap@ietf.org>
List-Help: <mailto:vwrap-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vwrap>,
<mailto:vwrap-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Apr 2010 12:33:13 -0000
On Mon, Apr 05, 2010 at 01:41:28PM -0700, Meadhbh Hamrick wrote:
> we have two existing implementations from organizations who have
> stated they would like to use this protocol. both use two strings at
> the moment. both COULD be converted to use a single identifier, and
> probably should, but one of them has the problem that the data is not
> "clean" and it would be difficult to find a programmatic mechanism to
> convert two strings to a single string without ambiguity.
I don't believe this.
Does Second Life have *ANY* login name that has a space in
it's LAST name? If so, please tell me which and allow me to
find it in the People Search in world.
If not, then your problem is solved: search for the first
space from the back, that is your separator.
Here is the implementation, let me know if you need a special
license or a transfer of copyright.
#include <stdio.h>
#include <string.h>
int main(int argc, char* argv[])
{
if (argc != 2)
{
printf("Usage: %s agent-ID-string\n", argv[0]);
return;
}
char* space = strrchr(argv[1], ' ');
if (!space)
{
printf("This is not a valid Second Life name\n");
return;
}
/* Start of EXTRA code LL needs to add to support VWRAP */
size_t len = space - argv[1];
char* firstname = argv[1];
argv[1][len] = 0;
char* lastname = firstname + len + 1;
/* End of EXTRA code LL needs to add to support VWRAP */
printf("Firstname = \"%s\", lastname = \"%s\"\n", firstname, lastname);
}
Example output:
$ ./a.out "abcde,fghi.jkl Linden"
Firstname = "abcde,fghi.jkl", lastname = "Linden"
--
Carlo Wood <carlo@alinoe.com>
- [vwrap] Removing first name / last name assumptio… Hurliman, John
- Re: [vwrap] Removing first name / last name assum… Meadhbh Hamrick
- Re: [vwrap] Removing first name / last name assum… Morgaine
- Re: [vwrap] Removing first name / last name assum… Richard Barnes
- Re: [vwrap] Removing first name / last name assum… Meadhbh Hamrick
- Re: [vwrap] Removing first name / last name assum… Hurliman, John
- Re: [vwrap] Removing first name / last name assum… Richard Barnes
- Re: [vwrap] Removing first name / last name assum… Meadhbh Hamrick
- Re: [vwrap] Removing first name / last name assum… Patnad Babii
- Re: [vwrap] Removing first name / last name assum… Meadhbh Hamrick
- Re: [vwrap] Removing first name / last name assum… Meadhbh Hamrick
- Re: [vwrap] Removing first name / last name assum… Hurliman, John
- Re: [vwrap] Removing first name / last name assum… Meadhbh Hamrick
- Re: [vwrap] Removing first name / last name assum… Meadhbh Hamrick
- Re: [vwrap] Removing first name / last name assum… Hurliman, John
- Re: [vwrap] Removing first name / last name assum… Hurliman, John
- Re: [vwrap] Removing first name / last name assum… Vaughn Deluca
- Re: [vwrap] Removing first name / last name assum… Morgaine
- Re: [vwrap] Removing first name / last name assum… Barry Leiba
- Re: [vwrap] Removing first name / last name assum… Meadhbh Hamrick
- Re: [vwrap] Removing first name / last name assum… Dave CROCKER
- Re: [vwrap] Removing first name / last name assum… Morgaine
- Re: [vwrap] Removing first name / last name assum… Morgaine
- Re: [vwrap] Removing first name / last name assum… Christian Scholz
- Re: [vwrap] Removing first name / last name assum… Carlo Wood
- Re: [vwrap] Removing first name / last name assum… Carlo Wood
- Re: [vwrap] Removing first name / last name assum… Carlo Wood
- Re: [vwrap] Removing first name / last name assum… Carlo Wood
- Re: [vwrap] Removing first name / last name assum… Carlo Wood
- Re: [vwrap] Removing first name / last name assum… Dzonatas Sol
- Re: [vwrap] Removing first name / last name assum… Meadhbh Hamrick
- Re: [vwrap] Removing first name / last name assum… Meadhbh Hamrick
- Re: [vwrap] Removing first name / last name assum… Dzonatas Sol
- Re: [vwrap] Removing first name / last name assum… Joshua Bell
- Re: [vwrap] Removing first name / last name assum… Meadhbh Hamrick
- Re: [vwrap] Removing first name / last name assum… Carlo Wood
- Re: [vwrap] Removing first name / last name assum… Morgaine
- Re: [vwrap] Removing first name / last name assum… Tammy Nowotny
- Re: [vwrap] Removing first name / last name assum… dyerbrookme@juno.com
- Re: [vwrap] Removing first name / last name assum… Patnad Babii
- Re: [vwrap] Removing first name / last name assum… dyerbrookme@juno.com
- Re: [vwrap] Removing first name / last name assum… Carlo Wood