“Who ya gonna call?” “CODEBUSTERS”

No.

But the metaphor of Ghostbusters crossing the streams was inversely appropriate to a little bit of code action over the holidays (of which the actual action was nil).

But this was fun.

This nice tweet from John Johnston (who spawned the idea) reminded me of a WordPress plugin I had made

The WP Posted Today plugin is meant to offer a short code you can put on a site and it will list all previous posts on the current calendar day (this of course is useful if you actually still blog regularly) (cough) (cough).

Just for grins I checked the page where I use my own plugin. Yikes. Red Alert. It displayed all the ones for December 29 in years past, but the part where it should list how many there were was blank.

Red arrow points to missing number where the page output reads "There are posts previously published on December 29th"

I dug into my own code… and found myself a bit lost. Crossed. I was not even sure where I got the sprintf functions (John’s original code?) that were aimed to be compatible if anyone every wanted a language translation (maybe, or it’s just that thing when people code things differently).

Taking the path of least resistance, I took out the code where I think the problem was occurring and did it a more simple, but brute force way.

And it worked.

So I updated the version on GitHub and felt at peace with the world. In the off chance someone stumbled into my little corner of code, they would find something that works (or should work).

And then (here comes a stream crossing) Michael Hanscom @djwudi — someone I don’t think I’ve ever communicated with — tweets that he had seen pretty much the same bug and offered a fix.

https://twitter.com/djwudi/status/1212871226953101313

In looking at his post I saw the fix he made, and said– that’s better than mine! So I decided today to roll back my changes in place of Michael’s solution (but also keeping a modification I had made to remove extraneous calls when not needed for singular versus multiple results).

I noted the extra change he made in hos own version

Plus, I’ve made one other tweak to the plugin, so that it adds a link to the end of the excerpt to better handle “microblog” style entries that don’t have titles, so I still get to feel good about that part, as well. 🙂 My coding skills may be underdeveloped and rusty from lack of regular use, but they’re not entirely atrophied!

In this case, these microblog type entries (see Michael’s demo page) lack titles, so yes, a link is needed at the end of the post excerpt.

Yet I could see that regular posts (like on my site) did not need the extra link, and also, not everyone might want the arrow Michael likes.

I solved this cleverly by creating an additional shortcode parameter more which defaults to a blank string. In the shortcode function, we convert any attributes passed to variables with

extract(shortcode_atts( array( "month" => '', "day" => '', 'excerpt' => 1, 'more' => '' ), $atts ));

So on my site, where I just used the shortcode

