Categories
Technology

Designers Are Burnt, Not Made

ScreenshotsCssCaptions

Tricky Curves – 4X Magnification

Obsessive attention to detail – that’s the thing that makes me not too bad at design. Also, the thing that makes design… maybe not so good for me. Several kinds of work will keep me up late into the night. But there are few that I will return to the moment I wake, brimming with new things to try. Web design, particularly in the final stages, is a constant stream of interesting problems.

CSS (Cascading Style Sheets), the design language of the modern Web, is a simple yet powerful tool. A style sheet is just a list of instructions about how things should look, really more like description than programming. I’d encourage anyone to try it out, no matter how non-technical you consider yourself. Sadly though, even today there are discrepancies in the way different Web browsers interpret these instructions. It’s not as bad as it was; there was a time they weren’t even trying. Microsoft’s Internet Explorer and Netscape’s Navigator (ancestor of Firefox) both had features actually designed not to work in the other. Today they at least seem to be aiming at the ambitious standards set out for HTML5 and CSS3. Browsers once competed with each other, now they compete with apps – nothing like a mutual threat to enhance cooperation.

Minor as they are, these discrepancies can still make the design that works beautifully on one platform look like something flung from a catapult on another. There really is no alternative except to test and test and re-test – on Windows, Mac OS, iOS, Android, Linux and so on, in all their different browser versions, at screen sizes from HD to phone. The permutations are slightly mind-blowing.

You find a bug, you think up or look up or remember a solution, you see if it works. If it works in Firefox on a PC you see if it still works in Chrome on a tablet, so on and so forth. When you’re sure you’ve solved that, you immediately go looking for another problem. For the best part of last week I did little but eat, sleep, and hunt bugs. And I was cutting corners on the sleep.

Don’t mention corners… See the one in the picture? Most of a day, that cost me. A lot more is going on than meets the eye. For a start, round corners can be a challenge. They look good, and they’re a part of the CSS3 standard, but people using Internet Explorer 8 and (God forbid) lower don’t see them. Well, you face a choice there: recreate the effect using images of round corners, or let the design gracefully fail in IE8. And really the latter is the sensible approach these days. Which is a little rough on users of XP – still my own favourite version of Windows – but frankly if you’re on XP and not using Firefox or Chrome then you (or your IT department) need a strong light shining up your nose.

Round corners at the foot of a page though are harder still. Look closely and you’ll see that the corkboard background pattern overlaps below the corner. (The random nature of the pattern helps to disguise this.) What’s happening is that this is an extra piece of the background overlying the rest of the design – with a bottom end for the page, complete with rounded corners, overlying that again. This whole unit then sticks to the foot of the page’s contents. Carefully-chosen margins meanwhile make sure that it always has precisely the same width as the rest, no matter what size the screen. Oh and those margins have a length described as a negative percentage, which is a little mindbending in itself.

Next problem is that 3D shadow, to make the page look like it’s inset into the background. CSS3 now has a very attractive way to do soft 3D borders, called “box-shadow”. Unfortunately, as the name suggests it only works for things with four sides. My footer wants a shadow on just two of its sides, and for that my only reasonable option is an ordinary border.

The tricky bit then is where they meet. While a border looks much the same in every browser, the shadow has properties of ‘blur’ and ‘spread’; these make it more realistic, but also more open to interpretation. Therefore it comes out looking wider in some browsers than others. What do you do then when the inconsistent shadow meets the consistent border?

The solution I found is a mad hack: I made the border 2.5 pixels wide. This of course is nonsense. The pixel is the base physical unit of the display screen, you can’t have half of one. What happens in practice is that different browsers interpret this nonsense instruction differently – crudely speaking, some round up and some round down – but they do so in a way that broadly matches how they interpret the box-shadow. The upshot, as the images above show, is that the borders join pretty smoothly in the four most popular browsers. It takes magnification in fact to show that there’s a join at all.

I’d like to say this was unusual, but really this is the essence of the Web design job – a strange blend of technical precision and lateral thinking. Part tweezers and microscope, part bent paperclip and sharpened spoon. It’s a voyage deep into an unusual problem-space, one that takes over both my waking and my sleeping mind.

Categories
Technology

Browser Wars: Firefox Fights Back

Have you heard of Aurora? This is basically Future Firefox, an experimental version of the great independent browser from Mozilla. Not a beta, because it’s not a test version of a coming product; more a testbed for ideas that might be included soon.

So you can’t say every feature it displays will end up in Firefox. Some though I’m pretty certain will – at least when it comes to the Android version. Particularly the way Aurora now responds to hover events, so things like dropdown menus work when you pass a mouse pointer over them.

What should I care, you may ask, when my phone doesn’t have a mouse pointer? Actually it probably could… A lot of Androids will let you plug in a mouse (and indeed a keyboard, external drive, or other peripherals) if you use a USB host adapter, and there are Bluetooth mice too. More importantly though, it helps Android adapt to a greater variety of hardware: tablets with and without pens, laptops, even desktop devices. I have no doubt that in a couple of years Android will be seen as a serious alternative to Windows for a lot of work situations.

