@willpower232@phpc.social
@willpower232@phpc.social avatar

willpower232

@willpower232@phpc.social

I am a minimalist software tinkerer, making websites and messing around with servers. A big fan of owning your own data and hoarding files.

Pronoun indifferent (mine; you do you).

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

preinheimer, to random
@preinheimer@phpc.social avatar

Has anyone developed a good system for managing their web usage and hobbies?

I've got this e-ink screen I'm trying to do something with. When I'm working on it I end up with like 10 different tabs open, between docs pages, open source projects, spec sheets, etc. Then I go back to work on Monday and close them all.

It's not that I need to bookmark the relevant sites, it's that I wish I also had some contained browser history just for working on this.

willpower232,
@willpower232@phpc.social avatar

@preinheimer depends how many forks of Firefox you can find and run simultaneously

mwop, to random
@mwop@phpc.social avatar

Good god, it's been 12 years. Can we stop spreading the fractal of bad design article already?

Do better, @php_discussions - not everything needs to be shared again and again, particularly articles like this that haven't aged well.

https://mastodon.social/

willpower232,
@willpower232@phpc.social avatar

@Crell @mwop @php_discussions yeah it's had a few dodgy posts recently, if it promoted the Reddit thread it found ahead of the article linked by the thread it would make more sense 🙃

sarah, to random
@sarah@phpc.social avatar

