Sekitar 30 hasil (1.86 detik)
Komunitas sopuli.xyz

rule

Are you thinking of lookarounds? Backreferences do have some performance impact but a lookahead or lookbehind much more so. That definitely breaks the regularity, but I’m not sure that applies to backreferences (which may be my own ignorance). Performance wise unmatched lookarounds are the least performant getting worse as the size of the corpus increases. A positive lookahead/lookbehind has to scan all the text before or after the assertion to determine match failure and likewise negatives must do the same to determine match success. Greedier matching also amplifies things here (do you want just the first match or all of them?) I’m more fluent in regex syntaxes than in the implementation details of any specific regex engine, so please correct me if you know Im wrong, both for my own edification and so that when I share things going forward Im sharing the most accurate information that I can.

Komunitas feddit.it

MrAlagos

🌍🌎🌏

Komunitas feddit.org

rule

By “inside first” I mean this Regex: b"<(sampletag\d+)>([^<]*?)" # ^^^^^^^^^^^^^^^^ capture tag opening # ^^^^^^^^ capture content, make sure no children # ^^^^^^ detect tag closing (part of a Python script; b because I’m parsing a mmapped binary file with NUL bytes that would ruin strings) Yes, it only works for bottom-level XML tags, I’d need to remove each level with a Regex replace and re-run it to detect parent nodes. Presumably, the middle part could be improved to also detect tags as long as they don’t contain tags of the same type inside. Fortunately, the specific schema and the limited data I needed (strings) allowed me to just go over bottom-level elements. I’d use an XML library but it’s not a valid XML file, it’s part of a raw image of a damaged drive with XML files. Very cursed. It worked in a pinch but you shouldn’t ever parse XML/HTML with Regex if you can avoid it with libraries like BeautifulSoup. By the way, some have used Regex to parse HTML, see Chad Scraper meme.

Komunitas sh.itjust.works

Thoughts after my first month on Lemmy

I finally made the leap to Lemmy. It’s a little confusing, but it’s doing a pretty good job of scratching that reddit itch. Some random thoughts: I just need a place to spit out my random thoughts and have random conversations and make random jokes; it’s really not that demmanding. Do I miss having 400 upvotes instead of 11? Sure, but the main thing is that I’m communicating with people. Definitely get an app. I’m using Voyager on my phone with a KBM–how I mostly get around. Big difference from Reddit: Those 400 upvotes come at a cost–posts are dead within a few hours. There’s almost no point to leave a new comment in an active thread–nobody is going to see it. And there’s also no point in leaving a detailed explanation of anything on reddit for the same reason. On Lemmy, I’ll get replies to posts and comments DAYS later, and people seem more willing to be helpful; maybe because things are less contentious, and maybe it’s just people are naturally more helpful to strangers in smaller communities (see cities vs small towns)… So really, the only downside to lemmy–the small size of the population–ends up being one the best things about it. It’s definitely nice not having to compulsively check to see if my comments have been shadowbanned–which happened quite frequently and seemingly without reason on reddit. It’s nice to be in a space where I can be more frank about political remedies. It’s nice that I can view the comment histories of people I’m talking with to determine if they’re an inveterate asshole or just having a bad day (only found one asshole so far). That’s it! 10/10. I’ll try not to burn my reddit account in case I have a tough question, but I honestly think a technical question is more likely to be answered on Lemmy with it’s small platoon of nerds with little to chew on than the hordes of ignorami on reddit rapidly trying to solve everyone’s problem by free associating the title of the post.

Komunitas lemmy.sdf.org

SirGolan

Lihat kiriman asli pada platform media sosial terkait.

Komunitas reddthat.com

The Game: Christmas Day, 1914 by Ian McMillan

The Game: Christmas Day, 1914 It is so cold. The lines of this poem are sinking Into the unforgiving mud. No clean sheet. Dawn on a perishing day. The weapons freeze In the hands of a flat back four. The moon hangs in the air like a ball Skied by a shivering keeper. All these boys want to do today Is shoot, and defend, and attack. Light on a half-raised wave. The trench-faces Lifted till you see their breath. A ball flies in the air like a moon Kicked through the morning mist. All these boys want to have today Is a generous amount of extra time. No strict formations here, this morning; No 4-4-2 or 4-5-1 No rules, really. Just a kickabout With nothing to be won Except respect. We all showed pictures, I learned his baby’s name. Now clear the lines of this poem And let’s get on with the game. No white penalty spot, this morning, The players are all unknown. You can see them in the graveyards In teams of forgotten stone; The nets are made of tangled wire, No Man’s Land is the pitch, A flare floodlights the moments Between the dugouts and the ditch. A hundred winters ago sky opened To the sunshine of the sun Shining on these teams of players And the sounds of this innocent game. All these boys want to hear today Is the final whistle. Let them walk away. It has been so cold. The lines Of these poems will be found, written In the unforgotten mud like a team sheet. Remember them. Read them again.

