@bhhaskin@bitsofsimplicity.com
@bhhaskin@bitsofsimplicity.com avatar

bhhaskin

@bhhaskin@bitsofsimplicity.com

Bryan Haskin: Senior Software Engineer | Sailor | Linux Enthusiast

Carson City, Nevada | bitsofsimplicity.com

"Empowering through open source, DIY, and the pursuit of the open sea. Sailing enthusiast dreaming of global adventures."

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

CultureDesk, to art
@CultureDesk@flipboard.social avatar

Apple has come under fire because its iPad Pro “Crush” ad depicts the destruction of items used by artists. Now folks are saying it's unoriginal too. X user Andy Allen pointed out that it bears a striking resemblance to a 2008 commercial for LG's Renoir KC910. Here's more from @9to5Mac.

https://flip.it/kjiLsF

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@CultureDesk @9to5Mac meh the ad wasn't that bad. But pretty funny that it's been done before. Apple is starting to lose their edge in marketing and has been for a while.

itsjoshbruce, to php
@itsjoshbruce@phpc.social avatar

Learning how to do a thing.

Pretty sure it’s possible; never tried and haven’t been pulled to do so.

PHP creates sessions. Using cookies, it creates a cookie named: PHPSESSID (or similar).

I’d like to customize this; clean and simple.

Goal: I’d like to not have the PHPSESSID cookie. Not finding it.

Thinking:

  1. Disable session cookie
  2. Implement SessionHandlerInterface
  3. Set mine as the save handler
  4. Pass my session cookie in response header

