@syntaxseed@phpc.social
@syntaxseed@phpc.social avatar

syntaxseed

@syntaxseed@phpc.social

Programming, tech, gaming & other geeky topics from Sherri Wheeler.

Occasional business, handiwork, electronics, parenting and fitness content.

๐Ÿ˜ PHP/JS developer with miles to go before I sleep();

All posts are my own - never AI generated.

Ally & anti-racist. Bigoted or harassing replies get blocked & reported.


Available for part-time contract work.

๐Ÿ‡จ๐Ÿ‡ฆ๐Ÿ’ป๐ŸŽฎโ˜ธ๏ธ๐ŸŽฒ๐Ÿ”จ๐Ÿ’ช

(she/her)

#nobridge #nobot

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

syntaxseed, to business
@syntaxseed@phpc.social avatar

Overheard 2 businessmen discussing corporate office changes so that employees "won't feel like just a cog in a machine."

They came up with these 'great' strategies:

  • Rearrange the cubicles
  • Art on the walls
  • Seat managers closer to employees
  • More team fun events

Notably not discussed:

  • More pay
  • Profit sharing
  • More ownership of decisions & input
  • Recognition of employee successes
  • More PTO and/or work-life flexibility
  • WFH options

Good luck guys! ๐Ÿ˜†

syntaxseed, to php
@syntaxseed@phpc.social avatar

Hey... #coding question...

Say you have a function that has to return 1 of 3 states. Yes, no or N/A.

What's the recommended way to do this?

-Return an int flag?
-True/false/null?
-Return a value object?

#PHP #Programming

syntaxseed, to Symfony
@syntaxseed@phpc.social avatar

Hey folks.

What's your thoughts on vs ? I'm looking for a PHP CMS that isn't WordPress based on a potential client's request. Prefer based so that's why these 2.

Mostly a brochure site with some normal CMS-y features (gallery, contact form, etc).

Bonus for ease of ongoing maintenance.

syntaxseed, to wordpress
@syntaxseed@phpc.social avatar

I've been brushing up my skills in anticipation of a couple new contracts I'm negotiating.

Decided to attempt to rewrite my company website onto in, learning theme dev along the way. It's going swimmingly. ๐Ÿ˜

But ug. The standards for WP are so old fashioned, it's a weird backwards learning curve.

syntaxseed, to mastodon
@syntaxseed@phpc.social avatar

Investigating share buttons & they all require you enter your instance URL.

Damn it would be nice if there was a way to set a cross-site cookie that just broadcasted this info. Opt-out-able if course. ๐Ÿค”

syntaxseed, (edited ) to php
@syntaxseed@phpc.social avatar

Where does everyone store the files for enums & value objects?

  • src/
  • controllers/
  • entities/
  • repositories/
  • services/
  • views/

Another 2 sub directories under src/ ?

Some kind of types/ subdir then enums/ and objects/ under that? ๐Ÿค”

syntaxseed, to random
@syntaxseed@phpc.social avatar

Hot-take Tuesday...

95% of my cable management struggles have been caused by one cable in a setup being too short.

It's the current reason I can't get behind my TV without unplugging things that I can't reach without contorting like a pretzel.

Cables under 6' long should not exist. ๐Ÿ˜†

syntaxseed, (edited ) to IT
@syntaxseed@phpc.social avatar

Got a bit turned around searching for off-server cloud backup options.

Where do people do this? To some kind of static/cdn type service like S3 or Spaces? To a second VPS? To cloud backup services like Dropbox/Drive/Etc?

Was hoping to use the client's existing DropBox account which has lots of storage.

Went down a rabbit hole but then found Rclone (cloud wrapper for Rsync) which looks like a good fit. Got a proof of concept working. ๐Ÿ‘

syntaxseed, to php
@syntaxseed@phpc.social avatar

I have a 8.0 project where comparing legacy hashed passwords suddenly stopped working.

I think it's because older accounts are using blowfish ($2a$) and a salt of 21 characters but whatever it was falling back to stopped working because it wants a 22 character salt.

My client now has users with passwords I'm not sure how to validate because I can't replicate the hash.

I guess my next step is to just regenerate & email new passwords. But I don't like it.

syntaxseed, to wordpress
@syntaxseed@phpc.social avatar

Took over maintenance of a new client's site.... and a suspicious stack trace on an error message led me to finding DOZENS of randomly named files & core WP files with obfuscated code in them. ๐Ÿ˜ตโ€๐Ÿ’ซ

I've never seen such a thoroughly compromised site before. Uuug.

syntaxseed, to diy
@syntaxseed@phpc.social avatar

My project for today. A little somethin' for the ninja course. ๐Ÿชš

Wood sliver count so far: 3!

syntaxseed, to Software
@syntaxseed@phpc.social avatar

This is the MOST annoying auth pattern.

If I could just type a damn password I'd be in by now. Instead of refreshing my inbox & checking my spam over & over. ๐Ÿ˜ก

syntaxseed, to php
@syntaxseed@phpc.social avatar

It's interesting to read an article which criticises the community-based committee governance model.

Because the argument boils down to 'design by committee rarely achieves excellence'.

