How to Dynamically Create Mobile Touch Shortcut Icon for Apple iOS and Android


Say your website has 2 users, each has a different avatar icon.  You want the user to be able to create a mobile touch / shortcut / favorite icon on their Apple iOS / Android device / Desktop.  It isn’t really a bookmark icon.


You need to create the icon of the right sizes and add the following to the head section of the HTML:

<meta name="mobile-web-app-capable" content="yes">
<link href="" rel="apple-touch-icon" sizes="76x76" />
<link href="" rel="apple-touch-icon" sizes="120x120" />
<link href="" rel="apple-touch-icon" sizes="152x152" />
<link href="" rel="shortcut icon" sizes="128x128" />
<link href="" rel="shortcut icon" sizes="196x196" />

Note that you have the flexibility of specifying both the url and image filename.

Here is a sample code for ASP.NET to generate the above <link> HTML:

protected void Page_Init(object sender, EventArgs e)
#region shortcut icons for iOS
AddTouchIcon(76, "apple-touch-icon");
AddTouchIcon(120, "apple-touch-icon");
AddTouchIcon(152, "apple-touch-icon");

#region shortcut icons for Android
AddTouchIcon(128, "shortcut icon");
AddTouchIcon(196, "shortcut icon");

private void AddTouchIcon(int size, string rel)
HtmlLink myHtmlLink = new HtmlLink();

myHtmlLink.Href = string.Format("~/Images/B{0}-{1}x{1}.png", CurrentUser.BranchID, size);
myHtmlLink.Attributes.Add("rel", rel);

switch (size)
case 76:
case 120:
case 128:
case 152:
case 196:
myHtmlLink.Attributes.Add("sizes", string.Format("{0}x{0}", size));


Don’t forget the <meta> tag for Android Chrome.

Of course you need to create and store those different images as well.


Note that creating the shortcut is both OS and browser dependent.  On iOS (iPad and iPhone), I had to use Safari.  I could not get Chrome to do it. 

On Android (Samsung Note 3), we had to use Chrome to create the shortcut to the home page.

On PC desktop, I used Chrome to create a shortcut.  Note that it is NOT the same as bookmark.




Windows 2012 FileZilla Client


After a window update check and installed, FileZilla Client cannot connect any more.

FileZilla client reports “Could not connect to server” after the connection has been established.


The IIS FTP log shows nothing.


I had to remove the FTP publishing from the site and add it back.

Windows Server 2012 MS FTP Server FileZilla Client “The supplied message is incomplete” via FTP SSL


I have a Windows Server 2012 running Microsoft FTP Service.  I use FileZilla Client to connect via FTP over SSL. 

When I try to upload a file, I get:

“Response: 550 The supplied message is incomplete.  The signature was not verified.”



Fix #1:

Fix #2:

Deploy / Migration a WordPress Site to Windows Platform

If you want do it manually.  This is the article for you.

There are plenty of paid solutions for this.  Two promising options include:

  • Backup Buddy ($50)
  • UpdraftPlus (The migrate add-on costs $30)

However, I am reviewing a FREE option here: Duplicator.

Here are some quick steps I used to create a windows 2012 production server at AWS:

  1. Launch an instance with Windows 2012 Base.
  2. Add IIS 8.0.  Be sure to select CGI in the role selection. How-to.
  3. Install WordPress via Windows Web App Gallery.
  4. It will create a MySQL database.  Be sure to click on the finish page link to copy the database information to your clipboard.  Paste that to a notepad and save it to a secure place.  You will need the database name, database username, and the password.
  5. Within IIS, recycle the application pool for the WordPress to make sure there are no files locked.
  6. Delete all folders within your newly created WordPress website physical directory (e.g. c:\inetpub\\)
  7. Install and run Duplicator on your source WordPress site.  You need to copy both the installer file and package file to the target website physical directory (e.g. c:\inetpub\\)
  8. Make sure your website has the appropriate hostname (e.g.;), not just “localhost”.
  9. Use a browser and navigate to
  10. On Step1: enter the saved database name, username, and password.
  11. Check “Table Removal” to delete existing tables in the MySQL database.
  12. On Step2, leave everything as it is.  For me, changing the New Settings URL & Path only screwed up the migration.
  13. Verify that your new production wordpress site actually works.
  14. Follow the steps to resave permalinks and clean up installation files.

One final tip: Everyone temporarily.

PowerShell Invoke-WebRequest Error


I have setup a scheduled task to run powershell to post to web api as UserX.

When I login as UserX and run the following in command prompt:

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.EXE “Invoke-WebRequest -Method POST

It returns the following error:

C:\Users\xxxx>C:\Windows\System32\WindowsPowerShell\v1.0\powershell.EXE "Invoke
-WebRequest -Method POST"

Invoke-WebRequest : The response content cannot be parsed because the Internet
Explorer engine is not available, or Internet Explorer's first-launch
configuration is not complete. Specify the UseBasicParsing parameter and try
At line:1 char:1
+ Invoke-WebRequest -Method POST ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotImplemented: (:) [Invoke-WebRequest], NotSupp
+ FullyQualifiedErrorId : WebCmdletIEDomNotSupportedException,Microsoft.Po



In my case, login as UserX and launch Internet Explorer and setup the initial configuration.