Skip to main content

David Mead

Is @GooglePlayMusic letting out a death rattle?

1 min read

So @GooglePlayMusic has been showing signs of that, oh so worrying, Google product trait where small things start to not work properly.

Continual uploading

For sometime now the web interface keeps telling me there's one more song uploading. I have no idea what it is. I click on the icon, taking me to the 'recently uploaded' screen, to find everything there.

screenshot of Google Play upload icon

Incorrect artwork

When adding the last four free Underworld tracks, Google Play Music has given them all the same artwork, even though they each come with individual covers.  These covers can be seen when looking at the file locally, but in here they are all the same. Which brings me on to my thrid thing...

screenshot showing same artwork for 3 different music tracks

Cannot upload artwork

At some point Google Play Music lost the ability to upload cover art for tracks or albums. I can pick a new piece, but it never uploads. This means missing, or wrong, artwork can't be fixed.

screenshot showing cover art upload error

I moved away from using iTunes and an iPod quite some time ago, but that option may need to be dusted off (literally) again.

David Mead

Thanks to @vasiljevski's post I have a plugin select pulling back the value saved when editing a post on my blog.
http://www.vasiljevski.com/blog/php/how-to-set-the-selected-option-of-select-tag-from-the-php/

David Mead

Replied to a post on dev.to :

Oh FFS! When I read in the opening paragraph "...and UX/CSS people who advocate non-JS approaches to interfaces" I knew the article was hogwash. Since when is UX lumped with CSS and advocating for non JS use?


David Mead

Cool people I know at @keybank are looking for a UX Lead. Visit https://careers.key.com/en-US/job/ux-lead/J3N6405X9RX6ZX2420C for all the info, and to apply.

David Mead

Changing a plugin for Known (coding) #indieweb

2 min read

I wanted to change up how a plugin worked on my blog. Namely the Listen one.

Out-of-the-box

Looking at it after install if allowed me to capture someting I had listened too. I could link to somewhere that'd let others here it, and put in "cover art" and some notes.  All fantastic.

screenshot of Listen post

Couple of things I wanted to change:

  • artist closer to the title, and not after my notes
  • icon indicating song, podcast, etc.
  • definition between my notes and what I had listened to

Breaking stuff

So I "forked the repo" and basically spent today pulling apart and putting back togther PHP code that I had no idea did what.

I found that the 'listen types' weren't being pulled through to assign an icon to, so I commented out a large section and replaced it with a simple <select> element.  This seems to have worked, though I don't know (yet) how to retain what I selected if I edit the post.

I've now got it looking a lot more how I wanted and it sees the listen type and shows the matching icon.

screenshot of new Listen posts

Also did some more changes while I was feeling brave:

  • I added a lot more types including soundtrack and audio book
  • Changed the titles to past tense
  • Updated the edit page by matching labels to fields, wrapping fields in <p>, and changed some of the language used there too

Going forward

I've posted on the IRC that I've made the changes, so I'll see if, and how, anyone wants to merge these into the plugin.

I'd love to get Last.FM and Huffduffer integrated so they post automagically.

 

David Mead

Reading option in Chrome thanks to @techwareguide

1 min read

Thanks to @techwareguide's article I found the Distill extension for Chrome. Finally a replacement for @evernote's dearly missed Clearly.

Chrome on my phone does offer a 'simplified view' for certain pages, but I couldn't find a way to turn on that for desktop.

 

 

 

David Mead

People I know at @Vitamix are looking for a Web Developer to join their ranks. Take a look at https://www.linkedin.com/jobs/view/1061218144/ for more details.

David Mead

Setting up a blog, using Known, part 3

4 min read

Time to get a WordPress instance back up and running. Piece of cake as I backed up and exported everything, right? That way links don’t stay broken and I can just start using the Known blog (on the root) going forward.

Day Three

Even though I had removed everything of my existing WP install by FTPing into the server, using Coda, I went in through the Media Temple control panel and removed the WP install there too.

While in the 1-click-apps screen I then added a new version of Wordpress in /blog.

That set up just fine. In my browser I went to http://davidjohnmead.com/blog - Lo and behold a brand new WP site. Created a user and went about importing the WP created .XML export file…and waited.

The WordPress Export

