Past EED rants

Labels

Live leaderboard

Poker leaderboard

Voice of EED

Friday, 21 May 2010

Re-containering And Transcoding video for android

If you’re a fan of downloading video from iPlayer unencumbered by nasty DRM this may be useful.

The high(ish) res files for iPhone can be downloaded by iPlayer Downloader or get_iplayer. But they are in a MOV container & unplayable on android devices. I’m yet to get my desire, but that didn’t stop me wanting a fix now :)

MP4Box will do the job, and here’s a batch file that will do the right stuff. It’ll work with multiple files passed on the command line too, so you should be good to add it to your SendTo menu.

@echo off
:start
if %1f==f goto end
echo %1
for /f "delims=." %%a in (%1) do (
echo %%a
echo Extracting video to "%%a.h264" ...
"C:\Program Files\mp4box\MP4Box.exe" -raw 1 "%%a.mp4" -out "%%a.h264"
echo.
echo.
echo.
echo Extracting audio to "%%a.aac" ...
"C:\Program Files\mp4box\MP4Box.exe" -raw 2 "%%a.mp4" -out "%%a.aac"
echo.
echo.
echo.
echo Muxing "%%a.android.mp4" ...
"C:\Program Files\mp4box\MP4Box.exe" -fps 25 -add "%%a.h264" -add "%%a.aac" -new "%%a.android.mp4"
del "%%a.h264"
del "%%a.aac"
)
shift
goto start
:end

Update:

And should you need to transcode rather than re-container, our old friend Handbrake to the rescue. I've used these settings & had really good quality

@echo off
:start
if %1f==f goto end
echo %1

for /f "delims=." %%a in (%1) do (
echo %%a

"C:\Program Files\HandBrake\HandBrakeCLI.exe" -i %1 -t 1 -o "%%a.mp4" -f mp4 -I -X 480 -e x264 -b 1000 -a 1 -E faac -6 dpl2 -R 48 -B 160 -D 0.0 -x level=30:bframes=0:cabac=0:ref=2:vbv-maxrate=768:vbv-bufsize=2000:me=umh:8x8dct=0:trellis=0:weightb=0:mixed-refs=0 -v 1

)

shift
goto start
:end



Friday, 19 February 2010

Grrrr

I've been using Growl to get popup notifications from Pidgin for some time. (I use Pidgin as a replacement for the bloated Sametime at work.

Now, mIRC can do it's own toast popups, but the neat thing about Growl is that you can send notifications on to other computers running it. FWIW, Growl notifications also look a bit nicer than the mIRC ones.

If you bung this script* into your remote script editor in mIRC, it'll push any mIRC highlights to Growl.


on *:TEXT:$(* $+ $me $+ *):#: {
if ($highlight($1-)) {
run "E:\Program Files\Growl for Windows\growlnotify.exe" $qt(/t: $chan - $nick) /a:mIRC /n:"Notice" $qt($strip($1-))
}
}

Registering mIRC with growl is done by:

growlnotify /t:"title" /a:mIRC /r:"Highlight","Notice","Priv" "Some message"

Now, some kind bunny has written a Growl plugin for Windows Media Centre

So to get your mIRC highlights from the lair to the lounge, you just need to install that & push the Growl notifications there.

You metros can also forward notifications to your iPhones using Prowl


* Developed in #eed by me, spamming the bot :)

Sunday, 14 February 2010

Amazon Kindle

It's not very often that you can evaluate a major purchase objectively. The very act of investing a couple of hundred quid in a single object tends to colour one's subsequent opinion of that object - almost as though your cash investment obligates you to love it. This is why we see the bizarre internet phenomenon of fanboism. Nothing stirs the blood worse than someone calling your hard-earned trinket a waste of money! I suffer from this myself to a certain extent, I suppose everyone does. So it was with some surprise that I found myself buying, and then subsequently hating, an Amazon Kindle.

I should give some background: last year I worked on a tough project. Really long hours, weekends, lots of pressure; but also lots of overtime pay. By about month five, I found myself resenting the time I lost, but also (amazingly) resenting the extra money I was getting in my wage slip. Almost as if the fiscal gain was an avatar for my stress. Of course, working resentfully on a Saturday morning and having a surplus of disposable income is a bad state of mind to browse Amazon in. Sure enough I found myself spending somewhat, shall we say, recklessly. A new TV. New speakers. A PS3 Slim. New phone. And, ultimately, an Amazon Kindle.

