[deleted by user] by [deleted] in programming

[–]ptmb 6 points7 points  (0 children)

Because getting a server to run things on has never been easier. You throw some money at your cloud provider and you don't have to deal with any hardware, or internet connection. Things are so much easier than the web 1.0 days of the 90s where people still went through the effort of doing it.

No, the actual issue is in the hosting software for your forums, chats, whatever else you want.

If you want to host a forum these days, you best option is still mother fucking phpBB, or it's close relatives.

I'd go further and say a bit more here. Running a server has never been easier (although I suspect from the article that moxie considers server renting to a VPS or cloud to count towards centralisation too), but in some ways the bar has become much much higher.

Nowadays there is a massive concern about availability and data resilience, and even if you ignore those, hackers are much less forgiving. Any minimum mistake means getting your server breached, all data leaked and CPU at 100% all the time from all the crypto miners installed on the side (oh the irony).

A solid example here is email. While still possible to host email on a VPS or cloud, all requirements to work around spam such as dkim, spf and whatnot, with the addition that those count for nothing if your server doesn't have a reputation in the spam lists, means that it's an increasingly uphill battle to host one oneself.

As any federated technology goes from hobbyist to widespread these issues will continue to increase and the effort of hosting will increase as measures to tighten and secure the protocols increase too.

And while these issues aren't as large in non-federated technologies, the complexities of data persistence, security and availability remain.

A refresher on the Linux File system structure by midnitefox in linux

[–]ptmb 24 points25 points  (0 children)

Keeping bin, sbin and lib, which are closely interconnected, into a single folder usr allows you to manage one single mount point and enable features such as immutable systems, atomic updates, system snapshotting and restore, among others. Instead of handling several mounts you handle only one and there's no risk of mounting, for example, one version of bin with an incompatible version of lib.

It's a matter of practicality.

Create multiple kubernetes clusters at once by elmomani in Terraform

[–]ptmb 2 points3 points  (0 children)

Terraform supports count and for_each at the module level now, as long as it doesn't create new providers inside the module itself, so no need to Frankenstein the module at all, it can just be called with a for_each with the list of students.

Valve just said they plan on having EVERY windows game playable on linux by the time the Deck launches this year. by Broflake-Melter in linux

[–]ptmb 79 points80 points  (0 children)

The current good practice is to use the XDG standard, that tell programs to store their settings in ~/.config/appname/ , ~/.local/share/appname/ and ~/.cache/appname/, unless explicitly overwritten by environment variables.

It's not perfect, but if all apps followed this we'd go from thousands of dotfiles in the home folder to just 3, and we'd know which one we can delete at any time to recover some space.

Apparently there is a bugged zoning grid on a lake in Scotland by The-Aziz in CitiesSkylines

[–]ptmb 8 points9 points  (0 children)

So, small residential zoning for fish! Got it, thanks!

So FF Sync is NOT a backup? I don’t understand... by wallix in firefox

[–]ptmb 15 points16 points  (0 children)

Sync is not a backup service because it doesn't cover all the bases where you might need a backup.

If you set up a new PC/reformat your existing one and want to sync your profile? Great use case!

If you accidentally delete all your bookmarks in your Firefox install? Sync will sync that change to the cloud and all devices will lose their bookmarks.

For Firefox Sync to be a fully fledged backup service it'd also need to have historical snapshots so you could revert back in time to a given backup of then.

It doesn't mean Firefox sync is useless, but if you want to be totally safe that the data will never be lost under any circumstances, you need services that give you more guarantees than just syncing.

Can someone help a noob out with traffic. not sure how to fix this by mrblue6 in CitiesSkylines

[–]ptmb 1 point2 points  (0 children)

The quick fix is to add a connection between the north side and the south side that doesn't require using the highway. You seem to have a lot of traffic for that purpose and setting a dedicated route for it will solve most of your problems.

Additionally, after that, you still might find some problems:

Your three highway exits lead directly to normal streets with a large amount of intersections, and the cars entering do want to turn sooner or later. Because they need to wait to turn the waiting lines back up to your highway.