Another good thing about this desktop-like ability in a browser is that it helps close a gap threatening to open between the desktop and mobile Web. Sure, mobile sites have their uses, especially on smaller screens. But they will nearly always be simplified versions offering less control, and it would be hugely frustrating if your browser wasn’t capable of switching to the full version when needed.

And certainly, no one should ever be forced into using an app just because their phone can’t handle a website.

My new default browser then? Nope. Aurora is in no way intended for primetime. It has some really weird bugs, a predictable consequence of throwing in new features to see what happens, and quickly becomes frustrating to use. But proper Firefox for mobile is pretty good. It has perhaps the most attractive look of any Android browser, and it’s been very stable. Certainly try this. Or if you want to be a bit brave, there’s a good beta version that has some of the more stable of the new features.

Aurora also test-runs a “reader mode”, for when you don’t care about the fancy bits of a website

But if I praise Mozilla here, it’s with faint damns. The reason I’m so certain this feature will make it into Firefox for Android is that every single major rival has it already. The standard Android browser, Chrome for Android, Dolphin HD, even Opera Mobile.

All of them have their own foibles and bugs too; desktop-class browsing on a phone is obviously no walkover. Opera I regard as too eccentric to be really usable now. Try to upload an image with it, for example, and it will use its own non-graphical file explorer instead of Android’s image gallery. How many of your photographs do you know by name? Dolphin is a browser designed exclusively for mobile devices and there is a lot to recommend it, but it feels more orientated to smaller screens. The Android native browser gets better all the time, and now features a full screen mode and a thumb-friendly menu system, but can seem a little flaky.

The leader still though is Google’s Chrome for Android. I’ve raved about it before, so I’ll restrict myself to happily reporting that its chief weakness – a regrettable tendency to crash if you look at it sideways – does seem to have been fixed in Android 4.0.4.

It’s maybe not surprising that Google’s product is doing well. It’s got Google’s money behind it after all, and Google’s ambition. But Mozilla have their own ambition now, and though it’s been taking them far too long, they do look to be on their way to producing a serious mobile contender.

Categories
Technology

Where’s My Ice Cream?

Oooh, this isn’t supposed to happen.

You may remember a while ago I got fed up waiting for Vodafone to upgrade my phone’s “firmware” – that is to say, send out the newest version of Android. Google makes Android of course, but then the various phone manufacturers adapt it to their hardware. Finally the networks add their own modifications and extras.

If they can be bothered, it seems… Samsung took ages to get Android 4 (Ice Cream Sandwich, as she is known) ready for their Galaxy Note, and now it’s taking Vodafone Ireland months more to pass it on to us. Why? 02 Ireland released it in June. What the hell are Vodafone doing to it?

My guess would be putting in some awful advertising-partner crapware the customer is going to revile, but perhaps I’m too cynicalÂą.

So customers are getting increasingly pissed off – witness the acrimonious thread brewing on their support forums. Phones with the next major version of Android (4.1, or “Jelly Bean”) are beginning to hit the market, and we’re still waiting for 4.0. Myself I gave up on them, and did the upgrade at home using a non-Vodafone version of the firmware and some wood glue². All went well, except the program that’s supposed to look after all this took umbrage, and ever since has been curtly displaying the message “Your device does not support software upgrading by Kies”.

And yet here it is. Upgrading.

I don’t know whether to be excited or worried. It’s like being told that you’re getting a present, but that it first has to be extracted from your bottom using a corkscrew. Samsung’s “Kies” phone management software is, as I’ve mentioned before, an unhappy thing. I’m already on the second attempt here. The first time it spent about half an hour downloading the files for the upgrade. Once that was finished, it told me that it couldn’t recognise the phone and to restart it. Whereupon it begins to download those files all over again… That’s just basically idiotic, isn’t it?

And I don’t even know what this upgrade is. I’m just hoping that it’s the official Vodafone release of Android 4, including the “Premium Suite” of special Galaxy Note apps (and Angry Birds Space!) that Samsung promised in recompense for their part in the delay. ln theory that shouldn’t happen – you get updates to the version you have, not the one you’re meant to have – but I don’t know what else it could possibly be. Can’t wait until the download completes.

*          *          *          *

OK I fell asleep – after yet another failure and restart. But in the morning, after a few more restarts of both phone and PC, it finally worked.

The mystery update turns out to be not Vodafone’s build, but an upgrade to the generic one – from 4.0.3 to 4.0.4. Still no sign of the “Premium Suite”, which I expect will only come through the network. If it comes at all. At this point though I’m beginning to wonder if I want to get back onto Vodafone’s update stream, if people there are still stuck on Gingerbread (2.3) while I just got an update before I even heard it was available.

