

So, do much astroturfing today?


So, do much astroturfing today?
In this context probably javascript, but yes the delimiter is more an artifact of the code language that the regex is being used in than it is part of the regex itself.


The problem is that the seal around the end of the can might be broken in a not-obvious way. If air can get in, bacteria can start to grow inside.


Cold turkey.
Read a fucking book.
Retrain yourself to be patient and not require immediate, bad answers in favor of good, but slower answers (by reading books, and not skipping to the end).
Understand that anything worth doing takes time.
Recognize that the effort you make to solve problems for yourself is itself valuable for the experience that you gain. Also recognize that if you do not understand the tools that you are using, your capabilities will always be limited by those tools.
Realize that the journey is just as important as the destination (if not more important).
Right, but this expression has an explicit ^ and , so if there’s anything else in the input line besides a single instance of the pattern, it won’t match. This makes the g kind of pointless, there can’t possibly be multiple instances of the pattern in the same line and still return a valid match.


Oh yeah, good point, avoid any cans that look bent, dented or expanded.


Meat/eggs/dairy, definitely.
Vegetables, maybe, depending on what else they’ve touched.
Dry/canned goods, probably not unless they’re wet (e.g if it’s in a cardboard box or paper package and it’s damp, it’s not worth the risk - if we’re talking about grocery store waste then for all you know that was water used to wash the butcher’s work station or mop the floor).
Bacterial contamination is your primary concern, and after that mold. Salmonella could just end your life.


So, here’s a problem: food logistics is a massive, complicated morass of infrastructure. Getting food from the area where it’s produced to the area where there are people who want to eat it is difficult. A lot of individual steps have to go right for a bell pepper grown in Coahuila to show up in a grocery store in Tokyo, unspoilt and ready to eat.
The timing of when the pepper is picked, how fast it will ripen and how long until it spoils is built into the steps of the supply chain. The cost of the logistics system for distributing food, and the overhead for managing and containing the chaos, is probably substantially higher than the cost of actually producing the food.
The point being, when the bell pepper is at the store it is now ready for consumption. It will be there 2, maybe 3 days, and then if it is unsold it is at least halfway to rotten. Now at this point you want to try to redistribute it, which will require another supply chain, but there isn’t time to figure out where to send an overripe bell pepper or who would want to eat it, or to pack it and ship it and then unpack it and hopefully use it before it’s completely rotten.
Refrigeration is a wonderful technology that has brought massive reduction of food waste, but it has limits. You can’t un-ripen a fruit. Trying to re-ship food at this point would not be worth the cost, and ultimately would create environmental harms that would outweigh any benefit.
Always buy local, as much as you can!


when you read/listen/watch about inventors from the industrialisation period, they were often—if not always—motivated by profit and not philanthropy.
Because they also wanted to eat.
This definitely seems like a possible use case, but personally I think practical application of sed would be a bit advanced for a “Regex 101” course.
Updated because I clicked the reply button before it was actually done.
Basic concept: the purpose of regex is to search input text for matching patterns of characters.
Assuming this is correct (including the spaces):
/ ^(\d{3}) - (\d{2}) - (\d{5}) \2 \1$ / g
Then:
/ The first forward slash is the delimiter which tells the code that this is the start of the regex (start interpreting the expression after this).
^ The caret marks the beginning of the text string being searched for a match or the beginning of a line of text, meaning that any matches found by the following regex must begin at the beginning of the input text, or at the beginning of a new line of text, not somewhere in the middle of it.
(\d{3}) This is the first group for matching actual text characters. The \d matches any single digit (0-9). The {3} attached to it means that there must be exactly 3 digits adjacent to each other, no more, no less.
_-_ (underscore indicating that there is a space in the original expression) This must match a [space][dash][space] as literal characters.
(\d{2}) As before, this matches two adjacent digits. This is the second matching group.
_-_ Same as above, [space][dash][space].
(\d{5}) Same as the two patterns before, this matches five adjacent digits. This is the third group.
_\2 The [space] here matters, indicating that there must be a space character between the previously matched group of five digits and the following match group \2, which says to match the same text as the most recently matched 2nd group. In this case the second group would be (\d{2}), so this must match the same two digits as were matched by (\d{2}) in the same order.
_\1 Similar to the above, this must match a [space] and then the same text as the first most recently matched group. In this case that would be the (\d{3}).
This is the same as the ^, only it matches the end of the input text or the end of a line of text. This means that there cannot be any more characters in the input text after the last characters that match the specified pattern.
/ g The / is again a delimiter, indicating the end of the regex. The g means “global”, which instructs the code to search the entire input text for all possible matches and return all of them at the end of the search (default regex behavior is to search until the first match, then stop and return that result).
So example matches would look like this:
111 - 22 - 33333 22 111
012 - 01 - 01234 01 012
987 - 98 - 98765 98 987
But this would not match:
11 - 222 - 33333 222 11 (incorrect numbers of digits in the first and second groups)
012 - 01 - 01234 10 012 (the second group of 2 digits does not match the first group of 2 digits)
987-98-9876598987 (spaces are missing)
111 22 33333 22 111 (dashes are missing)
Speculation:
The matched string looks like a serial number or part number or something like that, so probably the use case for this regex is to search through a file containing a long list of such numbers all separated on new lines of text, to find specific ones (for some reason). Maybe numbers that match this pattern are invalid, or maybe only numbers that match this pattern are valid and everything else that might be in the file needs to be removed.
Based on this I think the end is actually wrong and should be / gm (m for multi-line) to allow for searching (and returning) multiple lines of input text. Otherwise, this should be part of code which splits the lines of the input text file into individual strings and then feeds them through the regex one at a time - but if that’s the case then using the g (global) flag doesn’t really make sense.
With thanks to https://regex101.com/


cyberpunk distopia
It’s all inside of me, it’s all inside of me
It’s all inside of me, it’s all inside of my head


Worse. It encourages selling them to the black market instead.
The illicit market for newly discovered security vulnerabilities generally pays pretty well, especially if you can demonstrate implementation. The only reason it’s not a much bigger problem is that most security researchers have some moral compunctions and the professional desire to fix problems, not proliferate them.
If the companies basically tell the security researchers to pound sand, that encourages making a living elsewhere.


Well, right, so if you Ctrl+Z after Ctrl+V it undoes the paste command, so in this context you just murdered a sentient being.
There’s probably a Port-a-Jon out there thats been in service for decades and seen thousands of construction sites and county fairs &etc.
Will wonders never cease?


Rosen misses what he considers to be a bygone era of elite dominance. Lamenting the current state of democratized influence, Rosen says “the old gatekeepers were political professionals who could count cards; small dollar donors today are amateurs yanking the handles of ActBlue slot machines.”
Abundance adherents often bristle at the suggestion that the project is orchestrated by Silicon Valley elites. But as the leaked documents demonstrate, Rosen and his colleagues clearly view it as such, and even frequently use the word “elite” by choice.
ROSEN OPERATES AT THE NEXUS of tech titans’ “hostile takeover” of San Francisco politics through a “grey money” network, documented in reporting from The Guardian and Mission Local. The Phoenix Project has dubbed this overlapping set of organizations and campaigns the “Astroturf Network” and detailed its operations in a set of reports and a pair of influence maps.
These people are villains.
What other things have you been touching, before you go touching me? Where has that hand been?