The Most Powerful Piece of Code Ever Written

I’ve been programming for two years now. There’s still a lot for me to learn, but I’ve come a long way since deciding to learn how to code and since writing my first program.

I’d always been reluctant about programming. Everything about it felt so esoteric: arbitrary punctuation, use of characters I’d always considered decorative (like backticks, vertical bars, backslashes, angle brackets), words like “static”, “public”, “private”, “var”, whimsically strewn across oddly formatted  text. Yikes!

Programming looked scary, and it seemed like something only certain people could do. But even scarier was the feeling that I’d be left out and left behind.

I mustered up the courage to get started and asked my software developer (at the time) boyfriend to teach me how to program. “Okay”, he responded. “Write a program that prints “Hello, World!”. I assumed he meant print as we generally use it in the non techie sense, as in, send to printer. The thought of another definition never even occurred to me. And, foolishly, instead of asking him what he meant, I assumed he expected too much of me, or worse, that he simply didn’t want to help me.

It wasn’t until months later, when I tried a Codecademy Python tutorial, that I realized how easy this task was! Print, in this context, meant something entirely different from what I thought it meant. My boyfriend was actually trying to encourage me by recommending this meaningful little task as my first program. I should have asked for clarification, and I shouldn’t have given up so easily.

Today, I decided to slay this dragon, to complete this task that so perfectly represented my fear and my stubborn belief that becoming a programmer was out of my reach. I was going to write a program that prints “Hello, World!”, in the general non techie sense, and I was going to dedicate my whole morning to doing this!

It took less than 5 minutes.

import os
outfile = open("helloworld.txt", "w")
outfile.write("Hello, World!")
os.startfile("helloworld.txt", "print")

This script only works on Windows computers.

Mini-Hack: Customizing a Google Embeddable Calendar


When I wanted to showcase interesting tech events in a calendar that was easy to update, easy to share,  and that wouldn’t slow my site down, embedding a Google Calendar was clearly the way to go. Although this was the best option, it wasn’t perfect. The calendar worked exactly as I wanted it to, but it’s characteristic light blue background just didn’t fit with the white, black, and grey aesthetic of my website. Thanks to a great tutorial by Dan Rajan for Webdesigner Depot, it was easy to customize the standard calendar to match my site.

Here’s the gist of how to do it:

Since the calendar is hosted on, you can only customize it as much as Google allows you to through the Calendar Helper interface. You can get around this by hosting the calendar on your own domain then editing the files to reflect the new location and your preferred styles.

The tutorial recommends hosting the HTML file on your site, linking to Google’s original CSS and JavaScript files, and overriding Google’s style using a PHP script and a custom style sheet.

Happy customizing!


Reading in a language you’re learning is a great way to build your vocabulary and increase your familiarity with the language. It’s also tedious, frustrating, and boring. You constantly stop to look up words you don’t know. You lose your place in paragraphs because you keep looking away. You read the same sentences over and over again trying to regain your focus. If you’re not doing this, you’ve chosen a text that’s easy to read, easy to understand, and utterly unexciting.

Read better with Foreword. Foreword is a web app that makes reading in your target language more approachable and enjoyable. It prescreens an article you want to read and curates keywords, a synopsis, and a customized vocabulary list. This overview helps you focus on the text and better understand it.

How it works:

First, Foreword retrieves the article you request.

Foreword Homepage

Then, it automatically sorts the words in the article into lists of known words and unknown words based on a master lists of words you already indicated you know or don’t know. Next, it asks you to choose the words you know from the words that could not be automatically sorted.

Foreword Sort Words page

Then, it parses the article and for keywords and a synopsis and defines the words you don’t know.

Foreword Foreword Page

Foreword Check Vocabulary Page

Finally, it generates lists of your new known words and unknown words from the words you manually sorted, and presents your vocabulary words in a Memrise bulk-add friendly format. This makes it easy for you to update your master wordlists  and to make flashcards of your vocabulary words.

Foreword’s backend is built with Python, flask, nltk, newspaper, and pyphen. Its frontend uses an image and content from the prescreened article. The example above uses a Forskning & Framsteg article on supernovas.

I chose Swedish to be the default target language because I’m currently learning Swedish.

View it on github Try it on Heroku