counter

Is there an API that allows you to find out how many sites link to yours?

I know google has things like linkto:yourdomain.com and Alexa is around, but there's nothing that I can query and get the number of sites that link to me. Anyone know of such a thing, other than using Google or another search engine and scraping the HTML results? ...

CSS: Start numbering pages with 2 instead of 1

In CSS, with: @page { @top-right { content: "Page " counter(page) " of " counter(pages); } } I can have page numbers displayed at the top of every page when the page is printed. This works great. But now, how can I make it so the page number starts with 2 instead of 1? Can I do that by modifying the CSS rule above? ...

SharePoint 2007 Banner Hit Counter

In the SharePoint publishing site I will have some banners that are Web Parts and can have any HTML content inside them. I have requirement to count clicks on that banners. Banners will have some links to external sites. I am not sure where to store counters for individual banners. Custom List is the first thing that came to my mind but...

JavaScript Flip Counter

I would like to include a flip counter on my site, similar to what Apple was using for their 1 billion app countdown. Can anyone get their JavaScript to work standalone? If anyone can provide working code, that would be great. ...

[Java] getting strange results from framerate code

I'm trying to keep my game at 60fps, but I'm getting strange results from my code like "2-8000 fps" Why isn't this staying at 60? public static void main(String[] args) { joglplat m = new joglplat(); while(true){ long startTime = System.nanoTime() / 1000000; try { // 12345...

Click counter alternative

I'm currently using GET to update my click counts into a database and then I redirect the user to the link by using header('Location: '.$url); Is there any better alternative way to do this? Thanks. ...

Counter won't work when I move it to another server

I set up a hitcounter so that each time someone goes to my site, one of 7 different sidebars loads up. There is a file called counter.php that writes to a text file called hitcounter.txt. All the references to files seem to be relative but when I moved them to a new directory at my new host I got this error instead of a happy hit count...

(ASP.NET) How would you go about creating a real-time counter which tracks database changes?

Here is the issue. On a site I've recently taken over it tracks "miles" you ran in a day. So a user can log into the site, add that they ran 5 miles. This is then added to the database. At the end of the day, around 1am, a service runs which calculates all the miles, all the users ran in the day and outputs a text file to App_Data. ...

Static counter to be repeatedly incremented by NSTimer

Every 1/16 of a second, I have an NSTimer that fires, calling a method each time. I want to create a static integer that is increased by '1' each time the method is called, once the static integer is equal to '16', I wish to call another method and reset the static integer to '0'. Any insight is greatly appreciated. (Language is Obj-C)...

Ajax Odometer with Prototype?

I saw the cool AJAX odometer on http://odesk.com and thought it could be quite useful to have something similar for one of my sites. I came across this code that is similar (http://tools.uvumi.com/odometer.html), but it is for Mootools and I use Prototype on all of my sites. I'm wondering if something like this has been made to work wi...

Performance counters incrementing improperly?

Probably a rookie error, but i'm getting something strange. i'm trying to weave a .NET performance counter into an application. When i call the incrementBy(value) method on my avg performance counter it is changing the RawValue of my base counter by value as well. i checked the variable names and think everything is correct. Then when...

Events in counting vowels

I'm wondering what event/events is/are being used in counting the vowels while you're typing the sentence in the textbox. I'm not quite sure if it's something to do with "KeyPress" or "KeyUp". I would appreciate your help. ===== This is now where I'm stucked: private void textBox1_TextChanged(object sender, EventArgs e) { ...

How to Implement a Reliable Web Page Counter?

What's a good way to implement a Web Page counter? On the surface this is a simple problem, but it gets problematic when dealing with search engine crawlers and robots, multiple clicks by the same user, refresh clicks. Specifically what is a good way to ensure links aren't just 'clicked up' by user by repeatedly clicking? IP address? ...

How to program a vote up system?

I am in the very beginnings of teaching myself php. I am giving myself micro projects to push myself. Thus far I have a MYSQL database, created through a php form. One Column is for karma. I have the values of the database table display in an html table, and at the end of each row, I would like a click on a hyperlink, lets say a plus si...

need implement C# Counter

I want to make increment and decrement counter. There are two buttons called X and Y. If first press X and then press Y counter should increment. If first press Y and then press X counter should decrement. I am not familiar with c#. So can anyone help me please ?? :( ...

Click counter php mysql?

Hey, I have been looking for a simple way to track clicks on a link and store how many times the link has been clicked in a mysql database. Anyone have a solid approach on how to do this? Thanks. ...

Time counter with Javascript or PHP

Hello, I'm a PHP programmer...done some study on google and tried it, but didn't get the output i need Users will enter the time in the textbox provided...now i need to give them counter from the time they entered ? Example : If i enter 1:27:38 and click on submit then time should get decreased and i shud get alert when it reaches to...

Why does int count jump from 1 to 4 on entering a loop? C++

My "counter" is jumping from 1 to 4 when I enter my loop. Any ideas? Code and output below: static bool harvestLog() { ifstream myFile("LOGS/ex090716.log"); if (myFile.fail()) {cout << "Error opening file";return 1;} else { cout << "File opened... \n"; string line; string field; int cs_uri_stemLocation = 0; int csRefer...

Counting Bytes sent/received over HTTP

In Java, How could the bytes sent and received over an active HTTP connection be counted? I want to display some statistics like: Bytes Sent : xxxx Kb Bytes Received : xxxx Kb Duration : hh:mm ...

How to Reliably Track Human Page Views on my article Pages

I have searched online for this and came across an article that suggested I should use an image to track human page views because search engine and bots don't download images. It said I should put the image code in javascript like: document.write('code here'). The system I am developing heavily depends on accurate unique user visits the ...