2/24/2018

What is this code from positiverefreshment -- spyware / tracker?

Mystery Code Inserted Into Document Header -- PositiveRefreshment.org

I have been updating our website so that it will comply with full conversion of https:// and SSL requirements that are pending with Google's upcoming Chrome release. I think it's silly to force sites to use expensive SSL certificates that have no need for privacy of traffic, but what are ya gonna do at this point? The market winds have shifted.

And in the process, I have discovered that you can view the security of a page by right-clicking on it, and hitting "Inspect" from the menu. There is a "Security" tab. You probably will have to refresh the page to get the Inspector to show the secure and insecure elements.

Well, there is this mystery code that's been popping up on our site that looks like this:

<head>
<script type="text/javascript" src="https://www.MySiteName.com/wp-includes/js/jquery/jquery.js?ver=1.12.4"></script>

<script type="text/javascript" src="http://track.positiverefreshment.org/s_code.js?cid=220&v=24eca7c911f5e102e2ba"></script>

</head>
 The http:// is what's keeping our site from validating as secure.

I went searching for information about this tracking site, and there is hardly anything listed on Google about it, and nothing on Bing. There are less than 10 sites that mention "positiverefreshment" at all.

So, I tried to sort through all of the code in WordPress and the Theme we use, and nothing seemed to reference this "positiverefreshment" site.

I thought it might be coming from AdSense or some other third party plug-in -- nothing. 


I searched our Ubuntu server for any reference -- nothing.

I went back to the browser and noticed that this line is not in the HTML code. It only shows up in the Elements when you use the Inspect option.

It is being spontaneously inserted!

Okay, hmmm. That's really weird.

So, I duplicated one of the pages from WordPress, and chunk by chunk removed elements until I had isolated the culprit. What you see above is the minimum amount of code I had on the page (that would still invoke the mysterious insertion) -- just the JQuery source reference. That's it, nothing else.


So, I downloaded that version of JQuery and replaced it in WordPress with new code. Problem is still there.

If I remove the JQuery, the positiverefreshment reference disappears. SO VERY WEIRD.

I saved it as a .php and a .html page to see if it is being inserted on the server level somehow -- nope, no difference.

Hmmm.

I switched browsers -- to Firefox. And darnit! There it is again.

I switched computers. And it's not there. Not in any of the browsers.

Tried a Mac. Nope, it's not there.

I switched back to the original computer and opened it in MS Edge and Opera. The code is not there in the elements.


So, Chrome and Firefox are both Mozilla and it only shows up in those browsers.

I think I have an interloper -- spyware or a virus.

I edited the HOSTS file and added a line to block any outgoing reference to "track.positiverefreshement.org."


I turned the computer off and switched it with a drive I had been using a month ago. The code is not there -- not in any of the browsers.

So, it must be a fairly recent infection of the Mozilla browsers. Hmmm. Must have gone to some site that I should not have.

I run a MalwareBytes scan and it's still there.

I download Avast and run a full scan. It's still there.


I can't get rid of it. OK, I give up.

And suddenly, as I write this.... It's gone. It's not showing up.

Seriously, it was there a couple of hours ago, still saying our pages were not secure.

And now it's not showing up. The pages are green-locked secure.


Hmmm. This is getting to be very strange indeed. I think I will collect all of my emails and other files from the last month and go back to the old drive; and wipe this new drive. Something is not right here.

To the spyware thieves -- probably Russians, I say: "
прощай сука."

9/02/2017

Nielsen DMA codes -- List of Regional Market Areas


Just doing some research for a database. Apparently the Nielsen rating company has divided the country up into a number of markets. Most of them are single metropolitan areas, but some cover wider areas across state lines.

The list of Designated Market Area (DMA) codes is available at this link:
http://www.stssamples.com/dma-codes.asp

And with states added, roughly translates to to this. (Check it to be sure)

