public inbox for gentoo-project@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-project] New developer: Ron Gemeinhardt (timebandit)
@ 2008-09-22 12:52 Denis Dupeyron
  2008-09-22 13:14 ` Nirbheek Chauhan
  2008-09-22 23:15 ` [gentoo-project] " Jorge Manuel B. S. Vicetto
  0 siblings, 2 replies; 9+ messages in thread
From: Denis Dupeyron @ 2008-09-22 12:52 UTC (permalink / raw
  To: gentoo-project; +Cc: gentoo-dev-announce

I'm pleased to introduce Ron Gemeinhardt (timebandit) as a new Gentoo
developer. Ron will be a moderator with the forums team.

Ron is an electrical engineer in theory and a software architect in
practice. Having been in the IT business for more than 25 years he has
extensive knowledge of $(for ACRONYM in "${LinkedIn}"; do echo -n "
${ACRONYM},"; done). This also automatically gives him access to the
Old Boys club in Gentoo. Ron, should you accept the invitation you
will receive a complimentary Viagra 10-pack. Don't pass this up, it
changed my life.

Let's face it though, Ron wasn't recruited because of what he knows or
can do, but simply for his fine taste. He has a penchant for Formula
1. The rest is almost insignificant: photography, kiteflying and
reading. And although he has lived in New Jersey all his life he has
traveled a lot in the USA, Europe and the Caribbean.

Ron's ultimate goal in life is to someday learn why everyone on IRC
points at amne and laughs.

Please everybody, give a warm welcome to timebandit.

Denis.

PS. The first one who comments about a comma at the end of the script
output above gets a free review with me. First-class care guaranteed.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-project] New developer: Ron Gemeinhardt (timebandit)
  2008-09-22 12:52 [gentoo-project] New developer: Ron Gemeinhardt (timebandit) Denis Dupeyron
@ 2008-09-22 13:14 ` Nirbheek Chauhan
  2008-09-26  8:39   ` [gentoo-project] " Steve Long
  2008-09-22 23:15 ` [gentoo-project] " Jorge Manuel B. S. Vicetto
  1 sibling, 1 reply; 9+ messages in thread
From: Nirbheek Chauhan @ 2008-09-22 13:14 UTC (permalink / raw
  To: Denis Dupeyron; +Cc: gentoo-project

On Mon, Sep 22, 2008 at 6:22 PM, Denis Dupeyron <calchan@gentoo.org> wrote:
> I'm pleased to introduce Ron Gemeinhardt (timebandit) as a new Gentoo
> developer. Ron will be a moderator with the forums team.

Congrats, Ron, welcome and all that :-)

> Ron is an electrical engineer in theory and a software architect in
> practice. Having been in the IT business for more than 25 years he has
> extensive knowledge of $(for ACRONYM in "${LinkedIn}"; do echo -n "
> ${ACRONYM},"; done). This also automatically gives him access to the
[...]
> PS. The first one who comments about a comma at the end of the script
> output above gets a free review with me. First-class care guaranteed.

Actually, your fail was more than that.

If "LinkedIn" were a variable, then

$(for ACRONYM in ${LinkedIn}; do echo -n "${ACRONYM},"; done)

elif "LinkedIn" were an array, then

$(for ACRONYM in "${LinkedIn[@]}"; do echo -n "${ACRONYM},"; done)

Also, the extra comma can be fixed by doing the following:

$(for ACRONYM in ${LinkedIn}; do echo -en "${ACRONYM},"; done; echo -ne '\b')

So, where's my free review? ;p

-- 
~Nirbheek Chauhan



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-project] New developer: Ron Gemeinhardt (timebandit)
  2008-09-22 12:52 [gentoo-project] New developer: Ron Gemeinhardt (timebandit) Denis Dupeyron
  2008-09-22 13:14 ` Nirbheek Chauhan
@ 2008-09-22 23:15 ` Jorge Manuel B. S. Vicetto
  2008-09-26  9:24   ` Wernfried Haas
  1 sibling, 1 reply; 9+ messages in thread
From: Jorge Manuel B. S. Vicetto @ 2008-09-22 23:15 UTC (permalink / raw
  To: gentoo-project

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Denis Dupeyron wrote:
> I'm pleased to introduce Ron Gemeinhardt (timebandit) as a new Gentoo
> developer. Ron will be a moderator with the forums team.

Ron,

congrats for getting your "official" hat :)

> Let's face it though, Ron wasn't recruited because of what he knows or
> can do, but simply for his fine taste. He has a penchant for Formula
> 1. The rest is almost insignificant

hehe, these crazy tifosi :P

> Ron's ultimate goal in life is to someday learn why everyone on IRC
> points at amne and laughs.

Well, we might share it one day with you ;)