Now, I'd never expressed an interest in a Kindle before. Never even really knew much about them. But the announcement that Amazon were releasing an international version triggered some kind of lazy enthusiasm, and without giving it much thought at all, I ordered one. Didn't even really think about it till it arrived.

It was in this odd state of apathy that the Kindle and I began our strange relationship - a device I wasn't interested in, using a technology I had no previous opinion about, paid for with money that I wasn't really going to miss. A recipe for objectivity if ever there was one.

Okay, first thing - the Kindle is a lovely device. It might not seem like it from photos, and the QWERTY keyboard does like kind of clunky, but it is nonetheless attractive in a quirky kind of way. A bit like a sexy librarian - slim, trim and very pleasant to look at, but with a faint air of learning about it. The screen, e-ink as all good e-readers should be, is perfect to read on. It looks pretty much like paper (slightly greyer than outright white, but nice) and comes pre-printed with a quickstart instruction list - a list that some purchasers may find themselves looking for a loose corner to peel off so they can see the screen underneath, ahem.

It has built-in 3G and Amazon will thoughtfully pay for you to download books and (selected webpages) on a Sprint roaming tariff, no contract necessary. The wireless stuff is actually really cool and transparent. You can buy a book on the Amazon website on your computer and when you next pick up your Kindle it will be downloaded and ready to read. That said, as mentioned, Amazon will only let you view certain websites when not in the US - understandable given that they pay 35 cents per megabyte, but annoying given that they also won't let you download pictures for newspapers or magazines - text only in the UK unfortunately. A wifi option would have been nice.

Response is slow, as you'd expect with e-ink, but not massively so. You tend to notice the screen flash when you turn a page a lot at first, but soon get used to it. In fact, the flash of the screen seems to be exactly the same length of time it takes your eyes to go from bottom to top when starting a new page.

Apart from that, there's not a lot to say about it. It is a device that lets you buy and read books.

So why did I hate it? Well, learning to use an e-reader is a strange experience. It isn't like reading a physical book. Oh, don't get me wrong, I'm not a dead tree fetishist like many people seem to be. I have no great need to be surrounded by the smell of paper or experience the weight of a hefty 1000 page epic in my hands - books to me are great, but space filling and they need dusting, so I have no qualms about replacing them. My problem was that I couldn't see beyond the device to the story within.

When you first use it, it's like you're looking through a two hundred pound window, but you're only seeing the window frame and not the view outside. Your eyes are continually looking at the screen, you're constantly adjusting your fingers to sit better on the buttons, you check the battery life indicator, the wireless indicator and, if you're of a geek mentality, you have that new gadget lust that occupies your mind and blinds you to all else. This makes it very difficult to lose yourself in a book, which requires you to see beyond the medium and have the words take hold of your mind.

It also didn't help that my first book purchase was Neal Stephenson's Quicksilver - the first thousand page book in a trilogy of thousand page books - which I'm reliably informed by Gareth takes about 1500 pages to really get going.

If prospective Kindle owners take only one piece of advice from this blog, it should be this - for your first book, keep it short, keep it light, keep it something that you know you will enjoy.

I dragged out Quicksilver for the best part of two months, each page an effort to get to the bottom of and eventually found myself hating the device as much as I disliked the book. I was about ready to declare the e-reader revolution over, and go back to paper and then something strange happened. I gave up on Quicksilver and bought something completely different (Altered Carbon by Richard K. Morgan). This book was far more accessible, far easier to read and suddenly the Kindle disappeared from my line of sight and I could see only story!

With this revelation, I started to see the Kindle in a new light. I started to notice little things: like how easy it was to find my page when returning to a book, how useful it was to be able to search text or lookup words in the dictionary, how light the device was to hold, how much easier it made reading in a cold bed, how easy it was to throw in a bag and pull out on a train, how nice it was to be able to buy a book on a whim and save it to read later. The device suddenly opened up to me and I found myself reading more and more. I even take the thing in the bath now! And I have a queue of books I want to read for the first time in years and years.

So the story has a happy ending after all - three months I've had it, and I love it now. The Kindle, or something like the Kindle, is undoubtedly the future of reading, of that I'm convinced. But it's early days - I really hope they sort out the DRM nonsense before it gets to be like how MP3s were in 2005, and the technology is very primitive. I can't help but think I'll look back on my Kindle v2 in 5 years time and wonder what the hell I was thinking. But, for now, I'm happy to see beyond the device and enjoy that content.

