Re: Free IP Calculator

2015-01-15 Thread Skip Kimpel
That's a lot of notes to yourself :) Thanks for sharing! SKIP > On Jan 15, 2015, at 6:17 PM, Bob Sneidar wrote: > > Change this line to: > > — usablecount > set the itemdelimiter to “.” > > won’t work without it. Another note to self: Don’t try to modify code posted > in an email. > > Bo

Re: Free IP Calculator

2015-01-15 Thread Bob Sneidar
Change this line to: — usablecount set the itemdelimiter to “.” won’t work without it. Another note to self: Don’t try to modify code posted in an email. Bob S On Jan 15, 2015, at 15:18 , Bob Sneidar mailto:bobsnei...@iotecdigital.com>> wrote: -- usablecountset the itemdelimiter to "

Re: Free IP Calculator

2015-01-15 Thread Bob Sneidar
OK I took some time today to really go through this IPCalc function. Note to self: Don’t try to write publicly distributable code quickly. That being said, I’ve been asked to include this function in the library of commands and functions everyone’s been talking about. So I am going to post the

Re: Free IP Calculator

2015-01-13 Thread Bob Sneidar
Ok belay that last. Seems I found another bug that only appears with glassful subnet masks. I am going to have to convert everything to actual binary (not delimited octets) do my math then convert back to delimited octets. Stay tuned… Bob S On Jan 13, 2015, at 16:39 , Bob Sneidar mailto:bobs

Re: Free IP Calculator

2015-01-13 Thread Bob Sneidar
OK Sorry all this seems to return all the correct values. If anyone finds anymore bugs let me know. Bob S function IPCalc theIPAddress, theSubnetMask set the itemdelimiter to "." -- initial setup set the numberFormat to "" -- convert the ip address to binary put 0 int

Re: Free IP Calculator

2015-01-09 Thread Bob Sneidar
Looks like that whacks some other things. I’ll look at this on the weekend and verify all the returned values are correct. I can’t believe I saw 25 when it was supposed to be 23 and I didn’t catch it. Bob S On Jan 9, 2015, at 13:21 , Alex Tweedly mailto:a...@tweedly.net>> wrote: Thanks Bob -

Re: Free IP Calculator

2015-01-09 Thread Bob Sneidar
Great I’ll update my code. I am also going to update it to accept CIDR notation as the input so you will not be required to enter a subnet mask. Bob S On Jan 9, 2015, at 13:21 , Alex Tweedly mailto:a...@tweedly.net>> wrote: Thanks Bob - that looks really useful. You do need one tiny tweak -

Re: Free IP Calculator

2015-01-09 Thread Alex Tweedly
Thanks Bob - that looks really useful. You do need one tiny tweak - the CIDR calculations are slightly off, because of the "."s in theBinSubnetMask. I added the line replace "." with empty in theBinSubnetMask just before put offset("0", theBinSubnetMask) into theFirstNodeChar to get the