acf_where

R

Roger Johansson

omega said:
If we still talk about visualizing the locations of acf-ers it
would be enough with a small circle for each, no label.

I can't see how that would be done for any more than a single entry,
not giving a placeholder name. The barrier I am seeing concerns how
it stores the values in its reg key. Each value name here needs to be
unique:

[HKEY_CURRENT_USER\Software\Software Gems\xearth for Windows\markers]
"Anchorage"="61.17,-150"
"Athens"="38,23.73"
"Baghdad"="33.4,44.4"
"Bangkok"="13.73,100.5"

Or did you find some other way of working with it, that I am overlooking?

I only tried entering via the settings in the program.

I entered the location zero zero, without label, and is shows up in the registry as
(Default) "0,0"

In the exported reg file it shows up as:
@="0,0"
 
O

omega

Roger Johansson said:
I only tried entering via the settings in the program.

I entered the location zero zero, without label, and is shows up in the registry as
(Default) "0,0"

In the exported reg file it shows up as:
@="0,0"

Yes, but that's only one entry. There the value name is "@" (aka "default").
That can only be used once, under that registry key. After that one, you'd
need to have other value names, each one unique...

[HKCU\Software\Software Gems\xearth for Windows\markers]
"@"="0,0"
"001"="61.17,-150"
"002"="38,23.73"
"003"="33.4,44.4"
"004"="13.73,100.5"

It doesn't help to try to use the "import text" option with a list, and
having the names all the same (or blank name for all). It will warn about
the name already being in use for each lat/long value. Then when close
and restart, the registry effect will be to only leave behind one entry.
 
R

Roger Johansson

omega said:
It doesn't help to try to use the "import text" option with a list, and
having the names all the same (or blank name for all). It will warn
about the name already being in use for each lat/long value. Then when
close and restart, the registry effect will be to only leave behind one
entry.

I tried now to enter a few more nameless dots, and first it seemed to
work, but when I exported the regfile it only had the last nameless dot
in it.

Okay, that doesn't work.

But using only 1 or 2 characters for each dot would reduce the clutter a
lot too. And then we could see the initials of the participators.

oRJ

at N65 E15
 
C

Cousin Stanley

Argentina, Buenos Aires majales
Australia, Melbourne Mike Echo
Australia, Melbourne canetoad
Australia, Melbourne derek / nul
Australia, New South Wales Aussie Bomber
Australia, Perth Badger
Australia, Queensland Kevin Pittman
Australia, Queensland miskairal
Brazil, Canoas, Rio Grande do Sul Chaos Master
Canada Paul Johnson
Canada, BC, Oliver (e-mail address removed)
Canada, BC, Vancouver, Duncan Island Daphne Eze
Canada, British Columbia My Key
Canada, Manitoba harsha godavari
Canada, New Brunswick Drummy
Canada, Ontario SW Rose Weir
Canada, Ontario, Ottawa mister
Canada, Saskatchewan GoodTime Barnie
Canada, Toronto xtort
Denmark, Århus Robert Larder
France, Paris Antoine
France, Vesoul, Haute-Saône Ninou
Germany, Munich Peter Seller
India, Mumbai ( Bombay ) Maria Alvares
Italy Beppe
Italy MLC
Japan, Kisarazu City GR
Minnesota, Minneapolis Dan Goodman
Netherlands Onno Voors
Netherlands, Eindhoven Rod
Netherlands, s-Hertogenbosch Henk de jong
New Zealand, Hells Kitchen Rotorua Rolf Carstens
New Zealand, Invercargill bambam
New Zealand, Raetihi Doc
New Zealand, Wellington Nicolaas Hawkins
Norway, Halden Vegard Krog Petersen
Russia alex
Sweden, North Roger Johansson
UK zoo
UK, Bolton D.G.
UK, Debyshire dfrog
UK, Forest of Dean Roger Hunt
UK, Hampshire Harvey Van Sickle
UK, Hertfordshire Dan Glybitz
UK, Penketh, Warrington Ray Milne
UK, Scotland Alastair Smeaton
UK, Scotland, Highlands Semolina Pilchard
UK, Selsey, West Sussex Pete Lawrence
UK, West Wales, Cardigan Bay Colin
UK, West Wales, Essex jo
US Global Warming
US, Alabama, Rogersville Vic Dura
US, Arizona, Phoenix Cousin Stanley
US, California, Ellay (e-mail address removed)
US, California, Northern omega
US, California, Silicon Valley BarryTone
US, Illinois, River Grove SYSYPHUS' SISTER
US, Kansas, Shawnee Glenn
US, Louisiana, NW FadedGlory
US, Louisiana, New Orleans Q
US, Maine, Bangor dszady
US, Maryland, Montgomery County Bill Day
US, Michigan Old Hippy
US, Michigan, Detroit Omar
US, Michigan, Grand Rapids Susan Bugher
US, Missouri burnr
US, New Jersey, Lawrenceville S.Hicks
US, New York, Upstate Dewey Edwards
US, North Carolina ? My Name
US, North Carolina, Albermarle ncSkeet
US, Ohio David P. Cox
US, Ohio, Beavercreek Ray
US, Ohio, Columbus Anne Carle
US, Oregon, Deer Island OhnO the Clown
US, Tennessee, Chattanooga Duddits
US, Texas, Austin jan
US, Texas, Bedford Ron May
US, Texas, Brackettville seabat
US, Texas, Dallas El Gee
US, Texas, Nacogdoches REM
US, Virginia, Ladysmith Richard
US, Washington, Northwest cathair
Wisconsin, Southeast John Hood