Komunitas lemmy.world

lemmegogo

Lihat kiriman asli pada platform media sosial terkait.

Komunitas news.abolish.capital

‘Every day it’s more barriers’: how the US is shutting out climate refugees

Millions of people around the world are having their lives upended by floods, storms and heatwaves worsened by the climate crisis. Those forced to flee their home countries, however, are finding that the door to the US is more firmly shut than ever. Neither US nor international law recognizes environmental hazards, such as climate-related displacement, as a valid cause to claim asylum or gain entry through other migration pathways, despite the mounting toll of disasters caused by an overheating planet. But those who have managed to get to the US through other means after being displaced in this way now find themselves in an even more precarious position following Donald Trump’s immigration crackdown, with little hope of a new system to help others forced from their homes by climate impacts. For some, that pathway to the US has been particularly perilous. When Hurricane Mitch crashed into Honduras, killing 7,000 people, one affected family surveyed the unsalvageable ruins of their home and realized they had a lifeline – to move to the US. Read Next The biggest climate migration problem may be that there’s not enough of it Julian Hattem Evelyn, who does not want to share her full name, was a teenager when Mitch hit in 1998 and recalled how her relatives in New York City pleaded with her mother to bring her and her sister to the US. “There were bodies and dead animals floating in the water, the house was messed up, the furniture was all gone – doors, windows gone. It was so, so sad,” said Evelyn. “I got sick because of the mosquitoes and didn’t have any services to rebuild the house because our country is very poor. My uncle and aunt were just like, ‘OK, just bring the kids over here, don’t stay. It’s dangerous.’” Storms of the deadly ferocity of Mitch are even more likely now because of a hotter atmosphere and ocean that has rapidly heated up from the burning of fossil fuels. Yet Trump’s migration crackdown has made it far harder for people like Evelyn to flee to the US now.“Every day it’s more barriers,” said Evelyn, who still lives in New York and has two daughters, one studying to be a lawyer, the other a doctor. “It’s sad to know that people will not be able to apply for a status or something to help their situation and also help the people back home.” Some migrants in the US have faced living in countries rocked by climate shocks and conflict. “I was invited to come here and be part of this country and now all of a sudden you try to make me go back after establishing a life here?” said a doctor from Sudan, who moved to the US several years ago and did not want to be named. The doctor faces the prospect of deportation under a new Trump administration edict that has blocked all entry to the US from Sudan and dozens of other countries. Read Next Rising heat, failing kidneys: Climate’s hidden toll on migrant workers Natalie Donback A severe drought in Sudan has worsened a fierce civil war in the country and pushed people from the agricultural land where the doctor comes from. “People have had to abandon their lands because there isn’t enough water, millions have fled,” he said. “There is climate change and the difficulty of people sharing resources and the conflicts are affected by that. I would rather stay home and do my medical training here but many factors forced me to leave the country.” Droughts are being exacerbated by rising global temperatures, researchers have found, and a leading cause of the 250 million people worldwide who have been displaced by environmental factors in the past decade, according to the United Nations. Displaced people in certain countries can also be affected by wars or fall victim to gangs or other violence as a result of their movement. These secondary impacts are often the ones that compel them to flee over international borders and gain sanctuary elsewhere. “It was always hot, no rain,” said another man, from Somalia and now applying for asylum in the US, about the drought in his own country. Somalia, like Sudan, has been racked by civil war. “People from the farming lands, they’re dying, with no water,” he added. “Also the animals, they die because when it’s not raining, everything will dry, people die, animals die, and all the people they run from the farm and come to the city. So everything can get hard.” Read Next ‘No rebuilding without them’: Trump’s immigration crackdown will affect disaster recovery Nina Lakhani, The Guardian After being forced from bone-dry farmland to Mogadishu, the man said he came to fear for his life due to armed groups that were bombing markets and forcing children to become soldiers, so he became a refugee. He now faces new fears in the US after the Trump administration effectively shut down the asylum system, other than to white South Africans. *“*Now we are getting a lot of attacks from the government,” the man said. “I don’t know why. I don’t understand what the problem is. It’s scary with the government here, how they are treating people.” People uprooted from countries like Sudan and Somalia now face an almost impossible situation in terms of entry to the US, according to Felipe Navarro, associate director of policy and advocacy at the Center for Gender and Refugee Studies. *“*If you were displaced by climate change, that door is closed,” he said. “I don’t think climate displacement comes into the administration’s thinking; it’s probably not intentional. They just have a general hatred for certain nationalities and races. This administration doesn’t really care about climate change at all.” Some Democratic lawmakers have in recent years attempted to introduce a climate-related visa that would cover people fleeing extreme weather disasters. However, with the political mood swinging strongly against migrants, advocates’ hopes of reform have dwindled, even as the number of displaced has ballooned. *“*It’s hard to predict the long-term effects of these policies,” said Navarro. “When we close doors, though, people always find another path to move.” This story was originally published by Grist with the headline ‘Every day it’s more barriers’: how the US is shutting out climate refugees on Jun 13, 2026. From Grist via This RSS Feed.

