Author Archives: Paul

More consolidation: Squirt

After spending some time cleaning up the mess of repsoitories that I have generated over the past few years, I thought it might be a good time to take a look at Squirt, a slightly larger project. In this case, Squirt still has its own repository but I have removed some branches. Now, instead of creating a seperate branch for every point release (because this is going to become very silly very quickly), I have two branches: development and master.

Obviously, the intention is to use development for any code changes and once I am happy with them, they will be pushed to master. Hopefully this will encourage to be a little less tardy about keeping the master branch up to date.

Flattr this!

2014 in books

I noticed today that Goodreads has a nifty feature that allows you to list the books you read in 2014 and I wondered if I could find some way of exporting it onto here. The answer, unless I am missing something obvious, is not easily.

But it’s mildly interesting to look back at what I read, so here is the list. The blockquoted bits are the synopsis, as published on Goodreads. The bits below are my own thoughts, if I have any.

Seal of the Worm by Adrian Tchaikovsky

Seal of the Worm The Empire stands victorious over its enemies at last. With her chief rival cast into the abyss, Empress Seda now faces the truth of what she has cost the world in order to win the war. The Seal has been shattered, and the Worm stirs towards the light for the first time in a thousand years. Already it is striking at the surface, voraciously consuming everything its questing tendrils touch. Faced with this threat, Seda knows that only the most extreme of solutions can lock the Worm back in the dark once again. But if she will go to such appalling lengths to save the world from the Worm, then who will save the world from her? The last book in the epic critically acclaimed Shadows of the Apt series.

This has been a superb climax to a superb series. There is so much that it’s difficult to talk about this novel without giving away huge spoilers for previous books in the series.

Adrian Tchaikovsky has done a spectacular job of reimagining the fantasy genre and taking it in a wholly new direction. I shall certainly be looking out for what he does next.

Ancillary Justice by Ann Leckie

Ancillary Justice On a remote, icy planet, the soldier known as Breq is drawing closer to completing her quest. Breq is both more than she seems and less than she was. Years ago, she was the Justice of Toren–a colossal starship with an artificial intelligence linking thousands of corpse soldiers in the service of the Radch, the empire that conquered the galaxy. An act of treachery has ripped it all away, leaving her with only one fragile human body. And only one purpose–to revenge herself on Anaander Mianaai, many-bodied, near-immortal Lord of the Radch.

This book melted my brain. On the face of it, this looks like a reasonably straightforward story of betrayal and revenge but there is so much packed into the plot that it really does push you to think about a whole range of issues – the largest and most obvious being the question of identity and what makes us who we are.

It does take a bit of effort to fully appreciate everything that is going on, but it’s effort that is well rewarded.

Thinking, Fast and Slow by Daniel Kahneman

Thinking, Fast and Slow Daniel Kahneman, recipient of the Nobel Prize in Economic Sciences for his seminal work in psychology that challenged the rational model of judgment and decision making, is one of our most important thinkers. His ideas have had a profound and widely regarded impact on many fields—including economics, medicine, and politics—but until now, he has never brought together his many years of research and thinking in one book.

In the highly anticipated Thinking, Fast and Slow, Kahneman takes us on a groundbreaking tour of the mind and explains the two systems that drive the way we think. System 1 is fast, intuitive, and emotional; System 2 is slower, more deliberative, and more logical. Kahneman exposes the extraordinary capabilities—and also the faults and biases—of fast thinking, and reveals the pervasive influence of intuitive impressions on our thoughts and behavior. The impact of loss aversion and overconfidence on corporate strategies, the difficulties of predicting what will make us happy in the future, the challenges of properly framing risks at work and at home, the profound effect of cognitive biases on everything from playing the stock market to planning the next vacation—each of these can be understood only by knowing how the two systems work together to shape our judgments and decisions.

Engaging the reader in a lively conversation about how we think, Kahneman reveals where we can and cannot trust our intuitions and how we can tap into the benefits of slow thinking. He offers practical and enlightening insights into how choices are made in both our business and our personal lives—and how we can use different techniques to guard against the mental glitches that often get us into trouble. Thinking, Fast and Slow will transform the way you think about thinking.

This is a fascinating look at the mental shortcuts we take and the way in which we frequently allow these shortcuts to mislead us. The first few chapters felt, to me, to be covering territory I already knew but the author keeps on diving deeper and deeper into how our cogntive functions actually work.

The results are not always edifying, but the journey is riveting.

Why Does E=mc²? (And Why Should We Care?) by Brian Cox and Jeffrey R. Forshaw

Why Does E=mc²? The most accessible, entertaining, and enlightening explanation of the best-known physics equation in the world, as rendered by two of today’s leading scientists.

