Enter Colaboratory (AKA “A Spoonful of the Tracking Soup”)

As an author, I’m interested in how well my books are doing: not only do I want people reading them, I also want to compare what my publisher and booksellers claim about my books with my actual sales. (Also, I want to know how close to retirement I am.)

In the past, I used to read a bunch of web pages on Amazon (and Barnes and Noble too, before they changed their format) and entered them into an Excel spreadsheet called “Writing Popularity” (but just as easily could have been called “Writing Obscurity”, yuk yuk yuk). That was fine when I had one book, but now I have four novels and an anthology out. This could take out half an a hour or more, which I needed for valuable writing time. I needed a better system.

I knew about tools for parsing web pages, like the parsing library Beautiful Soup, but it had been half a decade since I touched that library and I just never had the time to sit down and do it. But, recently, I’ve realized the value of a great force multiplier for exploratory software development (and I don’t mean Stack Exchange): interactive programming notebooks. Pioneered by Mathematica in 1988 and picked up by tools like iPython and its descendent Jupyter, an interactive programming notebook is like a mix of a command line – where you can dynamically enter commands and get answers – and literate programming, where code is written into the documents that document (and produce it). But Mathematica isn’t the best tool for either web parsing or for producing code that will one day become a library – it’s written in the Wolfram Language, which is optimized for mathematical computations – and Jupyter notebooks require setting up a Jupyter server or otherwise jumping through hoops.

Enter Google’s Colaboratory.

Colab is a free service provided by Google that hosts Jupyter notebooks. It’s got most of the standard libraries that you might need, it provides its own backends to run the code, and it saves copies of the notebooks to Google Drive, so you don’t have to worry about acquiring software or running a server or even saving your data (but do please hit save). Because you can try code out and see the results right away, it’s perfect on iterating ideas: no need to re-start a changed program, losing valuable seconds; if something doesn’t work, you can tweak the code and try it right away. In this sense Colab has some of the force multiplier effects of a debugger, but it’s far more powerful. Heck, in this version of the system you can ask a question on Stack Overflow right from the Help menu. How cool is that?

My prototyping session got a bit long, so rather than try to insert it inline here, I wrote this blog post in Colab! To read more, go take a look at the Colaboratory notebook itself, “A Sip of the Tracking Soup”, available at: https://goo.gl/Mihf1n

-the Centaur

 

The Eagle Has Landed

lunar-module.jpg

Welp, that was anticlimactic! Thanks, God, for a smooth update to WordPress 4.7.3! (And thanks to the WordPress team for maintaining backwards compatibility). And hey, look – the Library has close to 1,000 posts!

Screenshot 2017-03-21 12.35.50.png

Expect major site updates in the months to come, as WordPress’s Themes and Pages now enable me to do things I could only formerly do with static pages and hand-coded pages, and it will all be backed up easier thanks to WordPress’s Jetpack plugin.

The things you learn helping other people with their web sites ….

-the Centaur

We are go for launch …

Apollo_17_Night_Launch_-_GPN-2000-001150.jpg

Welp, it’s time: I’ve backed up the Library of Dresan three ways to Sunday, said a prayer … and now am planning to upgrade WordPress from 3.0.1-alpha-15359 to 4.7.3. I know that’s 1.7.2 full version numbers, but it’s been too long, and there are too many new features I need, so … time to press the button.

God, please help me! Everyone else, your prayers, please.

-the Centaur