But what's missing is, who defines "excellence"? A BDFL might achieve more for their goals, but anyone who wants something else is told 'too bad, so sad'.

PHP is a generalist web language. A governance committee ensures diversity of goals & a more broad evolution of the language.

https://stitcher.io/blog/limited-by-committee

syntaxseed, to php
@syntaxseed@phpc.social avatar

So I have a Wordpress website which is deployed to the apache+nginx server with Ansible. A symlink in the webapp's document root is updated to point to the new release.

I'm encountering Apache (I think) caching the results and serving the index.php page in the old release until I modify the file. Even though the symlink points to the new release.

Any suggestions as to how to fix this other than tweaking the modified date on the old release?

syntaxseed, to diy
@syntaxseed@phpc.social avatar

I just finished the hardest home repair task of my entire life. ๐Ÿ˜ตโ€๐Ÿ’ซ

work is bonkers!

The hall light fixture hasn't worked in a while. I detached it from the ceiling but was left with only 3" clearance between the dangling fixture & the ceiling. Cramming my hands & neck to see & reach in there was almost impossible. I don't know how men with their larger hands, work within those bloody tiny electrical boxes.

Finally found & replaced the faulty (melted) wire. What a struggle!

syntaxseed, to random
@syntaxseed@phpc.social avatar

Working on my first project to be hosted by the client on AWS & I'm told I can't store anything on the filesystem.

So now I have to rethink profile picture uploads, session storage, logs, etc.

๐Ÿค”๐Ÿค”๐Ÿค”

syntaxseed, to Symfony
@syntaxseed@phpc.social avatar

So I have a User entity in a project with an int type $id property. And something deep in the framework is trying to assign a string value to the $id which is throwing critical type errors.

WTH. Am I supposed to make User::$id a string|int type? No thanks. It's in the framework so out of my hands. Some token unserializing step.

Bizarre.

syntaxseed, (edited ) to diy
@syntaxseed@phpc.social avatar

The last couple days have been a bonanza of little projects including some nice wins that I'm quite proud of.

I replaced a broken fluorescent light fixture in the laundry room with a standard bulb with a plug in the fixture (which will get an LED work light strip soon).

And I forcefully removed, cleaned, greased & replaced a bathroom faucet handle that became so stiff the kids couldn't turn on the water.

Whew that feels great! ๐Ÿ’ช๐Ÿ”ง

syntaxseed, to security
@syntaxseed@phpc.social avatar

What's the current state of the art in terms of identity verification?

With Twitter blue checks pointless now, we don't have much awareness of what is useful for average individuals to publish their own identity or verify that of others. And with LLMs flooding the web with fake info, I think this is going to become more & more important.

I'd like to look into ensuring my own online identity is as authenticated as possible.

syntaxseed, to microsoft
@syntaxseed@phpc.social avatar

Setting up child / accounts for my 2 youngest kids.... was just about the most unfriendly user experience I've ever had.

The Live ecosystem that MS uses for accounts just redirects you constantly, forgets who's logged in. Keeps having to re-authenticate me but sometimes it asks for an email sometimes it emails a code. It's anybody's guess!

So I'm juggling access to my email, my 2 kids' emails. Some stuff needs an app because the website can't do it. I had 3 browsers open....

syntaxseed, to random
@syntaxseed@phpc.social avatar

๐Ÿ”ฅHot take:
It's not a "free trial" if I have to pick a plan & give my credit card & get billed the second the trial ends.

This is delayed billing. I'm paying with the effort it will take to remember to reassess at the end of the trial & manually cancel if I didn't like it. I'm paying by giving you my credit card info. I'm paying with reminder burden.

This is a dark pattern.

syntaxseed, to Utah
@syntaxseed@phpc.social avatar

My parents are on vacation at a bison ranch in & discovered there is 0 alcohol sold anywhere in the region. The ranch owner buys some out of state once in a while... ๐Ÿ˜ณ

And now I totally get where this anti-progressive fear of liberal social policy is coming from... the US has entire states that are still afraid of alcohol. ๐Ÿคฃ No wonder rainbow flags put them into convulsions.

Wow.

syntaxseed, to VideoGames
@syntaxseed@phpc.social avatar

Almost all reporting sites are now blocking me & demanding I disable adblockers. (I'm using vanilla on Android.) ๐Ÿ˜ก

YouTube started doing it and many are quickly following suit.

I wonder if we're quickly approaching a time when most websites block users by default.

Guess I'll go read a book or something.

syntaxseed, to journalism
@syntaxseed@phpc.social avatar

I remain frustrated that before the thinning out of real .... none of the big orgs tried to monetize their websites by giving the basics of a story for free - enough to keep people generally informed & to keep their website as the place to go to stay on top of things... then pay a buck or two to unlock the more indepth details, interviews & research.

The whole "you've reached your limit of 2 free articles" concept just teaches me not to go to your website.

syntaxseed, to Vivaldi
@syntaxseed@phpc.social avatar

Been switching from browser to @Vivaldi & so far it's been good.

Had to switch the address bar to the bottom on the Android mobile browser to get rid of that stupid redundant tab bar & that's taking some adjustment on my part. But so far I'm liking on both Android & desktop . ๐Ÿ‘

Some nice customization options.

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