There are 12 posts previously published on March 5th

  • 2022
    • Counting to 6×6 Starts at 0 I’m putting my stake in the ground to be part of the Write 6×6 extravaganza, but starting here a number 0 (also doing so to establish my tag). Writing 6 blog posts in 6 weeks should not be a challenge, it’s more about joining a group of colleagues doing the writing challenge together. As many […]
  • 2017
    • Hey, What’s My Photo Doing There? Is there an expression for missing something obvious right in front of your eyes? This happened earlier this year and slipped through the blog cracks. I was doing some research for a healthcare rant I eventually published over there at medium.com. I had looked up some stats for ACA usage in Arizona, and had a […]
  • 2016
    • We Regret To Inform of the Passing of Malle Gottfried’s Fakebook Profile Malle Gottfried’s Facebook account, active since November 2015, supposedly of New York City, passed away March 5, 2016 in the anonymous vacuum of reason called Enforcement of Facebook Community Standards. Visitation is not possible and only an ambiguous message of account unavailability remains. Malle supposedly was born in San Salvador. After losing his parents early […]
  • 2015
    • Trying Visual Status Indicators for TRU Writer It’s exciting to see some applications of the SPLOT TRU Writer tool. TRU English prof Ken Simpson has two sections of his courses using instances made for each class: We are set to let another group of computer science students […]
    • Ideas Begatting Ideas Do you remember in the Old Testament all that begat action? And Arphaxad begat Shelah; which himself engendered Eber. (And Arphaxad begat Shelah; and Shelah begat Eber.) Really, you remember? You were there? In terms of ideas or bits of […]
  • 2014
    • Super Mario Clouds

      image

      Technologies: ART EEPROM burner, DASM 6502 BSD, data projectors, NBASIC BSD, Nintendo Entertainment System, RockNES, Super Mario Brothers Nintendo cartridge, video distributor
      Current URLhttp://www.coryarcangel.com/things-i-made/SuperMarioClouds 
      Wikibook Chapter: https://wiki.brown.edu/confluence/display/MarkTribe/Cory+Arcangel

      Not a web-based art form, but yet a compelling example of hacking a console game, Super Mario Clouds presents an example of creation by deletion.

      It’s just clouds scrolling by, WTF? But check out what Cory Archangel did to make it

      To make Super Mario Clouds, Arcangel hacked Super Mario Brothers, a classic video game that made its debut in 1985. He replaced the program chip from an old Nintendo Entertainment System game cartridge with a new chip that he programmed himself (by borrowing code he found on computer hobby scene Web sites) to erase everything in the original game except the clouds.

      Just look at the jagged cuts to get to the chip, and the masking tape labels!

      image

      I cannot speak much to the artistic references in the book chapter:

      Arcangel’s process of visual subtraction evokes Robert Rauschenberg’s Erased de Kooning Drawing (1953), in which the artist famously erased a composition by Willem de Kooning to create a new work of art. Super Mario Clouds suggests a similar sensibility, simultaneously conveying a stripped-down aesthetic and a rebellious, bad-boy attitude that challenges conventional notions of artistic integrity and authenticity.

      but the notion of creation by deletion is intriguing for the way it runs 180 degrees to our assumption of what creativity means- making stuff, right?  But look at Austin Kleon’s Blackout Poetry- its not just haphazard erasing to make a poem from existing works by erasing portions (maybe easier than hacking a NIntendo cartridge).

      While many new media artists fetishize emerging technologies, Arcangel eschews the graphic realism of contemporary game titles like Grand Theft Auto, celebrating instead the crude “dirt style” imagery of early video games

      The same might be said today about the environment of Minecraft (which spawns  in the world and derivatives elsewhere).

      Cory Arcangel provides a detailed illustrated guide to his hack  — like 

      The first thing you will need to get is an original Super Mario Brothers cartridge. Not a “Duck Hunt+Mario Brothers” cartridge, but just a plain old Super Mario Brothers cartridge. Next you should unscrew the plastic back on the cartridge, and inside you will see a circuit board like the one you see below. There are two chips on this board. The CHR chip, and the PRG chip. We are interested in the PRG chip for this project. Also please make sure the cartridge says NES-NROM-01 (01-05 in also fine). This let`s us know it is a 32k Nintendo circut board. 

      And in a modern spirt, also shares via github the code he used to modify the game.

      Even more timely or i time, in reference to the GIF above:

      when I originally posted this on the Internet in 02, the web wasn’t actually able to contain video (it sounds funny now, but remember youtube didn’t start making waves till like 05ish??), therefore I made a gif of the video. Of the gazillion bootlegs of this project, most are from this gif.

      What’s a video game without the character, action, and scenery? Dreamy?

  • 2011
    • Amazing Story: From CogDogLog to Turned Pens This one ought to be added to the Amazing Stories of Sharing, all enabled via flickr photosharing. cc licensed ( BY NC ) flickr photo shared by windsordi Back in December, I posted a photo of some really solid oak that had been split for me (it was like iron) cc licensed ( BY ) […]
  • 2009
    • There Must Be Some Tags Out There… cc licensed flickr photo by Erik K Veland Sometimes tagging is a lonely game, other times it is a wild lalapalooza fest. That’s the way the net bounces. Without going too deep into a zone of vacacity (!), I’m seeking some help tagging resources, examples, references related to the 6 topics to be published next […]
  • 2008
    • Tried to pretend I was sleeping in the doghouse when tagged… Mmmmm, another mutated strand of 5 things meme got batted my way from Alisa. I’ve got a lukewarm thing about such things. Over the years I have never forwarded those email things which warned an anvil would drop from the sky on this coyote if I failed to forward. Well, maybe it did. But I’ll […]
  • 2007
    • I Had Breakfast Today With a Guy I Met on the Internet So the blog post title is aimed for the cheap reaction (“no, don’t go there”). But it is true, I had breakfast today. And it was a chance to meet someone whom I’ve corresponded through mostly blog comments, going back to August, another runner who had found my sad tale of marathon attemptage. So we […]
    • A 10 Minute Task That Ate 2 Hours I sat down to the computer tonight to take care of some quick tasks. What a cool surprise in that one of by blog run projects, the NMC Virtual Worlds site got included in a list of “Truly Unique and Outstanding Blogs” (Ouch, sounds a bit like a 5% Point thang). Taking a peek at […]
  • 2005
    • Big Shiny Apple Just arrived in the big city for the League for Innovation conference that starts tomorrow. Perched on the 40 something floor of the Marriot with my own commanding view of Manhattan. About 1/3 the plane from Phoenix was loaded with folks from Maricopa, almost like a chartered jet. Sometimes you have to travel to a […]
and the default value, the link at the end is invisible.

On Michael’s site he might use

There are 12 posts previously published on March 5th

  • 2022
    • Counting to 6×6 Starts at 0 I’m putting my stake in the ground to be part of the Write 6×6 extravaganza, but starting here a number 0 (also doing so to establish my tag). Writing 6 blog posts in 6 weeks should not be a challenge, it’s more about joining a group of colleagues doing the writing challenge together. As many […] &amp#x27A1;
  • 2017
    • Hey, What’s My Photo Doing There? Is there an expression for missing something obvious right in front of your eyes? This happened earlier this year and slipped through the blog cracks. I was doing some research for a healthcare rant I eventually published over there at medium.com. I had looked up some stats for ACA usage in Arizona, and had a […] &amp#x27A1;
  • 2016
    • We Regret To Inform of the Passing of Malle Gottfried’s Fakebook Profile Malle Gottfried’s Facebook account, active since November 2015, supposedly of New York City, passed away March 5, 2016 in the anonymous vacuum of reason called Enforcement of Facebook Community Standards. Visitation is not possible and only an ambiguous message of account unavailability remains. Malle supposedly was born in San Salvador. After losing his parents early […] &amp#x27A1;
  • 2015
    • Trying Visual Status Indicators for TRU Writer It’s exciting to see some applications of the SPLOT TRU Writer tool. TRU English prof Ken Simpson has two sections of his courses using instances made for each class: We are set to let another group of computer science students […] &amp#x27A1;
    • Ideas Begatting Ideas Do you remember in the Old Testament all that begat action? And Arphaxad begat Shelah; which himself engendered Eber. (And Arphaxad begat Shelah; and Shelah begat Eber.) Really, you remember? You were there? In terms of ideas or bits of […] &amp#x27A1;
  • 2014
    • Super Mario Clouds

      image

      Technologies: ART EEPROM burner, DASM 6502 BSD, data projectors, NBASIC BSD, Nintendo Entertainment System, RockNES, Super Mario Brothers Nintendo cartridge, video distributor
      Current URLhttp://www.coryarcangel.com/things-i-made/SuperMarioClouds 
      Wikibook Chapter: https://wiki.brown.edu/confluence/display/MarkTribe/Cory+Arcangel

      Not a web-based art form, but yet a compelling example of hacking a console game, Super Mario Clouds presents an example of creation by deletion.

      It’s just clouds scrolling by, WTF? But check out what Cory Archangel did to make it

      To make Super Mario Clouds, Arcangel hacked Super Mario Brothers, a classic video game that made its debut in 1985. He replaced the program chip from an old Nintendo Entertainment System game cartridge with a new chip that he programmed himself (by borrowing code he found on computer hobby scene Web sites) to erase everything in the original game except the clouds.

      Just look at the jagged cuts to get to the chip, and the masking tape labels!

      image

      I cannot speak much to the artistic references in the book chapter:

      Arcangel’s process of visual subtraction evokes Robert Rauschenberg’s Erased de Kooning Drawing (1953), in which the artist famously erased a composition by Willem de Kooning to create a new work of art. Super Mario Clouds suggests a similar sensibility, simultaneously conveying a stripped-down aesthetic and a rebellious, bad-boy attitude that challenges conventional notions of artistic integrity and authenticity.

      but the notion of creation by deletion is intriguing for the way it runs 180 degrees to our assumption of what creativity means- making stuff, right?  But look at Austin Kleon’s Blackout Poetry- its not just haphazard erasing to make a poem from existing works by erasing portions (maybe easier than hacking a NIntendo cartridge).

      While many new media artists fetishize emerging technologies, Arcangel eschews the graphic realism of contemporary game titles like Grand Theft Auto, celebrating instead the crude “dirt style” imagery of early video games

      The same might be said today about the environment of Minecraft (which spawns  in the world and derivatives elsewhere).

      Cory Arcangel provides a detailed illustrated guide to his hack  — like 

      The first thing you will need to get is an original Super Mario Brothers cartridge. Not a “Duck Hunt+Mario Brothers” cartridge, but just a plain old Super Mario Brothers cartridge. Next you should unscrew the plastic back on the cartridge, and inside you will see a circuit board like the one you see below. There are two chips on this board. The CHR chip, and the PRG chip. We are interested in the PRG chip for this project. Also please make sure the cartridge says NES-NROM-01 (01-05 in also fine). This let`s us know it is a 32k Nintendo circut board. 

      And in a modern spirt, also shares via github the code he used to modify the game.

      Even more timely or i time, in reference to the GIF above:

      when I originally posted this on the Internet in 02, the web wasn’t actually able to contain video (it sounds funny now, but remember youtube didn’t start making waves till like 05ish??), therefore I made a gif of the video. Of the gazillion bootlegs of this project, most are from this gif.

      What’s a video game without the character, action, and scenery? Dreamy?

      &amp#x27A1;
  • 2011
    • Amazing Story: From CogDogLog to Turned Pens This one ought to be added to the Amazing Stories of Sharing, all enabled via flickr photosharing. cc licensed ( BY NC ) flickr photo shared by windsordi Back in December, I posted a photo of some really solid oak that had been split for me (it was like iron) cc licensed ( BY ) […] &amp#x27A1;
  • 2009
    • There Must Be Some Tags Out There… cc licensed flickr photo by Erik K Veland Sometimes tagging is a lonely game, other times it is a wild lalapalooza fest. That’s the way the net bounces. Without going too deep into a zone of vacacity (!), I’m seeking some help tagging resources, examples, references related to the 6 topics to be published next […] &amp#x27A1;
  • 2008
    • Tried to pretend I was sleeping in the doghouse when tagged… Mmmmm, another mutated strand of 5 things meme got batted my way from Alisa. I’ve got a lukewarm thing about such things. Over the years I have never forwarded those email things which warned an anvil would drop from the sky on this coyote if I failed to forward. Well, maybe it did. But I’ll […] &amp#x27A1;
  • 2007
    • I Had Breakfast Today With a Guy I Met on the Internet So the blog post title is aimed for the cheap reaction (“no, don’t go there”). But it is true, I had breakfast today. And it was a chance to meet someone whom I’ve corresponded through mostly blog comments, going back to August, another runner who had found my sad tale of marathon attemptage. So we […] &amp#x27A1;
    • A 10 Minute Task That Ate 2 Hours I sat down to the computer tonight to take care of some quick tasks. What a cool surprise in that one of by blog run projects, the NMC Virtual Worlds site got included in a list of “Truly Unique and Outstanding Blogs” (Ouch, sounds a bit like a 5% Point thang). Taking a peek at […] &amp#x27A1;
  • 2005
    • Big Shiny Apple Just arrived in the big city for the League for Innovation conference that starts tomorrow. Perched on the 40 something floor of the Marriot with my own commanding view of Manhattan. About 1/3 the plane from Phoenix was loaded with folks from Maricopa, almost like a chartered jet. Sometimes you have to travel to a […] &amp#x27A1;
