@awoodsnet@phpc.social
@awoodsnet@phpc.social avatar

awoodsnet

@awoodsnet@phpc.social

First of his name, coder of #PHP applications 🐘 , guitar player 🎸 , rocker of karaoke 🎤, loves an irish accent ☘️
Fan of #StarTrek #Marvel and #Yankees

#vim #bash #guitar #php #drupal #symfony

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

TechConnectify, (edited ) to random

NOTE TO LITERALLY THE ENTIRE INTERNET:

No thought is ever complete. There will always be holes to fill!

RESIST THE URGE TO FILL THOSE HOLES

If someone has said something which you largely agree with, especially if what they said aligns with your understanding of and goals towards an issue, then the LAST thing they need from you is someone playing devil's advocate. Nitpicking is annoying at best and, in a world where people are looking to drive wedges between allies, dangerous at worst.

1/2

awoodsnet,
@awoodsnet@phpc.social avatar

@TechConnectify Totally agree! The devil doesn’t need any more advocates

awoodsnet, to random
@awoodsnet@phpc.social avatar

The quoted article gave me an idea: What if browsers could send HTTP errors to servers. The first one would be “ You have violated the client data allowance of 1MB for this page: your page weight = 2.5MB”

This would be HTTP Status 601. All client policy errors would be the 600-699.
https://floss.social/@IzzyOnDroid/112125251286669070

awoodsnet,
@awoodsnet@phpc.social avatar

@ramsey that’s part of the problem i think with the current model. There’s no way for the client to give feedback to the server. This 600 series might not affect the current or subsequent requests. But I’d like for this to write a message to the server error logs, so application development can be updated. “the idea is that “what gets measured, gets managed”.

preinheimer, to random
@preinheimer@phpc.social avatar

I don't know if I've heard of "Conventional Comments" before, but they seem really handy.

It's some basic prefixes when commenting on pull requests that help everyone understand what's going on.

https://conventionalcomments.org/#labels

awoodsnet,
@awoodsnet@phpc.social avatar

@preinheimer A few years ago, someone created Conventional Commits for improving version control commit messages. They were inspired by that, which they acknowledge in the Prior Art section

https://www.conventionalcommits.org/en/v1.0.0/

bertrand, to php

Hey Mastodon, what's a free hosting plan for a server-side Web app + DB you'd recommend? Should I pursue with good old and or is there something more modern? I have a small doodling idea for this three days week-end and maybe I should also learn a new language?

awoodsnet,
@awoodsnet@phpc.social avatar

@bertrand @mwop You really should take some time to learn modern PHP. There are so many great features - even without the OOP parts. If you did learn OOP in PhP, you’d be able to use frameworks like Laravel, Laminas, and Symfony.

derickr, to random
@derickr@phpc.social avatar

Being jealous of all y'all north Americans having an eclipse to watch today.

Best recommendation I can give: don't bother to try to photograph it. They'll be shit, and you'll be missing a spectacular event. Live the experience and marvel at professional's photos later.

awoodsnet,
@awoodsnet@phpc.social avatar

@grmpyprogrammer @derickr @malware According to the TV show “Heroes”, people get superhuman abilities when an eclipse happens. Here’s hoping we get one 😂

film_girl, to random
@film_girl@mastodon.social avatar

Trying to celebrate 404 day but I keep getting redirected.

awoodsnet,
@awoodsnet@phpc.social avatar

@film_girl day not found 😂

EricIndiana, to animals
@EricIndiana@mastodon.social avatar
awoodsnet,
@awoodsnet@phpc.social avatar

@EricIndiana Of course not — that would be silly. They’re your backup singers “The home cats” (The Stray Cats is already taken) 😂

atomicpoet, to random
@atomicpoet@atomicpoet.org avatar

It’s been months and months of Google thinking I’m a lesbian. I keep getting served ads for lesbian stuff: weddings, dating sites, cruise ship vacations, swag, so on and so forth.

I’ve tried changing this by searching and visiting manly sites. You know, UFC and moustache wax. That sort of thing.

But for some reason, this just confirms to Google that I’m even more of a lesbian than before.

awoodsnet,
@awoodsnet@phpc.social avatar

@atomicpoet maybe you were hacked by a lesbian, and she’s just living her best life as you on the internet 😂

brad_frost, to random
@brad_frost@mastodon.social avatar

What musician took a while to grow on you?

awoodsnet,
@awoodsnet@phpc.social avatar

@brad_frost Nirvana. I didn’t really listen to them until after cobain died. It was their Unplugged album that changed my perspective on their music.

heiglandreas, to random
@heiglandreas@phpc.social avatar

When you learn that a band you missed three years ago in Montreal (my flight left an hour before they hit the stage... and I learned it literally the day before) is now playing in Brussels.

On your birthday....

awoodsnet,
@awoodsnet@phpc.social avatar

@heiglandreas Last year i was excited for a band I like ( “The Midnight” — they’re from Los Angeles), came to NYC. I missed the show by ONE DAY! This was due solely to my own stupidity! I put the wrong date on my Calendar event.

So, on the bright side, at least it wasn’t your fault, and just an unfortunate circumstance 😄

fabian, (edited ) to programming
@fabian@floss.social avatar

For all you fancy command line prompt-havers. Newline or no newline at the end of the prompt?

So, this:

you@host ~/f/bar git:main [*?]␤  
> ▁  

Or this:

user@host ~/f/bar git:main [*?] > ▁  

#programming #terminal #softwareDevelopment #webdev #bash #fish #zsh #powershell

awoodsnet,
@awoodsnet@phpc.social avatar

@fabian There shouldn’t be a newline. The should be a single space at the end of the promplt though, so that what user types isnt up against the prompt