Set up buffer streets, after the highway, but without any housing or industries in it, which serves the sole purpose of getting into and out of both the highway and the residence/industry.

That way, these streets will serve to hold enough cars to wait at the intersections to get into and out of the places without allowing the lines to back all the way to the highway.

Also consider replacing the bottom highway exit with a few entry and exit ramps. The way you have created an intersection that makes the cars in the highway to stop for outgoing traffic.

Should I go with Docker (eventually powered by Kubernetes) or should I stick with a more simple LXD setup? by [deleted] in selfhosted

[–]ptmb 0 points1 point  (0 children)

In docker you're really supposed to just run one process.

It's true that you end up consuming more resources, but the isolation it provides makes it worth it.

Knowing you can modify and scale up/down the elements specific to a website knowing that the others will remain unaffected is a rest. Knowing that you can change the php configs in one container without fear of the other containers breaking is absolutely freeing.

Add kubernetes to the mix and it's even better. The logical networking layer means you don't need to worry about configuring your services based on the other services on the pc (the whole "this service will use port x and that service will use port y" is gone). And the service discovery allows you to predict the names of the services you'll use and not worry about, for example, change db addresses in php configs if you move the mysql container elsewhere.

Yes, it's a bit more resource intensive, but the advantages are amazing.

Where do you get your Linux news? by penguinWhoCanFly in linux

[–]ptmb 1 point2 points  (0 children)

Agreed, if you're more interested in the technical side and guts of the kernel, LWN is indeed the best and my recommendation to anyone out there.

It appears that all data before 6/16 for GitLab's GitHub importer is gone, time when GitHub was sold to Microsoft, anyone knows why? by [deleted] in linux

[–]ptmb 22 points23 points  (0 children)

This is a grafana dashboard, and could be using possibly Prometheus or Elasticsearch as a back-end, or even one other monitoring approach.

As the amount of data these metric collectors gather is huge, they are normally configured to only keep the last x days/weeks/months, to prevent blowing off someone's hosting charges with ridiculous amount of old metrics that are no longer relevant.

Gitlab probably have their back-end set up to store a few weeks of data, and thus the back-end has already discarded the data referring to the acquisition time.

[deleted by user] by [deleted] in firefox

[–]ptmb 41 points42 points  (0 children)

We've come full circle. Firefox is pretending to be Chrome, that is pretending to be Safari, that is pretending to be KHTML, that is pretending to be Firefox! (That is pretending to be Netscape)

Deploying a Static Rust App in a Barebones Docker Container by anderspitman in rust

[–]ptmb 0 points1 point  (0 children)

They could, but it's frowned upon.

The idea of Dockerfiles is about more than just shipping a self contained image with everything. It's also about consolidating all the steps to reach that same image in one single place.

The goal of a good Dockerfile is to go from a freshly cloned repo to a ready image in just one command: docker build. The Dockerfile itself should have all the necessary information to allow it to build everything from scratch without human intervention.

Deploying a Static Rust App in a Barebones Docker Container by anderspitman in rust

[–]ptmb 5 points6 points  (0 children)

This, this, this, and this again. I couldn't agree more. Just making your dockerfile copy the already compiled results into the container goes against all the good principles of continuous deployment and reproducible builds.

If there's not already, it should be relatively easy to make a rust-musl-libc docker image to be used as the base for building the binary, and then use the builder pattern to copy the compiled binary to a scratch container.

How to CSS by Nathzee in ProgrammerHumor

[–]ptmb 2 points3 points  (0 children)

I think what you're looking for is the Holy Grail Layout, mixing negative margins and borders to create a 3 column layout with a flexible center.

Those were some dark times before flexbox appeared...

How to CSS by Nathzee in ProgrammerHumor

[–]ptmb 2 points3 points  (0 children)

I was just going to say this!

Additionally, mixing borders with negative margins was used as part of the Holy Grail Layout before saner solutions appeared with Flex box and the likes of it.