500 Portland-Auburn OR
501 New York NY
502 Binghamton NY
503 Macon GA
504 Philadelphia PA
505 Detroit MI
506 Boston (Manchester) MA
507 Savannah GA
508 Pittsburgh PA
509 Ft. Wayne IN
510 Cleveland-Akron (Canton) OH
511 Washington (Hagerstown) DC
512 Baltimore MD
513 Flint-Saginaw-Bay City MI
514 Buffalo NY
515 Cincinnati OH
516 Erie PA
517 Charlotte NC
518 Greensboro-High Point-West Salem NC
519 Charleston SC
520 Augusta-Aiken GA
521 Providence-New Bedford RI
522 Columbus (Opelika) GA
523 Burlington-Plattsburgh VT
524 Atlanta GA
525 Albany GA
526 Utica NY
527 Indianapolis IN
528 Miami-Fort Lauderdale FL
529 Louisville KY
530 Tallahassee-Thomasville FL
531 Tri-Cities TN
532 Albany-Schenectady-Troy NY
533 Hartford & New Haven CT
534 Orlando-Daytona Beach-Melborn FL
535 Columbus OH
536 Youngstown OH
537 Bangor ME
538 Rochester NY
539 Tampa-Saint Petersburg (Sarasota) FL
540 Traverse City-Cadillac MI
541 Lexington KY
542 Dayton OH
543 Springfield-Holyoke MA
544 Norfolk-Portsmth-Newpt News VA
545 Greenville-North Bern-Washington NC
546 Columbia SC
547 Toledo OH
548 West Palm Beach-Fort Pierce FL
549 Watertown NY
550 Wilmington DE
551 Lansing MI
552 Presque Isle PA
553 Marquette WI
554 Wheeling-Steubenville WV
555 Syracuse NY
556 Richmond-Petersburg VA
557 Knoxville TN
558 Lima OH
559 Bluefield-Beckley-Oak Hill WV
560 Raleigh-Durham (Fayetville) NC
561 Jacksonville FL
563 Grand Rapids-Kalamazoo-Battle Creek MI
564 Charleston-Huntington SC
565 Elmira (Corning) NY
566 Harrisburg-Lancaster-Lebanon-York PA
567 Greenville-Spartanburg-Asheville-Anderson NC
569 Harrisonburg VA
570 Myrtle Beach-Florence SC
571 Ft. Myers-Naples FL
573 Roanoke-Lynchburg VA
574 Johnstown-Altoona-Saint College PA
575 Chattanooga TN
576 Salisbury MD
577 Wilkes Barre-Scranton-Hazelton PA
581 Terre Haute IN
582 Lafayette IN
583 Alpena MI
584 Charlottesville VA
588 South Bend-Elkhart IN
592 Gainesville FL
596 Zanesville OH
597 Parkersburg WV
598 Clarksburg-Weston WV
600 Corpus Christi TX
602 Chicago IL
603 Joplin-pittsburg MO
604 Columbia-Jefferson City SC
605 Topeka KA
606 Dothan AL
609 St. Louis MO
610 Rockford IL
611 Rochester-Mason City-Austin IL
612 Shreveport LA
613 Minneapolis-Saint Paul MN
616 Kansas City KA
617 Milwaukee WI
618 Houston TX
619 Springfield MO
622 New Orleans LA
623 Dallas-Fort Worth TX
624 Sioux City IA
625 Waco-temple-bryan TX
626 Victoria TX
627 Wichita Falls & Lawton KA
628 Monroe-El Dorado AR
630 Birmingham (Anniston and Tuscaloosa) AL
631 Ottumwa-Kirksville IA
632 Paducah-Cape Girard-Harrisburg KY
633 Odessa-Midland TX
634 Amarillo TX
635 Austin TX
636 Harlingen-Weslasco-brnsvl-mca TX
637 Cedar Rapids-Wtrlo-Iwc&Dub IA
638 St. Joseph MO
639 Jackson TN
640 Memphis TN
641 San Antonio TX
642 Lafayette LA
643 Lake Charles LA
644 Alexandria LA
647 Greenwood-Greenville MS
648 Champaign and Springfield-Decatur IL
649 Evansville IN
650 Oklahoma City OK
651 Lubbock TX
652 Omaha NE
656 Panama City FL
657 Sherman-Ada TX
658 Green Bay-Appleton WI
659 Nashville TN
661 San Angelo TX
662 Abilene-sweetwater TX
669 Madison WI
670 Fort Smith-Fay-Sprngdl-Rgrs AR
671 Tulsa OK
673 Columbus-Tupelo-West Point-Hstn OH
675 Peoria-Bloomington IL
676 Duluth-Superior MN
678 Wichita-Hutchinson Plus KA
679 Des Moines-Ames IA
682 Davenport-Rock Island-Moline IL
686 Mobile-Pensacola (Fort Walt) AL
687 Minot-Bismarck-Dcknsn(Wlstn) ND
691 Huntsville-Decatur AL
692 Beaumont-Port Arthur TX
693 Little Rock-Pine Bluff AR
698 Montgomery-Selma AL
702 La Crosse-Eau Claire WI
705 Wausau-Rhinelander FL
709 Tyler-Longview(Lfkn&Ncgd) TX
710 Hattiesburg-Laurel MS
711 Meridian ID
716 Baton Rouge LA
717 Quincy-Hannibal-Keokuk IL
718 Jackson MS
722 Lincoln & Hastings-Krny NE
724 Fargo-Valley City ND
725 Sioux Falls (Mitchell) SD
734 Jonesboro AR
736 Bowling Green KY
737 Mankato MN
740 North Platte NE
743 Anchorage AK
744 Honolulu HI
745 Fairbanks AK
746 Biloxi-Gulfport MI
747 Juneau AK
749 Laredo TX
751 Denver CO
752 Colorado Springs-Pueblo CO
753 Phoenix (Prescott) AZ
754 Butte-Bozeman MT
755 Great Falls MT
756 Billings MT
757 Boise ID
758 Idaho Falls-Pocatllo (Jackson) ID
759 Cheyenne-Scottsbluff WY
760 Twin Falls ID
762 Missoula MT
764 Rapid City SD
765 El Paso (Las Cruces) TX
766 Helena MT
767 Casper-Riverton WY
770 Salt Lake City UT
771 Yuma-El Centro AZ
773 Grand Junction-Montrose CO
789 Tucson (Sierra Vista) AZ
790 Albuquerque-Santa Fe NM
798 Glendive MT
800 Bakersfield CA
801 Eugene OR
802 Eureka OR
803 Los Angeles CA
804 Palm Springs CA
807 San Francisco-Oakland-San Jose CA
810 Yakima-Pasco-Richland-knnwck WA
811 Reno NV
813 Medford-Klamath Falls OR
819 Seattle-Tacoma WA
820 Portland OR
821 Bend OR
825 San Diego CA
828 Monterey-Salinas CA
839 Las Vegas NV
855 Santabarbra-Sanmar-Sanluob CA
862 Sacramento-Stockton-Modesto CA
866 Fresno-Visalia CA
868 Chico-Redding CA
881 Spokane WA


