It is nice to see streaming companies getting artists involved, but how about paying them fair compensation?
You cannot have a $10/month “all you can eat” song buffet. For most listeners you are not paying fair royalties. Forget Sound Exchange and their $35 per 10,000 songs played; these rates push the PRO compensations levels way below 1/3 of that.
Fixed fee monthly streaming services is a failed business model.
Pandora Looks for a Way Out of the Doldrums. Cue Questlove. – NYTimes.com
Pandora Looks for a Way Out of the Doldrums. Cue Questlove. – NYTimes.com
This kind of thinking in the streaming music industry is what is screwing music creatives (artists, songwriters, and everyone else involved).
Unlimited music at $5/month means that for the typical listener your favorite artists are earning hundreds of dollars for a million plays of a song.
Attracting listeners by screwing artists is NOT a good business model.
Amazon wants to sell a cheaper music subscription service that will only work on its Echo player
Here are some “crib notes” on setting on an Amazon compute instance based on my most recent research (Aug 2016). You may find some of these notes useful or interesting or just plain boring geek-stuff. I’m sure I will find them in 6 months from now when I Google “what is AWS HVM” or something equally obscure.
M3 versus M4
Amazon classifies their EC2 instances by general “compute types” or “profiles” for how the virtual machine is configured. They have things like “T*” for “burstable performance” , “M*” for what I call “moderate usage”, and a few others like C* for “crazy CPU cycles” and “X*” for “X-Men Memory Monger” if you need to track the thoughts of every person on earth.
The most common profiles I like to use for standard production servers is the “M-class”. Because it is faster than the regular 3-series… no , wait, that is BMW. Regardless the M-Class is good for decent disk + network performance and comes in reasonable “sizes” for most daily production sites.
M3 is the older generation EC2 class and uses “local SSD drives” to store your operating system and software. They tend to have slightly slower CPUs and less memory than the M4 equivalents. Also if you terminate and permanently delete the instance all that software and configuration stuff you did goes away. Forever.
M4 is the newer generation and is only “EBS” (Elastic Block Storage, not to be confused with Elastic Beanstalk) based disk drives. When the machine is running this works just like a local SSD drive but it is stored in a more resilient “disk farm”. The contents of an EBS drive can also survive an EC2 instance termination ; this means you can kill an older M4 instance but keep the drive intact and re-attach it to a new instance. Think of it like pulling out a physical hard drive from a physical PC and putting into a new physical PC – but with a lot less hassles on driver configurations and other “gotchas” that normally accompany the physical-compute world.
I recommend using M4 instances for new servers.
On Demand versus Reserved
You can either pay for your servers each month (On Demand) or pre-pay for a year (Reserved). If you pay each month you pay a stiff penalty for the ability to “stop using AWS whenever I feel like it”. Turn off your server and the bill goes away. Nice. But expensive.
If you plan on running your server for more than 9 months then reserved is almost always the better option. I prefer the 1-year partial reserved payment. Here you pay a chunk up front on day 1 – usually equal to several months of “On Demand” (pay-as-you-go) fees in return for much lower ongoing monthly fees.
In the case of an M4.large instance the fees are currently $956 up-front + $130/month for reserved ($2,516/year = $210/month) versus $352/month ($4,224/year). You pay a $1,708 premium if you decided you want to go “month-to-month”.
HVM versus PV
When you create your EC2 server you will need to pick your operating system. These are pre-packaged with the base OS and possibly pre-installed software in what is known as an “Amazon Machine Image” (AMI). All AMIs come in two basic “flavors” that determine how the machine configuration (virtual hardware) is created.
HVM is a harward virtual machine. HVM-based AMIs take advantage of the AWS virtualization at a lower-level of the operating system and tend to provide superior performance.
PV machines use paravirtualization which is an older methodology.
When possible choose the HVM image and use a newer AWS EC2 instance such as the M4 instances.
Over the past 48 hours I spent time between numerous meetings writing another WordPress Plugin, a WooCommerce Report Modifier that we need for our Store Locator Plus store. I’ve not written a “new from scratch” plugin that was not related to the Store Locator Plus system for quite some time. It gave me a new perspective on the entire WordPress plugin coding adventure.
Open Source Is Great
One of the biggest things I re-affirmed about coding plugins for WordPress is that I LOVE open source. As a developer this love for open source has NOTHING to do with price. I don’t love it because the prices of open source are often lower than “regular” software; in face I think that is on of the biggest problems with open source is the stigma … or general idea that users THINK… the products should be free or darn-near it. What I love is that I can both FIX things and SEE HOW THEY WORK. The fixing and the seeing were both key elements in being able to create a plugin that did what I needed in just over a day versus weeks or months waiting for the people at WooCommerce to do something for me.
Starting A Plugin Is Easy
I also realized that despite my difficulties in writing my first plugin years ago, the entire process is actually fairly easy and does not to be as complicated as many people make it out to be – even when using well defined classes in place of procedural code (please, please , please do NOT write your plugins using “inline” or procedural code). For a private plugin you don’t even need to create a readme.txt file. Create a directory in the plugins folder of WordPress, name a file the same thing as the directory with a .php extension and add a few lines of code.
Since I could read the original source of WooCommerce I knew exactly which hook I needed to invoke and whipped up the first function in a few minutes.
Hooks and Filters Are Paramount
Speaking of hooks, learn about them and USE THEM. Implementing WordPress hooks and filters is critical to properly augmenting anything in WordPress. Since most well-crafted plugins, including my Store Locator Plus base plugin and add on packs, and themes also sprinkle hooks liberally throughout their code. In my case I could find a WooCommerce hook that allowed me to modify the product report without messing with the original code from WooCommerce. Since WooCommerce was open source I could read the report-generating code and find the exact hook I needed within minutes. Very nice.
Plugins and Plugin Components Are Not Created Equal
In the bad category, I was reminded almost immediately that not all plugins or plugin modules are created equal. WooCommerce is a beast that has lots of code with lots of modules written by different authors and includes obsolete elements and dead-ends; much like Store Locator Plus. This means that outdated practices are built into the code as are some algorithms that were created during the “hey, I’m learning WordPress coding” phase of plugin development. Typically that means little-or-no ability to modify that piece of code and change how it works because there are NO hooks or filters to tap into. Boo!
Inconsistent Plugin Architecture = More Plugins
The lack of hooks and filters is true with MANY of the WooCommerce native elements like the Customer List report or Orders search interface. That meant recreating an exact copy the Customer List I wanted to modify and adding in hooks, filters, and feature to my “Extended Customer List” report. That means I have a plugin that shares 70% of the Customer List coding from the WooCommerce product which in turn means my live site now has over 100 lines of code installed that should never have been necessary. Multiply that by the 48 plugins I need to run my site properly.
More plugins = more bloat = more maintenance and security issues.
The lack of a true coding standard for plugin developers , or maybe it is a training issue, causes a LOT of repeat work in the WordPress plugin ecosystem.
Documentation Is Inconsistent
As you delve deeper into the WordPress plugin coding world you soon realize not all documentation is created equal. Some WordPress functions are well documented internally and externally with full phpDoc comments a presence on the “old and outdated” Codex and on the “new and improved” WordPress Code Reference. Many functions, however are incomplete at best with no examples and little-or-no community knowledge on the WordPress Code Reference site. Often you end up jumping back to the older Codex site. In some cases, rather infrequently with WordPress Core, you find functions or classes that are not even listed or documented on EITHER site or if they do appear through the coding “fu” on the WCR they have zero useful information thanks to the lack of proper phpDocs. In the end you read code and trace execution (thank you again Open Source).
Plugins are exactly like that but worse. Many, including the super-popular WooCommerce plugin, have sparse-if-any online documentation on CODING for the product. Almost NONE have any easy way to ferret out those hooks and filters. You always end up spending time tracing code execution to find those “nuggets of knowledge”.
Contributing Code Is Futile
Well, mostly futile. If you code plugins or themes for long enough you will find a bug in SOMEONE ELSE’S CODE. Most organizations have a way to report the bug and contribute your patches to fix the bug back to them so they can improve their products. Most organizations take their sweet time getting around to it. Often your patches never get put in place.
My personal experiences: Store Locator Plus was born from over 100 patches to a plugin that were submitted to the author but never integrated despite a few-dozen emails to the author. In fact the response was “I’m on haitus”. For over a YEAR. My original fixes to dbDelta, admittedly a critical component of WordPress that warrants extra care-and-attention, took OVER TWO YEARS to finally make it into core. Patches to bbPress and over a dozen other lesser-known plugins were never even looked at. WooCommerce? We’ll wait and see.
It would sure be nice if plugins, especially those hosted on the WordPress Plugin Directory, had a formal and consistent patch submission system. Even better, a community “vote” to allow a “master of all plugins” to accept the patches on behalf of a MIA plugin author. I’d check off the “allow WordPress Plugin Team to integrate patches” on my repo.
Internal Use Only Components Are Bad
WP_List_Table. It has been clearly marked as “for internal use only”. Yet nearly any significant plugin out there is running a class that extends it. Which is fine except you are NOT SUPPOSED TO DO THAT according to WordPress. You are supposed to clone the entire class (more duplicate code – see above) and build off of that.
Yes, I get why that is, but that kills one of the key concepts that makes WordPress great – the ability to extend and augment with hooks and filters not copies-and-hacks.
PHP Versions Are A Pain
The WordPress Plugin Team announced, just yesterday, that you should run PHP 7 lint against your code. VVV runs PHP 5.5. WordPress itself says PHP 5.2 is fine. Most hosting companies are running PHP 5.5 or lower.
When you code using a version of PHP newer than 5.2, as I do on my VVV box, you have a high risk of creating a plugin that passes all testing but as soon as someone runs it on PHP 5.4 it crashes. Hard.
<!– start sidebar –>
WordPress must set a baseline standard for PHP. If it is 5.2 that’s fine. You cannot have your plugin team recommending PHP7, your core team recommending a development environment that defaults to 5.5, and tell hosting companies PHP 5.2/3/4 are fine.
IMO WordPress needs to set the standard to PHP5.6 which they ‘recommend’ but do not require. When 28% of the Internet is using your technology you can dictate what version of PHP is running nearly everywhere.
<!– end sidebar–>
Overall It Is A Good System
In general the system WordPress has in place for plugin development is pretty darn good. I think it is one of the biggest reasons WordPress has gained market share and has so many plugins available. The system needs work. The code needs work. But in reality, what big world-changing products don’t need to evolve on a continual basis.
At the end of the day I could get what I wanted to accomplish done in just over a day. I have my new report of customers that I can export to a CSV file, sort, hide columns and do all of the things I needed to get a project done. (BTW, I’ve posted my WooCommerce Report Modifier on my store in case anyone else wants to check it out.)
Open source made that possible. At the end of the day that is the BEST argument for why I think Open Source is the best option for releasing software. Now if we can just convince the consumers that it is worth MORE TO THEM than closed-source system. Open Source software should be priced HIGHER than other solutions not “Nearly Free”.
International tribunals and organizations have ZERO power these days especially over super power nations like China. China has become far too powerful to confront with military enforcement of the findings.
Most corporations around the world sold their soul to China years ago in the name of profits. Nearly every item you buy, including those American flags we all were waving on July 4th, come from China solely to keep prices down and profits up.
If the world wants China to abide by a ruling against their egregious and aggressive behavior in the South China Sea it needs to start with economic ramifications. Not federal trade restrictions alone, but American corporations pulling manufacturing contracts from China. Preferably back to the USA but anywhere but China. It will be a long road, but if it doesn’t change China will soon be the world’s largest and most powerful Super Nation. The most powerful countries make the rules.
Beijing’s South China Sea Claims Rejected by Hague Tribunal
The New York Times
The panel delivered a sweeping rebuke on Tuesday of China’s behavior, deciding that its expansive claim to sovereignty over the waters had no legal basis. Read the full story
Shared from Apple News