Re: [Pharo-users] GPS / Longitude / Latitude library

2018-12-04 Thread Norbert Hartl
Just for the record. I have a GeoJSON (http://geojson.org/) package at https://github.com/noha/geo-json/ This tackles geo coordinates from yet another angle: How to model a geo position as POI (point of interest) and having a common format for it. And in the meantime geo json is the storage

Re: [Pharo-users] GPS / Longitude / Latitude library

2018-12-04 Thread Benoit St-Jean via Pharo-users
--- Begin Message --- Perhaps porting the R package GeoSphere to Pharo/Squeak/Smalltalk would be an option?  It's rather complete and used a lot (at least in the R community) ! https://cran.r-project.org/web/packages/geosphere/geosphere.pdf - Benoît St-Jean Yahoo! Messenger:

Re: [Pharo-users] GPS / Longitude / Latitude library

2018-12-04 Thread Alistair Grant
Hi Pierce & Richard, Thanks for your replies. On Wed, Dec 05, 2018 at 10:24:18AM +0800, Pierce Ng wrote: > On Tue, Dec 04, 2018 at 10:21:20AM +0100, Alistair Grant wrote: > > Does anyone know of a library for processing GPS coordinates? > > > > What I'm looking for are things like: > > > > -

Re: [Pharo-users] GPS / Longitude / Latitude library

2018-12-04 Thread Alistair Grant
Hi Sven, On Tue, 4 Dec 2018 at 11:04, Sven Van Caekenberghe wrote: > > Hi Alistair, > > > On 4 Dec 2018, at 10:21, Alistair Grant wrote: > > > > Hi, > > > > Does anyone know of a library for processing GPS coordinates? > > > > What I'm looking for are things like: > > > > - Parsing from and

Re: [Pharo-users] can I avoid the nested loops

2018-12-04 Thread Roelof Wobben
Thanks, I think that is because im a beginner which has to learn a lot. May I have a hint how to read the data as as Dictonary. Right now I use a OrderedCollection for that. I read in the data like this : lines :=

Re: [Pharo-users] can I avoid the nested loops

2018-12-04 Thread Richard O'Keefe
The data set AoC gave me for problem 3 has 1353 claims. The brute force way is to make your x->(y->count) map and then walk over it counting the number of counts > 1, n := 0. map do: [:row | row do: [:count | count > 1 ifTrue: [n := n+1]]]. On Wed, 5 Dec 2018 at 11:06,

Re: [Pharo-users] GPS / Longitude / Latitude library

2018-12-04 Thread Richard O'Keefe
As Dershowitz and Reingold showed in their book "Calendrical Calculations", converting from UTC to several calendars needs latitude, longitude, and elevation. ISO 6709 is the relevant standard: https://en.wikipedia.org/wiki/ISO_6709 On Tue, 4 Dec 2018 at 23:35, Cédrick Béler wrote: >

Re: [Pharo-users] can I avoid the nested loops

2018-12-04 Thread Richard O'Keefe
First, this is a computational geometry problem, as is the second part. If this were a serious problem or had a huge amount of data, we would be looking for a good data structure for holding a collection of rectangles. We might consider quad-trees, k-d-trees, R-trees, ... With such a data

Re: [Pharo-users] GPS / Longitude / Latitude library

2018-12-04 Thread Pierce Ng
On Tue, Dec 04, 2018 at 10:21:20AM +0100, Alistair Grant wrote: > Does anyone know of a library for processing GPS coordinates? > > What I'm looking for are things like: > > - Parsing from and printing to various string formats (HMS, NESW, decimal) > - Distance between two points > - etc.

Re: [Pharo-users] can I avoid the nested loops

2018-12-04 Thread p...@highoctane.be
A claim is a claim ID + a rectangle. "If the Elves all proceed with their own plans, none of them will have enough fabric. How many square inches of fabric are within two or more claims?" <--- actual question. units are inches. So, question translates to: "What is the total area of rectangle

Re: [Pharo-users] can I avoid the nested loops

2018-12-04 Thread Roelof Wobben
Thanks I found that out already. Now trying to understand what they mean with this exactly If the Elves all proceed with their own plans, none of them will have enough fabric. How many square inches of fabric are within two or more claims? They give some

Re: [Pharo-users] Pharo 7 Monticello browser and github repositories

2018-12-04 Thread Ben Coman
On Wed, 5 Dec 2018 at 00:45, Sanjay Minni wrote: > I get this problem when trying to install a package (VoyageMongo) thru > Catalog Browser > > Pharo 7.0.0rc1 on Win 10 32 bit fresh image->Catalogue Browser > Select VoyageMongo ->-> install stable version > > why does the installation just

Re: [Pharo-users] can I avoid the nested loops

2018-12-04 Thread Ben Coman
On Wed, 5 Dec 2018 at 00:45, Roelof Wobben wrote: > so like this ? > > so first the intersect between rectangle1 and rectangle2 > store it > and then the intersection between the stored one and rectangle3 > and so on > then its time to look how I must define a rectangle when I know the >

Re: [Pharo-users] Voyage

2018-12-04 Thread Ben Coman
On Wed, 5 Dec 2018 at 00:25, Sanjay Minni wrote: > Hi Esteban, > > I get a Debug Popup as per below - how do I debug from here > > > > > Is this on Windows? It could be

[Pharo-users] Alternative to NautilusMethodSelected in Calypso

2018-12-04 Thread Gustavo Santos
Hello, I'm trying to upgrade MacroRecorder to Pharo7. I used NautilusClassSelected and NautilusMethodSelected announcements to apply a macro in a given class or method right after the developer clicks on the browser. Something like AbstractNautilusPlugin subclass: #MRNautilusPlugin ...

Re: [Pharo-users] Pharo 7 Monticello browser and github repositories

2018-12-04 Thread Sanjay Minni
I get this problem when trying to install a package (VoyageMongo) thru Catalog Browser Pharo 7.0.0rc1 on Win 10 32 bit fresh image->Catalogue Browser Select VoyageMongo ->-> install stable version why does the installation just abort with the message:

Re: [Pharo-users] can I avoid the nested loops

2018-12-04 Thread Roelof Wobben
so like this ? so first the intersect between rectangle1 and rectangle2 store it and then the intersection between the stored one and rectangle3

Re: [Pharo-users] can I avoid the nested loops

2018-12-04 Thread p...@highoctane.be
Use Rectangle class and intersect: method? On Tue, Dec 4, 2018 at 5:07 PM Roelof Wobben wrote: > Hello, > > For adventofCode I had to write some code that calculates the overlap that > multiple rectangles have. > > Fo far I have it working for 1 rectangle but I do not like the code > because

Re: [Pharo-users] Voyage

2018-12-04 Thread Sanjay Minni
Hi Esteban, I get a Debug Popup as per below - how do I debug from here EstebanLM wrote > There is indeed a problem because cryptography package is still using an > old

[Pharo-users] can I avoid the nested loops

2018-12-04 Thread Roelof Wobben
Hello, For adventofCode I had to write some code that calculates the overlap that multiple rectangles have. Fo far I have it working for 1 rectangle but I do not like the code because of the nested loops. Can I make this more the pharo way

Re: [Pharo-users] GPS / Longitude / Latitude library

2018-12-04 Thread Cédrick Béler
Interesting. I’m interested with such tools too. I ask students to do gps point collection from mobile (Cordova) and process them in pharo to detect if they enter known places. I wonder if a proper gps point class would be useful. I’d like to record also the precision. Cheers, Cedrick

Re: [Pharo-users] GPS / Longitude / Latitude library

2018-12-04 Thread Todd Blanchard via Pharo-users
--- Begin Message --- I have long wanted to do a FFI interface to GDAL. I think Pharo would make a great GIS workbench. Possibly when 64bit UFFI stabilizes. > On Dec 4, 2018, at 1:21 AM, Alistair Grant wrote: > > Hi, > > Does anyone know of a library for processing GPS coordinates? > >

Re: [Pharo-users] GPS / Longitude / Latitude library

2018-12-04 Thread Alistair Grant
Hi Sven, Thanks. This is just for me playing around with my photo collection, i.e. find all photos from a particular location, i.e. within a specified distance of a point. Also maybe add GPS coordinates to some photos. Thanks again, Alistair On Tue, 4 Dec 2018 at 11:04, Sven Van Caekenberghe

Re: [Pharo-users] GPS / Longitude / Latitude library

2018-12-04 Thread Sven Van Caekenberghe
Hi Alistair, > On 4 Dec 2018, at 10:21, Alistair Grant wrote: > > Hi, > > Does anyone know of a library for processing GPS coordinates? > > What I'm looking for are things like: > > - Parsing from and printing to various string formats (HMS, NESW, decimal) > - Distance between two points > -

Re: [Pharo-users] [ANN] PetitParser (1) has been migrated to Github

2018-12-04 Thread Steffen Märcker
Great, thanks a lot! Steffen Am .12.2018, 10:22 Uhr, schrieb Julien : Hello, I just finished the migration of PetitParser (1) on Github: https://github.com/moosetechnology/PetitParser . I created a release v1.9.2 which mirrors latest

[Pharo-users] [ANN] PetitParser (1) has been migrated to Github

2018-12-04 Thread Julien
Hello, I just finished the migration of PetitParser (1) on Github: https://github.com/moosetechnology/PetitParser . I created a release v1.9.2 which mirrors latest release of Smalltalkhub. Cheers, Julien --- Julien Delplanque Doctorant à

[Pharo-users] GPS / Longitude / Latitude library

2018-12-04 Thread Alistair Grant
Hi, Does anyone know of a library for processing GPS coordinates? What I'm looking for are things like: - Parsing from and printing to various string formats (HMS, NESW, decimal) - Distance between two points - etc. Thanks, Alistair

Re: [Pharo-users] Latest Pharo and Aida/Web

2018-12-04 Thread eftomi
Thanks, Benoît, it helped! However, when I visit the home page another halt happens in AIDASite>>answerTo: with exception "Error: Guest user missing?", so the digging continues … Tomaz -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html