> Please everybody, give a warm welcome to timebandit.
> 

Welcome.

- --
Regards,

Jorge Vicetto (jmbsvicetto) - jmbsvicetto at gentoo dot org
Gentoo- forums / Userrel / Devrel / SPARC / KDE
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjYJyQACgkQcAWygvVEyAJ8cgCfSzaZAgmmkqKCDmU0c27H3Oxg
c90Anj6mx67MS4EYEE5foJ8Q0CFHxl9y
=B0qQ
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [gentoo-project]  Re: New developer: Ron Gemeinhardt (timebandit)
  2008-09-22 13:14 ` Nirbheek Chauhan
@ 2008-09-26  8:39   ` Steve Long
  2008-09-29  5:27     ` Nirbheek Chauhan
  0 siblings, 1 reply; 9+ messages in thread
From: Steve Long @ 2008-09-26  8:39 UTC (permalink / raw
  To: gentoo-project

Nirbheek Chauhan wrote:

> On Mon, Sep 22, 2008 at 6:22 PM, Denis Dupeyron <calchan@gentoo.org>
> wrote:
>> I'm pleased to introduce Ron Gemeinhardt (timebandit) as a new Gentoo
>> developer. Ron will be a moderator with the forums team.
> 
> Congrats, Ron, welcome and all that :-)
>
Welcome to the madhouse Ron :D
 
>> Ron is an electrical engineer in theory and a software architect in
>> practice. Having been in the IT business for more than 25 years
Yay, an old-timer! Excellent :-)

>> he has 
>> extensive knowledge of $(for ACRONYM in "${LinkedIn}"; do echo -n "
>> ${ACRONYM},"; done). This also automatically gives him access to the
> [...]
>> PS. The first one who comments about a comma at the end of the script
>> output above gets a free review with me. First-class care guaranteed.
> 
> Actually, your fail was more than that.
>
Tsk I thought you were better-mannered bheekling ;p
 
> If "LinkedIn" were a variable, then
> 
> $(for ACRONYM in ${LinkedIn}; do echo -n "${ACRONYM},"; done)
> 
> elif "LinkedIn" were an array, then
> 
> $(for ACRONYM in "${LinkedIn[@]}"; do echo -n "${ACRONYM},"; done)
> 
> Also, the extra comma can be fixed by doing the following:
> 
> $(for ACRONYM in ${LinkedIn}; do echo -en "${ACRONYM},"; done; echo -ne
> '\b')
>
Now that *is* fail ;-)
 
> So, where's my free review? ;p
> 
isArr LinkedIn || LinkedIn=($LinkedIn)
oIFS=$IFS
IFS=,                   # This line and next are what you should
echo "${LinkedIn[*]}"   # be aware of. cf: /msg greybot $@
IFS=$oIFS

(We just do: declare -r oIFS=$IFS
..at the start of our scripts, as it makes life easier in the long-run.)





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-project] New developer: Ron Gemeinhardt (timebandit)
  2008-09-22 23:15 ` [gentoo-project] " Jorge Manuel B. S. Vicetto
@ 2008-09-26  9:24   ` Wernfried Haas
  0 siblings, 0 replies; 9+ messages in thread
From: Wernfried Haas @ 2008-09-26  9:24 UTC (permalink / raw
  To: gentoo-project

[-- Attachment #1: Type: text/plain, Size: 521 bytes --]

On Mon, Sep 22, 2008 at 11:15:48PM +0000, Jorge Manuel B. S. Vicetto wrote:
> > Ron's ultimate goal in life is to someday learn why everyone on IRC
> > points at amne and laughs.
> 
> Well, we might share it one day with you ;)

It's so sekrit that they won't even tell me, but just everyone else.
Oh wait, there seems to be a pattern. :-P

cheers,
	Wernfried

-- 
Wernfried Haas (amne) - amne (at) gentoo.org
Gentoo Forums - http://forums.gentoo.org
forum-mods (at) gentoo.org
#gentoo-forums (freenode)

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-project] Re: New developer: Ron Gemeinhardt (timebandit)
  2008-09-26  8:39   ` [gentoo-project] " Steve Long
@ 2008-09-29  5:27     ` Nirbheek Chauhan
  2008-09-29 20:08       ` [gentoo-project] " Steve Long
  0 siblings, 1 reply; 9+ messages in thread
