Gallery Video Directory Hammock Articles Donate Hammock Forums Store Today's Posts Mark Forums Read
 Hammock Forums - Elevate Your Perspective Hammock Hang Calculator
 Home Forums Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 01-13-2011, 13:51 #21 gratefuldanny     Join Date: Sep 2010 Location: DC Metro Hammock: TTTG SB dbl Tarp: OES SWT Insulation: HG 20/Exped Synmat Suspension: whoopie slings Posts: 251 Wow!Will this work on the droid 2? How do I download it? What is your suggested donation value?
 01-13-2011, 14:09 #22 DannyBoy2k Senior Member   Join Date: Sep 2010 Location: Northern Virginia Hammock: Warbonnet Blackbird Tarp: MacCat Deluxe Insulation: Speer SnugFit Suspension: Adjustable Webbing Posts: 231 If you have an internet connection on your phone, just navigate to it. Otherwise, use your browser to save the page to a place on your computer and transfer to your phone through USB cable or what not. I haven't tried it, but I think the browser on the phone will load a web page from the phone's memory card just as a normal computer's browser will from a hard drive. ~Dan
01-13-2011, 14:14   #23
DannyBoy2k
Senior Member

Join Date: Sep 2010
Location: Northern Virginia
Hammock: Warbonnet Blackbird
Tarp: MacCat Deluxe
Insulation: Speer SnugFit
Posts: 231
Quote:
 Originally Posted by jeffjenn D, I'm very excited about this, but now in your default: suspension x 2 + Ridgeline = exact tree distance. Shouldn't the suspenion length be approx 3.9'? (no Quant here, where is Grizz when we need him?) Also how do you put this on a phone like a HTC Touch Pro 2?
Agreed, the suspension length x 2 + ridgeline length is coming out to exactly the distance between the trees. That would only work if the hang angle is 0* from horizontal.

cos 30* = ((distance between trees - ridgeline length) / 2) / suspension length

or

suspension length = ((distance between trees - ridgeline length) / 2) / cos 30*

For the defaults:

suspension length = ((15 - 9) / 2) / cos 30* = 3.4641'

~Dan

01-13-2011, 16:06   #24
jeffjenn

Join Date: Aug 2007
Location: sw,va
Hammock: HH Expd Asm or DIY or WBBB or .....
Tarp: HH Hex
Insulation: DIY UQ / CCF Pad
Suspension: Whoopie!!!....
View my gallery 23
Posts: 676
Images: 23
Quote:
 Originally Posted by DannyBoy2k Agreed, the suspension length x 2 + ridgeline length is coming out to exactly the distance between the trees. That would only work if the hang angle is 0* from horizontal. cos 30* = ((distance between trees - ridgeline length) / 2) / suspension length or suspension length = ((distance between trees - ridgeline length) / 2) / cos 30* For the defaults: suspension length = ((15 - 9) / 2) / cos 30* = 3.4641' ~Dan
Yeah, what he said, I think? This is why I try to avoid math!!!
__________________
Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways body thoroughly used up, totally worn out, and screaming "WOO-HOO, what a ride!!"

 01-13-2011, 16:16 #25 dejoha Senior Member     Join Date: Jun 2009 Location: Flagstaff, AZ Hammock: Most Tarp: GoLite Poncho Tarp Insulation: Phoenix, Burrow Suspension: Whoopie Hook View my gallery 201 Posts: 2,250 Images: 201 Thanks DannyBoy! That was just the math I was looking for -- Javascript had its own methods so it took some digging, but your post got me in the right direction. The calculator is now working with better math! Hammock Hang Calculator This should work on all mobile devices and since there is no database or back-end scripts (all the Javascript and CSS is local) it should cache fine on Android, Blackberry, and iPhone/iPod Touch devices. __________________ Author and illustrator: The Ultimate Hang: An Illustrated Guide To Hammock Camping
01-13-2011, 17:20   #26
Knotty

Join Date: Mar 2009
Location: Denville, NJ, USA
Hammock: DIY Stretch-Side
Tarp: DIY Cat Cut Hex
Insulation: Phoenix & Nest
Suspension: various
View my gallery 227
Posts: 4,465
Images: 227
Quote:
 Originally Posted by dejoha Thanks DannyBoy! That was just the math I was looking for -- Javascript had its own methods so it took some digging, but your post got me in the right direction. The calculator is now working with better math! Hammock Hang Calculator This should work on all mobile devices and since there is no database or back-end scripts (all the Javascript and CSS is local) it should cache fine on Android, Blackberry, and iPhone/iPod Touch devices.
