Author: admin

MediaWiki composer extensions

MediaWiki composer extensions

With certain extensions using MediaWiki you may need to use composer. Two examples are Semantic Compound Queries and Maps. This example is using Windows Server 2012 R2 running WAMPserver. Obviously you will need to have composer installed in the PHP version you are using.

To install this using composer open the compose.json in the root of the Wiki:

You will see a lot of code like this:

Find the line:

“mediawiki/semantic-media-wiki”: “~2.5”

In the example for Semantic Compound Queries the extension page tells you to add the code:

    "require": {
        "mediawiki/semantic-compound-queries": "~1.1"

But in reality, we are only interested adding

“mediawiki/semantic-compound-queries”: “~1.1”

Add this line above the Semantic MediaWiki line:

“mediawiki/semantic-compound-queries”: “~1.1”,

Note, we now have a comma on the end of the line, this is key:

Save and close the composer.json file.

If you have already been running commands in the command prompt, and crucially if you have set the path anywhere, close the command prompt and reopen it.

Change the directory to the root of your Wiki and run:

composer update

Then run:

composer require mediawiki/semantic-compound-queries:~1.1

Obviously replace the semantic compound queries as detailed on the extensions page on MediaWiki.

Install Semantic MediaWiki on a Windows Machine

Install Semantic MediaWiki on a Windows Machine

You can find instructions on Semantic MediaWiki site on how to install on Windows, but it is advised that Semantic MediaWiki is not supported for Windows environments. It also misses a few areas that need to be included to ensure it installs. This is how I did it:

Ensure you have composer installed and it is in the PHP version you are using.

Remove or comment out any Semantic MediaWiki lines in the LocalSettings.php

Add the line:

enableSemantics(‘localhost/wiki’); /**adjust to yours*/

Open the command prompt, change the directory to the root of your wiki and run:

composer update:

Next run:

composer require mediawiki/semantic-media-wiki “~2.5”

Verify it has installed by going to the Version page:

Job done, on the off chance things don’t go to plan, change the directory to the maintenance folder. With Windows you will need to set the path to the PHP version by running:

set path=path/to/PHP/install

Then run:

php update.php –skip-external-dependencies

Job done.

To make Semantic MediaWiki more useful you may want to install other extensions to work with it, the five I use are:

  • Page Forms
  • Semantic Compound Queries
  • Semantic Drilldown
  • Semantic Internal Objects
  • Maps

Page Forms, Semantic Drilldown and Semantic Internal objects are fairly straight forward to install, just follow the guidance on the extension page. But Semantic Compound Queries and Maps are a little more complex. They both require the use of composer.

See the MediaWiki composer extensions for more details.

MacBook Pro GPU AMD Failure Method 1

MacBook Pro GPU AMD Failure Method 1

So a friend has an issue with an issue where his MacBook Pro late 2011 was not booting. Looking at the issue and finding information online, it turns out the AMD card seems to fail on MacBook Pros. But thankfully it can be programatically bypassed.

A lot of information I was finding insisted on using ArchLinux. I did get ArchLinux booting on a Surface Pro Virtual Box, but just couldn’t get it working on the Mac, it just kept either not recognising that boot media was inserted into the USB or CD drive. I also tried using Gentoo, but I couldn’t get passed the Grub.

But eventually I sussed it out.

This is a short video of what it was like, sped up, to what it looked like once it was up and running. When I first attempted to boot up before it failed it took six minutes to reboot, once the changes had been made it booted in less than a minute.

WARNING – these worked for me, they may not work for you, ensure you take a full back up before performing any of these tasks, the read only disk image will be faster, but the read-write is better, it still took me two days to perform a backup for a 500GB disk. If your Time Machine is available, use that. The author of will not be held liable for loss of data or broken machines. Do not perform these tasks if you are a novice.

Boot up in single user mode by holding down Cmd S when you turn on your Mac, enter the following:

nvram fa4ce28d-b62f-4c99-9cc3-6815686e30f9:gpu-power-prefs=%01%00%00%00

Turn on Verbose mode as default:

nvram boot-args=”-v”

and type in:


The machine should now boot normally.

A few months later the same machine had the same issue, even having issues booting. So, after looking on Google, I found a new way of fixing the issue, hopefully it will be a more permanent fix, you can see how I did this over here.

SharePoint Calendar does not show when in a page as a webpart

SharePoint Calendar does not show when in a page as a webpart

So I was asked to add an events calendar to a SharePoint site that is being used as a portal. This would display the calendar as a WebPart on a SharePoint Wiki page.

But, obviously, as with anything SharePointy, this wasn’t as straight forward as just sticking the WebPart in. The issue I encountered was the events were not showing when it was inserted as a WebPart.

After much use of Google and asking specialists in SharePoint I was coming up blank. I did find that it was due to a JavaScript issue. To fix the issue, I had to open the page which the calendar was displayed on in SharePoint designer and add the following code:

<script type=”text/javascript”>
SP.SOD.executeOrDelayUntilScriptLoaded(function () {
SP.UI.ApplicationPages.ElementUtility.$3f = function ($p0) {
return ($p0.substring(0, 3).toUpperCase() == “WPQ”)
? $get(‘WebPart’ + $p0)
: $get($p0);
}, “SP.UI.ApplicationPages.Calendar.js”);

This over-rides the default JavaScript in the Wiki page, job done.

Install MediaWiki

Install MediaWiki

So, I was asked to install MediaWiki on a Windows Server 2012 R2. This example shows you to install when using the server with a GUI.

You can transfer the files using your control panel if you don’t have a GUI, and in theory it should also work the same with a Linux

Read More Read More

Orange or Red on WAMP installation

Orange or Red on WAMP installation

So, for work I was provided with a Windows Server. To run the scripts I wanted I had to install WAMP. I did this on my own personal server initially for testing purposes.

But I had a small issue, it came with the error where the WAMP sign refused to change from Red or Orange to Green as it should, I was stuck with:

So what did I do to fix this? I hear you cry (sorry, couldn’t resist).

Read More Read More

Installing WordPress

Installing WordPress

I used to be a Joomla! type of person. That was until 2014 when things kept breaking and simply not working. I started using WordPress instead when a company I worked for decided to switch from Joomla! to WordPress. This was really the first experience I had with WordPress, since I have primarily used WordPress with the occasions of using other systems such as MediaWiki, depends what work at the time I have on and what system is required.

To install WordPress, there are two ways of doing this, the easy way, and the hard way (but not that hard). I will go into more detail on the hard way soon, but first I will touch on the easy way.

Easy Install of WordPress

Read More Read More



I have had several computers come to me where when I have opened a browser it defaults to This is a nasty piece of adware and should be removed as soon as it is detected. This can be used to remove any adware that you may have got, just replace with the adware in question such as conduit.

Please note: or the owners of this site cannot be held responsible if things go wrong. You perform these tasks at your own risk. This is for advanced users only.

Read More Read More

When things go wrong with Windows 8, 8.1 and 10

When things go wrong with Windows 8, 8.1 and 10

In previous versions of Windows it was fairly straightforward to get into diagnostic mode with F8, but Microsoft have decided to change this.

You can’t get into Safe Mode as you used to be able to, but you can still get into an area where you can re-install Windows or perform diagnostic checks.

Please note: or the owners of this site cannot be held responsible if things go wrong. You perform these tasks at your own risk. This is for advanced users only.

Read More Read More