Categories
technology

favourite UNIX commands, uniq

One of my favourites is the uniq command. The command enables you to report or omit repeated lines in a file.Here’s some switch details from the man page.

-c, --count
prefix lines by the number of occurrences
-d, --repeated
only print duplicate lines
-u, --unique
only print unique lines

So if you wanted to find and sort common lines in two files you could do something like.
# cat file1 file2 ! uniq -d | sort
Quite a few friends have been asked to do something similar in interviews. I always find that a bit funny as it takes a minute to look this stuff up online so it’s probably not crucial to know every Unix command off the top of your head. Although there’s probably some nerdy bragging rights but with a 96% nerd test score I think I’ll pass.

Categories
technology

El Reg kicks Freetard ass

Some of the articles in the reg are good, some are very good and others fall into the category of historic. Andrew Orlowski’s thorough bashing of freetardedness is definitely in the historic category. The article is notionally about his experiences at a London School of Economics hosted debate on “Music, fans and online copyright” which according to the author degenerated into a farce. It’s certainly believable that such an event would put forward such a one-sided view with little consideration to the rights of artists to profit from their work. It’s funny how artistic effort is devalued by so many people when they have to value it. It’s something I’ve experienced first hand but a desire to have free to amazingly cheap access in perpetuity to various art works (especially music tracks) is not particularly reasonable. There’s a non-sequitur often purported by the comedy of the commons advocates that suggests that because it’s good and enriching to the community to share knowledge (and various other works covered by the term intellectual property) that it’s value should always be accessible. Painters are lucky in the sense that owning an original painting by Pollock, Rothko, Van Gogh etc. is not considered an entitlement by the masses. However, owning an “original” from a recording artist (exactly the same inherent “stuff” as the original anyway) is considered an entitlement, something so self-evident that any peskily intruding law should be circumvented to do so. Maybe I’m just biased but I don’t think that the great popular (or otherwise) recording artists of their day should be denied royalties because technology makes it easy to rip-off their work.

Categories
technology

the phone as an AP

I saw this earlier today and thought it was really cool. I’m off to Mobile World Congress next week to demonstrate some of our work on the IMS-ARCS project. I guess if the tradeshow’s internal network should crash I can always turn my N95 into an Access Point. I’m kinda hoping this doesn’t happen but it would certainly be enviably geeky 🙂

Categories
technology

Stop picking on Microsoft

So everyone is talking about the Yahoo bid. The reg ran an interesting article about the likelihood that the proposed hostile takeover would spend months if not years in anti-trust battles with the EU. The pull the following quote from an unamed “leading UK competition lawyer”.

“The obvious initial fear could be that Microsoft would bundle search into Windows. That’s something regulators will have to look at. It’s possible that Microsoft will make a commitment not to do this before the deal goes ahead in order to head off regulators.”

Now, here’s the thing. Whatever your thoughts about Microsoft, it’s really galling when the EU prevents genuine progress in the name of consumer interest. Seriously, why is search outside the OS? Well, because it’s accessible via the web. Why is that? Well, that’s where the content is. The OS runs the browser which really acts as a container for visual and “light” execution of web code. As browsers and webdev standards have become more sophisticated this situation hasn’t been all that bad. Indeed the proposed next revision of HTML (html5)standardises the inclusion of more traditional fat-client UI capabilities such as 2d graphics and sound/media control into the nice and relatively tidy language for describing web pages. This is generally held to be a good thing. Let’s ignore Microsoft’s new browser, ACID testing and the whole issue of interop switches. It’s reasonable to conclude that the boundaries between web and desktop are blurring. Web execution environments such as Adobe Air also herald a new era of browserless rich web clients.
So while the rest of the industry is progressing in the direction of web apps running seamlessly on the desktop it seems it’s a crime for microsoft to include search in the desktop. We’ve already got GoogleDesktop.. It’s already been done guys.. Wake up and smell the burnt coffee.
The real issue here is that Microsoft search competitors like Google (hardly underdogs) make money from advertising revenue that they fear Microsoft would cut off at the source through tighter integration of non-google search with the OS.. I like Google, they’ve done an amazing job but I don’t think that they really need governments and regulators to protect their interests over Microsoft. If MIcrosoft are going to beat Google by incorporating search into windows, they’ll have to improve the quality of their search dramatically.
With that in mind it’s time to reconsider whether it’s really in the consumer’s interest to prevent Microsoft from reasonable and justifiable user experience improvements whenever they may hurt their competitors.