Interesting questions
-
1
votes0
answers68
viewsProblem with Angular and Firebase
I’m trying to create an application with Angular and Firebase, followed a guide I found on the internet, but the data is not being stored in the database! Follows the code of the component…
-
34
votes1
answer36730
viewsJavascript: Differences between import and require
I know that import and require are used in Javascript to import functions or objects from third parties. Code snippets like: import Library from 'some-library'; or const Library =…
-
1
votes1
answer20
viewsPassing attributes to viewport via CSS
What are the attribute models that we can pass to the viewport through CSS? Taking an example of the attribute content meta tag <viewport></viewport>: user-scalable=no, how I would…
-
1
votes2
answers559
viewsHow to handle an empty string?
I need to convert a string taken from a text file and fill in a person class where, each attribute of the class is separated by "," in the text file. Attributes are only: height, weight, age. In the…
-
1
votes1
answer120
viewsNumpy complex dType, with fixed array of variables, using fromfile function to import binary file
I am reading a complex binary file, where there is a fixed structure of 'array' of values, someone could help? The structure is: 8 bytes = Long Current Time (unixtime stamp) 8 bytes = Long Current…
-
-1
votes1
answer137
viewsValidationerror: companies validation failed: county: Path `county` is required
I can’t see the mistake that keeps me from POST (store the data in the database). Also, in the form when selecting a country he should only take his cities, instead he calls all cities and…
-
2
votes1
answer56
viewsPostgresql build error
Would anyone know if there is an error in the query below: select name, cast(Extract(day from payday) as int) as 'day' from loan; I cannot find the reason for a build error in the URI.…
-
-2
votes1
answer563
viewsHow to save while result to txt file?
Generates txt, but saves only the last entry of the database and in the precise case of all data. $querymail = mysql_query("select mat,nome from usuario "); while($data =…
-
4
votes3
answers5429
viewsCompile jar for exe and no longer need to have a JRE
One more problem here, and I need your help. I downloaded a program that converts jar files to exe. The only problem is I still need the JRE. Is there any way to convert the program to exe and then…
javaasked 10 years, 9 months ago Igor Costa Melo 729 -
-1
votes1
answer84
viewsFormulário Django
Good morning Guys, I’m doing a Jango project and I already have a template that I worked on, I want to use the forms of this template to make your operations with Django. What I’ve been able to do…
djangoasked 5 years, 9 months ago Jhonata Rocha 1 -
1
votes1
answer74
viewsBest Scenario: Recording n table for n Hibernate
I have some doubts about recording records in tables from N to M. My scenario is this:: In my bank when I insert a doctor in the table "Doctor" the medical record, and in "Doctor x Specialty" the…
-
0
votes2
answers378
viewsExecute JS command using string
I have a command to take the size of my json, but I need to use a string to indicate which object I want to take the size: var comando = data.result[0][0].'Pedidos'.length; the mistake you give me…
-
0
votes2
answers1784
viewsHow do I link an image in PHP?
if($formaCombate == "patk") { if($patk1 > $patk2) { echo "Jogador 1 Ganhou!"; } elseif ($patk1 < $patk2) { echo "Vitória do jogador 2"; } else { echo "<img href='link'><img…
-
0
votes3
answers902
viewsPass value to a java function
Hello! in Javascript to pass a value to the function I do: <button onclick="myFunction('valor')">Click me</button> and crawl like this: function myFunction(a){alert(a);} and in java on…
-
1
votes1
answer42
viewsCan you insert a variable by passing it as a regular expression in the awk command?
Example: VARIAVEL="Pará" echo "$VARIAVEL" | awk '/^P/ { print $1 }' What this does is just search for any word started with a capital letter P. Okay, so far so good! Now, I want to know if you can…
-
2
votes2
answers13898
viewsHow to use jQuery Fadein and Fadeout effect in user warnings
have the script Fadein: <!DOCTYPE html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script>…
-
0
votes1
answer287
viewsHow to create a reusable dropdownButton in Flutter
I intend to create a dropdown reusable with Flutter, which is capable of receiving different lists of values as an argument. However, I get an error when creating a variable that will store the…
-
0
votes1
answer292
viewsHow do I install a library (Phpexcel) in a codeigniter application using NPM?
I am developing an application that needs to export data from an array that received the result of a query in Excel format, in a dynamic way, and I wanted to know how to import the library, I…
-
4
votes2
answers7992
viewsFind and Replace Multiple Words Inside a File
I want to develop a script which will replace any words in filing cabinet. I know what I can do with the command(s) below: $ tr 'ABC' '123' < arquivo.txt > novo-arquivo.txt or $ sed…
-
0
votes1
answer77
views