5/01/2017

PHP7 Error Reporting & Error Catching: Not showing errors

In earlier versions of PHP it was easy to see your errors. For the most part, whenever there was an error, it would just show up on the screen. Not very secure, but helpful.

You could control the various types of errors that would appear using:
error_reporting(E_ALL & ~E_NOTICE) -- which meant: Show me all of the errors, but don't show the less important notices.

In later versions you had the ability to use try-catch blocks.

The basic usage looked like this:

try {
   // DO MY CODE HERE;
}
catch (EXCEPTION $e) {
  echo $e->getMessage();
}

As of PHP7,  this method has changed a little bit. Instead of EXCEPTION, we use THROWABLE in PHP7. To also support servers still using PHP5, you can add an additional clause to catch errors using the legacy code:

try {
   // DO MY CODE HERE;
}
catch (THROWABLE $t) {
   echo $t->getMessage();
}
catch (EXCEPTION $e) {
   echo $e->getMessage();
}

3/07/2017

Publishing to Google Play Store, Amazon Kindle, Apple Newsstand for digital magazines and subscriptions

How to Get Your Content Published on the 3 Major Mobile Platforms?

tl:dr -- Android, iOS and Kindle are the reigning platforms for mobile reading. My company has content that is suitable for a wider audience than our existing website is reaching. We currently have an old-school magazine and Wordpress website. How can I get our content into the hands of smart phones and tablets without having to invest in a customized app (which may or may not get used)? Can I make any money while I'm at it? 

Yes, and yes. It can be done. Each of the platforms has a native "news" app to which you can submit your content. You will need to have a well-formed RSS feed or several feeds. You need to have existing accounts at Google and Apple, and need to make a new account for the Kindle. You may need to spend some time improving your RSS feed for best results on each device. 

In previous years, each of these platforms tried to encourage monetization of news via subscription models, and the plan was to have fancy methods of displaying magazine style content that users could interact with. Currently, they have all but abandoned these monetization models, and provide more automated models of displaying the RSS feeds. Unless, you are a major publisher or can afford to create your own app, you can pretty much forget trying to be included in on the "magazine / periodical" style of monetization that they used to provide. Mostly, they are modeling their presentations after the free, innovative, and somewhat popular app called Flipboard.

Google Newsstand -- Android's public platform will insert ads automatically into your content, but you will need to have a pre-established AdSense account with linked accounts in both DFP (Doubleclick for Publishers) and AdMob (the mobile ad platform). Newsstand can be accessed via Android apps (downloadable from the Play Store), and also as a standalone website. Google will review your newly created "Edition" within a week or so, and may ask for changes. They say they will eventually add your content to their searchable options in Newsstand. Till then, you can share a link to self-promote and have your users click on a tiny [+] button, but this is unlikely to gain traction. Newsstand is a collection of "news sources" and "topics" and it's scant on options and sources, but works well for what they have decided to include. Suggestions: Use keywords in the name of your news feed; be patient for the approval process and for the Google bot to scrape your feed once a day; and use the full text of your posts in your RSS feed.

Apple News -- Apple provides an app called News that is preinstalled in evey iOS. It is a collection of news sources and topics similar to Newsstand. Apple's sign up process is pretty simple. You create an News "Channel" and then add in a "Section" name. You may select from one of two publishing paths. The easiest is to use your already existing RSS feed. Or you can "Upgrade to Apple News Format" to which you'll have to submit a well-formatted JSON data feed. Once you have your Channel set up, Apple will take a couple of days to review your new submission and will, upon approval, add your channel to its list of Channels that can be searched and easily added. Suggestions: For RSS, the feed you supply does not need to be full text like Newsstand. You can include a summary instead, and then Apple will have an arrow at the bottom of your summary that says, "Read Full Story ^", at which point the reader can push up to have your original website displayed. Apple does not want keywords dropped into the name of your "Channel," unfortunately, which makes it less likely to be found if someone searches only for that keyword.

Kindle Publisher -- Amazon provides a way for Kindle users (only) to subscribe to your news feed. You will get a small commission if they do. Amazon calls news feeds "Blogs." It's difficult to know exactly what a Kindle feed looks like on a device unless you have an actual Kindle. The Kindle Reader apps on iOS and Android are basically only for book buyers, and these news "Blogs" are not accessible -- only on the Kindle. Amazon does provide a preview in a Kindle simulator, and it appears to be a black-n-white simplification of your content. The titles show as a list, like a Table of Contents, and then all of your content is paginated into one long document, almost like you would find in a e-book. The setup is fairly simple, but there is an approval process that takes more than a week while your feed remains "Pending Approval." You need to submit your personal or business address, bank and tax information to be included in the Kindle store. 

The Problems of Print Media existing in a the Digital World

I have been doing work for an old school, printed-on-paper magazine for a long while now. Before this, I worked with a few different newspapers for eons. I helped both of my past businesses move into the digital world in the mid 1990s and early 2000s. All was good ... for a while. 

Despite making every effort to create a useful website with regular content, we cannot seem to attract a large amount of visitors or advertisers. There's not much revenue coming from online, so the print edition remains the source of most of our operating funds. Unfortunately, the advertising dollars for print media have dried up, too. So, we're at an impasse now, and must seek out new ways to distribute our product across devices, platforms, and to a wider array of audience types -- especially to younger, mobile, and working users with disposable income.

Again, this is just a grouping of thoughts and notes about research -- not really designed to make a great deal of sense to the world at large.

