Parsing HTML5 IMG srcset

I needed a simple function to use in a TrailsNH Bot to find the largest image in an HTML5 srcset. Here’s what I came up with. function getLargestImage($srcsetString){ $images = array(); // split on comma $srcsetArray = explode(“,”, $srcsetString); foreach($srcsetArray as $srcString){ // split on whitespace – optional descriptor $imgArray = explode(” “, trim($srcString)); // … Continue reading Parsing HTML5 IMG srcset

National Weather Service (NWS) new API

NWS API has a bunch of changes coming 2017. The documentation is a little light right now, but it sounds like the old DWML/XML feeds are going away.  We will have to pull the data using the new api.weather.gov API. Here is what I have learned about this new API so far while replacing the digitalDWML FcstType feed for my … Continue reading National Weather Service (NWS) new API

Review: NetworkSolutions.com

NetworkSolutions.com Rating: 1 (1/5 stars) Reviewer: Kimball, Goffstown NH, January 23, 2017 Starting At: $35 per year.   Are you looking to buy a domain name? Do yourself a favor and do not go with Network Solutions, their customer service is horrible, and their fees are over priced. It’s not just me who hates them, … Continue reading Review: NetworkSolutions.com

Review: Internet Domain Name Services (iDNS)

Internet Domain Name Services (iDNS) Rating: 1 (1/5 stars) Reviewer: Kimball, Goffstown NH, July 7, 2015 Starting At: $45 per year.   Did you get mail from a company called “iDNS” saying “You must renew your domain name…“? Don’t fall for it. It’s a SCAM!  Don’t give them your credit card number, don’t send them any money, and … Continue reading Review: Internet Domain Name Services (iDNS)

Host your website at SiteGround

SiteGround Web Hosting Rating: 5 (5/5 stars) Reviewer: Kimball, Goffstown NH, May 13, 2015 Starting At: $3.95 per month.   I have been using SiteGround.com web hosting for my clients since summer 2013. It took me a while but I finally switched my personal sites over in July 2014. I highly recommend them. SiteGround runs fast modern servers, in a reliable … Continue reading Host your website at SiteGround

Mobilegeddon Help

Have you heard about “Mobilegeddon”?  On April 21 2015 Google adjusted it’s search ranking  where sites that are not mobile-friendly drop in the search results. Here is a peek at my Webmaster Tools Mobile Usability report for TrailsNH. My issues broke down into 4 categories: Content not sized for viewport Touch Elements too close Viewport not configured … Continue reading Mobilegeddon Help