Sunday, 22 November 2009

The Climate Research Unit Hack

In the last couple of days, it has emerged that The University Of East Anglia's Climate Research Unit has had one its servers hacked, and a number of emails and documents stolen. Furthermore, a number of these emails have found their way onto the internet - and are causing quite a stir.

The emails date back more than a decade, allegedly sent by a number of high up figures in the recent IPCC reports for the UN. More interestingly, and alarming, they appear to show a number of instances of, what can only be described as, unscientific practices.

There are three main examples that are currently doing the rounds in the blogosphere.

Regarding data manipulation:

I’ve just completed Mike’s Nature trick of adding in the real temps to each series for the last 20 years (ie from 1981 onwards) amd from 1961 for Keith’s to hide the decline.


Regarding peer-review:

This was the danger of always criticising the skeptics for not publishing in the “peer-reviewed literature”. Obviously, they found a solution to that–take over a journal! So what do we do about this? I think we have to stop considering “Climate Research” as a legitimate peer-reviewed journal. Perhaps we should encourage our colleagues in the climate research community to no longer submit to, or cite papers in, this journal. We would also need to consider what we tell or request of our more reasonable colleagues who currently sit on the editorial board… What do others think?

I will be emailing the journal to tell them I’m having nothing more to do with it until they rid themselves of this troublesome editor. It results from this journal having a number of editors. The responsible one for this is a well-known skeptic in NZ. He has let a few papers through by Michaels and Gray in the past. I’ve had words with Hans von Storch about this, but got nowhere. Another thing to discuss in Nice !


Regarding concealment of data requested under the Freedom Of Information Act:

Can you delete any emails you may have had with Keith re AR4?

Keith will do likewise. He’s not in at the moment – minor family crisis.

Can you also email Gene and get him to do the same? I don’t have his new email address.

We will be getting Caspar to do likewise.


I have to admit, it all looks pretty damning on first inspection. I expect that a lot of people will have a lot of questions to answer. But I don't think it is the smoking gun that the climate change skeptic lobby hopes it is.

There is a danger with reading private correspondance out of context. Scientists go to great length to word peer-reviewed papers in a very specific way, so as to avoid uncertainty and ambiguity. It just makes good sense. However, they are not so circumspect in supposedly private email - and I think this is what this leak shows.

In the examples quoted above, the first (and potentially most serious) is the easiest to explain away. At first glance, the use of the word "trick" and the phrase "hide the decline" seem to scream data manipulation. But on closer inspection, by looking at the discussions around this area, it seems that he's using "trick" to refer to a method of combining the data - in this case, to present a smoothed dataset including proxy (tree ring, ice core) temperatures and modern, instrumental tempaeratures to show temperature behaviour beyond 1980. The decline referred to is probably a reference to the "divergence problem", a well discussed problem in dendrochronology relating to the unreliability of tree-ring data from the mid-20th century (DailyKos explains it better here)

The second example also seems quite disappointing. Why would a scientist organise a boycott of a peer-reviewed journal when the journal in question published a paper that didn't follow the party line? Especially since the most common complaint about anti-science factions is that they don't have any peer-reviewed work...

Again, a bit of background is needed. The email refers to the journal "Climate Research" which, in 2003, published a paper (Soon and Baliunas, 2003) that had broad anti-AGW conclusions (it was actually a literature review). Despite passing review, the paper was so widely seen as flawed that it caused three of the journal's editors to resign in protest at the breakdown in process. Similarly, 13 of the paper's references disputed the authors' interpretation of their results. Finally, a reconstruction of the paper's methods, but using valid proxy temperature measurements, found a completely opposite result.

In this situation, something has clearly gone wrong with the peer-review process. So what is a scientist supposed to do? A paper like this has the potential to knock research back by years, purely because society really, really wants it to be true. Perhaps a boycott is over-reacting, but it certainly isn't a conspiracy to silence dissenters.

Finally, the deletion of emails requested by the FOI. This one, sadly, as yet has no legitimate explanation. On the surface, it points to a conspiracy to hide data or methods. But perhaps this extract from another email points to the real story:

