Site logo for Gordy's Discourse.

Gordy's Discourse

Installing Python and Django on macOS

Posted by on in category: How-To, with tags: Tech, Python, macOS.
363 words, less than 2 minutes read time.
Python icon.

I'm not a big fan of Python but it has been so long since I've used it that I wanted to refresh my memory about the language. This is how I went about installing Python and Django on macOS 10.14 via Homebrew and pip.

Icon for cat: How-ToIcon for tag: TechIcon for tag: PythonIcon for tag: macOS

Citation icon. Ransom fees paid to hackers

Posted by on in category: Citation, News, with tags: Tech.
210 words, less than 1 minute read time. Comments by me and a link to an external article.

I’ve recently noticed quite a few articles along the lines of the one I link to here, where organisations pay out ransom fees to hackers in order to recover their data.

Of course these are only the ones we hear about and I have no doubt many companies have paid off ransomware hackers in secret.

It is selfish to the extreme because you’re simply supplying funds that will help the hackers exploit other organisations.

I’d argue that the paying off of hackers ought to be illegal. In fact I thought it was already illegal to aid and abet a criminal.

It seems insurers are often at the root of these payouts:

The town's insurer was contacted by the hackers and negotiated ransom payment of 42 bitcoins, or roughly $500,000. Officials felt that paying the ransom was the most efficient way of regaining computer access.

This is very much a case of “I’m alright Jack” and they’re missing the bigger picture or, most likely, simply don’t care about it.

Kevin Beaumont, a cyber-security specialist, sums it up in the article:

Organisations are financing their attackers to be better than them - and sooner or later that situation may snowball for everybody else trying to defend their networks.

Citation icon. Porn troll gets 14 years

Posted by on in category: Citation, News, with tags: Tech.
191 words, less than 1 minute read time. Comments by me and a link to an external article.

I have been following the misfortunes of a US company called Prenda Law for some time now.

Basically, they were copyright trolls targeting people who downloaded porn. They’d send such people a demand for $3,000 in order to settle their copyright infringement case and avoid the embarrassment of having their porn proclivities exposed in court.

But Prenda Law thought they could maximise their profits if they uploaded the copyright infringing porn to pirate sites and file sharing networks in the first place, thus baiting people to download it.

Paul Hansmeier, the lawyer in charge of Prenda, was estimated to have made $3m from this scam in three years.

The courts however took a dim view of Prenda’s activities. The judge said:

It is almost incalculable how much your abuse of trust has harmed the administration of justice.

Whereupon she sentenced him to 14 years and told him to pay $1.5m back to the victims he’d scammed.

Hansmeier was rumbled many years ago but he has since been spouting all sorts of nonsense to various courts in order to try to evade justice, which didn’t help his case at all.

Privacy policies are still far too long

Posted by on in category: Opinion, with tags: Tech.
797 words, 4 minutes read time.
Random privacy policy image.

Why are many sites' privacy policies so long? Laws have changed regarding online privacy recently (GDPR, for example) but I'm not sure your typical user is any better informed and I think complexity prevents many people from asserting their rights and options.

Icon for cat: OpinionIcon for tag: Tech

The insurance industry needs reform

Posted by on in category: Opinion, with tags: Nonsense.
692 words, 3 minutes read time.

I was doing some thinking, which is always dangerous, and decided the insurance industry needs reform. If you exclude nonsense like 'peace of mind', most people get very little for their premiums.

Icon for cat: OpinionIcon for tag: Nonsense

Citation icon. Why do bats live so long?

Posted by on in category: Citation, with tags: Science.
101 words, less than 1 minute read time. Comments by me and a link to an external article.

No, that’s not the opening to a joke, bats really do live a long time.

Typically, a mammal’s longevity falls broadly in line with its mass. As mass increases, metabolism slows and lifespans get longer. We humans are a species that bucks the trend because we live considerably longer than mammals of similar or even greater mass than ourselves, but the formula holds in general.

There are 19 species of mammals that live longer than us relative to their body mass and 18 of those are bats.

