Free maps for your Garmin GPS covering the whole world : http://garmin.openstreetmap.nl/
- Category Archives Technology
-
-
Gotcha when testing Unity Objects for null in C#
Unity has overloaded the ‘==’ operator, specifically, checking objects against “null” might not always do what you expect. More information can be found in this blog post from Unity.
Specifically, if a Unity Object (as opposed to a C# object) gets destroyed, it will be set to a “fake null” object. In this case, the following statements are true:
1 2 3 4
obj == null // true obj is null // false (object)obj == null // false obj ?? value // obj
Note the different results between lines 1 and 2 & 3.
If obj truly is null, then the results are as expected:
1 2 3 4
obj == null // true obj is null // true (object)obj == null // true obj ?? value // value
It may be more readable to provide an Extension Method to UnityObject:
/// <summary> /// Extension Method on Unity Objects returning whether the object really is null. /// </summary> /// Unity overloads the '==' operator so that it returns true on both null references /// as well as references to destroyed objects. This function only returns true if /// the reference truly is null, and returns false for "fake null" objects. public static bool IsTrueNull(this UnityEngine.Object ob) { return (object)ob == null; }
-
Debian – multiple monitors and multiple GPUs
Using
xrandr
to enable a monitor plugged into a secondary GPU, such as an integrated graphics card.
-
Oculus Rift Core 2.0 (v1.31) and Desktop Panel Pull-out, aka, pinning windows
Some information to pin windows using Oculus Dash 2.0 / Core 2.0 / v1.31
-
The Last Guardian (PS4) – Completed
Completed The Last Guardian (8/10). Some comments and questions (spoilers!)
-
Autoscreen
Automatically start or resume a “screen” session when logging in.
-
On Passwords and Backups…
TL;DR: ensure backups work before reusing the source disks and double-check your passwords!
-
Gitolite and GitWeb on Debian 9
Install and configure gitolite and gitweb on Debian 9 ‘stretch’.
-
Proper UK International Keyboard layout for Windows
Download a comprehensive international keyboard layout for UK keyboards from http://www.zolid.com/uk-intl-kb/index.htm
-
GitHub releases
GitHub is not consistent between web interface and API when it comes to determining the “Latest Release”.