deadsuperhero, to php
@deadsuperhero@social.wedistribute.org avatar

So uh, question!

I’m looking at this dude’s code for the plugin I’m using, and it looks like it doesn’t use an actual template to render things, but instead uses some kind of concatenation assignment to build an interface one div at a time?

https://github.com/jeffreyvr/easy-liveblogs/blob/43b4c25e7a13f70f8158d221d4beb2ec391eb656/includes/class-elb-liveblog.php#L121

Like, I’m not super great at PHP beyond just hacking things together…but, is this a valid way to do things? Is there a better way to just call template pieces from somewhere?

awoodsnet,
@awoodsnet@phpc.social avatar

@deadsuperhero String concatenation is fine for one or two lines. But that example would be much more readable using heredoc or nowdoc syntax. https://www.php.net/manual/en/language.types.string.php

if you have a code fragment that was needed in multiple places,, you could wrap it in a function. Then you could add type hints for the arguments, and return the heredoc as a string

awoodsnet, to Podcast
@awoodsnet@phpc.social avatar

we need a podcast where the weekly PHP news is read. Laravel News is Laravel-specific and a little too wordy. Something between the styles of “This Week in Linux” and “Podnews Daily”.

awoodsnet,
@awoodsnet@phpc.social avatar

@Crell Sure. but those things require reading. I want to hear it. I want to listen to the news while i’m working.

lwpembleton, to programming
@lwpembleton@genomic.social avatar

What is your preferred style for naming directories and files, hyphens or underscores to separate words? I notice a lot of people use hyphens and one argument is it is easier to read, however underscores offers the benefit of a double click highlights the whole file name or directory name.

awoodsnet,
@awoodsnet@phpc.social avatar

@lwpembleton hypens are better. They’re easier to type. Search engines like them better because they separate words. Also, i think your double click argument is actually a point fot hyphens, because you can get just part of the file name, then drag to get adjacent parts. A tactic i use is double hyphens to separate sections in a filename or git branch. e.g. issue-123--title-of-my-ticket If this used underscores and pasted into a markdown file, parts will be italicized

awoodsnet, to music
@awoodsnet@phpc.social avatar

Some mad genius on the internet combined two songs that couldn’t be more different, and created this masterpiece!

https://m.youtube.com/watch?v=3MRx4LpYbQ4

awoodsnet, to random
@awoodsnet@phpc.social avatar

Question: Does Jen A.I. run on Jenergy? 😛

awoodsnet, to random
@awoodsnet@phpc.social avatar

Happy St. Patrick’s Day ☘️

Whether you are Irish, or love the Irish, may the luck of the Irish be on your side

Slaintè ☘️

awoodsnet, to random
@awoodsnet@phpc.social avatar

I’ve seen this message on several Mastodon profiles, which are using bird dot makeup:

“This account is a replica from Twitter. Its author can't see your replies. If you find this service useful, please consider supporting us via our Patreon.”

it has zero value if they can’t see our reply. You just took the social out of social media! LOL! Congrats! Now fuck off with that shit

skinnylatte, to Help
@skinnylatte@hachyderm.io avatar

if i have a folder of .md text files that all have a date in this format: date: "2003-01-26T06:24:10Z"

in the front matter

but they are on different lines

and i want to delete the quotes from all of the files at once

what's my best approach?

(i don't know how to write regex properly)

i use sublime text, and vim, if it helps

awoodsnet,
@awoodsnet@phpc.social avatar

@skinnylatte if regex isn’t your thing you could
grep to get the filenames and line numbers of your quoted value. Use a bash for loop to iterate over each match

In the loop use cut to get the filename and line number. Open vim to the eaxct line e.g. vim +16 example.md
Put the cursor between the quotes, use ds” in normal mode to delete surrounding quotes. Save and close the file. The loop will open the next file very quickly

heiglandreas, to random
@heiglandreas@phpc.social avatar

Why do US-americans need a special day for pie?

awoodsnet,
@awoodsnet@phpc.social avatar

@heiglandreas It’s not just for US Americans. It’s also available to any country that uses year-first dates. 2024-03-14. You just don’t account for the year since Pi(e) day is an annual event 😄

A better question is: Why don’t you want a special day to eat pie?

ramsey, to random
@ramsey@phpc.social avatar

Today, we said goodbye to our good friend and the best dog we’ve ever had, Charlie Brown. He fought a long battle with cancer, and finally, it was too much pain for him to continue.

Now, he’s gone. No one else in the world will know the love and loyalty Charlie gave us. That was for us alone. We will never forget him.

awoodsnet,
@awoodsnet@phpc.social avatar

@ramsey So sorry to hear about the loss of your best dog. His pain is over now. Remember all the love he shared, and he’ll always be a part of you

awoodsnet, to linux
@awoodsnet@phpc.social avatar

one thing i don’t like about the Linux UI are the fonts. The default fonts don’t look as nice as MacOS. Linux fonts have an “unfinished” look about them - like someone said “publish them for now. we’ll fix the fonts on the next release”

awoodsnet,
@awoodsnet@phpc.social avatar

@kboyd maybe? i don’t know why. it’s an intangible aspect - like your spidey sense tingling.

awoodsnet, to random
@awoodsnet@phpc.social avatar

Whoa! That was weird! Just listened the latest episode of @noplanstomerge (ep “(AI) You’re Telling Me a Shrimp Fried This Rice” )
The whole episode wa AI generated. Fortunately it was only 3 minutes long. Apparently, The AI thinks @calebporzio is a sales guy judging by its “Caleb voice” and that @coulb is a intern judging by its “Daniel voice”. A pretty soulless listen. The world needs the real Caleb and Daniel.

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