Minimal WordPress

Sometimes people just want a little bit of WordPress. Before hanging a left with the site, we pruned it waaaaay down and tried to make it as simple as possible. This is a pretty solid example that WordPress can be just about anything you want if you’re willing to put in a bit of time and effort. I figure having all these things in one place will help someone else (me most likely) at some point. Hide Posts from Other Authors If you have many authors, you often don’t want them seeing a bunch of posts in the admin area that they can’t edit. Make their lives easier and hide everything else. I believe this is where I found the code. Remove Sidebar Options To further clean up the sidebar for authors, the following code removes lots of things that you don’t want students bothering with anyway. You can get lots of details on this in the codex. Go to Directly to Post, Do Not Pass Dashboard This shunts people directly to the posts area rather than going to the dashboard on login. Posts in Single Column This sets the posts to single column display to simplify writing and was found here. Purify and Rename the Post Page This chunk removes certain meta boxes and restructures the language on […]


Weekly Web Harvest for 2016-12-25

Cosmic JS | Cloud-Hosted Content Management Platform, API-First CMS Cosmic JS offers an intuitive API that can deliver content to any website or application. This gives you the freedom to build your application using any programming language and allows for easier scaling within your development team. twosigma/beaker-notebook: Web-based, polyglot research platform. Beaker is a code notebook that allows you to analyze, visualize, and document data using multiple programming languages. Beaker’s plugin-based polyglot architecture enables you to seamlessly switch between languages in your documents and add support for your favorite languages that we’ve missed. Add Service Worker for WordPress | justmarkup The Simpsons s26e01 Episode Script | SS I have memories. (high-pitched tone) I have. memor memor (grinding, beeping) (gentle piano playing) (high-pitched): Still love you, Homar. (high-pitched, distorted): We are happy family. All animals can scream. (low growling) Make purchase of the merchandise.

Vue and the WordPress REST API

I’ve continued to play around with using Vue and WordPress’s API. The Vue stuff is entirely new to me but it’s pushing my javascript knowledge. The main reason I’m excited about the WordPress/Vue (or whatever framework) combinations is simply speed. If you have any doubts give the pagination at the bottom of this demo site a shot. Crazy fast . . . and running stock on shared hosting. No caching plugins etc. The site is running the Vuetiful WordPress theme which has been an interesting thing to look at and see how it all works. Github is such a good thing. Below or linked here is the WP JSON/Vue pagination I eventually got working. It’s forked from this demo by Brian Krosgard.1 Even with that large head start, a few things hung me up. First, the navigation of the JSON elements is a bit tricky if you’re not used to it. You’ll want to use the _embed parameter2 to get access to the featured image data. That’s an option I didn’t know about previously. Since I named my main JSON objects ‘post’– to access the thumbnail URL, I’d use post._embedded[‘wp:featuredmedia’][0].media_details.sizes.thumbnail.source_url The part you need to pay attention to is the square brackets and the number following it. Notice there is no period between _embedded and [‘wp:featuredmedia’]. You might also […]


Weekly Web Harvest for 2016-12-18

An Open Letter to the ISTE Interim CEO and Board — re: Seymour Papert – Medium I am grateful to David for bringing attention to ISTE’s non-existent response to the life and death of Seymour Papert. It is worth noting that the father of our field, Dr. Papert, was never invited to keynote ISTE or NECC; not after the publication of his three seminal books, not after the invention of robotics construction kits for children, not after 1:1 computing was borne in his image in Australia, not after Maine provided laptops statewide, not when One Laptop Per Child changed the world. This lack of grace implies a rejection of the ideas Papert advocated and the educators who had to fight even harder to bring them to life against the tacit hostility of our premiere membership organization. Polar Bears’ Path to Decline Runs Through Alaskan Village – The New York Times “When you’re using it as a marketing tool and to bring in donations, there can be a tendency to lose the nuance in the message,” said Todd Atwood, a research wildlife biologist at the United States Geological Survey’s Alaska Science Center. “And with polar bears in particular, I think the nuances are important.”


Weekly Web Harvest for 2016-12-11