to get the arrow codes he likes. This works because output for each found post looks like

// output post and link
			
$output .= '
  • ' . get_the_title() . ''; // display excerpt if we want it if ( $excerpt ) $output .= ' ' . get_the_excerpt(); // for microblog output where there might not be titles so add a link at end // h/t https://www.michaelhanscom.com/eclecticism/2020/01/02/rss-feed-weirdness-and-php-debugging/ $output .= ' ' . $more . '
  • ';

    So how is that for the odds of streams crossing on the same obscure bit of code? That’s the old fashioned kind of net serendipity that still happens.

    Thanks Michael! Check out his 20 year old blog, he’s an “Enthusiastically Ambiverted Hopepunk” quite the tag line.


    Featured Image: Edit of the Ghostbusters Cross Streams scene found in the Ghostbusters Fandom Wiki site which states “Community content is available under CC-BY-SA unless otherwise noted.” I replaced part of the background with a screenshot of the WP Posted Today PHP code.

    If this kind of stuff has value, please support me by tossing a one time PayPal kibble or monthly on Patreon
    Become a patron at Patreon!
    Profile Picture for CogDog The Blog
    An early 90s builder of web stuff and blogging Alan Levine barks at CogDogBlog.com on web storytelling (#ds106 #4life), photography, bending WordPress, and serendipity in the infinite internet river. He thinks it's weird to write about himself in the third person. And he is 100% into the Fediverse (or tells himself so) Tooting as @cogdog@cosocial.ca

    Leave a Reply

    Your email address will not be published. Required fields are marked *