Setting a Goal

Existing Resources: Several Writers & Editors. Printed magazines and network of distribution locations. Website using Wordpress for editorial CMS. Custom created scripts for use with calendars and photos and venues. 20+ years of decent community reputation. Archived material of editorial text, and unique photography. 

Target Audience: Socially and politically aware individuals, 25-60, who are interested in our particular take on important news. Also people interested in arts & entertainment. And people interested in coverage of  local metropolitan region.
Objective: Find easy ways to move our existing content out onto multiple platforms. Grow revenue streams. Expand interest to different populations. Create new routes of social and communication interaction.

Ways to Distribute Digitally

World Wide Web

Your own website is the go-to standard for having a digital presence in the world. Web sites don't tend to cost too much, and allow you to publish any type of content you wish. You can post articles, company information, multimedia, forms and more interactive inventions for entertainment, sales and communication. 

Web pages are viewable on both desktops and mobile devices, but they tend to load slowly on mobile devices, and also use a lot of bandwidth. Percentage of website traffic has declined somewhat, and is giving way to unique mobile Apps which are faster, better branded, and include more personalized options for interactions, customizations, and communications.

Monetization by most websites is based on a couple of advertising models
  • Display Ads -- blocks of text, graphic or video advertising which needs a user to click on it to move a user from the news site to a corporate site. This breaks the flow of user interaction, but it's the only way to get paid sometimes. Very few people actually click on ads anymore, and the pay-per-thousand model is a drip-drip of pennies now. AdSense and Doubleclick continue to be the largest distributors of ad network content. 
  • Native Ads -- This is basically a repackaging of Advertorials that appeared in print content. They can be either content from external advertising sources, or can be content created by the publication's staff for the purpose of advertising.
  • Sponsored Content -- This is like news-you-can use types of posts, and the content can be branded with sponsorship logos, or a fixed ad for the sponsor, or include interviews or mentions about the sponsors. Similar to Native Ads but a little different as the content is still part of the overall mission of the publication.

Major challenges for webpages to generate revenue from advertising is that users have become "ad blind" -- they know how to ignore most banner display ads. Another challenge is the widespread use of ad-blocking technology by way of plug-ins or other filters.

One model of revenue generation is the paid subscription model. Whereas many publication websites used to give all of their content away for free; we are seeing a rise of membership-only and paid subscription access. The problem with this that most people don't want to pay for content, and also they don't tend to visit sites that charge for content. 

Social Media

Not that great for delivering full content. Useful for updating large numbers of subscribers about content that exists in other locations. Very useful for viral marketing. These are either have completely public or semi-public options available for posting notifications to a very wide audience of millions. Most offer a limited "push" audience though and want you to pay to "promote" posts. They use a combination of web pages and unique applications for mobile and desktop interactions. Some do offer a shared revenue model of advertising (ie. on videos.)

  1. Facebook 
  2. YouTube
  3. Instagram
  4. Tumblr
  5. Twitter
  6. Pinterest
  7. Linked In
  8. Google+
  9. Reddit
  10. Flickr

There are a number of private networks with little value or no ability to penetrate for social interaction beyond person-to-person in our USA target audience. (WhatsApp, Facebook Messenger, Meetup, Vine, VK, QQ,  WeChat, QZone, Baidu Tieba, Snapchat, Skype, Sina Weibo, Viber, Line, yy, BBM, Telegram, Vkontake, Kakaotalk).

Mobile Apps

While these provide a great way to brand content, and present a unique, unified experience to readers and users; development of a mobile app can be quite complicated and expensive. Also, you have to cajole users to download your app, then open it, use it, and keep coming back on a regular basis. Apps do best when thy are small and quick, easy to understand, and offer the user something that is "useful." Users can quickly and easily sort through content using finger swipes and taps as opposed to typing in words and using an external mouse to do clicks and scrolls. 

One of the stumbling blocks to creating apps is that it takes a lot of specific know-how for each operating system and platform. The main platforms are:

iOS -- Apple-only devices (ie. iPhones, iPads). Requires: knowledge of X-Code and Swift framework. Yearly developer fee is $99. The more popular operating system for American users who can afford the more expensive Apple phones. A very centrally-controlled individual experience and updating system. Apps need to be submitted and approved by Apple's restrictive team. Has a 

Android -- Devices that use Google's OS. (ie. many phones and tablets from many different manufacturers). One-time developer fee is $25. World-wide the most popular operating system because devices tend to be less expensive. A very customizable, individual computing experience and haggard updating system. Apps can be submitted directly to Google Play, or even distributed separately as files.

Windows Mobile -- Devices that use Microsoft's mobile OS (ie. Surface tablets, few phones). Um, don't bother with this at the moment. Its presence may be growing in classrooms, but doesn't have much support elsewhere in consumer devices.

PDF Publishers

Another avenue for distributing magazine is to distribute a PDF of each edition of your publication -- there no money making here for content producers, though. But people can read your PDF via web or mobile device, I suppose. 

Scribd -- Great if you want to put your magazine's PDF out there for free consumption. But there's no way to charge for access or for a subscription.
Issuu -- a service that is very similar to Scribd. Also free and for free consumption.

Content Distribution Networks

Yes! Here we go. The whole point of this post.... 

So, there's all these apps, content sources and companies that other people are using, but they have no attachment to our news content. How do get our content into their hands?

Since we are a magazine, I had originally planned on publishing our content as a digital magazine. The three main distributors of digital magazines seem to be Apple, Google and Amazon. 

