26

Unhide Custom Fields Screen Options When Using Advanced Custom Fields

If you use Advanced Custom Fields you may not realize it removes the ‘Custom Fields’ option from your Screen Options view and hides them entirely in the space they normally occupy below your posts/pages. That’s nice occasionally and a pain other times. Today it was a pain. I figured this out one time before but it took me a while to re-find it at this github page so I’m leaving it here in case I forget again.

25

Weekly Web Harvest for 2018-02-18

apache/incubator-superset: Apache Superset (incubating) is a modern, enterprise-ready business intelligence web application h/t Downes Plotting the Course Through Charted Waters Heat maps, stacked area plots, mosaic plots, choropleths – oh my! There are so many different ways to visually convey relationships and patterns in data! In this workshop on data visualization literacy, you’ll learn to recognize many popular types of charts and how to glean insights from them. The Appendix contains some examples of data visualization as visual essays and it also includes links to resources for learning how to create your own. About Frankenbook Frankenbook is a collective reading and collaborative annotation experience of the original 1818 text of Frankenstein; or, The Modern Prometheus, by Mary Wollstonecraft Shelley. The project launched in January 2018, as part of Arizona State University’s celebration of the novel’s 200th anniversary. Even two centuries later, Shelley’s modern myth continues to shape the way people imagine science, technology, and their moral consequences. Frankenbook gives readers the opportunity to trace the scientific, technological, political, and ethical dimensions of the novel, and to learn more about its historical context and enduring legacy. Do It Yourself – Futility Closet Society of Mutual Autopsy (Société d’autopsie mutuelle), founded in 1876 “for the purpose of furnishing to the investigations of medicists brains superior to those of the common people.”

A portrait of David that I took on a VCU shuttle bus.

Photography – #163

I ended up talking to David on the bus from the Medical Campus to Monroe Park. We started off talking a bit about cameras. From there I found out David has six children. Four of those children are adopted. He believes strongly in trying to do good in the world and this is part of that effort. David’s a very devout Christian and referenced God repeatedly in our conversation. He did it in a way that seemed very natural. We talked a bit about how much children learn from their parents and their actions even when that isn’t the intent. David talked about how he teaches a course and on radiology transportation (his current occupation). He talks about starting the class focusing on making good choices and how, with that foundation, everything else can be learned in time. David’s brother died about a year ago in a car accident and was an organ donor. He was there when the hospital called his father to confirm the organ donation. His father couldn’t answer the question and gave the phone to David who agreed that all the organs should be donated except the eyes. “Because the eyes are the windows to the soul.” All in all, a pretty intense and wide-ranging conversation for a short bus ride.

Screenshot indicating this user has several hundred sites associated with their account.

So Many Sites – Cleaning Up Users

There are lots of ways users can end up associated with many sites in a WordPress multisite install. That’s no big deal if it’s only five or ten but sometimes it’s way more. It’s not just messy, it actually degrades performance when you’re logged in because the admin menu bar loads all those sites. This can really become a drag as you pass a hundred or so sites. Previously, I’ve just given up on the user and made a new one. I’ve also gone through https://theSite.us/wp-admin/network/users.php and opened up a number of sites and removed the user from each one manually. That’s a pretty awful pattern but being in a hurry leads to all sorts of bad choices.1 Today I got the request to remove around six hundred sites from a particular faculty member. The request coincided with time and mental bandwidth so I opted to do this in an intelligent way. There was also no way I was going to do this by hand. First step would be to get the user’s id from the wp_users table. You can look up users here by user_login or user_email and get to what you need pretty quickly. If you’re using Sequel Pro rather than the terminal don’t forget to restrain your searches by the right field. For this example, we’ll pretend […]

23

WordPress Timeline JS Plugin

Background I like Timeline JS. It’s a nice way to create multimedia timelines. I’d previously done some work that would take WordPress JSON API data and insert it into the Timeline JS view.1 It was nice for creating alternate and standardized views of blogs that might be useful for different reasons. It didn’t serve some other needs and while doing it through a generic URL was handy for many reasons it was odd in other scenarios. As a result I decided to make a new version as a plugin. If you don’t like reading stuff there’s a quick video of how it works below. Plugin Goals First, I wanted this to be a plugin rather than a theme. That adds a bit of complexity because you don’t have control of the whole scenario but it makes it much more portable and more likely to be used as it doesn’t require people to change themes or spin up an additional site. I wanted people to be able to use WordPress rather than a spreadsheet to create the content for Timeline JS. Doing that has a few advantages- the WYSIWYG editor, the ability to upload images directly in WordPress, the ability to use posts you’ve already written, etc. etc. I also wanted people to be able to choose what posts ended up […]

