Hello, I am looking for a visitor counter that could record: Visitor Counter Online 1 Today 4 Yesterday 8 Week 4 Month 32 Year 32 Total 2637 Where can I find it?

Member Avatar
Member Avatar
+0 forum 3

With the advent of Python33 the module time has received a high resolution timer/counter. Here we use time.perf_counter() in a decorator to conveniently time two test functions.

Member Avatar
+3 forum 0

I'm trying to make a hit counter. I have it working but when I add it to my website, I get a web config. error... <%@ Page Title="Home Page" Language="VB" MasterPageFile="~/Site.Master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <%@ Import Namespace="System.IO" %> <script language="VB" runat="server"> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If Not Page.IsPostBack Then Dim nCount As Int32 = 0 nCount = GetCounterValue() lblHitCount.Text = nCount.ToString() End If End Sub Private Function GetCounterValue() As Int32 Dim ctrFile As StreamReader Dim ctrFileW As FileStream Dim sw As StreamWriter Dim strPath As String = Server.MapPath("indexcount.txt") Dim strCounterContents As …

Member Avatar
Member Avatar
+0 forum 4

i want to add a login attepmt counter here, that if inccorect password count==3 it will be redirected to the forgotpassword.php need some help thankyou in advance (: /* * checks if user with email "$username" and password "$password" exists * */ public function confirmUserPass($username, $password){ //$username = mysql_real_escape_string($username); /* Verify that user is in database */ $q = "SELECT password FROM users WHERE email = '$username'"; $results = mysqli_query($this->link,$q); if(!$results || (mysqli_num_rows($results) < 1)){ mysqli_free_result($results); return -1; //Indicates username failure } $dbarray = mysqli_fetch_array($results,MYSQLI_ASSOC); $dbarray['password'] = stripslashes($dbarray['password']); $password = stripslashes($password); mysqli_free_result($results); if($password == $dbarray['password']){ return 1; //Success, Username and …

Member Avatar
Member Avatar
+0 forum 2

hey all again i have a little issue it may be a little stupid but i'm not able to figure it out what i'm trying to do is to make a counter ,, i'm trying to get a number from database and increment 1 to it and adding it one more time to the table but it seem that i'm not able to do it and here what i came to right now string CounterSql = "SELECT counter from counters where ctrtype = 'station'"; OleDbCommand CBCmd = new OleDbCommand(CounterSql, AMSCONN); AMSCONN.Open(); OleDbDataReader CBReader = CBCmd.ExecuteReader(); DataTable CounterDT = new DataTable(); …

Member Avatar
Member Avatar
+0 forum 1

Hi, i've been asked to create a visit counter using checkboxes and a submit button. When a form (available form - code below) is submitted (pressed visit button) a script should work out which properties have been selected (using checkboxes) by the user and then add one to the Visits field of the selected property. I have created a text file where it will update and record the visit field of a property once it has been selected by the user. code for available.form <html> <body> <h3> Select the Property Price </h3> <FORM ACTION="available.php" METHOD="POST"> </select> Enter maximum price: <input …

Member Avatar
Member Avatar
+0 forum 5

Hello, my website is created almost intirely in php, its dynamic and we have everything working under mysql database. It has printable cuppons for free, the coupons are inside a form, everything works perfectly. Now im trying to find a (php preferably) script that will count how many times that "print coupon" button has been clicked so i know how much of them have been printed. it can be by inserting it (the amount of clicks) in a database table. i believe it is called a Button Hit counter, but since it already has an action, 'cause it prints, i …

Member Avatar
Member Avatar
+0 forum 3

Hi all, I am looking for a number counter that increases by 1 every second and goes to around 10 million. I would also like to be able to manually start the counter from a specific number e.g. 233523. Can anyone please help, thanks.

Member Avatar
Member Avatar
+0 forum 2

Having trouble getting pyhon to repeat things for me. What I wanted to test was python's random.sample. So say I have a list myList = range(1, 15) I can for a single time do this import random >>> myList = range(1,15) >>> random.sample(myList, 3) [10, 6, 11] >>> I would like to be able to output [10, 6, 11] [1, 9, 3] [8, 7, 2] [1, 8, 11] etc up to a statistic large range. Then count the occurrence of each item at its position in the list. But I am looking at counter example from [Python Collections](http://docs.python.org/2/library/collections.html#counter-objects) >>> cnt …

Member Avatar
Member Avatar
+0 forum 2

I am trying to generate a program using the builtin Random and generate an algorithm that determines whether the number is odd or even. I need to write a program that generates 100 random numbers, determine if its even or odd and finally count the number of even and odd. I am new to Python. This is what I have thus far, but nothin is working. Could someone give me a push in the right direction?? Thank you so much. import random def main(): # explain program intro() # get a random number number = random.randint(1,100) # generate Boonlean variables …

Member Avatar
Member Avatar
+0 forum 8

I was thinking if it would be possible to create a JFrame, and make the title of it to change, such as make the title work as a counter that will display some text like: The window was opened for 1 second. The window was opened for 2 second. The window was opened for 3 second. The window was opened for 4 second. The window was opened for 5 second. The window was opened for 6 second. The window was opened for 7 second. Here is the code I have so far: import javax.swing.JFrame; class WindowFrame { public static void …

Member Avatar
Member Avatar
+0 forum 5

A simple way to find duplicate words in a text. In this case the text is preprocessed to eliminate punctuation marks and set all words to lower case.

Member Avatar
Member Avatar
+2 forum 1

I need help writing a program in c++ where i have to write 3 different programs, a webcounter.cpp,webcounter.h, and test_prgm.cpp.So then i have to creat a makefile to compile them together, and the result of the program is "When I create the the counter, I would like to be able to set the value of the counter. Second, I need to be able to tell it "hit" and have it increment. Finally, I should be able to "reset" the counter, and "get" the current number of hits from it." it has to be a header file, and webcounter.cpp has my …

Member Avatar
Member Avatar
+0 forum 10

This short snippet shows you how to preprocess a text to remove punctuation marks, then do a word frequency count using Counter() from the Python module collections. Finally, two sorts are applied to display words with matching frequency in alphabetical order.

Member Avatar
+2 forum 0

Hello Community, For my new service I'm making a way for users to make the're tracking links short. The URL is http://hitcounter.co but I can't think of any short versions of it because all the ones I've chosen have been taken such as http://hilnk.co, http://hlnk.co and http://hit.co. So I was wondering if you could help me think of a short URL.

Member Avatar
Member Avatar
+0 forum 4

am trying to show assigned variable for failed submission on a smarty form. array assigned as $arr = array($_POST[number]); $smarty->assign(number,$arr); and on tpl form, i added as below. {foreach from=$number item=no} <input name="number[]" type="text" value="{$no[{counter start=1}]}" /> {/foreach} am starting the counter from 1 because this is for dynamically added from jquery, hence am skipping the {$no[0]} from the above input. But when form gets failed, the counter stays at 1 and does not increase. How can i increase the number counter to get the exact input array value. And I also tried, <input name="number[]" type="text" value="{foreach $smarty.request.no as $no}{$no}{/foreach}" …

Member Avatar
Member Avatar
+0 forum 2

Hi, I want to learn window count of one process, who have any idea about this?

Member Avatar
Member Avatar
+0 forum 1

Hi everyone. I would like to implement a counter using ajax that will act like this: The script will send a XMLHttpRequest every x seconds which will return a value from a mysql database. Using the current and previous value retrieved from the server, the script will increase the counter, in order to reach the new value in the x second interval between the server requests. The value will be decimal (two decimal digits are enough), it will always icrease (until it resets) and my main concern is to make it increase with variable speed, to give a more interesting …

Member Avatar
Member Avatar
+0 forum 2

Hello, I am working on making myself a digital clock (as a fun little project) and I want to have two buttons, one to increase a value (like the hour) and one to decrease, mainly because I am tired of the clocks where you have to button mash the 'increase' button to bring the hour back down. As such I want to construct an up-down counter that would increment on the rising edge of one input and decrement on the rising edge of another. I have one that increments on the rising edge of the clock if the extra input …

Member Avatar
+0 forum 0

hello there thanks for help mke in many questions, I've learened a lot from this great community I have question about creating visitor counter,daily,monthly,yearly I've created a counter depending on IP address but all my costomer are in the same IP so this counter will not be accurate, So I used session ID as an Identifire, so every visitor enter the site a session will created and saved with time into database, and the total of these sessions will be the counter for visitors * I want to know how to seperate daily visitor from monthly ? * I've created …

Member Avatar
Member Avatar
+0 forum 4

I have seen a few different ways to solve this problem, but no solution has worked for me. I am logging into a database and incrementing a hit counter when someone goes to the page. I have two files, hitcounter.php and count visits.php Count visits is used by the visitor and is needed to instantiate the hitcounter.php file. The hit counter should open the database and store the hits in a private variable. I have logged in to the database, incremented everything. I just dont know how to get it to count correctly and if I a using a private …

Member Avatar
Member Avatar
+0 forum 8

Hi all web devlper and java devlper how you im really enjoy this amazing group i have one quesstion i need a insvisble counter they show all the think on my site just like page views country keyword and most popular pages

Member Avatar
Member Avatar
+0 forum 3

Hello there , currently am working on download site that contain items , I need to place **download hits** for every file in site, I used the old way that open popup php page and increase the counter then store the result in database, its not cool to do this, so I want to make this works with **ajax** , the user just click download and start downloading without any popups, **what should I do** ? Example with code will be helpful, Thanks.

Member Avatar
Member Avatar
+0 forum 6

Hello everyone In my app i'm using the counter and timer, But im stuck with resetting the counter My code is: If Timer2.Enabled = True Then counter = counter + 1 Label1.Text = counter If Label1.Text = "180" Then Timer2.Enabled = false Timer3.Enabled = true End If End If End Sub If Timer3.Enabled = true then counter = counter + 1 Label2.Text = counter If Label1.Text = "80" Then Timer3.Enabled = False end if But the problem is: When the second counter starts, It does continue on the first counter after it's stops which is 180, But what i was …

Member Avatar
Member Avatar
+0 forum 4

this code is working for a counter of 6 bit and i need a counter of 48 bit ... if u have time kindly try it..... i try alot but not succeed #include<stdio.h> #include<stdlib.h> #include<float.h> #include<math.h> #include <time.h> #include <cstdlib> #include <iostream> #include<stdint.h> #include<conio.h> int main() { int a[64][6]; int i,j,k,d,c,n; for(k=0;k<64;k++) //6 digit binary so 2^6 =64 is no: of combinations { for(j=0;j<6;j++) { a[k][j]=0; } } for(i=0;i<64;i++) { n=i; for(j=5;j>=0;j--) { while(n!=0) { a[i][j]=n%2; j--; n=n/2; } } } for(k=0;k<64;k++) { for(j=0;j<6;j++) { printf("%d",a[k][j]); } printf(" .................%d\n",k); } //printf("\n **** KHATAM SHo ****\n"); getch(); return 0; } help …

Member Avatar
Member Avatar
+0 forum 4

Hello, I have a problem about counting consequtive characters, here my code char query[] = "tttthe oneZZZZZ trully loveeee"; void cntfreq(char A[]) { int j; int k=0; j = 1; while (A[j] != '\0') { if (A[j-1] == A[j]) { ++k; cout<<k<<"\t"<<A[j]<<endl; } else k = 0; ++j; } } Suppose that also my char is the following as an input: char query[] = "tttthe oneZZZZZ trully loveeee"; I success in counting the consequtive characters, but it counts minus 1, for example there are 4 consecutive char 't' but it says 3 't' or 5 'Z' character, but it outputs …

Member Avatar
Member Avatar
+0 forum 1

/* Create a program that uses a count controlled loop to read the patient's "readings" from a file and adds them up individually, calculates the average for each person (ID), and displays the two totals. Input - (numPatients-) 20 idNum numBP bpReading (1, 2, 3, 4) 1234 - 4 - 150 156 120 130 5678 - 3 - 200 198 187 9101 - 4 - 157 152 166 160 1121 - 4 - 140 140 142 137 1131 - 1 - 158 1141 - 4 - 210 220 206 211 1151 - 3 - 205 206 207 1161 - 2 …

Member Avatar
Member Avatar
+0 forum 4

I started using Python a few weeks ago, something finally clicked and I started writing tools for my personal use. I started writing something with a GUI using GTK and the code lines started multiplying rapidly, so I thought to myself "Am I commenting my source to death? How many comments do I have?". Since I'm new to the language I wasn't really sure if I was going about everything the right way. At the time I had never heard of pycount or CLOC, I just found out about those two today after a google search. I think the authors …

Member Avatar
Member Avatar
+2 forum 9

Hey everyone, I am making a nqueen program that’ll read me an array of the position of the queen. I developed to different methods to do this. One is the recursion way and the other is the iteration method . My problem lies in the recursion. I am trying to count and display the number of solutions that the method finds, but I simply can’t figure out how to do that because the count is inside a loop and once I make a recursive call the method starts the count all over again. PLEASE HELP!! package queenproblem; import java.util.Scanner; import …

Member Avatar
Member Avatar
+0 forum 2

Hey guys, I have the assignment of writing the Towers of Hanoi program then testing it. I already got help measuring the time of the program, but that is not what my professor wanted he wanted to count the iterations. I can't get it down, my program will run but it will not print out correctly. This is the code I was using. [CODE] import TerminalIO.KeyboardReader; public class towers { public static void main(String[] args) { KeyboardReader reader = new KeyboardReader(); int numberofRings = reader.readInt("Enter number of Rings: "); move (numberofRings, 1, 3, 2); } static void move(int n, int …

Member Avatar
Member Avatar
+0 forum 4

The End.