Harry Bailey

Harry Bailey helps agency leaders fix the planning, ownership, and delivery issues behind overruns, rework, and delivery friction. With more than twenty years of experience in project delivery, agency leadership, and operational change, he supports growing agencies to make delivery clearer, less reactive, and easier to manage.

Android App URL Schemes

This is a functioning AndroidManifest.xml for linking via a local url scheme. In this case appname:// with any (*) following path

To test this you have to redirect to it. Chromium at this time does not understand or process app url schemes. So a 302 redirect from a trusted publicly available url is the best method for testing.

Note how the second intent-filter here is still inside the .MainActivity <activity>

Different categories and an additional <data> tag are used.

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.appname">

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>

    <application
      android:name=".MainApplication"
      android:label="@string/app_name"
      android:icon="@mipmap/ic_launcher"
      android:allowBackup="false"
      android:theme="@style/AppTheme">
      <activity
        android:name=".MainActivity"
        android:label="@string/app_name"
        android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
        android:windowSoftInputMode="adjustResize">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <action android:name="android.intent.action.DOWNLOAD_COMPLETE"/>
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
          <intent-filter android:label="@string/app_name">
              <action android:name="android.intent.action.VIEW" />
              <category android:name="android.intent.category.DEFAULT" />
              <category android:name="android.intent.category.BROWSABLE" />
              <data android:scheme="appname" android:host="*" />
          </intent-filter>
      </activity>
      <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
    </application>

</manifest>

Pressure and pragmatism lead to more progress

There are reasons that tight deadlines and huge pressure often get results.

The first is that people get immediately more pragmatic about what the actual requirements are, and agree to do less. Less can be done more quickly, and completed items are less likely to be subjected to a full loop of subjective tinkering.

The second is that when faced with a deadline, and some pressure to achieve it, people focus on just the single most important task.

The single most important thing to do right now is abundantly clear in these high pressure situations.

Continue reading

Supporting Manchester Metropolitan University

In 2007, when I was still pondering over what to do with the rest of my life, I was encouraged by family to become a resident of Manchester Metropolitan University’s business incubator.

At the time it was called Innospace and based near the coach station in the centre of the city centre. Although the space was pretty basic, the support was great, networking with other small exciting businesses was unavoidable and the rent was almost zero.

Fast forward ten years and after occasionally keeping in touch with the team who kept Innospace ticking over, I decided it was time to give something back for all the support I was given when first finding my feet in business.


So for a few years now I’ve been speaking to MMU business school students about my story and how I’ve managed to enjoy working for myself and running my own companies for so long. The first couple of years of talks I stuck to my own experiences and failings. In the last couple of years I’ve broadened my presentations to be about specific learnings or recommendations. Life skills and awareness. What a student’s expectations should be and what abilities they should nurture to support their own journey.

This year I’ve stepped my support up again. I’ve squeezed in two talks to students and also taken part in the yearly dragons’ den event.

My first talk was called “Doing Less”. As the title suggests it is about creating a successful business without burning yourself out. Retirement in its current form is unlikely to exist when these people reach retirement age, and a more balanced life, with flexibility, quality of life, and treating money as a tool rather than a target is required.

The second was on bootstrapping a business. Only a small percentage of new businesses are funded by banks and investors. This talk is about the opportunities, limitations, pitfalls and benefits of starting with nothing and building a business yourself.

The dragons’ den final was a pleasure to be a part of. Hosted at BManchester—a new banking concept from the group which includes Yorkshire Bank—on Market Street Manchester, it was a modern and relaxed feeling with various experienced and insightful judges at my side.

The 7 teams offered a range of business ideas. The quality of business strategy and presentation was high, and the judging was tough.

We finally agreed upon two highly commended businesses and a winner. We also commended three individuals on various aspects of their approach to the process.


I’ve enjoyed all aspects of the support I’ve been able to offer MMU in 2019. I see it as a personal responsibility to give back to those who’ve supported me, and to offer insight and knowledge which helps Manchester to continue to encourage small businesses to be founded and thrive.