18

Weekly Web Harvest for 2018-02-11

Porsche Classic supplies classic parts from a 3D printer Due to the consistently positive results received to date, Porsche is currently manufacturing eight other parts using 3D printing. The parts in question are steel and alloy parts produced using the selective laser melting process, and plastic components manufactured using an SLS printer HUBzero – Home Host analytical tools, publish data, share resources, collaborate and build communities in a single web-based ecosystem.

cartoon face eating cheetos.

Screen Time

Every time I hear something about limiting screen time I cannot help but think about how poorly the concept has been thought out. If we talked about “food time” instead maybe that would help us think that while time matters (eating for hours each day is probably a bad idea), how long you eat probably matters far less than what you’re eating. You have to think about both things. Funneling cheetos for 30 minutes a day is worse than eating carrots for an hour.1 Screen time isn’t a single thing. It’s an insane range of things. There’s lots of screen time that is of Twinkie quality but there are many other options. If I read a book on a device is it screen time or is that reading? If I’m coding for an hour? Editing video? Video chat with my parents? When we reduce things to this extent we end up doing things that ignore the actual problem. So the next time someone on the radio or TV talks about screen time as if it were a single thing please join me in envisioning the giant cartoon heads depicted below. 1 Funneling cheetos may not even qualify as actually eating. It’s a chemical endurance sport that will likely be featured in the next Olympic games

11

Weekly Web Harvest for 2018-02-04

Bildung – Wikipedia The term Bildung also corresponds to the Humboldtian model of higher education from the work of Prussian philosopher and educational administrator Wilhelm von Humboldt (1767–1835). Thus, in this context, the concept of education becomes a lifelong process of human development, rather than mere training in gaining certain external knowledge or skills. Such training in skills is known by the German words Erziehung, and Ausbildung. Bildung in contrast is seen as a process wherein an individual’s spiritual and cultural sensibilities as well as life, personal and social skills are in process of continual expansion and growth. Apple HomePod review: locked in – The Verge When you set down a HomePod and play music, it goes through a number of steps to tune itself. First, it tries to create a model of the room it’s in by detecting the sounds reflecting off walls. It does this in two passes: the first pass builds a model to a high degree of initial confidence, and the second pass refines the model. This happens faster if you’re playing music with a lot of bass. Episode No. 113: What’s Going On in This Graph? – Policy Viz Michael Gonchar and Sharon Hessney lead a new project at the New York Times called “What’s Going On in This Graph?” (WGOITG). Every second Tuesday of […]

A drawing of a small terrier dog jumping through a hoop held by a monkey.

Code as Poetry, Time as a Variable – Options in the Ether

Backstory Driving into work I was listening to NPR and they were interviewing Nikki Giovani a poet from Virginia Tech. In high school I was one of those people who really suffered reading the The Red Wheelbarrow and other non-rhyming poems. They irritated me in the same way people seem to be annoyed by White Paintings or 4’33”. In any case, in college I took lots of English classes. One of those classes was on poetry with Donna Hickey. The class selection was driven more by fitting my schedule and a vague notion that I might minor in English rather than any real interest in poetry. The first day of class she had everyone list their favorite poets. I don’t recall what people chose but I remember feeling like my choices of Shel Silverstein and Dr. Suess was not of the same category. In any case, I had a great deal of fun with the course and using poems as games and puzzles to think around and through. I later took a graduate course with Dr. Hickey1 in poetry and made my first digital liberal arts website around 2001 or 2002. It focused on breaking down various Richard Hugo poems and creating attempts at multimedia experiences.2 That stuff is all long gone from the UR website. I might have backup […]

06

YouTube Snippets WordPress Plugin

I made a little shortcode plugin for making it fairly easy to embed YouTube video snippets. The plugin supports both a start and end time or either a start or end time. It also now allows you to embed multiple videos on a single page. The plugin works like below. Times are in seconds. [yt_video id=”xxxxxxxxx” start=”101″ end=”117″] It’s a slight evolution of the code I found at Amit’s site after a quick Google search. This version obviously ties into WordPress but it also supports multiple videos and stops the video from displaying related videos. The uses for this are pretty wide open. Seems like film studies would have lots of reason to chop up scenes and display them with additional written context.1 Lots of classes would have reasons to chop up YouTube videos to show exactly what they want. Minor Figuring Out of Stuff The only real thing to figure out was how to deal with multiple videos on one page. The original code looked for a single ID on the page. I needed to both generate and find as many unique ideas as people might need. A bit of Google and I found a Stackoverflow bit to create a random string. Then the ID of each div created by the shortcode becomes id=”youtube-player-‘.randId().’ with randId being a 20 […]