Are we to deduce from this that art is your strength, not math?
__________________
Knotty
"Don't speak unless it improves the silence." -proverb
DIY Gathered End Hammock
DIY Stretch-Side Hammock
Stretch-Side "Knotty Mod"
DIY Bugnet

01-13-2011, 18:44   #27
dejoha
Senior Member

Join Date: Jun 2009
Location: Flagstaff, AZ
Hammock: Most
Tarp: GoLite Poncho Tarp
Insulation: Phoenix, Burrow
Suspension: Whoopie Hook
View my gallery 201
Posts: 2,250
Images: 201
Quote:
 Originally Posted by Knotty Are we to deduce from this that art is your strength, not math?
OOoooh, you are so cruel

Well, I had all the math down, but Javascript is not my programming language of choice. My background is mostly Perl, but it has been a while since I've done much with programming. At first, I was trying different trigonometry functions to solve the problem, but no matter how I sliced it, the ridgeline kept coming up short.

Danny's solution helped me look at the problem a different way, and it worked.

But, given the choice, I'd rather draw than derive
__________________
Author and illustrator: The Ultimate Hang: An Illustrated Guide To Hammock Camping

 01-13-2011, 20:40 #28 DannyBoy2k Senior Member   Join Date: Sep 2010 Location: Northern Virginia Hammock: Warbonnet Blackbird Tarp: MacCat Deluxe Insulation: Speer SnugFit Suspension: Adjustable Webbing Posts: 231 Glad I was able to help! Thank YOU for the great calculator! I can do the backend work; that's my job in real life. I've unfortunately remained ignorant about GUIs, but I hope to change that this year. Didn't look at the Javascript source to see if you did this, but I would just hard code the cos(30*) as a constant and not do the trig functions in code at all. Unless you allow the user to set the angle of hang as well, there's no need to use them. cos 30* = 0.866025404 Cheers, Dan
01-13-2011, 22:59   #29
dejoha
Senior Member

Join Date: Jun 2009
Location: Flagstaff, AZ
Hammock: Most
Tarp: GoLite Poncho Tarp
Insulation: Phoenix, Burrow
Suspension: Whoopie Hook
View my gallery 201
Posts: 2,250
Images: 201
Quote:
 Originally Posted by DannyBoy2k Glad I was able to help! Thank YOU for the great calculator! I can do the backend work; that's my job in real life. I've unfortunately remained ignorant about GUIs, but I hope to change that this year.
Thanks Dan. I'm usually on the front-end of things, but I've done enough web development projects to know my way around, albeit clumsily at times. I worked for a few .com's years ago and found a love for regex and Perl, but over time my career has moved into administration and marketing, so I don't often get to play with the back-end. I'm more than happy to let the pros do it, but some simple stuff like this is just fun and whimsical enough that I'll try it.

The next project will be to create a companion web app that uses accelerometer functions to make a virtual level and protractor for checking hammock suspension angle and elevation. Anyone up for the challenge?
__________________
Author and illustrator: The Ultimate Hang: An Illustrated Guide To Hammock Camping

 01-14-2011, 16:52 #30 hikinghombre7 Member   Join Date: Nov 2010 Location: Colorado Posts: 55 You ROCK Dejoha!

 Bookmarks

 Tags android, hammock, hang calculator, iphone, mobile

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Site Topics     Introduce Yourself     Announcements     Feedback and suggestions     Articles Hammock Camping     General Hammock Talk         Long distance travel with a hammock     Suspension Systems, Ridgelines, & Bug Nets     Top Insulation     Bottom Insulation         Pads         Under Quilts     Weather Protection     Do-It-Yourself (DIY)         Fabrics         DIY Stickies Outings     Hangouts, Campouts, and Trip Planning         Northeast         Southeast         Midwest         Southwest         West         All Others     Trip Reports Marketplace     For Sale         Group Buys         Pay it Forward         [SOLD] items no longer available     For Trade         [TRADED] Items no longer available     Want to Buy Hammock Gear - Manufacturers and Services     Reviews     Other Vendors and Services     Arrowhead Equipment (Home of Kick Ass Quilts)     Butt in a Sling Hammock Gear     Clark Jungle Hammocks     Claytor Hammocks     DD Hammocks     Dream Hammock     Dutchware     Eagles Nest Hammocks     Grand Trunk     Hammock Gear     Hennessy Hammocks     2QZQ Hammock Specialties (Hennessy Bugnet Zipper Mods)     Jacks-R-Better     Molly Mac Gear     OES Tarps     Tree to Tree Trail Gear         Speer Hammocks     Trek Light Gear     UGQ Outdoor Equipment     Warbonnet Hammocks     Whoopie Slings     Wilderness Logics

All times are GMT -5. The time now is 17:51.