visitors

A more generic visitor pattern

I'm sorry if my question is so long and technical but I think it's so important other people will be interested about it I was looking for a way to separate clearly some softwares internals from their representation in c++ I have a generic parameter class (to be later stored in a container) that can contain any kind of value with the t...

Call Visitors web stat program from PHP

I've been looking into different web statistics programs for my site, and one promising one is Visitors. Unfortunately, it's a C program and I don't know how to call it from the web server. I've tried using PHP's shell_exec, but my web host (NFSN) has PHP's safe mode on and it's giving me an error message. Is there a way to execute the ...

Visitor Pattern + Open/Closed Principle

Is it possible to implement the Visitor Pattern respecting the Open/Closed Principle, but still be able to add new visitable classes? The Open/Closed Principle states that "software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification". struct ConcreteVisitable1; struct ConcreteVisitabl...

When should I use the Visitor Design Pattern?

I keep seeing references to the visitor pattern in blogs but I've got to admit, I just don't get it. I read the wikipedia article for the pattern and I understand its mechanics but I'm still confused as to when I'd use it. As someone who just recently really got the decorator pattern and is now seeing uses for it absolutely everywhere ...

accurate page view count

What is a good approach to keeping accurate counts of how many times a page has been viewed I'm using Django. Specifically, I don't want refreshing the page to up the count. ...

Website Stats/Traffic (backlinks, visitors)

Hi, How may I get the ranking statistics of a particular website using PHP, I'm talking about services like statbrain.com. I know I'll have to use other sources like Google, Yahoo and Alexa etc and that's what I want to know, how do I use these sources to get the data? Things I would like to know are number of visitors, Google PageRank...

MySQL Get rows between months

Hi all, I'm trying to SELECT the visitors of my site per month for the current year. For every different IP/user_agent combination there will be added a row per minute. To track the hits and the unique visitors. My scheme looks like this: CREATE TABLE `stats` ( `id` int(11) unsigned NOT NULL auto_increment, `domain` varchar(4...

How do I stop the breadth-first search using Boost Graph Library when using a custom visitor?

Say I found the node that meets my criteria and I need to stop the search. ...

How can I estimate the number of unique visitors for a given URL?

I need to get an estimate for the number of unique visitors, given a domain name. I want to use this value in a calculation, so unfortunately a traffic rank, as in an Alexa rank will not work. Is there any way, using AWIS or any other such web service to get an estimate of the number of visitors? It doesn't have to be particularly accu...

how to track sells you make by visitors reffered by another website ?

Hello, In my future website, i'll have parteners and i want them to receive a certain percentage of money according to how much the visitors they sent me bought items. So this is a simple question : How to know where the visitor comes from when he decide to purchase a thing on my website so i give the correct amount to the partener wh...

Visit page without incrementing hit counter

I frequently visit a certain page on the web to view the hit-counter, but my visit is counted every time and it's inflating the number of actual hits. Is there a way to visit the page without adding another hit to the hit counter? ...

Detecting a "unique" anonymous users

It is impossible to identify a user or request as unique since duping is trivial. However, there are a handful of methods that, combined, can hamper cheating attempts and give a user quasi-unique status. I know of the following: IP Address - store the IP address of each visitor in a database of some sort Can be faked Multiple comput...