Category Archives: tech

TwigPen Oops 3

After it simply failed to tweet, I rolled the TwigPen code into rssupdatepnut; what follows is a repeat of my previous posts.

-mild bleating follows-

An updated version of my previous post follows. Executive summary: "Doh!"

-original below-

Oops! I forgot to git pull origin master the updated script from the rssupdatepnut GitHub repo.

…

Daft Baz scratched head for a few minutes thinking the script'd failed for some techy reason. No, simply PEBKAC.

Am I feeling lucky?

-original above-

It turns out I messed up here too, with the result below:

$ python3.6 rssupdatepnut.py

File "rssupdatepnut.py", line 81

TwigPen.postsomething(pnut_message)

^

IndentationError: unexpected indent

I'd better fix it then, instead of blogging about it!

TwigPen Oops 2

An updated version of my previous post follows. Executive summary: "Doh!"

-original below-

Oops! I forgot to git pull origin master the updated script from the rssupdatepnut GitHub repo.

…

Daft Baz scratched head for a few minutes thinking the script'd failed for some techy reason. No, simply PEBKAC.

Am I feeling lucky?

-original above-

It turns out I messed up here too, with the result below:

$ python3.6 rssupdatepnut.py

File "rssupdatepnut.py", line 81

TwigPen.postsomething(pnut_message)

^

IndentationError: unexpected indent

I'd better fix it then, instead of blogging about it!

PSA heat

