How not to do coding examples

by @edent | , , | 5 comments | Read ~283 times.

A pet cat typing on a computer keyboard.

As part of my MSc, I'm getting a few lessons in technologies I'm not familiar with. I've found some of these lessons extremely confusing - even when I'm proficient in the language. Here's an example of a coding fragment from one of the tutorials in the R language. Let me explain everything that I think…

Please Stop Inventing New Software Licences

by @edent | , | 2 comments | Read ~264 times.

Binary code displayed on a screen.

A few weeks ago, I received an unsolicited email inviting me to try out an exciting new "quantum resistant" cryptography app called Cyph. Because I hate myself, I signed up. Of particular interest to me was the fact that the homepage loudly proclaimed that it was "Open Source" - and had a public GitHub repo.…

Do any Open Source Licences require source history?

by @edent | , , | 10 comments | Read ~2,158 times.

Binary code displayed on a screen.

A question to the void. Are you entitled to get the source history of open source projects? Lots of Open Source licences give the consumer of software the right to a copy of the source code. For example, GPLv3 says that distributors of software have to: give anyone who possesses the object code ... a…

Relaunching @edent_solar. Part 3 - API & Code

by @edent | , , , | 2 comments | Read ~117 times.

Solar Graph.

I'm hooking my solar panels up to Twitter! Installation Inverter Fronius provide a comprehensive API guide - I wish more companies did this. There are lots of unofficial libraries in a variety of different languages. I've written this code in Python3. This is a general tidy-up of the code I wrote several years ago. Here's…

Add review to Goodreads from Schema markup

by @edent | , , , , ,

The Goodreads Logo.

I write book reviews on my blog. I also want to syndicate them to Goodreads. Sadly, Goodreads doesn't natively read the Schema.org markup I so carefully craft. So here's the scrap of code I use to syndicate my reviews. Goodreads API Keys Get your Keys from https://www.goodreads.com/api/keys You will also need to get OAuth tokens…

Redirect GitHub ID to Username

by @edent | , , , , | Read ~1,930 times.

A screen of JSON code showing my details.

Scratching my own itch here... GitHub users have a username (mine is @edent) and have a user ID number (mine is #837136). If you want to redirect a user ID to a username, you can use the little service I've cobbled together: https://edent.github.io/github_id/#837136 That will take your browser to my GitHub page, using nothing but…

Previewing Circular Avatars

by @edent | , , , , | Read ~193 times.

Play with the demo I was lucky enough to go to Number 10 Downing Street for a meeting a few weeks ago. A perfect opportunity for a photo of me by that famous door. Being the vain man that I am, I wanted to set it as my avatar photo. But Twitter and other social…

Get your Google Location History the hard way… Again!

by @edent | , , , | 10 comments | Read ~9,503 times.

Last year, I wrote about how to extract Location History from Google. Once again, Google have changed their URLs to make it even harder to get one's current location out of their data-greedy hands. It used to be the case that Latitude gave that information - but they killed it. Then they promised it in…

Why I vertically align my code (and you should too!)

by @edent | , , , , | 32 comments | Read ~84,346 times.

There was an interesting discussion on HackerNews last week about the Linux Kernel coding style. During the discussion, I kicked off a minor holy war about whether one should vertically align code. I'm all for it! Let me explain why. What Is Vertical Alignment? Take this trivial example: int robert_age = 32; int annalouise_age =…

Extracting Your Own Location Information From Google - The Hard Way

by @edent | , , , | 22 comments | Read ~41,085 times.

Update! There's a new way to do this - read my latest post to find out how. Two or three years ago, I was contacted by a recruiter from Google. They wanted to know if I'd be interested in working for the advertising giant. We played the usual game of dancing around salary and schedules,…