# Exploring Minecraft code in Jupyter

Some breif notes from a lazy Sunday morning spent exploring the minecraft coding environment that I set up using Raspberry Jam earlier. I'm taking my notes in Jupyter while I explore the Minecraft API and poke around with one of the sample programs. Since my blogging engine Nikola also supports Jupyter Notebooks as one of it's import formats, I found that I could do Litterate Programming for Minecraft quite nicely!

# A Minecraft Coding environment

A summary of the steps to install Minecraft with Forge, the two Forge mods "Raspberry Jam Mod" and "PythonTool Mod" and configure the coding environment to my preferred arrangement. I am using this on my own computers (work's Mac, and my openSUSE PCs) as well as my son's Windows 10 PC.

# Minecraft Jamin'

A bit over two years ago I wrote a post about hacking minecraft with Python. During my holiday break this year I decided to revisit this, and have a bit more of a go with it. Some things have changed, including the Minecraft Bukkit Server that I used then (CanaryMod) being abandoned, and some new enhanced modules that let you run Minecraft PI Python code on a non-PI machine, with Python 3! So let's dig in.

# Vehicle speed units

Just an idle thought this morning: wouldnt it be great if vehicles and road authorities agreed to use SI Units to measure vehicle speed?

# getkidscoding

I've been coming to my sons class when I get a chance and showing the kids about computer codes. I actually started a CodeClub last year and we were pretty successful, though very limited by my availability -- I was able to run the club for one hour most weeks, so it took us two terms to cover Scratch 1.

This year I've had even less time away from work, but I've had great support from the grade 6 teacher. We plan for him to facilitate the projects in class while I assist via emails and blogs. So: here's my first post.

# Help with Accelerologger

One of the Huon kids over at Bob's Drone Blog has a really cool Scientific Investigation Awards project - an Accelerometer data logger, or "Accelerologger" (I like the name too!). He's stuck with a small coding bug and has asked for help. I think I see the problem. Wisely, Bob's disabled comments without a login (see my Computing Rule 5), so I'm adding notes here on my own blog.

# Raspberry Pi WiFi

Today's project was to bootstrap a WiFi LAN connection for Raspberry Pi 2, with a USB WiFi transceiver.

# Bonjour Raspberry Pi

In preparation for some robotics I've dug out my Raspberry Pi 2 B and I'm reacquainting myself with it. Tonight's goal: Boot up an old Raspbian Squeeze SD card and get the Pi to identify on the LAN with a domain-name -- rather than having to learn it's IP address -- using avahi (AKA Bonjour or zero-conf mDNS networking).

# Upgrading Nikola: some pitfalls and how I climbed out of them

After some hacking of my dotfiles and python settings, I lost my nikola virtual environment (I think it broke after a brew update or something. The hacking's only partly recorded in the issues on GitHub).

But that's no biggie, just make a new one and re-install, right? Well, not quite. The re-install gives you the latest Nikola (great!) and that means I have to review and update my conf.py (okay...) and figure out runtime errors like this:

[src:?][[email protected]:~/hax/net/blog/milosophical.me]
[07:27](nikola)$nikola version Traceback (most recent call last): File "/Users/mjl/lib/nikola/bin/nikola", line 11, in <module> sys.exit(main()) File "/Users/mjl/lib/nikola/lib/python3.6/site-packages/nikola/__main__.py", line 171, in main _ = DN.run(oargs) File "/Users/mjl/lib/nikola/lib/python3.6/site-packages/nikola/__main__.py", line 339, in run self.nikola.init_plugins() File "/Users/mjl/lib/nikola/lib/python3.6/site-packages/nikola/nikola.py", line 1077, in init_plugins self._activate_plugins_of_category("SignalHandler") File "/Users/mjl/lib/nikola/lib/python3.6/site-packages/nikola/nikola.py", line 1233, in _activate_plugins_of_category plugin_info.plugin_object.set_site(self) File "/Users/mjl/lib/nikola/lib/python3.6/site-packages/nikola/plugins/misc/taxonomies_classifier.py", line 328, in set_site self._register_path_handlers(taxonomy) File "/Users/mjl/lib/nikola/lib/python3.6/site-packages/nikola/plugins/misc/taxonomies_classifier.py", line 316, in _register_path_handlers doc = taxonomy.path_handler_docstrings[name] KeyError: 'page_index_folder_index'  (well, pooh). I decided a while back that I wasn't going to meta-blog (otherwise most of my posts would be about blogging!), but I think in this case, Rule 4 will come to the rescue. Anyway at least you know this story has a happy ending, or else I wouldn't be able to add this new_post! Read more… # Organising my digital stuff I started to write about my ${HOME} directory structure in my post about /home filesystem choices but then it got terribly long and complicated. So I'm writing about it here.

Since switching to a new computer at work I have been reviewing my hodge-podge of directories that I moved from my old work laptop. Same as with my emacs configuration, I like my \${HOME} to be familiar and friendly no matter what computer and operating system I'm using. Also like emacs at the beginning of this year, it's presently a mess. So I'm documenting how I'd like it to look, be that on my home Linux computer, the Windows mode of the same, or on my work's Macintosh.

This long and detailed article is for my own purpose. Others MAY find it frightfully dull and of little value.