←back to thread

1901 points l2silver | 1 comments | | HN request time: 0s | source

Maybe you've created your own AR program for wearables that shows the definition of a word when you highlight it IRL, or you've built a personal calendar app for your family to display on a monitor in the kitchen. Whatever it is, I'd love to hear it.
Show context
tunnuz ◴[] No.35738830[source]
I don't know if it's interesting, but here it is.

The local branch of the company I work for has recently included a food allowance of 8 eur/day as a perk. I don't like / have opportunities to eat out most days, so I have built a little utility that fetches via a REST API the offers at the deli / grocery store on the way to my kid's nursery, and solves a knapsack problem to generate the most optimal shopping basket (i.e., closest to but not exceeding 8 euros). I extracted the API from the deli's website, as it seems to be something custom. Of course, I might not care about some of the items that the utility includes in the most optimal basket. To mitigate this, the utility iteratively refines the basket by asking me if there is something I want to remove, and then replaces it with the next most optimal items to fill up the remaining budget.

replies(1): >>35738871 #
Cyphase ◴[] No.35738871[source]
What's this deli / grocery store that has a REST API?
replies(1): >>35744307 #
tunnuz ◴[] No.35744307[source]
Like a local joint. They have a few stores around the country. It’s a small country, the API powers their website so you can see what is on offer in your local branch.
replies(1): >>35748410 #
1. Cyphase ◴[] No.35748410{3}[source]
Ah, cool. On second read you did say, "I extracted the API from the deli's website, as it seems to be something custom."