2011-11-04 – Today’s Links

less - The dynamic stylesheet language.

LESS extends CSS with dynamic behavior such as variables, mixins, operations and functions. LESS runs on both the client-side (IE 6+, Webkit, Firefox) and server-side, with Node.js.

Ender – a full featured package manager for your browser.

It allows you to search, install, manage, and compile front-end javascript packages and their dependencies for the web. We like to think of it as NPM‘s little sister.

TWITTER BOOTSTRAP

Bootstrap is Twitter’s toolkit for kickstarting CSS for websites, apps, and more. It includes base CSS styles for typography, forms, buttons, tables, grids, navigation, alerts, and more.

Posted in Links, My Links | Comments Off

Some New Nagios Plugins

Over the past ten years I have left many many new and hacked Nagios plugins on many servers around the globe. I’m now making a concerted effort to find them, clean them, maintain them centrally and release them.

To that end, I have created a repository on GitHub for the task with a detailed readme file:

As a starting point, there are four plugins available now:

  • check_chassis_cisco.pl – a script to poll a Cisco switch or router and check if the device was recently rebooted; its temperature sensors; its fans; its PSU; its CPU utilisation; and its memory usage.

 

  • check_chassis_server.pl – a script to poll a Linux / BSD server and check its load average; memory and swap usage; and if it has been recently rebooted.

 

  • check_portsecurity.pl – a script to check all ports on a Cisco switch and issues a critical alert if port security has been triggered resulting in a shutdown port on the device.

 

  • check_portstatus.pl – a script which will issue warnings if the port status on any Ethernet (by default) port on a Cisco switch has changed within the last hour (by default). I.e. a port up or a port down event.
Posted in Linux, Networking, OSS, Software, Work | Tagged , , , | Comments Off

The Enigma of Sean Gallagher’s Rise in the Polls

The Sunday talk shows and much of the press and radio today are trying desperately to grasp why the Irish public would turn to a man with both Fianna Fáil and construction sector connections in a country ruined by both.

The analysis that has been missing is that Sean Gallagher looks and feels the part. People aren’t voting in a Government with power; they’re voting on a figure head for the state to represent them at home and abroad. Someone to showcase the country and, an often stated criteria for a president,  someone who will not embarrass us.

The many photos of Sean and his photogenic wife engender an image of a youthful energetic presidency and maybe even an exciting presidency. His media career and grilling in recent weeks show us he will not be an embarrassment – he’s ran his campaign with a cool steady hand. As I said, he looks and feels the part.

This, and very little else, are most people’s criteria for presidency.

Turning to the others:

  • Michael D Higgins – a laudable candidate and a man with a distinguished career. But, and while very unpolitically correct, his age is an unspoken issue for many people. He’ll be 70 going in and 77 going out. He does not engender the energetic vitality that the country could benefit from. He is also, it has to be said, a little quirky and this may not be what a lot of people look for in their representative abroad.
  • Martin McGuinness – a man rightly deserving of a lot of credit for his work in Northern Ireland in recent years but questions remain. His IRA past and how far in the past that is. While conspiracy theories about Gallagher being a FF plant are far fetched at best, there is an extreme absurdity about McGuinness professing himself as an independent rather than a Sinn Fein candidate. Too much of a dark and bloody past which would follow him to every country throughout his presidency.
  • Gay Mitchell – another laudable candidate with a distinguished European career. But, and I’m sorry, a huge square peg looking to fill a small round hole. Those of the 500 delegates that voted for Gay at the election – and especially Fine Gael’s TDs and Senetors – have a lot of questions to ask themselves. The presidency was probably theirs for the taking but they literally gave it away. Both Gay himself and his campaign have been uninspiring and, I’m sorry to say, boring.  A fine legislator, an awful president.
  • David Norris – a lesson in how not to run a campaign. He and his advisers definitely missed Politic 101. He came in with way too much baggage and rather than dumping it fast and dealing with it, he chose to carry it with him as long as possible feeding headline after headline. Many of that baggage also shows a candidate with very questionable decision making capability. Like Michael D, he’s also a bit too quirky.
  • Mary Davis – another candidate with a laudable history. But, like Gay, her campaign has been uninspiring and boring. We also know we’re electing a couple here and her husband has been too much in the background. The decision of the photo used on her posters was also a mistake and has been an embarrassing issue that has followed her campaign – it also leaves a taste of dishonesty.
  • Dana – came in too late and, frankly, is just a bit too cuckoo. Her campaign has been dogged with issue after issue leaving unanswered question after unanswered question. Her tenancy to brandish a book of the constituency in the beginning was cringe worthy as was and is her talk of a living breathing document. Her desire to protect the constitution and the people of Ireland made me very uncomfortable and she has shown an extreme misunderstanding of the job she is seeking time an again. Norris looked like a string contender for the odd ball campaign but Dana has well and truly snapped that title.

