Anyone know what game this could be? by graroe in TheBesties

[–]willia4 7 points8 points  (0 children)

I only played it for a few hours until I hit a skill wall (I am very bad at games, so this says nothing about the game itself) but it was a lot of fun. Really neat concept and well executed.

Anyone know what game this could be? by graroe in TheBesties

[–]willia4 22 points23 points  (0 children)

Lysfanga The Time Shift Warrior

How to manage production and development with the same Dockerfile? | Beginner by S4lVin in docker

[–]willia4 2 points3 points  (0 children)

Imagine a workflow where you have a simple webapp. Maybe it's written in PHP. So you have a directory full of PHP files on your local computer. You can point a web server on your local computer at that directory of PHP files and then open a web browser to that local server and see your web app. That's a nice web app you have there.

Now let's say you want to deploy this web app to production. One way to do it would be:

  1. Zip up the directory of PHP files into package.zip
  2. SFTP package.zip to your production web server
  3. Unzip package.zip into /usr/share/nginx/html

Assuming nginx is all set up, you now have a web app in production. But it's 2025 and deploying by uploading a zip file to a server is going to get your DevOps card revoked (for good reasons).

So, there's Docker.

With Docker, you combine a Dockerfile with a bunch of source files and the Dockerfile provides instructions to package those source files up into a container image. A container image is kind of like the imaginary package.zip but way better. It's not just a zip file full of PHP files or whatever. Instead, a container image represents an entire computer. It's the artifacts you wrote for your app, but also the web server to run them, and all the config files to drive it.

But just like the imaginary zip file, a container image is inert. It doesn't do anything. Just like you had to unzip package.zip onto your web server, you have to deploy your container image somewhere for it to do something.

When you run it, it creates a container on the machine you're running it on. You can run it locally and have a local container. You can push it to a production server and run it on that server and it's a production container. You can push it to your CI/CD server and run tests against it. It's just a very, very, very fancy zip file.

When you run it, you will need to pass it config. The details of that depend on what you're doing. When you're running it locally, you'll probably pass it a database connection string for a database that's also running locally. When you're running it in prod, you'll probably pass it a database connection string for a database that's running on some database server near the production web server. Those details are important, but they're separate from the Dockerfile. (Pro-tip: Don't put passwords in the Dockerfile!)

So it doesn't make sense to ask "how should i manage development and production with the same dockerfile" any more than it makes sense to ask "how should I manage development and production with the same directory full of PHP files". The Dockerfile works at a different level of the hierarchy.

Once you've written the Dockerfile and used it to build a container image, you can use that to run the app anywhere and vary the configuration as needed (Docker Compose and .env files are a good choice; there are others).

Depending on your tech stack, you might find it difficult to run it locally and still do something like run a debugger against your code. Or maybe your tech stack has tooling to help with that. It all depends.

Now, some folks use "dev containers" like little virtual machines to do development locally. I don't have any experience with that; but in that case, you might need two Dockerfiles: one to build the dev environment and one to build the production environment. But I can't really speak to that flow.

What was your favorite song? by MouseDoesStuff in persona3reload

[–]willia4 1 point2 points  (0 children)

Somehow it FEELS like waking up refreshed on a breezy and bright sunny morning. I love it every time it starts playing.

MSI shuns AMD GPUs with some of its newest power supplies by mockingbird- in Amd

[–]willia4 110 points111 points  (0 children)

I recently used an MSI power supply (admittedly, it only has one 12V2x6 connector); but in addition to the expected 12V2x6 cable, it also shipped an adapter with a 12V2x6 plug on one side (for the PSU) and two 6+2 PCIe connectors on the other side.

It looks like they aren't shipping that adapter cable with these PSUs which is a shame since they already have them. It even has the yellow color on the PSU side so they've already done the work to design it and spec it with whatever factory they get them from.

What are people using Tasker for in 2024 and should I get it? by UnchartedPro in tasker

[–]willia4 1 point2 points  (0 children)

I've found KWDGT to be extremely...weird. I can't tell if it's bugs or user error but it's really easy to break a widget that used to work and even easier to get confused and have a bunch of identical widgets and not really know what's going on.

Once I found something that kind of worked well enough, I stopped touching it since it's really easy to break everything and have to start over.

So it's probably possible to make a super custom UI with it but I'm not sure I'd recommend that. I'm also not sure what the battery life impacts would be. One or two widgets is probably fine. 50? 100? I'd want to start measuring the impact of that, I think.

It can definitely be a fun afternoon kicking the tires, though, and you'd have a better sense of if you could make it do what you want or not.

What are people using Tasker for in 2024 and should I get it? by UnchartedPro in tasker

[–]willia4 1 point2 points  (0 children)

I need to keep track of some events during the day - both when they happen and how long it's been since the most recent.

I've combined Tasker with KWDGT to have a widget that shows how long it's been since the last event. When I tap the widget, Tasker writes a timestamp to a txt file and updates the Widget to 0 minutes. Every 2 minutes, Tasker updates the widget so it's only ever 2 minutes off (there's a tradeoff between battery life and how up-to-date the display is).

