flores / yet-another-nutrient-calculator

Calculates and charts values of DIY fertilizers for planted aquariums.
http://calc.petalphile.com
34 stars 39 forks source link

Move this to an Org? #46

Open flores opened 9 years ago

flores commented 9 years ago

An organization will let us have more folks to maintain this. Planted tanks are not currently on my radar so I would appreciate contributions from the community by folks who want to maintain and add to this. I can continue working on stuff too of course as I refocus.

All the aquarium stuff will be moving to http://rota.la links, too, so we will need some help propagating that. The old domain is no longer funny to me.

I am looking for volunteers. Easier to do this here /cc @zorfox @Webunity @FlorinI @Wasserpest @tgmerritt @rickertikari @romanholba @josephsydee @cosalich

gvdhoven commented 9 years ago

Well it would make sense, does this repo also have the sources for this domain? http://ei.petalphile.com/?stuff=NO3;dose=1.96

Because it is down atm...

jacktho commented 9 years ago

Looks like http://rota.la is still down?

I was able to get the calc working for me locally and would be willing to throw it up on some domain name for people to use if http://rota.la is not coming back.

Is there something else I can help with? I'm still into planted tanks :). I'm not a Ruby guy and the lack of curly braces scares me (kidding... well sorta...) but I think this calculator is helpful for the community.

tgmerritt commented 9 years ago

I don't know if this is common knowledge or if this is appropriate here in this forum, but everyone involved in the project should know that Carlo Flores (the creator) passed away a few months ago. This tool isn't mine to do anything with, but I worked with Carlo for years at Fonality and know him well. He would want the tool to live on and be useful to people.

On Thu, May 21, 2015 at 1:48 PM, jacktho notifications@github.com wrote:

Looks like http://rota.la is still down?

I was able to get the calc working for me locally and would be willing to throw it up on some domain name for people to use if http://rota.la is not coming back.

Is there something else I can help with? I'm still into planted tanks :). I'm not a Ruby guy and the lack of curly braces scares me (kidding... well sorta...) but I think this calculator is helpful for the community.

— Reply to this email directly or view it on GitHub https://github.com/flores/yet-another-nutrient-calculator/issues/46#issuecomment-104385254 .

Tyler Merritt

Furuikeya, Kaeru tobikomu. Mizu no oto

jacktho commented 9 years ago

Oh no. I am sorry for your loss. I hope his family is well.

I never had the pleasure of knowing Mr. Flores but he seemed like a good guy per his forum posts.

kisanjong commented 9 years ago

@tgmerritt thanks for the info about Carlo.

Its said news and i agree with jacktho He should be remembered

RIP Carlo.

ismeniosilva commented 9 years ago

Hello

This was and still is a great tool, and i think the best way to remember Flores was to maintain is work available to the community.

Since i´m one of the owners of a Portuguese forum at aquaforum.pt about fresh and salt tanks i can dispose resources like web space or even sub domains with no costs to put on-line is project.

The forum will no disappear since there is several owners and best of all is that the forum dont have any kind of publicity, so this will be available for long term.

I think the best way is to this is put on a sub domain and replicate the original pages as they was.

What do you think about this idea ?

Best Regards

gvdhoven commented 9 years ago

I like the idea; petalphile.com seems to be down at the moment and rota.la also; unfortunately the old code is in Ruby, and i can only host PHP sites...

@zorfox @FlorinI @Wasserpest @rickertikari @romanholba @josephsydee @cosalich is anybody of you able to get it to run somewhere?

kisanjong commented 9 years ago

I'm already hosting wets source code at rotalabutterfly.com but users are saying that yanc does not work correctly when selecting a solution.

I'm not a ROR programmer but I'm able to continue hosting wets work and it would be great if this project can continue its development.

Thanks

zorfox commented 9 years ago

I've can't get the code to run elsewhere. I'm not a Ruby developer. My forte is Windows development primarily using object oriented Pascal.

This software utilizes very old techniques. Rather trying to revise the code why not rewrite it with a more up to date language?

I have a simple calculator running, http://www.zorfox.com/calculator/ , here. That's written using Morfik, FX3. It interprets Pascal code into Javascript, HTML5. I intentionally avoided ALL server sided routines. The code is pure client side.

Converting the code to a more up to date platform seems like a better option IMO. Carlo's calculator does not have to be in a language most don't understand. Hobbyist's don't care how it works. They just care that it does.

tgmerritt commented 9 years ago

At the risk of starting a war, are you saying ruby is old and out of date???

The new new hotness. Dat 6+

On Jun 7, 2015, at 3:23 PM, zorfox notifications@github.com wrote:

I've can't get the code to run elsewhere. I'm not a Ruby developer. My forte is Windows development primarily using object oriented Pascal.

