Auto-Creating Slack Channels from WordPress

Image from page 279 of “The Ladies’ home journal” (1889) flickr photo by Internet Archive Book Images shared with no copyright restriction (Flickr Commons) In working through the project page a bit more, it seemed like it’d be more pleasant to start in WordPress and have our events echo outward in other services. One of those events is the creation of project specific Slack channels. In the past, I’d mainly listened for events . . . programmatically checking back every so often to see if something had occurred so I could do something else. In this case it made more sense to have one action directly precipitate another. These are the three functions that fire when we publish the custom-post-type Project.1 In any case, it’s a pretty instantaneous creation and invitation to the channels. 1 I don’t know how to punctuate that but it’s probably not hyphens.

List Public Slack Channels via API

Image from page 249 of “The development of the chick; an introduction to embryology” (1919) flickr photo by Internet Archive Book Images shared with no copyright restriction (Flickr Commons) I ended up doing this while pursuing some of the API integration stuff for our projects page. It doesn’t list the private pages and might be useful to someone. This was the byproduct of looking for a way to look up the ID for a particular channel which ended up looking like this.

Weekly Post Generator

Image from page 191 of “Hardware merchandising August-October 1912” (1912) flickr photo by Internet Archive Book Images shared with no copyright restriction (Flickr Commons) Given there’s been some recent interest in using WordPress as destination for content created on other services, I thought it might be helpful to see how I set up my weekly Pinboard posts. I did this a year or two ago so it’s sloppy but I think it’ll show some stuff that matters — mainly loading up the array variables for wp_insert_post. This is a super-simple example that inserts one post based on the content at the curl URL and is run weekly via a cron job. Looking at it now, I am full of shame as it didn’t need an external page etc. etc. but in the interest of actually writing the post and being transparent on how you don’t have to be competent to get stuff done I present it anyway. You can do similar things via javascript and you can loop it against a json feed with multiple elements. It gets a little confusing in my head when I start to think how you’d deal with syncing changes long-term. For instance, if you have a post that was created via this API cycle and it gets updated a month later how would you […]

WP API Feed Reader POC

Image from page 96 of “St. Nicholas [serial]” (1873) flickr photo by Internet Archive Book Images shared with no copyright restriction (Flickr Commons) I’ve talked to a number of people a number of times about seeing faculty using Feed WordPress to syndicate content to a motherblog when they’d really be better served by using a feed reader like Feedly.1 Feed WordPress is great and very useful but if you don’t want to archive the content or take advantage of some of the more advanced options (auto-categorizing, auto-tagging, doing stuff with author pages etc.) then it usually is a bit more hassle than it’s worth. I thought it’d be pretty easy to build a little custom page to display a series feeds from sites in one place. It took me a bit to get it straight but it wasn’t too bad. This example loads 10 sites fairly quickly. I’m currently just showing the source site’s URL and the 5 most recent posts with titles and dates. It’d be easy enough to add other stuff – excerpt, full post content, featured image etc. It’d also be pretty easy to pass the URLs to the page from a Google Spreadsheet which I’ll probably do in the near future. See the Pen wp json api multi fetch by Tom (@twwoodward) on CodePen. 1 Obligatory […]

Rethinking Our Project Page (and other stuff)

Image from page 211 of “Bulletin” (1961-1962) flickr photo by Internet Archive Book Images shared with no copyright restriction (Flickr Commons) I’ve been lucky enough to hire two awesome people who have started over the last month or so.1 We’re also going to get a new supervisor on July 3rd. That’s led me to have a bit of breathing room and a reason to start re-thinking some things. One of those things is how we combine documenting our work. Can we document what we do in a way that will create more people interested in doing these things? Can we do a much better job bringing active faculty to the forefront? Can we serve the end of the year report needs regarding various data elements? Can we gather data we might reflect on regarding our own processes? How do we knit all this stuff together from various services without a lot of extra work? The Old I’ve done this more than a few times. The latest incarnation at VCU was the examples page (pictured above). It is semi-decent but was done in haste. It tries to affiliate tools and instructional concepts with examples. Conceptually, it’s pretty close to TPACK in that way. It has done a marginal job thus far. It houses examples and people can browse them. It doesn’t […]

02

Weekly Web Harvest for 2017-06-25