So what gives? It turns out bats are very good at maintaining their chromosomes.

Citation icon. Shuttlecocks, Hawking and what happened 'before' the universe.

Posted by on in category: Citation, with tags: Science.
220 words, less than 1 minute read time. Comments by me and a link to an external article.

Just yesterday I was having a discussion with a friend of mine about how the last two weeks seem to have flown by and my friend asked if there were ways we could slow time down a bit.

I suggested he could consider jumping into a black hole or accelerating himself to light speed and that the tools for these endeavours might be purchased cheaply via one of Amazon’s ‘Deals of the Day’.

Then an article pops up on Quanta Magazine that talks about the origins of time and the universe itself, particularly in relation to Hawking’s Shuttlecock Universe proposal.

When I look at what’s going on in the world I quite often have a downer on humanity in general and certain individuals specifically, but I think it’s astonishing that our thinking has advanced to the stage where we can consider the origins of an entire universe.

In their view, the only sensible contour is one that scans through real values (as opposed to imaginary values, which involve the square roots of negative numbers) for a variable called “lapse.” Lapse is essentially the height of each possible shuttlecock universe — the distance it takes to reach a certain diameter. Lacking a causal element, lapse is not quite our usual notion of time.

Get your head around that.

Panic to make a gaming console called Playdate

Posted by on in category: News, with tags: Tech, Products.
526 words, 3 minutes read time.
Playdate logo.

I've always like Panic's software and I was amazed to fine out that they plan to break into the hardware market too. They're making a handheld games console called Playdate and I quite like what I see.

Icon for cat: NewsIcon for tag: TechIcon for tag: Products

Safari inspect element CSS problem

Posted by on in category: How-To, with tags: Tech, CSS, Web-Development.
458 words, less than 2 minutes read time.

I've had a strange problem with Safari's 'Inspect Element' for a while now and noticed it would be accompanied by a "This webpage is using significant energy" message at the top of the Safari screen.. I finally got around to fixing it today.

Icon for cat: How-ToIcon for tag: TechIcon for tag: CSSIcon for tag: Web-Development

Citation icon. Galactic currency proposed

Posted by on in category: News, Citation, with tags: Science, Tech.
241 words, less than 1 minute read time. Comments by me and a link to an external article.

Researchers at the University of Cambridge have proposed a theoretical form of virtual money that, they claim, would be highly secure, fast to transfer, and could also enable financial transactions on galactic scale.

The article I link to is somewhat opaque but make of it what you will.

It’s proposing a new concept of money that …

… may also be thought of as something needed to get to a specific point in space-time, in response to data coming from multiple points (in space-time).

Credit: Wikimedia Commons

The interesting bit for me is that it uses a quantum encryption protocol (called BB84) to secure the transactions. What this basically means is that whilst it’s still possible to eavesdrop on the transaction, it’s impossible to do so and remain undetected. This is due to a property of quantum states called no-cloning and this cannot be cracked — ever — because it’s a physical law rather than an algorithm.

So if I want to transmit a secure key to you, we’d use BB84 and we’d know for definite if someone had eavesdropped on the transaction. If that happened we’d discard the keys, invalidate the transaction and try again.

But what I’d like to know is the exchange rate this currency is going to have with the Altairian Dollar. I’m led to believe a competent hitchhiker should be able to see the galaxy on less than thirty Altairian dollars a day.

Citation icon. Why would anyone post a good blog on Facebook?

Posted by on in category: Citation, with tags: Tech, Social-Media, Facebook.
235 words, less than 1 minute read time. Comments by me and a link to an external article.

Or at least if they do, they should give it Public visibility so it can be linked to from outside of Facebook.

What rattled my cage was a post by Dave Winer on his Scripting News site, which always worth a read, incidentally.

Dave Winer says:

You know what pisses me off. A guy writing the best political blog out there, on Facebook. So after I read his piece and think “everyone should see this” I can't send the link outside of Facebook.

We have this incredible thing called the web and we don't use it.

Quite so.

