Plan Bike

Dec. 12th, 2011 08:52 pm
sobrique: (Default)
So, Plan Bike pushes onwards steadily. I've signed up to 'Cycle To Work', and thought I'd summarize how it works, because it took a bit of digging on my part.
For starters, there's about 4 different cycle schemes out there, that work subtley differently. The basic aim is getting more people to commute by bike.

The one I'm using, is based on cycle scheme - http://www.cyclescheme.co.uk.

And basically, you sign up for a voucher, and pay for the voucher via salary sacrifice. Which means it comes out of your base base, before tax and NI.
However, it's not you buying it - it's your employer, and you're effectively leasing it.

After paying your fee for lease, then you typically have the option of extending the lease for an additional 3 years, at no charge.
After which, you may request to purchase the bike, for either a market valuation, or an acceptable disposal value, as outlined by HMRC.

http://www.hmrc.gov.uk/manuals/eimanual/eim21667a.htm

You can exclude VAT from the valuation, provided you 'pay' it on the final sum (so for the purposes of this table, at 20% VAT, anything up to £600 it's 4 year acceptable disposal value is 3%.

You can't be guaranteed to take ownership, because then it's a hire purchase, but it's common practice to allow transfer after the term.

There's a variety of bike shops that participate in the scheme, and it's simply a case of going to one, and spending your voucher.
The hard part is in figuring out the appropriate sum - the voucher is acceptable to use on bike and safety equipment for said bike.
The DoT 'safety equipment' list (but note, best check, as HMRC may not agree!)
You can buy any bike and cycle safety equipment.

Safety equipment is not defined in legislation but the Department of Transport have indicted that it can include the following:
Cycle helmets
Bells and bulb horns
Lights including dynamo packs
Mirrors and mudguards
Cycle clips and dress guards
Panniers, luggage carriers and straps to allow luggage to be safely carried
Locks and chains to secure the bike
Pumps, puncture repair kits, cycle tools and tyre sealant to allow for minor repairs
Reflective clothing
White front reflectors and spoke reflectors

Which I'm sure you'll find can make up quite a substantial extra value on a bike.

I'm toying with questions like 'are disc brakes worth it' and 'how many lumens is 'enough' on a bike light'.
I've popped into a couple of bike shops to ask how much a 'sensible commuting bike' is actually 'worth'. The answer has been 'somewhere between £350-£500' for a hybrid bike. And probably as much as I feel like spending on the 'safety accessories'. Bike lights come in a wide range - you can get some very impressive ones :).

(Well, by my standards, which when I was last riding much was incandescent bulb which ate it's way through D-Cells at quite a rate.
Now you can get 1200 lumen dazzleboxes with a sensible burn time, and rechargeable batteries.)

Anyway, net result is that you 'save' somewhere between 'some' and 'lots' - NI and Tax are probably about a 3rd of the average person's salary, and dropping the price of a bike off the top, saves about that much. (Or higher, if you're straying into higher rate taxes).

The 'cost justification' clocks in at 'cost of fuel' and 'cost of gym membership'. Although the tradeoff is a 25 mile a day round trip, which will probably really hurt the first few weeks :).

Bikes