It snowed again, the gritter failed to make an impact (but I'm not sure one came this way.) The school was shut so World Book Day didn't happen here, my wife was late from her night shift (waiting for staff to arrive), and the boiler stopped working.

What to do when the condensing boiler repeatedly stops working in the winter, it gurgles like a boiling kettle before the error indication appears, and resetting the thing fails:

It's likely that the condensate drain pipe is frozen outside the home.

  1. Find the condensate drain pipe; it'll project out of the bottom of the boiler case,
  2. Locate it outside,
  3. Pour hot water over the pipe outside,

If that doesn't clear the ice:

  1. Turn off the boiler at the mains switch,
  2. Find a bucket or a washing up bowl,

At this point I must stress that you need to be aware if you mess this bit up the very least of your worries will be the size of the repair bill:

  1. Disconnect the pipe from the bottom of the boiler and collect the spurty water on the wall behind and the floor beneath the boiler, anywhere but the bowl or bucket,
  2. Leave the vessel there to collect water,
  3. If you have a hose that you can connect to the drain fitting, fit it and drop the end into the vessel until the outside temperature rises,
  4. Turn the boiler on again; no gurgling!

Machine

The new washing machine is… it's got more programmes than the previous one, and more flexibility too! I'm…

/me rubs thighs enthusiastically…

Apologies to those of you on pnut,io who saw the multiple postings when my rssupdatepnut app failed; all I had to do was add code to overwrite the previous post date file with the latest post's date, if they were different.

RavPower case review

RAVPower Battery Case for iPhone 6 / 6S with Apple MFi Certified Extended Battery Charger with 3000mAh 125 Percent Extra Battery

Toilet proof?!

By Amazon Customer on 29 November 2017

Verified Purchase

Mine survived a trip to the u-bend yesterday. Don't try this at home; I did so you don't have to!

Disclaimer thingy: a quiet buzzing and a refusal to charge for hours afterwards might be a reliable indicator the device wasn't meant for this kind of adventure.

Was this review helpful to you?

[Helpful] [Not Helpful] [Report]

PigPen

I've spent my spare time during the last few weeks writing another app, this one for the pnut.io social network. It enhances the failures of my first app, for 10centuries.org. Yes, more social networking, surprising for such an antisocial [expletive deleted.]

https://github.com/bazbt3/PigPen

It's a Python program, application; heck call it an app if you must, I'm old. I began programming in the early 1980s, a time at the beginning of the UK's home computer boom, and a time when one had to program to make computers work. And then came the Sinclair Spectrum and its awesome games and all was lost for me by the mid-eighties.

Back to the present…

Yes, I've gone for feature bloat rather than iterate through the creation of bulletproof functions, but it's so satisfying when something works, when something clicks into place in my head, and when someone helps me understand something. That's the very best bit, cooperation!

FAQ (usually means 'frequently asked questions'):

So what does it look like? Old-fashioned.

How advanced is the graphical user interface? There isn't one.

Does it have a SnapChat plugin? Er… a say what now?

Does it have the ability to– Wait! It's written in Python 3.5; in good hands it can do pretty much anything a computer can do–

Ok, can it– No. I'm on but the second rung of the ladder, I can see snakes from here.

Roll 1d6 Oi! You f[CARRIER LOST]

Ok, the main thing I've gained from my progress so far is an enhanced understanding of the effort involved in the creation and maintenance of all the apps and services I'm using right now.

Respect.

Obsolete

I just finished making dinner for me and the girls and realised something quite profound. My web site has existed in various forms and at various hosts over the 20 years since I arrived online. That's not the important thing, no. 2017 is the first year that events outside my control rendered the vast majority of its content obsolete.

Yes, this is another post about the collateral damage resulting from App.net's demise; though this one will thankfully be brief. Being honest, I don't see much point in writing much about the past now, the future is much more important. It's actually very easy for me to say that; the majority of people who made App.net special are at 10centuries.org or pnut.io right now.

Back to my Wiki-type site. First the volunteer-driven App.net Wiki I helped edit expired, I stepped away from iOS, and then the network the App.net Wiki documented disappeared. Well, at least its infrastructure did. Ahhh…

My focus changed over the last year-and-a-half to blogging about what I'm thinking about, what I'm doing, and what makes me tick. A typical personal blog.

Maybe I should redirect incoming site requests to my 10C blog. or the more complete but less-social GitHub.com version or, heck, the trial self-hosted blog currently unloved and waiting for me to reconnect the Raspberry Pi 2 B mirroring it from the GitHub repo.

Dunno.

IT support

This user-requested software upgrade exchange didn't happen. I've made it up. Yes.*


The Man:

"[folder name] There is a launcher in here [program name].exe which should install the shizzle."


Me, feeling cocky:

"We iz installing the shizzle on Jason’s machine.Ā  We think. :)"


(time passed…)

Unfortunately due to the way [program name] works, its installer had a lie down instead of exhibiting the outward trappings of a performant conclusion.

Me, somewhat circumspect:

"Could you please start the [program name] upgrade on a few more machines after lunch/1pm? Ben, Zeb, John-Boy and John. Ā Maybe Olivia and Mary-Ellen tomorrow."


The Man:

'Please see below for the correct way to submit a request, as one of your colleagues seemed to nail it!

"Oh Great One,
Your humble servant requests that you fix [another program name] on my PC what not working (but did last week).
Thanks'


Me, acquiescing:

"Dear Sir or Madam of Awesomesauce,

This obsequious underling (initially examining but not limiting said examination to in this regard the relative vertical offsets between uppermost portions of cranial body parts) is desirous of your physical presence around these environs after the commencement and subsequent termination of the half-hour period in which the majority consume their midday repast to effect the increase in [program name]-related CAD and/or design productivity (post-button-fiddling-and-bitwise-cogitation) of a small number of my esteemed colleagues, to be occasioned by a heretofore successful manual implementation of a ā€˜soft ware upgrade’; those colleagues being namely by name: Ben of Sausage, Zeb of Sausage, John of Sausage, and John-Boy the, er…  And, upon successful termination of the afore-to-alluded-to procedural black-box magic incantations, to examine the possibility of repeating the procedures on two further colleagues’ computing devices at a point not limited to a limited time within the limits of the next working day; those personnel being namely Olivia The Great of A-Specific-Sausage-Name-Analogy and Mary-Ellen The Great of Many-Bread-Product-Name-Analogies.

Yours in eager and trembling anticipatory raptures,
Mr or Mrs Turner.

p.s. The writer has determined that his or her [another program name] is also what not working (but what did earlier in the year.)"


(time passed…)

Yes, of course he did it, tsk!

The end.


*Er… No, that's not exactly true. However the names have been changed to protect the identities of the guineapigs involvZzzz…

7 bits

Last week, during the school holiday, my wife took our daughters to a National Trust property. My oldest has to prepare a piece on Victorian England, so where better to go than a historic home and mill?

During the tour around the mill both girls made key rings, beads strung in the form of a binary number representation of the initials of their first and last names.

The next day I got together with my youngest to decode the beads, adopting a methodical approach:

  • Explain what binary numbers are used for these days,
  • Explain what they were used for in the olden-days,
  • Sketch out a table of 7-bit binary, and extend it to 8 bits,
  • Note down the first set of beads, being careful to establish a datum from which to start, in case we chose the wrong end first,
  • Add up the filled 1, 2, 4, 8, 16, 32, 64 and 128 positions, explaining why,
  • Find an ASCII character table from the Internet to decide which character the number represents,
  • Repeat for the second letter, which proved we'd chosen the wrong end from which to start, but it didn't matter for the first,
  • Success!

Ok, you get the idea. A surprisingly fun thing to do on a miserably mild English winter afternoon.