Profile

Cover photo
Gavin Panella
Works at Canonical Ltd.
427 followers|255,740 views
AboutPostsPhotosVideos

Stream

Gavin Panella

Shared publicly  - 
We the undersigned call upon HM Government to implement a rule that if the remain or leave vote is less than 60% based a turnout less than 75% there should be another referendum.
2
Gavin Panella's profile photoJulian Edwards's profile photo
5 comments
 
There was always going to be serious butthurt whichever side won. Both sides had a long time to campaign, and convince voters. Both campaigns were shite, I thought. But nonetheless, the people have spoken and it must be respected, to do otherwise would be very dangerous for democracy. 52/48 equates to over a million people.

BTW the FTSE is around the same level as it was in February, the markets have indeed spoken.

As a country, we can either talk ourselves down, or be properly British and get on with it and shape the future rather than moan about things.

If whoever gets elected as PM plays their cards right, we'll keep free movement, access the EEA as an EFTA state, halve the bill to the EU, have better democratic accountability, and have the freedom to make free trade deals with the rest of the world without Italian tomato growers vetoing things.

The Australians, Kiwis, Canadians and the USA have all asked for a free trade deal once out of the EU. The future is bright, despite all the gloom mongers in their narcissistic echo chambers.
Add a comment...

Gavin Panella

Shared publicly  - 
 
Microsoft are buying LinkedIn for $26.2 billion. Thank goodness: someone needed to shut it down.
3
Newell Jensen's profile photo
 
Hard for me to get my head around that purchase price.
Add a comment...

Gavin Panella

Shared publicly  - 
 
I spent some time last night finishing off the Rust "Creating a Phoronix Reader Application" tutorial. It was pitched about right for someone like me trying to get his feet wet learning the Rust language. It doesn't get too deep, but I ended up with a working program that does something non-trivial.

It skirts over error handling, for example, which normally bothers me enormously when learning a new language. Errors are really important! However, the numerous unwrap() calls in the code are actually quite pragmatic, especially for a tutorial, because they turn errors into exceptions. I could work on the happy path while learning the basics, but the program will stop and tell me why if something goes wrong. I think that's fine.

I didn't do the GUI part of the tutorial because I couldn't find a system package to provide a gdk3 dependency, but I'll go back and do those steps if I can figure it out.
This will provide simple instructions for writing a program in Rust to collect articles from Phoronix. The initial focus will be creating a CLI application with colored output, but will expand to include a GTK3 GUI.
2
Add a comment...

Gavin Panella

Shared publicly  - 
 
"One observation is that a substantial amount of time was spent after the IPv6 changes had been deployed proving that IPv6 was not the cause of sundry network issues. Whenever you change things in the client network layer, be prepared to own all client network glitches until further notice."
Illustrations by Jonas Ekman Since the dawn of time, man has used 32-bit addressing. When the first Homo Erectus crawled out of the sea 6000 years ago, IPv4 infrastructure was already installed and the savannah was teeming with spam, flames and lewd ascii-art. Back in 1992, the Chief Architect, a man named Greg Internet, started…
1
Add a comment...

Gavin Panella

Shared publicly  - 
 
2to3 incorrectly assumes that all non-prefixed string literals in my program are intended for human consumption and so leaves them alone. However, they are almost all byte strings, so I would like to add a "b" prefix to them. There are a lot so I don't want to do it by hand. Can 2to3 be taught to do that? Or are there any decent/simple code manglers for Python? I could use a regex but I want to see if this problem has been solved "properly" first.
1
Julian Edwards's profile photoGavin Panella's profile photo
13 comments
 
Importing unicode_literals everywhere in MAAS and forbidding the use of "str" means that byte strings are unambiguously byte strings, Unicode strings are unambiguously Unicode strings, and 2to3 will preserve our intent. I am sure we'll find some implicit encoding or decoding that we will have to fix, but if this policy has worked there should be many fewer occurrences than we would have had otherwise.
Add a comment...

Gavin Panella

Shared publicly  - 
 
Here's a new post about post-commit hooks in MAAS. It's probably harder going than my previous posts, in part because these hooks' behaviour and the rationale behind them is a little convoluted.

I've been working on a related problem in MAAS right now and trying very hard to dream up a magic bullet to solve some concurrency issues we're having in 1.9. Writing this post has helped to structure my thinking. I'm not sure I have a magic bullet but I do have a plan.
Near the end of Transactions in MAAS I mentioned post-commit hooks. These are a mechanism that MA...
1
Add a comment...
Have him in circles
427 people
Dorothee Sossa's profile photo
Laura Fautley's profile photo
Allan Coganovitch's profile photo
James Westby's profile photo
Paul Hummer's profile photo
Renato Arruda do Couto's profile photo
Aaron Powell's profile photo
Michael Hill's profile photo
Tim Penhey's profile photo

Gavin Panella

Shared publicly  - 
 
