[-] GlassHalfHopeful@beehaw.org 3 points 1 year ago

Well,RCON has not fared well. Afaik, I've set things up correctly but the client I'm using (mcrcon) keep returning Error 111: Connection refused.

  • This post got me to direct things to the right IP which I could get with docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' mcbe-world.
  • docker port mcbe-world shows that the rcon port is open
  • the server.properties files for the mc server has the relevant rcon lines
[-] GlassHalfHopeful@beehaw.org 4 points 1 year ago* (last edited 1 year ago)

Ooh. I was not aware of the RCON protocol. Looking into now. This may be the exact thing I need. Thanks for the lead.

17
submitted 1 year ago* (last edited 1 year ago) by GlassHalfHopeful@beehaw.org to c/linux@lemmy.ml

Note: Still trying to navigate communities here on Lemmy to replace those from Reddit. If there is a better place such a question, I would welcome the suggestion.

I'm running a Synology NAS, which uses some flavor of Linux distribution. From there, among everything else running, I have a docker container hosting a Minecraft Bedrock Server. The MCBE server is great for fun, but not so great for resource usage. To handle this, most folks setup something to schedule the server to restart.

Within Synology, there is a task scheduler where I can run a user-defined script to restart the whole container: docker restart mcbe-world

This works, but it's a dirty reboot though. I worried about corrupting the world (which I do regularly backup). From within the Minecraft server terminal, the /stop command will gracefully shut it down.

I can't update the container with another application, like screen, because each MCBE update means replacing the entire container (and so destroying the changes). I am looking to somehow redirect a command to the server if possible.

Using docker exec -it mcbe-world , I can execute what I want within the container.

The person here said, one can "inject commands by running the command as the appropriate account and redirecting it into the server" and they gave the example sudo su -s /bin/bash -c "echo say foobar > /run/service@name" Unfortunately, this isn't so clear and straight forward to me.

Would anyone here be able to articulate this more clearly for me or have an idea as to how I might issue that /stop command from the Synology scheduled script BEFORE restarting the container?

Thanks!

UPDATE: Solution here: https://beehaw.org/comment/1088961

[-] GlassHalfHopeful@beehaw.org 6 points 1 year ago* (last edited 1 year ago)

Full article.

Judge sides with young activists in first-of-its-kind climate change trial in Montana By AMY BETH HANSON and MATTHEW BROWN

11 mins ago

HELENA, Mont. (AP) — A Montana judge on Monday sided with young environmental activists who said state agencies were violating their constitutional right to a clean and healthful environment by permitting fossil fuel development without considering its effect on the climate.

The ruling in the first-of-its- kind trial in the U.S. adds to a small number of legal decisions around the world that have established a government duty to protect citizens from climate change.

District Court Judge Kathy Seeley found the policy the state uses in evaluating requests for fossil fuel permits — which does not allow agencies to evaluate the effects of greenhouse gas emissions — is unconstitutional.

Judge Seeley wrote in the ruling that “Montana’s emissions and climate change have been proven to be a substantial factor in causing climate impacts to Montana’s environment and harm and injury” to the youth.

However, it’s up to the state Legislature to determine how to bring the policy into compliance. That leaves slim chances for immediate change in a fossil fuel-friendly state where Republicans dominate the statehouse.

Julia Olson, an attorney representing the youth and with Our Children’s Trust, an Oregon environmental group that has filed similar lawsuits in every state since 2011, celebrated the ruling.

“As fires rage in the West, fueled by fossil fuel pollution, today’s ruling in Montana is a game-changer that marks a turning point in this generation’s efforts to save the planet from the devastating effects of human-caused climate chaos,” Olson said in a statement. “This is a huge win for Montana, for youth, for democracy, and for our climate. More rulings like this will certainly come.”

Emily Flower, spokeswoman for Montana Attorney General Austin Knudsen, decried the ruling as “absurd,” criticized the judge and said the office planned to appeal.

“This ruling is absurd, but not surprising from a judge who let the plaintiffs’ attorneys put on a weeklong taxpayer-funded publicity stunt that was supposed to be a trial,” Flower said. “Montanans can’t be blamed for changing the climate — even the plaintiffs’ expert witnesses agreed that our state has no impact on the global climate. Their same legal theory has been thrown out of federal court and courts in more than a dozen states. It should have been here as well, but they found an ideological judge who bent over backward to allow the case to move forward and earn herself a spot in their next documentary.”

Attorneys for the 16 plaintiffs, ranging in age from 5 to 22, presented evidence during the two-week trial in June that increasing carbon dioxide emissions are driving hotter temperatures, more drought and wildfires and decreased snowpack. Those changes are harming the young people's physical and mental health, according to experts brought in by the plaintiffs.