Professor Brian Cox and Professor Jeff Forshaw go on a journey to the frontier of 21st century science to consider the real meaning behind the iconic sequence of symbols that make up Einstein’s most famous equation, E=mc2. Breaking down the symbols themselves, they pose a series of questions: What is energy? What is mass? What has the speed of light got to do with energy and mass? In answering these questions, they take us to the site of one of the largest scientific experiments ever conducted. Lying beneath the city of Geneva, straddling the Franco-Swiss boarder, is a 27 km particle accelerator, known as the Large Hadron Collider. Using this gigantic machine—which can recreate conditions in the early Universe fractions of a second after the Big Bang—Cox and Forshaw will describe the current theory behind the origin of mass.

Alongside questions of energy and mass, they will consider the third, and perhaps, most intriguing element of the equation: ‘c’ – or the speed of light. Why is it that the speed of light is the exchange rate? Answering this question is at the heart of the investigation as the authors demonstrate how, in order to truly understand why E=mc2, we first must understand why we must move forward in time and not backwards and how objects in our 3-dimensional world actually move in 4-dimensional space-time. In other words, how the very fabric of our world is constructed. A collaboration between two of the youngest professors in the UK, Why Does E=mc2? promises to be one of the most exciting and accessible explanations of the theory of relativity in recent years.

A fascinating and clearly written review of Einstein’s theories of relativity and what they mean. It’s so straightforward that even I could understand it.

Railsea by China Miéville

Railsea On board the moletrain Medes, Sham Yes ap Soorap watches in awe as he witnesses his first moldywarpe hunt.

The giant mole bursting from the earth, the harpoonists targeting their prey, the battle resulting in one’s death and the other’s glory are extraordinary. But no matter how spectacular it is, travelling the endless rails of the railsea, Sham can’t shake the sense that there is more to life. Even if his philosophy-seeking captain can think only of the hunt for the ivory-coloured mole she’s been chasing – ever since it took her arm all those years ago.

When they come across a wrecked train, at first it’s a welcome distraction. But the impossible salvage Sham finds in the derelict leads to considerably more than he’d bargained for. Soon he’s hunted on all sides: by pirates, trainsfolk, monsters and salvage-scrabblers.

And it might not be just Sham’s life that’s about to change. It could be the whole of the railsea.

Although I have been seeing praise for China Miéville for some time, this is the first of his novels that I have read. It took me a bit of time to get used to hi0s writing style, but once I did, Railsea turned out to be a hugely fun romp of a story. There aren’t any real surprises in the plot, but what is there is all handled exceptionally well.

From Aberystwyth with Love by Malcolm Pryce

From Aberystwyth with Love It is a sweltering August in Aberystwyth. A man wearing a Soviet museum curator’s uniform walks into Louie Knight’s office and spins a wild and impossible tale of love, death, madness and betrayal. Sure, Louie had heard about Hughesovka, the legendary replica of Aberystwyth built in the Ukraine by some crazy nineteenth-century czar.

Transition by Iain Banks

Transition There is a world that hangs suspended between triumph and catastrophe, between the dismantling of the Wall and the fall of the Twin Towers, frozen in the shadow of suicide terrorism and global financial collapse. Such a world requires a firm hand and a guiding light. But does it need the Concern: an all-powerful organization with a malevolent presiding genius, pervasive influence and numberless invisible operatives in possession of extraordinary powers?

Among those operatives are Temudjin Oh, of mysterious Mongolian origins, an un-killable assassin who journeys between the peaks of Nepal, a version of Victorian London and the dark palaces of Venice under snow; Adrian Cubbish, a restlessly greedy City trader; and a nameless, faceless state-sponsored torturer known only as the Philosopher, who moves between time zones with sinister ease. Then there are those who question the Concern: the bandit queen Mrs. Mulverhill, roaming the worlds recruiting rebels to her side; and Patient 8262, under sedation and feigning madness in a forgotten hospital ward, in hiding from a dirty past.

There is a world that needs help; but whether it needs the Concern is a different matter.

Iain Banks wrote some exceptional literary fiction. Iain M. Banks wrote some exceptional science fiction. I didn’t pay enough attention to the missing M in the author’s name when I picked up this novel.

Transition isn’t a bad novel but it does feel like the sort of novel that emerges when an author veers into a genre they don’t fully appreciate.

Iain M. Banks would have written a much better novel.

The Call of Kerberos by Jonathan Oliver

