50 Ideas for Blog Posts by Lou Plummer #22

  1. Have you been to a memorable concert? What made it stand out to you?

My first memorable concert was the [Teenage Mutant Ninja Turtles: Coming Out of Their Shells Tour](https://en.wikipedia.org/wiki/Teenage_Mutant_Ninja_Turtles#Concert_tour).

At the time, my school had a reading program where you could get a personal pizza if you read a certain amount of books. As a kid, these were my two favorite things pizza and reading! I don’t remember all the details, but I do remember that PizzaHut had tie in with the Ninja Turtle tour and that you could buy the sound track with the purchase of pizza.

I remember listening to the soundtrack on cassette a lot when I was a kid. I think this is the first time where I would listen to an album and want to skip to the next song. I don’t think I was allowed to do that at that age would have occurred sit through it.

I only remember one song from the cassette called “Tub-in” that I really liked but don’t really remember from the concert. In fact, I don’t remember a lot from the concert except that it was pretty loud and kind of slow in some places. I do remember the Shredder singing a song about hating music. That always stuck with me and I remember sharing a dorm room with someone who said he didn’t like music.

We weren’t roommates the next year.

Concert poster for TMNT Coming out of their shells tour.Coming Out Of Their Shells was a studio album, and subsequent live musical tour that occurred from 1990 to 1991 (in 1992, it toured overseas). The tour was endorsed and sponsored by Pizza Hut. The very first showing of the tour was broadcast live on Pay-Per-View. A VHS recording of the broadcast was made released, as well as a "Making Of" direct to home video. The tour is generally lambasted for its terrible costumes and wafer-thin plot. The band featured Donatello on keys, Leonardo on bass guitar, Michelangelo on guitar/lead vocals & Raphael on drums/percussion/tenor saxophone/vocals. Guest vocalists include Master Splinter, April O'Neil, and The Shredder.

I promised myself that I would post something every day this month , but I’m having trouble just stringing some thoughts together.

I was seriously playing with the idea of creating a plugin that contained all the different shortcodes that are used in the Micro.blog themes. I didn’t because I don’t have the time.

How to Monetize a Blog

This was making the rounds a couple of weeks ago and I wanted to link to it, but it was sitting in the backlog as I was trying to make something else perfect.

I don’t remember what I was waiting for, but I’m hoping that you enjoy it.

So let's talk about monetizing a blog, starting with the most obvious and perhaps easiest avenue: display advertising.

Be sure to tap/click on the image for a good time.

Hello next distraction project! I was just going to get my life together.

Another reason that I don’t like QR codes.

Public Warning.

If you EVER, and I do mean EVER see a QR code for anything... not just some things, ANYTHING.

Treat it as a scam, do not scan it, they can easily be covered up with malicious redirects to fake sites to steal your financial details. Direct you to malware sites to try and infect your device.

Treat them all the same... as toxic, potential harmful to your identity and security.

Never trust them... EVER!!!

If you 100% must use one, do what you should be doing at any (ATM) cash machine, check for devices that have been installed by crooks. See if you can peel the code off, not just at the area around the code, but the whole sign... look for anything unusual and if you have any doubts... even if it's 1% doubt... DON'T USE IT

This isn't scaremongering, scammers and thieves are out there every day, placing fake QR codes on signs all over the place. No where is safe from them. The way to win is not to play. Don;t buy into the enshitification of everything, don;t be told that you can ONLY do it one specific way (legally they have to offer more than one way to pay for a service).

Please boost and spread the word.





Image 113307327301142897 from toot 113307355974852973 on beige.party

Well, I’m glad I didn’t invest all that time into Omnivore. Now there are just too many questions about what is going to happen with the service.


Not a care in the world.

A dog is curled up and sleeping peacefully on a couch.

I’m looking forward to people complaining about daylight savings time just so I can get a break from election coverage.

One less card for stoot

Auto-generated description: Text spelling stoot! is displayed diagonally on a pink background.

Stoot now has an option that will remove the Open Graph / Meta Tags card associated with the first link in a mastodon post. If you are interested in the tags that Mastodon sees, you can go to OpenGraph XYZ to put in your favorite URLs. Here a direct link to your fifth favorite. Mastodon takes the information meta tags from the first URL and makes them look nice when you post. For example, I posted a toot1 with a link to a post that created. I will get something like the following.

A post an arrow pointing to the URL and the second pointing to a card

Summary

You can now add a toot to your blog without including the Open Graph tag.

{{< stoot instance="$InstanceTLD" id="$ID" enableOGCard="true" >}}

The new enableOGCard option defaults to true so that it doesn’t unexpectedly change on people who have an older version of this plugin.

Details about the HTML and CSS structure

About a week ago, I got a message asking why stoot would render the image twice for the same mastodon toot.

Honestly, I had no idea it was doing this and haven’t looked at the code since I had packaged it up two weeks ago.

But, I didn’t want to leave this person without any help so I started to look into the issue and was able to reproduce the problem with a toot from someone I was already following.

Here is the code to embed it if you are using the stoot plugin

{{< stoot instance="writing.exchange" id="113300475439404467" >}}

A very pretty picture, but I don’t know if seeing it twice in succession.

For me to understand something better, I like to diagram it as I step through the code. I’ve included this diagram that shows you what div tags are created when using stoot. If you can always check out the code on GitHub.

All the different parts of a toot generated by stoot
Toot-block
This is the CSS class in the blockquote element that contains the entire mastodon post.
Toot-header
The div contains the information about the account that created the toot.
Toot-profile
This is the profile image of the account that made the toot. I included this CSS from the original project to establish a baseline for styling.
Toot-author
This is a div that contains the two links toot-author-name and toot-author-name that go to the same account page.
Toot-author-name
The name that toot author is going by at the time of rendering. The names sometimes changes as decided by the person in charge of the account.
Toot-author-handle
This is the account name in the @name@server format that mastodon likes to use.
Content
This is the main text of your toot.
Toot-img-grid
Stoot includes CSS and logic to handle 1, 2, 3, or 4 images in a grid and render them properly.
Toot-video-wrapper
Behind the scenes, there are two possible wrappers that render depending on what kind of video media is included with the toot.
Toot-card
This the div that contains the Open Graph card of the first link in the toot. This will include an image, title, and description from the website in the URL.
Toot-poll-wrapper
This is the div that containers HTML <meter> elements to convey the
Toot-footer
Contains date and time of the toot.

The problem is coming from the toot-card and I didn’t want to change all the cards, because someone might have become reliant on this behaviour or worse - never noticed it.

Further CSS Details

I didn’t want to make people work hard to style the included card, so I removed some styling from the CSS.

Show the different divs that make up the divs found in the Open Graph card

There are two div tags in the toot card that you can use to make things work to your satisfaction.

Controlling the Card

The problem is coming from the toot-card and I didn’t want to change all the cards, because someone might have become reliant on this behaviour or worse - never noticed it.

After idenifying the part of the code that controlled the cards, I set a conditional around it.

{{ if eq $enableOGCard "true"}}
{{ with $json.card }}
  {{- $cardData := . -}}
  {{- with $cardData.image -}}
  
  <a href="{{ $cardData.url }}" rel="'noopener">
    <div class="toot-card">
      <div class="toot-card-image">
        <img src="{{ $cardData.image }}" 
          alt="Card image from {{ $masIns }} toot {{ $id }}" 
          loading="lazy" class="toot-card-image-image" />
      </div>
      <div class="toot-card-content">
        <p class="card-title">{{ $cardData.title }}</p>
        <p class="card-description">{{ $cardData.description }}</p>
      </div>
    </div>
  </a> 
  {{- end -}}
{{ end }}
{{ end }}

At the top of the file, we have the following line that sets the value to a default in case it is isn’t specified.

{{ $enableOGCard := .Get "enableOGCard" | default "true" }}

What is next?

Time to close all the tabs and call it a night.

I would like to change the alt text for the incoming images, but I think I would have to learn more about what is offered from mastodon using this API.

I want to that @lmika for giving me some advice about the go programming language. I also want to thank @DaveyCraney for giving me some feedback about stoot.

And I want to thank you for making it to the end of this article.


  1. I am really hating the different names for slightly different things right now. ↩︎