How to tell if it’s a leap year with PHP

PHP contains a useful date function which can be used to determine if the current year or a specific year is a leap year. This post looks at how to use the date function to do this.

Categories PHP

Show Outlook envelope icon in Windows system tray

By default Outlook has a little envelope icon in the system tray; the system tray is where all those little icons are near the clock in the taskbar at the bottom of your screen. You can hide it by right-clicking and selecting the "Hide Envelope" icon but this prevents it showing again when new mail arrives. This post looks at how to re-enable the Outlook envelope icon in the system tray.

Set the default font size for phpMyAdmin

phpMyAdmin is a web based administrative tool for the MySQL database server. After logging in to phpMyAdmin there’s a drop down box to select the font size as a percentage which always defaults to 100% and is too big for my liking. After changing the value, the font size is remembered as a cookie so the next time you log in the font size chosen is remembered. However the font size cookie drops off eventually and when logging into a phpMyAdmin that I haven’t logged into for a while I find it annoying having to change the font size each time. This post looks at how to change the default phpMyAdmin font size.

Categories PHP

Contact Us

Some common reasons people want to contact us 1. You want to buy text advertising Sorry, I do not sell text link advertising. 2. You want to do a sponsored post Sorry, I do not allow sponsored posts, paid or otherwise. 3. You want to sell me your SEO services Not interested, thanks. 4. You …

Read more

Apple Magic Trackpad on Windows (not Boot Camp)

I started using an Apple Magic Trackpad yesterday and already far prefer it to a mouse (I’ll do a review of it next week once I’ve used it a bit more). This post has a link to a page which shows how to connect a Magic Trackpad to a Windows machine that’s not on Boot Camp and a few observations I made when attempting to connect.

Use an Apple Magic Trackpad on Windows

This article at Digital Inspiration shows how to use a Magic Trackpad with your Windows PC. It has links to the driver files to download from Apple and 7-Zip which you will need to extract the necessary files. You’ll obviously also need to be able to connect to bluetooth devices with your Windows PC. In my case I had a Bluetooh dongle which did the trick nicely.

Issues I had and solutions

I had some issues trying to connect the trackpad in the first place but the main issue turned out to be that it was still connected to my Mac, even though it was a floor below where I was and there were a few walls inbetween me and the mac; so you may need to disconnect it from the Mac first.

The other thing I needed to do was keep hitting the on button on the right side; it kept turning itself off after every 5 seconds (or thereabouts) which prevented it from connecting to the Windows PC. This may have been a continuing issue with the Mac being in range and may not affect you.

Usability

I only just connected the trackpad to the computer I am writing this on a few minutes before writing this post, so haven’t had much of a chance to play around with it yet, but the following do work:

  • it uses tapping by default for clicking
  • one finger moves the mouse as expected
  • two finger scrolls up and down and left and right as expected
  • to click and drag you have to use the same finger; on a Mac you could e.g. use your thumb to click and then drag with the other finger
  • double finger tap does a right click (same as on a Mac)

On the downside, I have found:

  • no inertial scrolling (but then I didn’t actually expect it)
  • sometimes a tap does a click-drag type of thing and you end up selecting all (or some of) the text on a web page or dragging stuff all over the place

I haven’t tried any other gestures yet (and don’t expect them to work anyway) and will update this post if I find anything else useful or interesting.