Samuel MacLachlan

Scary FB hacker messages and good internet security

I’ve noticed a “scary” message going around on Facebook lately (received from a couple people now) which states:

Please tell all the contacts in your messenger list not to accept Jayden K. Smith friendship request. He is a hacker and has the system connected to your Facebook account. If one of your contacts accepts . . .

Read More

August 27, 2017

Some #censusfail FAQ's answered

Looking at the aftermath of the 2016 Australian Census

On the 9th of August 2016, Australia paused whatever they were doing, and sat down to participate in the 2016 Australian Census #censusfail.

Hacker? The following information is based on the official report of what happened provided by the Bureau of Statistics (ABS), external observations of behaviour exhibited by the Census website.

. . .

Read More

August 10, 2016

CSS FlexBox Visually

Flexbox is rather... flexible... It opens a whole new world of layout configuration, and I'm excited!

A tool to visualise how flexbox properties affect the page

I have recently been spending some time getting better acquainted with CSS Flexbox.

To help myself understand how each property effects page elements, I (naturally) built a little tool to help visualise property effects. Here is it, in all its rudimentary glory to . . .

Read More

April 05, 2016

Count integer occurrence within number range

The digit "1" appears twice between 0 and 10.

Sometimes in life, you need to find out weird facts, such as how many times the digit 1 occurs in a number range sequence of 0 to 10 (the answer is 2 times, appearing as "1" and the "1" in "10"). This came up a couple of years ago in a Reddit discussion thread that I was involved in (will post the link if I can . . .

Read More

Posted in: programmingtools

April 02, 2016

Testing Browser Feature Support With JavaScript

Testing feature support without Modernizr

For robust browser feature detection, Modernizr is an exceptional tool with which you can specify which tests are included in the library download. But what about those times when you only need a single, simple non-critical feature test? You can write the test yourself.

On a recent website project, I needed to display a . . .

Read More

Posted in: programmingtools

April 01, 2016

JavaScript Powered Ratio Calculator

JavaScript can make your life easier.

I see your math challenge and ratio a calculator (pun intended)

I recently created a new tool for a friend which essentially helps calculate a value based on a ratio. For example, if the chosen ratio is 16:9, if a is = 1920, then b = 1080. Essentially, if you populate the a field, the calculator will give you the value of b and vice . . .

Read More

Posted in: programmingtools

March 30, 2016

Automating Line Break Removal

And some white space while we're at it too.

I like to write small utilities to make my life easier (mostly forwork). My job often entails tasks that are repetitive or at least periodically recurring.

One such task is adding a machineKey tag to the web.config file of the web applications installations we deploy.

While there are a number of ways to generate a . . .

Read More

Posted in: programmingtools

December 07, 2015

Archive