31

Weekly Web Harvest for 2019-03-24

Please TRU Write With Me, I’m All Shiny And New – CogDogBlogUntil now, the editor did not automatically embed media from sites like YouTube, vimeo, twitter, SoundCloud from a plain URL — the user had to trust it would happen. MathigonAn interactive math resource worth looking at. h/t Clint Lalonde Choose Simple Solutions Over Flexible Ones | Thinking SidewaysWhat my colleague failed to realize is that flexibility does not come for free: You pay for it with increased code complexity (and with pointless switch-statements). PerkeepPerkeep (née Camlistore) is a set of open source formats, protocols, and software for modeling, storing, searching, sharing and synchronizing data in the post-PC era. Data may be files or objects, tweets or 5TB videos, and you can access it via a phone, browser or FUSE filesystem. mholt/timeliner: All your digital life on a single timeline, stored locallyTimeliner is a personal data aggregation utility. It collects all your digital things from pretty much anywhere and stores them on your own computer, indexes them, and projects them onto a single, unified timeline. School Stumbles Upon Chalkboards From 1917 During Renovation, Perfectly Preserved Lessons Provide Rare Look Into Past. | The Literacy Site BlogPrincipal Sherry Kishore says she loves the discovery, and she’s been amazed to see how the school taught basically the same lessons back then as […]

30

Gravity Forms to ACF Pattern

When you use Gravity Forms to make a post, you can provision ACF fields but what I found was that the data wasn’t showing up correctly until I manually went and updated the created post. I tried using the WordPress wp_update_post() function but found that didn’t do it. I ended up taking a look at the post_meta in the database directly.1 That’s something that I find myself doing more and more. When you can look directly at evidence, do that. Don’t assume. So what I saw was this . . . You can see that the base custom fields are there. The data is visible. Now I hit update and refreshed the database view and saw lots of new custom fields get generated. This data associates the human readable fields with the field keys that ACF creates. Note the underscores which prevent those fields from showing up in the backend of WP even if you have view custom fields selected. I feel like this has something to do with acf/save_post but couldn’t figure out how to make that work. When my knowledge fails,2 I resort to force. First, I turned on the ability to see the field keys in ACF. It’s easy to miss and easy to forget that this is a Screen Option in WP. Once I could see […]

Cowboy riding a horse standing up.

Clean Up the Playground WordPress Plugin

I looked around for a WordPress plugin that would delete content every X hours and didn’t find anything. It may be this is a strange desire or I could be bad at searching but in any case I built something to do that. The idea I had was that people in a multisite environment could try out sites and get a good feel for how the plugin/theme would work but without the barrier of adding it to their site or creating an entirely new site. The plugin also creates a page that has the shortcode on it which will trigger the cleansing manually. Assumptions1 I assume we’re going to delete all the content that wasn’t created by the admin. That lets us leave some directions and some demo content if needed that will persist after the site is purged of content. I figured we’d auto-add people using the Join My Multisite plugin and setting the user to editor or lower. It might make more sense to create a custom role and/or restrict the ability to maliciously or accidentally change the author of content. I used wp_schedule_event and set the refresh at every 24hrs. I am only deleting pages, posts, and media. I haven’t gotten around to finding/deleting custom post types. 1 Acknowledged laziness.

24

Weekly Web Harvest for 2019-03-17

TextWorld – Microsoft ResearchMicrosoft TextWorld is an open-source, extensible engine that both generates and simulates text games. You can use it to train reinforcement learning (RL) agents to learn skills such as language understanding and grounding, combined with sequential decision making. A dev trained robots to generate “garbage” slot machine games—and made $50K | Ars Technicathe future race to the bottom for online courses Matthew Kay on Twitter: “There is a multiverse of possible ways data in a paper could have been transformed, analysed, or reported. Instead of a stale old PDF, what if you could change these options to inspect that multiverse? 2/7… https://t.co/8elOxgDpReally excited to announce our (Pierre Dragicevic, Yvonne Jansen, @abhsarma, me, @zirtech) paper on Explorable Multiverse Analyses. We make multiverse analyses (a la Steegen, @StatModeling, et al) interactive through explorable explanations (a la @worrydream).

17

Weekly Web Harvest for 2019-03-10

The Hottest Chat App for Teens Is Google Docs – The AtlanticThey’ll clone a teacher’s shared Google document, then chat in the comments, so it appears to the casual viewer that they’re just making notes on the lesson plan. If a teacher approaches to take a closer look, they can click the Resolve button, and the entire thread will disappear. Chris Anderson on Twitter: “As an industry, we had high hopes for the use of drones in anti-poaching efforts. But in hot climates everything looks hot to airborne thermal cameras and fleet logistics are crippling. Dogs work much better. Sobering report frreality vs tech How UT-Austin’s Bold Plan for Reinvention Went Belly Up – The Chronicle of Higher EducationThe costs of filming a new SMOC are between $9,000 and $66,000, according to data provided by Williams, with about two-thirds of classes between spring 2015 and fall 2018 costing more than $20,000. These figures don’t include instructional costs. ___________ Project 2021’s budget would rest on three legs: the university system, which would contribute a one-time $16 million; the extended campus, with revenue from non-degree-seeking students and other operations; and the provost’s office, which would kick in a few million dollars annually.

10

Weekly Web Harvest for 2019-03-03

Scammed at 40,000 Feet: Opaque Market Costs the Jet-Setting Rich – Bloomberg ” . . . according to My Sky, a company whose software helps scrutinize and manage private-jet costs” mattomildenberger on Twitter: “Something I’ve been meaning to say about The Tragedy of the Commons. Bear with me for a small thread on why our embrace of Hardin is a stain on environmentalism. tldr: we’ve let a flawed metaphor by a racist ecologist defiSomething I’ve been meaning to say about The Tragedy of the Commons. Bear with me for a small thread on why our embrace of Hardin is a stain on environmentalism. tldr: we’ve let a flawed metaphor by a racist ecologist define environmental thinking for a half century. How many high school stars make it in the NBA?Remember NBA great Donnell Harvey? Neither do we. Despite being the #1 high school recruit in 2000—something that you think would indicate future NBA stardom—he put together a meager career in the league, averaging around 5 points per game over 5 years. On the flip side is LeBron James—the #1 high school recruit just a few years later—and we all know what he’s been up to. This disparity got us thinking, are these top 100 recruit lists any indication of making it to the NBA, let alone becoming a star? Porfirypretty […]

cartoon face eating cheetos.

Auto Featured Image for Gravity Forms Posts by Response

This scenario is fairly specific, Gravity Forms to post and adding a specific featured image based on a form field but the ease of assigning a featured image via the media post ID is hand elsewhere and it’s always nice to document more ways to tweak Gravity Forms. Step One Upload your images to the WP Media Library. After uploading the images you want to use, go to the Media Library and change the view to list view. If you mouse over the edit button, you’ll see a URL appear in the bottom right of your browser window. Setup Your Form Take note of the entry ID of the form element that’s going to determine the featured image. It’s likely the same number you’d get if you counted the fields from top to bottom but if you made them and rearranged them it could be something else. If you mouse over the field in the form editor, you’ll see the form ID in blue. The Code Now we’re just writing a bit of PHP to tie into the form. In this case I’m tying it just to form 5 with this action add_action( ‘gform_after_submission_5’, ‘altlab_timeline_featured_image’, 10, 2 );. Leaving off the _5 would apply it to all forms and changing the 5 to another number would target another form. In […]