The state argued that even if Montana completely stopped producing C02, it would have no effect on a global scale because states and countries around the world contribute to the amount of C02 in the atmosphere.

A remedy has to offer relief, the state said, or it’s not a remedy at all.

74

Am I wrong in feeling some hope in this (at least concering US law and the huge effect the country has on the climate as a whole)? It feels like this is... actually something?

26
62

The extreme heat has devastated corals.This is a truly heartbreaking read:

“The coral didn’t even have a chance to bleach, it just died. It just felt like, ‘Oh my God, we’re in the apocalypse.’ What’s happening?”

Archive link: https://web.archive.org/web/20230731225349/https://www.nytimes.com/2023/07/31/climate/coral-reefs-heat-florida-ocean-temperatures.html

1
[-] GlassHalfHopeful@beehaw.org 17 points 1 year ago

Full article

Hops for beer flourish under solar panels. They're not the only crop thriving in the shade. | AP News MATTHIAS SCHRADER, DANA BELTAJI 7 - 9 minutes

Published 1:57 PM EDT, July 21, 2023

AU in der HALLERTAU, Germany (AP) — Bright green vines snake upwards 20 feet (six meters) toward an umbrella of solar panels at Josef Wimmer’s farm in Bavaria.

He grows hops, used to make beer, and in recent years has also been generating electricity, with solar panels sprawled across 1.3 hectares (32 acres) of his land in the small hop-making town of Au in der Hallertau, an hour north of Munich in southern Germany.

The pilot project — a collaboration between Wimmer and local solar technology company Hallertauer Handelshaus — was set up in the fall of last year. The electricity made at this farm can power around 250 households, and the hops get shade they’ll need more often as climate change turbocharges summer heat. This photograph provided by William Collins shows the string bean fields that were decimated at his farm's fields by flood waters about a week earlier at Fair Weather Growers, Sunday July 16, 2023, in Rocky Hill, Conn. Prior to the flooding, the fields were thriving. When devastating rains swept through the region, farmers in the Northeast were dealt a devastating blow at the worst possible time. (William Collins photo via AP)

When rains swept through the Northeast, farmers in the region were dealt a devastating blow at the worst possible time. FILE - An employee of the Romanian grain handling operator Comvex oversees the unloading of Ukrainian cereals from a barge in the Black Sea port of Constanta, Romania, on June 21, 2022. Five European Union countries will extend their ban on Ukrainian grain to protect their farmers’ interests. But agriculture ministers from Poland, Slovakia, Hungary, Bulgaria and Romania said Wednesday, July 19, 2023 that food can still move through their land to parts of the world in need after Russia pulled out of a deal allowing Black Sea shipments. (AP Photo/Vadim Ghirda, File)

Five European Union countries will extend their ban on Ukrainian grain to protect their farmers’ interests. A man displays imported and local grain in Dawanau International Market in Kano Nigeria, Friday, July 14, 2023. Nigeria introduced programs before and during Russia's war in Ukraine to make Africa's largest economy self-reliant in wheat production. But climate fallout and insecurity in the northern part of the country where grains are largely grown has hindered the effort. (AP Photo/Sunday Alamba)

Nigeria is trying to make Africa’s largest economy reliant on its own wheat production. But climate change and violence in the northern part of the country, where grains are largely grown, have hindered these efforts. This photo taken from video released by Russian Defense Ministry Press Service on Wednesday, July 19, 2023, shows two Russian 152 mm self-propelled howitzers fire toward Ukrainian positions at an undisclosed location. (Russian Defense Ministry Press Service via AP)

Russia unleashed intense overnight drone and missile attacks that officials said damaged critical port infrastructure in southern Ukraine, including grain and oil terminals, and wounded at least 12 people.

Solar panels atop crops has been gaining traction in recent years as incentives and demand for clean energy skyrocket. Researchers look into making the best use of agricultural land, and farmers seek ways to shield their crops from blistering heat, keep in moisture and potentially increase yields. The team in Germany says its effort is the first agrivoltaic project that’s solely focused on hops, but projects have sprouted around the world in several countries for a variety of grains, fruits and vegetables.

Beer-making hops can suffer if exposed to too much sun, said Bernhard Gruber, who’s managing the project’s solar component — and since there were already solar installations on the farm, it made sense to give them a second purpose by mounting them on poles above the crops.

In addition to shielding plants from solar stress, the shade could mean “water from precipitation lasts longer, leaving more in the soil” and that “the hops stay healthier and are less susceptible to diseases,” Gruber said. A scientific analysis of the benefits for the plants will be concluded in October.

The farm is working with researchers to understand how to get the balance right, so the hops get enough shade and sunlight for the best harvests each year.

In the U.K., where weather is also getting hotter and more variable, a team of researchers is looking at how to retrofit solar panels onto greenhouses or polytunnels — frames covered in plastic where crops grow underneath — with semi-transparent or transparent installations.