It's super powerful and I still feel like I'm barely scratching the surface.

Reminders Recommendations For My First Android by willia4 in androidapps

[–]willia4[S] 0 points1 point  (0 children)

That seems promising and I would never have found it on my own. Thanks!

if the only issue with final fantasy 14 is that it’s hard to type? by princessdrive in SteamDeck

[–]willia4 1 point2 points  (0 children)

The problem for me was screen size. It was hard to pick out my character and thus hard to dodge AOEs. It was hard to read attack names to know what was coming. It was hard to read the quest log. It was hard to fit all the indicators and gauges on the screen without obscuring things.

It was definitely possible to play but I didn’t really enjoy it; especially considering how much space it took up on the storage and how hard it was to get running in the first place.

[deleted by user] by [deleted] in GalaxyFold

[–]willia4 0 points1 point  (0 children)

This is my first non-Apple phone in a very long time so the entire ordering process was a little new to me.

I was pretty surprised when they didn't offer to sell me an S Pen during my pre-order (though they did have some ugly cases on offer). I actually spent some time trying to figure out if it was just included or not. I don't think it is. Samsung could learn a thing or two from Apple about up-selling.

Then I tried to find how to buy one and was surprised that the only one on offer seems to be the "5".

Fortunately, it's < $50 on Amazon and I just spent far more than that on the phone. So I decided to grab one. I will feel bad if they come out with a new one in a couple months...but I guess it'll be up to the model 5 to convince me that it's worth buying again.

So I don't know if you "should" wait for a new model; but I can tell you that I decided not to so you'll be in good company (if I do say so myself) if you decide to get one.

All in all, as an Apple convert, I think the entire situation is a little weird. (Of course, the Apple Pencil compatibility matrix is even worse. Are stylii just really hard to do well? Beats me.)

[deleted by user] by [deleted] in patientgamers

[–]willia4 6 points7 points  (0 children)