Yes, I admit I’m not the biggest fan of Zuckerberg and his privacy-busting, pseudo-narcotic corporate silo, but I don’t understand why anyone with anything interesting to say would run their blog on Facebook.

Newspapers don’t just post on Facebook. The BBC doesn’t. Shops don’t. Even Facebook doesn’t (see their Newsroom and Media Blog). Why then should an individual do themselves such a disservice?

Facebook is meant for people who don’t have anything interesting to say to the rest of the world. That’s why it’s shielded behind a virtual barbed-wire fence away from the real web, so that we can keep all those photographs of people’s lunches out of sight.

I could rant on for some considerable time about this subject, but I won’t, just this once.

Bird Box (2018) film review - worth watching

Posted by on in category: Review, with tags: Entertainment, Films.
538 words, 3 minutes read time.
4 stars.4 stars.4 stars.4 stars.4 stars.
Birg Box poster.

Having watched a few underwhelming horror movies recently, I was pleasantly surprised by Bird Box. This sort of thing is more to my taste when it comes to horror. This review contains some minor spoilers but nothing that's likely to ruin your viewing.

Icon for cat: ReviewIcon for tag: EntertainmentIcon for tag: Films

Citation icon. Have the fundamental physical constants changed?

Posted by on in category: Citation, with tags: Science.
192 words, less than 1 minute read time. Comments by me and a link to an external article.

There exist a bunch of fundamental physical constants that define (or at least describe) important characteristics of our universe. Traditionally these are dimensionless numbers, which means they have no units like kph or grams, although they often describe relationships between dimensioned constants.

Alpha (also know as the fine structure constant), for example, describes the strength of the attraction between the electron and proton. It combines the speed of light, the elementary charge, Planck’s constant and something called the ‘permittivity of free space’ to arrive at its value. The value itself is approximately 1/137.

I think these constants are extremely sexy.

If these constants were different, the universe could be a very different place. Your trousers might fall apart or maybe the universe would have blinked out of existence shortly after (or even before) the big bang.

Scientists have often wondered if these constants are, in fact, constant. Maybe they were different in the past. It has however been difficult to measure what these constants were in the distant past.

The article I link to on ArsTechnica describes a new approach to measuring what a couple of these constants were in the past.

Using schema @IDs

Posted by on in category: How-To, with tags: Tech, Web-Development.
363 words, less than 2 minutes read time.

I've recently got a grip of how to use schema IDs and I thought I'd write a quick blog about it in case anyone else is struggling with them.

Icon for cat: How-ToIcon for tag: TechIcon for tag: Web-Development

The Girl in the Spider’s Web film (2018) review

Posted by on in category: Review, with tags: Entertainment, Films.
615 words, 3 minutes read time.
3.5 stars.3.5 stars.3.5 stars.3.5 stars.3.5 stars.
The Girl in the Spider's Web poster.

I love the Stieg Larsson 'Millennium' books. Following Larsson's death, David Lagercrantz took over the storytelling and 'The Girl in the Spider's Web' is the first Millennium book of his to be made into a film. I review that film in this article.

Icon for cat: ReviewIcon for tag: EntertainmentIcon for tag: Films

Citation icon. Cats know their own names, study reports

Posted by on in category: Citation, with tags: Science, Cat.
161 words, less than 1 minute read time. Comments by me and a link to an external article.

Via the article I link to on Gizmodo:

For the most part, the experiments showed that the cats were able to distinguish their own name, even when the name was said by a complete stranger. All cats were equally good at distinguishing their names from general nouns.

However, if you read the article you’ll see the study does come in for some criticism and it may not be as clear cut as the scientists who organised this study claim.

I can see some difficulties in interpreting a cat’s responses. Cats do not see themselves as in any way inferior to humans. Quite the opposite in fact — they rule most households they live in.

It’s perfectly feasible that a cat would recognise it’s name just fine but simply cannot be bothered to grace the idiot human with any sort of response. It's a case of "Hey, you’re wasting your breath. I'll call you if I want something."