We (with the wife) automated menu for the week and the shopping list. A database store all recipes (ingredients, time taken...) and the menu composer chose semi-randomly* into the list.
* : Menu composer takes into account : - in season vegetables, - number of reutilisation of the ingredient, - number of reutilisation of the meal, - expiration of the ingredients (vegetables can expire rather quickly) - various parameters (if it is a busy week or not, number of days you want to cook...) It's really a relief. No need to decide what to cook after work : it's already decided, and you know you have the right ingredients. Time spend for the shopping is very small. I want to be able to plug that into an online shopping website, but as always, websites don't display there API so i'm trying to hack into it... (and people still talk about API economy...)
Recipes table : it tooks some months to fill it with our choices (prefered recipes) and add attributes to that : cold/warm meal, difficulty, time taken, kind of meal (junk, bistrot, classical, exotic...), does it scale (x0.5, x2, x4...). ingredient_table : each receipe got ingredients. Every kind of ingredrients are on a separate table. product_table : it is there i display what you can buy from stores : 6/12/24 eggs bundle, 250/500g butter Then it starts to be ugly, cause there is constraints : loose and hard.
Timetable is a hard constraint (i don't want to cook monday evening), so it will be double ration one of the day before,
Season is a hard constraint (you buy vegetables when they are in season)
Tastes are a hard constraint : you decides what kind of meal you want to eat during the weak With that you get available recipes and a timetable for cooking and quantity to cook. Price is a lose constraint,
leftovers are a lose constraint,
time spent cooking is a lose constraint (could be a hard, if you have enough recipes, but as i like cooking, it's no matter for me) After, i enumerate all possibilities and each one get a score based on lose constraints : you can use a simple weighted average, exponentially weighted average... You tweak coefs to prefer a nice price or a little time spent and then it's done. Usually a chose randomly between the ten best solutions. I got enough recipes to cover all hard constraints. I avoid lot of problems doing a big enumeration for all possibilities (it takes a couple of minutes at my scale for 200 recipes), also, hard constraints are pretty easy to deal with, it could be a lot more complicated if user become picky on meals. I'm no coder so i don't know any design pattern or anything that could help me to design a better algo. But, as far as i know, when you can't evaluate all possibilities you have to go the optimization road. Answers to questions :
- Yeah, there is this website : https://fr-en.openfoodfacts.org/ (broken TLS it seems) that could be used to pull data on ingredients,
- I don't have plan to open-source it : it's pretty hacky, ugly and probably defy any coding rule (except 4 space ident PEP8). it's not even packeged (i've never done that before...)
> It's really a relief. No need to decide what to cook after work : it's already decided, and you know you have the right ingredients. Time spend for the shopping is very small.
Nice. I'm using Google Keep for now, and there's probably a much better solution already -- but what I really want is a way to organize my shopping list the way the grocery store is organized so I can zip through it. Ideally, this would require some collaboration with the store to get the exact layout. But a generic (vegetables first, breads 2nd, canned goods 3rd, ..., milk & dairy last. would also help tremendously.
For the first 9 years of my life, my family either did not have a PC or I was not allowed to use it for more than a few minutes. My parents relaxed a little bit and allowed my brother and i to read for an hour to play video games on the computer for an hour.
I played an online game called runescape where you could trade items to other players, but it was tedious and required a lot of repetitive typing: "buying chaos runes 80gp each". I downloaded an auto typer but i was paranoid of getting banned. I wanted a more human auto typer so i found a tutorial for making one in visual basic. It was more or less copy and paste, and as a middle schooler i really did not understand the code. I became really interested in botting after that, downloading, modifying, and eventually creating more sophisticated scripts. Automating the game became the new game for me. I would come home from school to a banned account, think about how they may have detected me & automate smarter. To this day I will often spend more time writing code to automate something than i save. Automation is a way to make the mundane work a fun game
Interestingly I learned Python by creating scripts to automate certain tasks in runescape - although I kept all the money on the account as I didn't want to cheat the game, I just wanted to make a good enough program that wouldn't get caught by their bot detection system.
It's a really fun game - if you're ever bored, you should check it out again! They have an 'old school runescape' which is essentially how the game was in 2007, without the later changes. Definitely 10/10 nostalgia.
Haha that's awesome, there was quite a community for it back in the day. I actually log on to oldschool once in a while for the nostalgia, though I do not bot it anymore.
This is off topic, but I love/hate the system where all new content must pass a community poll. I feel like people are slowly voting for the updates that people hated back in the day (claws, ely, magic dmg % boosting gear). Stat creep is now almost as it was right before EOC, where you can get stacked out from full hp & brewed in one game tic (which kind of kills the hybrid scene)
I wonder if we will ever see support for white-hat botters. I imagine the game publisher/creator would have a separate server which you could request access to. It could have a bug bounty type system where if your account/bot is able to fool the system you will be rewarded for explaining how you did it. I think there are a lot of gamers that would spend time on this so they don't have to put up with so many bots.
In all seriousness, Factorio is predictably _extremely_ addictive. I highly recommend beginning either on a long holiday weekend when you have no other obligations, taking 1-2 days of time off, or just not playing it at all.
I honestly don't necessarily regret the time I've spent playing Factorio because it is legitimately fun, but it will claim a very high priority in your brain for quite a while once you pick it up, and will push other things out of the way.
Maybe not what anyone was expecting, but we've automated all the cleaning in the house. The clothes get washed, folded, and ironed. The trash gets taken out. All the plants get watered.
How? The oldest form of automation. We pay someone to come and do it. We have a cleaning person come twice a week.
I can only do this because I live abroad in Latin America. Sadly, wages are very low for this kind of work.
Though I did have a cleaning person come twice a month, when I lived in the Pacific Northwest, I could never afford all this much help living in the US.
I used to live in Central America and most foreigners from the US had their own maids. Some maids even had their own room in the house and lived with the family (great for babysitting, cleaning, cooking, etc)
Cleaners really are not that expensive. I live in the UK where the cost of living is really high and can still afford to have a cleaner in for a couple of hours a week. I still do the dishes (well, load / empty the dishwasher), clothes and take out the rubbish but at least I don't need to vacuum / dust the house etc.
In most places in Western Europe that I've lived, it's perfectly normal for a 2-earner household to have someone that comes in say 4-7 hours to clean once a week, and maybe do some laundry/ironing (depending on time available). It's an expense yes, but around that (when calculated back to monthly cost) of say owning (another) small car.
In Belgium, the govt set up a system where "freelance" cleaners get paid 15€ / hr and also get health care, pension etc. This is all done electronically / online and works really well.
Normal people don't use cleaning companies but loads of people had a cleaner nevertheless who was paid "in black" prior to this system. Now everyone's insured, pays taxes, gets long term benefits etc.
I'd be curious to know ballpark cost (and in which state just for cost of living).
My biggest concern with letting a stranger into the home is theft/trust issues. While I'm sure most people have a good experience and I'm sure you can find a company that background checks, it is more personal paranoia (and it isn't cleaners in particular, I don't like leaving any strangers alone around the house).
I just have someone come every few weeks; she's been cleaning for my neighbor forever (in MA). $100 for a few hours work. It doesn't really handle day-to-day housework but it ensures things get dusted and vacuumed before they get too bad. She isn't nearby but a lot of people get someone local for $30/hr. for cleaning, dog-walking, etc. Not for everyone, but it's not rare.
I have a separate service do my lawn for about $60 every 2 weeks or so.
Asking your neighbors is usually the best, at least around here you can usually find someone who is known to multiple people who can vouch for her.
If that doesn't work, and if you're ethically ok with it, you could put some cameras around the house (turned on only during the day when the cleaner comes). Dashcams are reasonably cheap nowadays.
When I lived in India, it was cheaper to hire someone to wash clothes and dishes by hand than to buy a washing machine or dish washer (and the place we lived wouldn't have had anywhere to put them anyway). [Though half the time we did these things (by hand) ourselves.]
I laughed, but my impression is that due to overpopulation it's incredibly cheap to rent a human for such tasks there. It'd probably take years to spend what the machines cost, and they take space (a premium, see: overpopulation) and require maintenance.
"When I lived in India, it was cheaper to hire someone to wash clothes and dishes by hand [assuming that context makes it clear that the costs are being calculated over an extended period of time rather than a single instance] than to buy a washing machine or dish washer".
Just like if I were to say "when in city X, it was cheaper to travel by taxi than to buy a car", I wouldn't mean a single taxi ride.
Part of me wants to be offended by that but part of me knows every one of us is just a cog in a machine, some bigger than others but really... not that much bigger.
I was paying a cleaner to come by and do my floors about once a week, but eventually realized that for 2.5 months worth of cleaning I could replace her with a "Braava" floor cleaning robot.
(I do feel a little sad about it, she's sweet and I see her all the time when she cleans other units in the building…)
I have a site called http://www.correlated.org that generates funny statistics based on user-submitted data. After several years of running it, I got a book deal. It was part of a two-part deal that also involved my other (more successful) book "Experimenting With Babies." For the Correlated book, I wrote a bunch of code involving some seriously gnarly SQL queries and some Natural Language Generation tools, and it basically spat out the book. There was, of course, extra manual effort needed, but the code got me about 80% there. Here's a little more about the book: http://www.correlated.org/book.html
Comments (731) 147 threads
Earlier comments* : Menu composer takes into account :
- in season vegetables,
- number of reutilisation of the ingredient,
- number of reutilisation of the meal,
- expiration of the ingredients (vegetables can expire rather quickly)
- various parameters (if it is a busy week or not, number of days you want to cook...)
It's really a relief. No need to decide what to cook after work : it's already decided, and you know you have the right ingredients. Time spend for the shopping is very small.
I want to be able to plug that into an online shopping website, but as always, websites don't display there API so i'm trying to hack into it... (and people still talk about API economy...)
I'd love to use the same system. Is it open source?
Recipes table : it tooks some months to fill it with our choices (prefered recipes) and add attributes to that : cold/warm meal, difficulty, time taken, kind of meal (junk, bistrot, classical, exotic...), does it scale (x0.5, x2, x4...).
ingredient_table : each receipe got ingredients. Every kind of ingredrients are on a separate table.
product_table : it is there i display what you can buy from stores : 6/12/24 eggs bundle, 250/500g butter
Then it starts to be ugly, cause there is constraints : loose and hard. Timetable is a hard constraint (i don't want to cook monday evening), so it will be double ration one of the day before, Season is a hard constraint (you buy vegetables when they are in season) Tastes are a hard constraint : you decides what kind of meal you want to eat during the weak
With that you get available recipes and a timetable for cooking and quantity to cook.
Price is a lose constraint, leftovers are a lose constraint, time spent cooking is a lose constraint (could be a hard, if you have enough recipes, but as i like cooking, it's no matter for me)
After, i enumerate all possibilities and each one get a score based on lose constraints : you can use a simple weighted average, exponentially weighted average... You tweak coefs to prefer a nice price or a little time spent and then it's done. Usually a chose randomly between the ten best solutions.
I got enough recipes to cover all hard constraints. I avoid lot of problems doing a big enumeration for all possibilities (it takes a couple of minutes at my scale for 200 recipes), also, hard constraints are pretty easy to deal with, it could be a lot more complicated if user become picky on meals. I'm no coder so i don't know any design pattern or anything that could help me to design a better algo. But, as far as i know, when you can't evaluate all possibilities you have to go the optimization road.
Answers to questions : - Yeah, there is this website : https://fr-en.openfoodfacts.org/ (broken TLS it seems) that could be used to pull data on ingredients, - I don't have plan to open-source it : it's pretty hacky, ugly and probably defy any coding rule (except 4 space ident PEP8). it's not even packeged (i've never done that before...)
Ill be happy to start an open source project with a few peeps if their interested as well?
Catch me on github https://github.com/Alfanhui
Is there any way to get hold of what you've done?
I posted it to HN a few months ago to crickets. I might be reviving it soon-ish.
Nice. I'm using Google Keep for now, and there's probably a much better solution already -- but what I really want is a way to organize my shopping list the way the grocery store is organized so I can zip through it.
Ideally, this would require some collaboration with the store to get the exact layout. But a generic (vegetables first, breads 2nd, canned goods 3rd, ..., milk & dairy last. would also help tremendously.
I played an online game called runescape where you could trade items to other players, but it was tedious and required a lot of repetitive typing: "buying chaos runes 80gp each".
I downloaded an auto typer but i was paranoid of getting banned. I wanted a more human auto typer so i found a tutorial for making one in visual basic. It was more or less copy and paste, and as a middle schooler i really did not understand the code.
I became really interested in botting after that, downloading, modifying, and eventually creating more sophisticated scripts. Automating the game became the new game for me.
I would come home from school to a banned account, think about how they may have detected me & automate smarter.
To this day I will often spend more time writing code to automate something than i save.
Automation is a way to make the mundane work a fun game
It's a really fun game - if you're ever bored, you should check it out again! They have an 'old school runescape' which is essentially how the game was in 2007, without the later changes. Definitely 10/10 nostalgia.
This is off topic, but I love/hate the system where all new content must pass a community poll. I feel like people are slowly voting for the updates that people hated back in the day (claws, ely, magic dmg % boosting gear). Stat creep is now almost as it was right before EOC, where you can get stacked out from full hp & brewed in one game tic (which kind of kills the hybrid scene)
I honestly don't necessarily regret the time I've spent playing Factorio because it is legitimately fun, but it will claim a very high priority in your brain for quite a while once you pick it up, and will push other things out of the way.
How? The oldest form of automation. We pay someone to come and do it. We have a cleaning person come twice a week.
Though I did have a cleaning person come twice a month, when I lived in the Pacific Northwest, I could never afford all this much help living in the US.
Normal people don't use cleaning companies but loads of people had a cleaner nevertheless who was paid "in black" prior to this system.
Now everyone's insured, pays taxes, gets long term benefits etc.
My biggest concern with letting a stranger into the home is theft/trust issues. While I'm sure most people have a good experience and I'm sure you can find a company that background checks, it is more personal paranoia (and it isn't cleaners in particular, I don't like leaving any strangers alone around the house).
I have a separate service do my lawn for about $60 every 2 weeks or so.
If that doesn't work, and if you're ethically ok with it, you could put some cameras around the house (turned on only during the day when the cleaner comes). Dashcams are reasonably cheap nowadays.
Continue this thread — 1 reply
Just like if I were to say "when in city X, it was cheaper to travel by taxi than to buy a car", I wouldn't mean a single taxi ride.
I understand it was meant to be a harmless joke but it's still not so nice to say.
Not sure on cost comparison, though :)
(I do feel a little sad about it, she's sweet and I see her all the time when she cleans other units in the building…)
Continue this thread — 1 more reply
I have a site called http://www.correlated.org that generates funny statistics based on user-submitted data.
After several years of running it, I got a book deal. It was part of a two-part deal that also involved my other (more successful) book "Experimenting With Babies."
For the Correlated book, I wrote a bunch of code involving some seriously gnarly SQL queries and some Natural Language Generation tools, and it basically spat out the book.
There was, of course, extra manual effort needed, but the code got me about 80% there.
Here's a little more about the book:
http://www.correlated.org/book.html
All comments shown.
Couldn't load more comments. Check your connection and try again.