I’ve been blogging for a while now, and have imported various other blogs into this one; Blogger, Tumblr, Known, and older WP blogs since 2005. When it finished I was presented by a HUGE page informing me of all the things that didn’t get created or failed!

This was worrying.  I did notice the first block were all referencing Post Kinds.  Now, this is an IndieWeb plugin that worked well, but I hadn’t reinstalled it. That must be the problem. So I went, installed the plugin and ran the importer again.

This time I no Post Kinds errors, but still a huge page (over 6000 lines) with a lot of 'Failed to import media', 'Post “blah blah” already exists', and...

“Warning: mysqli_real_escape_string() expects parameter 2 to be string, object given in /blah/blah/blah/blah/blah/blah/davidjohnmead.com/html/blog/wp-includes/wp-db.php on line 1102”

Now posts already existing does make sense as this was the second time I’d tried this. The bigger issue was when I went to look at the blog there were no posts after September 2016! Over two years of photos, checkins, and writing gone.

Opening the file on my local machine, and checking the file size, I noticed that it was way smaller than zipped versions of previous exports. Hitting the end of the XML I saw this at line 475098…

<b>Fatal error</b>:  Out of memory (allocated 242221056) (tried to allocate 130968 bytes) in <b>/nfs/c03/h05/mnt/56448/domains/davidjohnmead.com/html/blog/wp-includes/taxonomy.php</b> on line <b>1398</b><br />

OMG! When WP ran and built the export it failed and I never saw any notification of that.

So not only am I missing the last two years, none of the 4.5k entries that are there have media that were part of the posts.

The SQL Export

Time for ‘Plan B’ - The diligent exports from mySQL I make every so often.

After asking someone who knows (Thanks GWG), I logged into myPHPAdmin and started to import the .sql file into the new WP created database.

And waited.

And waited.

And it failed. Too big. This is a nearly 60Mb file, but the upload cap it set to 10Mb.

Now comes the searching for help documentation, the cries for help on IRC, and me gingerly typing things into Terminal that I don’t understand in the hopes I can move 60Mb of SQL to the right database using SSH.

Not my fun idea of a weekend, but looking the bright side I’ve already got 4 spam comments on the WP blog less than a day of putting it back up.

Issues

  • importing WP content into Known still doesn’t work
  • posting from Teacup still doesn’t work
  • checkins from OwnYourSwarm still need to be resent from within the tool don't appear on blog
  • Importing WP content into WP didn’t fully work
  • SQL file to big to import through web

David Mead

Setting up a blog, using Known, part 2

3 min read

So after part 1, we head into day two of setting up the new blog. I currently have:

  • A new Known blog at my domain root with the last 10 Instagram posts pulled in via OwnYourGram
  • No old WP blog
  • No old blog content
  • No way to syndicate to Twitter
  • No way to pull in comments from Instagram

I had logged into GitHub and filed a couple of issues about plugins and import not working.

Chatting on the IndieWeb IRC channels (a great resource btw) it became apparent that the build on the WithKnown website is out-of-date. Marcus Povey, one of the project contributors, hosts up-to-date builds if you're not familiar with using GitHub.

Also chatted about the Brid.gy profile issue. Thinking was using the new build would clear it up. Barring that, use the profile URL for both OwnYourGram & Brid.gy

Armed with this we try again.

Day Two

  • download build 0.9.9-a from Marcus
  • deleted everything except .htaccess, config.ini, and the Uploads folder using Coda
  • unzipped and moved everything from mapkyca-known-0.9.9-a-2018112001 over to root, except the Uploads folder
  • visited site and all the content seems to still be there from yesterday
  • the IndiePub tab is a nice addition to see what you’ve connected - revoked all so I can revalidate with new build
  • activated twitter+bridgy on the Interactions tab, though I don't remember seeing anything that said it worked
  • signed in and authorized:
    • Quill
    • Teacup
    • Aperture
    • OwnYourSwarm
    • Brid.gy for Instagram (no longer asks for profile page)
    • Brid.gy for Twitter
  • added Twitter plugin (which now worked) - I had an existing app with Twitter from last time I used Known (2015), so edited that and connected
  • created a post on the blog, syndicated to Twitter - Showed up on Twitter, and a "like" from Twitter showed up on my site
  • created post in Quill and it showed up on blog
  • added feeds to Aperture - showed up in Together (feedreader), liked a post and it showed up as an entry on my blog and Twitter
  • created a post on Teacup still did not appear on blog
  • added Listen plugin
  • added Short Profile plugin - works, but most icons don’t now show up in 0.9.9-a where they did in the out-of-date build
  • added KnownEmoji plugin
  • added FooterJS plugin - This is no longer in main build, but does let you insert code into the header & footer of pages, fixing my Aperture link issue
  • tried importing the WP .XML export with the new build

