I don't get how food consumption can increase in a pandemic. Should be constant in or outside a pandemic situation. Possibly somewhere crops are getting rotten because of newly imposed export restrictions, or for some other things.
Food consumption changes: Pre-pandemic, a good amount of meals would be eaten out of the house. School lunches, breakfast on the way to work, lunch break at the work cafeteria or a fast food place (sure, some folks bring lunch, but many places don't offer a break room that is adequate).
All of this - and things like toilet paper - shifts to consumer goods instead of bulk goods, which takes different equipment and processing in factories, often at different times. A portion of school lunches in the US are the result of government subsidy foods: Cheeses, potatoes, and so on are very low cost to public schools.
In short: Consumer foodstuff demand has increased.
Additionally, more folks are spending a bit of time with food, changing the demands. Plus, home and slightly depressed/anxious with newly found free time means you have more time to eat - and many have taken up eating more.
And then you do have crops that couldn't be picked, disruption in shipping (food travels far), and disruptions in factories that complicates things.
In the UK, last year we had a terrible shortage of bread flour in the supermarkets.
Actually, what we had was a sudden reduction in the amount of flour being used by bakeries, and an increase in the amount of flour being used at home. There wasn't a shortage of flour - there was a shortage of small bags to put it in for selling at a supermarket. The industry was all set up for selling a decent proportion of flour in really large bags.
Likewise, for simple goods like vegetables, dairy, and beer, some suppliers have suddenly had their customers disappear, because they normally sold to restaurants, pubs, and caterers, where other suppliers have not been able to keep up with demand, because they sold to supermarkets. The obvious solution is for the suppliers who previously sold to caterers to sell to supermarkets instead, but it takes a while for these contracts and logistics to be sorted out.
Yes, similar in the US. First all flour was sold out, then as it became available again it was bulk bins first, and then brands that sold in 1 and 5 pound bags last.
Interestingly (well kinda) the similar yeast shortage is still not back to normal. The shortage was partly related to packaging and the yeast at my grocer is still in the post COVID foil packaging and not in the packages it was before. (Luckily I had yeast in the freezer)
We had a load of news stories on TV about dairies and brewers pouring their milk/beer down the drain, and people spluttering about how they couldn't find any beer or milk on the supermarket shelves. That isn't a supply/demand problem, that's a logistics problem.
(Also - seriously, you have 1 pound bags of flour over there? Most bags here are 1.5kg (3.3 pounds), with some specialist flours in 1kg (2.2 pounds) bags. 1 pound seems a little small.)
In the UK at least, it's very much due to new-found export (and import) restrictions. The price of food has slightly increased since brexshit, whereas its availability has plummeted: the number of varieties of vegetables stocked by my local Tesco, for example, has plummeted, and the stock sells out almost immediately after delivery.
> The price of food has slightly increased since brexshit, whereas its availability has plummeted: the number of varieties of vegetables stocked by my local Tesco, for example, has plummeted, and the stock sells out almost immediately after delivery.
Zero problems in any of the major supermarkets in my area in the South East. My food bills haven't increased notably either, if anything, looking at my bank statement right now, they seem lower over the past 4-5 months than the year before.
The only anecdotal thing I have noticed, is that there a few new brands on the shelves that weren't there previously, but that's probably just observational and confirmation bias, because I was looking for something, I saw it.
Oh I agree, what limitations on stock there are, are probably down to Covid and it being winter.
Still, why even have brexit if we're going to do our level best to pretend we're still in the EU as hard as we can. Is being subject to full export restrictions, hammering British businesses, while allowing many European goods to flow in un-checked really the brexit you signed up for?
Tesco here in Greater Manchester doesn't seem to have been impacted by availability. Where about in the country have you experienced this? Have you tried a different supermarket?
Aldi, Lidl, M&S, Morrisons and the local greengrocer all seem the same as usual here.
> the number of varieties of vegetables stocked by my local Tesco, for example, has plummeted, and the stock sells out almost immediately after delivery.
Are you in a really shitty area or something? I only saw what you described in the first week of lockdown one. Nothing has noticeably changed in my local Morrisons for the last few months.
I'm in an urban area that perhaps is a bit poorer than some others nearby, yes. The bigger out-of-town supermarkets have better stock but my usual urban Tesco (and to a lesser extent the two Sainsbury's Locals nearby) just don't have that much stock. It changed a lot in Lockdown 1 and hasn't really recovered.
I certainly noticed a few months ago that the supermarket in my local small town seemed to be better stocked than the larger supermarket in the nearby medium sized city.
But with most restaurants closing your will also have to subtract the food that would have been used there. Obviously most of them tried to change to a takeaway service, but I am pretty sure their overall customers went down by alot during all of this.
Restaurant supply chains are a totally separate beast. Bulk foods being supplied were mostly sent to landfills. Tons of potatoes for example that were only ear-marked for restaurants went straight to the dump.
Supplier A only supplies to restaurants it's normally a safe bet, so that's all they do. No restaurants buying - holy shit - my entire crop is excess...
I'm not a farmer but this is what I've read.
There's also the fact a lot of panic buyers might buy too much, then end up throwing a bit away because of fear that when they need it - it won't be there, but then it just spoils at home, etc.
Also food banks are taking a lot of the food. More people actually have money for food (one thing the govt does do is make sure people don't starve (usually) maybe more if you have kids).
TLDR: You can't just move all restaurant food to consumer/grocery like it's a commodity in Factorio... it takes a lot to shift global supply chains and get new contracts on how deliverables are received, etc...
> I don't get how food consumption can increase in a pandemic
There are a lot of people comfort eating and generally grazing out of boredom. I'm sure I've been eating a little more than I should with the crappy foods. Plus, people are saving so they are probably buying more foods to stock up on and thus throwing it all away.
Not to forget availability of labour. Which travel restrictions affect. Also processing has challenges. When your line worker might be out of service for week or two it can affect output, same goes for increasing the hygiene standards. And those also involve costs which will be moved to consumers.
tl;dr : programmer inserts a large empty loop in a UI, so that in weeks when he achieves nothing, he removes a single zero from the end of the loop counter to speed up things a bit.
Not that C strings do not suck, but with pascal strings we could discuss in this thread how implicitly copying a slowly decreasing part of a 10mb string at every tokenizer iteration could miss a developer’s attention. It’s completely unrelated to C strings and is completely related to bytefucking by hand. Once you throw a task like “write a low-level edge-case riddled primitive value shuffling machine” into an usual middle level corporative production pipeline, you’re screwed by default.
I'm with you. I hate null terminated strings. In my first experiences with C, I specifically hated them because of strlen needing to scan them fully. When C++ introduced string_view, my hate grew when I realized that I could have zero-copy slices all the way up until I needed to interface with a C API. At that point you're forced to copy, even if your string_view came from something that was null terminated!
Could this be worked into a compiler/stdlib from the back-end? Could a compiler/stdlib quietly treat all strings as a struct of {length,string} and redefine strlen to just fetch the length field? Perhaps setting a hook to transparently update "length" when "string" is updated is not trivial.
Edit: hah, I'm decades late to the party, here we go:
Most modern libraries replace C strings with a structure containing a 32-bit or larger length value (far more than were ever considered for length-prefixed strings), and often add another pointer, a reference count, and even a NUL to speed up conversion back to a C string. Memory is far larger now, such that if the addition of 3 (or 16, or more) bytes to each string is a real problem the software will have to be dealing with so many small strings that some other storage method will save even more memory (for instance there may be so many duplicates that a hash table will use less memory). Examples include the C++ Standard Template Library std::string...
I don't think you could do it transparently, because it's expected to pass the tail of a character array by doing &s[100] or s + 100, etc. I don't think that would be easy to catch all of those and turn them into a string fragment reference.
From c++ class, std::string was easy enough to use everywhere, and just foo.c_str() when you needed to send it to a C library. But that may drags in a lot of assumptions about memory allocation and what not. Clearly, we don't want to allocate when taking 6 minutes to parse 10 megs of JSON! :)
I have been using this for a while, GoAccess is a wonderful little tool to automate the parsing. Highly recommend to those who prefer the old-school approach towards web analytics.
I started running goaccess on the reverse proxy in front of computer.rip and some other sites just a few weeks ago... it has answered basically every question I've wanted from simple website analytics and it was very fast to set up and very response. Just a great tool all around.
Access logs are almost useless for analytics these days... all they give you is the URL that was visited and some extremely rough idea what OS and browser the client is using (UA parsing is a hellhole).
You don't get any more detailed information (e.g. device class, screen size/orientation) from analytics logs.
Also, if you're using one of the free hosting providers (GH Pages and the likes) you're not even going to get access logs.
I wonder if you could use CSS media queries to collect additional data about device characteristics, by linking to different URLs at different breakpoints?
Like a breakpoint for portrait mode would set the background of something to an image that's just a 1x1 pixel. So when that resource is accessed, you know the request came from a device in portrait.
I guess it depends on how different browsers decide to access resource urls in CSS files. If a browser just downloads everything first, and then processes the media queries, then it wouldn't work.
> Parse your server's access log file. The way it had been done for decades. "Analog" was popular then, Should be better options now.
It depends how much data you want. Google Analytics can give you all sorts of juicy privacy-invading (but totally fine because its aggregated) data about your users which you won't get parsing the servers access log.
Right! Linode was $20/month at least and more focused to businesses. Not the then unbelievable $5/month for SSH ssh accessible virtual box with root access that DO started. Plus the SSD. Other hosting providers later caught on with DO.
But the thing I liked best was their "no hidden cost". You pay what you agreed before to pay. No surprise. No upsell, trick sell which were common with all hosting at that time.
DO still maintains that honesty. Not sure what will happen after their IPO.