Category Archives: tech

Technology

The mists of time have of course dulled the memory, but it was the early nineteen seventies, was probably a very early, very basic, very Casio pocket calculator (replacing a slide rule) that started me off down the road to…

I'm pretty certain my dad bought the thing whilst we were on our annual 2-week holiday, somewhere on the south coast of England. It was awesome, it was perfect with its green LED display. It just worked. Little did I know at the time where it would lead me…

To live in an age of such rapid technological advancement is a constant source of wonder for me. Though the transistor predates me by a significant number of years, the miniaturisation it enabled brought possibilities unimaginable a few years earlier.

My dad was an electronics hobbyist; his life spanned the time after the creation of the first thermionic valve devices, through the transistor revolution, through amateur radio enthusiasm, right up to the home and business computer boom.

He might have viewed younger generations' disdain for learning about the technology which makes things 'just work' and their 'need' for the newest, fastest, best devices their parents (or disposable income) can buy. He wasn't, as far as I can recall, an old curmudgeon, he simply liked to get his hands dirty.

So do I, to a point; but I'm as guilty as the next child in wanting 'improvements.'

I did my bit in the nineteen-eighties though. Computer hobbyist! My third computer had a rich collection of programming languages available, and so I used most. It had analogue/digital interfaces, and those briefly opened up a whole new world to me.

I typed magazine program listings 'in', fixed the typos introduced by the technologically-illiterate publishers, and adapted the knowledge I gained to create even better routines.

Heck, I even flowcharted my programs!

I designed and built a digital joystick (microswitches) and, from rotary potentiometers and microswitches, an analogue joystick and a baseboard-mounted 2-arm graphics tablet. I wrote software to control what happened onscreen, taking inputs from the…

