Interesting questions
-
1
votes1
answer37
viewsHow to set constant value
I’m using the React-Dropzone package to upload imgages Now I would like after loading the data from the server, I would like to set an image that came from the data search in the React-Dropzone How…
-
1
votes2
answers1970
viewsHow to control Youtube video borders
How to soak a Youtube video without leaving this black embroidery on the sides. I’d like to leave it 100% wide but at a certain height someone could help me?…
-
-3
votes1
answer147
viewsAlways keep the same name as a PDF file on upload
How can I keep the same name of a file at the time of upload, for example if the person chooses a file with the name spreadsheet.pdf I can always save it with a fixed name, as a.pdf document, today…
-
-2
votes1
answer50
viewsinteract with Select option dynamically via javascript
I think this is already very simple, but unfortunately, the simplest is the most complicated for me to understand. lol my goal is simple and summarizing it further, make sure that when you select a…
-
-2
votes1
answer259
viewsWhat is the difference between Mkdir and Createnewfile?
I’m studying about the class File in Java, and would like to know the difference between using the mkdir and the CreateNewFile, the mkdir creates the directory that is passed as parameter in folder…
javaasked 7 years, 11 months ago Caio de Souza 41 -
2
votes1
answer177
viewsHow to make a #if with comparison of two variables using handlebars and nodejs
My problem is in creating #if with a comparison with two variables on the .handlebars. page In the edition page I retrieve the data and fill in the fields, however in my select, I need to compare…
-
0
votes1
answer520
viewsHow to use declare in a database in Mysql?
I am creating an Insert database in Mysql, but when trying to declare a variable an error appears saying: "statement incomplete Waiting : ;" This is my code CREATE PROCEDURE `inserirAgente` ( IN…
-
1
votes1
answer344
viewsWhenever I use this error Syntaxerror: Unexpected token
car-master.component.ts import {Component} from '@angular/core'; import {Car} from './car'; import {CarDetailComponent} from './car-detail.Component'; @Component({ selector: 'my-car', templateUrl:…
-
0
votes0
answers55
viewsForce array to have all widgets in string
$values_x = array(); for ($i = 0; $i < count( $series[0]['data'] ); $i++ ) { $values_x[] = $series[0]['data'][$i][0]; } $values_y = array(); for ($i = 0; $i < count( $series[0]['data'] ); $i++…
-
3
votes1
answer56
viewsAngularjs ignores content-type for GET requests
In my Angular 1 application, I’m using $httpProvider to be able to set the content-type by default in all methods, but for GET methods, it does not send in its header. How can I force the angular to…
-
2
votes1
answer73
viewsSummary in classes and methods
How important the use of <summary> in methods and classes? How impactful this is at the level of development? Which is the good side and which is the bad side of its use?…
-
0
votes1
answer1927
viewsA: How to turn date only year (four digits) into a data frame?
I have a date frame with the column below. I would like to turn the years (with 4 digits) into dates (as.Date). The idea would be to keep only the years even. I tried some solutions I’ve seen…
-
0
votes1
answer578
viewsCompare two object arrays?
I need to compare 2 arrays in Javascript, one that returns from a Mongodb query and the other comes from the email provider. The two comparison criteria are the email ID and the box to which it…
-
3
votes1
answer276
viewsChange the visibility of a select
I have this form, where depending on what the person chooses will appear another select for her to select, but this way I did, it is not appearing. Does anyone know if this doesn’t work to select?…
-
9
votes2
answers274
views -
2
votes3
answers2450
viewsChange readonly to various fields
I have several inputs with readonly="true" which, when pressing the edit button, it should change to readonly="false", but I am able to do this only if I create 1 script for each input. Could I make…
-
0
votes1
answer47
viewsChange the visibility of a DIV based on the value of two select using jQuery
I have 2 select options. If the option of select1 AND the option of Select2 is selected, nothing appears. Otherwise a form appears. HTML <div class="form-group" style="color:black"> <select…
-
0
votes0
answers320
viewsHow to save an image base64_encode with more than 4000 characters in Oracle using php
I am trying to insert a base64_encode image with php in Oracle, but at the time of the Insert it returns me the following error: ORA-01704: too long string literal. The reason to return this error…
-
4
votes1
answer152
views"Output" with special characters
I am using the GCC compiler version 5.3 for the following program, written in Aptana: #include <stdio.h> void main(void) { int positivo = 32767; int negativo = -32768; printf("%d +1 é %d\n",…
-
0
votes0
answers14
viewsTDD with Jest and sequelize - POSTGRES Migration error for SQLITE
I am implementing TDD with Jest in a Node with express application, my database is POSTGRES and I have several sequelize Migrations already configured, and for my test scenarios I am running these…