New MLB rookie hazing rules ban dressing as women, offensive costumes MLB vice president Paul Mifsud said Monday that the new rules resulted partly “in light of social media, which in our view sort of unfortunately publicized a lot of the dressing up of the players … those kind of things which in our view were insensitive and potentially offensive to a number of groups.” –social media is always letting people see stuff h/t Dan How to Read Sea and Spar Between Sea and Spar Between is a poetry generator which defines a space of language populated by a number of stanzas comparable to the number of fish in the sea, around 225 trillion. Each stanza is indicated by two coordinates, as with latitude and longitude. They range from 0 : 0 to 14992383 : 14992383. To operate the system, you may ChronodeVFD: A Cyberpunk Wristwatch | johngineer The ChronodeVFD is a personal project I’ve been working on for a couple of months. It’s a wristwatch built around the IVL2-7/5 VFD display tube. I originally purchased a few of these tubes to build a standard desk clock, but after playing around with them, I realized I could probably build a wristwatch too. The tube has a number of features which make it more suited than most Soviet-surplus VFDs for this […]


Weekly Web Harvest for 2016-12-04

ChronodeVFD: A Cyberpunk Wristwatch | johngineer The ChronodeVFD is a personal project I’ve been working on for a couple of months. It’s a wristwatch built around the IVL2-7/5 VFD display tube. I originally purchased a few of these tubes to build a standard desk clock, but after playing around with them, I realized I could probably build a wristwatch too. The tube has a number of features which make it more suited than most Soviet-surplus VFDs for this purpose. The NSA loved RSS in 2004 the NSA is spreading the gospel of RSS to the NSOC Operations Support Staff.  She or he says:  On the Internet, data sources as varied as Dilbert, ESPN Sports news, mortgage news, and Microsoft security updates are all available via RSS. At last count there were over one million RSS feeds available on the web, with more being added every hour. RSS has the potential to revolutionize the way we view the web, both at home and here at work. It’s easy to forget how exciting everything was in 2004.  ‘Clean your desk’ : My Amazon interview experience My second round interview involved me being on line with a proctor (from ProctorU), whose job was to provide tech support and make sure I don’t cheat. As preamble, the proctor made me download some software, one […]

Work This Week – Week 4

flickr photo shared by Australian National Maritime Museum on The Commons with no copyright restriction (Flickr Commons) WP Upgrades & Feed WordPress Error WordPress 4.7 came out. It does some good things and internalizes the JSON API stuff. Upgrades went well on most of our installs. We did have some issues though. Feed WordPress didn’t/doesn’t play nicely with 4.7 and the fix has some repercussions with other things we use. The ALT Lab site also broke for a bit and I had to do a fresh install. Not a big deal but ate up some time. The anth101 site also stalled out for a bit because of a conflict with another plugin. Luckily, the latter two issues were restricted the admin aspects and viewers wouldn’t have been impacted. Empty Widgets? I had one blog on rampages that wouldn’t load the customizer. Everything else about it worked fine. Tim Owens from Reclaim Hosting ended up helping me out as it’s fairly strange issue where the customizer won’t load if there are no widgets in it. It did lead to the following list of error variables that I tend to test against. With a bit of work, it might be a useful list. I’ll have to think through what order makes the most sense in terms of likelihood of solving the issue. […]

Instagram-ish WordPress Filter Shortcode Plugin

That beautiful link-bait title and a picture of a dead leaf! That’s why I’m a social media guru. With that self-promotion out of the way . . . I found this CSS library from Una.1 It lets you apply instagram-like filters to image via CSS. Also got to have a nice interaction with Una via Twitter to clarify the license. @twoodwar :+1: its MIT so go ahead — Una Kravets (@Una) December 6, 2016 It fit a need that a professor was expressing for one of our WordPress installs so I wrapped it in a plugin/shortcode combination. The structure goes like so . . . [ cssgram img=”” filter=”_1977″ ] Plain Image A Few Filtered Examples _1977 Inkwell Xpro2 1 Check out her site if you’re into developer stuff at all.

API Nirvana – The Content

Long, long ago Kin and I did the API Nirvana presentation at Open Ed 2016. The following images are screenshots of the presentation embedded above. I described the construction in reveal.js here. There’s a good chance the images below link to the right slides in the presentation. I need to think through how this particular workflow might work better as it seems wasteful to take screenshots this way . . . 1 Slide one is a visual mashup of Kin’s logo and Nirvana’s smiley face font/color. I find the API path one of temptation. It leads me to question many things and I struggle with what I should be spending the time to tweak, to massively modify, to try to make perfect for me. It is a battle but a better one than tolerating whatever I’m given with no recourse. API tools allow me entirely new levels of IFTTT types of flow– and a flow where I’m dictating far more of the process without the need for a 3rd party intermediary. There’s lots of power there and lots of potential to eat huge chunks of my time as well. It brings up lots of big picture questions about who owns what. With APIs I can increase the percentage I own and make the services/data interchangeable should I need to move […]