@GlassHalfHopeful@beehaw.org
@GlassHalfHopeful@beehaw.org avatar

GlassHalfHopeful

@[email protected]

Let go and let entropy. ,🌌

This profile is from a federated server and may be incomplete. Browse more on the original instance.

GlassHalfHopeful,
@GlassHalfHopeful@beehaw.org avatar

docker exec mcbe-world just gives access to the container so commands can be executed. /stop is a specific command for the MC server running in that container. The process is already running and I am trying to figure out how to issue a command to it… and the other comment in this post referencing “rcon” might be a solution…

GlassHalfHopeful,
@GlassHalfHopeful@beehaw.org avatar

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

GlassHalfHopeful, (edited )
@GlassHalfHopeful@beehaw.org avatar

This looked so promising.

Via SSH, I can indeed use docker attach and from within I can issue a stop for MC server. Works fine.

However, the Synology task scheduler via DSM doesn’t seem to be able to similarly attach and then issue the stop command. I get this back via email (for when a scheduled task fails):

Task Scheduler has completed a scheduled task.

Task: MC Graceful Restart Start time: Tue, 29 Aug 2023 17:19:41 -0500 Stop time: Tue, 29 Aug 2023 17:19:42 -0500 Current status: 127 (Interrupted) Standard output/error:

the input device is not a TTY /bin/bash: line 1: stop: command not found

GlassHalfHopeful,
@GlassHalfHopeful@beehaw.org avatar

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, (edited )
@GlassHalfHopeful@beehaw.org avatar

YEEEESSS!!! THIS!!! Thank you! I’ve been able to hobble together a script now that I have a Synology automated task calling early each morning after world backups are complete. I’m so very grateful to you all. I’ve learned a lot. A proper “stop” is being issues now which reduces the chance of world corruption which would make my family very very grumpy.

Here’s the script just in case someone finds themselves in a similar situation as me. This is not my wheelhouse and it’s not pretty. I know it can be better, but I’ve spent too much time on this as it is and need to go fix a washing machine now. Ugh…



<span style="color:#323232;">#!/bin/bash
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Define the countdown duration in seconds
</span><span style="color:#323232;">countdown_duration=20
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Function to send a message to the Docker container
</span><span style="color:#323232;">send_cmd() {
</span><span style="color:#323232;">  cmd="$1"
</span><span style="color:#323232;">  sudo sh -c "echo '$cmd' | socat EXEC:'docker attach mcbe-world',pty STDIN"
</span><span style="color:#323232;">}
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Announce
</span><span style="color:#323232;">announce_text="Daily server restart commencing in $countdown_duration seconds..."
</span><span style="color:#323232;">send_cmd "say $announce_text"
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Perform the countdown
</span><span style="color:#323232;">for ((i = $countdown_duration; i >= 1; i--)); do
</span><span style="color:#323232;">  #echo "Restaring in $i seconds"
</span><span style="color:#323232;">  countdown_text="Restarting in $i seconds"
</span><span style="color:#323232;">  send_cmd "say $countdown_text"
</span><span style="color:#323232;">  sleep 1
</span><span style="color:#323232;">done
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Gracefully shutdown server
</span><span style="color:#323232;">#  Note: stopping forces the mcbe container to restart on it's own. 
</span><span style="color:#323232;">#  Not sure why that's the case, but it's the end result I want...
</span><span style="color:#323232;">send_cmd "stop"
</span>

P.S. I really need to figure out how to get the RCON solution working because that would be a more elegant way to handle things.

P.P.S Example run (yes, the timing and spelling were updated after this screenshot 😁)

https://beehaw.org/pictrs/image/56e4fd58-52d3-4bbc-a726-aff6e520f5cb.webp

GlassHalfHopeful,
@GlassHalfHopeful@beehaw.org avatar

Good to know about the main proc. I wasn’t aware. And it is indeed set to auto restart. I just hadn’t realized the stop alone would trigger that. I had figured I would need to take the additional step.

GlassHalfHopeful,
@GlassHalfHopeful@beehaw.org avatar

There are most definitely some useful bots, like the recent tldr that I’ve encountered. I find them incredibly valuable. They should be used sparingly though.

“Fun” joke or game bots could be okay with if they were in specific communities that wanted them (which would be communities I’m not a part of, 😁), but not in general. I tend to be a purist and like to keep things as vanilla as possible.

GlassHalfHopeful,
@GlassHalfHopeful@beehaw.org avatar

Full article

Hops for beer flourish under solar panels. They’re not the only crop thriving in the shade. | AP NewsMATTHIAS 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.

Why do sites disable pasting in password fields?

It’s 2023, why are websites actively preventing pasting into fields like passwords and credit card number boxes? I use a password manager for security, it’s recommended by my employer to use one, and it even avoids human error like accidentally fat-fingering keys, and best of all with the credit card number I don’t have to...