Issues

  • importing WP content still doesn’t work
  • posting from Teacup still doesn’t work
  • checkins from OwnYourSwarm still need to be resent from within the tool

So we’re cutting down on the immediate issues, but still big hurdles.

Consensus is the WP importer still doesn’t work, so I’m going to add my WP blog back on /blog, using the exported .XML to return all my content.  That way I’ll have it there at least, links won’t remain broken, and everything new will be on the Known blog going forward.

Day three, here we come.

David Mead

Setting up a blog, using Known, part 1

4 min read

Yes, there are multiple parts. Wordpress (WP), Known, and myself all contribute to this, so I wanted to jot down the steps in the order I took them for anyone going about moving a blog or starting afresh.

Ready? Here goes...

Day One

Before deleting/installing/moving anything I:

  • made a note of the existing URL structure I had on my existing WP blog (domain/blog/year/month/day/slug) so I can do redirects later on if needed
  • made a note of my database details, including login information
  • exported all current mySQL databases
  • used the export tool within WP to make a copy, so I can import it later if anything goes wrong and I have to reinstall WP (more on that later)
  • moved everything I had on my local machine to a separate folder for reference (.htaccess file, custom CSS, etc.)

Feeling fairly secure I had everything I proceeded.

  1. deleted everything from root using Coda
  2. deleted old mySQL databases using myPHPadmin control panel
  3. created new MySQL database using myPHPadmin control panel
  4. downloaded Known from http://withknown.com (DO NOT DO THIS)
  5. unzipped and moved files to root using Coda
  6. browsed to my domain and followed the simple setup instructions
    Apache mod_rewrite only requirement not wholly met (screenshot)
  7. enabled all the plugins that came with the install
  8. added Short Profile plugin
  9. imported Wordpress generated XML file
  10. edited .htaccess file with redirects for https

 WordPress import started confirmation message (screenshot)

While I was waiting to get the email that the import had finished, I started going around and updating social profiles with the new URL. As I use some IndieWeb tools to syndicate my content (pull in Instagram posts, social media comments, etc.), I want to make sure they all pointed to the right place.

So I changed everything from http://davidjohnmead.com/blog to http://davidjohnmead.com. I can now use this domain to log into various IndieWeb services.

  1. signed into Quill (online tool for posting)
  2. signed into Aperture (feedreader)
  3. signed into OwnYourGram (pulls your Instagram posts into your site)
  4. signed into OwnYourSwarm (pulls your Swarm checkins into your site)
  5. signed into Teacup (replacement for Foodspotting)
  6. signed into Brid.gy (pulls comments from various social media into your blog)

When I went to test these I started running into issues.

Issues

Aperture creates a <link> for you to add to the <head> of your HTML pages.

<link rel="microsub" href="https://aperture.p3k.io/microsub/xxx">

There didn't seem to be a way to add this within the Known settings. I also didn't know which file I could edit to manually add it using FTP.

The Brid.gy login for Instagram wanted my blog's profile URL (https://davidjohnmead.com/profile/davidmead) to be in my Instagram profile, but OwnYourGram was fine with the root being in there.

Teacup would let me login, create a post, but it never showed up on my blog.

OwnYourSwarm captured checkins, but only sent them to my blog if I logged in and imported them again.

I needed a way to send my blog posts and replies to Twitter, so I found the Known plugin on GitHub and installed it, but it broke.

After all this I still didn't receive any notification that the Wordpress XML import had worked.

So at the end of the day I had:

  • A new Known blog at my domain root with the last 10 Instagram posts pulled in via OwnYourGram
  • No old WP blog
  • No old blog content
  • No way to syndicate to Twitter
  • No way to pull in comments from Instagram

Not terrible, but not where I wanted to be. On to day two.