We should be able to conduct our scientific research without constant fear of an “audit” by Steven McIntyre; without having to weigh every word we write in every email we send to our scientific colleagues. In my opinion, Steven McIntyre is the self-appointed Joe McCarthy of climate science. I am unwilling to submit to this McCarthy-style investigation of my scientific research. As you know, I have refused to send McIntyre the “derived” model data he requests, since all of the primary model data necessary to replicate our results are freely available to him. I will continue to refuse such data requests in the future. Nor will I provide McIntyre with computer programs, email correspondence, etc. I feel very strongly about these issues. We should not be coerced by the scientific equivalent of a playground bully. I will be consulting LLNL’s Legal Affairs Office in order to determine how the DOE and LLNL should respond to any FOI requests that we receive from McIntyre.


This excerpt seems to tell of a unit under constant scrutiny by a hostile critic. I can well imagine the scenario where this might prompt scientists to close ranks. Should they delete emails and withold information? No, of course not. What they've done here is clearly wrong and answers must be provided. But it doesn't point to the tax-greedy conspiracy conclusion that pretty much everyone is coming to.

What this leak really shows us is that scientists are humans, and fallible. They gloat over the death of an opponent, they fantasise violence to an annoying critic, they use sloppy language. But it shouldn't detract from the real and relevent results that they do produce.

Sadly, it already has. A cursory glance at pretty much any mainstream coverage of this story reveals an almost overwhelming tide of opinion against AGW. Furthermore, I see it cropping up in the blogs of other anti-science factions, the thinking being "if climate scientists can lie, why can't biologists/vaccination scientists/spherical earth proponents?".

CRU need to do something to extinguish this fire, because there is a very real chance that it will spiral out of control to the point that we take our eyes off the ball and miss our change to halt climate change. And in the worst case, this will have knock on effects to other "controversial" sciences.

Friday, 6 November 2009

What Google knows about me

I've had some disagreements on the interwebnet about the benefits of centralised data vs a more federal model. My view is that it's far easier to throw resources at securing important data if it's all held in one place rather than scattered around in small pockets. Many commercial organisations operate in this fashion, but when governments try to achieve it, it's met with hostility and suspicion.

Google have recently created an interesting tool which I think illustrates my point of view. The google dashboard:

https://www.google.com/dashboard

Shows you everwhere you're identified on the various google systems, and what information they hold about you. It also diferenciates between what's private and what's public. It's very effective, I hadn't remember granting a twitter app 'log in on my behalf' permissions, which showed up on the dashboard, and I was able to block it's access. Very effective, and I'd love a similar ability from government, log in, click my name, and have the application list everything the government knows about me. Only really possible with some sort of central identification of who I am, such as an ID card.

Of course, the danger is someone getting access to my single google account, and therefore having access to all this stuff. My view is that I'd happily pay to make this account more secure than worry about lots of little accounts all over the shop.

What do you think, is this kind of centralisation a bad thing?

Friday, 23 October 2009

360 Update preview

Got on the preview thing. Quite impressed! Everything installs like an app rather than integrated into the dash, kind of how the quiz thing worked.

Zune Video: Very impressive. 1080p instant video shouldn't work, but it does, and it looks bloody amazing.

last.fm: Pretty simple, loads up your last fm account and your stations are available. It shows pictures of the band and stuff as you listen. Doesn't work outside of the app though, so you can't listen to last.fm while playing a game. Scrobbles your stuff too. Nice, but the quality of last.fm seems really bad once you've got used to spotify.

Facebook: Pretty basic facebook, shows your status updates, picture feed and a newsfeed of status updates. Links your xbox account with your live account. Picture slideshow thing is nifty on the telly, but the status updates and stuff is a bit useless as it wont follow weblinks. No apps work of course. Not bad for pics, but crap for everything else.

Twitter: Pointless, as everything on twitter is links, and this doesn't do it.

There's a news feed thingy added too, only got dilbert and cnn at the mo, but could potentially be an rss news reader, which would be ace if you could add your own feeds. Perhaps you could fool it by changing dilbert.com in your dns?

Quite a good update, all free of course.

Sunday, 11 October 2009

Google Wave Experiment

Okay, Google Wave isn't exactly "great" in its current incarnation. It definitely doesn't live up to the initial expectations. But it is nevertheless an interesting piece of technology and, immature UI notwithstanding, still holds great promise. So here's an experiment. Embedding a Wave in a blog. Not sure how this will work out... (you'll probably only be able to see this if you have a Wave account)