So what’s new? Performance improvements is all really, especially to the camera. Otherwise little major except… I almost daren’t say this for fear of seeing these words vanish before my eyes, but Google Chrome actually seems pretty stable now. That is devoutly to be wished for.

Mostly though, this is a polishing releases. Good and all, but not terribly exciting compared to Ice Cream Sandwich which pretty much made the Galaxy Note complete as an extraordinary cross between a phone and a notebook. It is the most useful device I’ve ever owned – a phone in my pocket that can do virtually everything I’d otherwise need to carry a PC or netbook or tablet for – and I’d recommend it to anyone.

Just don’t get it from Vodafone Ireland.

 

  1. I’m not too cynical.
  2. If you’re interested in the technical details, the wood glue is actually a very useful program called Odin.
Categories
Technology

Chrome. Beautiful, Brittle

Good news if you’re using an Android phone or tablet. The mobile version of the Chrome browser, about which I have raved before, has finally been officially released. Chrome handles complex modern sites better than anything else available for mobile, a distinct advantage for the Android platform over iPhone. If you have a decently big screen you can enjoy an experience almost indistinguishable from a desktop browser, using real websites instead of over-simple mobile versions or apps. The illusion becomes perfect on the Galaxy Note, as hovering the pen near to the screen triggers “mouseover” events like dropdown menus, just as on a desktop computer – and just as I’d hoped.

All right, it doesn’t have Flash. This is Adobe’s (and ultimately, Apple’s) fault rather than Google’s though, and there should be a plug-in to fix it soon. It still seems to lack any full-screen mode too. But in every other respect it outclasses the competition, from Google’s own default mobile browser to even the likes of Dolphin HD. Naturally it still has that lovely playing-card interface, it’s as neat and simple as any Chrome variant, and it’s fast. Remember, this is coming from someone who vastly prefers Firefox on the desktop, both for its features and for its independence. Firefox for mobile is getting very good, but this leaves it standing.

Really just one thing stops me from telling you to go install Chrome for Android directly without passing Go or collecting two hundred euros. This would be its slight tendency to crash every five f***ing minutes. Seriously, it happened so many times while I was writing this that I’ve given up and am completing it in Jota. I’m enormously disappointed. I was hoping that the final release would fix the instability that plagued the beta. You know what? It’s actually worse.

I still suggest you download this, even try it as your default browser. It is that nice. I just wouldn’t recommend you use it to write anything longer than a Tweet.

Really Google, what the hell?

Categories
Technology

Galaxy Note With Ice Cream Sandwich 3

Android 4.0 is of course an OS designed to work equally well on phones and tablets, and one of the chief features of the Note is its huge, tablet-like screen. So let’s have a look at the advantages of holding your phone sideways.

For a start, landscape mode is a great fit for a GPS device that has Google Street View!

This brings a whole new meaning to the term SatNav.

The included calendar app, S Planner, looks particularly fine on its side.

As does the updated Gmail client. Missing from the inbox view are buttons to scroll through mail. After a confounded moment, you realise that this is now done by swiping. Which is nice. The look is cleaner now. Especially when you choose to write a new mail…

How’s that for stripped down?

But making fullest use of gestures is the beta of Chrome for Mobile. It may not be quite stable yet (the main reason this post is late…) but even allowing for that it’s still better than any other mobile browser around. It’s in the “deck of cards” view that gestures really come into their own. You can use two thumbs to leaf through the page previews, a far faster way to find what you want than clicking on tabs.

I’m beginning to wonder if this really is the best mobile browser interface after all – and not the best interface of any browser, ever.

Categories
Technology

Galaxy Note With Ice Cream Sandwich 2

Some Screenshots:

Multitasking, something of an afterthought until now, becomes integral in Android 4 (Ice Cream Sandwich). Hold the home button and every app you’ve used recently is there waiting to take up from where you left off. Well I say recently; presumably it’s limited by available memory, but it seems able to hold dozens.

That “Deck of Cards” view in Google Chrome Beta for mobile, allowing you to flick through your open tabs. This is a really good idea.

Another feature of the new Chrome browser – preview of search results. Touch a small magnifying glass icon in the results and screenshots are spread out for you. It’s remarkably fast too.


In short, I love this browser! It’s not perfect yet; it crashed once, and it took me a while to coax it into allowing me to upload those screenshots. (Tip: Zoom out. When screen is magnified, WordPress can get confused about which link you’re pressing.) But I created this post using it exclusively, a real-world challenge involving complex JavaScript-heavy pages and devilish floating input panels. The only mobile browser to even barely pass before this was Nokia’s MicroB, which is essentially desktop Firefox for Linux in a mobile guise. To finally surpass this is high praise indeed – and an indictment of other mobile browsers when you consider that they’re still behind a standard Nokia set three years ago.

Anyway, the take-home here is that mobile browsing finally works right. Well done, Google.

%d bloggers like this: