To clear up any confusion about a functioning setup to start working with Python 3 on a fresh Mac — here’s a quick (minimal) guide.

DO #1: download and install Python 3.x.x

Go to the official website and download Python from there. Yes — since you’re asking — do get the latest version (the one with the shiny yellow button):

When working in Web Development with e.g. APIs of other services, you will often need to include Authentication to access those services. These can come in the form of e.g. passwords, API keys or secrets. We ❤ Version Control, however ( — limitless optimism aside — ), we don’t want to share those personal secrets with the open source community.

There are horror stories about significant charges being accrued from carelessly posting API secrets to public version control (links at the bottom).

Bots are quick, and one compromised commit is one too many.

There are a couple of ways to…

With a bustling activity as a developer, when grinding projects feels like a morning jog, it is easy for something to go out of hand: dependencies.

What are dependencies?

When building python projects and with the rich ecosystem of modules and packages out there, you’ll want and use all that code. Dependencies are python packages containing code that someone else wrote and that you are utilizing for your project. The developers who wrote the code put a lot of effort into making the wheels they built easy to use. Exactly: so that you won’t have to re-invent them.

The challenge

Re-using code is a great…

🔔 — Ebbinghaus wants to send you push notifications — 🔔

Everyone knows this existential angst when realizing that {xyz}, which we learned only {xyz} time units ago, is already blanked off our mind.

How do some people just remember everything?

Turns out that it’s just about consistent work (as with most things in life). Being awesome at remembering is actually not that difficult.

So… where do all those ________ spots in our recently polished minds come from, and what can we do to fill them up?

Probing the leaking mind

In ____, a _____ ______ named ________ Ebbinghaus did his research and came…

Sublime Text’s rich package ecosystem makes it possible to fine-tune the text editor specifically to what you are using it for. Some of the packages are universally helpful, others, such as syntax checking, are specific to the programming language you are working with.

Changing settings is easy and might also help to clarify how to do further customisations — if that is where your ❤️ is at.

Sublime Settings

Before moving onto installing plugins, there are a couple of useful settings that can help to tailor Sublime for python development. Go to Sublime Text → Preferences → Settings and in the Preferences.sublime.settings-User

I thought that would be easy, but they are difficult to spot

“Check out my new dictionary App!”

For the past days, I have been searching for Dictionary APIs that would provide definitions for a few different languages.

With this text, I hope to make the task easier for others out there in the wild.

Part 1: Where is Google Dictionary?

On a page called Translation Party you can enter a sentence and then watch how Machine Translation plays English-Japanese ping-pong.

So I gave it a spin:

After staggering through the hallway of the retirement home, Captain Morgan found solace in repeatedly putting his stub arm into peril and artistically avoiding the spinning ventilator blades

My results were… “special”. Quite literally. 😜 In the 2nd iteration the word special turned up. And from then on it just kept multiplying…

e.g. #12:

To rotate a repeating short Captain Morgan […] risk arms special care special care nursing home ventilator hole special special…

What two Cleverbots can tell us about human conversation

Someone hooked up two Google Homes powered by Cleverbot’s API and made them ceaselessly talk to each other. Where? On twitch:

The conversations that ensue are often entertaining, frequently somewhat absurd, veering into existential topics — and altogether surprisingly human!

Cleverbot’s database

Cleverbot’s database is constructed from humans conversing with humans (kind of). The project is running online since 1996, and it’s been collecting data ever since:

Every time a user says something to Cleverbot, Cleverbot learns it and then tries to match it against something a user has said before.

In some tests, Cleverbot was judged human in 59% of…

I wrote a tiny search engine (it looks for search terms on pre-defined webpages), and a friend told me that

What is this? I can’t show this to anyone. No one who doesn’t program will know what to do with that. Can’t you write a GUI for python?

And he’s right. Programs that run in the shell (or in my favorite quasi-GUI jupyter notebooks) don’t make it easy to show your work to people. So, no. Until yesterday I couldn’t write a GUI for python. Enter: Tkinter.

I experimented a few hours and managed to write a simple GUI that…

How we speak; so unique

How often do we write the same sentence multiple times?

Inspired by Chomsky’s dismissal* of an approach another linguist to assess the probability of sentences to occur, I built a small project yesterday.

The probability of a sentence would nearly always be close to zero, because most sentences get created on-the-go. They have never existed in that exact constellation before.

For me this is an extremely interesting aspect of language! Why are we able to create an endless amount of always new sentences, and yet can still be able to understand each other (more or less)?

Chomsky reasons that there…

Martin Breuss

feedback, code, projects, life, and education

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store