This is my supporting documentation for the #PressEd WordPress conference that I’ll be doing via Twitter on Thursday. The Topic Given I’ve been playing around in WordPress since what feels like the dawn of time, I’ve heard lots of people say lots of things about it. I’ve heard it’s too complex. I’ve heard it’s too easy. I’ve been told it won’t allow you to map/GIS information and that it can’t be used for any number of other things. I’ve been told it won’t do things that you can do in this other CMS or that other LMS. As with most things, these boundaries are mostly imaginary and live more in people’s heads than they do in the software itself. My goal here will be to take you on a tour of what you can do to impact the authoring experience in WordPress. We’ll start by removing complexity from WordPress itself but staying within the typical authoring patterns. We’ll do that in the easiest ways first and then move to more involved interventions. After that, we’ll jump to non-standard authoring patterns and run around seeing where the edges are. Minimalism/Reducing Complexity Screen Options There’s quite a bit of control you have just within the Screen Options settings available to the author. If you can check/uncheck a box these options are available […]
Gobo Sign up for Gobo, link it to your other social media profiles, and you can take control of your feed. Want to read news you aren’t otherwise seeing? Use our “Echo Chamber” filter to see what we call “wider” news. Want a better balance of men and women in your feed? Use our “gender” filter to rebalance it. Want to take a lunch break and just see popular funny videos you friends are sharing? Use our “virality” filter to pick only the most shared content. With Gogo you’re in charge of the algorithmic filters that control what you see on social media. We’ve built a bunch of filters like these already, are building more, and have made it possible for other developers to add filters too. Sign up, try it out, and see if it changes how you think about how social media should work. Lunar Conversations – C82: Works of Nicholas Rougeux Watch neural networks see only what they’ve been trained to see / Boing Boing confirmation bias meets potentials for art This School Has Been Arming Classrooms With 5-Gallon Buckets Of Rocks In The Event Of A School Shooting David Helsel, superintendent of the Blue Mountain School District in Schuylkill County, made the announcement at a state House Education Committee hearing on school safety March 15. “If […]
Candace Jean Andersen on Twitter: “Hey Twitter I’m on a mission: The woman in this photo was an attendee at a 1971 International Conference on Biology of Whales. She is the only woman, & the only one captioned “not identified” in the article I found the p Pretty wild to watch this kind of research play out on Twitter. Temporary Autonomous Zone – Wikipedia It is composed of three sections, “Chaos: The Broadsheets of Ontological Anarchism,” “Communiques of the Association for Ontological Anarchy,” and “The Temporary Autonomous Zone.” –h/t Doug Belshaw MOSQUITO attack allows to exfiltrates data from Air-Gapped computers via leverage connected speakersSecurity Affairs Once again the team demonstrated that separating the computer networks from the Internet is not enough to protect them from attackers. In the past, the same group of researchers demonstrated that it possible to listen to private conversations by reversing headphones connected to a previously infected computer. The MOSQUITO technique establishes a covert ultrasonic transmission between two air-gapped computers using speaker-to-speaker communication. In Britain’s Playgrounds, ‘Bringing in Risk’ to Build Resilience – The New York Times — Ever feel like everything is just a stupid cycle of doom? Educators in Britain, after decades spent in a collective effort to minimize risk, are now, cautiously, getting into the business of providing it. Four years ago, for instance, teachers at […]
If you’re running the H5P plugin in WordPress, you might notice that there’s an advanced settings option when you go to embed it. If you click on that you’ll see an additional script to add to enable dynamic sizing of embedded H5P content. I wanted that but that option doesn’t make much sense in our environment. If you read this blog a lot and have an amazing memory, you’ll know I have a plugin that’s network activated where I put little things that make sense but don’t need their own dedicated plugin. This seemed like one that fits that bill. It’s really simple. It asks if the site is running H5P and if the answer is yes, it enqueues the h5p-resizer.js.
This may be one of those things that everyone knows but it was new to me. I’m also duplicating the information I found in the StackOverflow post because I think it’s good to have information in multiple places where it might be found by other people. Additionally, writing the post makes it easy for me to find later when I forget and the act of writing the post helps get it stuck in my own head. With all of that as the lead up . . . A common way to trigger events in WordPress is the save_post action. It runs any time the post is created, published, or updated. What I found out though was that it also runs when you try to delete the post. That makes sense. It is an update and it’s no big deal if the function is relatively small and/or if you’re not trying to get rid of a ton of posts. My current experiment had both a fairly involved function and a couple hundred posts I wanted deleted. Luckily, I found this post on StackOverflow. Now I can set a simple check at the beginning of the function that looks to make sure it’s the right post type (site) and it’s a trashed post. In either of those cases the function gets skipped.
Promisees · Courtesy of ponyfoo.com Inside Einstein’s head – an explorable explanation of relativistic spacetime The Disconnect – Issue One Please Disconnect from the Internet. This is an offline-only magazine of commentary, fiction, and poetry. Just disable your WiFi to view this issue. Rage against the machine: self-driving cars attacked by angry Californians | Technology | The Guardian The two human-on-robot assaults are not the first time San Franciscans have fought back – physically – against robots. In December, the local SPCA animal shelter removed its 400lb Knightscope security robot from the streets around its building amid backlash from residents and the homeless population who complained the robot was harassing them. While most residents simply complained about the robot’s presence, one person reportedly “put a tarp over it, knocked it over and put barbecue sauce on all the sensors”. The Wire, 10 years on: ‘We tore the cover off a city and showed the American dream was dead’ | Television & radio | The Guardian Greek tragedy for the new millennium,” with sclerotic institutions playing the role of callous, indifferent gods AllSides Bias Rating (ABR) – AllSides –ripe for all kinds of issues The AllSides patented bias detection and display technology drives arguably the world’s most effective and up-to-date bias detection engine. It’s powered by a combination of wisdom-of-the-crowd technology […]
Google Sheets often thinks it’s smarter than you. That’s helpful at times and irritating at other times.1 The Google Form to Sheets path is one place where that can come up repeatedly and in ways that are hard to see. For instance, if you use the Time entry on forms, Google Sheets tries to coerce it into a date structure while leaving you seeing just the time in the sheets view. That leads to weird and unpredictable stuff if you’re trying to use Google Scripts to interact with that cell data based on what you see. For instance, this is data from the time entry field as seen on the sheet side. Note the two places you might expect to see truth. Now if we get that same data via Google Script . . . Cell data that you’d expect to just be that time element returns as Sat Dec 30 1899. The time is right though. If you manually change the format of that column to plain text things work . . . but it gets re-set on all subsequent submissions. My solution so far has been the following Google Script set to fire on every new form submission. In my case, I’m changing the format of the latest entry in the spreadsheet in columns F and G to […]
Ordinarily it’s pretty easy to get the featured image from the WordPress API. You just have to remember to add the _embed element like so https://bionicteaching.com/wp-json/wp/v2/posts?_embed But maybe there’s some reason you don’t want to set the featured image but want to get the first image from the body of the post. This chunk of so very uncool jQuery gets the JSON data and finds the first img src URL in the post body. I’ve gone over the basic pieces previously so here’s the portion that differs. It’s just regex searching for anything with the img src pattern and spitting back out the URL. See the Pen antonio – jquery demo by Tom (@twwoodward) on CodePen.