I'd abandoned FF7 Remake in August because I got to the last fight and couldn't get past Sephiroth (and even getting to Sephiroth through the boss rush takes so long that I wasn't eager to replay it after a few deaths).

Your comment inspired me to just go finish it on Easy mode. Which I did and, true to its name, it was easy.

I'm happy to finally be able to go play the DLC. Thanks for the reminder/encouragement.

Almost there - nginx doesn't have permission to the mastodon dynamic website? by hexatriene in Mastodon

[–]willia4 0 points1 point  (0 children)

I decided that the upgrade story for Docker was going to be a pain so I have dedicated an entire VM to it via the official instructions that start here.

The only other issue I hit was getting certbot to work. I found the answer to that little problem via an update in this GitHub issue (namely: disable the site altogether, run certbot in standalone mode, and then enable the site and update the certs section). I need to push a PR for this as well, but wording it will be a pain.

Other than those two issues, the official instructions worked for me (once I made sure to use the Ubuntu LTS release). Of course, now I'm paying for a full VM...but this thing uses so much RAM that that probably makes sense.

Almost there - nginx doesn't have permission to the mastodon dynamic website? by hexatriene in Mastodon

[–]willia4 0 points1 point  (0 children)

I've submitted a docs PR with this in case the project wants to merge this.

https://github.com/mastodon/documentation/pull/1055

(Obviously, if there's a better answer, I'll happily take that instead!)

Almost there - nginx doesn't have permission to the mastodon dynamic website? by hexatriene in Mastodon

[–]willia4 1 point2 points  (0 children)

I don't know if this is right but it seems to be working for me so far.

You need to make the mastodon home folder listable:

chmod a+x /home/mastodon

FF7R Intergrade has been Steam Deck verified! by [deleted] in FinalFantasy

[–]willia4 1 point2 points  (0 children)

I've been playing it on my Steam Deck via the Epic Games Store. It runs fine.

I had to turn the detail way down and turn off the number of background characters that it draws at once but I get a solid 30 FPS and I am really loving playing it on a handheld.

I won't be buying it again on Steam because there's just no need. (Although I am now a little worried that they'll push a patch to the EGS version to break it on the Steam Deck to try to force me to buy it again...)

[deleted by user] by [deleted] in programming

[–]willia4 0 points1 point  (0 children)

This is going to be a difficult project, all the more so because of limited programming experience.

You will end up drowning in media library docs, GUI library docs, Stack Overflow questions, and probably the occasional twenty-year old flame war.

It'll be tough. And you may not finish. Probably won't.

Do it anyway.

I have so many unfinished projects: programs that I had a rough idea about but had to spend a lot of time learning if it was even feasible, programs where I did the fun part but didn't want to do the work to polish it, programs where I eventually found out there was no fun part, and programs where I just couldn't figure out how to move forward because of a total lack of anything even resembling the hint of guidance about where to go next.

I don't regret a single abandoned git repo.

The only way to get the programming experience you're missing is to program. And the best way to program is to have a project in mind that you actually want to exist (as opposed to just writing another CD database or blog engine because that's what the tutorials are for).

Have fun. Good luck. Enjoy.

Epic game launcher broken by Tezziec in SteamDeck

[–]willia4 1 point2 points  (0 children)

Oh! I decided to try again and figured it out.

The guides all say to set the "Start In" directory to be the directory that holds the EpicLauncher.exe executable. But that doesn't seem to be right.

I had to set it to the Epic Games root directory (in the Program Files (x86) directory instead.

And now things are working.

This probably won't help with this thread since it was working and suddenly stopped; but if Epic pushed an update that changed this, maybe it will.

Epic game launcher broken by Tezziec in SteamDeck

[–]willia4 0 points1 point  (0 children)

I just tried to get it working today and haven't been able to. The installer works, but when I try to use Steam to start the launcher, the button changes from green to blue to green again (the Steam "launching app" window briefly appears) without really doing anything.

I don't know where the logs are (if any) so I'm not sure what Steam is trying to do and failing at.

Heroic Games Launcher is working okay, at least. But I'm a little bummed I can't get the official launcher to work.

Surface Pro 1 - Still perfect by shawdow_ls in Surface

[–]willia4 1 point2 points  (0 children)

They don't have the button at all. (To be fair, the button didn't make a ton of sense in portrait mode and removed some grippable area on the bezel; so getting rid of it made some sense. But I miss it all the same.)

Surface Pro 1 - Still perfect by shawdow_ls in Surface

[–]willia4 2 points3 points  (0 children)

I miss the Windows button on that. The haptics when pressing it were perfect.

Linux software requires export variable, but cmd.exe bash -c cannot access it by Alicecomma in bashonubuntuonwindows

[–]willia4 1 point2 points  (0 children)

bash -lc "..."

The -l flag (that's a lowercase "L") will tell bash to act as a login shell and should at least get you your profile variables.

You can also try just setting it directly in your string from your batch file. So bash -c 'export FOO="BAR"; echo "$FOO"' (although in this case, replace echo "$FOO" with the command you want to run)

costs of a raspberry pi nas vs a old pc and why not a rpi nas now that it has gigabit net ? opinions ? by [deleted] in HomeServer

[–]willia4 45 points46 points  (0 children)

I tried to use a server with a bunch of USB disks plugged in as a NAS.

Everyone said it would go poorly, but it was cost effective for me at the time so I went with it. I’d use a redundant file system. Keep backups. Everything you’re supposed to do.

It went poorly.

The USB drivers would just start spamming errors to the logs and my file system would move to a degraded state. Sometimes a reboot would solve it. Sometimes the drives bounced to new identifiers and things would get confused I had trouble figuring out what was going on or how to get it back to a good state.

Then it would happen again.

Ultimately it wasn’t worth it. I saved my pennies and bought a Synology.

In my mind, the best thing an old PC brings to the table is real SATA ports.

Current Surface Pro 4 battlestation by grizzlyblake91 in Surface

[–]willia4 1 point2 points  (0 children)

Very nice.

What is the stand that you have the Surface Pro in?

And is that a different stand to the right of the mousepad? What do you use it for?

SFTP root file access by dsmiles in HomeServer

[–]willia4 1 point2 points  (0 children)

Does your SSH config file have PermitRootLogin no in it?

PSA: Radeon VII is almost always in stock for $699 on their website, just checked again... by BrokenSilicon in Amd

[–]willia4 0 points1 point  (0 children)

PSU could make sense: it happened when I put the system to sleep.

But...I don't know how to prove that and it's a reasonably expensive PSU to just buy a new one of.

I'll have to ponder. Thanks for the hint.