Faresh

joined 2 years ago
[–] Faresh@lemmy.ml 1 points 16 hours ago

I've never played Factorio and had fun playing the game. I think there is supposed to be a tutorial when you first start the game? And I think the tech tree is a good guide for what to do next.

[–] Faresh@lemmy.ml 3 points 16 hours ago

https://prisonjournalismproject.org/2024/03/31/popular-video-game-banned-federal-prisons/

From my prison cell in Colorado, I conquered sites on alien planets, used conveyor belts to supply my factories, and organized weapons to defend against enemy attacks. I was playing Mindustry, a world-building game that relies heavily on logistics and strategy.

For less than $2, I could lose myself in my Android tablet at night — then, when I slept, my dreams about the game replaced my usual nightmares. And I wasn’t alone: Inmates talked about the game over meals and at work.

Then came an announcement from officials last July. Mindustry would no longer be on our prison-issued tablets.

“I knew a lot of people would be upset when I read they were taking it away,” one inmate from Nebraska said. “I could walk around the chow hall, my work assignment and other areas — everyone was talking about it.”

According to a statement from a Federal Bureau of Prisons spokesperson, Mindustry was removed because it was “found to jeopardize the safety, security, and orderly operation” of federal prisons.

When Prison Journalism Project asked for specifics on how the game jeopardized safety, security and orderly operation, the spokesperson said the Federal Bureau of Prisons does not discuss specific security practices or internal procedures for security reasons.

The game’s fans here in Federal Correctional Institution at Englewood, a federal prison in Colorado, included a retired colonel for the U.S. Army.

“All they’ve left us with are stripped-down children’s games,” he said.

Another player had one of the most elaborate mining and distribution centers I’ve ever seen, the fruit of many hours of thought — which, of course, is one key to fighting recidivism.

“Whenever I’m feeling upset, I can pick up my tablet,” the player told me. “It calms me down and changes my whole mindset.”

Users have come up with their own explanations for Mindustry’s fate. One theory goes that players had used the game’s drawing pad to sketch dirty pictures or leave secret messages.

Whatever happened, people are disappointed.

“I wanted to buy a tablet,” one person said, “but now that they’ve taken Mindustry I don’t want one.”

Sentiments like that are understandable. We are still without many of the tablet features we were told to expect, including free e-books through Project Gutenberg, video messaging, and a life skills program through Khan Academy.

In a statement, the prison bureau said that games are controlled by a vendor, and that the bureau has “the right to remove any game that it deems inappropriate.”

I miss the game. When I played it, I could stop dwelling on my past or my unknown future. And it encouraged me to be more social with others, especially when we would discuss strategy. My tablet now lies neglected in my locker.

The player who put together the elaborate mining center isn’t shocked that Mindustry is gone.

“It’s not uncommon for the BOP to take away something we like,” he said.

This sucks. :(

[–] Faresh@lemmy.ml 6 points 1 day ago (3 children)

status quo means the current state of things

[–] Faresh@lemmy.ml 1 points 1 day ago

What kind of data does listenbrainz and last.fm store and what are they used for?

[–] Faresh@lemmy.ml 1 points 1 day ago

Also doesn't display anything without javascript

[–] Faresh@lemmy.ml 4 points 2 days ago* (last edited 2 days ago)

too many democrats want to go back to the “good old days” of bipartisanship

Democrats, despite preaching bipartisanship, do not want it. In fact, they benefit greatly from the trumpification of the republican party as they can gather their votes without making any significant concessions to the voter by denouncing how outrageous the republican party is.

https://www.npr.org/2022/06/27/1106859552/primary-illinois-colorado-republican-candidate-democrats-ads

[–] Faresh@lemmy.ml 5 points 3 days ago

So that's why I had to vote for Biden as a write-in candidate!

[–] Faresh@lemmy.ml 65 points 5 days ago* (last edited 5 days ago) (5 children)

And I'm pretty sure there are also jellyfish that live in symbyosis with algae that they carry along with them which photosynthesize, creating sugars for the jellyfish.

[–] Faresh@lemmy.ml 1 points 5 days ago* (last edited 5 days ago)

That's weird, because it also has 2 downvotes for me at the moment (which means it can't be some weird federation issue), but assuming that you originally saw 2 downvotes before I came along, then something something can't be right because I am one of the two downvoters and I only saw the comment some hours after your comment in this thread (judging from the timestamp of my comment) (or maybe I visited the post once, then came back to leave a comment?).

[–] Faresh@lemmy.ml 2 points 5 days ago (2 children)

Is it still -2 for you though?

[–] Faresh@lemmy.ml 1 points 5 days ago* (last edited 5 days ago) (4 children)