Feel like I’m missing something.

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@derickr @itsjoshbruce yeah the cookie itself is not the session data, but just an ID that points at the session data.

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@itsjoshbruce @derickr keep in mind that some hosts will block custom cookies. (https://docs.pantheon.io/cookies#why-isnt-my-cookie-being-savedretrieved)

This is due to caching configurations.

syntaxseed, to steam
@syntaxseed@phpc.social avatar

Jumped through the hoops to get family sharing set up so I can share games with my husband (and someday the kids). Looking like I will soon be seeing if I can get Death Stranding working on . 🤔😁

https://dcanalysts.net/steam-families-beta-is-perfect-for-your-gaming-family/

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@syntaxseed it works on the steam deck!

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@syntaxseed a great resource is protondb. It's not just for the steam deck: https://www.protondb.com/app/1850570

elaterite, to random
@elaterite@fosstodon.org avatar

Welp, guess I should get out of bed. I have to walk down to the auto parts store to get a rear wheel bearing & hub assembly for my car. Shouldn't take more than a few minutes to install. Removing the old one took several hours though. I wish manufacturers would put a little grease on mating surfaces where rust occurs over time. And stupid auto parts stores these days have far too many choices of parts. I don't know which is good & which isn't. I'd go to the dealership but it's too far to walk.

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@elaterite ahh that sucks! Have a safe walk.

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@elaterite that is very true! Been there && done that haha

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@elaterite then of course the rescue truck got stuck xD

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@elaterite ah sorry it's also know as the Carson sink: https://en.m.wikipedia.org/wiki/Carson_Sink

noellemitchell, to mastodon
@noellemitchell@mstdn.social avatar

My site just shot up to over 800 views from 422 :blob_dizzy_face: All I did was share a link on 😅

https://noellesbookshelf.neocities.org

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@noellemitchell in this instance it is because different mastodon instances are fetching the page description for the link and likely not real people visiting

baethyn, to webdev

I have an ask for my technologically adept fedi friends. I am trying to set up a local development environment on my computer. the catch is that I'm and sort of a newbie at this. I got all excited when I heard about XAMPP only to find out it is a giant pile of shit for accessibility. I even tried WAMP only for it to tel me I needed some other things, which I didn't quite understand and haven't had a chance to investigate. I am getting frustrated and would like some advice. Do I really need the kind of local environment that wamp would provide? I will probably need sql and php, but if that's all I need how do I set this up? I've never worked with php before and only recently taken a tutorial on sql. Any help would be great.

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@baethyn XAMPP is wayyy old school. Are you looking for a genetic php environment? Or are you looking for something in particular?

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@baethyn what OS are you using?

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@baethyn well if you have used docker or the Linux subsystem you could go that route. I think php dev is a lot easier in a Linux or Mac system.

You could check out Laravel and Sail.

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!

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@syntaxseed nice! I would imagine pdf generation would be tricky as a plug as you would need to make sure whatever external lib is installed and working.

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@syntaxseed oooo what library? Last time I did pdf generation is was a real nightmare.

elaterite, to email
@elaterite@fosstodon.org avatar

I have a question about spam. I have been de-Goolefing my life as much as possible. I've shifted my email from gmail to my personal domain email hosted at HostGator. My domain registrar is Hover. I'm using Thunderbird, in plain text mode, on a Linux box. An email, containing no links, sent to a Yahoo address ended up marked as spam. Any thoughts on why? I've never used my domain to send emails, therefore, I assume, it can't be listed in any spam filters as a spamming domain, right?

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@elaterite I wouldn't run it on host gator. Your likely on a ton of black/block lists.

I personally use proton mail. And if you like Thunderbird you can use the proton bridge.

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@elaterite to expand upon further. Most cloud or cheap hosting is blocked, because they have been abused for years as cheap and easy spam sources. It's an IP/subnet block so you can't easily get around it

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@elaterite yep! It's all about the sending server IP address. You can check mxtool box.

https://mxtoolbox.com/

syntaxseed, to Bash
@syntaxseed@phpc.social avatar

Wrote a script to use WP-CLI to dump the database, then to sync the files to Dropbox.

It pings HealthChecks.io to monitor progress & success/fail.

That was finally working well. 👍

Then calling it from a revealed the need to use full paths to commands like & WP-CLI. Took a bit to find (force) the logging of the cron to see what was wrong.

Still unclear why some commands (curl, etc) work fine.

Anyway... this is coming along!

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@syntaxseed curl and what not are in system bin paths where the wp-cli is likely just loaded locally/for that bash profile.

noellemitchell, to books
@noellemitchell@mstdn.social avatar

54% of Americans read a book this year

"Just over half of all Americans said they read at least one book in 2023. Most of them read just a few books this year: 82% of Americans read 10 or fewer books."

I read about 6-7 books in 2023, which according to a chart in the article means I read more than 72% of Americans. That's really sad.

https://today.yougov.com/entertainment/articles/48239-54-percent-of-americans-read-a-book-this-year

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@noellemitchell I should read more, but I listen to a ton of audiobooks!

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@noellemitchell sweeeeet! Then it's probably 20+/yr

thomastospace, to php
@thomastospace@phpc.social avatar

I need some feedback on a test implementation of jwt token auth:

JWT tokens are valid forever, however we would like to invalidate all tokens when a user changes their password.

We've solved this by saving a random value at the user, and storing this in the token. Whenever the token is used, we check if this is the same. When a password gets changed, we also change this value, which then makes all old tokens invalid because they don't contain this value.

How does this sound to you?

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@thomastospace you really shouldn't keep a jwt around forever. You should have a rolling validation.

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@thomastospace you are checking to make sure the token is valid when talking to the backend right? You reissue a new token when you validate.

bhhaskin, to sysadmin
@bhhaskin@bitsofsimplicity.com avatar

Anyone know how to migrate to a different domain with Prosody? I would like to migrate without loosing my history or files, but its looking like that might not be possible.

bhhaskin, to random
@bhhaskin@bitsofsimplicity.com avatar

I've found that I spend way to much unproductive time on my phone. It's time to stop consuming content on my phone and use it strictly as a coms device. If I want to browse the web or watch something I have a laptop & desktop for that. I am enabling App timers and use focus mode. Hopefully that should help turn the majority of that unproductive time back into something constructive.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • normalnudes
  • tsrsr
  • DreamBathrooms
  • Durango
  • magazineikmin
  • mdbf
  • Youngstown
  • vwfavf
  • slotface
  • ethstaker
  • rosin
  • thenastyranch
  • kavyap
  • PowerRangers
  • Leos
  • ngwrru68w68
  • osvaldo12
  • cubers
  • everett
  • GTA5RPClips
  • cisconetworking
  • hgfsjryuu7
  • InstantRegret
  • tacticalgear
  • tester
  • modclub
  • khanakhh
  • anitta
  • All magazines