Puppy Units - convert common units

Mathematical tools, physics simulators, CAD, CNC, etc.
Post Reply
Message
Author
User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

Puppy Units - convert common units

#1 Post by don570 »

I've written a script to replace gmeasures.
It's purpose is to convert the common units quickly and accurately.

It will show in start menu along side the calculators.
EDIT - added more languages - now Italian , French Spanish , German

It would be flexible so any programmer could modify it. It is gettexted.

Instructions are in next post. Select a category and click 'Proceed'
Then select a conversion and enter a value. Click 'Convert'.
Attachments
PuppyUnits-2.2.pet
finished application
(39.77 KiB) Downloaded 1317 times
Last edited by don570 on Fri 06 Mar 2015, 01:12, edited 13 times in total.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#2 Post by don570 »

Here's a picture of version 1.0 ....

Image

_____________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#3 Post by don570 »

New version 1.2

-added more conversions
-math reference windows are completed

Note that the math reference windows feature slows down the launching
of the program however it's still quick enough. :lol:
__________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

new version 1.5

#4 Post by don570 »

new version 1.5

-custom conversion is possible. Just fill in a conversion factor
and puppy will remember the factor.

I have finished all the features. I will test it for the next couple days
and report back.

I would appreciate people installing version 1.5 and giving it a test.

Please report to me. Is it fast enough?? Any mistakes in conversions??

__________________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

Finsished version

#5 Post by don570 »

Finished version 1.6

- added a few small changes
-found mistake ----> name for gettext was Puppyunits.sh
It should have been PuppyUnits.sh

Oddly it still worked with momanager... :D


Contact me if you want to translate script using momanager.

It should be quite easy. albeit time- consuming.

Just set your computer language (for instance fr for French)
Then install dev SFS package and then launch momanager.
Send mo file to me for inclusion.

______________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#6 Post by don570 »

Version 1.7

I found out how to put a default entry into inputbox using Xdialog 8)
__________________________________________________

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#7 Post by technosaurus »

fyi - in posix shells the way to do default entries is ${VAR:-default_value}
so if $VAR is not set, it will display "default_value"
I once set up a whole method of localization this way that was faster than gettext and even had script for google to auto-translate the values
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
xanad
Posts: 400
Joined: Fri 28 Feb 2014, 14:56
Location: 2 locations: MonteRosa Alp and Milano
Contact:

#8 Post by xanad »

Ciao Don570,
after a few months here is the Italian translation.
Excellent pet, congratulations. :wink:
Attachments
PuppyUnits.tar.gz
(18.19 KiB) Downloaded 943 times

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#9 Post by don570 »

New version 1.8 has Italian translation - thanks to xanad

For some reason the Convert button isn't colored. I'll have to look into that.

Image

__________________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#10 Post by don570 »

version 1.9

- corrected mistake in solution to quadratic formula (bracket)

______________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#11 Post by don570 »

version 2.0

- I tracked down the bug that was causing my orange button
to stay white in the international versions. I had
forgotten to gettext in an 'if' statement

___________________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#12 Post by don570 »

version 2.1

-fixed volume of pyramid line

- added more languages - now Italian , French Spanish , German

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#13 Post by don570 »

version 2.2

- Fixed minor mistakes in Italian translation thanks to Xanad.
__________________________________________

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#14 Post by musher0 »

Hello all.

For some reason, the illustration in post # 2 above got lost.

Please find attached some screen captures of don570's excellent script on
conversions and math. These are from the latest version, 2.2.

BFN.
Attachments
PuppyUnits-Miles-Kms.jpg
(151.73 KiB) Downloaded 453 times
PuppyUnits-Trigo.jpg
(185.86 KiB) Downloaded 441 times
PuppyUnits-Constants.jpg
(220.41 KiB) Downloaded 429 times
PuppyUnits-MainPanel.jpg
(123.14 KiB) Downloaded 431 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#15 Post by don570 »

photobucket.com wants me become a member. They are holding my pictures until I do :cry: :cry:
_____________________________________

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#16 Post by musher0 »

don570 wrote:photobucket.com wants me become a member. They are holding my pictures until I do :cry: :cry:
_____________________________________
Hello, don 570.

You are off subject, do you know that?! ;)

Why not give https://myphotos.mypclinuxos.com a try?

IHTH.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#17 Post by don570 »

I need to find a way to download the photos from photobucket.com
easily, rather than one by one. There must be a way of doing it.
_____________________________________________________

Post Reply