The Government Says It Wasted Millions of Dollars Dressing the Afghan Army in Proprietary Camouflage There, they came across HyperStealth Biotechnology Corp., a company whose name seems to have tumbled out of a comic book (and which has, in fact, made uniforms for a Marvel movie, the bad Iron Man one). Founded in 1999, the Canadian company started out around a plan to make “hyperbaric chambers and passive negative-ion generators for professional hockey players,” according to the Atlantic, but later pivoted to making copyrighted camouflage patterns, and maybe one day an invisibility cloak. 6 Resources that Designed Me as a Web Developer – Hacker Noon Usually we choose which resources to review according to our skills set and our fields of interest. There are some resources that make us feel different after viewing/reading them. This feeling is hard to explain. It can be the understanding of issue we are trying to solve or something that wire up our points of knowledge. Marriott Unveils Master Class: Intimate Learning Experiences With Professionals — Is that what a class is like? Should it be? There has been an influx of research that proves that experiences bring more happiness than material goods. Millennials especially place a lot of value on experiences and this is evident in their spending—people are willing to pay to experience […]

snapping turtle

Photography #156

Found a snapping turtle when wandering up a creek this weekend. You can watch it really try to repeatedly bite me in the video at the bottom of this page. 85mm isn’t the best birding lens but really cool to see owls out in the neighborhood. A kinder, gentler baby turtle.

25

Weekly Web Harvest for 2017-06-18

Why EdTech Sucks – Learning {Re}imagined – Medium old media vampires looking to drink young blood, a university department propped up by Pearson, and a zombie report generating agency that could be replaced by an AI CS4G Network Simulator Simulator game to teach the basics of network functions and security Datamoshing HOW TO DATAMOSH VIDEOS WITH DATA CORRUPTION Welcome to Our Design Studio, Where You’ll Never See the Light of Day But You Can Bring Your Dog – McSweeney’s Internet Tendency .” My motto is “On Instagram they can’t hear you scream.” Unless you post videos. Don’t ever post videos. Auraglyph | Spencer Salazar Auraglyph is an audio software programming, composition, and design system for iPad in which processing structures are created with stylus and multitouch input. Via stylus input, users draw a variety of audio and control nodes and the interconnections between them. Game Cities With a PhD in urban planning and geography, a MSc in city and regional planning, a 5-year engineering diploma, and years of experience in the gaming industry, I would love to help shape the urban environments of your game.   My job is to consult on matters of imaginary urbanism, fix your city’s problems, help with your world-building, create your maps, design living, breathing fantasy or sci-fi urban environments, help you abstract existing places to fit […]

11

Weekly Web Harvest for 2017-06-04

Breathless – Futility Closet I wonder if this was the equivalent of IM speak translators for parents. —— Drawing it across the lips: Desiring an acquaintance Drawing it across the cheek: I love you Drawing it across the forehead: Look, we are watched Trump’s blocking of Twitter users violates U.S. Constitution: rights institute | Reuters A free-speech institute on Tuesday sent a letter to President Donald Trump demanding the prolific tweeter unblock certain Twitter (TWTR.N) users on grounds the practice violates the First Amendment of the U.S. Constitution. Major league litter — Can a strategic bat toss turn trash into treasure? Anytime the batter makes contact with the ball, he drops his bat, and for as long as that ball is in play the bat stays there, literal deadwood, a three-pound piece of trash cluttering up the area around the plate. Like most litter, the bat is usually passive pollution. It gets flung off into the periphery by the batter, and it sits there until a bat boy comes to sweep it up. Sometimes it’s left to be a nuisance, knocking around the catcher’s feet until he or the umpire kicks it out of the road. Very occasionally it gets turned into art, as in the case of a beautiful bat flip. Safe Visual Data Exploration Exploring data via visualization […]

Non-Standard Shapes- Another Odd WP JSON Display

It’s better to see this in the full page view but it grabs a WP JSON feed and makes up non-standard polygon shapes based on the posts using the featured image as the background. Try reloading the page and the shapes will change. If you hover over them they’ll behave in very odd ways as well. That’s all easier to see on the full page view. It’s a strange proof of concept but one I’ll be putting to work for an odd art site in the future. I’ll tame it a bit as I’ve made a number of completely odd decisions just to see what would happen. It could be I’ll end up using data from the posts to influence the shapes more intentionally. That opens up a whole world of strange dataviz possibilities. That is one of the things I love about doing this kind of WordPress interaction. It’s light enough that I’ll run down a path like this and just try it out. I probably wouldn’t have bothered if it required a full child-theme or page template. It’s a low threshold with a high ceiling and now I have another example of something people don’t think WordPress could do for my NMC presentation next week. See the Pen socially engaged artists – jquery by Tom (@twwoodward) on CodePen.