GlassHalfHopeful,
@GlassHalfHopeful@beehaw.org avatar

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

Alternative to Google Photos

So I’m looking to disconnect myself from Google and their tracking (as much as possible) and I was thinking about installing GrapheneOS on my Pixel phone. I mostly use my phone for Lemmy, Signal, NewPipe and taking photos. The last one is my biggest bother at the moment. The Google Photos environment is so convenient - I take...

GlassHalfHopeful,
@GlassHalfHopeful@beehaw.org avatar

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,
@GlassHalfHopeful@beehaw.org avatar

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,
@GlassHalfHopeful@beehaw.org avatar

This of course presumes that you have a Synology disk station. They come in a variety of different models.

I’m surprised at how much I’m able to serve from my device. I use it for cloud storage, file thinking across devices, photo management and backup across devices, ebook management, running a game server for my family, running an evernote-like service, etc etc.

It’s been really good to have full control over all my information and not have to pay ever increasing fees to various companies for various services.

GlassHalfHopeful,
@GlassHalfHopeful@beehaw.org avatar

I’ve got the same hw in mine. Although I did buy and install ram to max it out. It’s not the most powerful machine out there, but it’s plenty enough for us.

GlassHalfHopeful,
@GlassHalfHopeful@beehaw.org avatar

Good luck!

GlassHalfHopeful,
@GlassHalfHopeful@beehaw.org avatar

currently reading a number of books after completely crashing out of doing that for the entire month of June. i think i can get about 3 in before the end of the month

What books have you been reading / into?

GlassHalfHopeful,
@GlassHalfHopeful@beehaw.org avatar

Yeah. I just finished a book that I really enjoyed called A Day Of Fallen Night which is a pretty cool to The Priory Of The Orange Tree if you’ve heard of it. It really was a great read, but the pacing and chosen method for organizing the various character viewpoints made my skin crawl more than once. It was frustrating, but one of those books that I really wanted to read regardless.

There is once a book that I read through, because once I’m committed I find it very hard to stop reading, but it was by far the most horrendous experience ever because the author didn’t use quotes for the entire book and I had a real hard time following the dialogue.

Just finished also a couple of novellas which were a really nice and different from the more intense (e.g. action heavy) books I tend to read. They were the first books I’ve read where the protagonist is non-binary and referred to as they. It was challenging in some ways but also very good for me as well. A Psalm For The Wild-built and it’s sequel A Prayer for the Crown-Shy.

Writing styles can certainly make a break books.

That Meltdown book looks interesting!

GlassHalfHopeful,
@GlassHalfHopeful@beehaw.org avatar

Ack! Connect for Lemmy bugged out and my response died with it…

sighs maybe later…

Btw, meltdown does look interesting.

GlassHalfHopeful,
@GlassHalfHopeful@beehaw.org avatar

What is happening?! 🤪 We can blame Connect for Lemmy in moving this to the top level… blame alyaza which is more fun.

points accusingly

GlassHalfHopeful,
@GlassHalfHopeful@beehaw.org avatar

The sequel novella is just as short, but I was fortunate to be able to read them back to back. I enjoyed them so much and found them so refreshing in so many ways.

I don’t remember The Priory having the same pacing issues as it’s prequel, so I hope you really really enjoy it. And to be clear, I liked the prequel a lot too.

GlassHalfHopeful,
@GlassHalfHopeful@beehaw.org avatar

I’ve had the same problem and mentioned as much. I’m thinking there’s no way to search posts yet.

I’ve been switching between Jerboa and Connect for this reason.

GlassHalfHopeful,
@GlassHalfHopeful@beehaw.org avatar

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.

Why do so many Black women die in pregnancy? One reason: Doctors don't take them seriously (apnews.com)

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...

GlassHalfHopeful,
@GlassHalfHopeful@beehaw.org avatar

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,
@GlassHalfHopeful@beehaw.org avatar

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,
@GlassHalfHopeful@beehaw.org avatar

⚠️ I have reported this post to the proper authorities.

GlassHalfHopeful,
@GlassHalfHopeful@beehaw.org avatar

I have had a subscription to YNAB (you need a budget) for years now. It’s simple and straight to the point for exactly what we need. It pulls everything from my bank accounts smoothly. My partner understands it and is able to easily use it, which is extremely important.

I tried Mint and have suggested it in the past as a free alternative to folks who need help budgeting, but it tends to be too complicated for most that I’ve suggested it to. And that’s even after setting it up for them and showing them basic usage.

I used the GNUCash for a while. As a manual option, it was good for when I was importing everything to Quicken.

I no longer use quicken or manually import anything.

There’s not a lot of products that I’ll recommend, but I can say that YNAB is worth every cent.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • KamenRider
  • TheResearchGuardian
  • KbinCafe
  • Socialism
  • oklahoma
  • SuperSentai
  • feritale
  • All magazines