“You can get your renewables from the land that you do have covered and you don’t need to do these massive solar arrays on good agricultural land, which is what you’ve tended to see around to date,” said Elinor Thompson, a reader at Greenwich University who’s leading the research.

Thompson, a plant biologist, and her team are working with a fruit farm in Kent in southern England to make sure the plants also get the best out of solar structures.

“Nobody can afford to lose crop, especially in current conditions,” she said. “We are assuming that British summers are going to get hotter, we have a problem with water shortages, we need to be efficient in all parts of agriculture.”

Having shade where it’s useful and monitoring the effects of different arrangements of solar panels on a variety of crops will help the world prepare for a more climate-variable future, Thompson said.

In East Africa, which has suffered from a long and punishing drought that scientists said was worsened by human-caused climate change, solar panels can also help keep moisture in plants and soil and reduce the amount of water needed, said Richard Randle-Boggis, a research associate at the University of Sheffield who’s developing two agrivoltaic systems in Kenya and Tanzania.

Randle-Boggis said the systems can be used for “climate change resilience and a way of improving the growing environment for crops, while also providing low carbon electricity.” He said that some of the crops under the partial shade of solar panels are using around 16% less irrigation.

The solar-covered farms saw increased yields for maize, Swiss chard and beans, and while growers experienced lower yields for onions and sweet peppers, they still had the added benefit of clean electricity generation.

But crop yields can also “vary depending on the weather conditions because we’re seeing the climate changing,” said Randle-Boggis, although he added he was “really surprised and impressed with some of the results that we’re seeing” for solar-covered crops.

“Maize is grown by about 50% of farmers in Tanzania. Maize is also a sun loving plant. So the fact that we had an 11% yield increase in maize ... is a phenomenal result,” he said.

And Randle-Boggis said these projects can continue to be replicated around the world for many different crops, as long as systems are “designed with the local context in mind.”

A future with more crops under solar is Gruber’s hope for beer-making hops, too.

“At the end of the year we will set up another solar park over hops,” which will have about 10 times the electricity-generating potential as the current project, Gruber said.

But that’s still just the beginning.

“We’re getting lots of inquires from hop farmers,” he said, “even from abroad.”


Beltaji reported from London.


Associated Press climate and environmental coverage receives support from several private foundations. See more about AP’s climate initiative here. The AP is solely responsible for all content.

197
[-] GlassHalfHopeful@beehaw.org 2 points 1 year ago

If you wish. You can set it up to only sync locally (intranet only) or you may expose it via DNS and port forwarding.

[-] GlassHalfHopeful@beehaw.org 18 points 1 year ago* (last edited 1 year ago)

Yes! This! I'm not familiar with DFWP, but next time I'm on my PC, I'm adding it.

[-] GlassHalfHopeful@beehaw.org 2 points 1 year ago

I'm using Synology photos. Auto backup for everyone's phones. Shared common library we move things into for all our photos. I miss some of the ai search capability of Google, but never enough to do anything but self host.

[-] GlassHalfHopeful@beehaw.org 2 points 1 year ago* (last edited 1 year ago)

Hmm. This might be worth trying. And moving them to mow could work. Thank you!

Assuming they are effective, my only concern then is how they might affect other creatures. I understand that it radiates into the ground, but I'm also worried about things above ground. I'm particularly concerned about birds if it can affect them at all. I wouldn't want to deter them.

11
submitted 1 year ago* (last edited 1 year ago) by GlassHalfHopeful@beehaw.org to c/greenspace@beehaw.org

How are you all managing the varmints in your yard? I've lived in a lot of places in my life and it seems I've found quite the mole and vole hotbed also known as my yard. sighs

My dog is able to catch them, but not without digging up tunnels, grass, and making a mess. My neighbor inserts "worms" (poison) into the tunnels, but I don't do that because of our dog.

I wish I could lay a yellow brick road for them to follow to a happier place, but they don't seem to be the type to understand. I don't actually want to harm any critters and thus the inner turmoil of humankind vs nature. I really don't like this post and I'm the one who wrote it.

13

At one precise moment this weekend, nearly all of the 8 billion people on Earth will be able to see sunlight in the sky, the counterpart to the "moment of darkness" that unfolds in December.

[-] GlassHalfHopeful@beehaw.org 5 points 1 year ago

Better for her if what her lawyers are seeking comes to pass.

Sentencing is scheduled for September 8, according to Dunedin District Court. While the maximum jail sentence is 10 years, Penwarden said her lawyers are asking for “discharge without conviction.”

I'm so frustrated by the powers who put persons like her in prison while genuine and true corruption is permitted to continue unabated.

51