The bathwater is dirty. Today in the UK we vote whether to deal with the bathwater or burn down the house and raze the neighbourhood.
7
Julian Edwards's profile photoGavin Panella's profile photoJeroen Vermeulen's profile photo
6 comments
 
I don't think there's any need for this to be a net negative to the UK, unless the EU decides to stir up trouble for political gain.

For instance, my impression of late is that they've effectively (though unintentionally!) been stoking the fires of nationalism in various regions with independence movements by giving them independent rule from their respective countries - though not of course independent rule as such.

So various parts of the UK might decide they could get better subsidies, their own top-level domains etc. by declaring independence and joining the bloc. That would be a terrible outcome for everyone, but an entirely avoidable one. Support has a shocking tendency of amplifying victimhood in many cases where it was meant to emancipate victims.
Add a comment...

Gavin Panella

Shared publicly  - 
 
By my scientific estimation our black Labrador has shed many times her body weight in hair since last Thursday. I need a Dyson the size of Wallace's Anti-Pesto machine to deal with it. It might be easier to simply move out, walk away, and start a new life somewhere else.
3
Newell Jensen's profile photoGavin Panella's profile photo
2 comments
 
It's strongly appealing, and I'd take the dog with me. Living off grid somewhere remote I wouldn't have to care about dog hair.
Add a comment...

Gavin Panella

Shared publicly  - 
 
It seems like just yesterday that we finished building the thing, but we're selling up and moving to Luxembourg. Again. Want to live in Wymondham, Norfolk, UK?
2
1
Add a comment...

Gavin Panella

Shared publicly  - 
 
I don't expect a prize for observing that git at the command-line is convoluted, confused, inconsistent, brutal, and sadistic.

I've used bad command-line tools. I've created some. But somehow this one captured the hearts and minds of a generation of software developers to become the de facto standard for revision control of source code.

This casts a shadow on the judgement of software developers. I thought we were meant to be clever! In our impatience we've traded handfuls of saved milliseconds for accumulating days reading documentation and Stack Overflow. In our hubris and vanity we've relinquished safety and predictability in favour of cosplay as Linus. Yes, we literally love dressing up as Linus and typing garbled crap into bash.

I know I can't turn back the tide on this. I'm just exasperated, like >90% of people I know who use git (it's actually 100% minus one person, but I'm allowing for confirmation bias). A younger impetuous me would embark on a new front-end, but these days I already know that my motivation to do that would wane rapidly. I will plod on with git, imperfect as it is, and try to learn a few tricks along the way until the next git comes along.

And ultimately, if I want to hack like a movie star, it's got to be git, right?
3
Gavin Panella's profile photoJulian Edwards's profile photoJeroen Vermeulen's profile photo
16 comments
 
Git doesn't really care about directories - try putting an empty directory
under revision control. It gets ignored. Not too problematic once you're
aware of this twist, and perhaps even sensible if you're familiar with the
data storage format. But it's just another complication when explaining
Git as a product.

I do want empty directories sometimes, so I've had to work around this. If
each branch lived in its own directory it might be easier to notice that a
subdirectory was missing from the repository..
Add a comment...

Gavin Panella

Shared publicly  - 
 
Dear Knowledgable About GitHub folk, when using pull-requests, is there an equivalent to Launchpad's prerequisite branch? I'm working on a series of changes, each dependent on the previous, and I'd like to be able to create the pull-requests as I complete each piece of work rather than waiting for each to be reviewed and merged. Thanks!
1
Gavin Panella's profile photoJulian Edwards's profile photoGraham Binns's profile photoCelso Providelo's profile photo
15 comments
 
Well done +Graham Binns, you've just revealed my career secret ... Now I have to develop another effective and persuasive approach to coding or become a butcher ...
Add a comment...

Gavin Panella

Shared publicly  - 
 
This is so cool, and it makes me want to help finish the pluggable-power work in MAAS :)
 
PC Power Control with a Raspberry Pi and Maas
I recently decided to setup a small cluster of computers at home to be managed by Juju and MAAS. The computers are in the attic which meant that finger based power management was going to quickly lose its appeal. Many of my friends and colleagues have envia...
I recently decided to setup a small cluster of computers at home to be managed by Juju and MAAS. The computers are in the attic which meant that finger based power management was going to quickly lose its appeal. Many of my f...
View original post
6
1
Add a comment...
People
Have him in circles
427 people
Dorothee Sossa's profile photo
Laura Fautley's profile photo
Allan Coganovitch's profile photo
James Westby's profile photo
Paul Hummer's profile photo
Renato Arruda do Couto's profile photo
Aaron Powell's profile photo
Michael Hill's profile photo
Tim Penhey's profile photo
Work
Employment
  • Canonical Ltd.
    Software Developer, 2007 - present
Story
Introduction
I live in Wymondham, near Norwich, in the UK, with my wife, two young children, and dog. I'm a software developer at Canonical.
Basic Information
Gender
Male