Skip to content

Lokalen Virtual-Host von Android-Gerät aus aufrufen

Momentan dilettiere ich ein wenig an einer responsiven Webseite mit den Mitteln von Bootstrap herum. Klappt ganz gut, besonders dank des Device Mode der Chrome Dev Tools. Dazu heißt es aber auch:

Warning: Device Mode gives you a close approximation as to how your site will look on a mobile device, but to get the full picture you should always test your site on real devices. DevTools can't emulate the performance characteristics of mobile devices, for example.

Ich soll mir die Seite also auch auf einem echten Smartphone bzw. Tablet ansehen. Aber wie komme ich vom mobilen Endgerät an den Webserver, der bei mir lokal auf meinem Entwicklungsrechner (im folgenden einfach "Computer") liegt? Klar, die IP würde helfen, wenn ich nicht mehrere Virtual Hosts angelegt hätte. Klar, ich könnte jedem Virtual Host einen eigenen Port zuweisen oder ähnliches.

Was aber viel besser funktioniert und gar nicht so viel Aufwand bedeutet, ist ein weiteres Feature der Chrome Dev Tools: Remote Debugging Android Devices.

Dafür benötigen wir eigentlich nur ein USB-Kabel, um das Smartphone mit dem Computer zu verbinden, und einen lokalen Proxy (z.B. Squid) auf dem Computer.

"Lokalen Virtual-Host von Android-Gerät aus aufrufen" vollständig lesen

Google releases OpenID demo store and mod_pagespeed

Google just released two interesting projects into the wild. One is an OpenID demo store with accompanying documentation, the other an open-source module for the Apache web server.

Google's OpenID demo store

Although OpenID has seemingly been adopted by all major players on the web (aside from Facebook, maybe), I wonder how often their users log in with their OpenID. Most smaller sites are afraid of the overhead of an OpenID implentation, or simply don't know how to do it. Now, Google set up a sample store that makes heavy use of OpenID. Equally important, it's supplemented by an extraordinary documentation. As Carsten correctly states, such a documentation was needed for quite some time. It will be interesting to see if any larger online shops jump on the bandwagon an implement OpenID for their businesses.

mod_pagespeed

According to Google, page loading times become increasingly important, not only for the customer experience, but also for the ranking in Google's search index. Performance hints and tools are abundant on the web, but Google goes even beyond those recommendations and released an extension for the popular Apache web server: mod_pagespeed. I installed it on my local box, but there are lots of options, and I haven't found the time yet to fiddle with them all. It seems that you can achieve most of the optimizations by optimizing your default Apache installation. However, mod_pagespeed might make configuration a lot easier. I guess, we'll have to wait and see.