@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.

ramsey, to random
@ramsey@phpc.social avatar

I’ve been at a loss for words over seeing Nikki Haley sign bombs. There is no moral or ethical argument to justify that behavior. It is despicable, and if you think in any way that it’s humorous, you are part of the problem.

paninid, to Seinfeld
@paninid@mastodon.world avatar

All had to do was not say anything.

And he just could. not. resist.

You steal one guy’s idea to make a show about nothing and your inability to be a character actor and live long enough to project all your insecurities.

ramsey,
@ramsey@phpc.social avatar

@paninid I bought tickets to see him tonight in Nashville, months ago, before he decided to open his mouth about woke culture. So, now, I’m dreading the show.

ramsey,
@ramsey@phpc.social avatar

@paninid I’m sure his whole set is carefully scripted. He doesn’t seem like the kind of person to go off script, but then again, that hasn’t stopped him recently.

ramsey,
@ramsey@phpc.social avatar

@angiebaby @paninid I don’t remember exact price, but with fees and taxes, they were about $100 each.

ramsey,
@ramsey@phpc.social avatar

@angiebaby @paninid The tickets are through our local non-profit performing arts center, and they’re non-transferable.

ramsey,
@ramsey@phpc.social avatar

@angiebaby @paninid I’m also not really trying to get out of it, but I’m prepared for cringe.

In December, my sister wanted to go see Adam Carolla, so I went along with her as company. Now, that was a mistake! 😬 (and I should’ve known better)

ramsey,
@ramsey@phpc.social avatar

@angiebaby @paninid A humorous anecdote about these tickets:

I bought them for my wife, who was binge-watching Seinfeld last Fall. I assumed she would be interested. The other day, she laughed and said, “I hated that show. They’re all terrible humans, and I get that’s the point, but I watched mainly to learn all the cultural references I keep missing.” 🤣

So, we’re just going to enjoy the night out regardless of how he turns out.

marijn, to random
@marijn@mastodon.social avatar

I suspect, if the internet were built today, the only way society could envision it would be as a private enterprise undertaking. The result would be a bunch of competing walled gardens with designs more focused on extracting value for shareholders than on actually providing a useful social function.

Corporations won't build the future we need. A society that leaves innovation to them is only going to get the shitty version, designed to route more power to rich assholes.

ramsey,
@ramsey@phpc.social avatar

@marijn @janl I’m reminded a bit of The Source, CompuServe, Prodigy, and America Online.

ocramius, to random
@ocramius@mastodon.social avatar

Send invalid Authorization headers to Atlassian Confluence: get 200 responses back, with empty results.

I despise Atlassian: they're so bad at writing software.

ramsey,
@ramsey@phpc.social avatar

@psycodepath @ocramius GraphQL also requires all responses to be 200, even for errors.

brenan, to gamedev French
@brenan@hachyderm.io avatar

✨ The game I dedicated my life to for the last two and a half years got finally announced!!

It's a non violent exploration adventure game in which you discover a Provence like planet with you van.

Go watch the trailer and wishlist if you like what you see 👀

https://store.steampowered.com/app/1582650/Caravan_Sandwitch

ramsey,
@ramsey@phpc.social avatar

@brenan @lmorchard Looks really cool! I might need to get a Windows PC just to play it. 😁

ramsey,
@ramsey@phpc.social avatar

@forpeterssake @brenan @lmorchard If that’s the case, it might be time for me to get a Steam Deck instead.

bobmagicii, to random
@bobmagicii@phpc.social avatar

i also wish we could be like

foreach($Things as const $Thing)

so i could stop doing unset($Thing) after my foreach loop.

sometimes i will add overhead with a callable that is immediately called just to keep the scopes clean. its an obsession i have. but that doesn't really work well in templates that are more html than anything.

ramsey,
@ramsey@phpc.social avatar

@bobmagicii @preinheimer This RFC might shed more light on this particular issue with foreach: https://wiki.php.net/rfc/foreach_unwrap_ref

ramsey,
@ramsey@phpc.social avatar

@bobmagicii @preinheimer But, even without references, once you exit the foreach loop, the variables created as part of the loop syntax (i.e., $k => $v) are still around and hold the values of the last iteration through the loop. So, if you continue to use those variable names, it can result in hard-to-debug issues.

Skoop, to random
@Skoop@phpc.social avatar

Phun with PHAR: I try to get PHPStan up and running with extensions, but it seems impossible to make PHPStan PHAR work with extensions.

