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

DianaThompson, to webdev
@DianaThompson@fosstodon.org avatar

O, the simple joy putting a project into version control that wasn't before.

syntaxseed,
@syntaxseed@phpc.social avatar

@DianaThompson That means it's REAL! 😁

angelikatyborska, to webdev
@angelikatyborska@mas.to avatar

Based on my experiences in various frontend codebases that were written without a frontend expert on the team (including my own old projects 💩), I compiled a list of 9 most common signs of frontend code quality issues that affect users https://angelika.me/2024/04/13/9-signs-your-frontend-code-has-quality-issues/

syntaxseed,
@syntaxseed@phpc.social avatar

@angelikatyborska This is a fantastic article!

I just wish it had a brief line on each item about the recommended way to do it instead. Because now I'm left scratching my head on a few of these... 🤔

syntaxseed,
@syntaxseed@phpc.social avatar

@angelikatyborska Oooo. I thought the links were for the proper use of the misused elements... not the proper way to do the thing being attempted. 😁

syntaxseed, to business
@syntaxseed@phpc.social avatar

Seeing a trend of more & more #ecommerce websites not letting you even into the website at all until you sign in or give an email address.

Walmart(dot)ca did it to me yesterday until I tried a private browsing tab. And Wayfair today.

Is this the new tactic since browsers are getting more privacy focused?

Never thought I'd see paywalls just to shop!

Guess I'm going to be submitting more no@eff-off.com emails going forward. 😡

#business #WebDev #privacy

syntaxseed,
@syntaxseed@phpc.social avatar

@tony_394c6b6b Oh geez. 😣

Good thing I have a few fake personas & throw-away emails if needed.

syntaxseed,
@syntaxseed@phpc.social avatar

@Trustnowan The number of times I've had money to spend but could barely drag a company to take it is mind boggling. Especially in the contracting industry in southern Ontario.

I have several projects that have gone undone because no one would call me back. 🤦‍♀️

syntaxseed, to wordpress
@syntaxseed@phpc.social avatar

I've been working on a plugin for a client that generates custom PDF worksheet printouts for teachers. And it's turning out SO awesome that I'm basically high on coding satisfaction today. 😁

Not bad for my first plugin!

syntaxseed,
@syntaxseed@phpc.social avatar

It's using a library called TCPDF which requires pretty old-timey HTML & very limited so.... table layouts are back baby!!

😆

But I've managed to exactly match the manually created PDFs, so I'm pretty happy with it.

syntaxseed,
@syntaxseed@phpc.social avatar

@bhhaskin Using a PHP library!

And it's only going to be installed on our own sites so we control the environment.

syntaxseed,
@syntaxseed@phpc.social avatar

@bhhaskin

https://tcpdf.org/

Has a bit of a learning curve & poor docs... but it's working nicely.

syntaxseed,
@syntaxseed@phpc.social avatar

@PJFDF Ooo nice!!

majorlinux, to random
@majorlinux@toot.majorshouse.com avatar

Everybody just has to have more.

Discord to start running ads even though it said it wasn't going to - Desk Chair
Analysts

https://dcanalysts.net/discord-to-start-running-ads-even-though-it-said-it-wasnt-going-to/

syntaxseed,
@syntaxseed@phpc.social avatar

@majorlinux Self-hosted forums are going to make a comeback I swear....

syntaxseed, to Korean
@syntaxseed@phpc.social avatar

Hey folks!
My fam & I are loving season 2....

Please help us understand Korean names like: Kim Nam-Wook & Park Woo-jin.

Which are the family names & which are their given names? 🤔

Thanks!

syntaxseed, to php
@syntaxseed@phpc.social avatar

ALL of my projects have been upgraded off 7.x. Yay!!

:elephpant_purple: 🎉

syntaxseed,
@syntaxseed@phpc.social avatar

Next up...

To upgrade the ones still on 8.0 and 8.1.

There are 19 of those.... 😭

syntaxseed,
@syntaxseed@phpc.social avatar

@ericmann @wyri My sites are all 'pinned' to 8.2 for compatibility (due to plugins) so that's my minimum target for now. 😁

syntaxseed,
@syntaxseed@phpc.social avatar

@wyri What are your Github Actions doing, if I may ask? 🤔

syntaxseed, to mastodon
@syntaxseed@phpc.social avatar

Does anyone know how to view the alt text of an image on the mobile website?

I see the little badge indicating alt text exists but if I click it, it just opens the image.

syntaxseed,
@syntaxseed@phpc.social avatar