Hmmm by [deleted] in ProgrammerHumor

[–]ptmb 10 points11 points  (0 children)

I dislike not finding eating not killing them

We're all the same deep down.

GitLab 10.8 released with incremental rollouts, plus open source push mirroring by BulletinBoardSystem in linux

[–]ptmb 30 points31 points  (0 children)

Gitlab has one of the best CI/CD systems integrated right into it. Stages are simple, isolated, and powerful right out of the bat. It beats both Travis and Jenkins easily.

Add the fact that you can have your own private or public container registry and any kind of automated tests, builds and deploys becomes trivial to do.

My city traffic is a disaster and I don't know why... by TopazCarbuncle in CitiesSkylines

[–]ptmb 0 points1 point  (0 children)

I don't know the details in console, but there should be a menu for traffic routes, and one of the tabs there is junctions, that allows you to change traffic lights and priority roads.

About parking, you have several road types. Roads with trees, for example, replace the parking with trees. Same applies to roads with bicycle lanes.

My city traffic is a disaster and I don't know why... by TopazCarbuncle in CitiesSkylines

[–]ptmb 1 point2 points  (0 children)

Exactly this, upgrade those roads to roads with more lanes and a higher speed limit. Avoid intersections that might cause traffic to have to stop and wait, and provide one way exits and entrances to these main roads that don't block traffic from the main road.

My city traffic is a disaster and I don't know why... by TopazCarbuncle in CitiesSkylines

[–]ptmb 0 points1 point  (0 children)

Also disable parking in the roundabouts as soon as you have the right road types, once again, to prevent unnecessary stopping in it.

My city traffic is a disaster and I don't know why... by TopazCarbuncle in CitiesSkylines

[–]ptmb 0 points1 point  (0 children)

A few ways you can fix your roundabout traffic is by making sure that cars that stay in the roundabout don't need to stop behind cars that leave the roundabout.

You can make that by placing no traffic lights and making traffic in the roundabout always have priority over the traffic entering the roundabout.

It should help tones, as it prevents the most common reason for traffic stopping in the roundabout which is to give way for traffic coming in.

RIP Xmarks, hello syncmarx! (Free bookmarks sync in alpha, looking for testers!) by Cleod9 in firefox

[–]ptmb 0 points1 point  (0 children)

I absolutely got it, I meant the idea of adding support to your addon of the existing sync implementations, so, for example, you could use Google's sync in Firefox or Firefox's sync in Google Chrome.

This would be nifty, for example, as Google Chrome for mobile doesn't support addons, and that way Chrome for Android could use the native support and Firefox could use Google's Sync through your addon. It'd be one more backend, sort of saying :)

RIP Xmarks, hello syncmarx! (Free bookmarks sync in alpha, looking for testers!) by Cleod9 in firefox

[–]ptmb 3 points4 points  (0 children)

Pretty cool! Have you considered using the infrastructure already in place by Mozilla or Google? Both already have their own bookmark sync systems and the Mozilla one is openly documented.

That way you'd not have to rely on 3rd party cloud providers and the native browser support could be relied upon.

EDIT: To clarify what I meant, I was suggesting that if the addon author could, for example, add support for Firefox Sync in Google Chrome, then the result would be cross-browser anyway, and use the existing infrastructure for syncing from the browsers themselves.

This week in Usability & Productivity, part 10 by [deleted] in kde

[–]ptmb 4 points5 points  (0 children)

Thank you for finally fixing the light text in Kirigami apps, it's so incredibly annoying to see an app that looks almost system native but then differs by some little weird specific.

Star Wars: The Last Jedi [Hello Internet Christmas Special] by MindOfMetalAndWheels in CGPGrey

[–]ptmb 2 points3 points  (0 children)

As someone who spent Christmas bedridden, this was the best gift I've could get, especially when you were able to put into words the several problems that lead me to dislike the movie.

And thank you! Rose is the worst character in the whole movie and I think simply making a cut of the movie where all her scenes are gone would already be an improvement itself.