Most voted "accountant" questions
60 questions
Sort by count of
-
5
votes2
answers19521
viewsVBA - Counting the number of filled cells in the row
Hey there, guys. I’m trying to create a code responsible for reading the number of filled cells in the lines.. I tried this way but I was unsuccessful. For b = 1 To rMaior contador =…
-
4
votes0
answers462
viewsDjango Session timer Countdown
I have it on my login screen: SESSION_COOKIE_AGE = 1200 # 20 minutos and would like to show the remaining time on my template. Someone knows a good middleware or package for Django that adds a time…
-
4
votes1
answer630
viewsHow to use a counter inside a Hashmap?
It is possible to do this? public static void main(String[] args) { Scanner in = new Scanner (System.in); Map <String,Integer> mapa = new HashMap <String,Integer>(); mapa.put("45 - Jose"…
-
3
votes1
answer1598
viewsCustom Like and Share Button Counter for Social Networks Twitter and Facebook
How to get the total number of likes and shares of a URL, on platforms Twitter and Facebook? There are several websites where you can see buttons share/partilhar/compartilhar custom Facebook and…
-
3
votes1
answer1467
viewsUsing recursion to count the number of times a number appears in a list
I created a recursive algorithm to count the number of times a certain number n appears in a list ls. It seemed to work if the list ls is quite small (between 10 and 100), but if it’s big, like…
-
3
votes1
answer64
viewsWould an alphabetical sequence counter be possible?
I’m making a code in Pascal where one of my arrays has alphabet values (from A to Z) for a personal project of the type Questions and Answers/ Meaning A to Z: aux[1]:= 'a'; aux[2]:= 'b'; aux[3]:=…
-
3
votes2
answers11453
viewsCount vowels and know how many there are
Good! I wanted to create a function that would allow me to say if a word or phrase has vowels, and if so, how many vowels have, but I have 2 problems in my code that I don’t understand: def…
-
3
votes4
answers744
viewsHow to get the highest and lowest number among 15 typed numbers? C++
An algorithm that reads 15 real numbers, and writes the largest and the smallest among the numbers read. I’m not getting to do the part of writing the smallest and largest of the numbers typed.…
-
3
votes2
answers141
viewsProblem in Python3
Hello, I’m (very) new to Python and would like to know what’s wrong with my simple code (to learn Python): eleitores = (int(input('Digite o total de eleitores: '))) c = 0 cand_a = 0 cand_b = 0…
-
3
votes2
answers302
viewsCounter reset every time reset
I have a contact day, hour, minute and second, from there I program for example: in 2 days (regressive), I would like when it zeroes start counting again, type 2 in 2 days, or 1 in 1, not to need…
-
2
votes1
answer913
viewsInfinite counting of ordinal numbers and exposing in HTML document
What I want to know is how I can make a rising counter in pure Javascript 0 , 1 , 2 , ... I want something automatic, infinite without needing an arrow an integer or negative number Counting can…
-
2
votes1
answer113
viewsQuery execution after a few seconds
I have a script that records all the views of the pages of my site that I downloaded, and it’s working very well. Only now some problems have arisen in what it comes to GOOGLE visitation, and has "a…
-
2
votes1
answer447
viewsHow to calculate cumulative time in days (Count-up) in php?
Guys, all right? I’m new to the forum. I searched all over the place and couldn’t find a solution to what I need. The concept is simple: What I need to develop is basically a cumulative day counter…
-
1
votes2
answers659
viewsAdd thousandths to jquery counter
I have a Javascript code that makes a counter Days / Hours / Minutes / Seconds . I just need him to count the thousandths, but I have little knowledge in javascript and I don’t know how to increase…
-
1
votes1
answer828
viewsCounter variable PHP
Good staff, I have a form in a file PHP to fill a leaderboard. And wanted my form asks itself something like, "Athlete’s number in the ___" position, where the number of the position in the __. For…
-
1
votes2
answers621
viewsHow to pick up and count images with php?
How can I count and take, in php, the image of each of these elements of the code below? I CANNOT use an input file 'Multiple', as it will not only be these lines, as below, it will be something…
-
1
votes1
answer665
viewsHow to add counter to every if of my simple code
#include <stdio.h> #include <stdlib.h> int main() { float x,y; char k; do{ printf("Este Programa indica o quadrante no plano cartesiano\n"); printf("Entre com o valor de x:");…
-
1
votes2
answers12804
viewsCounter in python
Well I’m doing a screenshot program but I want it to replace in the file name when saving, the characters "XX" by the print number. Ex: Screenshotxx.jpg in "XX" I want to put the print number ex:…
-
1
votes1
answer38
viewsPlace an iterator in a table in a .pdf.erb file
I have a table where there is a list of people wanted to put a counter to stand a number next to each item on the list: kind of: 1-Maria. Segue arquivo financial.pdf.erb``<tbody> <%…
-
1
votes2
answers285
viewsWhere to use accumulators in a unique peer-review algorithm?
Where should I fit the accumulators of this code I have written for now? #include <stdio.h> int main() { int N; int somapar; int somaimpar; do{ printf("\n Digite um número qualquer: ");…
-
1
votes1
answer26
viewsscript only in visible tags
I want the script to count only tags <li> which are visible, but the code below counts even with display:none. Is there anything that can do that? I have the following HTML: $( ".rodapeUlCat"…
-
1
votes1
answer133
viewsRandom ads with view counter
I’m with the following script to put random ads on the site, besides simple and easy also works really well and fast with various ads. The problem is this: How many times each ad was chosen by this…
-
1
votes1
answer143
viewsHow do I add decimals to a counter?
I need a regressive counter but as my acquaintances are still more timid in js, in that code I don’t know how to add "0" in the fields hour, minutes and seconds. As it is returns me only full…
-
1
votes1
answer507
viewsCount arrays within PHP array
Good folks, I have the following array…
-
1
votes2
answers150
viewshow to select items in while counter, in php
I created an admin page where I register the book data in the database. I made this html where this data will be shown. the matrix will create this block "cabtitulo" with all the books registered on…
-
1
votes0
answers37
viewsCounter Visits Anti Bot Sharing Facebook
I created a counter of visits, but, we need that there is no count through the visits for reading the bots, mainly of facebook. This code is called via Ajax, after the user is on the page by 5…
-
1
votes2
answers58
viewsProblem using counter variable within Xmlhttp/AJAX request
When I run the following function I always get 0 as a result. I’d like to know why and if I’m doing something wrong. The function cadastro_socios_xlsx receives an object and registers each instance…
-
0
votes0
answers49
viewsHow do I insert a social counter into my website?
I would like to insert a social counter on my website, however I don’t want anything from outside services (use iframes for example), such as Shareholic. I want something more internal, via API or…
-
0
votes3
answers244
viewsNumerical counter
I am making a control page for entry and exit of company equipment. I’m using Boostrap as a framework, you could let me know how I do a counter to manage the OS number. Or some help link on the…
-
0
votes1
answer295
viewsHow can I create a form that has a counter and store the information in bank
I’d like some help. I’m trying to create a page that calculates how much time a person spends on some tasks that will be available in a form, then the person selects the task and click on start…
-
0
votes1
answer244
viewsCounting Numbers using Array in C
How to count integers using a C array in this model: Input > two strings with "integers" ex: 8 15 Output > A string with range numbers, inclusive: ex: 8 9 10 11 12 13 14 15. Probably a basic…
-
0
votes1
answer40
viewsHow to insert a marker that grows numerically into a dataframe in R?
I have a dataframe with a column and a certain number of rows that varies. What I’m working on is 17. On each line there is a different expression, more or less similar to "ID 123456, color = blue".…
-
0
votes1
answer288
viewsReset the counter every time you change line
I have the following problem: I have two counters within my code, but I want every time I change to the next line the countLinha1 (second counter) is zeroed and starts counting again, remembering…
-
0
votes1
answer424
viewsORACLE/PLSQL auto increment
Nome Idade ID João 5 Lucas 5 João 2 Lucas 1 I would like to use a cursor to sort by names and by age and the ID field to be populated according to the sequence, for example: Nome Idade ID João 2 1…
-
0
votes1
answer693
viewsCountdown of days to a future event
A system that registers resumes, the resume is active for months after the registration date, which in my table is the variable $row_curriculos['created']; I managed to create php that says the date…
-
0
votes2
answers492
viewsString counter in Arraylist
I need the program to return the amount of times each String repeated itself within the ArrayList, but I could not think of a way in which my counter is reused for each item, because as it shows…
-
0
votes4
answers4522
viewsCount number of records in a Mysql table with PHP?
Guys, I have a database with a table called "users", and I would like to know how I do, through PHP, count how many records there are in this table, and then give an echo to show this amount on the…
-
0
votes1
answer212
viewsHow to invoke countdown every click on the button?
I want to develop something simple, but it’s making me frustrated. I will try to express myself in the best possible way. To simplify things around here, I’m only bringing as an example a randomized…
-
0
votes1
answer59
viewsCounter with float number
I’m new to C programming. My problem is that I’m not able to add float numbers with an i counter, which would be integer, which is the best solution? #include <stdio.h>…
-
0
votes1
answer14186
viewsCounter javascript/html
I need to make an application in javascript/jquery/html that counts the user’s clicks on the button and when the counter reaches 10 lock the button and displays an Alert, I don’t know why it’s not…
-
0
votes4
answers410
viewsJS countdown - How to insert a "zero" in front of numbers smaller than 9?
I found a very simple and functional script to count down, but it has a problem; when the counter reaches 9, it no longer has two characters, something that ends up ruining the alignment I had to do…
-
0
votes1
answer115
viewsLimit registration permission system
In my course system, the instructor has to stipulate the number of students who can enroll in each class and the student will only be able to enroll if the number of students enrolled is lower than…
-
0
votes1
answer169
viewsNumeric Counter
I must create a program that commands a hardware in which I have connected on 3 different ports of the Arduino a circuit containing 3 Leds. The program must ascend these leds in binary order. I have…
-
0
votes1
answer119
viewsHow to place a countdown in more than one post on the page?
Good morning! I have the following problem, I have the view below that works as a schedule, within it I have some publications. I can get to each of the posts and get the amount in minutes left to…
-
0
votes1
answer213
viewspython Count of different words with only one counter?
I have this code: palavras = dataClean.split() count = 1 for palavra, frequencia in palavras: aleatorio = random.uniform(0.0, 1.0) if aleatorio < 0.5: count += 1 contProb[palavra] = count count =…
-
0
votes2
answers348
viewsUsing radio input and doing real-time operations with javascript
About teaching, I want the beginner class to cost 20 per lesson and the advanced 40, differentiating using radio buton, and the amount of class with input type range, but I don’t know much about js…
-
0
votes3
answers1107
viewsAdd +1 every time you click the button?
Hello! My question is this: I would like that each time you click on the button, add one more to my badge, here is the code: HTML: <button id="buttonAdd"type="button"></button> HTML…
accountantasked 5 years, 3 months ago WesLipe 57 -
0
votes3
answers95
viewsIf counter in a text file
Guys I’m trying to make a program that counts the number of ifs in any text, but for some reason it doesn’t count all, if you can help me thank you #include <stdio.h> #include <stdlib.h>…
-
0
votes1
answer52
viewsHow to Count Integers Repeated Every 5 Values in an OR Vector to Each Row of a Table (Two-Dimensional Matrix, Example: matrix[3][5] ) C++
I have a vector that only has integers 1 and 2 randomly allocated. Example: int vetor[15] = {1,1,1,2,2,1,1,2,2,2,1,1,1,2,1}; How the vector would be printed: 1 1 1 2 2 1 1 2 2 2 1 1 1 2 1 I have…
-
0
votes2
answers21
viewsHow to use a class selector instead of the id "clock" for the counter to work in multiple instances (Divs)?
getElementsByClassName() did not work. document.addEventListener('DOMContentLoaded', timerOffer); function timerOffer() { // Set the date we're counting down to var countDownDate = new Date("12 31,…