The ability to be a magazine publisher with subscribers has changed so many times over the past few years, that I don't think this is a viable option. Each of the Big Three seem to have stopped accepting new publisher requests, to have restricted subscription services to major publishers only, and/or have moved on to new models of content syndication.

The more stable option may be to make a unique app for mobile platforms, but here's what I've found for the remaining remnants of these services:

Apple


From what I can tell at this point -- Apple's "publications" are standalone apps that are given special access to a special collection of newspaper and magazine apps. These apps need to be designed using apple's proprietary software, of course, and they need to include the Apple Newsstand Kit. [sigh] Not ready to go there just yet....

In the past year or two, Apple has also added a specific News app and icon to iOS. The content, by default, includes a few major news publishers. But you can also use "Explore" to find different sources -- these are all major publications again, or you can choose to add "Featured Topics" -- a way that Apple culls together articles from different news sources.

You may also use the News app's "Search" feature to find more "Topics" and "Channels." These extra "Channels" include lesser known news sources. Searching for our publication now ... not there, but the competitor is. Hmm.... No likey.

Apple does appear to have a new developer tool available, possibly called the Apple News Format and it requires you to sign up to be a News Publisher. Well, this is news to me. Let's give it a go....

Apple News Publisher

  • It's asking me to log in using my Apple Cloud credentials.
  • Next it wants my legal business name or my personal name, along with address, and phone.
  • The form is asking for a title for my publication (with no extra description), a web address, and a category and language (only English is supported right now).
  • It would like me to upload a logo. (256px to 2560px)
  • Now it would like me to choose how to publish -- "Sign Up for Apple News Format" or the meager "I'd rather us RSS for now." I think I'll choose the latter route for ease. Assuming this can be changed later. 


  • I'm just going to add our main feed from WordPress.
  • Someone read this for me and tell me what it says....
By clicking "Agree", You (defined as either yourself or the company for whom you are an authorized representative) agree that Apple or its affiliates (individually or collectively, as context requires, "Apple") are authorized to use your RSS (really simple syndication) feed in its product, "News", including using, publicly displaying, storing, reproducing, or publishing Your RSS content or placing advertisements in News that are associated with, or targeted toward, your RSS content. You understand that notwithstanding anything to the contrary herein, neither party shall have any payment obligation to the other in connection with Apple's use of RSS Feeds under this agreement.

Apple will use the RSS feeds as provided by You, and will not edit or modify the text, content, or links supplied by You except to modify titles, partial text, or cover images in their display in News, as determined by Apple in its sole discretion. Apple will display the partial text and any associated images provided by You in connection with the RSS, and will make accessible a link that will take the consumer to the full article on Your website.

You represent that you have all necessary rights to distribute the content through Your RSS feed and You shall be solely responsible for any claim, loss, liability, damage, cost or expense, however arising and under any theory, infringement or otherwise, arising from or related to the RSS content. You, and not Apple, shall be responsible for and timely pay any fees or consideration of any kind owed to any authors, illustrators, or other rights holders or contributors (if any) arising from use of any of your RSS content hereunder. You agree to indemnify, hold harmless, and upon Apple's request, defend Apple, its contractors, agents and affiliates (and their respective directors, officers, and employees) from and against any and all losses, liabilities, damages, costs, and expenses (including reasonable attorneys' fees and costs) arising out of a claim or threat of claim by a third party because of a breach of any representation, warranty, or obligation by You under this Agreement, including any claim that your RSS content infringes or violates the rights of another party.

This authorization shall continue until such time that You remove Your authorization by disabling Your RSS feed inside of Apple's content management system, News Publisher. Any term that either expressly or due to its nature is intended to survive termination of this Agreement shall do so.

TO THE EXTENT PERMITTED BY LAW, (I) IN NO EVENT WILL APPLE BE LIABLE TO YOU FOR ANY SPECIAL, INCIDENTAL, OR CONSEQUENTIAL LOSS, LIABILITY, DAMAGE, COST, OR EXPENSE WHATSOEVER, INCLUDING WITHOUT LIMITATION LOST PROFITS, LOST BUSINESS OPPORTUNITY, LOST DATA, HOWEVER ARISING AND UNDER ANY THEORY, WHETHER OR NOT A PARTY HAS BEEN ADVISED OF THEIR POSSIBILITY, AND (II) APPLE'S ENTIRE LIABILITY FOR PERMITTED DAMAGES SHALL BE LIMITED IN THE AGGREGATE TO FIFTY DOLLARS (US$50.00).

APPLE DISCLAIMS ANY AND ALL WARRANTIES, EXPRESS OR IMPLIED, STATUTORY OR OTHERWISE, WITH RESPECT TO News AND APPLE'S PERFORMANCE HEREUNDER.

This Agreement reflects the entire and final understanding of the parties regarding its subject matter, and may not be amended except by a writing signed by both parties. To the extent any term in this Agreement is found to be invalid or unenforceable, the remainder of the agreement shall continue in full force and effect and any invalid or unenforceable terms shall be replaced with valid and enforceable terms that best reflect the parties' intent.

The Parties agree that this Agreement is made and interpreted under California law, without regard to conflicts of law, and that any dispute is subject to the exclusive jurisdiction of the state and federal courts in Santa Clara County, California. Nevertheless, if You are a governmental or public education institution, then this Agreement will be interpreted according to the laws of the state of such institution's domicile.

June 8, 2015

I hit OK, and this is the response:

I got two emails, one seems like a duplicate of the RSS terms above, and the other is another saying they will get back to me.

