Output Percentage of File (Bash code)

I wrote this script recently for a friend in a job who needed to output a certain percentage of a log file, but no more and no less. This was in Linux using bash, so I had a go at writing a solution, which you see below. Posting this up in case it’s useful to anyone else! # !/bin/sh # Public Domain, by Neil Grogan 2010 # Script to output last 30% of file by lines OLDFILE="oldlog.

Blogging like a H4x0r

Apologies to those visiting my site recently because: It hasn’t been updated recently I have been changing hosts with it Let me explain both of these! I have been searching for a good blogging engine ever since I have started blogging. I have yet to find the perfect one :) Some have come close in completeness (WordPress) or price and ease of use (blogger), but none has been all-encompassing. I messed around with a blogging engine called Jekyll about a year and a half ago, but I never ended up deploying it.

My Top Chrome Extensions

Below I present some very useful extensions I use while using Google Chrome, in no particular order. Adblock Blocks ads just like Firefox extension and makes the web less junky to look at. You can whitelist good ads, and an argument could be had your harming websites revenue stream, but a lot of nasty tricks such as spyware, malware have used ads as a vector to spread. Not least the dishonesty some sites use in splitting up articles in to 10 pages to pump ad revenue.

First Video Blog!

Below is my first attempt at video blogging. If I get used to it it may be easier to explain my point of view or give reviews! I have liked hiding behind words up until this point, so this is a new venture with my iPhone 4. YouTube Video Please don’t be too harsh on me! Location:Dublin, Ireland

iPad Evolution?

Since Apple released an iPad there have been various competitors announced, so it got me thinking what would it take for me to buy one? I haven’t bought the first generation iPad because the lack of a camera on a device so obviously good for fullscreen video calls has baffled me. I guess they have to store up some ideas since they need a new hardware iteration every year, Apple’s revenue model depends on that vital hardware refresh cycle.

Alternative Interpretation of the Prodigy

So I was listening to some music, thinking about the announcement today on Anglo Irish Bank that we have 32% national debt and my generation will be expected to pay that. Kind of depressing if you ask me, but no one does, ’cause the media has got that one all wrapped up. So I asked myself, is their anything new we can learn, while I was listening to the Prodigy classic� Breathe.

Garmin Zumo 660 Motorcycle GPS

It’s been over a week since I received my Garmin Zumo 660 Motorcycle GPS unit. I thought I’d give it a run-down for potential buyers on my experience for the first week. Firstly I should mention, I’ve never owned another Garmin unit, and had two mobile GPS’ units before (one being Nokia N800 with Bluetooth external GPS and other Apple iPhone 3G). The reason I bring this up is that a lot of the reviews I’ve seen written compare it to it’s predecessor, Zumo 550, which obviously I can’t do.

BSc in Computing

Wow… what a weird feeling, I have a degree under my belt. Three years, many friends and a lot of hard work later! The degree itself was based on my father’s business Grogan Burner Services, and trying to solve a real world problem of using Excel spreadsheets. We used Python, Google App Engine and a lot of Javascript to create a modern, sleek Customer Relationship Management system. All the code is open source, under GPLv3.

Haiku: Open Source BeOS clone

I usually listen to podcasts on the excellent Twit.tv network and it goes without saying Floss Weekly is one of my favourites. A recent episode covered Haiku - an open source operating system based on the design of the old BeOS. What’s very interesting about BeOS is the design, an integrated all in one operating system - and the fact Apple almost purchased it. That’s amazing to me, literally in one fell swoop, if Apple had of offered the 200 million Be Systems wanted, there would be no NextStep into Apple and by extension - Steve Jobs.

WebM promises Open Web Video

I’ve written about my desire for open web video before, and now it looks as if it’s finally going to happen. Lead by Google’s acquisition of On2 technologies, the VP8 codec has been renamed as “WebM” and open sourced. Vorbis will be the audio. Matroska the container for the new format. An Open Source developer for x264 does a great teardown of the format vs. h.264 here. The patent minefield stateside is still not clear by any means, but with a strong backer like Google, it’s probably the best protection your going to get.

Page 11 of 24