Re: Starting Chicago Gnome User Group
- From: Dave Neary <bolsh gnome org>
- To: Patrick Wagstrom <patrick wagstrom net>
- Cc: marketing-list gnome org
- Subject: Re: Starting Chicago Gnome User Group
- Date: Mon, 23 Apr 2007 18:58:29 +0200
Hi (again) Patrick,
Patrick Wagstrom wrote:
>> 1. Identify a starting group of 6 or 8 people who will give you some
>> initial momentum (the GNOME map moght help with this:
>> http://live.gnome.org/GnomeWorldWide)
>
> Is there a way to make this a higher resolution map? While it's cool
> and all that, it's nigh impossible to actually read the data on the map
> for anywhere that has more than 200 people. Barring that, does anyone
> have GoogleMaps-Fu to make it into something scalable, so we can better
> see where people are. I can make out a few names in the Northeast and
> Midwest, but I can't tell enough about where they are.
It's a hack I did in a few minutes, but here's a script I wrote:
#!/bin/bash
# Usage: gnome_user_list.sh filename lat_min lat_max long_min long_max
lat_min=$2
lat_max=$3
long_min=$4
long_max=$5
while read lat long user; do
# Strip leading #s, bc doesn't like them
lat=${lat#+}
long=${long#+}
if (echo "$lat $long $user" | grep -v '\.[0-9]*\.' > /dev/null) ; then
in_range=`echo "( $lat > $lat_min ) && ( $lat < $lat_max ) && (
$long > $long_min ) && ( $long < $long_max )" | bc `;
if [ $in_range -eq 1 ]; then
echo $lat " " $long " " $user;
fi
fi
done < $1
Run it like this with a list of names in the raw text format from the wiki:
dneary sligo:~/src/gnome$ ./gnome_user_list.sh gnome_users.txt 36.9 49.5
-97.2 -80.5
40.109683 -083.124626 "Harshy" # Sean Harshbarger, Dublin, OH, USA
39.9991 -86.0765 "jimmy_dean"
40.090943 -88.257737 "shaunm" # Shaun McCance, Champaign, IL, USA
43.3431 -85.9239 "stro" # Luke Stroven, Bridgeton, MI, USA
42.7335 -83.0364 "whiprush" # Jorge Castro, Washington, MI, USA
38.623850 -90.308056 "jamin" # Jamin P. Gray, St. Louis, MO USA
41.795708 -087.582358 "trow" # Jon Trowbridge, Chicago, IL, USA
41.6638 -91.5378 "tremobyl" # Beppo Verde, Iowa City, IA, USA
41.9317 -88.7567 "jcape" # JamesCape, !DeKalb, IL, USA
42.018 -91.5968 "mxpxpod" # Bryan Forbes, Marion, IA, USA
44.9391 -93.254 "jjongsma" # Jonathon Jongsma, Minneapolis, MN, USA
44.7853 -93.5766 "silwenae" # PaulCutler, Minneapolis, MN, USA
41.9397 -87.6504 "gabaug" # GabrielBurt, Chicago, IL, USA
41.5131 -81.604 KevinKubasik # Cleveland, Ohio, USA
41.105 -81.609 "JRaster" # James Dodd, Copley, Ohio, USA
Out pops everyone in the latitude/longtitude range that you specify on
the command line.
Cheers,
Dave.
--
Dave Neary
GNOME Foundation member
bolsh gnome org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]