TIL backticks (`) in a git commit message cause shell to run the command. That was...interesting.

willpower232,
@willpower232@phpc.social avatar

@sarah someone managed to put a single quote in a branch name the other day, I had to put down the terminal for a few hours 🙃

alessandrolai, to random Italian
@alessandrolai@phpc.social avatar

@rob this is the Docker snippet that I was talking you about to avoid needed the wait-for script. You define the healthcheck on the MySQL service in Docker Compose:

mysql:
image: mysql:8
healthcheck:
test: "netstat -tulpn | grep LISTEN | grep -q 3306"
interval: 1s
start_period: 60s

then you can call:

docker compose up --wait mysql

or

docker compose wait mysql

Those commands are recent additions though!

willpower232,
@willpower232@phpc.social avatar

@alessandrolai @rob oooh that's more fun than "docker compose up -d && sleep 10 && docker compose..."

sarah, to php
@sarah@phpc.social avatar

What do you use for offsite backups for applications and databases?

willpower232,
@willpower232@phpc.social avatar

@mwop oh that's clever, I keep forgetting about fuse, are you using this one? https://github.com/s3fs-fuse/s3fs-fuse?tab=readme-ov-file

Crell, to Youtube
@Crell@phpc.social avatar

How exactly does the #YouTube app manage to get worse with every single update? The latest, when casting to Chromecast I cannot setup a queue selectively. It just plays my whole watch later queue at once, as though it were not casting.

Is there some 3rd party YouTube client or something? Seriously, as someone trained in usability and 25 years of software dev experience, I am personally and professionally offended by how much they keep breaking this damned app.

willpower232,
@willpower232@phpc.social avatar

@Crell I keep falling into this trap, I have to connect to the TV first and then start adding videos otherwise it just takes the playlist that is "playing" 🙃

willpower232,
@willpower232@phpc.social avatar

@Crell sacre bleu, the one thing it did better than anything else as well ☹️

valorin, to random
@valorin@phpc.social avatar

Getting closer to migrating Securing Laravel to Ghost, but now there is a new issue: Substack manage the Stripe account, so I can't link Ghost to import subscribers.

Hopefully there is an easy fix. 🤞

willpower232,
@willpower232@phpc.social avatar

@valorin I believe @molly0xfff recently did a similar migration and wrote about it so hopefully a few clues in here https://www.citationneeded.news/substack-to-self-hosted-ghost/

davidbisset, to webdev
@davidbisset@phpc.social avatar

Hey and community, what's your main setup?

willpower232,
@willpower232@phpc.social avatar

@davidbisset living the number 8 life here, works even better with 16:10 (or should it be 10:16...)

hightechredneck, to random
@hightechredneck@phpc.social avatar

When I first came across Laravel ... I think it was around version 5.3 or 5.4, I absolutely loved it. I even created a CMS w/ the framework [at work].

Now I'm feeling more apathetic. I don't even read the Laravel-centric newsletters that I'm subscribed to anymore. I don't know if it's because I just want to use html, css, & jQuery instead of all the front end stuff that Laravel now seems to shove in your face OR if my current job has just completely broken me.

willpower232,
@willpower232@phpc.social avatar

@hightechredneck big agree, yay for quickly doing anything backend, boo for unnecessarily complicated frontend

m1ke, to random
@m1ke@phpc.social avatar

PDO is having fun today after migration to mySQL 8. Queries to one single table randomly failing with "integrity constraint violation" for a field that "cannot be null" but the passed in parameter is clearly a non empty string. And the same operation can run a few seconds later and work. Frustrating!

willpower232,
@willpower232@phpc.social avatar

@m1ke is the insert or update happening in a transaction perhaps?

willpower232,
@willpower232@phpc.social avatar

@m1ke it shouldn't but depending on the code it could potentially slow things down so the code evaluates unfortunately for a few microseconds that is hard to debug

willpower232,
@willpower232@phpc.social avatar

@m1ke oh wow thanks for the follow up. I think I have some of those but I'm in aws aurora land so who knows what goes on there

hightechredneck, to random
@hightechredneck@phpc.social avatar

I'm making some changes to an old project. It uses Bundler & Compass to compile the SCSS files. I was getting an error about the "ffi" gem failing to be built.

I found a fix that involved defining PKG_CONFIG_PATH in my .bash_profile file. This fixed the issue in the MacOS Terminal, however when I tried to compile things in the terminal within PhpStorm, it brought the error back.

Does the terminal in PhpStorm not look at the .bash_profile file or am I missing a setting somewhere?

willpower232,
@willpower232@phpc.social avatar

@hightechredneck if I remember correctly, there is a tangled web of bashrc/profile files so I wouldn't be surprised if it was reading them in a weird order or perhaps needed restarting fully. Also zsh is in there too sometimes.

willpower232,
@willpower232@phpc.social avatar

@hightechredneck ah yes, maybe a cheeky symlink so you don't have to keep updating both haha

18+ manchuck, to random
@manchuck@phpc.social avatar

deleted_by_author

  • Loading...
  • willpower232,
    @willpower232@phpc.social avatar

    @manchuck I knew it was familiar!

    thomastospace, to debian
    @thomastospace@phpc.social avatar

    Installed #Debian next to Windows.

    While installing, it said it didn't detect another system. If there was one, select No. Then it asked me to select the drive with the system. Did that, installed.

    I rebooted, still booted into Windows. No dualboot screen. Luckily I coul still boot into Windows.

    I then checked my bios. In boot order, saw a Windows one + one with the drive name. Selected the one with the drive to check.

    Now nothing will start and I can't even get into the bios anymore. Help?

    willpower232,
    @willpower232@phpc.social avatar

    @thomastospace I know from past experience that adding other OSes into windows boot menu is a pain so I install Linux with it being the only drive in the system and then let grub detect windows by running initramfs or whatever the command is so I can let grub be in charge all the time

    andy, to random
    @andy@bell.bz avatar

    S2 E7 was the best episode of The Traitors I’ve ever seen.

    I really wasn’t digging this series, but they smashed that out of the park.

    willpower232,
    @willpower232@phpc.social avatar

    @andy just finished episode 8, what a excellent pair of episodes!

    willpower232,
    @willpower232@phpc.social avatar

    @andy @rusticola hopefully Harry didn't just overplay his hand but we'll see tonight I guess!

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

    Is Symfony Console the way to go for creating custom CLI tools using PHP?

    I think someone pulled something together from Laravel components.

    I'd like to find something excessively lightweight - like CLI is all it does with few or no dependencies.

    Curious about what folks are using.

    I'll probably start with Symfony as I've built what I'm planning once before.

    #PHP #Laravel #Symfony #CLI

    willpower232,
    @willpower232@phpc.social avatar

    @itsjoshbruce it depends how you want to deploy it, I am making phars with plain php and laravel/prompts so I can deploy a small binary-like file internally

    regis, to random
    @regis@phpc.social avatar

    from a completely noob point of view, i really don't understand the appeal of a passkey. and i think it's because i lack knowledge on the matter.

    however, regular passwords with 2FA (not SMS) seem to work great for me. i don't like the idea of being tied to my phone, laptop or whatever else to deal with this topic. perhaps i'm too old.

    willpower232,
    @willpower232@phpc.social avatar

    @regis I like having passwords and yubikeys, I don't like the idea of a yubikey being the sole identifier for the whole thing though

    outofcontrol, (edited ) to sysadmin
    @outofcontrol@phpc.social avatar

    Do you manage your server config files with git ? Why or why not?

    #sysadmin #linux

    willpower232,
    @willpower232@phpc.social avatar

    @outofcontrol future me needs every bit of help they can get so painstaking notes it is!

    bobmagicii, to random
    @bobmagicii@phpc.social avatar

    is there a way to just absolutely disable git storing file permissions at all ever?

    like if i push from a server that hasn't had core.filemode 0 set, i want the remote host to just straight up ignore the permissions because they are wrong and bad. they are always wrong and bad, they are never not wrong and bad.

    just pushed on accident a blanket 777 to all my repos and you know what thats on you for running my code and not knowing your file permissions. and aint gonna be arsed to rebase max it.

    willpower232,
    @willpower232@phpc.social avatar

    @bobmagicii @Flyingmana yes git does it with clone as well, I have a few lines in my bashrc to undo it, absolutely maddening that there isn't a way of turning it off https://gist.github.com/willpower232/dd46da09ced0273fffc523eaf602186f#file-my-bashrc

    itsjoshbruce, to php
    @itsjoshbruce@phpc.social avatar

    GitHub actions CI/CD question.

    Desire: Run custom script to generate static file and add/overwrite that file.

    When (preferable): After merging to main.

    When (acceptable): As part of the PR submission test runs and checks. Meaning the generated file(s) we become part of the PR.

    Use cases: sitemap.xml or RSS.

    Constraints: I use a vanilla PHP site.

    How does one do this? (Search skills are failing me, and I believe I’ve seen it once, but didn’t have time to parse.)

    Cheers

    #PHP #CICD #GitHub

    willpower232,
    @willpower232@phpc.social avatar

    @itsjoshbruce I think the cherry is a bit difficult as you'd have to do a partial clone or something but I did deal with committing things in actions when struggling with Jekyll and GitHub pages https://github.com/willpower232/willpower232.github.io/blob/main/.github/workflows/update-pages.yml

    bobmagicii, to random
    @bobmagicii@phpc.social avatar

    when i do a composer install --no-dev, i should expect to see things like phpunit disappear right? should i be going on a pull request rampage on composer.json's across github or am i off track?

    willpower232,
    @willpower232@phpc.social avatar

    @bobmagicii that sounds right to me!

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