I messed about with a few variants of BASIC, played with Forth, Pascal, steered around anything to do (with (Lisp's braces)), and even dabbled with 6502 Aasmbly language (a text character Space Invaders clone that ran way too fast to play.)

And then life got in the way, though I did play games during the interludes between life and work. Programming was largely forgotten, consigned to history.

We don't need to create stuff nowadays though; talented developers, designers, creators – they can do it all for us. Pick up a modern computing device – computer, network, tablet, phablet, phone – and stuff is but a quick download away. Life is easy.

Things indeed just work. There's the expectation that they just work, but a very basic lack of understanding of the 'how.' It's fine, I recognise that not everyone had the desire to spend time, is capable of, designing a program to do even the simplest of tasks. Life is easy for a reason – we're standing in the shoulders of giants every time we breathe, it seems.

Ive been blogging – stream-of-consciousness style – of my Raspberry Pi Linux playtime. I started with the intention of creating a niche blogging aid, yet the 'something' that's followed me from the early nineteen-seventies persists still.

I could blog on any number of host platforms, yet I choose to restrict my words to four:

  1. I self-host. This option brings by far the most enjoyment, but it's fraught with unforeseen technical difficulties and the need to slide a learning curve.
  2. I use GitHub Pages. Slightly less complex, though I used the framework the service provided as the base for my self-hosted site.
  3. I use 10Centuries v2. A personal project by Jason Irwin, it saw a fair amount of traction with App.net users, me included, for its simplicity. It's in the process if being superseded.
  4. I recently started to use 10Centuries v4, v2's successor; and would very much like to migrate all my v2 posts there eventually.

10Centuries isn't simply a blogging platform though, there's:

  • Blogging (of course),
  • Podcasting – almost painless,
  • A burgeoning social network (posts are Blurbs, not Tweets.) Until this weekend the network was a limited private beta, everyone followed everyone else, but now it's about to expand – with a limited number of user invites available,
  • Developer access to the 10Cv4 API (application program interface!)

I've already had a brief play with the API; created an app authorisation token, and then an access token to interact with the API before my first 'hello world' post – at which point my head asploded!

It's not every day I'm programming on a computer controlled by the computer on my lap. (SSH is magic, pure and simple.)

I'm not alone attempting to develop stuff. Fortunately everyone else has relevant skills!

For its freshness, newness, openness and all-round friendliness I can easily recommend 10Cv4. It's a place that both promises and delivers on the promise that App.net emerged with and, to a degree, still retains.

Owning your data, no ads, no sophisticated algorithms to re-order posts in what often seems like a totally random manner elsewhere – all powerful draws. It worked for me.

The 'paint is still drying' on a few features, some are in a state of rapid development and heck, some aren't even implemented yet! But there'll be nothing obvious getting in your way.

If you're like me and simply want to chat about 'stuff', have no message to spread, no desire to attract legions of followers just for the sake of numbers, then 10Cv4 is for you.

If you're dissatisfied with the state of your social network (or 'social' in general) and want a change, a fresh start perhaps, and would welcome my invite, let me know!

Don't expect me to be there all the time, or be a social network evangelist though, I'm spreading myself too thinly as it is! Neglecting you on more than one network is weighing heavily.

But I'm having fun and that, for me, just works.

Testy

I'm annoyed that it's still not working. My blog post build thing.

This is indeed a test post; thanks for your patience at this time.

Insomnia

I've been asleep, honest! Knowing there would be a solution to my Raspberry Pi automation woes I started to search around 2am.

Google and Stackoverflow.com are pretty handy at this time of night; 'rvm installation not working: "RVM is not a function".

It turns out that all I needed to obviate my need to run the scripts in a login shell was to copy the second line of code from ~/.bash_profile to ~/.bashrc.

Thankyou Haris Krajina!

No, I'm not going to wait up.

Anticipation

Apologies for my absence from everywhere social for the last week. I haz bean programin stuf!!!2!¡

The 2 shell scripts to take my GitHub blog repo and throw it up at my Web host now work. Automagically. I'm amazed!

Next step: think of something to write, post it at GitHub, and see if I'm full of hot air or not.

Currently the most recent post at git.bt3.com is 'Engineer', which is preceded by 'Nerdity'.

Midnight UK time should prove something – this post should be up round about that time.

Nerdity

Another short one today; it's been a 'nothing' weekend outside my ongoing Raspberry Pi playtime.

Here's a repeat link to what I wanted to do with it, what I've done, and what I've actually accomplished so far – which is actually now 2/3 of the total.

My Raspberry Pi Setup – at GitHub.com.

So, what else have I accomplished?

  • Walked Ruby dog,
  • Helped with the girls' homework,
  • Bought a pair of walking shoes to replace those that Ruby chomped,
  • Washed, dried, put away clothes,
  • Changed the cat litter,
  • Been shown a paint colour chart; my wife's chosen a new colour for the hallway…

In-short, underperformed.

Git

A short one today. My nearly-week-old Raspberry Pi is now behaving, more-or-less.* Here's a link to what I wanted to do, what I've done, and what I've actually accomplished so far.

My Raspberry Pi Setup – at GitHub.com.

It's not overly-technical, nor is it particularly helpful or comprehensive. The plan is to expand a bit, make it more readable.

There are spelling errors sprinkled throughout, and it's an early draft.


*After 4 complete resets to factory settings I'd be silly to admit I've not learned a darn thing about Linux.

Meh

Summary: Meh.

Detail: Feeling crap, like death warmed up.

I was going to write a long piece about how my recent blog posts weren't necessarily a true reflection of self. The only stuff I've mentioned recently is negative, judgmental or at least ambivalent towards 'things.'

I lead a charmed life though, I'm lucky I'm in a position to be able to moan about first-world problems.

Anyone reading will tire of me mentioning the Raspberry Pi computer. Yesterday's enforced break from playing with it brought with it a welcome pause; the first day since I bought the thing that I haven't felt the need to reset it due to my misplaced enthusiasm for moving forward.

We'll see.

Sideways seems a fair direction to head in, for now.

I had a bit of a play this afteroon, between sitting on [redacted] and made progress; as can build and serve to my computer, can FTP to my web server and have it served from there.

I found a bug in the Jekyll static site generator though; or at least the one on my system. The most recent post 'No' fails to display its title when rendered locally. Renaming it to 'Nope' works but I'd like to Zzzz…

Ruby

Ruby, I could tear my hair out!!

It's probably not what you think; Ruby dog's fine, it's the computer Ruby I'm just about to rant about.

When I last used Linux the main stumbling block was Ruby – or the version manager incompatibilities with what I needed to do. It's no different this time around with the Raspberry Pi.

The credit-card-sized computer comes with Ruby 1.8. The stuff I want to use requires at least 1.9.3 (I think), so I opted to install 2.0.0. No matter what I did, when I've set it all up and it reports 2.0.0 and I try to install Jekyll, Jekyll reports that listen requires at least 1.9.3.

But, but…

So I reset the bloody thing for a second consecutive night and I'm off to bed!

Maybe the Raspbian Debian thing isn't up to the task and I need something with a little more 'oomph!'

At this point I'll take suggestions from anyone!

Next steps:

  1. Get rid of Ruby 1.8 completely,
  2. Reinstall RVM and Ruby 2.0.0.
  3. Install Jekyll!!
  4. Install sqlite3 prior to
  5. Gogs – a Git repo manager.

Not a big list is it.

Nope

Another summary post, this of a wasted day:

Personal

The lady who was supposed to visit my oldest daughter today didn't show up on time. Giving her the benefit of the doubt, I rang 1-1/4 hours after the scheduled start time.

"Oh, she's been off sick for a week-and-a-half, can you give me your daughter's name please?"

I did so.

"I'm just looking at her diary, it seems we missed you."

I then launched into a rant: 'I took the day off, my wife's stayed awake after her night shift, you've got a disappointed little girl here; tell the manager we're yet again dissatisfied by your lack of organisation…'


Home

A local tradesman tasked with a simple home visit 'around teatime', to fit his schedule, to quote us for 2 new radiators failed to show or call or text.


Ruby

(The dog this time!)

She's chewed her second pair of my Gore-Tex walking shoes. The girls leave the shoe cupboard door open, have no concept of…

My wife seems to think the total destruction of one side of the heel padding is fixable. I'll hover a finger over the Amazon 'buy again' button.


Ruby

(Yeah, computer stuff.)

Another day, another Raspberry Pi reset; the fourth in 4 days. Rather than do what I wanted to with the computer, it's perhaps a good time to re-evaluate my single purpose; blogging support.

It would gave been sustainable, there's enough scope in setting up a web site to fiddle with, fine-tune, break and fix. But problems with Ruby (computer program dependencies) are getting tiresome. Next step though: check out @mlv's 'strings (1)' comment.

Luckily the Raspberry Pi community has a huge amount of imagination and skill, for example Jonathan Duerig's (@duerig's) book scanner.


Stuff

I went shopping on my own while my wife slept and the girls watched streaming films. I didn't miss much either. The best thing to happen all day.

Raspberry Pi!

Raspberry Pi update. Firstly, and finally, I bought one! The day before Valentine's Day; the trembling anticipation of using 'Amazon Prime Now' proved too strong to resist. The delivery arrived 1-1/2 hours after my finger left the 'Buy Now' button!

Dont worry, my wife got the card and a single red rose!

Back to techy stuff:

Yesterday I:

  • Installed the GitLab* software. Badly.
  • Installed Ruby & support for Ruby gems.
  • Installed the Jekyll static website & blog generator.
  • Installed Glynn, a Ruby gem that copies the site to a remote ftp location.

I say I installed GitLab badly; I failed to setup the program's ability to email activation links to new users. The next step was going to be fix that and progress to setting up the authorisation keys necessary to clone my online git repositories…

I let enthusiasm cloud my judgment.

I, again badly, uninstalled GitLab, and tried every other GUI git program installer.

Ruby, the key to everything I need, wasn't playing along with the new stuff I wanted to install. I'd started with RVM but got rid of that and threw RBENV on instead (remembering the hardship I faced trying to get ayadn_shell to run.)

(time passed…)

To cut a long story short, it's a good thing I'm running the Raspbian Debian Linux installed by something called NOOBS; it has a quick & easy reset to factory settings option on reboot. So I used it.

Wiped, restarted, re-entered new password and computer name; compy386 – to replace my previous laptop, a machine named lappy486. (It's pointless going with a strict chronology at a time like this!)