Okay, then -- I'm using the company feed and my own personal iTunes account. I hope this test won't screw everything up for later on. Guess we will see what happens. I'm kind of expecting Apple to reject my request, to be honest. Moving forward....

Google Play

This is the primary resource for Android OS apps. There is a specific section for apps that are News & Magazines. But the offerings are limited, and they come in just a few sub categories (Recommended, Digital Magazines, New & Updated Apps, Podcasts, Newspapers, News Apps). Surely the app store has more than these few dozen news apps available. Our search for our competitor reveals nothing.

My plan is to release an app specifically for our business, and to start with an Android app, but too much else to do at the moment. Within a month is my plan. My first attempt with App Inventor was going so well, until I hit a bug that I cannot squash. I've learned quite a lot with that experiment so far.

Google Play Newsstand

Now we're talking. This is a service of Google that used to be called something else -- doesn't matter now. The seem to have had a subscription model for revenue, but have since abandoned it for all but the largest media companies.

Again, there are apps to view Google Newsstand (both iOS and Android), but the webpage for Google Newsstand is here: https://newsstand.google.com/

To include your own content, you will become a Publisher. You have to use your existing Google ID to sign in at https://www.google.com/producer.

It's fairly simple to set up a publication once you've logged into Google Publisher.
You create what they call and "Edition." Now, to me, this seems like a terrible name for what they're offering. It's not necessarily a standalone edition like you would have with a print magazine. Rather, it's a web app made for accessing your content served publication's website.

So, you can either add RSS "Feeds" -- similar to what Apple has above. Or you can add an article and images using their rudimentary CMS. You can do a combination of the two, as well. Google will scrape your content and rewrite and reformat it to suit it's own needs. The scraper does a good job of changing HTML to their 1 or 2-column formats. The output is clean and easy to read and translates well to web, iOS and Android platforms.

The good things about Newsstand are:

  1. You can serve ads from both a Google AdMob account and a Google DFP account. You don't have any control over where the ads go, but you can include your ID codes, and get credited.
  2. You also have access to Google Analytics. 
There are a few drawbacks. Some content may disappear since it's an automated scraper. If there are multiple images on the page, the one you prefer to promote the story may not be the one you prefer. The feeds don't always translate well. The media / image upload process is clunky. A lot of the Newsstand Publisher web app seems unpolished, even neglected as if it were a side project. The last big overhaul was about 3 months ago at then end of 2016.

I'm not convinced this is a project that will stick around for years to come. But it's easy enough to setup, that you can get up and running in an afternoon, and have most of the kinks hammered out on the back end in a couple of days.

Feeds are supposed to update once an hour, but they don't. One Google Expert wrote that it may take a whole day to update, and that this should be reported as a bug. There's no way to do RSS markup to include teaser images. You just have to go with whatever Google finds. And subheads do not get added automatically, unless maybe you use a different XML formatting scheme.

The worst thing (so far) is that the content that I published a few days ago does not appear to be searchable at all. The search function resonds with very few content results -- mostly focusing on "Topics" and established content producers, and news articles from those established content producers. The Google Expert said that someone reviews "Editions" all of the time, but your contribution may or may not be included in the search results.

To distribute Google Newsstand as an option, you have to suggest to your readers that they go to a special link to your presence on Google Newsstand's website. And there, they can click on the tiny little Plus button in a circle, on the top right corner of the page. Kind of discouraging to make so much effort if they are not going to be making it easy to gain readership. 

Amazon 


There was some kind of news publishing thing in beta testing -- Kindle Periodicals, but it seems to have been sqaushed by Amazon like so many others. Perhaps because Jeff Bezos now is the owner of The Washington Post.

So far, the options appear to be either:

OK, so I went with the 2nd option -- Kindle Publishing. This is essentially a way for you to upload your blog's feed to Kindle, and maybe make a few pennies off of it.

The help page describes the product this way:

Blogs those are published through Kindle Publishing for Blogs and available for sale on the Kindle Store. A Kindle user can buy various blogs he/she is interested in by visiting the Kindle Store.
Kindle Blogs are auto-delivered wirelessly to the Kindle and updated throughout the day. They are fully downloaded onto your Kindle so you can read them even when you're not wirelessly connected. And unlike RSS readers which often only provide headlines, blogs on Kindle contain full text content and most images.
That sounds perfect. Exactly what I'm looking for. 

First thing, you need to make a new Amazon account. You are not allowed to use the same account information you might be using for your personal needs, nor for your Affiliates login.

Next, it asks for your personal contact information.

Then it asks for information about your blog. Again, I'm using the company blog to test this out, so I hope I don't goof it up. ;)

It really is very little you have to do to get started:
  • RSS/Atom Feed Address
  • Blot Title
  • Tagline
  • Blog Description
  • Blog Author/Publisher
  • Screen shot -- Must be max 800x600. Hmm, not sure what to do with this one.
  • Masthead/Banner (430x50 max). I'll have to redo that one.
  • URL of your blog
  • Blog Language
  • Categories: Arts & Ent, Business, Humor, Industry, Internet, Lifestyle & Culture, News & Politics, Travel, Science, Sports
  • Search keywords
  • Blog Post Frequency.
Finally, it asks for your tax information and bank routing information. And of course the TOS Agreement.

Once you finish that, it says: "Pending Approval."
And also, "Your blog was published successfully." Your blog will be available on the Kindle Store in 48-72 hours.... Hmm, 3 days. I guess I can wait.