To my mind, people are voting for someone to fill the role of president who will look and feel the part. And, to me, that means people are voting correctly.

Posted in Politics | Tagged | 1 Comment

David Norris and Those Pesky Letters

So at last we have the final line up for the Presidential Election 2011 (#aras11) and Norris made it over the line. It seems the media have gone from following his roller coaster trip from council to council to – without  stopping for breath – pursuing him on the rest of the clemency letters he wrote for his former partner convicted of statutory rape.

To be honest. I wasn’t particularly interested in their contents. I felt letter-gate had been well aired and not forgotten – people in the privacy of the ballot boxes would make up their own minds’ on his explanation.

But then along came this legal advice crap. Speaking on the radio with Pat Kenny this morning he said:

I am absolutely restricted by questions of privacy,” he said. “I understand people’s interest but I’ve been told by my lawyers that these letters are subject to professional legal privilege and I’ve been told I cannot publish them.

Huh. Professional legal privilege. Professional legal privilege. What the hell does that mean? He’s not a solicitor advising a client. Nor a doctor advising a patient. Where does privilege come into it? I cannot possibly fathom how it could be covered by data protection.

He wrote multiple letters seeking clemency for his ex-partner – either in a personal capacity or abusing his position as a Senator. These are not letters to constituents who would have an expectation of privacy. I cannot see where professional legal privilege comes into this. So, I’m forced to wonder – is he protecting the recipients or himself? I suspect the latter. What is David Norris hiding now?

Publish the letters or publish the legal argument and advice in full. I’m sick of politicians quoting some intangible legal privilege to protect themselves. In that same interview, Norris claimed he was about the most transparent person in politics today. It doesn’t feel like it Senator, it doesn’t feel like it.

Posted in Politics, Rants | 1 Comment

So I’ve Made the Switch from SVN to Git…

…and I’m bloody delighted. 

The straw finally came when Nick forced my hand for a project we wanted to release through our work in INEX. I was pushing for Google Code but he had his heart set on GitHub. Now, in fairness, GitHub has some SVN bindings but after some research, I decided to dive right in.

Now, there’s both a steep learning curve but also a complete change of mindset required from centralised source code management (SCM) with SVN to the distributed model of Git. In the end, most projects will decide on a canonical Git repository anyway which pushes you slightly back towards centralised but there’s still a world of a difference.

So, what’s so good about Git? Well, lots. But first and foremost is it’s exceptionally powerful yet simple branching and merging that just works. And works fast – remember, with Git everything is local.

One work flow that used to kill me in SVN was that you’d be implementing feature X but someone needed bug Y fixed immediately involving some of the same code. Getting just the fix for Y in was tough and complicated. And branching in SVN isn’t quick or simple. In Git, I branch from the main development branch for every new feature, bug fix, etc and then merge what I need between them and back into develop when they’re ready to be pushed back to the agreed canonical repository.

I’ve been so impressed with Git that I’ve moved an open source project we created in Open Solutions over to Github: ViMbAdmin. I’ve also forced the rest of my team in Open Solutions over to Git and migrated a number of customer projects already. And we’re reaping productivity rewards!

How we work Git for projects was taken from this excellent post which I would fully recommend: A successful Git branching model.

Useful Git Links:

Posted in Books, Links, Linux, OSS, Software, Work | Tagged , , , , , , | 2 Comments