Posts tagged ‘flash’

Unplanned downtime, YouTube without Flash

I had some unexpected downtime of this website (but not my mail service) recently which actually went undiagnosed for a few days. The cause was an annoying bug in lighttpd – annoying not so much because it is there, since everybody makes mistakes, but annoying because they actually seem reluctant to admit that there is a problem, even though there clearly is. A few days ago I set up an IPv6 tunnel with the very cool guys at SixXS. I can’t get native IPv6 from my ISP, but tunnel brokers like SixXS can act as an intermediary – my computer wraps IPv6 packets up inside IPv4 packets, send them to an IPv6 capable host in the SixXS system, which passes on the IPv6 packets over the actual IPv6 internet, and then wraps the response back up in IPv4 and sends it back to me. This offers practically all the benefits of IPv6 without me actually having it per se. In particular, I can now accept incoming IPv6 connections to my mail and web servers, and so now do so. It turns out, however, that enabling IPv6 support in Lighttpd has the effect of disabling IPv4 support on all Unix OSes other than Linux (because Linux takes the non-standard and technically wrong approach of having IPv6 sockets accept incoming IPv4 connections). I didn’t notice this immediately, of course, because I could access my pages just fine – via my IPv6 tunnel. Anybody on an IPv4-only connection (and that’s pretty much everybody) wouldn’t have been able to connect. Sorry about this.

Another quick thing: last night I learned, via undeadly.org of an astonishing little thing called HQTube: a Greasemonkey script which, using the well-known mplayer-plugin for Firefox, lets you watch YouTube videos inside your browser using mplayer, even if you don’t have Flash installed. Even more incredible than the fact that this exists and works is that it has been around since at least May 14, 2008 (date of the last update), and people are only just discovering this now. People using BSD operating systems that don’t have Flash support have been jumping through all sorts of hoops for years in an effort to get Flash working, and YouTube is normally a huge part of the motivation to do this. None of the other methods I’ve read about are close to being as easy or robust as this one solution seems to be. It should be much better known than it is.

Problems with Ubuntu

Following on from my post about the unavoidability of Flash, maybe a week or two ago I took a plunge back into the world of Linux after a goodly 3 years or so using NetBSD as my main desktop operating system. I decided to check out this Ubuntu thing that everybody seems so very worked up about these days. More specifically, I tried the Xubuntu flavour, because I find Xfce to be less repugnant than the bloated giants that are Gnome and KDE.

Here’s a list of things I’ve discovered about it so far which have bothered me.  I consider all of them to be fairly serious flaws, at least from an idealistic stand point:

  • The “base” installation bares no resemblance to the conceptual ideal of a base installation – it contains many things which are in no reasonable way necessary for your system to work (including Perl and Python and Ruby!), yet misses out things that one would reasonably expect to be a part of any Unix installation and in many cases are necessary for the system to work, like NFS support (client or server).
  • By default, the root account is disabled (i.e. you cannot login as root from the console or use su from a shell) and you are forced to use sudo to do anything with root powers. At no point whatsoever during the installation process are you told that this is happening, even though no other Unix-like operating system on Earth behaves this way.
  • In a default installation, typing vi at a shell doesn’t start vi, it starts vim. I don’t like being lied to by my computer.
  • Third party software that you install via apt-get gets put in /usr/bin/, the exact same place as stuff that was installed as part of the system. /usr/local remains empty and there is no separation of system from extras, as is seen in the BSD systems and like I’m pretty sure was the norm when I last used Linux.
  • Whenever you install a piece of server software (like, for instance, the OpenSSH server, which, astonishingly, is not part of the titanic base install) Ubuntu immediately starts this server up, using the default configuration. You don’t get asked if you’d like to start it now. You don’t get a chance to change the default configuration to something that is appropriate for your environment. It just gets started. I think this one is particularly bad.

With all that said and done, having Flash working is pretty nice, and the package management has been an absolute dream so far, compared to pkgsrc. It doesn’t have some of pkgsrc’s cooler features, like license auditing or automated checking for security vulnerabilities, but the three simple facts that:

  1. Everything you could ever want is in there,
  2. Everything is available as a binary package,
  3. Updating everything is easy,

make those little sacrifices entirely negligible. It’s awesome, just a shame that the rest of the system has such severe deficiencies. I suppose the obvious thing to do based on this experience is to check out plain old Debian, although I also have my eye on Arch Linux. Hopefully I can find something out there that doesn’t suck. I’m somewhat worried about the age old issue of Debian’s packages being prehistoric, but I suppose that if it’s so bad, I can live with Xubuntu – most of the issues above are things you only have to deal with once.

On an unrelated note, you’ve probably noticed the appearance of commenting on this blog – I think that this works, so feel free to have at it. The road to getting comments to work in pyBlosxom was winding and fraught with peril, and my next entry will probably be about that.

Oh, and the commencement of my PhD has been delayed by probably about a week due to various administrative complications. Sigh.

The Unavoidability of Flash

Before the main thrust of this entry, I just wanted to point out that I (finally) got around to putting up at least a first version of my article on password storage, which has been linked to by my SQL injection article for a long time but hasn’t actually existed until earlier this week. Enjoy, and feedback is welcome!