I don't really understand why extensions don't work with the PHAR. It should not really be an issue, right?

ramsey,
@ramsey@phpc.social avatar

@wouterj @Skoop @acelaya This is one of the reasons I haven’t implemented Phive usage in my projects. I depend on extensions to PHPUnit, PHPStan, Psalm, etc., but there’s no way to use them if using the phar.

ramsey,
@ramsey@phpc.social avatar

@heiglandreas @wouterj @Skoop @acelaya I think I’ve read your post before, and I’ve done some work with this, too (using your approach), but it’s still too difficult—not in the ability to do it or understand it, but in the ability to share it as part of a public repo. There are ways to overcome that with Git hooks, I think ( FTW!), but it still might be hard for others working within the repo to effectively contribute, since this isn’t a common pattern (yet).

ramsey,
@ramsey@phpc.social avatar

@heiglandreas @wouterj @Skoop @acelaya I’d love to talk some more about this. I agree with you, but how can we encourage contributors to run linting and tests locally before opening a PR? So many PR requests/comments could be solved that way. I’ve seen too many run-by PRs that are good but failed CI, and the contributor doesn’t return ever to comment or address the failures, so either I have to take time to do it, or I choose not to accept it.

ramsey, to Matrix
@ramsey@phpc.social avatar

It’s so difficult (and expensive) to run a #Matrix #Synapse server for my own domain. Is it worth it?

I started out wanting to support Matrix, and I've set up a number of channels for my community on Matrix, but everything happens on Discord and IRC right now, and we have a bridge between Discord and IRC, but we can't bridge to Matrix at the moment, so is it even worth it to keep maintaining a separate Matrix presence?

If not, I’m just gonna shut it down. I don’t want to spend the money.

ramsey,
@ramsey@phpc.social avatar

@austin It’s not boding well for my abilities to run Conduit that I can’t download their Stable/Main files because they respond with 404s. https://docs.conduit.rs/deploying/generic.html#installing-conduit

ramsey,
@ramsey@phpc.social avatar

After that, I copied the binary to the VM where I wanted to run it, and set up systemd and Caddy. I ran into some issues with the service failing to start, due to some permission errors related to my attempt to use the Debian service file in the repo: https://gitlab.com/famedly/conduit/-/blob/next/debian/matrix-conduit.service

I guess that file need some extra massaging to make it work, so I fell back to using the bare-bones version in the docs: https://docs.conduit.rs/deploying/generic.html#setting-up-a-systemd-service… (2/5)

ramsey,
@ramsey@phpc.social avatar

@josh @austin Just an update on where I am, now:

I spent about 5 hours tonight getting Conduit set up. The biggest issue is that the download links in their docs all 404’d, so I ended up having to compile it on my own. But then I had to start up a new VM for building it, since the one I was running (1 vCPU with 512 MB of RAM) crashed while attempting to build. (1/5)

ramsey,
@ramsey@phpc.social avatar

I will say this: the docs for Conduit are much, much, much more straight-forward and easy to follow than the Synapse docs. I felt confident after looking at them, which is why I decided to go forward with this, even though I ran into a bunch of issues along the way—they were mostly issues I could work around, rather than brick walls. (4/5)

ramsey,
@ramsey@phpc.social avatar

Eventually, I got it running, but it took a lot of persistence and know-how (like knowing how to compile Rust programs and debug things when compilation goes wrong). (3/5)

ramsey,
@ramsey@phpc.social avatar

Now, I’ve got it running. There are still a few weird issues I’m noticing, but it’s on a tiny 1 vCPU instance with 512 MB of RAM, and the CPU hasn’t gone above 3% yet, while the memory usage is staying below 40%. That’s amazing! (5/5)

ramsey,
@ramsey@phpc.social avatar

I might need to pay a few more bucks and bump the memory up, though. It’s steadily climbing.

ramsey,
@ramsey@phpc.social avatar

@josh @austin I bumped the RAM up to 1 GB, and that seems to be working well, for me. I’d like to run it on the smallest instance I can, but 1 vCPU and 1 GB RAM isn’t bad.

(It appears @MonaApp removed reply mentions when it auto-threaded my long post, but maybe that’s a feature and not a bug.)

ramsey,
@ramsey@phpc.social avatar

@josh @austin But the best and most important thing about this: the Conduit devs are super-receptive, extremely helpful, and they’ve already acted on some of my feedback. I’m impressed and happy to give that community my support and attention.

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