Interesting questions
-
24
votes3
answers36150
viewsHow to use Mysql on Android
After some searches, I saw that the only database that Android can use is Sqlite, It is correct this information? Because I have an application that connects to an online database (Mysql) and would…
-
2
votes1
answer73
viewsDifficulty positioning div in CSS
I am making a layout with the user’s avatar logged in, my difficulty is in keeping this green circle accompany the photo, as follows in the image below: Using position: Absolute; It is as in the…
-
1
votes1
answer90
viewsI can’t do a javascript screen search
<html> <head> <meta charset="utf-8"> <title>P1-2017-RAD I</title> </head> <body> <form action="javascript:void(0);" method="POST"…
-
1
votes1
answer1258
viewsHow to fix the percentage on top of the chart using Chartjs?
I have the following chart: var chartData = [{"visitor": 39, "visit": 1}, {"visitor": 18, "visit": 2}, {"visitor": 9, "visit": 3}, {"visitor": 5, "visit": 4}, {"visitor": 6, "visit": 5}, {"visitor":…
-
2
votes1
answer78
viewsWhat is the alpha argument of the ltsReg function of the robustbase package?
I have a question about the use of the argument alpha of function ltsReg package robustbase. As I understand it, it is responsible for determining the size of the subsets that will be used to adjust…
-
12
votes1
answer1550
viewsWhy can’t you declare a variable within a case?
Why don’t you compile? #include <stdio.h> int main(void) { int valor = 0; scanf("%d", &valor); switch (valor) { case 0: int variavel = 1; printf("%d", variavel); break; default: int…
-
2
votes2
answers620
viewsPage with even post_type wordpress Slug
Buenas I have a wordpress post_type that calls products. I created an Archive-products.php and inside it I have the loop. Inside it I need to have, before the list an editable content, and for that…
-
1
votes1
answer80
viewsFlexbox Horizontal List
Good afternoon, everyone! I’m looking to line up a list ul so that their li stay left and last li stay right. I’m not able to do this, someone could help me. I could make it easier if I split this…
-
1
votes0
answers71
viewsDrawing in the middle of the screen with the android canvas
How to draw in the middle of the screen, in all the attempts I made I could just stretch the drawing and not move it to the center of the screen. public class Carta { private static int…
-
-1
votes1
answer56
viewsHow to update context value when going back to the React page?
I’m using the context to pass the data to the pages, but when I go back one page and change the value it has in the context, and then go forward to the other page, the page doesn’t update with the…
react-nativeasked 5 years, 10 months ago user2174398 1 -
2
votes0
answers48
viewsProblem with foreach, Aravel is not recognizing the model Indexes
Index Controller: <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Controllers\Controller; use View; use App\Indexes; use…
-
0
votes2
answers144
viewsEnter call Button in Google Chrome and Firefox
I need that when the user presses the enter key, do the button click event. I’m doing it this way, but it’s not working in Google Chrome or firefox: if (!IsPostBack) {…
-
7
votes1
answer85
viewsMechanisms for form validation
What are the pros and cons of validating forms with these features: HTML5? Javascript? Jquery? HTML5 + Javascript/Jquery? There is something to consider beyond these items?…
-
-1
votes1
answer76
viewsReturning the inverse of a recursive sequence of numbers in Python
Well, it follows my code that aims to find the inverse of a list in python through recursive def inverso(n, seq): if len(seq) == 0: return else: ultimo_valor = seq[n-1] print(ultimo_valor, end=' ')…
-
0
votes1
answer84
viewsCapture data from all select elements in HTML with Angular
I made a ngFor to list elements select HTML and I’m wanting to capture all the data selected by this select... I did it this way: app.component.html <form [formGroup]="secondFormGroup">…
-
11
votes3
answers12452
viewsHow to perform a function after two or more asynchronous events?
I have a jQuery script that starts two or more asynchronous operations at the same time, and would like to run a callback when all they have been completed. An example would be to start an animation…
-
0
votes1
answer1008
viewsError when inserting data accentuated
I am sending the data by URL to my webservice if I put the path by example web browser in Chrome: meuwebservice/inserirusu/João_da_Silva/fotógrafo and call a method to display shows so: Nome: João…
-
2
votes1
answer1043
viewsRead Data from a. csv file and pass line values to Tuple
The data in the.csv cities file is organized as follows: Lisbon,Madrid,600 Madrid, Paris,650 import csv with open('cidades.csv', 'r') as f: # Somente r para leitura do arquivo list1 =…
-
1
votes1
answer71
viewsTable header with Mysql query
doesn’t bring what I want, someone can tell me what I’m missing by looking at the code? <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />…
-
0
votes1
answer69
viewsSequence in Oracle SQL with strange behavior
I created an Oracle database with the following script: CREATE SEQUENCE pcn_integra_ser_nfe INCREMENT BY 1 START WITH 1 MINVALUE 1 MAXVALUE 9999999 NOCYCLE NOORDER CACHE 20 It is used in only one…