bash windows 10 rsync and ssh like a boss

I was really impressed with the bash WSL on Windows 10 Creators Update. It worked to backup some web sites from Amazon EC2 using the rsync and ssh scripts untouched. I just copied across the ~/.ssh directory and voila! I can now rsync over ssh to pull backups from my web sites down to my windows machine.

This suddenly makes the big honking disk and windows 10 a far more developer friendly machine. Why didn’t microsoft do this years ago?

bash windows 10 rsync and ssh like a boss

bash on windows – LAMP stack lives !!

2017-04-29_15-58-49

I am becoming more and more impressed with the WSL for Windows 10 Creators Update.

I installed apache and mysql and so far it appears to be working just fine and dandy !!

sudo apt-get install apache2
sudo apt-get install mysql-server
sudo apt-get install php libapache2-mod-php
sudo apt-get install php-mysql
sudo vim /etc/apache2/apache2.conf

add

Servername localhost
AcceptFilter http none

sudo /etc/init.d/apache2 restart

sudo service mysql restart

and voila!, you have a web server running.

http://localhost is alive.

So it really is behaving like a real ubuntu shell. Wowser. Windows just became more of a developers dream.

bash on windows – LAMP stack lives !!

Making a WordPress web site disappear

It has come time to make the WordPress sites I made for my kids disappear off the public internet. They are getting old enough that their friends are finding their sites using google searches.

Here is what I did.

  1. Password protect the entire WordPress site
  2. allow a hole in the password protection to allow robots.txt to still be accessible.

If you password protect the whole site, then archived copies of the site will contine to show at the Internet Wayback Machine. So you still need the robots.txt to be accessible, but it should block all web archivers from indexing the site.

Sample robots.txt

User-agent: *
Disallow: /

This tells all web robots to go away, and indeed once this is active, the internet archive stops showing any of the snapshots that it has collected over the years.

2016-07-25_15-02-57

I used SiteGround’s cpanel tool to password protect the whole tree containing the blog.

That resulted in the following Sample .htaccess contents

AuthType Basic
AuthName "EP"
AuthUserFile "/home/xxx/.htpasswds/public_html/elliot.pascoe.biz/passwd"
Require valid-user
<Files "robots.txt">
Allow from all
Satisfy any
</Files>

I added the Files paragraph to allow the robots.txt to be visible. cf;

user@shell: curl https://elliot.pascoe.biz/robots.txt
User-agent: *
Disallow: /

So far so good, the site will soon disappear out of Google and be only visible to those to whom I will share the password.

 

Making a WordPress web site disappear

What is the best WordPress Blogging Client?

Here are some links to go with the talk I gave to the July 2016 WordPress Perth meetup that covered WordPress Blogging Clients.

Here is the PDF of the Talk – WordPressBloggingClients.pdf

1. Windows Live Writer

Live_Writer_2011

Officially supported as a WordPress.com authoring tool

Can still download and use on Windows 10 as part of Windows Essentials 2012

WLW Introduction

No longer being maintained.

2. Open Live Writer

open-live-writer-600x337

http://openlivewriter.org/

  • Fork of Windows Live Writer.
  • Open sourced via the .NET foundation.
  • Windows Only
  • Actively developed, but slow updates.
  • Check back in a few months.

3. WordPress.com Desktop (Calypso)

07-laptop

https://apps.wordpress.com/desktop/

Desktop application for Windows/OSX/Linux that runs very similar code to the wordpress.com `create a new post’ page and other wp-admin pages.

  • Actively being developed, but still in beta.
  • Uses the new WP REST API.
  • Drafts are stored in your wordpress post drafts area
  • Needs the Jetpack plugin to connect your blog to wordpress.com for authentication to work.
  • Faster editing and more convenient that the wp-admin pages to create a new post.

4. Others

OneNote

650x283xhth52-650x283.png.pagespeed.gp+jp+jw+pj+js+rj+rp+rw+ri+cp+md.ic.-FWXk04_jn

https://www.onenote.com/

  • Great cross platform support and syncing of text between platforms.
  • OCR and Screen grabbing clients etc.

WordPress for Android/iOS.

https://wordpress.org/mobile/

  • If you can stand typing on a glass screen or an external keyboard then WordPress’s clients for mobile and tablet are an option.
  • Great for uploading photos from your phone for eg.
  • Check to see how well they share drafts and upload media etc.

So Which is Best ?

Start by reading the power point …. and then you’ll realise that there are too many dimensions on any comparison matrix. Ask yourself what is your most important criteria?

  • availability
  • speed
  • support
  • features

For me speed is number 1 and cross platform / sharing drafts is next most important.

Windows Live Writer was FAST for editing, created clean HTML but never was cross platform.

WordPress.com Desktop is cross platform, but still kinda slow and a bit clunky, and it tends to butcher the HTML. It does centally store drafts which is a bit plus and enables great cross platform authoring.

So no “1” is best, try them all and see what you like most.

 

 

 

What is the best WordPress Blogging Client?

ChristianToday.com’s truly awful website

So I clicked through from Google to day to a link on christiantoday dot com to read about a new movie starring Hugh Jackman that I hadn’t heard anything about. Sadly one of the top links was just such an awful awful web browsing experience that I feel compelled to highlight it to you all.

Sir, you do not deserve traffic from Google. Your site is a cess pool of ads and poor quality links, inter page ads and most pathetically – no actual content. The content is hidden behind some scam to fill in a survey.

I have no idea whether there is any actual content on this page !!

Perhaps Google should declare these sorts of pages as extremely low quality content and not rank them in the results.

Here below are 20 something screen shots to show how miserable the experience was. Please scroll and scroll and feel the pain.

Screenshot_20160619-141032Screenshot_20160619-141041Screenshot_20160619-141050Screenshot_20160619-141057Screenshot_20160619-141104Screenshot_20160619-141202Screenshot_20160619-141211Screenshot_20160619-141219Screenshot_20160619-141226Screenshot_20160619-141238Screenshot_20160619-141246Screenshot_20160619-141253Screenshot_20160619-141259Screenshot_20160619-141306Screenshot_20160619-141311Screenshot_20160619-141318Screenshot_20160619-141331Screenshot_20160619-141342Screenshot_20160619-141355Screenshot_20160619-141401Screenshot_20160619-141408Screenshot_20160619-141415Screenshot_20160619-141422

ChristianToday.com’s truly awful website

Fast Charging Ad popup on Galaxy S7

I was a bit shocked to see an advertisement pop up recently when I plugged my Galaxy S7 Edge into the supplied Samsung Fast Charger. The popup asked me if I wanted a Accelerated Charging Boost for 1 minute – and had some ads at the bottom.

Screenshot_20160521-231803

It turns out that this is a feature of ES FileExplorer, the excellent, free, but now slightly creepy file manager for Android.

To turn this feature off, either unistall ES File Explorer, or go to the settings in ES FE and turn off the “Charging Boost” feature.

[update]: seems that we have been heard – ES File Explorer Update Removes The Adware Charging Screen

Fast Charging Ad popup on Galaxy S7