PHP causes so many issues because of the fact that it uses the same syntax for both arrays and dictionaries/maps. [] (or array() in older PHP versions) always JSON encodes to [] because there’s no way to tell if it’s supposed to represent an empty array or an empty dictionary.
Eh. It works just fine. I agree JSON encoding is weird but if you use it the recommended way (just use a StdClass object and throw on the fields you need) it works fine. Someone added half assed support for weird PHP arrays that usually works and is generally good enough.
If you read the docs for json_decode, the default behavior is to operate with stdClass - I too prefer working with associative arrays because of their power but… that kind of just reinforces how useful they are. PHP can give you the full Java class system if you want… it’s just a pain and useless in most circumstances so we all just toss around associative arrays.
Perl had $[ (yes, just those two characters) to allow setting of the first array index, but it's a fatal error to put anything but 0 into it now.
Of course, since Perl arrays can be negative subscripted from the last element, you can stand on your head and index the array negatively from the wrong end. -1, -2, -3 etc. Use unshift to put things on the beginning (logical "end") of what you're doing rather than the usual push. Presto, a 1-based array (up to sign, anyway).
You may wish to file this under "stupid, but it works".
People with more time / more need for something that looks professional, would probably be better off writing something that uses tie instead. (Or, yes, yes, a different language entirely, hush now.)
I hate how lemmy is starting to get flooded with generative AI pick. It’s the “lol, so random!”-meme of the current age, but with even less artistic/comedic value.
I don’t think that’s true. It’s just another tool. Using it to get a good result takes more skill, practice, and patience than using it to get an okay result.
That’s not to say it is equivalent in terms of skill required to oil paint, for example. But it really does stink of being obstinately against change for no reason other than it being change.
I imagine similar complaints were made when photoshop first started to rise in popularity and use.
I agree: it is a tool. And maybe you might at some point be able to create something worthwhile with it. But I’ve yet to see something wwrthwhile.
The main way “generative AI” is currently being used is by giving some idea some kind of form. If the original idea is just lame, or has been done to death (like a pixar poster of insert any atocricy here) : it will show.
If you think that AI is a shortcut to replace a creative idea, you will not be able to get any art from it.
You can also see that in the weird AI bro behavior, when they refuse to share their prompts: In any traditional art project people are glad to share their techniques. But AI bros realize that there’s so little effort involved that they are overly protective of their prompts so that people may not find out how low effort their “creativite” process actually is.
So, you don’t like the art you’ve seen made with AI. That’s fine. Art is subjective; just because you don’t like a medium doesn’t mean it’s not creative. There are plenty of mediums and styles I don’t personally like either.
If you think that AI is a shortcut to replace a creative idea, you will not be able to get any art from it.
That’s not contentious, in the sense of you won’t come up with any interesting art. My toddler’s scribble on a page isn’t interesting art either, but it’s still art.
As for the ‘AI bro’ thing - I haven’t run in to this, but yes it does sound like the ones that don’t want to share their prompts are insecure. It’s very normal for most artists to share their media and techniques with their piece; most AI art I’ve seen, particularly the better more interesting stuff, the person has shared their prompts and the models they’ve used.p
@Risk@Prunebutt, the risk is when we lose our own capabilities and intelligence, becoming dependent on AI. This has already happened with previous technologies. Who still has the handwriting of our grandparents with the introduction of the keyboard and word processors? Who can still do simple sums mentally for purchases at the supermarket, without using a calculator? With the introduction of smartphones, our lives have become completely dependent on these gossips in practically every aspect, social as well as professional.
Seeing this evolution, I always think of the humans in the movie Wall-e as the end result of this path. It is not that AI is going to fight and subjugate humanity, it does not need to do so, since we subordinate ourselves to it voluntarily, even today we would be unable to survive a week without our technology.
It happens when we start using tools, not for what they are, but as crutches for our own inability and intelligence, instead of using them for our own development.
Yeah, good quality handwriting is less prevalent now than it has been in the past - but that’s not because of a loss of artistry, but because that mode of written communication is less important. But there are still plenty of calligraphy artists out there, and are perhaps more highly prized now than they were before.
Human creativity doesn’t stop, we just progress to new tools when the previous ones can be automated. And yet, even then, we still have people that go back to use the old tools for the simple joy of using them.
@Risk, i don't confuse it,but an excess of delegacion IS at the end subordination. The calligraphy is only one example of a general tendency.
Of course there are people who continue to practice it and are sought after, precisely because there are few of them. But the vast majority do not have a writing that can be defined as such and many can no longer do so without using a spell checker, moving to a poor general vocabulary.
Human beings are very comfortable having others do their work and this with new technologies is becoming more pronounced, even with AI that turns on the lights or TV on command, because the 3 steps to the switch is too much effort.
But by delegating stuff we free up our time for other things.
If you’re making an argument that humans are tending towards being less creative, then I’d need to see some evidence to support that assertion. Because from my perspective we get more creative the more free time we have.
I wasn’t pointing to a conspiracy, merely the fact that the criticism voiced so far doesn’t have any substance to it other than ‘I don’t like it’ and therefore is likely because it’s new and different.
Edit:
I just realised you may be conflating my argument here about what constitutes as ‘art’ with artists making a case they’ve been ripped off because LLMs have been trained on their work.
doesn’t have any substance to it other than ‘I don’t like it’ and therefore is likely because it’s new and different.
So, just being against progress. Like I said.
you may be conflating my argument here about what constitutes as ‘art’ with artists making a case they’ve been ripped off because LLMs have been trained on their work.
Who? Artists, generally or those upset that AI/LLMs have been taught from their work? Not what I’m implying at all, as already highlighted extensively.
People criticising AI/LLM art as ‘not art/not creative’? Yes.
If you’re not conflating my argument, then you are either being really fucking stupid or deliberately trolling. In either case, I’m done wasting my time on you.
My gf actually showed me it and was raving on how we have to get it that I almost didn’t have the heart to tell her not a word on the package beyond ‘Lego’ was real
Ikr. The phone was supposed to be the screen in the middle (docked), but I couldn’t figure out how to tell that to the AI so it kept adding the extra phone plugged in via (very odd) cables.
My cat doesn’t care for people food, but she does paw at my arm until she gets to smell my breath when I’m eating. Our routine is for me to take a bite, open my mouth and breathe at her, and then she sniffs and walks away.
Way too accurate. Netflix, when it was the sole main provider, was super good. Then the other companies realised the big bucks they could get from streaming/peddling their own shit.
Thanks to this meme, I killed my netflix account. Nicotine is fine :D
It is good, if the competing products/services are interchangeable and they need to compete on factors such as price, convenience, or reliability. For example, competing grocery stores, all of which offer by and large the same products. Or competing mechanics, all of which can perform service on your car.
Streaming services don’t do this. They have carved up the market and “compete” by making you choose which products you want more.
Imagine two grocery stores, one of which had all the ice cream, and the other had all the chocolate, and neither could carry things that the other stocked. That is what streaming services are doing.
Modern copyright law is essentially a state sanctioned monopoly.
Rights holders should be forced to license the content to anyone that wishes to distribute it. As it stands now, they can lock it in a vault for generations if they wanted.
You mean like Disney still does… they just purged 500 million dollars worth of content from Disney plus and there is no other legel way to view most of that content now untill Disney decides to wheel it back out again (content that got a physical release is obviously still available)
They didn’t explicitly say they are back vaulting things again but I wouldn’t be surprised if they put out some of the content they took down back on disney plus or home releases at some point
Case law states that if media is no longer available, it’s consumption is considered preservation and is thus completely legal. Nobody can argue lost profits for something that literally isn’t even on the market. Fun fact: this is the reason why Nintendo releases their old games on the E shop for way more than what they’re worth. Once it’s up there they get to do takedown requests of every ROM on the internet.
this is the reason why Nintendo releases their old games on the E shop for way more than what they’re worth. Once it’s up there they get to do takedown requests of every ROM on the internet.
I want to be astonished and ask in disbelief if that’s really the case. But with how Nintendo treats not only piracy but content derived from their games in general (mods, tournaments and stuff), I can’t be surprised.
Do you mayhaps know why Nintendo is so hard on that front? I’ve heard that it’s “just the mentality in Japan”, but I can’t remember Sony cracking down on people like that.
Competition on price sounds nice because it prevents excessive prices, but it’s also a root cause of poverty and environmental abuse. Cooperating is much better.
Ehh…it’s entirely dependent on the product. Music streaming services are actually all comparable to one another and have not suffered the same fragmentation that the TV and movie streaming services have. With music streaming services, you literally just pick whichever works for you and you can get nearly all the same content. It just doesn’t work the same for every market I guess.
Genetics isn’t destiny, but a lot of important traits are highly heritable. Consider for example the heritability of IQ. I can see why someone who considers him or herself a good specimen would want children more like him or herself that like the sort of person whose children end up needing to be adopted.
Just because you’re so ugly nobody would ever reproduce with you doesn’t give you excuse to whine about children all the time. Go back to r/childfree you soulless redditor.
Logical solution to this is to wait until your kid grows up a little bit and stops crying for no fucking reason. You can still travel with your toddler if you really want to, but use your own car. I don’t get the reason to take a kid this young, to travel with you, since he’s not going to remember anything anyway
I live in Norway. It’s my constitutional right to have 5 weeks of paid holiday a year (excluding public holidays) whether or not I have children. Driving isn’t viable as it would take several days just to get to a ferry that leaves Norway. Crying children are a part of flying, get used to it.
You can have holidays in the same country that you live you know… Since you have a small child, it would be best to take care of him, instead of flying around in planes
Probably yeah, but also less stressful would be to plan your exotic seaside resort vacation in two years, when the little spawn of satan is not prone to crying for reasons classified.
Logical solution to this is to use your own means of transportation in order to be sure to be alone if you don’t like children. You can still take a plane if you really want to, but use your own plane. I don’t get the reason to take public means of transportation, since there will always be other people in them anyway.
Lol, allright let me just sit with my fucking toddler right next to you in a 6 hour flight. I coud’ve just waiter two years until he’s old enough to not cry at random shit to take him to Spain, but fuck ya’ll. I’m not locked in here with you, you’re locked in here with me and my toddler
Either you seriously hate children to a ridiculous degree- in which case you need to see a therapist because this shit ain’t healthy- or you’re a troll.
Yes, because I disagree, I automatically hate children and I’m brain damaged. Very smart argument 👍. And I just started commenting, so of course all of my comments are going to be here, since I’m arguing with you all and your lame ass excusees
The only people I’m not happy to see are insufferable r/childfree redditors who hate on literal children. If you hate babies there is something wrong with your brain.
I’m glad you’re speaking up. This isn’t a black and white situation. Sometimes I’d travel by plane to a surgery or from one, was already in a lot of pain and sensitive and having a child scream through it all gave me panic attacks. When I’m on my best, I don’t mind but I’m disheartened by the absolute disregard people attacking those who speak up against children on planes have towards people with misophonia, whatever it may be induced by. Idk where those people get noise canceling earphones and earplugs to have the noise of children screaming non stop next to you be blocked by them.
While I like the idea of every poacher being neutralised, I also understand that the “poach police” may intentionally/inadvertently kill innocents with their blanket immunity; plus many poachers may be poor af hired-guns that aren’t the actual source or root cause for the market, and may not dent the trade at all… Hope I’m wrong.
I also understand that the “poach police” may intentionally/inadvertently kill innocents with their blanket immunity;
Is there any evidence that that has been happening? (This article is from 2017, and it mentions “more than 20” poachers being killed in 2015, but doesn’t mention any non-poachers being killed, which it seems it would have, given it’s talking about the downsides.)
While I agree that taking the fight to the people financing the poaching, reducing the number of poachers - and providing a very clear disincentive for other “poor af” hired-guns to take up the mantle - could still help.
Personally, I don’t think any implied sanctity of human life extends to people who are killing endangered animals for profit.
ITT: People legitimately trying to name it, people saying “I’m American and I know this is fake,” and people who get the joke trying to come up with a good name.
I’m gonna guess the original version of this joke said “crashed” instead of “fell over”, cause then it would actually be ambiguous enough for the premise to work.
I vaguely recall a (probably apocryphal) story of an early washing machine-sized hard drive that lurched its way across the floor during a customer demo, eventually falling over once the connecting cables pulled taught.
Some bands of old-time hackers figured out how to induce disk-accessing patterns that would do this to particular drive models and held disk-drive races.
I use it to describe a variety of things, but usually it’s related to servers not being able to handle load rather than an outright crash, but I’m not strict about it. Laos balancer failures could be it, could also just be that something was really I efficient but wasn’t noticed until it went into production.
That’s probably fallout from the early days of this joke. After seeing this image with ‘the server crashed’, funny programmers would start saying their server “fell over” to reference that memory. Now it’s come full circle. Meanwhile those of us who are “grandma peering at the computer screen” would only say a computer has “crashed.” And wouldn’t know how to fix it beyond a couple of tries at turning it off and back on again. (Which usually does work, though!)
If you think about the brutality of nature, which we are mostly isolated from, then yeah, organisms in general do have to earn their right to life through overcoming and eating other organisms.
Even in a civilization someone has to produce food so you’ll survive. Civilization doesn’t mean no one has to work.
If you do no work but because of civilization you still have food to eat, it means someone else is working to earn your living for you.
This bizarre meme implies work has no value, and was likely made by a wealthy university socialist that had everything paid for by their parents so doesn’t understand the value of work.
This meme does not state no one needs to work. It states you don’t need to earn your place among the living. You’ve already done so by virtue of being born. I think that is a noble goal for a society to uphold. Higher ideals are, of course, what separates us from the realm of animal urges. Once you begin to mix laws of the jungle back into society the point of our isolation from it is subverted. If we truly are the greatest Earth has to offer, surely we can figure so.
Even Marie Antoinette wasn’t so disconnected from the peasants to say “let them eat higher ideals.”
Someone has to work so you can survive. If you don’t want to work, society will take care of you. You’ll still be living, but you aren’t earning it, someone else is earning it for you.
Once again, this is not saying society will take care of you and everyone will just sit on their bussies and no one will ever lift a finger. This is repealing the idea that you have to earn your stake to be considered human and alive in a world that has abstracted everything away to just getting funny paper. People will still farm and cultivate crops. There are people who want to do that now. Are you vehemently opposed to people just feeling and being accepted from birth? I for one think a society built on more welcoming foundations would see less crime and more work.
Sure there are people that want to farm. But are there people that want to want to deal with sewage? Why do you think plumbers earn more money than other trades?
I want to run a cafe instead of what I’m doing right now. I don’t want to be a waiter of wash dishes or anything like that. I just want to design the menus and decide on how it’s decorated. Is that the job I’ll have in a socialist utopia, or will I have to do a job I don’t want to do? What if there’s already too many cafes, or not enough people that want to be waiters or was dishes? I won’t have to do anything but I’ll still be provided for?
In the end there will always be people doing jobs they don’t particularly want to do. Someone’s gotta unclog the sewage when the elite of the socialist society plug the pipes with the overabundance of shit they spew out.
How about capitalism? How many MBAs does the world need? Marketing consultants? Advertising cosultants? IT consultants? Consultant consultants? There are countless jobs that serve the machine and no other purpose that benefits society. Somebody will do the necessary jobs. There are more incentives than you realize. For instance, what if I want more than my UBI pays me? Plumbing has entered the chat. The only reason you defend this system so hard as the epitome is because nobody has experienced anything else but this. Its scary I know, but there are more ways than one to exist, and every system has its trade-offs. But our social contract between our governments in clearly broken, we are clearly strung along on the whims of shareholders and capital. Say what you will, but I think we can do better than “those people deserve to starve son, they have no jobs.”
Who here is saying “No one should work” no one except maybe the most high on their own farts anarchist is saying that. The end goal of marxism is “From each According to their abilities to each according to their needs” their will be work, The farm will be ploughed. THe difrence is all will be provided for.
In no capitalist society that I know of will you be executed for not working - you have a right to life
What you don’t have the right to is someone else to provide for you if you don’t give anything back
That said I’m fairly sure with the amount of automation we have everyone should need to put in a whole lot less work than they do to keep society afloat
What you don’t have the right to is someone else to provide for you if you don’t give anything back
Yes you do. Lots of people are on disability benefits, unemployment, a pension, or are literal children. And those programs should be expanded to cover everyone who doesn’t work, not just those who can justify their existence to a government form.
What are you saying? That you wouldn’t give anything back if not for the threat of homelessness and starvation? I don’t need a threat to make the world a better place.
I’m sure I’d give something back but I’m also sure most of it wouldn’t be of much use to anyone else, I’d be working on stuff like mods, niche tools for myself that probably 3 people on earth would find useful, and stupid ideas for fun like some streamers get to
Listen, I don’t think it’d be as disasterous for anyone with a passion. The people who would be fucked and have to adjust are the ones whose only goal is get money. Imo thats not a healthy way to be a human as it usually has a price tag of everyone else. Theres constant suffering every day and most of it is in the name of profits. Shit, my boss acts like it’d murder him to get me 10k more a year so I am not below the american median when in reality the company wouldn’t even count that as pocket change, I see the revenue and expenses every day. The sociopaths control and benefit from this system and you defend it. Its like a strange stockholm syndrome.
Passions don’t necessary line up with something that’s beneficial to society is my point.
Absolutely the distribution of wealth at the moment is far from fair and I wish we could fix that, but I still think short of everything being automated even in a utopia where we do everything perfectly as a society people still have to do jobs they don’t want to because there are jobs noone wants to do that need doing
I highly doubt anyone has a passion for working in the service industry, cleaning up the messes kids make at school or collecting people’s rubbish but they’re jobs that need doing and people do them because they’re compensated for them
Less than two steps between that and eugenics, and one step between eugenics and genocide. We’ve seen and documented that. It’s a logical but sociopathic mentality.
Conversely, when we realise that we’re stronger together and act empathetically as a society, every one of us and all of society benefits. When we care for the least of us, crime goes down and we find geniuses who improve life for us all, who would otherwise die in anonymous poverty.
Living like barbarous animals – not rising above the ‘brutality of nature’, as you said – helps sociopaths who take advantage of our better nature to enrich themselves. Indeed, if we structure our society around that, as we have done lately, our society will devolve around the lowest common denominator (people like Musk or Trump).
Your comment would have hit much harder as a rejection of cruelty and advocacy for kindness if you haven’t thrown sociopaths under the bus. Most sociopaths are poor people, and they’re all disabled.
I know most people know this as a kneel, but one leg is standing. Just gotta somehow get more than 50% of your weight on the standing leg, thus technically resting the back knee, and this would be kneeling, while standing.
It’s an emergency light. If there’s a power cut/fire this light will come on so you can see. It’s battery powered and the green light means it’s working.
lemmy.ml
Top