This software utilizes very old techniques. Rather trying to revise the code why not rewrite it with a more up to date language?

I have a simple calculator running, http://www.zorfox.com/calculator/ , here. That's written using Morfik, FX3. It interprets Pascal code into Javascript, HTML5. I intentionally avoided ALL server sided routines. The code is pure client side.

Converting the code to a more up to date platform seems like a better option IMO. Carlo's calculator does not have to be in a language most don't understand. Hobbyist's don't care how it works. They just care that it does.

― Reply to this email directly or view it on GitHub.

zorfox commented 9 years ago

No worries about a war lol. Most developers today use other languages. Is Ruby useful? Yes. Does it work? Yes.

However, if polled how many developers use it, the score would be quite low. The same could be said for my language, Pascal.

It just seems the language and application of it in this case does not apply to those interested. This is why I suggested we rewrite this using something more familiar to the masses. The programming is the easy part. The calculations and other aspects are the things most have problems with. That happens to be my strength. I could care less if it was Ruby, C, Pascal or grandma's recipe. We need a decent online calculator we all can use.

ravenwilde commented 9 years ago

I'm interested in working on this project - but also have no Ruby skills - I primarily do front-end dev (HTML, SASS, JS) and sometimes work in PHP. I've forked the repo and have been considering trying to make a React.js app with it. Thoughts?

ismeniosilva commented 9 years ago

Well, i have access to Ruby on Rails and RubyGems, this can help anyway ?

tgmerritt commented 9 years ago

I'm not actually a hobbyist for these water gardens. Carlo showed me his long ago and I helped do the translation into Japanese at the time. Fast-forward to today, I am a Rails dev professionally, so I'd be happy to contribute where I can, I read through a few of the issues but I don't have context on this particular hobby to "change the formula" for certain compounds? If Ruby is a barrier but the change is obvious, I can bridge the gap as Ruby is my language of choice.

On Tue, Jun 9, 2015 at 4:33 PM, ismeniosilva notifications@github.com wrote:

Well, i have access to Ruby on Rails and RubyGems, this can help anyway ?

— Reply to this email directly or view it on GitHub https://github.com/flores/yet-another-nutrient-calculator/issues/46#issuecomment-110510104 .

Tyler Merritt

Furuikeya, Kaeru tobikomu. Mizu no oto

zorfox commented 9 years ago

That would be a great help tgmerrit! Now it seems we have two ruby developers, you and I assume ismeniosilva. The easiest solution I see would be to help kisanjong get his site up and running. As far as I know Carlo is the only owner of this repo so it would have to be moved.

I see no need to "change the formulas". The software is there and has worked for years. Tweaking the constant files is about the only changes I see that need to be made. That I can do as well as any other questions about how the numbers are calculated etc. This seems like the easiest fix for now IMO.

ismeniosilva commented 9 years ago

Hi....Zorfox, i m not a Ruby developer but i can run Ruby on my hosting and i´m not a programer but a Sysadmin. The formulas are more or less easy to do and i have see yours nutrient calculator and is great but perhaps it was better to maintain the Flores app as it was if possible. I think that maintain the Flores apps running as it was the best tribute to him.

tgmerritt commented 9 years ago

Because this is a sinatra app, there isn't much at all to do in the way of setup before hosting this (there's no DB requirement here that I can see).

Here is Heroku's instructions on how to deploy a Sinatra app: https://devcenter.heroku.com/articles/rack

I deploy things to Heroku frequently, and they still have 'free' tier available but they are starting to restrict it more and more. However, if someone wants to cut their teeth on Heroku please setup an account and give it a try. There could be multiple apps deployed if everyone wants a taste of platform-as-a-service.

If someone wants to host it locally - the instructions in the first part of that document are all you'll need.

Basically:

  1. Get on some Linux server. Install dependencies (Ruby, et al) then you should just be able to rackup -p $PORT and it should start running.

Sinatra is pretty bare-bones. If you look at the nutes.rb file he declared all his routes there. You can only call endpoints defined there, GET or POST, it appears that he only has a root path, " / ", which means if you had this hosted on Heroku you'd have something like another-nutrient-calculator.herokuapps.com and when you hit that, you're going to see the "ask" view here: https://github.com/flores/yet-another-nutrient-calculator/blob/master/views/ask.erb

Then you submit and basically all the calculations are done right inside memory, returned to the user in either "dump.haml" or "target.haml"

Pretty simple app, we should probably break out those calculations into classes that can encapsulate the math so that it's not one gigantic method embedded directly in what should essentially be a routes file.

As a friendly aside - Carlo was always pretty messy :) I sat next to him for years at Fonality, textbook case of the cluttered nerd desk :)

