@salcode@phpc.social
@salcode@phpc.social avatar

salcode

@salcode@phpc.social

Web Developer specializing in WordPress, loves Git, works at WebDevStudios. Good at metaphors. He / him.

#git #vim #neovim #WordPress

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

salcode, to wordpress
@salcode@phpc.social avatar

Hey Friends

I'm presenting an "Introduction to Unit Tests" at @WordcampMontclair on Saturday June 1, 2024.

The full schedule is online at https://montclair.wordcamp.org/2024/schedule/

I had a lot of fun at this last year. If you're in the area, I hope you check it out.

salcode, to wordpress
@salcode@phpc.social avatar

If you're going to Montclair (@WordcampMontclair) on Saturday June 1, 2024, join me for an Unofficial WordCamp Breakfast at Park West Diner & Cafe at 1400 US-46, Little Falls, NJ 07424 at 7am.

salcode, to random
@salcode@phpc.social avatar

@docpop I'm interested in the yellow Desert Island Yo but it has been out of stock for some time.

Do you have plans to restock the yellow or did I miss the boat?

salcode, to wordpress
@salcode@phpc.social avatar

I'll be speaking at @WordcampMontclair on June 1, 2024 with an "Introduction to Unit Tests".

I'm looking forward to catching up with old friends and meeting new ones.

The schedule isn't finalized, but you can see a preview of the sessions at https://montclair.wordcamp.org/2024/sessions/

salcode, to RSS
@salcode@phpc.social avatar

Is there an feed for "Cybersecurity Advisories for Cybersecurity and Infrastructure Security Agency" https://www.cisa.gov/ ?

My attempts to add this to my feed reader have failed 🙁

salcode, to wordpress
@salcode@phpc.social avatar

When doing #WordPress development I often find it helpful to run some test code with #WPCLI.

Historically, this involves me relearning how to create a WP CLI command, so I've make these notes to speed me up in the future.

https://salferrarello.com/quick-and-dirty-wp-cli/

salcode, to random
@salcode@phpc.social avatar

My son: I promise Dad, I’ll finish emptying the dishwasher right after school.

Me: No problem, I’ll leave you a reminder.

salcode, to random
@salcode@phpc.social avatar

As a web developer, I often find myself using hard refresh (Cmd + Shift + r on my Mac). This works for Chrome, other Chromium based browsers, and Firefox, however Safari uses a different key combination 🤦‍♂️

Fortunately, my co-worker Amor has a great solution for this - to set an App Shortcut for Safari that uses the same key combination. 🎉

His instructions are at https://itsamoreh.dev/remap-shortcut-for-safari-force-refresh/

salcode, to node
@salcode@phpc.social avatar

If you've got failing npm install (or yarn) commands, you are not alone 🙁

#npm #yarn

https://status.npmjs.org/

salcode, to firefox
@salcode@phpc.social avatar

My switch from Chrome to #Firefox has been painful due to how keyboard tab navigation (Ctrl+Tab) behaved.

Turns out I just needed to uncheck

> Ctrl+Tab cycles through tabs in recently used order

in the General preferences.

salcode, to random
@salcode@phpc.social avatar

I finally setup a #git default remote, so I can stop getting "fatal: matched multiple remote tracking branches" errors (and having to add --track origin in the middle of my command).

The short version is, I ran this command once:

git config --global checkout.defaultRemote origin

The long version with my notes is at https://salferrarello.com/git-matched-multiple-remote-tracking-branches/

salcode, to random
@salcode@phpc.social avatar

@ryandonsullivan Just a heads up, my RSS reader is showing 9 new blog posts from you in the last 2 hours.

It is like Christmas 😀

salcode, to random
@salcode@phpc.social avatar

Based on a conversation I had about what helps me work faster in #git, I wrote this blog post "My Most Valuable Git Aliases are Shell Aliases"

https://salferrarello.com/git-shell-alias/

salcode, to composer
@salcode@phpc.social avatar

I've been using the command line tool #jq a lot lately. One thing I'm enjoying is using it to extract data from composer.json

I made some notes about code I use to find a dependency and copy it to the clipboard when I don't remember the full name.

https://salferrarello.com/find-dependency-in-composer-json-with-jq/

#composer

salcode, to wordpress
@salcode@phpc.social avatar

Hey #WordPress folks, @ryandonsullivan is now here in the Fediverse! 🎉

salcode, to random
@salcode@phpc.social avatar

The "Multiverse" is a really good analogy for #git 😀

https://salferrarello.com/git-merge-multiverse/

salcode, to github
@salcode@phpc.social avatar

Just in case you're getting 500 errors from #GitHub, know you're not the only one. 🙁

(Despite the status page saying, "All Systems Operational")

GitHub status page sayinig, "All Systems Operational"

salcode, to random
@salcode@phpc.social avatar

Sorry my schedule doesn’t allow for me to catch the final day of #WCUS 🙁.

I had a great time - thanks everyone!

salcode, to random
@salcode@phpc.social avatar

While the rest of the WebDevStudios team has #5FTF today, I was lucky enough to be at #WCUS Contributor Day yesterday, where I started chasing a WP CLI bug and ended up opening this WordPress core ticket and creating a patch.

https://core.trac.wordpress.org/ticket/59198

salcode, to wordpress
@salcode@phpc.social avatar

One of the developers I work with, recently started blogging.

Yesterday, the question came up about how to set a default post meta value in #WordPress and he had the answer. 🎉

https://neilsonwebdesign.com/create-wordpress-custom-post-meta-on-post-creation/

salcode, to wordpress
@salcode@phpc.social avatar

If you're still looking for a regular admission ticket to US, the final round of tickets go on sale today, July 25, 2023 at 12pm ET (4pm UTC)

https://us.wordcamp.org/2023/final-round-of-wcus-tickets-release-on-july-25th/

salcode, to random
@salcode@phpc.social avatar

Great pre-WordCamp Montclair breakfast with @MattRyanCo and @paulson and Ryan Clover #WCMontclair

salcode, to random
@salcode@phpc.social avatar

Me: I've seen deer in the backyard before, but this is the first time I've seen horses.

My sons: ???

Me:

salcode, to wordpress
@salcode@phpc.social avatar

I've posted my notes on how the JavaScript, in the Chrome extension I wrote, determines the last modified date of a #WordPress blog post using the WordPress REST API.

Think of it as a preview of one part of my upcoming talk at #WordCamp Montclair on Saturday June 24, 2023.

#WCMontclair

https://salferrarello.com/get-last-modified-value-wordpress-post/

salcode, to wordpress
@salcode@phpc.social avatar

I use a browser extension to format JSON responses nicely when I'm working with the #WordPress REST API but this browser console code snippet is a nice alternative.

await (await fetch(window.location.href)).json()

https://salferrarello.com/pretty-print-json-url/

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