Interesting questions
-
3
votes1
answer1697
viewsForm Multiple Wizard Steps
I’m implementing a step-by-step form (Wizard) and I’m using the CSS of the gathering. Basically I use the Model Bootstrap so that the user cannot log into your account without first completing…
-
0
votes2
answers271
viewsAllow certain characters in an input text
I have the following expression:: (/[^\d]/g, '') I’m using this expression in a Javascript function so that a input type="text" accept only numbers. The problem is that I now need this function to…
-
0
votes1
answer29
viewsAdd a fixed image sequence in PHP
I own this code: <table class"is-bordered is-striped is-narrow is-hoverable is-fullwidth"> <tr align="center" id="title"> <td>POSIÇÃO</td> <td>NOME</td>…
-
11
votes2
answers14796
viewsTurn Byte into String
Problem: I’m getting byte and when I try to turn into String is making a mistake. ... byte[] msgBytes = ch.decode(hex, ch.key()); // retorna byte String msgDecode = msgBytes.toString(); // tentando…
-
-2
votes2
answers114
viewsMost efficient algorithm to find indices of the 2 elements of a list whose sum is equal to a certain value
The Challenge is simple, find two numbers from a given list that if summed result in a specific number and return the index of those numbers. That I solved, the problem is that in addition the…
-
0
votes2
answers80
viewsDoubt about JS function
I have the myFunction function that calculates the product of two numbers and displays them on the screen. I would like to shift this function to the Listen function when the value of P1=10. The way…
-
0
votes1
answer497
viewsDatabase structure for poll system
I have a project to develop an online polling system. I am concerned about how I will get the answers to the questions to show in a graph. Each graph is each question to be analyzed. Let’s see, if I…
-
2
votes1
answer81
viewsHow do I print the name of an instance in Python?
class Panzer(): def __init__(self): self.life = 100 self.blin = 100 drogo = Panzer() cabal = Panzer() sirius = Panzer() group = [drogo, cabal, sirius] for i in group: print() What should I put on…
-
0
votes1
answer75
viewsTurn 2 Select Simple into 1
I have the following table PLAYLIST where I have the columns VIDEO and STATUS: VIDEO | STATUS The column status varies between 1 and 0 being 1 for new videos and 0 for videos that have already been…
-
1
votes1
answer449
viewsCurl login page in ASP does not authenticate
I’ve searched everywhere possible on the web, but so far I can’t understand what’s going wrong with my code. The thing is, I’m trying to access the student portal of my college, using Curl, my…
-
-1
votes1
answer95
viewsLaravel - [DB::Connection(...)->select(...)] Works on one Job, but does not work on another!
Hello, I have a problem that seems impossible to solve. In my Laravel 6.X application, I have a report that performs database extracts for Excel files, this report has two extraction versions: •…
-
0
votes1
answer213
viewsI’m trying to return the name but can only return the ID
I’ve been researching for days and I couldn’t find a solution. The scenario and the following: I have an employee registration screen and an employee editing screen with two classes a pessoa where I…
-
4
votes1
answer94
viewsWhy is the exit 16?
#include <iostream> int main() { int x, y = 3; x = (++y) + (++y) + (++y); std::cout << "y = " << y << std::endl; setlocale(LC_ALL, ""); std::cout << "O valor de x é "…
c++asked 8 years ago João Victor 43 -
0
votes1
answer589
viewsObject Object, how to not issue this alert
Well, I have pages that send asynchronous requests, but when interrupted they send an alert [Object Object]. This gets in the way a little, because it appears while the server is pointing to the…
-
0
votes1
answer89
viewsJSF editable datatable shows no object attributes
I need to do an activity with a JSF list where it is possible to add, edit and delete registered users. I had managed to make the records of new people, but when I started using cellEdit to make the…
-
3
votes3
answers183
viewsRemove repeated elements using two lists
How would you remove without using collections and while, only with for. I wanted a search structure element by element, because I already know how to remove this way. So I want to use at least two…
-
1
votes0
answers40
viewsHow to convert PHP object array to JSON
I am trying to learn Angularjs and today I have a PHP5 application, but I am not using Restful. For testing purposes I want to run my query and fill a table with the result using Angularjs. My…
-
1
votes1
answer111
viewsJavascript equivalent to PHP list()
Is there any Javascript function equivalent to list() of PHP? Suppose this JSON: { "ALERTA":[ { "TITULO":"Erro!", "MENSAGEM":"Seu nome parece estar incorreto" }, { "TITULO":"Erro!", "MENSAGEM":"Seu…
-
1
votes1
answer72
viewsHow does access to struct by pointer pointer and by a copy of the pointer work?
In push1() I passed by parameter the memory address, on push2() I passed a copy of the pointer, but I didn’t understand the difference how each one accesses the struct? struct Node { int data;…
-
3
votes2
answers933
viewscodeigniter error 3: Undefined variable: alert
I’m making a recording in the bank received from a form, it’s recording, only I want a message to appear after the recording, which was successfully received. But it’s giving the error below. I’ve…