Results for tag web

  • Digging deeper into AWstats
    Armijn Hemel, 2011-01-21
    AWstats is a popular program to analyze logfiles. The AWstats files themselves are neat little databases from which you can extract a wealth of information.
  • Static assignment of arrays in Smarty templates
    Joor Loohuis, 2010-11-13
    Occasionally, you need to fill an array with values for use in a Smarty template without explicitly assigning it in your PHP code. Here are some tricks for creating arrays directly in a template.
  • Security through obscurity with HTTP Basic Authentication
    Joor Loohuis, 2010-10-17
    One of the undying fallacies of web development is that an application can be secured by requiring that the users authenticate themselves using HTTP Basic Authentication. We regularly have to explain to developers how easy it is to extract the authentication data from a request. So it's probably useful to put this down in writing for future reference.
  • A Google Map with company logo and travel directions using jQuery
    Joor Loohuis, 2010-09-19
    Our article describing how to set up a Google Map with a company logo and travel directions proves to be popular. One question we've received a few times involves using jQuery in stead of Prototype, so in this article we provide the jQuery version.
  • Next step MySQL: using views to improve performance
    Joor Loohuis, 2010-08-14
    When developers start using MySQL as a storage backend, they quickly find out how to insert, update, delete, and retrieve data. But often enough, progress tends to stop there, and problems arise when an application needs to scale. This article demonstrates how creating views may be a life saver for an underperforming application.
  • Running your own microblogging service
    Armijn Hemel, 2010-07-28
    Microblogging services such as Twitter and have become very popular. Instead of registering with an existing service you can also quite easily run your own microblogging service, using Status.Net.
  • Precision of geographical coordinates for use in Google Maps
    Joor Loohuis, 2010-05-22
    One aspect of using Google Maps that is not often addressed, is the precision of geographical coordinates that is required to properly represent information. A little explanation is in place.
  • Digging through AWstats files
    Armijn Hemel, 2010-05-20
    AWstats is a popular program to analyze logfiles. The AWstats files themselves are neat little databases from which you can extract a wealth of information.
  • Finding the right UTF-8 symbol
    Joor Loohuis, 2010-04-29
    Occasionally, you might have the need for a special symbol in HTML. Whether it's a simple arrow, a foreign currency symbol, or something more exotic, it's probably represented in the UTF-8 font encoding. Here's how to find the correct entity.
  • Logging unconfigured domain names in Apache
    Joor Loohuis, 2010-04-01
    When using virtual hosting with Apache, occasionally you may have domain names pointing to your webserver that you don't know about yet. A little tweak to the logging format will help you find out what these domain names are.
  • Find geographical coordinates using Google Maps (revisited)
    Joor Loohuis, 2010-03-08
    A little while ago we posted a short instruction on how to find the map coordinates of a location for use on a Google Map. With some new additions to Google Maps, this has now become even easier.
  • Adobe Flash player for 64bit Linux
    Joor Loohuis, 2010-02-17
    If you're using 64bit Linux on the desktop, and you need Flash support, you've had a pretty rough ride so far. But things are improving.
  • Towards a better HTML textarea
    Joor Loohuis, 2010-02-12
    With webapplications becoming ever more important, you would think that the one control we have for entering larger amounts of text would be one of the points of attention. Unfortunately, the humble textarea has remained just that for years, humble.
  • Book review: Everything you know about CSS is wrong
    Joor Loohuis, 2010-01-03
    While 'Everything you know about CSS is wrong' may be a presumptuous title for a book, it discusses an important development in the layout of websites and applications. The book provides an in-depth discussion of the advantages of CSS table display styles.
  • Off-by-one errors in background placement in web browsers
    Joor Loohuis, 2009-11-26
    The rendering engines in some popular web browsers contain a bug, where a background positioned in the center of a block element is sometimes offset by one pixel relative to an element that is positioned with automatic margins.
  • Passing complex data from Smarty to JavaScript
    Joor Loohuis, 2009-11-13
    Modern web applications frequently need to process complex data with JavaScript. Typically, these data are requested separately through AJAX calls, but if the data do not change frequently, it is probably easier to output JSON in the (X)HTML, and let JavaScript take it from there. The Smarty template engine makes this more or less trivial.
  • Multilingual websites and webapplications using PHP and Smarty, part 3: locales
    Joor Loohuis, 2009-08-30
    Multilingual sites not only need support for different languages, but also for locales, the set of conventions that are used in countries and language regions for representing quantities such as time, numbers, and other information. This article describes how websites and webapplications that use Smarty can set a locale in addition to a language for the best user experience.
  • A Google Map with company logo and travel directions
    Joor Loohuis, 2009-08-24
    A Google Map is a nice attribute for a company website. In the blink of an eye visitors can see where you are located. The posibility for a prospective customer to get travel directions is a very useful addition. Using the company logo to indicate the exact location adds the finishing touch. All this is actually quite simple to set up, as this article shows.
  • Using OpenStreetMaps with the Google Maps API
    Joor Loohuis, 2009-08-06
    It is relatively easy to add a new map type to Google Maps, provided you have access to a tile server. As an example, we use the OpenStreetMaps data set to display a map that doesn't have all the usage restrictions that the regular map types have.
  • Multilingual websites and webapplications using PHP and Smarty, part 2: dictionary based templates
    Joor Loohuis, 2009-07-26
    One of the components of a multilingual website or webapplication is providing support for different languages. Typically, the translations are not provided by webdevelopers, but by less technically oriented people, who prefer a low-tech approach to translating. In this article a dictionary based translation model for Smarty templates is demonstrated, which is easy to implement, maintain, and extend.
  • Multilingual websites and webapplications using PHP and Smarty, part 1: detecting languages and locales
    Joor Loohuis, 2009-07-12
    Supporting more than one language in a website or webapplication has become a core feature of many projects. This series of articles explains how you can detect languages and locales, and how you can use Smarty to produce interfaces with support for languages and locales that are easy to maintain.
  • Setting up WebDAV with Apache
    Armijn Hemel, 2009-07-02
    Web based storage with WebDAV can be set up in minutes using the Apache webserver.
  • Fighting form spam with a little JavaScript
    Joor Loohuis, 2009-06-12
    Form spam is one of the many forms of abuse your website may fall victim to. Preventing automated form submissions is often done with captchas, but there are effective ways of preventing garbage in your websites and your databases, using nothing but a little JavaScript.
  • Graceful maintenance for Apache virtual hosts
    Joor Loohuis, 2009-05-16
    When disabling individual Apache virtual hosts for maintenance, it is desirable to send search engine friendly 503 headers for any domains configured in this virtual host. Fortunately, this takes very little work.
  • Find geographical coordinates using Google Maps
    Joor Loohuis, 2009-05-10
    There are occasions where you need accurate geographical coordinates of a location, for example for putting a marker on a map. Assuming you don't have a GPS receiver handy, or the location you're interested in isn't around the corner, finding coordinates can be a pain. Fortunately, Google Maps provides a little tool that will help you find coordinates for any location you can display on a map.
  • Debugging Smarty templates
    Joor Loohuis, 2009-04-22
    Debugging Smarty templates becomes more difficult as the complexity of the assigned data increases, and may also depend on the sophistication of the application. Another twist is added when changes need to be made to a live application. This article gives a couple of tips for making debugging templates a little less painful.
  • Prototype: selecting elements by id or name in Internet Explorer
    Joor Loohuis, 2009-04-21
    Selecting HTML elements by id using Prototype turns out to have a little quirk in Internet Explorer 7 and earlier, where the selected element may not have the specified value in the id attribute, but the name attribute in stead.
  • Unintentional side effects of using microformats
    Joor Loohuis, 2009-04-13
    Interpreting a website using microformats semantics has consequences for webdesigners and webdevelopers, even if they don't intentionally use them. Certain markup is assumed to have a specific meaning, which may result in functional and presentational side effects. Therefore, designers and developers should be aware of the syntax of microformats, and avoid it if the semantics are not applicable.