@ramsey@phpc.social
@ramsey@phpc.social avatar

ramsey

@ramsey@phpc.social

Coder, author, & speaker. PHP 8.1 & 8.2 release manager. ramsey/uuid maintainer. Open source developer. Senior Staff Engineer. Pronouns: he/him/his

“This guy seems to fundamentally misunderstand open source” — some rando on Hacker News

“Who is this guy?” — another rando on Hacker News

Co-admin of the https://phpc.social Mastodon server.

All original content in public posts © me & licensed CC BY-SA 4.0, unless otherwise specified. :cc: :ccby: :ccsa:

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

thomasfuchs, to random
@thomasfuchs@hachyderm.io avatar
ramsey,
@ramsey@phpc.social avatar

@thomasfuchs Remember how folks used to get them sliced across the top and bottom and handed them out as business cards (that still worked in the CD drives with trays)?

ramsey, to Matrix
@ramsey@phpc.social avatar

A single-user server should not require so many resources to run. 1 vCPU and 1 GB of RAM should be plenty.

ramsey,
@ramsey@phpc.social avatar

@sean I’m trying to run it on a Digital Ocean droplet, and the best I can manage is their basic tier with 2 vCPUs and 4 GB of RAM, but that’s more than I want to spend on something I barely use. I tried dropping to 1 vCPU and 1 GB of RAM, but then the droplet becomes unresponsive because it needs more memory.

I stopped self-hosting Element because that requires even more resources.

Docker is likely the problem. I’m running Caddy, Synapse, and Postgres as three separate containers.

ramsey,
@ramsey@phpc.social avatar

@sean Are you running Caddy or just exposing Synapse directly via port 443?

ramsey,
@ramsey@phpc.social avatar

@santiago I wish I knew

ramsey,
@ramsey@phpc.social avatar

@sean Gotcha. Similar idea.

ramsey,
@ramsey@phpc.social avatar

@sean Are you using postgres for the DB or the default sqlite?

ramsey, to random
@ramsey@phpc.social avatar

docker-compose on macOS vs. docker compose on Linux always throws me off for about 5 or 10 minutes.

ramsey,
@ramsey@phpc.social avatar

@heiglandreas Huh. That works for me, too. I wonder when I started doing docker-compose. Maybe that’s an old version of the command that’s stuck around on macOS?

ramsey,
@ramsey@phpc.social avatar

@namelessotter For some reason, when I install Docker on Ubuntu, using their official installation instructions, it doesn’t include the docker-compose command.

nunomaduro, to random
@nunomaduro@mastodon.social avatar

just a quick reminder that you can run php code in the terminal using the -r option; not sure how obvious this tip is, but sharing it anyway

ramsey,
@ramsey@phpc.social avatar

@uberbrady @nunomaduro php -a gives you a decent built-in REPL, though PsySH is easier to use and has more features (and is what Laravel Tinker uses under the hood).

ramsey,
@ramsey@phpc.social avatar

@tress777 @uberbrady @nunomaduro It’s this: https://psysh.org

I have a Composer plugin for it, too, so you can just run composer repl from within your project. You can install it with composer require --dev ramsey/composer-repl

Or, install it globally (i.e., composer g require ramsey/composer-repl, and you can then access it from anywhere with composer g repl.

😁

bootblacksubwoofer, to random
@bootblacksubwoofer@woof.group avatar

You're walking in the desert. There's no one around and your shield is dead
Out of the corner of your eye you spot him: Shai-Hulud

He's following you, about 30 miles back. He crests over a dune and breaks into a sprint
He's gaining on you: Shai-Hulud

You’re looking for your camp but you're all turned around. He's almost upon you now
and you can see there's teeth in his face. My God, there's teeth everywhere!

ramsey,
@ramsey@phpc.social avatar

@bootblacksubwoofer @uberbrady I’m reading Children of Dune (for the 2nd time), and I just got to the point where Leto II pops up from the sand dunes, wearing his sand trout skin, and shouts, “Surprise, motherfuckers! I’m Shai-Hulud!”

ramsey, to random
@ramsey@phpc.social avatar

This is part of the reason I couldn’t get to a good place (mentally) in order to do a real “Saving Open Source” talk at :

From @geerlingguy: “2024 is the year corporate open source died”

https://www.jeffgeerling.com/blog/2024/corporate-open-source-dead

ramsey,
@ramsey@phpc.social avatar

@lewiscowles1986 @isaacs This is my first time seeing this, but it feels similar to some of the proprietary licenses that have expiration dates on them, after which they convert to an open source license. I think I’d prefer those styles of licenses over FUTO, which is ambiguous, at best; there’s no guarantee if or when it will ever convert to open source or what its open source terms will be, when it does.

ramsey,
@ramsey@phpc.social avatar

@isaacs @lewiscowles1986 “a fallback that if a license is not available for purchase”

When would this trigger?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • thenastyranch
  • magazineikmin
  • osvaldo12
  • cubers
  • mdbf
  • Youngstown
  • tacticalgear
  • slotface
  • rosin
  • kavyap
  • ethstaker
  • everett
  • khanakhh
  • megavids
  • DreamBathrooms
  • InstantRegret
  • normalnudes
  • GTA5RPClips
  • anitta
  • ngwrru68w68
  • cisconetworking
  • modclub
  • Durango
  • Leos
  • provamag3
  • tester
  • lostlight
  • All magazines