Random Post Trivia

Well, the Random Article Widget inspired me somehow… Let’s say that we wanted a “Did you know that…” teaser to appear in the widget instead of an excerpt. Let’s say, for example, that we had an article about the grey whale. Our widget could show a trivia phrase such as: Did you know that the…

Snowflakes! (in javascript)

Browsing an old code repository of mine, I bumped into this little listing. It was my attempt to experiment on javascript object constructors and prototypes. It was a chilly winter evening, just like tonight, so I thought I’d make some divs snow… I figured, every snowflake should be an object, visualized by a little div…

Multiple file upload using one form

I was intrigued by this topic in freestuff.gr (in Greek) to write this article. The question is to develop a web page that will handle an events database. Although this is pretty simple by itself, issues arise when we want to attach a set of files to each event. For simplicity’s sake, we will assume…

A JQuery Chat: A Sample chat_aux.php

In a prevous article demonstrating the development of a JQuery chat, I noted that several server-side aspects depended on the specific implementation. I thought, however, I would provide a sample chat_aux.php for the demonstration to be complete. Of course, in real-life scenarios, things would certainly be a lot more complicated than this. So let’s begin…

An abstract dataset class in PHP

From my Delphi days, I remember one of its most interesting features: The TDataset class. It was an abstract class used to implement data access from various data sources, including but not limited to databases. One had to derive a TDataset descendant, by implementing its abstract methods, in order to specify the access details of…

An approach to web development based on nodes

Since its babysteps, the World Wide Web (WWW) adopted the URL concept in order to provide a locating mechanism for its vast resources. In most cases, after the scheme (or protocol) part is recognized by the agent, a nameserver is used to resolve the domain part, and then, the request is sent to the appropriate…

A JQuery Chat

As much as I resented the fact that I had to learn yet another framework, there came a time when I couldn’t avoid JQuery any more. Then, in order to get a hands-on experience with it, I decided to build a simple web-based chat. The concept is fairly simple: The server keeps track of a…

IS-A relations in Relational Databases

In database (DB) design, IS-A relations is probably the most ignored technique. Even when the classification of entities is obvious, many choose to create one table with as many fields as to cover all cases, which eventually ends up being a sparse, space-wasting table. Others, on the other hand, prefer to implement one independent table…