Posts Tagged report

AA7AS 20m Propagation Report

Welcome to the AA7AS Propagation Report. Here, I give you the latest cold, hard scientific facts about what you can expect on the 20 meter ARO band.

Current Sunspot Cycle Analysis:

  • The current cycle has degraded below moped status. Further:
    • The chain has come off
    • Immediate status is stuck in a pothole
    • Handlebars are loose
    • The tires are flat
    • And… someone has stolen the seat
  • Protip: Clothes-pinning playing cards to the spokes is not a “linear” and will not count towards contest points.

That concludes today’s Sunspot Cycle Analysis.

Current f0f2

Current f0f2

Tags: , , , , ,

Colored reports for text and HTML in Python

One of the things that I face regularly is report generation. Often they’re free form, by which I mean not tables full of tabulated data.

Output from my htmlAnsii() class

Output from my .htmlAnsii() class

Just “is this ok, is that ok, 27 of the other happened”, that sort of thing. I like to use color — green if everything is ok, red if it isn’t and so on.

I’m often out where I want the report in a web browser. But then again, I’m often at my desk, signed in to a console and I want it there. The environments couldn’t be much more different; HTML tags on the one hand, within the wrapper of a page, and ANSII escape sequences on the other. And they’re both kind of annoying and error-prone to write out explicitly, especially when you’re doing it a lot.

What to do?
Read the rest of this entry »

Tags: , , , , , , , , , ,