Rosemary Penwarden, [a 64 year old] climate activist in New Zealand, faces more than 10 years in jall for a fake letter canceling an oil conference.

Three years later, after a trial in the Dunedin District Court, Penwarden was found guilty on Wednesday of two charges of creating and using a forged document.

“It was a surprise,” she said. “I’m reminded of the topsy-turvy world we’re in. It should not be the grandmothers on trial, it should be the oil industry, it should be those people who are making massive profits off the destruction of all of our futures.”

12

Based on an initial investigation, Prache said, he concluded that "the conditions for the legal use of the weapon were not met.”

Three persons were in the car when police tried to stop it Tuesday, the prosecutor said. Nahel managed to avoid a traffic stop by running a red light. He was later got stuck in a traffic jam.

Both officers involved said they drew their guns to prevent him from starting the car again.

The officer who fired a single shot said he wanted to prevent the car from leaving and because he feared someone may be hit by the car, including himself or his colleague, according to Prache.

Both officers said they felt “threatened” by seeing the car drive off, he added.

11

The nation’s health disparities have had a tragic impact: Over the past two decades, the higher mortality rate among Black Americans resulted in 1.6 million excess deaths compared to white Americans. That higher mortality rate resulted in a cumulative loss of more than 80 million years of life due to people dying young and billions of dollars in health care and lost opportunity.

For decades, frustrated birth advocates and medical professionals have tried to sound an alarm about the ways medicine has failed Black women. Historians trace that maltreatment to racist medical practices that Black people endured amid and after slavery.

The disparities between Black and white babies is stark: The infant mortality rate in 2021 for white mothers was 5.8, while the infant mortality rate for Black mothers was 12.1, an increase from 10.9 from the prior year.

Black babies account for just 29% of births in Alabama, yet nearly 47% of infant deaths.

A 2020 report by the Alabama Maternal Mortality Review Committee found that more than 55% of 80 pregnancy-related deaths that they reviewed in 2016 and 2017 could have been prevented.

4

In a split two-to-one ruling, three Court of Appeal judges said Rwanda could not be considered a “safe third country” where migrants could be sent.

But the judges said that a policy of deporting asylum seekers to another country was not in itself illegal, and the government said it would challenge the ruling at the U.K. Supreme Court. It has until July 6 to lodge an appeal.

Human rights groups say it is immoral and inhumane to send people more than 4,000 miles (6,400 kilometers) to a country they don’t want to live in, and argue that most Channel migrants are desperate people who have no authorized way to come to the U.K. They also cite Rwanda’s poor human rights record, including allegations of torture and killings of government opponents.

Britain has already paid Rwanda 140 million pounds ($170 k) under the deal, but no one has yet been deported there.

[-] GlassHalfHopeful@beehaw.org 4 points 1 year ago

I don't normal watch YouTube (especially for this long) and I especially don't watch people play games, but... Ive been wondering why I don't hear about String Theory any more... and I've owned Binding of Isaac and have yet to play it. So I thought, why not!?

I was actually surprised by how interesting I found this. Dr Collier communicated some things I've been curious about while also teaching me several new things. The game added a fun element, but I'm afraid it's probably going to remain dormant on Steam for a long while longer now. 😁

Anyway, thanks for the share.

[-] GlassHalfHopeful@beehaw.org 11 points 1 year ago

Did any of you guys try it as well? What's your opinion?

In respect to Lemmy as a whole, I'm trying to exercise a lot patience.

One of the first things I did was install it as a PWA. It has a sleek UI, but some bugs makes it incredibly hard for me to use. One of the worst is an issue with several of the combo boxes which repeatedly flashing on use. I have to try hitting the appropriate selection multiple times in hopes of it eventually taking.

I use Jerboa most of the time inspite of the many bugs, but I usually end up having to open the PWA for missing functionality.

Like I said...

Lots... And lots...

And lots... of patience.

[-] GlassHalfHopeful@beehaw.org 3 points 1 year ago

This article lead me down a rabbit trail where, via this article: Help Save Wood Thrush: Drink Bird-Friendly Coffee

I learned about this: https://birdsandbeanscoffee.com/

What Is Bird Friendly Coffee?

Bird Friendly® Coffee is Smithsonian Migratory Bird Center (SMBC) certified and represents a gold standard in ethical and sustainable coffee business.

Bird Friendly® Coffee is coffee that comes from family farms in Latin America that provide good, forest-like habitat for birds. Rather than being grown on farms that have been cleared of vegetation, Bird Friendly coffees are planted under a canopy of trees. These trees provide the shelter, food and homes migratory and local birds need to survive.

This morning, I'm really feeling the weight of what we are doing to the world. 😖

But... I was encouraged a bit to see something being done and in a way I wouldn't have thought.

view more: next ›

GlassHalfHopeful

joined 1 year ago