Nationalities, Countries, Languages, Cultures, Ethnicity and The Web

user wrote: Anyone have a full list of Nationalities? Eg: Germans, French, British, Malaysian, etc etc A lot of people within Britain might not consider themselves British, but rather English, Welsh, Scottish, Irish, or perhaps even Cornish. Think also of Kosovo, Quebec and Tibet. People can be quite emotive about such issues. (The list from […]

On The Legibility of PHP

David Segall wrote: I do not deny that the programmer is the most significant factor in the readability of a program but would you really promote PHP as a language because it is easy to read? I certainly wouldn’t advise against it because of legibility concerns. Any language that supports comments (not all do) and […]

Sample PHP Source for Non-Interrupting Logins

Noozer wrote: User opens a page. A session starts and they are asked to log in. They spend 30 minutes reading the page, then clicks a link. Since they were on the page for 20+ minutes their session ended. At that point they are asked to log in, and then taken to their chosen page […]

Reusable Form Functions

Like me, you are probably confronted with many requests for surveys, questionnaires, feedback forms, registration forms and so forth: forms where the processing requirements are very simple (store in a database or e-mail to a particular address). Despite the simple requirements, there is often quite a lot of work involved: crafting a database to store […]

On Custom DTDs

Dylan Parry wrote: Of course, but validating against a custom, non-standards controlled DTD is a complete waste of time for HTML. That would be validation for validation’s sake. If you can’t validate against a recognised doctype then there is truly no point in attempting to create your own to cover your problems Using a custom […]

Reusable Table Functions

Ross wrote: I am seeking your advice on the programming language for such an action. i prefer a web table capable of sorting by size, length and so on, therefore built-in function for sorting is appreciated. Down below are a couple of nice PHP functions that may be of use. I’ve taken them from my […]

The User Interface of the Future

GreyWyvern wrote: Soon (real soon now) we’ll be progressing to voice-controlled systems. “Copy Document to desktop”, “Empty trash”, “Open Slashdot”. This is precisely an argument for the command-line paradigm! What you are describing is a command-line, with the keyboard simply being replaced with a microphone. Experiment: take someone who is accustomed to using such a […]

Tabouli

This recipe is one I improvised, drawing on a bunch of different sources, notably Closer magazine. Ingredients 200g bulgar wheat, or cous-cous if this is unavailable 150g fresh parsley, finely chopped 75g fresh mint, finely chopped 2 tomatoes 1.5 lemons 1 red onion 3—4 spring onions 2 tablespoons of olive oil 1 vegetable stock cube […]

Hummous

Ingredients 250g boiled (and cooled) chick peas 75g olive oil 50g lemon juice 50g brine (this can be obtained from a tin of “cooked chickpeas in brine”! Alternatively, just mix some salt and water) 50g Tahini (pulped roasted seseme seeds) 1 small clove of garlic Method Blend all ingredients in an electric blender. Done. Variations […]

Turkish-Style Grilled Lamb with Cous-Cous

Not really a Turkish meal, but my own creation in the Turkish style. Ingredients 2 lamb leg steaks 150g cous-cous 300 mL vegetable stock, boiling 1 tomato ½ red onion 3—4 spring onions juice of one lemon 2 tbsp chopped fresh parsley 1 tbsp olive oil Spice Mixture 2 tsp cumin seeds or cumin powder […]