01

Weekly Web Harvest for 2018-03-25

404 Error – File Not Found 404 Error – File Not Found Aren’t you glad you didn’t cite to this webpage in the Supreme Court Reporter at Brown v. Entertainment Merchants Association, 131 S.Ct. 2729, 2749 n.14 (2011). If you had, like Justice Alito did, the original content would long since have disappeared and someone else might have come along and purchased the domain in order to make a comment about the transience of linked information in the internet age. And if you quoted this in the NY Times, will you do a correction for the now changed text? found via https://www.nytimes.com/2013/09/24/us/politics/in-supreme-court-opinions-clicks-that-lead-nowhere.html which was found via http://www.wired.co.uk/article/tim-berners-lee#annotations:pPdDABK_EeiD6ftBN12jUg Twitter Demetricator | benjamin grosser The Twitter interface is filled with numbers. These numbers, or metrics, measure and present our social value and activity online, enumerating followers, likes, retweets, and more. But what are the effects of these numbers on who we follow, what we post, or how we feel when we use the site? Inviting us to consider these questions through our own experience, Twitter Demetricator is a web browser extension that hides the metrics. Follower, like, and notification counts disappear. “29.2K Tweets” under a trending hashtag becomes, simply, “Tweets”. Through changes like these, Demetricator lets us try out Twitter without the numbers, to see what happens when we can no longer […]

Will Wonka asking you to tell him again what WordPress can't do.

Form Follows Function – WordPress Authoring

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 […]

25

Weekly Web Harvest for 2018-03-18

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 […]

18

Weekly Web Harvest for 2018-03-11

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 […]

H5P embed advanced options showing the dynamic sizing script option.

H5P Default Dynamic Sizing

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.

13

Photography – #164

Starbucks mermaid A post shared by @ twwoodward on Mar 8, 2018 at 4:46pm PST #subgenius A post shared by @ twwoodward on Mar 11, 2018 at 12:03pm PDT

13

Follow the Cursor Arrows in Javascript

Matt came up with a really interesting visual idea where arrows follow the cursor. He found this codepen example which was pretty close to what he envisioned (only with pill shapes). The problem was that this version used Babel, jQuery, and Underscore. That’s good if you know all those pieces but less good if you don’t. I don’t. Could I do this with just plain javascript? Make the Boxes First, I didn’t want to cut and paste a whole bunch of divs (or use pug) so I figured javascript should make them. Since I think I’m funny my arrow boxes are in the arrow class and the div they’re inserted before has the id quiver. I’m making 300 boxes in this example and the CSS sets the arrows as background images. Watch the Cursor This bit watches the body element for the mouse move. The cursorFinder piece gets the X and Y coordinates of the mouse. In this case, we’re also spitting it out at the bottom of the page so we can see what’s going on. It’s pretty much from the W3 example. Now that we can see where the mouse is we need to tilt the divs based on where they are and where the mouse is. Tilting the Divs First, we have to get all the arrow […]

Four people wandering up a large sand dune with a blue sky and some clouds.

WordPress Avoid Running save_post Functions on Trashed Posts

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.

11

Weekly Web Harvest for 2018-03-04

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 […]

07

Google Script – Plain Text

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 […]