From: Nirbheek Chauhan @ 2008-09-29  5:27 UTC (permalink / raw
  To: Steve Long; +Cc: gentoo-project

On Fri, Sep 26, 2008 at 2:09 PM, Steve Long <slong@rathaus.eclipse.co.uk> wrote:
> Nirbheek Chauhan wrote:
>> Actually, your fail was more than that.
>>
> Tsk I thought you were better-mannered bheekling ;p
>

I had a momentary lapse of reason and had decided to join the ranks of
the lesser-mannered among us on these lists. I have since relapsed
back to my goody-goody self :p

>> $(for ACRONYM in ${LinkedIn}; do echo -en "${ACRONYM},"; done; echo -ne
>> '\b')
>>
> Now that *is* fail ;-)

Crap! I forgot, \b only works for displaying in the terminal; doesn't
actually "backspace" :(

>
>> So, where's my free review? ;p
>>
> isArr LinkedIn || LinkedIn=($LinkedIn)
> oIFS=$IFS
> IFS=,                   # This line and next are what you should
> echo "${LinkedIn[*]}"   # be aware of. cf: /msg greybot $@
> IFS=$oIFS
>
> (We just do: declare -r oIFS=$IFS
> ..at the start of our scripts, as it makes life easier in the long-run.)

Sigh... I think it's better to just live with the extra comma :p

-- 
~Nirbheek Chauhan



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [gentoo-project]  Re: Re: New developer: Ron Gemeinhardt (timebandit)
  2008-09-29  5:27     ` Nirbheek Chauhan
@ 2008-09-29 20:08       ` Steve Long
  2008-09-30  3:33         ` Ron Gemeinhardt
  0 siblings, 1 reply; 9+ messages in thread
From: Steve Long @ 2008-09-29 20:08 UTC (permalink / raw
  To: gentoo-project

Nirbheek Chauhan wrote:

> On Fri, Sep 26, 2008 at 2:09 PM, Steve Long <slong@rathaus.eclipse.co.uk>
> wrote:
>> Nirbheek Chauhan wrote:
>>> $(for ACRONYM in ${LinkedIn}; do echo -en "${ACRONYM},"; done; echo -ne
>>> '\b')
>>>
>> Now that *is* fail ;-)
> 
> Crap! I forgot, \b only works for displaying in the terminal; doesn't
> actually "backspace" :(
>
Eh works well enough for display (not file as you mentioned) it's just you
should know about "${arr[*]}" vs "${arr[@]}"
Both are designed to help with scriptin; the first with exactly this issue,
and the latter with handling array parameters correctly, analagous to "$@"
and "$*".
Check out http://wooledge.org:8000/BashFAQ/073 for more nice stuff you can
do with array expansions (as well as scalars.)
>>
>>> So, where's my free review? ;p
>>>
>> isArr LinkedIn || LinkedIn=($LinkedIn)
>> oIFS=$IFS
>> IFS=,                   # This line and next are what you should
>> echo "${LinkedIn[*]}"   # be aware of. cf: /msg greybot $@
>> IFS=$oIFS
>>
>> (We just do: declare -r oIFS=$IFS
>> ..at the start of our scripts, as it makes life easier in the long-run.)
> 
> Sigh... I think it's better to just live with the extra comma :p
> 
Pfft, you were already using an array: $(IFS=,; echo "${LinkedIn[*]}")
would've done. Since there was a subshell there, no need to worry about
saving IFS. Reason I mentioned it is because: unset IFS
isn't the same, and is generally useless compared to IFS=$oIFS ime.
(The isArr line just seemed better than '# if this is not an array..')





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-project]  Re: Re: New developer: Ron Gemeinhardt (timebandit)
  2008-09-29 20:08       ` [gentoo-project] " Steve Long
@ 2008-09-30  3:33         ` Ron Gemeinhardt
  2008-09-30  6:50           ` [gentoo-project] " Steve Long
  0 siblings, 1 reply; 9+ messages in thread
From: Ron Gemeinhardt @ 2008-09-30  3:33 UTC (permalink / raw
  To: gentoo-project

[-- Attachment #1: Type: text/plain, Size: 1222 bytes --]

Steve Long wrote:
> Nirbheek Chauhan wrote:
>> On Fri, Sep 26, 2008 at 2:09 PM, Steve Long <slong@rathaus.eclipse.co.uk>
>> wrote:
>>> Nirbheek Chauhan wrote:
>>>> $(for ACRONYM in ${LinkedIn}; do echo -en "${ACRONYM},"; done; echo -ne
>>>> '\b')
>>>>
>>> Now that *is* fail ;-)
>> Crap! I forgot, \b only works for displaying in the terminal; doesn't
>> actually "backspace" :(
>>
> Eh works well enough for display (not file as you mentioned) ... <snip>

Gentlemen, please...can we talk about me for a minute?
Though entertaining, this byplay eats into my allotted fifteen minutes of fame. ;-)

Besides, you really want something like:

	echo "knowledge of $(unset last; for ACRONYM in ${LinkedIn[*]};
		do echo -n ${last:+,}$arg; last=$arg; done)."

But I wasn't recruited to be a ebuild dev (Calchan would add, "yet") so I won't
point that out.

Thanks to all for the warm welcome!  I promise to do my best to moderate the
forums in the capricious, arbitrary and inscrutable--err, I mean, fair and
balanced--manner to which we're all accustomed.

-- 
Ron Gemeinhardt - timebandit(at)gentoo.org
Forums staff, Gentoo Linux
GnuPG FP:  7790 085F 6AC6 2F48 4F5E  97BD 700C F721 F680 641B


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [gentoo-project]  Re: Re: Re: New developer: Ron Gemeinhardt (timebandit)
  2008-09-30  3:33         ` Ron Gemeinhardt
@ 2008-09-30  6:50           ` Steve Long
  0 siblings, 0 replies; 9+ messages in thread
From: Steve Long @ 2008-09-30  6:50 UTC (permalink / raw
  To: gentoo-project

Ron Gemeinhardt wrote:

> Steve Long wrote:
>> Nirbheek Chauhan wrote:
>>> On Fri, Sep 26, 2008 at 2:09 PM, Steve Long
>>> <slong@rathaus.eclipse.co.uk> wrote:
>>>> Nirbheek Chauhan wrote:
>>>>> $(for ACRONYM in ${LinkedIn}; do echo -en "${ACRONYM},"; done; echo
>>>>> -ne '\b')
>>>>>
>>>> Now that *is* fail ;-)
>>> Crap! I forgot, \b only works for displaying in the terminal; doesn't
>>> actually "backspace" :(
>>>
>> Eh works well enough for display (not file as you mentioned) ... <snip>
> 
> Gentlemen, please...can we talk about me for a minute?
> Though entertaining, this byplay eats into my allotted fifteen minutes of
> fame. ;-)
>
LMAO.
 
> Besides, you really want something like:
>
Heh, you had to go there.. I think you'll fit right in ;-)
 
> echo "knowledge of $(unset last; for ACRONYM in ${LinkedIn[*]};
> do echo -n ${last:+,}$arg; last=$arg; done)."
> 
> But I wasn't recruited to be a ebuild dev (Calchan would add, "yet") so I
> won't point that out.
> 
That's good ;p as all that does is what:
(IFS=,; echo "Knowledge of: ${LinkedIn[*]}")
..does, only not as elegantly (tho I don't like the subshell) nor is it
actually correct; quite apart from the typo, it will split on any
whitespace, not array members (which can be _any_ string). If you want to
iterate over an array, use: for foo in "${array[@]}"

Another good one is: printf '%s\n' "${array[@]}"

NB: without quotes, there's no difference between ${array[@]} and
${array[*]}. They will both be treated as a string split into parameters
according to IFS (space, tab and newline by default; unset IFS only uses
space.) This is similar to: echo $foo   vs: echo "$foo"

Quotes around the * form gives a single string, with each array member
separated by the first char of IFS (space by default or if unset, use IFS=  
to get no separator.) Quotes around the @ form gives every member as a
separate parameter (which is what you pretty much always want, except for
display.)

> Thanks to all for the warm welcome!  I promise to do my best to moderate
> the forums in the capricious, arbitrary and inscrutable--err, I mean, fair
> and balanced--manner to which we're all accustomed.
> 
Glad to hear it, I've often thought the Forums should be more like Fox in
proselytising The Gentoo Way?.. *runs*





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-09-30  7:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-22 12:52 [gentoo-project] New developer: Ron Gemeinhardt (timebandit) Denis Dupeyron
2008-09-22 13:14 ` Nirbheek Chauhan
2008-09-26  8:39   ` [gentoo-project] " Steve Long
2008-09-29  5:27     ` Nirbheek Chauhan
2008-09-29 20:08       ` [gentoo-project] " Steve Long
2008-09-30  3:33         ` Ron Gemeinhardt
2008-09-30  6:50           ` [gentoo-project] " Steve Long
2008-09-22 23:15 ` [gentoo-project] " Jorge Manuel B. S. Vicetto
2008-09-26  9:24   ` Wernfried Haas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox