PHP on Windows Using WebMatrix Single Click Install

Running PHP to Test Websites on Windows PCs

PHP is a programming language that is popular for for adding powerful features to websites. What does PHP mean? PHP originally stood for Personal Home Page (after its inventor, Rasmus Lerdorf, wanted more features for his personal website), but now it stands for PHP Hypertext Preprocessor (creating a recursive acronym, which programmers like). PHP is easy to set-up and run on a Windows PC using the free Microsoft WebMatrix, an Integrated Development Environment (IDE) for building websites.

With the free WebMatrix package PHP on Windows is a single click install and allows website testing using IIS Express (the version of Microsoft Internet Information Server for Windows clients). This tutorial assumes that WebMatrix is installed and running on your Windows 7 or higher PC. If not see our article Develop a Website on Windows Using Microsoft WebMatrix to set it up and get a basic website going. Continue reading

hiberfil.sys Windows 8.1 Delete to Free Up SSD Space

Disable Hibernation on Windows 8.1 to Remove hiberfil.sys for More Disk Space

This article provides a tutorial on removing the Windows hibernation file to free up disk space when a small solid state disk (SSD) is used as the system drive. Please ensure you have a backup of any data and files you need to keep before changing system configurations. This article is for information only. System configurations can vary widely, therefore any changes made are at your own risk. If you’re confident with computers and understand the meaning of the hiberfil.sys file you can skip to the end of the article for the relevant command, which is to run powercfg -h off at the administrator’s command prompt, otherwise read on for a better understanding.

Background

Low Disk Space on a Windows SSDApart from low end systems a SSD drive is standard fitting to most computers and laptops. An SSD is also a common upgrade to older systems. A SSD is more expensive than a hard disk drive, as a result small capacity SSDs (less than 128 GB) may be used to keep costs down. Windows 8.1 requires 20GB for installation, modern computing demands soon eats into the the remaining space. A system can be configured to use a small SSD for the Windows system and a large multi-terabyte  hard drive for data storage (see Move My Documents and Other Personal Folders). Despite this, or if a second drive is not an option, the SSD may fill up quickly with normal use. Once the SSD is full the computer or laptop will not function properly, may not boot up, or show error messages at boot time. The worst case scenario is data corruption and loss, or even disk failure, when applications cannot handle running with no disk space available. Continue reading

List of IDEs for Android App Development, Which is Best for You?

Eclipse Alternatives for Android Application Development

An Integrated Development Environment (IDE) is an all-in-one solution that allows an application (app) developer (a.k.a. programmer) to perform the software development cycle repeatedly and quickly. That cycle is to design, write (or code), compile, test, debug and package the app software. For Android app development Google currently supports two IDEs (but read on for a list of alternative IDEs and languages):

  1. Android Developer Tools (ADT) – http://developer.android.com/sdk/index.html
  2. Android Studio – http://developer.android.com/sdk/installing/studio.html (in beta)

Both of these IDEs require the use of the Java computer language to write Apps. The first option uses the well established Eclipse IDE. The second option is based upon the IntelliJ IDE.

The Google IDEs and the Java language are not the only options for Android App development. Some developers might not need the power of Java or just don’t get on with C style languages. Some developers would like a single code base to support other platforms: Apple (iOS), Windows, Blackberry and the Web (HTML5). This is known as cross-platform development. Well there are plenty of alternatives to Google’s tools, see the following table for a list of Android app development IDE and computer language alternatives. Code can be written in different languages, like BASIC, HTML5 or Lua. Many of the alternatives are free to use, some open source, some restricted versions of paid for products. A few may not have a free version. Some will require the Android Software Development Kit (SDK) that comes with the Google tools to be installed. It is possible to install several IDEs onto the same computer to try them out.

List of Alternative Android App Development IDEs

Name Language C-P URL
AIDE (Android IDE) HTML5/C/C++ Yes http://www.android-ide.com/
Application Craft HTML5 Yes http://www.applicationcraft.com/
Basic4Android BASIC No http://www.basic4ppc.com/
Cordova HTML5 Yes https://cordova.apache.org/
Corona Lua Yes http://coronalabs.com/
Intel XDK HTML5 Yes https://software.intel.com/en-us/html5/tools
IntelliJIDEA Java No https://www.jetbrains.com/idea/features/android.html
Kivy Python Yes http://kivy.org/#home
Lazarus IDE+free pascal+LAWM Pascal Yes http://www.lazarus-ide.org/, http://www.freepascal.org/, LAWM
MIT App Inventor Blocks Yes http://appinventor.mit.edu/explore/
Monkey X BASIC Yes http://www.monkeycoder.co.nz/
MonoGame C# Yes http://www.monogame.net/
MoSync HTML5/C/C++ Yes http://www.mosync.com/
NS BASIC BASIC Yes https://www.nsbasic.com/
PhoneGap HTML5 Yes http://phonegap.com/
RAD Studio XE Object Pascal, C++ Yes http://www.embarcadero.com/
RFO Basic BASIC No http://laughton.com/basic/
RhoMobile Suite Ruby Yes http://www.motorolasolutions.com/US-EN/Business+Product+and+Services/Software+and+Applications/RhoMobile+Suite
Telerik HTML5 Yes http://www.telerik.com/platform#overview
Titanium JavaScript Yes http://www.appcelerator.com/titanium/titanium-sdk/
Xamarin C# Yes http://xamarin.com/

Table Notes:

  1. C-P, Cross-Platform, if No only Android supported, if Yes supports App production for other platforms (you will need to check if your required platform is supported).
  2. Language, HTML5 also includes the related technologies of Cascading Style Sheets (CSS) and JavaScript.
  3. AIDE and RFO Basic allows code to be developed on the go on Android devices. The code can be packaged into full blown Apps.

Support for Android Programming

This above list of free and commercial IDEs for Android shows that other languages can be considered when wanting to develop apps. Some of these Android options provide cross platform development from the same app source code. (For some IDEs the Android SDK will need to be installed.) Purchased commercial Android development packages will come with varying degrees of support from the company and the user base. Open source and free packages will be supported by the user and development community, and sometimes paid for support is available. Forums are a useful source of answers for Android development issues.

Microsoft are developing Cordova support for Visual Studio, see Microsoft’s Multi-Device Hybrid Apps web page.

Android NDK

Google provides for free the Native Development Kit (NDK) that allows programming in C or C++, see the Android NDK page for more information. Use the NDK to optimise time critical portions of an App. Google does not recommend it for general App development.

Setting Up Google’s Android IDEs

If you need help installing Eclipse or Android Studio see our articles. For a quick Eclipse set up see:

For Android Studio set up see:

For a step-by-step set up of Eclipse see:

Please let us know of any other Android development options you come across. It would be interesting to hear of any App successes from using any of the above packages, drop us a line at dan@tekeye.biz.

SoftwareDistribution Folder Delete in Windows

Clean Up The SoftwareDistribution Folder in Windows to Free Up Disk Space

A PC running Windows 8.1, Windows 8 or Windows 7 regularly performs a Windows Update. The updates improve security, fix bugs and add or change functionality. The files for the update download to a temporary folder from the Windows update site. Once the files have finished downloading in the background the update can be applied to the PC. The temporary folder is called Download under SoftwareDistribution in the Windows directory (unless in some rare occasions Windows is installed to a different directory), i.e. C:\Windows\SoftwareDistribution\Download. If trying to view this folder in Windows Explorer you may need to give permission and be logged in as an Administrator, as well as turning on Hidden items in the View menu (or via Organise and Folder and search options in Windows 7).

When the system drive runs low on disk space some free space may be reclaimed by deleting the Windows Update temporary downloads folder. Therefore a full SoftwareDistribution folder delete is not done, just the Download folder in that directory. The SoftwareDistribution\Download folder delete may fix problems that stop the Disk Cleanup utility from finishing. (The Disk Cleanup utility can take quite a while to finish and if still not finished after a few hours if may be stuck due to Windows Update conflicts.)

Apply Any Remaining Windows Updates

If the \Windows\SoftwareDistribution\Download folder delete is performed before Windows Update has installed existing download files then those files will download again. To stop this from happening ensure Windows Update has completed. Open Windows Update. In Windows 8 select Settings then Control Menu (or press the Windows key and X and select Control Panel from the menu that appears), enter Update in the search box and select Windows Update. In Windows 7 select Windows Update from All Programs off the Start button (or via Start then Control Panel then System and Security).

Select Check for updates to ensure that “No updates are available“. Otherwise Install Updates. (If low on disk space updates may fail to apply, try emptying the Recycle Bin, Deleting Browsing History in Internet Explorer or running the Disk Cleanup utility.)

Temporarily Stop the Windows Update Service

With all Windows updates applied stop the Windows Update service to safely remove the \Windows\SoftwareDistribution\Download folder. Run Task Manager (press the Ctrl-Alt-Delete keys all at once and select Task Manager or Start Task Manager from the menu). Click the Services tab. Sort the list by name (click the Name column). Browse to the wuauserv entry and check the Status column. If it says Running stop the wuauserv service. To stop the service select Open Services at the bottom of Task Manager (or the Services button in Windows 7 Task Manager).

In Services click on the name column to sort the service alphabetically. Locate Windows Update. Select Stop the Service from the left hand column above description, or double-click on Windows Update to open the properties and click the Stop button, then click OK to close the properties.

Using Windows Explorer rename the Download Folder in \Windows\SoftwareDistribution. E.g. bring up the context menu and slect Rename call it something like Download_old. Windows will create a new Download folder when it needs it, it will be empty until new Windows updates are available and are loaded.

On Windows 7 Restart the Windows Update Service

Windows 8 will start the Windows Update service when it needs it. In Windows 7 select Start Service in Services or double-click on Windows Update and select the Start button, click OK to close the properties.

Delete the Renamed Folder

In Windows Explorer delete the renamed Download folder. For example if it was renamed Download_old then delete Download_old. Permission may need to be given to do this, if so click Continue on the message box that appears.

The Windows Update temporary Download folder, under the SoftwareDistribution folder, delete has been completed.