I just sorted through the Kindle app on my iPhone. It's a nonstarter there. Someone says that the Blogs are only available to find via search on an actual Kindle device -- not through iOS or Android Kindle apps. So very confusing ... but it's next to no work. So, it is what it is.

How Do I make Money with Kindle Publishing Blogs?


The help page says that, once your blog is accepted, it will be listed in the Kindle Store. There are no free blogs -- yay!

The "Royalty" payout is allegedly 30% of sales revenues actually received from the sale. It still talks about magazine revenue vs. blog revenue, even though the link to Kindle Periodicals is gone on the same page. Apparently, if your magazine has a certain size in download and takes up a certain amount of bandwidth, then you'd have to pay like 15 cents per MB or somesuch. But magazines get 70% of revenue. The last changes seem to have been made several years ago to the TOS. 

UPDATE: Day 2

I kept waiting for Google Newsstand to update, and it never did. So, I went into my RSS API and check, and it turns out I goofed and left a debugging echo in there. So, the feed wasn't valid. Will have to wait till tomorrow some time to see if it updates automatically. The claim is that it will happen in about a day. Hmm, I goofed. I did a manual update, which seemed fine, but I'm not gonna do that everyday. Some one suggested to use the RSS in the "Social updates" instead of the "Feed" section, to get more frequent updates. Will have to see.

The Newsstand search function is not showing any of our articles yet. Apple just says that they'll get back to me soon. Wasted a lot of time on AMP ads today -- I'm hoping for some payoff here, by this weekend from one or both of these.

UPDATE: Day 3


Hooray! Some response. Apple approved our standard Wordpress feed. We are now searchable in the News app. Finally. I added some subsection tabs, but not sure if that's helpful or just makes our content look dated. It took a couple of hours from when I made changes, until they showed up in the News App. The content is refreshed pretty quickly. .

Google responded late in the day. They said my Edition icon was not good enough -- low pixels? They said on the instruction that 1000x1000 was recommended. So, I know I last uploaded an image that was 1000x1000 pixels. Maybe I misread something like density? I dunno. I changed it to our company logo and uploaded it again. They emailed me about the change they wanted. It went to the boss, too, and he was asking what this was about. Ugh, no ready, not ready yet to discuss this. I want to make sure it works first. The feed is not refreshing, though. I wonder if I put a published and last-published date on the feed, if that would help. Probably not. But it's been more than a day. I'm not going to do this manually every day. Pain in the butt.

Still "Pending" on Kindle Publishing....

UPDATE: Day 8


It's been more than a week, and Kindle Publishing is still just sitting there, "Pending Approval." I'm hopeful, but this is not as encouraging. Either they're overwhelmed with Blog requests, or they don't take this too seriously as a part of their publishing platform.

I put up a couple of FB posts to promote the Apple News feed. One had just a plain blue background with instructions, and the 2nd one was the same except I overlayed the background with a faint image of someone holding an iPhone (from Pixabay). The 2nd one did better. I learned something from Shaw Academy, it seems.

Other than that, the Apple News feed is doing fine. A couple of posts didn't have images. I don't know why. I added a section that had slightly racy content, and Apple didn't seem to blink. Apple doe add a tab to the News channel for us. It says "Drafts" and it's just an empty page. No comprendo.

Google's Newsstand ... I feel like I've been teased. They did say it'd be weeks: "Our team will re-review your edition within the next few weeks. If it passes our checks, we'll add it to the catalog and let you know." Hmmm. I really want to get that one pushed out there and to show up in search results on the Newsstand app. Just have to be patient. I'm annoyed, in part, because they said my image was too small -- when their recommendation was to make it exactly the size I'd made it. There's an unnecessary delay happening because of that? Kind of dumb.

I think Apple has done the best job here, so far. We'll see how far we can push it.

UPDATE: 3 Weeks Later


Well, nothing has really changed. Apple is the only one who has put our news feed on public display.

Still waiting for Google to come back around.

And Kindle has produced no response at all, though, they do send me Kindle Publishing emails that I don't need.

I sent an email to the Kindle "Contact Us" email. I asked nicely how long it might be before I get approved or if it needs to be fixed. I got a response back the same day:

"I'm sorry for the trouble you had. On investigating further, I’ve identified that the delay is caused due to a technical problem. Our technical team is currently working on a fix. I just wanted to let you know that I’ll revert to you in 5-6 business days with an update."

Waiting....

UPDATE: 1 Month Later --


OMG, Progress! Kindle Blog Publishing has gone live. Yay! I'm so happy that they were serious about reviewing our magazine. It's there -- it has its own Amazon product web page. $0.99 for the monthly subscription. This is awesome.

Still waiting on Google now to come back around.

UPDATE: 1 Year Later -- 


I got recognized by all 3 of the news orgs, but I cannot say being part of their News libraries did anything at all for our traffic. Too bad.

Kindle Newsstand didn't do nothin at all.

Google Play Newsstand never did come back to include our blog in its sources, which the biggest disappointment. We are still listed, but it doesn't update very often.

Apple News did include us in its sources, but it is days behind in updating us. And it is difficult to add. You search for our publication's name, and give it a click on the heart. But, at best, it will include your stories way, way down in the newsfeed. But they got that horrible Fox News at the top all of the time. Makes no sense how they weight it. 

3/05/2017

AMP Pages and WordPress Plug-in

I started delving into the world of AMP pages today. It's basically a Google idea (along with others' input) where web pages are remade to load quickly on mobile devices.