It's two downvotes (at least on lemmy.ml at this point in time). Is it hard to imagine that 2 out of 16 people could dislike seeing someone say that anything that doesn't fit their narrative is the result of bots?

 

cross-posted from: https://lemmy.ml/post/21390036

I finished reading the Kotlin documentation (§Concepts) and want to do something now. I was thinking about making a desktop app with a GUI. For that people seem to recommend Jetbrains Compose.

It seems however that the guides (https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-multiplatform-create-first-app.html) to set up such a project assume I have more than one target. I however don't and thus don't need to divide my project into common code, ios code, wasm code, etc. I only need to compile my project for the JVM, since I'm only intending to support Linux and BSD. I don't have much experience with the Java/Kotlin-centric build systems and I would like to avoid investing too much time into it (since for now I would like to spend more time writing that app, preferring to learn Gradle later in my journey), so I thought about just generating a template as recommended by the guides (using https://kmp.jetbrains.com/) and to just remove everything that doesn't matter for my project. However, since I don't have much experience with Gradle yet, I don't know what exactly the changes are that I need to make to the build script

Generated code

import org.jetbrains.compose.desktop.application.dsl.TargetFormat

plugins {
    alias(libs.plugins.kotlinMultiplatform)
    alias(libs.plugins.jetbrainsCompose)
    alias(libs.plugins.compose.compiler)
}

kotlin {
    jvm("desktop")
    
    sourceSets {
        val desktopMain by getting
        
        commonMain.dependencies {
            implementation(compose.runtime)
            implementation(compose.foundation)
            implementation(compose.material)
            implementation(compose.ui)
            implementation(compose.components.resources)
            implementation(compose.components.uiToolingPreview)
            implementation(libs.androidx.lifecycle.viewmodel)
            implementation(libs.androidx.lifecycle.runtime.compose)
        }
        desktopMain.dependencies {
            implementation(compose.desktop.currentOs)
            implementation(libs.kotlinx.coroutines.swing)
        }
    }
}


compose.desktop {
    application {
        mainClass = "org.example.project.MainKt"

        nativeDistributions {
            targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
            packageName = "org.example.project"
            packageVersion = "1.0.0"
        }
    }
}

What resources should I look at to quickly create a kotlin Compose project targeting only the JVM? (maybe a gradle crashcourse????)


Unrelated, but if you want you can also share your opinion regarding the use of Compose vs JavaFX vs Swing for this situation

 

I finished reading the Kotlin documentation (§Concepts) and want to do something now. I was thinking about making a desktop app with a GUI. For that people seem to recommend Jetbrains Compose.

It seems however that the guides (https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-multiplatform-create-first-app.html) to set up such a project assume I have more than one target. I however don't and thus don't need to divide my project into common code, ios code, wasm code, etc. I only need to compile my project for the JVM, since I'm only intending to support Linux and BSD. I don't have much experience with the Java/Kotlin-centric build systems and I would like to avoid investing too much time into it (since for now I would like to spend more time writing that app, preferring to learn Gradle later in my journey), so I thought about just generating a template as recommended by the guides (using https://kmp.jetbrains.com/) and to just remove everything that doesn't matter for my project. However, since I don't have much experience with Gradle yet, I don't know what exactly the changes are that I need to make to the build script

Generated code

import org.jetbrains.compose.desktop.application.dsl.TargetFormat

plugins {
    alias(libs.plugins.kotlinMultiplatform)
    alias(libs.plugins.jetbrainsCompose)
    alias(libs.plugins.compose.compiler)
}

kotlin {
    jvm("desktop")
    
    sourceSets {
        val desktopMain by getting
        
        commonMain.dependencies {
            implementation(compose.runtime)
            implementation(compose.foundation)
            implementation(compose.material)
            implementation(compose.ui)
            implementation(compose.components.resources)
            implementation(compose.components.uiToolingPreview)
            implementation(libs.androidx.lifecycle.viewmodel)
            implementation(libs.androidx.lifecycle.runtime.compose)
        }
        desktopMain.dependencies {
            implementation(compose.desktop.currentOs)
            implementation(libs.kotlinx.coroutines.swing)
        }
    }
}


compose.desktop {
    application {
        mainClass = "org.example.project.MainKt"

        nativeDistributions {
            targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
            packageName = "org.example.project"
            packageVersion = "1.0.0"
        }
    }
}

What resources should I look at to quickly create a kotlin Compose project targeting only the JVM? (maybe a gradle crashcourse????)


Unrelated, but if you want you can also share your opinion regarding the use of Compose vs JavaFX vs Swing for this situation

13
PR🌚🌚F (mander.xyz)
 
 

cross-posted from: https://lemmy.ml/post/13221450

This is a of a post made during a time where outgoing federation for lemmy.ml was broken. I hope lemmy.ml readers will forgive me for shoving my filthy little words under the shining gaze of their precious and observant eyes for a second time.


I have a Kindle Paperwhite (7th generation). (Stallman weeps) It appears people generally customize their kindle beyond Amazon's original design by jailbreaking it. But I was wondering if I could replace the entire system on the kindle by a new one, for even more hacking fun.

It appears Kindle Paperwhites run on ARM processors, so there should be plenty of compatible software. However, it appears flashing the ROM of kindle only appears in the context of something called the Kindle Fire. Why is that? Is there any reason ROM flashing for the paperwhite kindles isn't common? The only reasons I could think of is that disassembling and reassembling the kindle paperwhite is kinda annoying (especially with the glue holding the case together) and that maybe not everyone has a board to externally flash ROMs. I've also thought that maybe the ROM is write-protected or that the software is signed and that the Kindle will refuse to boot off of anything that hasn't received Jeff's blessing. Is there any existing guide on flashing a custom ROM? Have any ROMs been created already?

Maybe my foolish self has not searched good enough and hasn't found the discussions on ROM flashing of other kindle models, but in any case I think it's good to have this discussion on here on Lemmy too even if it potentially already exists somewhere else on the internet, so that other fools like me may come across your wisdom and be enlightened.

If this is complete and utter nonsense what I'm babbling about, can I at least somehow download the firmware and software running on the kindle from the device, so that I may poke and probe it with my disgusting, dirty little fingers, defiling Amazon's intellectual property?


I hope that you have a good day and that the following days be good too. If I am stupid for even mentioning the idea of a good day, I wish that some day our suffering may end and that a good day be something we all can look forward to.

 

This is a of a post made during a time where outgoing federation for lemmy.ml was broken. I hope lemmy.ml readers will forgive me for shoving my filthy little words under the shining gaze of their precious and observant eyes for a second time.


I have a Kindle Paperwhite (7th generation). (Stallman weeps) It appears people generally customize their kindle beyond Amazon's original design by jailbreaking it. But I was wondering if I could replace the entire system on the kindle by a new one, for even more hacking fun.

It appears Kindle Paperwhites run on ARM processors, so there should be plenty of compatible software. However, it appears flashing the ROM of kindle only appears in the context of something called the Kindle Fire. Why is that? Is there any reason ROM flashing for the paperwhite kindles isn't common? The only reasons I could think of is that disassembling and reassembling the kindle paperwhite is kinda annoying (especially with the glue holding the case together) and that maybe not everyone has a board to externally flash ROMs. I've also thought that maybe the ROM is write-protected or that the software is signed and that the Kindle will refuse to boot off of anything that hasn't received Jeff's blessing. Is there any existing guide on flashing a custom ROM? Have any ROMs been created already?

Maybe my foolish self has not searched good enough and hasn't found the discussions on ROM flashing of other kindle models, but in any case I think it's good to have this discussion on here on Lemmy too even if it potentially already exists somewhere else on the internet, so that other fools like me may come across your wisdom and be enlightened.

If this is complete and utter nonsense what I'm babbling about, can I at least somehow download the firmware and software running on the kindle from the device, so that I may poke and probe it with my disgusting, dirty little fingers, defiling Amazon's intellectual property?


I hope that you have a good day and that the following days be good too. If I am stupid for even mentioning the idea of a good day, I wish that some day our suffering may end and that a good day be something we all can look forward to.

 
 

װיפֿל האָסטו באַצאָלט פֿאַר די קאָמפּאַקטלעד? איך קען נישט לײענען מײַנע בליצבריװ! Meine Zähne sind Menschen! עס װעט באַלד שנײען! דו האָסט נישט געגעסן די געפֿילטע פֿיש! איך האָב פֿײנט מײן אַרבעט!

 

People who struggled with procrastination and have now stopped, what made you stop procrastinating? What do you think were the factors leading or contributing to your past procrastination and how did you stop or improve the situation?

Please don't answer with the "I'll tell you later" joke.

 

Most introductions to unit testing give very simple examples of functions that simply receive some arguments and produce a result. However a lot of software has to read input from external sources, such as from the internet, from the file system, or from the user during its execution. How does one write tests for such software?

For simple software that only reads a few files from the file system, I imagine can be tested by writing some files for the test to give to the tested program, but what if it becomes more complex? Or what if you are trying to test a web scrapper for a website, would the tests run a web server and simulate the targetted website? Or for the GUI, how would one test that the user can see what they are supposed to see, when they click a certain way at a certain time?

Maybe the parts that read the data shouldn't be tested and only the functions that code relies on should be tested? I don't know.

 

Bonus if it isn't just mainly carbon-hydrates and if the ingredients don't need to be used immediately (unless the meal itself when done can last for many days).

I'm getting tired of tuna masala spaghetti.

 
view more: next ›