A coworker wanted to remove trailing commas from JSON-like input so it would be valid for parsing. Despite the bad reputation regular expressions have, they offer a quick solution:


Replace with:

JavaScript example:
input.replace(/,([^,]*[}\]])/g, "$1");

To confirm you are registered to vote: vote.org/am-i-registered-to-vo

Use the direct state-by-state links below the top section there to avoid providing an email address.

Washington state voters can go here: sos.wa.gov/elections/myvote/

All it requires is name and birthday.


Me: No dogs on the sofa.
Everyone else in the house: Dogs on the sofa!
Dog, on the sofa: Come at me, bro...

I caught my yearly leaf this morning. Then I caught two friends for it. The pressure is off!

... and that concludes my thread of Arizona landscape photos! I hope you enjoyed them.

Show thread

Daughter: I'm not ready for Monday.
Me: You know who else hates Mondays?
Daughter: No...
Wife: Garfield ✅
Other daughter: Everyone 😆

Blogged: Looking for greener pastures [A Practical Comparison of Mastodon and Micro.blog]: dlaa.me/blog/post/twitteralter

@Macdrifter Was having trouble subscribing to your RSS feed. Page metadata and link at the very bottom of macdrifter.com/ both seem to point to macdrifter.com/ which is not a valid feed. What I found that works is from the About page: macdrifter.com/feed/all.atom.x

[Sorry, last attempt to reach you; seems you don’t use Twitter anymore.]

@nolan I was in a meeting with Maggie on Friday and she mentioned that you maybe made a change recently?

Show older

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!