How to hide the keyboard on return for Swift Xcode apps

Xcode with Swift

Today, I will look at hiding the soft keyboard from the screen when entering information into a text field. It’s not a problem if you have a hardware keyboard which is the default for the Xcode simulator on the Mac or when you run on a device with a Bluetooth keyboard as the soft keyboard does not show. The issue is that once you are in a UITextField, the keyboard does not get dismissed by default and takes up the bottom section of the viewing area which quite often hides other controls. When I have finished with the form and select “Return” I expect the keyboard to vanish until I

Using Excel’s Paste Special Operations

Excel Paste Special

In this article, I broadly cover Microsoft Excel’s Paste Special functions with an example using the Operations of Paste Special. Before we get to an example some background is needed. Each cell in Microsoft Excel is made up of three parts; values (data), formula and format. Copying and pasting from one cell (or range of cells) to another copies all three exactly as they are. The formula remains the same (but relative to the new cell position), the values/data remains the same (unless it is formula driven) and the format remains unchanged (unless it is conditional on the data). The cell (or cell range) does not need to be copied

Getting started with HTML5 offline web applications

HTML5 Offline

This article explains the HTML 5 “offline” feature, which gives website creators an easy method to dictate what a browser should store for use when internet (network) connectivity is unavailable. It explains the default HTTP caching method that browsers use and then how to use the HTML 5’s application cache, with a short example web application that shows an offline mode image if there is no network connection. In this article, I’ll use “application” to mean any website, game or other type of product that is delivered via the internet to your browser. I will use “network” to mean a connection to the server that hosts the application (which would

What does business strategy mean to you?


Over the years I’ve heard many things described as strategy. The word seems to have become symbolic of anything to do with a business achievement. That’s not what I have a problem with; it’s the “anything” rather than “everything”. The “anything” more often than not, includes one thing. For example, the company goal or the project plans. I have also heard budget setting or a margin percentage increase target described as “our strategy”. In this article, I will attempt to give a clear picture of what I believe a business strategy is and the sort of questions you need to ask yourself when defining it. What is in a business

Convert or flip data between rows and columns in Excel

transpose rows to columns

One of the things that I have to do periodically and always forget how to do is converting rows of data to columns or columns of data to rows. This quite often occurs when I’m collecting data from different sources and want to put them all in the same format in Microsoft Excel. From the 2007 version of MS Excel (I think), there has been a neat feature to enable you to do this. The reason that I always forget how to convert from columns of data to rows and vice-versa is because I expect it to be on the ribbon as a commonly used function but it is not.

Catering for colour blindness in Windows 10


I came across a neat feature of Windows 10 quite by accident this weekend that will help me with my colour blindness. However, before I found it, I had a lot of frustration trying to “fix” the problem. I was typing away on my computer Friday night and it was just before 3AM when suddenly my screen turned black and white (greyscale). I looked in Windows Color Settings but that was greyed out as it is controlled by my GeForce graphics card software. I had a quick look in the Nvidia Control Panel but couldn’t see anything that would have any effect. I figured maybe a restart would sort it

Switching from HTTP to HTTPS in WordPress


This short article goes through the simple steps to move your WordPress website from HTTP to HTTPS yourself without using plug-ins or other tools. With the increased pressure from internet browser manufacturers to move content to a secure web, the switch is important for those wanting a higher search ranking or performing any action other than basic information. There’s no magic involved in this move and I don’t go into details of all the things that you can do, I just show you how to get your website up and running after you have a secured certificate installed. Getting started Make sure you take a site backup and that includes

Five Quality Assurance Testing Techniques


We had a very minor release of an application last week as the front end application and the back end procedures were operating double standards. The front end was asking for a value greater than or equal “>=” to a certain value and the back end said the rule only applied to values greater than this amount “>”. It took hours to figure out what was wrong and a minute to fix it. We were looking at the changes that we made in the last release suspecting that a bug must have been introduced at that time. This is because the issue had never occurred before and the application is

EU General Data Protection Regulation (GDPR)


I’ve been meaning to write for a while from the perspective of website owners and operators about the new European Union’s (EU) General Data Protection Regulation (GDPR) which comes into force May 25, 2018. This is following my previous post “What effect does the GDPR have on my website” in which I looked at cookies. I’ve seen articles pointing out the highlights of GDPR just rewriting the articles using different language so I’ll try not to do that. I will keep it brief, using simple language and where possible will use examples that mean something to website owners. I might not cover everything but hopefully, I will capture the main

Entity Framework Code First Example

Entity Framework Code First

In this article, I will walk through an example in an attempt to show Entity Framework Code First. In this Code First exercise, I will install SQL Server LocalDB, create a Visual Studio project, install Entity Framework and then create the database objects (including some test data) through the Visual Studio project using Entity Framework Code First. To start off it is probably worth mentioning what the Entity Framework is and why it is important in software development and also what Code First means. In the past, developers coded either directly from their application to a database. The application would either populate tables or call database server functions or procedures