Archives 2011

Android Dev Setup: What is step one, really?

Finally got a few minutes to poke a toe into the world of Android development.  Started the installation of the Android SDK for Ubuntu (Oneiric).  Eclipse won't start.  Segfault just after telling it where the workspace should be.  Apparently no one has ever changed the default working directory in the first dialog they ever see ...

Continue reading

GLES 1.1 Really? In 2012?

Shiny new Android dev environment.  Start reading through the documentation (yeah, a bit retro), okay, Intents seem rocking... oh, the intro just sort of dumps you off in the middle of nowhere... well, let's look at the familiar stuff; OpenGL should rock with everything being modern and shiny.

GLES 1.1 only on 2.1! (Which is ...

Continue reading

SilleScope, a trivial OpenGL oscilloscope-like thingy for kids

My (2 year old) son likes screaming at the OLPC "Measure" application, so I'd like to have something like that for all of our computers (i.e. something that displays audio as a simple view that lets you see your own voice).  SilleScope is the result.  At the moment it only has an ALSA source (i.e. ...

Continue reading

More porting-to-python-3 notes...

D'Arcy asked if I could port basicproperty, basictypes, wxoo, etceteras to Python3.  Not really high on the priority list, but why not dash it off; add 2to3, see happy Python3-ers.  Will log any issues as they arise here...

Python3.2 testing virtualenv can't install anything (not even pip).  Seems that the distribute and distutils code are ...

Continue reading

Evening Learning; I was hoping to get something done...

Mike Bayer mentioned in comments yesterday that one can configure SQLAlchemy to use one session with multiple database connections, so I decided to play with it tonight.  This is in the context of a TurboGears 2.1 app with SQLAlchemy 0.5.8, btw.

Documentation for how to setup the mapping isn't particularly helpful about best practice for ...

Continue reading

Cross-database relations in SQLAlchemy?

Set out to make an app use two different databases today; one for a high-write-volume set, the other for low-volume mostly-read set.  It's a TurboGears 2.0 application using SQLAlchemy.  I'd half-way hoped for "tell these tables they're in that db" and then have the ORM figure out all the magic of which session to use ...

Continue reading

Dreaming of deterministic profilers future...

Some things it occurs to me that I'd like to see in a new Python profiler:
  • High resolution, accurate, captured data (obviously)
  • Trace every line executed (yes, every line)
  • Trace every call operation, i.e. CALL #32 of function #45 took 0.0003s and have a record of CALL #32 which details what *it* called, its timing, ...

Continue reading

New release of globalsub is out

Globalsub is a mechanism to allow you easily replace an object throughout your interpreter.  This is normally done to make it easier to test.  You can stub out objects which have side effects for most of your tests and just test those functions in carefully isolated environments.  It comes from the Mocker codebase originally, but ...

Continue reading

KDE seems to have stabilized... I suppose I should break it

After the hiccups of a few days ago where suspend/resume didn't work for a day or so, my laptop seems to have settled into a happy place.  Suspend/resume is now working, and I haven't had any hard-hangs where the machine becomes unresponsive (which was why I upgraded to the backported KDE 4.7.1).  Which is to ...

Continue reading

Monthly archives

Previous year

2010

Next year

2012