chrispahm / SustainBeef

Co-definition and evaluation of sustainable beef farming systems based on resources non edible by humans
https://chrispahm.github.io/SustainBeef/
MIT License
1 stars 1 forks source link

wrong (outdated) json stats file resource URL #4

Open jdvivar opened 9 months ago

jdvivar commented 9 months ago

It makes the app fail during load: image

Probably the correct one is: https://raw.githubusercontent.com/eurostat/Nuts2json/75eb5e6e6152f5495e3ec681fa60bff967e1c75c/pub/v2/2021/4326/20M/nutsrg_2.json

I was just browsing around and saw that... you probably can fix it in 30s :)

chrispahm commented 9 months ago

Hey @jdvivar,

wow thanks for the bug report and also providing the correct link 😊 Fixed it as you suggested, the page should now work again! (and took <30s as you suggested) https://chrispahm.github.io/SustainBeef/

I should probably add all external JS+JSON files to this repo though, as this is a legacy project and it's highly likely that links will break again soon. May I ask how you found this site? 😅

jdvivar commented 8 months ago

Great! Happy to have helped.

I was working on a side project this weekend (surprisingly no one has ever implemented this): a mortgage calculator, i.e. mortgage amortization schedule calculator, with variable rates per period (e.g. monthly). I'm really surprised it doesn't exist. The ones I found are based on fixed rates, and if variable, they just accept a fixed revision (like going up 0.25% every 6 months). But none of those cases makes sense in real mortgage products here in Europe. In Europe, some lenders offer mortgage contracts based on the EURIBOR 12-month rate, so something like "fixed for 5 years at 3% then EURIBOR+0.9%". Of course, no one knows how the EURIBOR will behave in the future but being able to see it and calculate how much interest you'll end up paying based on different outcomes looks fun enough for me. Also, you could take historical data from past EURIBOR rates and see how everything played out in the past. "Were my parents on the right path when they took that variable-rate 20-year mortgage in 2000 at EURIBOR+1,75% or should they have stayed on the 3.5% fixed-rate ones?" Questions like that which Bard or GPT refuse to answer.

For now, I'll just use EURIBOR historical data for the variable interest rate calculations, but for further iterations I wanted the chart to have editable data points (for the future rates)... and there comes your https://github.com/chrispahm/chartjs-plugin-dragdata. I was considering your plugin for simple line charts with draggable data points (rates in my case). Then I visited your site and found the bug in the first app in your portfolio.

chrispahm commented 8 months ago

Haha for a second I was wondering if you read the SustainBeef project report and wanted to check on the project results :D

Anyways, that EURIBOR project sounds very interesting! I'm curious how you would design such a calculator so that it feels interesting and less formal like those Excel sheets that are commonly used for this type of analysis?

I once started to work on an interactive calculator for investments in ground mounted PV plants (with GIS integration etc) aimed at farmers, but couldn't come up with a convincing UI so far... The calculator should allow to depict uncertainty, e.g. being able to give a range of possible interest rates, and then seeing the resulting distribution of the NPV. Guess it sounds like you were going in a similar direction? Unfortunately, I found these risk concepts to be very difficult to sell to non economist/ people trained in statistics, and still haven't found a convincing abstraction yet!

Please let me know if you have a solution for that 😊