@shovemedia OMG that's it!! Thank you!

syntaxseed, to martialartsmemes
@syntaxseed@phpc.social avatar

The kids, husband, & I have been taking classes at our local rec center for a few years. Our dojo is part of Goju‐Ryu Canada. The kids have their first belt levels but husband & I have been doing it casually & haven't tested. Well we decided to go for it & will be taking the test next month. 😬

It's tough because we are shown the katas a couple times in class then are expected to practice at home without any reference. So of course I went hunting on Youtube...

syntaxseed,
@syntaxseed@phpc.social avatar

And it turns out that there are variations on the katas despite the name being the same. So it took concerted hunting to find videos that <kind of> match the the way our dojo does it. Then I've been transcribing the steps into text. 😵‍💫 It's hard to know if I'm getting it right.... but I turned my efforts into a blog post in case any other local people are looking for the same resources.

Anyway.. I've been memorizing the numbers 1-10 in and practising. Totally nervous! 😁

syntaxseed, to Marriage
@syntaxseed@phpc.social avatar

Doing the "recycle walk of shame" to bring our recycling across the street, because SOMEONE'S husband forgot recycle day. 😑

blog, to linux
@blog@shkspr.mobi avatar

Fixing broken suspend on Pop_OS
https://shkspr.mobi/blog/2024/04/fixing-broken-suspend-on-pop_os/

My Linux laptop used to suspend perfectly. I'd close the lid and it would go to sleep. Open it up, it would spring to life - presenting me with a password screen. But, some time in the last few months, it has stopped doing that.

If I close the lid, it keeps running. This is unhelpful.

If I manually run the suspend command - systemctl suspend - the laptop blanks the screen then immediately turns it back on at the lock screen. It doesn't suspend.

I know that suspend physically works - becasue running any of these other command does properly suspend the machine. But powering it back up goes straight to the desktop - no lock screen!

  • sudo /lib/systemd/systemd-sleep suspend
  • sudo echo "mem" > /sys/power/state
  • sudo acpitool -s

The Fix

I found what was causing suspend to fail by running:

  • sudo systemd-analyze verify systemd-suspend.service

That spat out any errors in the suspend service. Highlighted in red was:

systemd-suspend.service: Failed to create systemd-suspend.service/start: Unit nvidia-resume.service is masked.

That was odd, because I don't have an Nvidia graphics card.

Looking in the relevant directory:

cd /etc/systemd/system/systemd-suspend.service.requires

I found:

nvidia-resume.service -> /lib/systemd/system/nvidia-resume.servicenvidia-suspend.service -> /lib/systemd/system/nvidia-suspend.service

I deleted the nvidia-resume.service and nvidia-suspend.service files.

For good measure, I also checked what Nvidia stuff I had installed:

  • apt list --installed | grep -i nvidia

I used sudo apt purge to remove the remnants of any Nvidia stuff. Probably installed by mistake.

After that, suspend worked fine.

What "Fixes" Didn't Work

I went down a bit of a rabbit hole, following lots of suggestions from various people on the Internet. None of these helped me - but they may be useful pointers to you.

I tried disabling everything in . I couldn't get PXSX to be disabled. But even with everything else off, the suspend didn't work.

Killing Bluetooth with didn't work. Nor did disabling WiFi.

I have an updated Kernel 6.8.0. I'm not sure of the ramifications of swapping to an older one.

Running https://github.com/pop-os/pop/issues/1368 and then rebooting didn't make a difference.

Switching from Wayland to X11 didn't fix it. Nor did unplugging the laptop from power. No external peripherals or screens were connected.

The whole system - including Flatpaks and Snaps - was updated.

This shell script works. But there's no way to tie it in to having the power button pressed or the lid closed.

https://shkspr.mobi/blog/2024/04/fixing-broken-suspend-on-pop_os/

syntaxseed,
@syntaxseed@phpc.social avatar

@blog I had a similar problem last week on Ubuntu. It was an incomplete Snap Store update that was waking my PC up 30s after suspend.

syntaxseed, to random
@syntaxseed@phpc.social avatar

Does anyone here on phpc.social know how to look up our numeric user id for use with shields.io?

https://shields.io/badges/mastodon-follow

None of the suggested strategies is working. @phpc

syntaxseed,
@syntaxseed@phpc.social avatar

@phpc If I use the API to get my numeric account id, shields.io gives me a badge for a user on mastodon.social.

syntaxseed,
@syntaxseed@phpc.social avatar

@ramsey @phpc Nice catch!

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