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

iamdtms, to linuxmint
@iamdtms@mas.to avatar

If I would not have DX11 & DX12 games, I would only use #linuxmint desktop on my PC, and left Windows 11 behind. Approximately Steam library one fifth runs on #linux as well. Soon it will be better n better as having alternates: Vulkan, OpenGL. This is the only disadvantage remains for me. Every app has alternate or web PWA or whatever solution.

cc: @gamingonlinux

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@75watt @iamdtms @gamingonlinux yeah with proton most games run. Only ones that have trouble are online games with invasive anti-cheat, and they are actively working on solving that issue.

noellemitchell, to DuckDuckGo
@noellemitchell@mstdn.social avatar

#DuckDuckGo is working again! :party: :blobhappy:

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@noellemitchell been using DDG for a few years. It's been pretty great!

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

#Art #Creativity #Tech #iPad #LG

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.

#PHP

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 #WordPress 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!

#PHP #WebDev

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

deleted_by_author

  • Loading...
  • 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.

    #Americans #data #books #reading #USA #bookstodon #America

    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 #PHP 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.

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