Komunitas aussie.zone

Big Walk - Release Date Announcement

Big Walk is coming to Steam, Switch 2, & PlayStation 5 on August 4 2026! Let House House show you some of the things you might get up to in a play session of Big Walk. Wishlist here: https://store.steampowered.com/app/14… Listen to the music: • aksfx - Big Walk Theme (Jumping Voices) Hang out and get lost with close friends in a big world. A cooperative online walker-talker from the creators of Untitled Goose Game. Set out with your friends through a wide-open world full of challenges, puzzles, and discoveries. You’ll need to work together to find your way around, stay in contact using an assortment of tools and toys, and figure out new ways to communicate when you suddenly find yourself speechless. Adventuring aside, there’s plenty of time to just hang out. Sit and watch the sunset, or steal your friend’s binoculars and kick them into the ocean. Spending time with friends is the best part of a big walk.

Komunitas feddit.nl

Life in your 30s

I beg to differ. I’m absorbed mostly in work but also a little bit of 3, however the “something” is merely trying to stave off a heart attack and premature physical degradation in general, and not so much some grand lofty fitness goal. And also 4. The amount of negativity that entered my brain through social media reached critical mass during the early stages of Covid and I axed pretty much all of it and never returned.

Komunitas expressional.social

“The Secret Israel Plot to Ban Palestine Action: This is the story of how Israel got a protest group based in another country proscribed a Terrorist organisation”

“The Secret Israel Plot to Ban Palestine Action: This is the story of how Israel got a protest group based in another country proscribed a Terrorist organisation” by Kathy in Manufacturing Dissent on Substack @[email protected] @[email protected] @[email protected] @iran “They told us it was about security. They lied. The proscription of #PalestineAction was not a sober counter‑terrorism decision; it was the outcome of a deliberate, well‑resourced campaign by Israeli‑aligned lobby networks, defence contractors and high‑profile advocates that bent UK policy to punish critics of Israel. At the centre of that campaign stood Catherine Perez‑Shakdam and the lobby group We Believe In Israel, working with industry allies to amplify alarm, press ministers and shape media coverage” https://open.substack.com/pub/mandissent/p/the-secret-israel-plot-to-ban-palestine #Press #SocialMedia #Gaza #PalestinianGenocide #Zionism #Resistance #EradicateZionism #DecolonizePalestine #GlobaliseTheIntifada #Israel #WeBelieveInIsrael #IsraelLobby #UK #Proscription #Terrorism

Komunitas lemmy.world

got2best

Lihat kiriman asli pada platform media sosial terkait.

Komunitas lemmy.world

AI Billionaires Are Starting to Get Scared

The point is that minorities don’t cease to have a right to autonomy just because they’re in the minority. The 99% could also have a strong vested interest to abuse the 1%. I agree that minorities shouldn’t inherently have their rights forfeit to the majority. I agree that, in most cases, the majority should protect the rights of minorities and that doing so is often in their own best interests. You fail to miss an enormous caveat - this is not an absolute. Should those child abusers, as a minority group within the population, have their right to abuse children protected from the rule of the majority? Is it the tyranny of the majority to constrain/limit the actions of that minority just because they are in the minority? Should they have a place where they can go to be free of majority rule and live only by the constraints that they themselves feel are appropriate? This is why governance is not a simple thing. There are variations, spectrums, and extremes within the population. Ultimately, the majority must, to some degree, have rule over minorities. We should do our best to determine which “freedoms/rights” should be protected and which can, and in some cases, must be infringed upon. Obviously, I’m not advocating that any particular minority, particularly when it comes to ethnicity or nation of origin, is inferior or deserves to be ruled over. However, due to the nature of the system, it unfortunately can and does happen. It’s a constant struggle. I do note you use the word “autonomy”. Due to the varied interpretation of that word, it means nothing to me in this argument. If you want to be more specific, feel free, but it is just a word. What it means and what should be covered by any rules that use the word will, ultimately, be determined by… the majority.

