PDA

View Full Version : Web based Lead Calculator



Lars-K
01-12-2016, 05:21 PM
Hi, I have developed a BHN calculator for mixing lead that's web based.
The calculator has the same benefits as my exe file version.
The code is also made for portable devices.
LINK: http://www.weatherby.dk/bhn.php

(http://www.weatherby.dk/bhn.php)http://www.weatherbyrifler.com/Download/Pics/bhn.png

StuBach
01-12-2016, 06:09 PM
Like the tool for alloying two components, any plan to allow for additional components or did I miss that feature?

Might recommend having the calculate buttons recalculate all three fields at once? Don't know why but it just seemed like it would be easier to make adjustments to the alloy if you hit one button rather than 2 or three.

Lars-K
01-12-2016, 06:44 PM
For sure I culd make more components, it's just a matter of more time for coding the math.

Actually, I have the two first buttons just if you want to play with just one mix of lead.
The bottom button will update all three forms... (and will click all three buttons)

And, if anybody wants new blends added to the dropdown box, it's just to send me a PM or post here what you want.

Lars-K
01-17-2016, 09:47 AM
Hi, updated the calculator today.
Enjoy!

http://www.weatherbyrifler.com/Download/Pics/bhn2.png

dragon
01-17-2016, 01:10 PM
Lars,

Let me give you a VERY big and public THANK YOU!!!!

Is there any chance that you would openly license and publish the code? I am interested in including it, if possible, in the open source handloader's software project a friend and I have just started. Once we get to a point of a first rough working example I will put the code up on github and likely announce it on the forum. It will be GPL2 or MIT licensed.

Again... thank you!

Lars-K
01-17-2016, 02:47 PM
Hi dragon!
What is the compiler you will be using? This is javascript, and html. As you will notice my code is protected for decompiling and running from another domain.

It's actually the same algo as I have used in my windows Lead Calculator.
The calculator is written in VB express 2008.
Check http://castboolits.gunloads.com/showthread.php?291354-Lead-Calculator-v1-2
(http://castboolits.gunloads.com/showthread.php?291354-Lead-Calculator-v1-2)

We can take the details on PM.

Lars-K
01-17-2016, 07:45 PM
The calculator will now insert the weight to "1" to avoid errors when pressing the calculate button. So be aware of choosing your desired value for weight when mixing lead.

Lars-K
01-17-2016, 07:50 PM
BTW, here is a new calculator.
Will release as soon as I have the time...

http://www.weatherbyrifler.com/Download/Pics/LeeBHN.png

GhostHawk
01-17-2016, 10:32 PM
Awesome!

Would love an entry for "range scrap" where it guesses at mix based on BHN. The fact that it would be a guess is fine.
WAG is what I am doing now for the most part.

Lars-K
01-18-2016, 01:24 PM
Hi, updated the calculator today.
Added Hardball on request from Bullwolf!

//Lars-K