Dec. 4th, 2011 08:59 pm
sobrique: (Default)
This weekend I have been looking at bikes.
Work offers a Cycle to work scheme, which means - basically - buying a bike without paying tax/NI on your salary.
I used to cycle a fair bit, but ... frankly, hardly at all in the last 10 years (mostly due to storage space issues).
But I was thinking I'd like to again for a variety of reasons. Saving £80/month on diesel is a fairly good start, but it's also a good way of dodging gym fees (I've not made it to the gym in the last year), whilst making time in my daily schedule to 'work out'.

So, the problem is - Bikes have changed a bit in the last 10 years. Price, and technology has shifted somewhat. Back when I was riding last, LEDs weren't 'bike suitable', indexed gears were a new thing, and disc brakes/suspension was something you saw on only the very top end.

Speaking to the bike shops, I've been handed a list of suggestions:
Cube CLS
Scott Sportster
Giant Rapid
Specialized Sirrus
Ridgeback Meteor
sobrique: (Default)
On the way home tonight, I was wondering - you dip your lights as other cars go past.
But in the grand scheme of things, a 'headlight' isn't overly different to a backlit LCD - you _could_ use an LCD to make 'light' and 'dark' patches in your headlamps.

So I think it should be possible to have a (directional) light sensor, that 'dips' the section of your headlight that's pointed towards another light source (like - another car).
sobrique: (Default)
This week, I've been trying to work out the relative merits of RAID5 vs. RAID6 as a method of disk protection.
I won't bore you with details of implementation, but the essence of this - RAID 5 is a set of disk, for which one is set aside as parity and error correction.
Losing any single disk within a RAID 5 set means you're fine, but a second means you lose the lot.

RAID6 is - more or less - the same thing, but with dual parity. E.g. in a given sized set of disks, you use two for parity - such that you can lose any two from your set, safely, and a third will take your set of disks out

Into this mix, you have hot spares - a hot spare is _another_ disk, that's set aside, on it's own, to take the place of a failed drive.

So what I'm trying to figure out - given a mean time between failure of the drives (1 million hours), how much better - or worse - are the different RAID types?

When you 'lose' a drive, you have a window of exposure for the rebuild to occur, or your drive to be replaced. I know the chance of failure in that window is (very) low. However, I'm talking in terms of large arrays of drives - 1000 disks or so, and the data that means, which means 'pretty remote' odds, actually start to rack up, and even 'fairly remote' of a critical data loss is bad.

So I'm working on 3 'choices' here.
RAID 5, 3+1
RAID 6, 6+2
As both these 'types' waste 25% of capacity, and therefore cost the same.
For comparison, I'm considering RAID 5, 7+1.

Now, the number crunching goes thus:
MTBF of 1million hours.
Assume a maximum window of 96 hours before a failed drive is replaced and back in service. (Typically it'll be less).

Given 240 drives to put my data on, in which _any_ RAID loss results in total data loss. (So if one group of drives goes pop, I have to recover the whole lot). (IN case you're interested, they're probably 300Gb drives, so we're talking 54 TB of data - this is a lot of data to recover, so we'd rather not have to).

And over a 3 year time period, how likely that circumstance is to show up.

So I make it:
MTBF 1 million hours.
Chance of failure in a given 96 hour block - 0.000096

Taking a 4 disk set - chance of any single failure is:
1 - ( 1 - .000096 ) ^4 = 0.00038
From an 8 disk set, same logic:
1 - ( 1 - 0.000096 ) ^ 8 = 0.00076

Twice as many drives, nearly twice the chance of a failure occurring. (It's not -quite-).

So with the R5 set first drive fail is ok. Second is a total loss.
So chance of losing a second drive out of your 4 disk set is:
For R5, 3+1 we've got:
99.961% chance that of 4 drives none fail.
99.971% chance that of 3 drives, none fail.

So -
3.839x10 ^ -4 x 2.8 x 10 ^ -4.
= 1.1 x 10 ^ -7.
11 in 100,000,000 chance of occurring.

For the RAID 5, 7+1:
Chance of any one out of the 8, is 'chance of not failing' ^ 8.
So 99.923%.

Chance of remain drive from the set of 7 failing, in the same 96 hour
window, is:
'chance of not failing' ^ 7.
So 99.932%

7,677 x 10^-4 x 6.71 x 10^-4 = 5.144x 10 ^ -7.
A 51 in 100,000,000 chance of occuring.

And for the RAID 6, 6+2:
First drive: 99.92322580
Second Drive: 99.93281935
Third Drive: 99.94241382

Which means RAID 6, 6+2 has 2.97 E-10 chance of that scenario.

Now, that's where I get stuck - on the face of it, R6 seems 1000x more reliable than either RAID5, 3+1 or RAID5, 7+1.

If you multiply out across 240 drives, you've 60 4 drive sets, and 30 8 drive sets.
I think you can apply the same rational to that:
Probabity of failure is 1 - ( 1 - one set ) ^ number of sets.

So 240 drives:
R5, 3+1 = 6.63E-006
R5 7+1 = 1.55E-005
R6 6+2 = 8.91E-009

Now, the bit where I get a bit stuck - rolling the time window over 3 years. We're talking about a poisson distribution, (I think?). Can I just take my '96 hour' chance of failure, and do compound probability?
Making the R6, 6+2 scenario - over 3 years = 26280 hours.
Our number is over 96 hours - of which there's 273 chunks.
So ... 1 - ( 1 - 8.91 E-009 ) ^ 273
= 2.43E-006

So, 2 in a million chance of having a really really bad week.
Does my number crunching work out correctly though?

R5, 3+1 = 1.41E-3
R5, 7+1 = 4.22E-3

So ... looking at it, R6 - in terms of pure reliability - is a thousand times safer than R5 in either configuration.
The tradeoff would be performance - RAID 6 carries a write penalty - it must perform reads and writes to calculate parity for each write - which is higher than it would be with RAID 5 (approximately doubled - so halving your write performance).
sobrique: (Default)
So, since I saw it on a spanish cookery program, the idea of migas seemed an interesting one.
It's a 'leftovers' recipe. The essence of it seems to be fried (leftover) bread, with 'stuff' to flavour it.
The suggestion is chorizo, gammon ham, bacon.

I need to try and figure out something that is vegetarian - something that'll add flavour and texture to what amounts to fried up breadcrumbs.

I'm thinking perhaps chopped pepper, possibly applying some egg to the mix and stirring in. But ... well, anyone got any suggestions, for what could be included?
Maybe chopped pepper and onions.
sobrique: (Default)
So, you may have spotted word that there's consideration of a Dr Who film going on.
I'll say - for my part - that given most of the recent stories have been - at most - 2x 45m episodes, I don't mind overly.
http://blogs.indiewire.com/theplaylist/harry-potter-director-david-yates-to-direct-big-screen-reboot-of-doctor-who#

I do however, worry that declaring a reboot of the franchise means that the central point has been missed entirely - specifically, that in a setting where the central character regenerates, and there's time travel involved, then there really is no need to 'reboot' things.
Part of the appeal of of it, is that the Doctor is a mystery with a lot of history, and we see parts of that story.
To 'reboot' is neither here nor there - it's already been done at least once. Still, why would you want to throw out the baby with the bathwater, when it's entirely unnecessary. Have a new incarnation and be done with it.

But I digress. What I was going to ask - if you had the keys to the TARDIS, and a Hollywood budget, what would you do with it?

I'm thinking that Sir Ian McKellen would make an excellent Doctor. So would Christopher Lee, Patrick Steward, or Alan Rickman. And Hollywood might mean I can afford them.
Two companions I think. Alan Tudyk/Nathan Fillion (both would be good, but I think they wouldn't both fit, so either or I'm afraid).
And ... this might seem an odd suggestion, but perhaps someone like Dita Von Teese. Maybe Anna Paquin.

The story would have to be one of the 'more horror' ones. Because lets face it - Doctor Who is a horror story, in a Sci-fi genre. The very best stories are the small ones. We _know_ the universe isn't going to end, and lets face it - it wouldn't matter to us if it did, because we've no real concept of what that _actually means_. But with a small-ish cast of characters, they're expendable - they can die, in order to progress the storyline.

I really liked the Horror of Fang Rock, of the older stuff. I'd be reluctant to 'redo it', simply because... well, why rewrite, when you've a universe of possibilities out there. But it was in 77, so maybe I'd get away with it :).

Otherwise, I'm not sure - I think it would have to be 'gatecrashing' a historical event, because explaining why 'such and such' happened, is always pretty cool.
I'm not sure which one yet. I think I might have to go for one in the US - for the mass market appeal, and lets face it, British history has been poked at a lot.
So lets go with a Wild West, Ghost town story.
There's a gold rush on, and business is booming, but despite all that... there's still more people going missing, and getting lost in the night than would expect. There's rumours of a skin walker...
sobrique: (Default)
Ingredients:
Walnuts (100g)
Cashews (100g)
Some stilton
Some cheddar (waitrose No. 4)

Half a leek
An onion.
Some sunflower oil
A handful of white rice.

Cooks the rice, and then leave it to cool.

Chop the leeks and onions, and then fry them until they soften.

Modge the walnuts, cashews, cheddar and stilton together. I said 'some', I'd guess it was about 50g of each.
Anyway, modge with a hand blender, until it's not lumpy.

Stir the rice, leeks and onions into the walnut/cheese paste.
Pour it into a lined bread tin, and cover with some foil (poke a couple of holes in the foil so the moisture can vent).
Cook in an oven at around 180 degrees, for about an hour and a half - you may want to uncover it for the last 20 minutes or so, so it crisps up a little.

Served up with:
Some roasted roots (potato, sweet potato, parsnip)
Some boiled veg.

And some gravy (dried granules, but with a generous slug of port - really did help, as it offset the 'cheesyness' quite nicely).

Worked quite nicely as a roast dinner, and the leftovers also made good sandwiches. (Especially with the addition of a slice of cheese and some toasted nuts).

Leeks and onions were because they sweeten and add moisture to the mix. I think some chopped red pepper would also make a reasonable addition, and maybe some larger pieces of nut, or raisins.
And yorkshire puddings, because every meal is improved by yorkshire puds.
sobrique: (Default)
So, off to Maelstrom later.
One of the things I still have, is a thing steeped in memories. It's my 'Thorn T-Shirt'. It's not much to look at - a tech fabric T-shirt, in olive drab.
But I wore it most of the time as a base layer, when playing Thorn. So it still brings back memories.
It's odd really - Thorn was never real. Was merely a character brought together over the years of playing Maelstrom.
And yet still he persists - I've been used to 'thinking as Thorn' at Maelstrom, and I'd imagine that never quite goes away. After all, it's in playing this character, that's drawn upon parts of me, and gone from there.

It's perhaps odd to wonder who I would be, were it not for that. Would my personality have developed in quite the same way, over the numerous years since Maelstrom started I wonder?

But despite being gone, it's still a memory I treasure. Futility perhaps, but I do still stop and wonder occasionally - What Would Thorn Do? (The answer is usually not something I'd consider, but it still makes me smirk).

So just remember. Next time you see me wearing a plain-ish olive drab t-shirt. I'm probably thinking of mischief.
sobrique: (Default)
Download "wget".
Install it. (Windows: http://gnuwin32.sourceforge.net/packages/wget.htm)
http://downloads.sourceforge.net/gnuwin32/wget-1.11.4-1-setup.exe

Open a command prompt, change to a suitable directory to stash your LJ.

Run it against your LJ URL, with recursion.
E.g.
"c:\Program Files\GnuWin32\bin\wget.exe" -w 5 -mk http://sobrique.livejournal.com

the -w 5 is a politeness measure - it slows down your download rate to 1 every 5s.
This means it takes longer, but it also means you're not flooding their server with requests (or looking like a denial of service attack)
(m is for mirror, k is to change links so they work 'locally')

(note: Not tested yet, as I'm at work)
If you have a proxy server to worry about, have a look at: http://www.gnu.org/software/wget/manual/html_node/Proxies.html

http://fosswire.com/post/2008/04/create-a-mirror-of-a-website-with-wget/
sobrique: (Default)
It's probably caught your attention, that there's been a terrorist incident in Norway. http://www.telegraph.co.uk/news/worldnews/europe/norway/8659028/Norway-shooting-July-24-as-it-happened.html

The thing that's intriguing me, is the response to it. Specifically:
Prime Minister Jens Stoltenberg has stated clearly that the terror will be met with more democracy and more openness.

It's actually a very refreshing approach. The simple problem with the 'war on terror' is - well, as Yoda put it so well.
"Ohhh! Great warrior! [laughs and shakes his head]
Wars not make one great!"

You can't ever change someone's mind by force. You can simply oppress them - and in doing so, you _can_ stop them 'doing it again' but only as long as you always stay vigilant and in control. Once you bully someone into doing something your way, you have to stand over them to make sure they keep on doing it your way.
And in doing so, you steadily increase the size of the backlash if they ever do 'get free.

The same's largely true of extremism. You don't stop 'radical' views, by cracking down on them, and you don't stop... well, any form of hatred actually, by legislating against it. You can make expressing a sentiment illegal, but that's not the same as changing someone's opinion.

So I'm quite gratified to see this approach - fundamentally, the only way to stop terrorism completely, is to stop the perpetrators seeing you as a target.
Something that you can only accomplish by turning the other cheek.
sobrique: (Default)
So, one of the things that I was pondering, after the last time the 'appointing people to the House of Lords' came up.
The House of Lords, to my mind, serves a very valuable purpose - in much the same way as the 'tenure' system does. It allows people to stand for something, without having to worry about losing the next popularity contest.
Which is why it's _always_ going to be flawed if it's done by election, or by appointment from Parliament.

So why not make that a 'national lottery' instead? Same selection criteria as jury duty, although maybe with ability to opt out?
'Winners' are appointed, and receive a 'tenured' seat in the house of Lords.

It'll mean you'll get all manner of people, from all walks of life in the mix.... but isn't that really what's needed, when acting as a feedback mechanism on legislation? That you've a representative sample of the population, who are able to say 'hang on a minute'?
sobrique: (Default)
So, one of the things I've been running into more and more lately, is people who are unaware of the distinction between 'moot' and 'mute'.

Mute means to silence or quieten.

Moot on the other hand, means something quite different.
A 'moot point' is something which may be effectively irrelevant, or perhaps remains open to debate.
Wikipedia expands on this more than I could:
http://en.wikipedia.org/wiki/Moot_point

But essentially, Moot is an old word, meaning meeting, or discussion. A moot point originally meant one that was 'for discussion'. More recently, it has evolved, thanks mostly to law students holding a 'moot court' - in which hypothetical cases are debated, which in turn has lead the word to shift from 'for debate' to 'practically irrelevant'. Indeed, that's now become - legally speaking: "Mootness, a legal concept that a case cannot be decided because a decision would no longer have real consequences."

A 'mute point' or to - as I saw in an email just recently - "... let me know if you will be willing to do any of the days muted."
Doesn't really mean the same thing at all.
The problem is, that you _can_ apply 'mute' to a discussion. A muted discussion will be one that's done quietly.
If you 'mute' someone, then you silence them.

There is, however, quite a large divergence of meaning.

Here's a bit more on the subject:
http://www.worldwidewords.org/qa/qa-moo1.htm
sobrique: (Default)
Following on from a previous post on the subject of CV reviews. I presume that everyone's now managed to freshen up their CVs? (And if I've not replied to anyone, give me another prod, as I thought I had)

If not, the offer remains open - I'll happily look at CVs, and give as much feedback as I can.

So the next step: Trying to figure out what you want.

This is _really_ tough. I mean, it's easy enough to think in terms of 'astronaut' 'fighter pilot' or ... well, that kind of thing.
It's much harder to actually pin down what 'real world' jobs you're liable to be able to secure. I mean, I bet there's not many 5 year olds wanting to be an 'office manager' or 'project engineer' when they grow up.

So how do you tell? Well, unfortunately there isn't really an easy way. About the best I can think of is to stop for a moment, and think about the (workish) tasks you find most rewarding.
Now bear with me a minute - but how it works is this - in addition to your education and experience, you have something called 'competencies'. Almost every job can be defined in terms of the competencies it requires - and almost everybody can be defined in terms of competencies that they possess, and importantly enjoy using.

Things like delegation, creativity, customer focus, time management, ... are examples of competencies.
There's various places that have drawn up lists of them, but ... you'll increasingly see on a job spec, in addition to 'hard skills'/education, there'll be competencies.

This is pretty standard on 'public sector' type job specs, and most larger companies are drifting that way. But even smaller companies are effectively doing this - they're just not necessarily as clear about it.

So stop for a moment, and have a think if you will. What sorts of things about your job make you feel satisfied and that you ... well, maybe 'enjoy' is a bit strong, but make you feel fulfilled in your work?
And what sorts of things make you feel the opposite? Uncomfortable, or just generally like you're having a 'crap day'.

The simplest example is 'interaction with people' - do you like dealing with 'the public' or even 'fellow colleagues' on a professional level?
So stop if you will, and consider - what makes you tick? As that's the first part in figuring out what sort of job you'll find particularly satisfying... and in turn, help you figure out how you go from where you are _now_.
sobrique: (Default)
One of the things that preoccupies me - well, sometimes - is the nature of faith. And not just when I'm on a wind up mission.
I know amongst my friends, there's a range of viewpoints on the subject. So I often ramble, and in part that's trying to straighten out what I think, and in part, that's to encourage others to do so.

I remain, I think, in my opinion that there may be 'something more'. However, I'm afraid I still don't hold that it follows that that 'something more' might be conscious in ... well, any meaningful sense of the word.

So what I was mulling over - regardless of religious inclination - there's a sort of temptation to believe in a Higher authority. A sort of abdication of responsibility, that 'someone else' knows best. Be that a religious belief, or a secular one, or just an apathetic one.
It's quite clear that this belief is widely held, because - if nothing else - the voter turnout is pretty abysmal.

There's always a temptation to believe in a Higher Authority. Someone who - at the end of the day - holds judgement of what is right.
There's a danger in that though, of abdication of our own responsibility to make the world a better place. To use our own judgment. To accept that we're the arbiters of our own fate. Because lets face it - even if there is that Higher Authority, the feed back timescale is long enough that ... it'll always be too late, if you wait for the judgement.
Even our legal and political systems are - essentially - feedback mechanisms, and deliver a verdict after the fact.
That will always be too late to fix the problem. And no one else is going to do it, either. There's been a few stories lately, in the news, that ... have been really rather shocking, and all because that 'Higher Authority' has failed.
That people have done things, that have ended up... at best ill considered, and at worst outright negligent. And yet they continued, because they were relying on 'someone else' to notice and do something about it.

I think that really is the proof of the adage - that all it requires for evil to triumph is that good men do nothing. But to take it down to a basic level - there's no real thing as absolutes of good and evil. Merely people who are prepared to stand up, and not just demand something better, but commit to making it happen themselves.

It's not complicated, but for all that, neither is it easy.
sobrique: (Default)
So, I have a Sony Reader. I've been lusting after a Kindle. My Reader has 'grown' a crack, making it unreadable.
In an idle moment or two, I've been looking at what would happen to my 'existing' library.

Adobe Digital Editions, is not supported on Kindle.
Or perhaps more correctly - the DRM used by Adobe, isn't supported. You can fairly easily convert PDF to a suitable format.

This notion offends me. I don't like the idea of DRM at the best of times - I'm more than happy to pay for a book (ebook or otherwise) but I find it offensive that as a paying customer, I'm restricted in my ability to lend or read something.

I've put up with it previously, because it was relatively painless to download and then copy to ebook reader - lack of lending annoyed me, but it was largely a moot point when most people weren't ebook enabled.

But now, it seems I have a choice. I can either go for a _different_ ebook reader, that is 'permitted' by Adobe.
Or I can go and re-buy the 80 or so ebooks I have purchased to date.

Neither of which is a particularly appealing option. Not when I've paid near the price I would have for a paperback, for an item which is CONSIDERABLY easier to reproduce for the publisher. I don't think ebooks should be free - I accept entirely that a reasonable proportion of the price of a book isn't for the physical item, but is for paying the author and support staff who edit, proofread and do all other things.
I find it somewhat odious that an ebook will often cost _more_ than a 'dead tree book', but at the same time - I don't mind paying the 'early release' price that hardbacks go for, and get an ebook instead, if it's something I really want to read now.

(I mean seriously - hardback release is usually earlier, and they usually cost more. I get that's a premium for wanting to read it right now. Hardbacks remain considerably less portable and convenient though. But that's a different rant. Suffice to say - it's worth paying hardback price and _not_ get a massive tome)

But now? Now I'm faced with some (digital) books, that I have entirely legitimately bought and paid for. Which I cannot use, because the DRM says no, we don't like that you're trying to read it with _that_ device.
This ladies and gentlemen, is where DRM goes wrong. It's why it is - and always has been - a stupid idea. Charge me for a product, then tell me I cannot use it unless I buy it _again_?

No, we're not going to play that game. I'll buy a replacement paperback when I drop it in the bath, and already own copies of some of the books I really like.
But if you're telling me that - in essence - I have to pay the full price AGAIN for a digital copy that the only difference is the artificial digital restriction code built into it?

But it remains a fundamental flaw of DRM - you can make very good encryption algorithms - of the kind that's impossible for an average home user to crack.
However DRM requires that you _also_ supply the key to that encryption, allow me to decrypt it, and have software to control how and when I do so.

In effect, it's not about trying to pick the lock, it's about trying to find the spare key, that you _know_ is hidden somewhere.
sobrique: (Default)
One of the doctrines I've operated under, for my career, is that after 2 years, you should be asking yourself 'what next?'.

2 years is - in my opinion - about the timescale you should be thinking about a new job. That cuts both ways - assumption is that I expect to be at least 2 years at a prospective employer, but at the same time, past the 2 year point I'm going to be wanting more from them - from a career perspective. (And that goes hand in hand with improving my pay).

So, has it been two years (or more) since you last took stock? I don't mean you _have_ to move on every 2 years, simply that you should be assessing - do I have more challenges? What's next in my career development. It's perfectly fine to decide that you're fine where you are. Just don't make the mistake of doing it because it's easier not to think about.
Go look. See what's available. See if you're worth more (or less!) than you think you are. And then use that, to either think about a new job, or as ammunition for negotiating with your existing employer. There's no defense against being taken advantage of quite like being ready to walk away when it gets too much.

So to that end I'd like to offer people who I know, who are willing to take up the challenge - of assisting in redrafting your CV, and thinking about what might be an option for your skills, mindset and whatnot. I'm at least fairly familiar with the IT industry, and can do - I think - a reasonably good 'private sector' CV.

CVs are a bit of a dark art, and 'advice' on them seems to change ever few years. But my most recent got me several interviews for the kind of jobs I was after, so it can't be _that_ bad, right? (And even if it is, I promise not to take offense if my suggestions don't work for you).
sobrique: (Default)
Dear all online retailers, everywhere.
I know it's not viable to keep stock of everything a customer might require.
I know it takes a lead time to order in from a manufacturer.

This is fine, provided you TELL ME what timescales I'll be working on _before_ I order.
What you should definitely NOT be doing is accepting an order, and then emailing me the next day, to say '3-4 working days'.
And then, when I chase up a week later, to find that you don't in fact have stock yet.

This annoys me, and pretty much guarantees I won't be buying from you again.

Backups

May. 26th, 2011 09:23 pm
sobrique: (Default)
So, my most recent mission at work, has been backups. If you've ever really had to think about backups, then... well, it's one of those little floating chunks of ice on the surface, that hide an iceberg underneath.
What we're doing is database backups. For around 100 Oracle databases. And we're doing it on them all whilst they're 'hot' - all running, with no interference to the running system.
This is usefully large volume of data - of the order of 50Tb.
The objective is to be able to recover any of them within 4 hours with no data lost. Given they're live and active systems... well, it's non trivial to pull that off.

When talking about backups, you talk about Recovery Time Objective, and Recovery Point Objective.
RTO is the time you have to bring a system online after a failure.
RPO is how much data you're allowed to 'lose'. Whilst 'losing data' sounds scary, bear in mind that chances are most of the things you back up have some data loss - because everything you do _after_ the backup isn't backed up any more.

So an RTO of 4 hours, and an RPO of zero. (well, near zero) is pretty aggressive, given that you may need to call someone out, get people out of bed, etc.
What we're doing to achieve this, is use some storage array tricks. We've got two Symmetrix VMAX storage arrays, in two separate datacentres. On the 'primary' side, we're taking snapshot copies of the databases, at 4 hourly intervals through the day.
On the 'remote' side, we're taking a clone copy, and backing that up.

More storage terminology: A snapshot of a disk is a point in time copy of a disk. It's achieved my keeping track of changes. So initially, a snap is zero size, but every time you change something after that snap is taken, the change gets recorded. So you can quickly 'flip it back' to how it was.
A clone is a full copy of a disk, at a disk level - disk signatures, deleted files, the lot.
The advantage of these - as opposed to copying files - is they're actually fairly quick to finalize. Which means we can 'pause' our databases for a matter of a couple of minutes (or less) whilst we take our snap or clone, without anyone really noticing.

So what I've had to do, is write some scripts to make this happen - there are products that can do this, but because of the environment (And timescales) we're working with, they're not an option.
I've been writing a set of perl scripts that are run via a product called Tivoli Workload Scheduler (TWS). They run on Solaris, and 'do the business' of setting hot backup on a (remote) database, create a clone copy, mount the clone copy, and stream it to tape.

I've also been working on a scripted solution that does the snapshots - I'm quite proud of this, as it's not really a trivial matter to manage rotating snapshots - automatically, and on a large number of 'source' devices, which means you can't easily/feasibly do a 'brute force' approach (of defining all the individual relationships).

But ... well, we're coming up to 'go live' on the project, and are just dotting Is and crossing Ts. Last night, was the first time we'd done a recovery 'in anger' as it were (involving callouts, support etc.) and I was very pleased to find that we'd managed it, with 4 minutes to spare. (I'm expecting that to only get better, as we get things a bit more streamlined).

So it's all good, really. I'm kind of watching and prodding it as we go, and writing oodles of documentation, trying to clarify how it all fits together.
On the plus side - because I've known all along that this will be so - I've done my best to ensure that the scripts require minimal amounts of 'hardcore knowledge' to make them work. I think I'm mostly achieving that. I expect to find out that I'm wrong as I start doing knowledge transfer sessions, and doing 'early life support'.

But still, I've been quite enjoying this so far - it's a challenge that uses skills I've built up, with storage arrays, Solaris, Backups, Perl scripting (and XML parsing), and had to bootstrap myself into learning how Veritas Filesystem, Netbackup and TWS work.
IT's been a satisfying challenge.
(So far, at least. Expect a rage post in a week, when it all falls apart again).
sobrique: (Default)
So, one of the things I've been pondering. Actually, it's more along the lines of something that I think would be really cool - One Day (tm).

A Zero Net Energy house. It's what's got me pondering about renewables, micro generation, and energy storage.
I mean, I think you can do a _lot_ to improve on the current design of houses, to improve their overall efficiency. But in addition, supplement it with your own sources of power. Not necessarily electrical either - I mean, lets face it, most of the power used in a house is thermal. Refrigerators, ovens, central heating.

Which has me pondering. I mean, in practice, solar and wind power are fine, but sporadic. The time of year of the highest energy demand is a calm, clear winter night.

You have the option of 'grid storage' of your energy - in which, you basically just 'feed back' the power you generate to the national grid, and 'buy it back' when you actually need it. All well and good, but that _also_ suffers the same problems - the best form of bulk power storage is to not use it in the first place, and leave the coal (oil, gas, uranium) un-burned.

So anyway. Any form of energy state transformation is inherently inefficient - every time you go from heat, to mechanical, to electrical to potential, you end up 'wasting' something in the transfer. You also waste in distribution. Would it surprise you to find that most power stations aren't even 50% efficient, at generating electricity?
It's why heating your house electrically is a horrible idea - they burn the coal, heat water, drive a turbine, make electricity (wasting 50% of the energy) and then you turn it back into heat, wasting even more of it.

That's why I've been thinking about energy storage - electricity in batteries is the obvious one, but ... actually, electricity probably isn't your most useful energy form. If you've ever been camping, you'll know that running a kettle or a heater of a generator or batteries is a bad idea.

I like the idea of microgeneration. I like the idea of using a combined approach of wind, water and solar power, in some degree. And I like the idea of being able to 'buffer' (If not long term store) energy generated, so those cold still winter's nights don't end up with you becoming an icecube. (Actually, I don't think 'going off grid' is a good idea anyway, so there'll always be a plan B).

So far I'm thinking in terms of 'heat storage and efficient circulation' to keep a house a stable temperature.
Energy storage via water pumping to a reservoir, to use any 'slack' capacity. And potentially (if I can find a suitable location) a water wheel, that runs off a river, and can also be driven via the 'stored' energy.

But it's still a bit of a pipe dream. New technologies pop up all the time - you can do 'ground source' heating. Flywheels might be a possibility - it's more or less what a water wheel is, after all.

It all also sort of involves starting with a low energy house in the first place.
(Oh and for bonus points - materials used that don't have an overhead in terms of non-renewable materials)
sobrique: (Default)
For reasons not entirely related to 'just curiosity'. Here's how to do a report on your web history in Chrome.
Chrome is really nice, in that it uses a 'database format' for the various file. SQLite can be used to query it.

So here's how to do it (mostly for my reference):

1: Download SQLite shell from here: http://www.sqlite.org/download.html

2: Run a command prompt

3: Change to your 'chrome' history directory:
On XP – C:\Documents and Settings\[personal profile] name\Local Settings\Application Data\Google\Chrome\User Data
On Vista - C:\Users\[personal profile] name\AppData\Local\Google\Chrome\User Data


4: (Assuming you put the SQLite shell in D:\Tools - amend accordingly)
D:\Tools\sqlite3.exe History "select datetime(last_visit_time/1000000-11644473600,'unixepoch'),url from urls order by last_visit_time desc" > History.txt

This will extract the complete history - at least, assuming you haven't cleared it ever.

5: Open Excel, and import 'History.txt'. Use 'text to columns' (location varies depending on Excel version) and use delimiters of 'space' or '|' (other).

6: Add a couple of columns to your spreadsheet (I used C and D).
Title C as 'Find/' and D as 'Site'.
Populate C2 with: =FIND("/",E2,9)
Populate D2 with: =LEFT(E2,C2-1)

Paste the formula down the full list.

7: Add another column, at the end (Column F?) and put in it '=A1' and paste down. (Yes, that does mean Column F is a copy of Column A. There is method in my madness. )

8: Make a pivot table of your results. Set 'row' to 'Site', and 'values' to 'Count of URLs'.

9: Add a vlookup to your pivot table - if you've done the above, and happen to be on exactly the same versions of everything as me, Column C should be empty. Fill it in with: =VLOOKUP(A5,Sheet1!D:G,3,0) (The 'third column in the range D:G will be 'Column F' so this _should_ populate Column C with the last accessed date of that site)

10: Scroll down the list, and be shocked and awed at how many times you've visited Facebook.Com.
Page generated Mar. 9th, 2026 03:59 am
Powered by Dreamwidth Studios