This is a disagreement that I have had with my boss for years. He wants everything to appear on every page all of the time. I want to strip the pages down. We both want a couple of ads on each page, but the world doesn't want any ads at all. And so, our web traffic and earnings have both suffered since we move toward Wordpress and the world moved toward mobile.

Our site really does load terribly slow on mobile devices. It's unacceptable. We have so many ads and plug-ins on the pages, and then half the ads are video that starts automatically. Pain in the butt trying to get all the parts and interests to harmonize. But something has to change.

So, I'm looking at multiple different platforms where we can offer our content -- since people are not using their phones to browse our pages, and FB and Google seem to be moving away referring people to traditional HTML pages outside of what they call and acceptable "user experience."

OK. I give in.

So, what is this AMP?


Accelerated Mobile Pages are smaller versions of HTML pages, crafted in such a way that they will load fast and will be easy to use. But that means they also have a lot of restrictions and requirements put on them. There are several javascript imports that have to be done to get full functionality out of the AMP pages. Once you get started, it's actually kind of nifty what the pages can do, albeit, in a somewhat standardized manner as far as adverts and multimedia.

The idea is that AMP pages are alternate versions of your regular HTML pages. They are duplicates of your content, stripped bare of a lot of formatting and bloat.

What good is it to make all of the effort to have two sets of pages? I don't know exactly.

Google seems to be running an experiment here, like so many others. They also seem to have a sort of shadow Web, in that they are recommending AMP pages to mobile users who search for subjects. So far, I will have to wait to see how it affects our company site. It's not a positive yet. But the pages do load faster, somewhat. There's still a delay for videos and images, but you can scroll almost imediately, which is important, I suppose. Ads take even longer to load. But they do work. And a responsive AdSense ad does fill whatever space is available, which is pretty cool.

I'm also beginning to work with Google Play Newsstand, which is very interesting stuff. When I search for news, the results are very limited, and they seem to favor AMP pages in the results. I'll let you know if this boosts us or was a big waste of time....

How do AMP pages work?

Your regular HTML page refers to the AMP page, and the AMP page refers back to the HTML page.

From your regular HTML page, you add a line like this to your AMP version.

<link rel=\"amphtml" href="http://www.mysite.com/pathToMyAmpPage/" />

Then, in your AMP page, you will have a similar "canonical" link back to your AMP page.

<link rel="canonical" href="http://www.mysite/pathBackToMyHTMLPage" />

But, what if you have years and years worth of old pages and posts out there?

.... just going to skip ahead here to get to my main point....

AMP Pages Are Easy With Wordpress Plug-in

Okay, maybe there's no way for you to figure out how to recode your thousands of pages to make these alternate versions AMP-compliant or with matching URLs.

If you are using Wordpress, there's a super plug-in called "AMP by Autommatic".

It will do virtually all of the work for you, except for a few detaiils.

One problem we had was that my boss is fond of the Ninja Pop-Ups plug-in. He's never going to get rid of it. Unfortunately, it adds tons of extraneous code at the end of each HTML document. The AMP plug-in wasn't able to get rid of it. I tried for a whole day to figure it out, and then just decided to write my own AMP filtering script.

But then I found the answer: Open the AMP plug-in folder, find the amp.php file. Add this one line to the end of the code to make the pages AMP compliant -- without the Ninja NGG code.

add_filter( 'run_ngg_resource_manager', '__return_false' );

Monetizing with Advertising Revenue

Now, if you want to add in advertisements, you can do that in the single.php file. If you make changes to the file, make sure you keep a backup in case a future plug-in update wipes out your customizations.

To implement ads, you put this script in the head of the single.php file.

<script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script>

And then in the body, where you want the ads, you put in a bit of code like this one for Google AdSense:

<amp-ad width=970 height=250
      type="adsense"
 layout="responsive"
      data-ad-client="ca-pub-2662953475244486"
      data-ad-slot="6842974331" >
</amp-ad>

The ad-client and ad-slot settings come from your pre-established AdSense account.

There are different versions of the code specifications for the various ad networks.

What Didn't Work


I tried a few different types of settings with AMP Ads.

AMP has an experimental AdSense setup called "amp-auto-ads" and it is supposed to insert ads into your code automatically at various places in your text. Nope. Didn't work at all for me.

I was able to make a Doubleclick ad slot successfully, but it wants you to specify the width and height. On the Doubleclick side, you can specify multiple ad sizes, but doing this doesn't necessarily translate to a "repsonsive" situation on the display side. You must specify the width and height of the ad slot on the Amp single.php page. And, if you specify width=300 and height=250, then that is the only ad size that will be served. Any other sizes will not show an ad, or if you chose multiple ad sizes on the Doubleclick side, then you will get one of those specific ad sizes, maybe.

I tried adding layout="responsive" to the code, but that didn't work. It just made a really big square space, and then still only served the 300x250 ad.

I also tried adding other sizes using: data-multi-size="728x90,300x50", but that didn't have any effect either. The documentation doesn't explain what this is for.
Along with not being responsive, if you do get a 728x90 ad to show, and the phone screen is only 320px wide, then you have this long ad sticking out on the side and causing the page to scroll. Very ugly and annoying and useless as far as user interaction.

Errors, Errors, Errors -- So Picky

AMP is so specific in how the HTML and special elements are implemented. You'll have to put your pages through a couple of different Validators to get a full idea of what's happening. And also check for errors on Google for Webmasters. It will not allow certain types of legacy HTML or any in-line styles at all.