Questions tagged [counter]

1 votes
0 replies
Execute PHP file from HTML; Visitor Counter
Here is a copy of the PHP code I am running. <?php $conn = new mysqli_connect("localhost", "root", "", "adn") or ("die"); $visitor...
asked 1 month ago
1 votes
2 replies
Reseting a counter of a protected/nested variable in JavaScript
My intention is to create a safe counter and reset it by calling a function. I tried this code: function ZeroCounter () { var c = 0 ; return fun...
asked 1 month ago
0 votes
0 replies
For loop to count and create a new dataframe with the counter results
I am trying to create a new dataframe with counter results from many dataframes(yearly data) I am able to do create a dataframe for the counte...
asked 1 month ago
-1 votes
3 replies
is incrementing a function argument a good way to update a “counter” using recursion?
I am practising with recursion and have been looking at the question: "Write a recursive program whose input is an array A and a number x. The p...
asked 1 month ago
0 votes
0 replies
How can I increment asynchronous a counter using pushbuttons?
I need to create a counter which count with a frequency of 1Hz and it has 3 asynchronous elements : incrementMinutes, incrementSeconds and Reset(...
asked 1 month ago
1 votes
1 replies
How can I stop the counter animation?
Hello I'm trying to start a counter animation when the class is in the viewport, but this continue make the counter animation each time that I sc...
0 votes
2 replies
How to display the serial number of the table rows in descending order in php?
I am looking way to sort the serial number of the table in descending order. I am using a here simple while loop, with a counter variable inside...
asked 1 month ago
0 votes
1 replies
Actionscript: How can I create a counter that registers a hitTestObject and shows the score on the main stage?
My game counts the number of hits to an object and brings the user either to a winning or losing page. How can my hitTestObject count the number...
1 votes
0 replies
How do I deal with counters to find the volume of 3D objects (Monte Carlo integration)?
I am trying to find the volume of a sphere using monte carlo integration (for a project which has specifically asked for this method). I have s...
0 votes
0 replies
Iterating and keeping track of count
I am trying to iterate through a bit of code with a delay and also keep count of the time it's run. I believe I have to use a while loop and a s...
asked 2 months ago
0 votes
1 replies
How to count PASS/FAIL results and print number of pass and fails
How can i count and print the number of FAIL and PASS tests in last column in my log file boolean globalRet = true; for (boolean anArrRet : arr...
asked 2 months ago
-1 votes
1 replies
How to get data Mysql group by with condition counter
Mysql group by counter (how many conditions) Hi, every one I want to; question_id 1 and answer 2 question_id 2 and answer 2 question_id 3...
asked 2 months ago
-1 votes
0 replies
Creating letter n-gram dictionary with frequencies
I want to create a function that creates a dictionary with character n-grams as keys, and frequencies as values - I can't figure out how. The inp...
0 votes
1 replies
Dynamic counter Hadoop
I need some help with Mapreduce jobs in Hadoop. I have the following problem. I have a large data set containing multiple documents + category of...
asked 2 months ago
1 votes
1 replies
Why does collections.Counter run faster than directly running its source code
I use collections.Counter to count the words in a certain string: s = """Lorem Ipsum is simply dummy text of the printing and typesetting indust...
asked 2 months ago
0 votes
1 replies
What's the underlying implementation for most_common method of Counter?
I found a pyi file which has the following def def most_common(self, n: Optional[int] = ...) -> List[Tuple[_T, int]]: ... How could this ha...
asked 2 months ago
0 votes
0 replies
TypeError: 'builtin_function_or_method' object is not subscriptable - Some results work and then throws error?
I am trying to write a code to pull all of the tags used on a given tumblr blog (just mine, not for wider use to avoid scraping API) and use Coun...
asked 2 months ago
0 votes
1 replies
Set up a variable with multiple IF statements linked to a FOR loop with a counter
I have 3 sheets. In the sheet "Manager", there are 7 dropdown lists for criteria: H5, H7, H9, H11, H13, H15, H17. Once the criteria are selected...
asked 2 months ago
-2 votes
1 replies
How to get counter when inputs, select etc. change in form? ---SOLVED---
var inpts = $('.map-form .val-input'); var radio = $('.map-form .radio-input'); var counter = $('.filtr-map-count'); $('.detect-cha...
asked 2 months ago
0 votes
2 replies
How to increment counter value inside an onClick event?
I'm quite new to Google App Maker and programming in general, I'm making an app where when a "+" button is clicked (onClick event) fields are add...
asked 3 months ago
0 votes
3 replies
Get a new value every n seconds
I have a web page where I display a quote. I pick one of the quotes at random. At the moment it does this every time the web page is loaded, I wo...
asked 2 months ago
1 votes
1 replies
php/html display automatic week counter starting from a specific data
Is there any coding (php / HTML or JS script) to display a week counter and start this counter from a specific date say i wanted to start this co...
asked 3 months ago
-1 votes
2 replies
Dynamic initialization of a dictionary value to zero in Python
I am assigning the dictionary keys on the fly after detecting what language a predicted string belongs to and I was wondering how to initialize i...
asked 3 months ago
0 votes
0 replies
How to display view count last 24 hours in Woocommerce product page
How to display view count last 24 hours in Woocommerce single product page? I found this code and it works. But how can I count only in the last...
asked 3 months ago
1 votes
0 replies
Update an outer variable in Javascript
I'm creating a project where my marker move according to the value of a dice. The following function is responsible for that action. var marke...
asked 3 months ago