Anyway, the main point of this article is that lately I have found myself ever more dissatisfied over the lack of availability of Flash on my home desktop machine. For those of you who didn’t realise, Flash is only available as a binary plugin for the mainstream operating systems and NetBSD isn’t amongst those. Getting Flash to work in NetBSD has always been a bit hit and miss. There are a wide range of possible solutions (and I discuss most of them, I think, in my NetBSD survival guide), mostly
based around various kinds of emulation. These solutions work to wildly varying degrees, depending on everything from the versions of Flash, NetBSD and Firefox involved to, apparently, the current phase of the moon. At the moment, Flash is effectively not working for me – video is jerky and intermittent and audio is non-existent. It’s not good enough for 9 out of 10 uses of Flash.

Now, this has been the situation for years, ever since I started using NetBSD.  But I used to absolutely not care. You only need to go a few years back in time to arrive at an internet in which Flash was completely and utterly useless and technical people could quite happily go without it. The uses of Flash could be summarised almost completely as:

  • Hideous banner adverts on websites which included video and/or sound. These things are often mind blowingly obnoxious (doing things like playing sound when rolled over with the mouse) and invariably not interesting enough to be
    worth the increased loading time and security risk.
  • Website navigation systems created by incompetent and inconsiderate web developers who had no concept of convenience or accessibility and were perfectly happy to make people with dial up connections wait for 10 minutes to their site and for people who didn’t use a supported OS or browser to simply not be able to see it. Invariably, these navigation systems offered nothing of value which couldn’t be achieved using faster, safer, and more accessible HTML, perhaps with Javascript, and the associated websites were entirely missable.  There’s a great rant about the problems with this sort of site here.
  • Interactive games or lengthy animations, the kind of things people email around to everybody they have ever met. Most of the time these things were fairly mindless, unwelcome distraction from actual work. Sometimes they were genuinely amusing (I used to be quite fond of the Strongbad email animations on Homestar Runner). In either case, they were something one could live without pretty easily.

These 3 categories accounted for 90% of the Flash on the web. I used to consider Flash as a cancer on the web, sucking up vast resources and creating substantial division amongst the online community, while rarely contributing anything of value. I was happy, even proud, to not have a working Flash installation on my computer. I felt liberated. And then YouTube came along.

At first I simply ignored YouTube as well. I thought the idea of using Flash to distribute video was stupid. I did not understand what the problem would be with simply providing direct links to mpeg or avi video files which could be downloaded via
HTTP or FTP. This would let anybody enjoy these videos regardless of their personal choice of operating system or browser. Furthermore, in the early days YouTube seemed to me to be little more than the new version of the final dot point in my list of Flash uses above – a way to distribute stupid, possibly amusing (but probably not) 5 minute videos that wasted my time. And some of the comments left on YouTube videos rank very highly amongst the stupidest things that humans have ever written
(a point made in this xkcd comic). YouTube? No, thanks.

However, today I am forced to admit that YouTube has become useful. Maybe it became useful a long time ago and I missed it while grumbling with my stone tools and bearskin clothes in my Flash-free cave, I’m not sure. To be sure, there is still a tremendous amount of crap on YouTube, complete with shockingly stupid comments. But at the same time, a lot of intelligent, creative people are using YouTube to broadcast stuff which is genuinely interesting, educational or useful. After
Itojun passed away I learned that he had posted a series of videos on YouTube explaining the basics of (what else?) IPV6, in both Japanese and English.   Just last night, my brother-in-law Gareth pointed me in the direction of some YouTube videos by
Johnny Chung Lee, a hacker from CMU, who has done some really clever stuff with the Nintendo Wii’s “Wiimote”, like building quick and cheap head-tracking hardware, electronic whiteboards and finger trackers. I also recently found via Reddit a
video demonstrating “Shredz64″, a port of the popular Guitar Hero game to the Commodore 64, which uses the actual PlayStation guitar controller, hooked up to the C64 through a home-made adapter. These are just some things I’ve found relatively recently and thought were awesome – I have to assume there is a plethora of similar stuff on YouTube.

It’s not just YouTube, either. YouTube has popularised the notion of embedded video streaming in web sites. It crops up in a lot of places, and it’s often used for good things. Google’s technical talks come to mind first, but they’re not alone. Not only is there a lot of other stuff out there now, but it’s clear that there is only going to be more in the future. For better or worse, this is the medium that the internet community as a whole has chosen. I don’t doubt that if, for instance, internet-based citizen journalism takes off (and I sincerely hope that it does), YouTube or YouTube-like technology will be behind it.

Clearly, the situation regarding Flash has changed since I last evaluated it.  It now looks like these days I have more to lose than I do to gain by forsaking Flash. This is a sad situation, to be sure. It’s always a sad situation when in order to fully participate in the wonder of the internet one has to have one’s freedom of choice of OS and browser limited by the will of a company which stubbornly refuses to release source code, or at least file format documentation (Why not, Adobe? The Flash player is (financially) free anyway!). But pragmatism has to trump idealism at some point. Maybe, with Flash, this point has been reached?