Komunitas hexbear.net

Utility CEOs Are Hiring Bodyguards Because People Are So Mad

cross-posted from: https://hexbear.net/post/8756068 The anger and anxiety over electricity in America is palpable. You can see it in packed utility commission hearings, in protests against companies, and in furious reactions on social media. And you can see it in the polling. Across poll after poll, more people are saying that they can’t afford their bills and they think utilities need to change how they make money. And they are also very cynical about data centers. So will this be the push utilities need to finally change the way utilities pay for infrastructure? This week, we dig into three indicators. First: 75% of Americans say their home energy costs have gone up, and a quarter of Americans now consider utility bills unaffordable. Second: 86% of California voters said executive pay should be tied to affordability. And third: 71% of Americans would now oppose a data center being built near their home, a 49-point swing in less than a year.

Komunitas lemmy.world

Elgordofordo86

Lihat kiriman asli pada platform media sosial terkait.

Komunitas fedia.io

How do you reduce score on AI detectors?

You could use something that automatically keeps track of revision history, like Google Docs. If your writing is flagged by their AI detectors, show them the full history.

Komunitas sh.itjust.works

GodsKillerKirb

Lihat kiriman asli pada platform media sosial terkait.

Komunitas lemmy.ml

ProtonDB alternatives

isn’t enough to call it open source I never said that ProtonDB was open source. you would still have a diverging dataset if you allow people to insert new records in the new app An Open source WebApp would not prevent this from happenning either. A community-led fork is nothing if “new entries” are all going through the main open source tool extending the “old” database. It would only benefits from having the same code base. Same problem, doesn’t solve it. The ProtonDB owners could just decide to not export that data any longer whenever they want. I haven’t read the whole license myself so I don’t know all the legal aspect if they were going to do this. But if they chose to close the database future entries, I’m pretty confident that the Linux Gaming community will organize themselves to quickly get another app, forking the open database previous from the closing decision. Allowing them to quickly move to a new common place. ProtonDB will probably lost reputation and usage as time goes but this is not a prediction scenario. You also can’t change the data being Steam specific when the app is closed source and not accepting contributions That’s another (valid) point. But nothing prevent you to build a webapp that periodacly imports from ProtonDB database to show Steam games data while also lists other titles that are not available through Steam creating a new database with your users entries for other platforms. Open Source is a way to organize people around a project. ProtonDB author doesn’t seems to want their code to be publicly available for consulting nor for improving or modifying by external people. And that’s their rights to do so. For now, it seems that their projects is benefiting the Linux gaming community and the open license of the database is appreciated. If the project goes in an unexpected direction, people can fork the database which is the most valuable data, more than the code of the webapp.

Komunitas community.nodebb.org

Trying to get an idea about NodeBB v4 MongoDB Resource Allocation

Apologies if this is the wrong category but wanted to get an idea about the kind of the VM resources others are using when running NodeBB. Our current forum is v3 and we’re using MongoDB (DB size is around 2.5). We have around all time 12K users (average active guest+users # at a given time is around 50-100). There’s around all time 30K topics, and about 100K daily page visits. We’ve been running MongoDB as a 3-replica-instance setup and has worked very well so far. (Dedicated VM for Nodebb, dedicated VM for 1x MongoDB PRIMARY instance, and one more VM for 2x MongoDB SECONDARY instances) We have been trying to upgrade the forum to v4 a few times now (DB size increases to around 5.5GB from 2.5GB). However, due to Mongo issues (Data syncing across replica sets, allocated resources not being enough etc sometimes), once upgraded, the DB setup has failed and we have had to keep our current v3 setup so far. We are now exploring the option of getting rid of our current 3-replica-instance setup and use only one Mongo instance. However, before we proceeded/tested, I would like to get an idea if anyone has similar experience running a forum of around the same/larger specs and which kind of resources have been allocated(CPU/RAM/SWAP etc) for running a dedicated MongoDB instance. Thank you!

Komunitas lemmy.ca

Diego

Lihat kiriman asli pada platform media sosial terkait.

Komunitas lemmy.world

showmewhatyougot

Lihat kiriman asli pada platform media sosial terkait.

Komunitas lemmy.world

UK: Under-16s to be banned from social media, Starmer announces

Yeah I agree with all of that. There is more appetite for the youth ban is all. I dont want verification and believe there are huge risks for government over reach here, but I think the goal of getting kids off social media is brilliant. Same reason smoking bans are generational, its easier to pass.

Komunitas lemmy.ml

fastestMango

Lihat kiriman asli pada platform media sosial terkait.