The Call of Kerberos Twilight, a world overshadowed by a vast gas giant, bathing the earth in its otherworldly glow. A world of magic and warriors, zealots and monsters. It is here that the human race cling to a small peninsula, ignorant of what lies beyond the World’s Ridge mountains. But there are those amongst this fledgling race with truly extraordinary powers, heroes who would delve deep into the mysteries of the past and bring new light to Twilight. Twilight of Kerberos is a sword and sorcery series, following the adventures of a group of characters with unique talents. The world changes for Silus – a simple fisherman from Nurn – when a man on the run from the Final Faith tries to persuade him on an extraordinary voyage. Then an ancient evil bursts from the sea and tries to claim Silus as one of their own. To discover the truth about his legacy Silus must take to the forbidding Twilight seas. There, the truth will forever change his world and threaten existence
itself!

I’m in two minds about this book. I do quite like the idea of multiple authors playing in a shared world, but this is not the strongest entry in the series so far. The writing is good enough to keep me with the story up to the end, but I really wasn’t buying into the premise – and I think this may turn out to be a problem with the series as a whole.

Coyote by Allen Steele

Coyote The national bestselling story of Earth’s first interstellar colonists-and the mysterious planet that becomes their home.

Allen Steele has thrown a lot of ideas into Coyote, but never really stopped to develop any of them. The end result is both superficial and disjointed.

This, I realise, is quite a damning criticism of a hard-sf novel in itself. But the problem is compounded by the characters – they are one-dimensional, often inconsistent and uniformly uninteresting. I realy couldn’t bring myself to care what happened to any of them.

I had heard many good things about Coyote before I read it but the book has proved to be a disappointment. It wasn’t bad enough to abandon, but I did come close several times.

Flattr this!

This is how you make coffee

I don’t think I need to add anything here…

Flattr this!

It is done

I mentioned last month that I was in the process of consolidating the mess of repositories that I have created over the past few years. This is now done and, hopefully, will be a bit more manageable going forward.

I now have three consolidated repositories: silliness, utilities and utils-on-power. The Configurate repository is already logically enough organised and Squirt is large enough to justify its own repo.

I have also removed the static pages referring to these repos on this site. They were creating overhead without adding any value.

And I now know a lot more about Git that I knew this time last month.

Flattr this!

A quiz, and it’s all about me

It would be a mistake to take any sort of online personality test seriously. Since the results depend on the answers you provide, the best they can do is reflect back at you what you already know or think about yourself. That said, I’m still a sucker for these things so when I saw a link to a Narcissistic Personality Quiz on Pharyngula, I couldn’t resist.

Your Total: 4
Between 12 and 15 is average.
Celebrities often score closer to 18.
Narcissists score over 20.

My highest score was in Self-Sufficiency which I can certainly agree with. But that’s hardly surprising since it was me answering the questions in the first place.

Flattr this!

Squirt 0.2: Now with SMTP

As you may or may not be aware I have been tinkering with a command-line FTP client over the past year or so. And now seems as good a time as any to release version 0.2. The main change here is that the FTP client now supports sending data via SMTP.

In order for this to work, you need to be able to specify an SMTP server and port but, if you have a spare gmail account knocking around, server smtp.gmail.com and port 587 will work quite nicely.

As ever, you can find all of the source on GitHub. Feel free to tinker around with it.

Flattr this!

Fun with Git: Moving a file from one repository to another

This has taken a while for me to come up with an approach, and the approach I took probably isn’t the most efficient. In fact I am sure it isn’t.

But it worked and I thought it would be worth documenting it for the next time I want to do something like this.

So the issue was that I had two files (dicetastic.py and dicelib.py) that needed to be moved. These files has started out in their own (now deleted) Dicetastic repository and then merged into my utilities repository. Now I wanted to move them to silliness, while retaining the git history.

The approach I eventually took was to format a set of patches from the original repositor(y|ies) and then merge them into the new.

So first I created a folder called rollout:

mkdir rollout

Then I formatted the patches I needed from the utilities folder:

cd utilities
git format-patch -o ../rollout --root dice*

This created three patches in the rollout folder. Unfortunately this wasn’t quite what I wanted as none of the history from before I started mucking about with this.

So I went back and formatted the patches from the Dicetastic folder:

cd ../Dicetastic
git format-patch -o ../rollout --root dice*

And I will note here that I should have done this for everything, not the dice* files, in order to include the changes to the README. Oh well.

So now I have a collection of patches in the rollout folder, which I could use to rebuild the history in the silliness folder.

If I had done this properly, I should have been able to use:

git am ~/Code/patches/*.patch

Unfortunately, because I had created two sets of patches in the same folder I had a slightly scary numbering issue. And because there were only seven patches I decided to apply them individually so that I could see what I was doing.

But it worked and all that was left was for me to commit the changes and push them and both the files are in the right place, along with their full history.

I hope.

Flattr this!