Current count is now 83 entries ....
 
O

omega

Roger Johansson said:
If we only knew what byte in the compiled exe to change, there is surely
a color byte there somewhere.

If we knew that we could hack it with a hex editor, or use a patch
program to change that byte.

Remember the words of Greg Hewgill: "Happy hacking!", so we are not doing
anything bad here.

I wouldn't begin to know how to find such a value. I opened it up in Fred,
did see where you could change the default cities, since those show up as
normal text. But for where there is a color value, no idea at all...
This "hacking" is an alternative to changing the code and recompiling it.

I don't have Visual C++, otherwise I would have tried.

This would be neat to see, for someone to adopt the project. Add a couple
of options. Include changing the way the city data is stored. For instance,
take the default cities out of the executable. And storing city groups in an
ini or other local data file, would be good, instead of under a registry key.
 
O

omega

Thanks, Cousin Stanley!

.. . . .
PS. When you get time, you might move the two entries below under the US.
I don't think either of the two states has seceded from the Union.
 
R

Roger Johansson

If xearth is used to create a picture, for example the earth from 3
different angles, like this OOO, America, Europe/Africa and
Asia/Australia, we could exchange the red color into somethings else,
using paint tools.

Such a picture could look nice on the PL list site(s) :)

***Here are we, who created this list.***


But only if the picture turned out really nice, and if everybody gave
their consense for being on the map.

A little tip, the location does not have to be precise.

Sometimes the person who creates the file will find that two or more
labels overlap, so they cannot be read. Like in the original settings,
Cairo and Jerusalem made each other impossible to read, so one has to fix
it somehow. Move one or more locations a little, for example.
 
C

Cousin Stanley

The Python program that does
the acf[ name : location ] sorting
is available at ....

http://fastq.com/~sckitching/Python/acf_where.py
[ 1.4 KB ]

The program is hard-coded for the file names
used in this particular task, but with a little
tweaking by adding parameters, could be generalizable
to sort a list of any [ key : value ] pairs
into file names desired by the user ....

Using one un-sorted file as input,
two sorted files are generated as output ....

o One sorted by name
o One sorted by location
 
C

Cousin Stanley

| PS. When you get time, you might move the two entries below
| under the US.

Cousin Karen ....

Thanks for the check ....

I spotted the US, Wisconsin omission just after posting,
but still managed to miss the US, Minnesota one even
after someone else gave me a clue ....
 
C

Chaos Master

omega is a lie:
[HKEY_CURRENT_USER\Software\Software Gems\xearth for Windows\markers]
"Anchorage"="61.17,-150"
"Athens"="38,23.73"
"Baghdad"="33.4,44.4"
"Bangkok"="13.73,100.5"

BTW, does anyone knows any good URL to find latitude/longitude of cities?

I want to set my city (Canoas) as viewpoint.

[]s
--
Chaos Master®, posting from somewhere near Porto Alegre, Brazil.
"... one either has a shit, or not. Do you have yours?"
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
http://marreka.blogspot.com --> news, hotter than high-power transistors!

To reply remove "DEADTOTHESPAMMER" from address.
 
C

Chaos Master

Rod is a lie:
The best so far I discovered is:

http://www.weatherbase.com

Your hometown according to them:

Canoas, Brazil
Elevation: 20 feet Latitude: 29 55S Longitude: 051 11W

Thank you!
--
Chaos Master®, posting from somewhere near Porto Alegre, Brazil.
"... one either has a shit, or not. Do you have yours?"
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
http://marreka.blogspot.com --> news, hotter than high-power transistors!

To reply remove "DEADTOTHESPAMMER" from address.
 
S

Susan Bugher

REM said:
I've got VC++ 5.0, but I'm in a time crunch. I'll give it a go shortly
if no one else does. The next 17 days are an uphill slide to
graduation.

Congratulations! :) :) :)

"uphill slide" ???

Susan
 
S

Susan Bugher

Roger said:
If xearth is used to create a picture, for example the earth from 3
different angles, like this OOO, America, Europe/Africa and
Asia/Australia, we could exchange the red color into somethings else,
using paint tools.

Such a picture could look nice on the PL list site(s) :)

***Here are we, who created this list.***

Sound good.

acf Members Sites - Cyberspace. . .
acf Members Sites - Earth. . . ;)
But only if the picture turned out really nice, and if everybody gave
their consense for being on the map.

Susan
 
C

Cousin Stanley

| This is my part of Scotland:

Cousin Semolina ....

Helmsdale is indeed a mighty fine looking city
and looks extremely clean and well-kept ....

www.helmsdale.org

Thanks for the glimpse ....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top