Author archives: Mike C. Fletcher

RSS feed of Mike C. Fletcher

Type Declarations for Python 2.7

So there's a big flamey thread over on python-list about the Python 3.x type-annotation. Thing is, I can't say the annotations seem all *that* important to the behaviour (static type checking): Consider this Python 2.7 decorator-set:

def _func_annotation_for(func):
    """Retrieve the function annotation for a given function or create it"""
    current ...

Continue reading

Monitor Sinks a Whole Day of Work

So a while ago I purchased an Acer H276HL monitor to replace an old Asus monitor that had developed some weird behaviour where it would get stuck in a strange mode, then just decided not to turn on again. This morning when I got home from the cafe I discovered that new monitor in a ...

Continue reading

NIST Sphere Format

I downloaded the TEDLIUM speech corpus last night, and this afternoon I poked around in it and said grr. It uses a NIST Sphere format which is basically a plain-text header followed by encoded samples... it's a WAV file, but with far fewer useful tools. Oh well, thinks I, I'll just transcode the ...

Continue reading

More Reading and Waiting in Neural Networks

I continued my long reading in Neural Networks today. I'm now setup with Theano, and working through the DeepLearning.net tutorials... but wow, I was not prepared for the (lack of) speed. Hours and hours to train a network (I don't have an nVidia GPU, so everything is being done on the CPU ...

Continue reading

Neural Networks Readings

I'm finally sitting down and looking at how to implement Neural Networks (LeNet) in Python (much of the motivation coming from Anatoly's comment). I've been very slowly following along with Learning from Data from CalTech (since October?!), but honestly that dragged on so long without getting to useful code that I found ...

Continue reading

Getting a PyOpenGL 3.1.1 release moving

So I've spent the afternoon going through my backlog of emails regarding PyOpenGL issues. That takes far longer than it should, as most of the time is really spent in reproducing/verifying problems rather than actually addressing issues. So far I think I've addressed most of the items that can be addressed near-term ...

Continue reading

Save/Restore for Django "Embedded" Apps

So we have a lot of Django-based code where we'd like the user to be able to download a (subset of) the Django database as a "config file", then upload that "config file" to some number of other machines (or the original one), potentially long after the database has been migrated. I've got ...

Continue reading

Back to React Learning

I wanted to get back to doing a bit of React.js, so I started converting more of the WebToys into React (from Angular and raw Jquery). It took a bit of staring at old code to remember the React way of things. There are definitely some things I need to get sorted; how to ...

Continue reading

Eventually Text Munging Gets Nasty

So today I started into the basic command-and-control part of the Listener system. The original tack I took was to create escaped commands inside the text stream using the "typing" substitutions (the stuff that converts ,comma into ','):

some text \action_do_something more text

But that got rather grotty rather fast when looking at corner cases (e ...

Continue reading