On Wed, Jun 10, 2015 at 1:19 PM, ismeniosilva notifications@github.com wrote:

Hi....Zorfox, i m not a Ruby developer but i can run Ruby on my hosting and i´m not a programer but a Sysadmin. The formulas are more or less easy to do and i have see yours nutrient calculator and is great but perhaps it was better to maintain the Flores app as it was if possible. I think that maintain the Flores apps running as it was the best tribute to him.

— Reply to this email directly or view it on GitHub https://github.com/flores/yet-another-nutrient-calculator/issues/46#issuecomment-110862542 .

Tyler Merritt

Furuikeya, Kaeru tobikomu. Mizu no oto

ismeniosilva commented 9 years ago

Well tgmerritt, in your point of view what should we do ? Forget the app and star from the scratch ?

tgmerritt commented 9 years ago

Just throw it up on heroku or any other similar service to make it available for all for now. Code is a living thing - it can always be improved :)

The new new hotness. Dat 6+

On Jun 10, 2015, at 3:26 PM, ismeniosilva notifications@github.com wrote:

Well tgmerritt, in your point of view what should we do ? Forget the app and star from the scratch ?

― Reply to this email directly or view it on GitHub.

kisanjong commented 9 years ago

Its up at http://yanc.rotalabutterfly.com but some minor problems exist after updating lots of old dependencies.

My thoughts are start from the beginning using a different language that is easier for others to work with.. php SQL etc

The domain rotalabutterfly.com was chosen because it was Carlo's nickname / twitter handle.

You are more than welcome to use this domain to host the new version.

Would be nice to find a “team” of programmers, to speed-up the process. maybe each one could take care of specific aspects of the calculator such as the user interface, the back-end programming, etc.

Im just thinking out loud.. :)

What do you think?

Thanks

ravenwilde commented 9 years ago

I would be more than happy to work on the front-end/interface... I usually work with a php backend but I'm sure I could get up to speed tapping into a ruby app.

kisanjong commented 9 years ago

Thanks raven :)

So should we get a team together and get some ideas going?

Myself, you and another person not on github yet are certainly interested.

Do we need ruby? Can we just use php? Taking the info from wets app I.e constants.yaml etc?

Should we start another github project?

Thanks :)

ravenwilde commented 9 years ago

I am happy with php... and definitely would be of more help to you all if we went that route.

As far as the constants - we could keep them in yaml, or parse them into json - its up to you backend peeps how you want to handle it. EDIT: if we switch to php json would probably be easier to work with.

As far as project - we could fork this one, or start a new repo - anyone know what the proper github etiquette is?

kisanjong commented 9 years ago

Sounds great let's see what others have to say.

Keeping this dedicated to Carlo how about calling the new repo rotalabutterfly?

https://github.com/kisanjong/rotalabutterfly

ravenwilde commented 9 years ago

Sounds great!... shall we take discussions of how we're doing this over to that repo?

kisanjong commented 9 years ago

Sounds good to me, I've just asked the other person interested to join us as well.

If your interested please post your ideas and comments at

https://github.com/kisanjong/rotalabutterfly/issues/1

Thanks :)

ismeniosilva commented 9 years ago

Well Kisanjong, is a good ideia but unther other domain like barrreport.com or other like that and i will explain why i´m saying this.

Look the case of Flores for example or the case thegab.org that was a forum about goldfish and with the dead of is mentor the site is gone away to.

If you tomorrow dies.....i hope not :-) what will be from the rotalabutterfly.com ?

kisanjong commented 9 years ago

Good point :)

However having it all on github will allow the next person to run the app? The same way I have flores app running.

I will leave rotalabutterfly.com to all at https://github.com/kisanjong/rotalabutterfly in my will ;)

Joking apart this can be run on any domain, rotalabutterfly is just a domain dedicated to flores.

Thanks :)

ismeniosilva commented 9 years ago

OK.....i have understand that rotalabutterfly is dedicated to Flores :-)

Share the domain and the hosting with at least two more persons that you trust to avoid what we already now ;-)

PS: I can give a help with the sql if you want to use it ...but a plain file is easier to record the values.

kisanjong commented 9 years ago

Thanks and I will share it :)

Your help is greatly appreciated please join us at https://github.com/kisanjong/rotalabutterfly so we can take this to the next step.

Thanks :)

berarma commented 8 years ago

This project holds lots of valuable information about nutrients. So I've written a PHP library, that I think honors Flores' work, to make this information easily reusable in other projects. It's not Ruby but it's an open project, with well-structured code and test cases.

It's here for anyone to see and use: https://github.com/berarma/aquarium-toolbox

Some things that could be derived from this that I'd like to work on sometime are a website and a webservice.