On this blog, I write about technical writing, the web, and more. Every two weeks, I co-host the Europe Homebrew Website Club. I am a co-chair on the W3C Social Web Community Group.
A comprehensive guide to Python dictionary comprehensions
['The Python dictionary comprehension lets you create a dictionary using an iterable. You can also change values or filter values in an existing dictionary. Comprehensions can be on one line, allowing you to consisely represent some logic. The dictionary comprehension is one of my favourite syntax features in Python. I use dictionary comprehensions all the time (although the feature could do with a shorter name!).']
The Python dictionary comprehension lets you create a dictionary using an iterable. You can also change values or filter values in an existing dictionary. Comprehensions can be on one line, allowing you to consisely represent some logic. The dictionary comprehension is one of my favourite syntax features in Python. I… read more
['I was writing a tutorial earlier today on oriented bounding boxes object detection models. Object detection models identify the location of an object in an image (i.e. the location of a solar panel in an aerial image). Oriented bounding box models identify the coordinates of objects more precisely than traditional object detection models, whose boxes are horizontally aligned.']
I was writing a tutorial earlier today on oriented bounding boxes object detection models. Object detection models identify the location of an object in an image (i.e. the location of a solar panel in an aerial image). Oriented bounding box models identify the coordinates of objects more precisely than traditional… read more
['Suppose you want to build a predictive text engine. Given a few letters, you want to predict the end of a word. Suppose we have the string "co". The next word could be:']
Suppose you want to build a predictive text engine. Given a few letters, you want to predict the end of a word. Suppose we have the string "co". The next word could be:… read more
['Now that I know what type of anime hair colour would suit me best, I felt it was time to investigate another significant question: what type of cheese I am. With help from an internet quiz, I was able to ascertain the answer to this stilton-ly difficult question. (Evidently, my cheese pun repoitoire is limited.)']
Now that I know what type of anime hair colour would suit me best, I felt it was time to investigate another significant question: what type of cheese I am. With help from an internet quiz, I was able to ascertain the answer to this stilton-ly difficult question. (Evidently, my… read more
['My hands were cold as I embarked on the train. I wrap my hands in my sleeves in the cold but that only goes so far. I sat down on a chair, a chair coated in blue fabric; blue for Scotland. The chairs had taller backs than usual. I did not know how to rest my head. I put in my headphones with excitement. I enjoy listening to music on the train.']
My hands were cold as I embarked on the train. I wrap my hands in my sleeves in the cold but that only goes so far. I sat down on a chair, a chair coated in blue fabric; blue for Scotland. The chairs had taller backs than usual. I did… read more