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

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

#gamedev #indiegame #indiedev #videogames #wholesome #wholesomegames

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.

ramsey, to Matrix
@ramsey@phpc.social avatar

It’s so difficult (and expensive) to run a 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

@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

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

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

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

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
  • megavids
  • rosin
  • mdbf
  • tacticalgear
  • osvaldo12
  • InstantRegret
  • DreamBathrooms
  • modclub
  • magazineikmin
  • thenastyranch
  • khanakhh
  • Youngstown
  • slotface
  • kavyap
  • JUstTest
  • ethstaker
  • tester
  • GTA5RPClips
  • Durango
  • normalnudes
  • cubers
  • ngwrru68w68
  • everett
  • provamag3
  • cisconetworking
  • anitta
  • Leos
  • lostlight
  • All magazines