Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 11 Dec 2018, 03:39
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Locator 3.5
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 4 [50 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
Moat


Joined: 16 Jul 2013
Posts: 931
Location: Mid-mitten

PostPosted: Tue 28 Apr 2015, 01:38    Post subject:  

Geoffrey wrote:
Also done...


Lol! Very Happy Fantastic! Thanks much, Geoffrey. This application just became 10x more useful, for me.

Preferences working just as they should, here.

And yes - setting the displayed image to 1/2 via the line 29 tweak does the trick on this monitor.

Great app! Just too cool... Cool

Thanks again,

Bob
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2362
Location: Queensland

PostPosted: Wed 06 May 2015, 07:39    Post subject:  

Updated to version 3.5, see first post.
_________________
Carolina: Recent Repository Additions

Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1470
Location: Ukraine

PostPosted: Mon 25 Jul 2016, 15:31    Post subject:  

Dear Geoffrey,

Thanks very much for Locator. It is very slick and requires very little, which is great. I took the trouble of optimizing the Google maps svg, and it is now clearer, to me anyway, and 1/3 the size. Maybe you can make use of it.

With kind regards,
vovchik
google-maps.svg.tar.gz
Description 
gz

 Download 
Filename  google-maps.svg.tar.gz 
Filesize  3.39 KB 
Downloaded  162 Time(s) 
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2362
Location: Queensland

PostPosted: Tue 26 Jul 2016, 10:01    Post subject:  

vovchik wrote:
Dear Geoffrey,

Thanks very much for Locator. It is very slick and requires very little, which is great. I took the trouble of optimizing the Google maps svg, and it is now clearer, to me anyway, and 1/3 the size. Maybe you can make use of it.

With kind regards,
vovchik


Glad you like it, I was going to add more features, but opted not to, it works fine as is and doing so would of made it overly complex, your svg works fine, though I had to change all the single quotes(') to double(") for it to work in the script.

Here is a tar.gz with your svg for anyone that wants it, just extract it to /usr/bin to replace the existing file, or if you don't have the pet installed the script can be run from anywhere you like as a standalone.

I'm running this in X-Slacko 4.1, the only function that doesn't work is the save as eps, this version of rsvg-convert wasn't compiled with the support for it.
locator-3.6.tar.gz
Description 
gz

 Download 
Filename  locator-3.6.tar.gz 
Filesize  8.46 KB 
Downloaded  179 Time(s) 
locator.jpg
 Description   
 Filesize   42.49 KB
 Viewed   542 Time(s)

locator.jpg


_________________
Carolina: Recent Repository Additions

Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 3483
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Wed 27 Jul 2016, 13:29    Post subject:  

Bonjour Geoffrey,
Thank you for this!
Do you think it would be possible to internationalize your application (using gettext - Note that I eventually could do it and make the French mo file in the wake...)?

Cordialement..

_________________

Back to top
View user's profile Send private message Visit poster's website 
Geoffrey


Joined: 30 May 2010
Posts: 2362
Location: Queensland

PostPosted: Wed 27 Jul 2016, 19:13    Post subject:  

Argolance wrote:
Bonjour Geoffrey,
Thank you for this!
Do you think it would be possible to internationalize your application (using gettext - Note that I eventually could do it and make the French mo file in the wake...)?

Cordialement..


I'm glad you like it, I really haven't had much to do with gettext, not sure how the Gui would look with the different length of words, as I did juggle with it to keep it symmetrical.

I guess I could give it a try, though it may take me awhile to do so, as I haven't been very active with puppy for some time now and at the moment I'm helping my son renovate his house, so slowly slowy Very Happy .

_________________
Carolina: Recent Repository Additions

Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 3483
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Thu 28 Jul 2016, 05:07    Post subject:  

Bonjour,
Quote:
I'm glad you like it,
Thanks to Médor who drew our attention on, in the French part of the Forum!
Quote:
not sure how the Gui would look with the different length of words, as I did juggle with it to keep it symmetrical.
Yes, I well understand... One English word often needs two/three French words to be correctly translated. All the same with Spanish and German. But this only concerns the main window and particularly the two red icons' Search' and 'Update' (respectively 'Chercher' et 'Mettre à jour' in French Embarassed). Note that they are very explicit by themselves and might be with no label and just show their popup on mouse hovering?
Quote:
I'm helping my son renovate his house, so slowly slowy

Good luck!

Cordialement.

_________________

Back to top
View user's profile Send private message Visit poster's website 
Geoffrey


Joined: 30 May 2010
Posts: 2362
Location: Queensland

PostPosted: Mon 22 Aug 2016, 10:13    Post subject:  

I'm still playing with this script, I haven't done anything with language yet but have added a few features.

It now can view hybrid image as well as the plain map and satellite images.

The location text size and color can be changed.

When saved as a pdf or svg they now have a hyperlink added that opens the location in google maps, uses ghostscript to add the hyperlink to the pdf, svg is just a sed command that appends the svg file with the required code.

From the testing I've done it seems work as I planned.

If you wish to try it, the /root/.locator file will need to be deleted first

Sample svg with hyperlink

Sample pdf with hyperlink

edit grammar
locator3.7.jpg
 Description   
 Filesize   56.77 KB
 Viewed   426 Time(s)

locator3.7.jpg

locator.tar.gz
Description 
gz

 Download 
Filename  locator.tar.gz 
Filesize  8.85 KB 
Downloaded  193 Time(s) 

_________________
Carolina: Recent Repository Additions


Last edited by Geoffrey on Sun 06 May 2018, 17:22; edited 2 times in total
Back to top
View user's profile Send private message 
perdido


Joined: 09 Dec 2013
Posts: 1061
Location: ¿Altair IV , Just north of Eeyore Junction.?

PostPosted: Sun 30 Jul 2017, 18:32    Post subject:  

Hi Geoffrey,

Never properly thanked you for this excellent little program.

THANK YOU!

Whenever I need to look up a city or address anywhere on earth this program
always comes through with excellent maps, satellite views and even google street views.

.

_________________
Giving with an expectation for return brings misery.
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 2834
Location: 500 seconds from Sol

PostPosted: Sun 30 Jul 2017, 22:20    Post subject:  

Hi Geoffrey,

perdido wrote:

THANK YOU!

.


Ditto. And thanks you perdido for doing pelo's job --bringing to our attention excellent applications which otherwise might be forgotten.

mikesLr
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 2792
Location: South Australia :-(

PostPosted: Mon 31 Jul 2017, 03:12    Post subject:  

@Geoffrey,

Nice app, although it doesn’t adjust the the GUI for dual screens.

The xwininfo command sees my screen as 3360 which it is if you add both screen together. (2 x 1680)

This dodgy fix at line 29 solve it for me.
#H=$(bc <<< "scale=2; 480 / 640 * $WIDTH")
H="700"

It does add a scroll bar to the mix but that's ok.

Cheers

_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
Geoffrey


Joined: 30 May 2010
Posts: 2362
Location: Queensland

PostPosted: Tue 01 Aug 2017, 21:22    Post subject:  

smokey01 wrote:
Nice app, although it doesn’t adjust the the GUI for dual screens.



Yea Smokey, how it displays isn't the best, I would of liked the UI and image resizeable on the fly, but the limitations of gtkdialog made that impossible, for me anyway Wink

_________________
Carolina: Recent Repository Additions

Back to top
View user's profile Send private message 
Marv


Joined: 04 May 2005
Posts: 1099
Location: SW Wisconsin

PostPosted: Fri 04 Aug 2017, 00:03    Post subject:  

Hi Geoffrey,

I've been happily using and installing locator for quite a while now, mostly on X-slacko and earlier pups. Some time ago I noticed that the fixed map wasn't displaying on newer pups such as Tahr, Xenial or the various LxPupSc's. Pretty much ignored it as a click through opens the google map in the default browser just fine. Just now did a bit of chasing and made a little test file that only embeds a presaved png into a svg and saves that svg so I can look at it, and the librsvg version is almost certainly the culprit. X-slacko 4.2 has the 2.36.4 version and works. X-tahr 2.0 has the 2.40.2 and fails. Anything with newer libs yet also fails. Substituting the 2.36.4 libs into X-Tahr suceeds. The tag line that fails in the 3.7 locator is (older versions behave identically):

322: <image xlink:href="/tmp/locator/.png"
323: width="640" height="480" />

The text is always embedded correctly and play as I might with the image tag line, it always embeds in the older libs but never in the newer. I'm quite sure I've ruled out any hardware/display factors by the simple file generating test prog I used (I am an all intel shop though). Never any terminal errors, either in sucessful or unsucessful embeds.

I've searched for any changes in the svg tag line requirements that might make this happen and tried other examples posted online with the same result.. rectangles, circles, base64 images, text all work in both. embedding pngs doesn't. I don't see anything out of line with that tag line at all. Any svg gurus out there?

It's a small thing but It's so stunning when the lil map just pops up Smile
X-slacko-4.2 is still my workhorse but in some users cases I've had to move beyond it for CUPS version/printer support and it'd be great to have the little critter working fully there too.

Cheers,

edited for typo. one svc should have been svg.

_________________
Pups currently in kennel Very Happy LxPupSc and X-slacko-4.4 for my users; LxPupSc, LxPupSc64, LxPupBionic, upupbb and upupcc for me. All good pups indeed, and all running savefiles for look'n'feel only. Browsers, etc. solely from SFS.

Last edited by Marv on Sun 06 Aug 2017, 17:36; edited 2 times in total
Back to top
View user's profile Send private message 
perdido


Joined: 09 Dec 2013
Posts: 1061
Location: ¿Altair IV , Just north of Eeyore Junction.?

PostPosted: Sun 06 Aug 2017, 03:52    Post subject:  

Marv wrote:
Hi Geoffrey,

I've been happily using and installing locator for quite a while now, mostly on X-slacko and earlier pups. Some time ago I noticed that the fixed map wasn't displaying on newer pups such as Tahr, Xenial or the various LxPupSc's. Pretty much ignored it as a click through opens the google map in the default browser just fine. Just now did a bit of chasing and made a little test file that only embeds a presaved png into a svg and saves that svg so I can look at it, and the librsvc version is almost certainly the culprit. X-slacko 4.2 has the 2.36.4 version and works. X-tahr 2.0 has the 2.40.2 and fails. Anything with newer libs yet also fails. Substituting the 2.36.4 libs into X-Tahr suceeds. The tag line that fails in the 3.7 locator is (older versions behave identically):

322: <image xlink:href="/tmp/locator/.png"
323: width="640" height="480" />

The text is always embedded correctly and play as I might with the image tag line, it always embeds in the older libs but never in the newer. I'm quite sure I've ruled out any hardware/display factors by the simple file generating test prog I used (I am an all intel shop though). Never any terminal errors, either in sucessful or unsucessful embeds.

I've searched for any changes in the svg tag line requirements that might make this happen and tried other examples posted online with the same result.. rectangles, circles, base64 images, text all work in both. embedding pngs doesn't. I don't see anything out of line with that tag line at all. Any svg gurus out there?

It's a small thing but It's so stunning when the lil map just pops up Smile
X-slacko-4.2 is still my workhorse but in some users cases I've had to move beyond it for CUPS version/printer support and it'd be great to have the little critter working fully there too.

Cheers,


Hello Marv,

Thanks for pointing that out.

I get the same not displaying map in Locator window with Puppy Tahr 6.0.5., hardware is a Dell laptop with Nvidia graphics.
I always click the Locator window to open the defaultbrowser but I agree it is neat having the map pop up in the Locator
window first.

It works fine for me in Puppy Precise 5.7.1 - to mean it shows the map in the Locator window and opens the browser when
clicking the map. Puppy Precise 5.7.1 has the librsvg-2.so.2.36.1

If one were to permanently substitute the older librsvg-2.36 package into Tahr & Xenial would that necessarily cause issues
in those OS's, or maybe just not be noticeable?

.
Back to top
View user's profile Send private message 
perdido


Joined: 09 Dec 2013
Posts: 1061
Location: ¿Altair IV , Just north of Eeyore Junction.?

PostPosted: Sun 06 Aug 2017, 16:20    Post subject:  

So just playing with the librsvg substitution and I confirm it fixes the Locator window map display in 32-bit Tahrpup 6.0.5, 32-bit puppy Xenial or 32-bit puppy Stretch to show the map.

Subsituted /usr/lib/librsvg libs from 32-bit precise into 32-bit tahr, xenial and stretch.

So in 32-bit Puppy Tahr, 32-bit puppy Xenial or 32-bit puppy Stretch
Renamed /usr/lib/librsvg-2.so to librsvg-2.so.old
Renamed /usr/lib/librsvg-2.so.2 to librsvg-2.so.2.old

Then copied the following from 32-bit Puppy Precise 5.7.1 to Puppy Tahr 6.0.5. 32-bit puppy Xenial or 32-bit puppy Stretch
Copied /usr/lib/ librsvg-2.so to /usr/lib/
Copied /usr/lib/ librsvg-2.so.2 to /usr/lib/
Copied /usr/lib/ librsvg-2.so.2.36.1 to /usr/lib/

Locator now showing its map as expected.
So far no problems in 32-bit Tahrpup, 32-bit puppy Xenial or 32-bit puppy Stretch from the librsvg switch. Will report back if something gets broken.

If you want to play around with this the libs from ubuntu Precise 12.04 can be found at the following links.
Of course this is a use at your own risk experiment Exclamation

The 32-bit version of librsvg-2.36 can be found at http://ibm-pc.org/puppy/precise/librsvg-precise-2-2_36.1.pet

The 64-bit version of librsvg-2.36 from ubuntu can be found at http://security.ubuntu.com/ubuntu/pool/main/libr/librsvg/librsvg2-2_2.36.1-0ubuntu1.1_amd64.deb
Note that have not been able to substitute the libs in a 64-bit puppy and make it work....yet.
If you find a way for 64-bit please post here!

edit: added some info & changed link to 32-bit pet because of missing symlink in ubuntu deb

Last edited by perdido on Mon 21 Aug 2017, 15:44; edited 9 times in total
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 4 [50 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1693s ][ Queries: 12 (0.0444s) ][ GZIP on ]