I’m looking forward to supporting MMU again next year, and other institutions and organisations in the near future.

Security of WHM backups to an AWS S3 bucket

When you give your Web Hosting Manager (WHM) the ability to send a copy of your backup to Amazon’s AWS S3 service, you have to hand it a Key and Secret that give it that permission.

The worst option is to hand over a Secret and Key related to your own log in.

The best is to:

  1. Create a policy which
    • Only gives access to a single bucket
    • Only allows the least access required for the task
    • Only allows connections from trusted IP addresses
  2. Create a Group to connect the policy to
  3. Create a user (for the WHM) to connect to the group

For validation of connection to S3 WHM currently requires the ability to write objects, list all objects in a bucket, delete objects. Now for some this is frustratingly more than you want to hand over. In theory WHM could make do with just the ability to write to the bucket, but at the moment we have to make all those abilities available.

Luckily, the fact we’re also limiting by IP and then Secret and Key—which WHM encrypts when you submit them—should make it highly unlikely anybody else will be able to abuse the ability to delete objects.

Here is the example policy that I have in place. Feel free to copy, personalise and use:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "WHMBackupAccess",
            "Effect": "Allow",
            "Action": [
                "s3:PutObject",
                "s3:GetObject",
                "s3:ListBucket",
                "s3:DeleteObject"
            ],
            "Resource": [
                "arn:aws:s3:::YOUR_BUCKET_NAME",
                "arn:aws:s3:::YOUR_BUCKET_NAME/*"
            ],
            "Condition": {
                "IpAddress": {
                    "aws:SourceIp": "YOUR_SERVER_IP/32"
                }
            }
        }    
    ]
}

If you’re in need of help putting this all together, let me know and I might expand this post to include how to do the setup inside WHM and the AWS console.

.htaccess redirects based on date and time

A useful trick for implementing maintenance windows and redirects without having to use a php or similar script is to check date and time in .htaccess files or use it to build a redirect url.

Date and time values in .htaccess come in the form %{TIME_XXXX} where XXXX is the type of date or time you want.

So if you want to redirect a generic url to one which contains today’s date, you might use:

RewriteRule ^posts/today$ /posts/%{TIME_YEAR}-%{TIME_MON}-%{TIME_DAY}

That would result in /posts/today being redirected to something like /posts/2015-08-27

If you wanted redirect a page after a date (and time) is passed you could use something like the following, where if the date and time is passed 9am on 27th August 2015 the redirect will happen. We use a simple number comparison of turning the date into an integer and then comparing it.

RewriteCond %{TIME_YEAR}%{TIME_MON}%{TIME_DAY}%{TIME_HOUR} >2015082709
RewriteRule ^$ /destination/url.html [R=301,L]

The following would only redirect until a specific time (10.22am on 27th August 2015)

RewriteCond %{TIME_YEAR}%{TIME_MON}%{TIME_DAY}%{TIME_HOUR}%{TIME_MIN} <201508271022
RewriteRule ^$ /destination/url.html [R=301,L]

The following would only redirect between two specific dates (20th July 2015 and 27th August 2015)

RewriteCond %{TIME_YEAR}%{TIME_MON}%{TIME_DAY} <20150828
RewriteCond %{TIME_YEAR}%{TIME_MON}%{TIME_DAY} >20150719
RewriteRule ^$ /destination/url.html [R=301,L]

The options you have for %{TIME_XXXX} values are:

TIME_YEAR // current four-digit year (e.g. 2015)
TIME_MON // current month (01-12)
TIME_DAY // current day of month (01-31)
TIME_HOUR // current hour (24 hour clock) of day (00-23)
TIME_MIN // current minute of hour (00-59)
TIME_SEC // current second of minute (00-59)
TIME_WDAY // current week-day, 0-6 where 0 is Sunday and 6 is Saturday.
TIME // a formatted string representing the Unix timestamp (in seconds) e.g. 20150827112234

Helpful? Say thank you.

Help me keep these guides up to date by showing your apprechiates with a small donation. Scan the QR code below, or buy me a coffee here.