The WordPress users admin screen showing the blurring of all personal data.

Handy CSS for WP Presentation Privacy

Even in my WordPress development environment I have some real names and emails. That happens. Sites get imported. Users get made. That can create hassles if I want to create a tutorial video or do a live presentation without showing any names or emails. At best, I’m doing post-editing to blur out sections of the video which is a pain. At worst, I’m creating a new development environment and then having to fill it with fake users. Instead, I came up with an easy way to deal with it via Style Bot. The following bit of CSS takes care of the blurring of content in the WordPress Multisite admin users view. It’s pretty consistent across WordPress but you might need to tweak it a bit for other layouts. In any case, it’s an easy thing to customize and turn off/on as needed. It’s possible you’d need to throw a few more bits of CSS on there to make it specific to the admin view but I leave that exercise to my mythological reader.


Weekly Web Harvest for 2022-09-18

ocrmypdf/OCRmyPDF: OCRmyPDF adds an OCR text layer to scanned PDF files, allowing them to be searched OCRmyPDF adds an OCR text layer to scanned PDF files, allowing them to be searched or copy-pasted. Michael Tsai – Blog – Terminal and Full Disk Access What you may not realize is that if you grant Full Disk Access to Terminal, you thereby provide Full Disk Access to every unsandboxed app on your Mac too! And how can this be? The reason is that unsandboxed apps can open executable shell scripts in Terminal, and those scripts will execute with the permissions not of the opening app but rather with the permissions of Terminal, i.e. Full Disk Access. Re-visiting How we Work at Reclaim | bavatuesdays If nothing else, I learned a couple of things through writing this long, wandering post: 1) integrating various technologies is crucial to make Reclaim Hosting work, and it reinforces why showing students how the web actually works through linking and integrating is an essential literacy in the 21st century; 2) how dependent we are on various softwares and how that reinforces the value of open source as the pricing for many of the proprietary applications continues to go through the roof—making open source alternatives not only interesting but almost essential. Owen Pellegrin on Twitter: “@IanColdwater “We hope to […]


WordPress Data Attribute Pattern

Recently, I’ve had to push things back and forth between PHP and javascript but it seemed simpler at the time to use data attributes rather than doing it purely in javascript. It’s likely that I am wrong and stupid and I should have done it all in javascript but I’ll document it anyway. I never know when I’ll want to repeat things that are bad ideas. For this example, we’ll populate a Bootstrap Modal via javascript with the content of a particular post. PHP Portion The following code gets a custom post type and loops through the results, building a carousel of options. The portion that we’ll pay extra attention to is htmlspecialchars(wpautop(get_the_content()),ENT_QUOTES);. I crammed it all together which is a crummy way to do things but I’m tired and it’s early Saturday morning and I’m writing a blog post. Let’s back out the pieces, starting on the inside. get_the_content is just how we get WP’s post content. wpautop makes sure we get the line breaks as paragraph tags. htmlspecialchars makes sure that any special characters as returned as HTML so it won’t break our HTML when we echo it out in the data attribute data-bs-content='{$content}’. Javascript Portion Now we’ve got an HTML button that looks something like this. We can modify the standard Bootstrap varying modal content a bit […]


Weekly Web Harvest for 2022-09-11

2022 Russian businessmen mystery deaths – Wikipedia Rethinking Star Ratings For Readers — Smashing Magazine Imagine if we thought half this hard about A-F grading. Popular school messaging app hacked to send explicit image to parents “In the meantime, if you need to speak with your student’s teacher please send them an email,” Krisztina Szucs – Data Visualization Designer Portfolio I need to spend more time parsing these but I like the concept quite a bit. divamgupta/diffusionbee-stable-diffusion-ui: Diffusion Bee is the easiest way to run Stable Diffusion locally on your M1 Mac. Comes with a one-click installer. No dependencies or technical knowledge needed. Diffusion Bee is the easiest way to run Stable Diffusion locally on your M1 Mac. Comes with a one-click installer. No dependencies or technical knowledge needed. Dries Depoorter – artist and speaker working with technology ? A number of interesting projects. The Follower – Dries Depoorter A project that goes from an instagram photo to use AI to search open web cams to find footage of the person taking the photo. ‘He’s Got No Experience’: Spotsylvania Parents Raise Questions on Superintendent Candidate – NBC4 Washington “This individual is very qualified in a lot of things,” he said.   “I find that the share of out-of-state students has risen by an average of 55 percent since 2002 and that […]


New Gravity Form at the same ID

I’m doing a lot of work on the Parallel Practice site. We made some really significant changes to the form. Naturally, I did that on my development site. I had a vague premonition about getting those changes over to production but figured there’d be some way.1 Many things I did rely on the Gravity Form ID being 1. It impacts how I name certain CSS classes. It determines how I target fields via javascript, and how things get processed in PHP. I could definitely search and replace it throughout my code but I felt like that was begging for lots of minor issues that would be a real hassle to figure out. I could also hand change the form on the production site. That also felt like a real pain with plenty of opportunities to mess up stuff. After looking around a bit and not finding any good advice, I decided I’d just try editing the database directly. There are two tables to look at wp_gf_form and wp_gf_form_meta. You may have a prefix other than wp if you set up something custom. wp_gf_form just has the basic title and ID. I didn’t need to change anything here but it’s nice to take a look at the data. Now I open my production database and development database so I can compare […]


Weekly Web Harvest for 2022-08-28

Tom Gara on Twitter: “Google Duo is being merged into Google Meet, formerly known as Hangouts Meet, which is not to be confused with Google Chat, which is a separate app previously known as Hangouts Chat, which replaced Google Talk, Google+ Messenger, and this makes me feel a bit better about problems in general Adstringosaccus bediae | Alternating list counter-increment: list-item; content: counter(list-item); Procteario (@Procteario) / Twitter Academic surveillance software makes me cry – retweeting evidence of emotional harm. Every day, more harm. Listen to students. Matthew Cole on Twitter: “Someone just sent a phishing scam e-mail to every faculty member at Harvard and Henry Louis Gates replied all like “why did I get this” and now the whole faculty is replying all like “DONT OPEN IT” ? ?” / Twitter Sydney Battle on Twitter: “my college has been using photos of me and my friend for like 8yrs now. they even put a pic of my face on a table/foot rest. we have yet to see a cent and they don’t even have the nerve to use flattering pics!! we’re in hell The Up-Goer Five Text Editor CAN YOU EXPLAIN A HARD IDEA USING ONLY THE TEN HUNDRED MOST USED WORDS? IT’S NOT VERY EASY. TYPE IN THE BOX TO TRY IT OUT.