Stackabrix, a simple terminal game
gitlab.com/christosangel/stack…
stackabrix is a simple terminal game, written in Bash, where the user, against the clock and with the least moves possible, must sort the blocks according to their color, and stack them in the respective stack.
During the game, the user can move left and right, pick blocks and drop them in other stacks.
The aim is to sort the blocks, and stack them in the respectively named stacks, fast as possible, and with the least moves possible.
The play's score is the sum of the time achieved in seconds and of the moves made.
If the score is among the 10 best scores achived, it makes it in the Top Ten Highscores.
Any feedback is welcome.
Will you let them distract and divide you again? It's what they do...
like this
Do websites come under the remit of self hosting?
Personally I host static websites with GitHub, cloudfront, netlify, onrender etc. Trivial to setup, more reliable and better cdn distribution. Anything dynamic lives in a data center rather than a self host setup.
Fuckface Labour Minister Steven MacKinnon is ordering Canada Post employees back to work.
Canada Post strike: Minister seeks order to get workers back on the job
Labour Minister Steven MacKinnon announced Friday that he is asking the Canada Industrial Relations Board (CIRB) to order workers back on the job.Katie Dangerfield (Global News)
Fuckface Labour Minister Steven MacKinnon is ordering Canada Post employees back to work.
Canada Post strike: Minister seeks order to get workers back on the job
Labour Minister Steven MacKinnon announced Friday that he is asking the Canada Industrial Relations Board (CIRB) to order workers back on the job.Katie Dangerfield (Global News)
Dessalines likes this.
Is Marx still relevant today?
Is Marx still relevant today? - Friends of Socialist China
The following article by Zhang Wan, a Current Affairs Commentator at CGTN, has been translated by the Academy of Marxism of the Chinese Academy of Social Sciences and we are publishing it at their request.Friends of Socialist China
Dessalines likes this.
China’s bridges to a socialist future
China’s bridges to a socialist future
PAWEL WARGAN examines how the nation’s infrastructure projects reflect its journey from poverty to lightning-fast development by combining ancient civilisation with modern socialist constructionMorning Star
Dessalines likes this.
Macron names centrist ally François Bayrou as France's new prime minister
cross-posted from: lemmy.world/post/23094586
SummaryFrench President Emmanuel Macron appointed centrist François Bayrou as the new prime minister after a no-confidence vote ousted Michel Barnier's government.
Bayrou, founder of the Democratic Movement party, faces the challenge of uniting a fractured parliament to pass an unpopular 2025 cost-cutting budget, which led to Barnier's downfall.
Barnier, ousted after just three months, was criticized for bypassing parliament.
Bayrou must form a cabinet and navigate political tensions to avoid another government collapse, which could endanger Macron's presidency amid calls for new elections.
President Macron names centrist ally François Bayrou as France's new prime minister
French President Emmanuel Macron named centrist ally François Bayrou as France's new prime minister on Friday as he sought to steer the country out of political chaos.Chantal Da Silva (NBC News)
like this
like this
like this
openSUSE: Choosing Better Alternatives Amid Confusing Policies
The case for Linux and openSUSE is clear. Linux provides viable, cost-effective and sustainable alternatives. Users can enjoy a free, open-source operating system that doesn’t require costly upgrades or restrictive hardware requirements with installing openSUSE. Here are a few things users that want to transition can consider:
- Complete Transparency: Linux distributions like openSUSE are governed by open-source principles, ensuring clear and consistent development.
- No Forced Obsolescence: openSUSE supports a wide range of hardware like modern machines to older PCs that allow users to extend the life of their devices.
- Cost Savings: openSUSE is free to use, with no licensing fees or hidden subscription costs for extended support.
By switching to Linux, users can help combat e-waste as every PC saved from a landfill is a win for the environment.
Choosing Better Alternatives Amid Confusing Policies
A recent back-and-forth on Windows 11’s hardware requirements and the end-of-life timeline for Windows 10 leaves millions of users frustrated and uncertain a...openSUSE News
reshared this
I'm daily driving it for ~3 years and I only started yast once to see why everyone praises it so much and second time when I actually needed something (don't even know if I suceeded or failed).
Snapper on the other hand... That is a bit I praise the most! I still don't get it why it's not default for more distros...
I continue to have a hard time with it. I desperately want to like it but feel like it doesn't handle laptop Nvidia right. I keep getting boot to black screen on KDE and have to rfkill unblock on install and just a host of issues I can't seem to ever nail down. Might have to try again since switcherooctl, but there are some rough edges for me.
Love MicroOS for server though. Rock solid.
like this
I'm interested in using it for my small server and self-hosting, but I mostly use containers with Docker and I've seen that MicroOS comes with Podman by default.
Yes I encountered that when I used Tumbleweed on my laptop, the solution was to run "sudo prime-select boot offload". It set up my laptop to use iGPU for desktop environment and NV offload for gaming. I made it part of my update script. No idea why that wasn't handled better.
But generally I'm done with rolling distros, I now use an Ubuntu derivative that still keeps kernel and mesa quite up to date, I enjoy a stable environment.
'Did you participate in genocide?': Australia stonewalls Israeli siblings' visa application over IDF service
Israeli siblings Omer Berger, 24, and Ella Berger, 22, faced delays in obtaining Australian visas after being asked to complete to complete a 13-page document typically required for military personnel involved in war. The siblings had planned to visit their 100-year-old great-grandmother, a Holocaust survivor.
According to Berger, six family members applied for Australian visas two months ago. While all were promptly approved, Omer and Ella were told to submit the extended form. The questions included whether they had participated in physical or psychological abuse, served as guards or officials in detention facilities or engaged in war crimes or genocide.
Ella, who had received a week’s leave from her military service to attend the celebration, gave up waiting and returned to Israel. Omer, a reservist, remains in Thailand, hoping for a resolution. Berger expressed the family’s heartbreak, fearing they may never see their great-grandmother again. “We just want a clear answer, yes or no,” he said.
'Did you participate in genocide?': Australia stonewalls Israeli siblings' visa appli
Omer and Ella Berger planned to visit their 100-year-old great-grandmother in Australia but were denied entry and asked to complete a 13-page form due to their IDF service; 'Decision reflects government’s increasingly hostile stance against Isra…Itamar Eichner (ynet news)
like this
I'm gonna rant for a second here if that's alright.
FUCK being mixed handed. I'm not right or left handed but I'm not ambidextrous either. I'm what's called cross dominant and it's a huge pain in the ass all the time.
Cross dominance is when you don't use one hand for everything but can't use both hands for everything. I write with my left hand but throw with my right. I eat with my left hand but punch with my right. That's not the main issue though. The main issue is I cannot use both my hands at the same time without them running into each other because they both have different instincts. If I were to try to use both hands to put something together I'm likely to end up yeeting whatever it is across the room because my hands got confused and one did the right thing while the other had a fuckin stroke and thought that the necessary thing to do is just fully extend and smack whatever I'm working on.
It's a small thing that I generally don't bring up because it's not that big of a deal and I've adapted to only using one hand at a time but it's still infuriating.
Rant over.
That's not "cross-dominant", you are simply a lefty who has adapted to living in a right-handed world, just like me. I can't use a computer mouse or fire a gun left-handed, but only because they rarely made these things for left-handed people when I was growing up, so Ive only ever used then with my right hand and struggle to switch sides.
That said, my aim with a mouse and a gun are awful because I'm not right-handed. I have a feeling that I would do a lot better with these devices if I was more accommodated in my childhood.
Pakistan Requested Nuclear Weapons Assistance From China in Talks Over Strategic Port
Pakistan Requested Nuclear Weapons Assistance From China in Talks Over Strategic Port
In bilateral talks this year, Pakistan asked China for a nuclear second-strike capability in exchange for the Gwadar Port—a demand that was rebuffed by ChinaMurtaza Hussain (Drop Site News)
Bad_Company_Daps
in reply to christos • • •Looks pretty cool. I know this isn't the point but I feel like from a games perspective the scoring is a bit off. I don't think 1 extra second and 1 extra move should be the same value. For me to sit there and analyze what the optimal move set would be to move set would be to move a certain block may avoid 2-3 extra moves, but would take way longer than 3 seconds for me to calculate in my head. Maybe make a move add 5 points to the score?
I wonder if there's a game theory way to find the optimal amount that the moves and time should be weighed to make them equal value.
Either way, pretty awesome you got this working in bash.
christos
in reply to Bad_Company_Daps • • •Thanks for the feedback.
Bad_Company_Daps
in reply to christos • • •I do agree in the end it's arbitrary, and you're right there are 2 extremes in strategy, purely analytical and purely reflexive, plus everything in between.
Admittedly without having played this game specifically using both strategies this is purely speculation. But from my experience playing similar games, exactly to your point of the two strategies, if time and moves are weighed equally, I feel like a player using the analytics strategy would end up with a much higher score than a reflex based player at the "same" skill level (however "skill" levels would be pretty hard to quantify and compare by the two strategies).
Hope that makes sense :)
christos
in reply to Bad_Company_Daps • • •It does. And naturally, the more one practices, they become better at it.
And there is the element of chance: if the randomly generated grid is helpful (e.g. half solved), the easier and quicker it is solved.