Interesting questions
-
-2
votes1
answer51
viewsIntermittent CSS icons when reloading page
I am having problems loading icons, but it is rare and difficult to reproduce the problem, as it occurs from time to time in the update with F5. Only occurs in bootstrap css icons or any css font…
-
2
votes1
answer508
viewsUpdate console without using system("cls") on Windows
I am creating a text game, where will have an initial menu, follow the code I already have: #include <iostream> #include <Windows.h> using namespace std; void setTamanhoConsole(int x,…
-
1
votes1
answer351
viewsjs function does not run on Chrome, due to window.Event
I read something about srcElement and saw that when I do window.event.srcElement, this approach works only on IE. Well, I don’t have enough allowances to discuss it. What’s going on is that a…
javascriptasked 9 years, 9 months ago pnet 14,727 -
2
votes1
answer364
viewsHow to change the default name of an eloquent column
I am on a project that is in production, and by default when we use a foreign key in eloquent we follow the following "user_id" rule for example to store user id. Only at the bank I’m working they…
-
0
votes1
answer44
viewsBring data from range
I would like to bring even those where there was value in the consultation For example; table dice id | valor | data 1 | 5 | 01/10/2018 2 | 6 | 03/10/2018 3 | 7 | 04/10/2018 5 | 8 | 05/10/2018 I’d…
-
4
votes1
answer107
viewsDebug Java in Eclipse, excluding classes/packages
My application uses JSF/Hibernate, and a number of other add-ons (jar). When I have to thresh, a page, he stops at breakpoint and after a few Steps (debug) it falls inside the jar of the JSF. You…
-
1
votes1
answer78
viewsHow to replace lost data frame values with the average of each column in R?
I have this table: tabela<-data.frame(v1 = c(1,NA,3,5,4), v2 =c(NA,NA,1,2,4), v3 = c(6,5,4,7,NA)) I need the lost values of each column to receive the average values of that column. How to do…
-
0
votes0
answers24
viewsMaterialdatepicker returning wrong value android studio
I’m using Materialdatepicker in android studio so the user can choose the date of birth, after selecting the date, the value returned is a long with the timestamp of the selected date (milliseconds…
-
-3
votes1
answer80
viewsDoubt with Bubble Sort
package AlgoritmosII; import javax.swing.*; public class Exercicio //BubbleSort { public static void main(String args[]) { int troca, fim, i, aux, k; int tamanho =…
-
1
votes2
answers1911
viewsCreate Trigger to change record only when modifying a field
I have a SQL Server registration table, I have a column that shows the status of this registration ('A','I','S','C'). I created a field with name Update_data, that you will receive a datatime every…
-
1
votes0
answers27
viewsHow to create a user in Asp.Net Identity by setting the Id I want?
When I set the Identityuser Id, for example, to 1000, when saving with Createuser the ID is 0. Observation 1: Table id aspnetusers is not as AUTO_INCREMENT. Observation 2: I changed the Identity…
-
0
votes1
answer601
viewsHow to save a json object to mongodb, which is the answer to an API post
I need to save a certain field,from a json object,which comes from the response of an API I called. Save some fields of this response json object,in some fields of my colletion/model on Mongodb also…
-
0
votes1
answer1927
viewsHow to post with Request Payload
I have the following code: $url = 'https://www.habbo.com.br'; $email = '[email protected]'; $pass = '123456'; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 1);…
phpasked 8 years, 6 months ago Gustavo Dias 460 -
0
votes1
answer585
viewsError returning Stringstr
I have the following function in php it returns me a page string so that I can do if and Else with the returned information, but there is an error: Parse error: syntax error, Unexpected '=' in…
-
1
votes1
answer44
viewsRankin in in Mysql
I’m trying to generate a ranking of absences for HR. The record of absences is made in a separate table of the Employee’s registration. I need to bring the list of active employees and the amount of…
-
-3
votes3
answers8281
viewsHow to delete structure and data from mysql database
How to perform a complete deletion of a database structure mysql? I need to delete all the entidades, tabelas, procedures, I want to keep only the name of the database, without any table or data or…
-
3
votes1
answer93
viewsHow to convert number into billions for a smaller comparison chain?
Imagine you have an exercise in the following aspect, I need to take from an array with random integers, the largest number that is between the intervals. For example, I have an array: array(2, 8,…
-
1
votes1
answer292
viewsError passing a method to another method. C++
I am a beginner in programming and decides to venture into a project with some friends, in it I need the program descending which the order of the routine based on a factor, I am passing to a…
c++asked 7 years, 5 months ago Guilherme Stabach Salustiano 11 -
11
votes4
answers25519
viewsThe input character string was not in an incorrect format. Operators
Hello, I’m beginner in programming and I’m trying to show the user how much RAM is being consumed at the moment, I’m using the following code that is not pointing nor an error when compiling only…
-
2
votes2
answers127
viewsRegular expression to create a line of a cock game (tic-tac-toe)
I’m trying to use a Pattern to find a certain line in a file, but it’s not working. This is my Pattern: row = re.compile(r"(|\s[OX\s]\s{3}|)") With this I want to find basically this Pattern: | | O…