Mobile will catch up with the web first

WAP. Eww.

Mobile is huge right now. Particularly hot are applications and there are plenty of examples which elicit the response of, “That is really neat”. It is always very clear when businesses understand how mobile can be used in effective ways.

However, this blog is going to concentrate on web content on mobiles for the moment.

There seems to be a pervasive atmosphere that web sites MUST adapt to mobile or they are going to die. This is the ‘all or nothing’ response to advances in technology which assumes that the next best thing is going to destroy everything that comes before it. This is nonsense, of course. History has shown that sites just evolve to adapt to advances in the internet and when they have failed it has been down to the business model, not that they were a bit slow with social media or the latest whizzy AJAX and jQuery magic.

Do you remember when WAP was hot? Web pages (just about) on your mobile phone! If you don’t have a WAP site you are going to be left behind! I even worked for a startup which specialised in software to rewrite content on the fly for best display on different devices. A bold new era!

Was WAP a panacea? No. It was slow. It was ugly. Mobile displays were small and typically not in colour. Navigation was poor. It was an exercise in frustration. Technically WAP still exists but it is so dated now that using the past tense feels strangely appropriate.

Mobile technology has moved on. We now have large, colourful screens and pretty well featured web browsers. Touch interfaces and/or decent keyboards are present. The underlying communications layer is FAST – be it 3G or Wifi. It is possible, although sometimes a little painful, to navigate ‘normal’ web sites which have not been optimised for mobile.

There is now a land grab to ensure optimised sites. What are you optimising for? Well, the iPhone naturally features heavily and Android is surging strongly forward but there are lots of different devices out there. There are many challenges in optimising a site; it isn’t just about design and putting graphics in the right place. The whole user experience must be considered as certain tasks are just going to be DIFFICULT on a small screen and without a mouse. It is possible to rethink interfaces but there is a limit as to how far you can go.

Man posing in coffee shop with Apple product. Yesterday.

The iPad is now with us and bringing tablet computing that bit closer to the masses. It is another step in making it easier to navigate the web when mobile. Large screen! Speed! Looks cool to be using it when in a coffee shop!

The way the technology curve is going, it is clear that mobile devices are going to catch up with the web first. It is not the case that the web must pander to the current crop of mobile devices (although they will in the short term, of course).

Look forward five years. Perhaps less. Imagine an iPhone-sized device than when you press a button magically expands to become iPad sized. Science fiction? In the days of WAP the prevalence of devices such as the iPhone and iPad would have been thought of in the same way.

Businesses should concentrate on their core web sites and products first. It will always be worthwhile considering mobile (particularly the application state) but be very wary of getting caught up in the land-grab without consideration of what the end result will be… especially when the mobile devices are going to evolve and give you what you seek for free later on.

Books: Secret History of the Internet and Virtual Shadows

I picked up some books recently based on some reviews via the British Computer Society.

On the Way to the Web: The Secret History of the Internet and its Founders details the development of the various online systems which paved the web to the Internet and web that we know today. This was not a linear progression. The classic bulletin boards and the like (based on screeching modems, ah memories…) were not on the same path and eventually fell by the wayside but certainly gave many their first tastes of the online world. Oh, and the telephone bills to match.

Yes, the likes of Prestel and Delphi do feature. It is an interesting read and also details the political and personal wranglings that were going on. It is a shame that Compunet (my first online experience) is not featured but I did learn about the more official Commodore 64 services that existed.

Virtual Shadows: Your Privacy in the Information Society deals with, predictably, privacy in the Information Society! Some of the material will be a bit obvious to those with a background in this stuff (e.g. why blogs are popular and how they work) but some of the detail in risk assessment of the information you leave online is absorbing. Naturally, social networking sites form a key part of this as does the protection of children. I found the later parts of the book the best as they dealt with the current and upcoming threats to our privacy in general, be they ID cards or the ‘feature creep’ of CCTV and other surveillance systems. I had never heard of ‘Sousveillance’ before either!

I recommend both books so check them out.

Transparent web proxying: Ubuntu, DG834G, Squid

I’ve been tinkering with my home network and in particular with setting up Squid for caching duties. This was easy enough but also required manual configuration on any other systems to actually use it.

Wouldn’t it be easier for this to happen automatically?

The answer lies in transparent proxying which turned out to be possible with my setup.

I went with Squid3 and that just needed to be told to expect to work in this fashion:

# Squid normally listens to port 3128
http_port 3128 transparent

The next step as to get outbound web traffic redirected to the Squid box, which would then perform its duties.

This would normally require a dedicated firewall, and although most ADSL routers nowadays have rudimentary routing capabilities, I thought I was going to have to end up installing Smoothwall or similar.

Thankfully, the DG834G is running a form of embedded Linux. Although the web interface doesn’t allow complex firewall rules changes, it is possible to telnet in directly to play with iptables.

Once in, just a case of setting up the following rules:

iptables -t nat -A PREROUTING -i eth0 -s ! squid-box -p tcp –dport 80 -j DNAT –to squid-box:3128
iptables -t nat -A POSTROUTING -o eth0 -s local-network -d squid-box -j SNAT –to iptables-box
iptables -A FORWARD -s local-network -d squid-box -i eth0 -o eth0 -p tcp –dport 3128 -j ACCEPT

(With squid-box and local-network replaced with the relevant numbers!)

The above courtesy of: http://www.faqs.org/docs/Linux-mini/TransparentProxy.html#s6.

Once done, it just works! One bad thing is that it is not possible to save such custom rules from the telnet interface, so upon a reboot they will need to be manually put back. There are ways round this as you can roll your own custom firmware but that is something for another time.