Interesting questions
-
0
votes1
answer24
viewsSlimframeworrk only accesses by duplicating bars in the URL
I am using Slimframework and I have the following code: <?php use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ResponseInterface as Response; use…
-
1
votes1
answer398
viewsHow can I hide a Component when the login search is completed
How can I pick up hide a component when the bank result is completed. Code: import React, { Component } from 'react'; import axios from 'axios'; class Login extends Component { state = { user: '',…
-
1
votes1
answer287
viewsHow to know when Collapsible expands or closes?
I have a Collapsible, and when it is expanded I want to add elements to it, and when it is collected I want to exclude the elements. At the moment I’m using it as follows: <div id="expansorTurma"…
-
1
votes1
answer353
viewsUndeclared variable
You’re making a mistake on lines 118,127,133,139... 127 20 'vector' was not declared in this Scope #include<stdio.h> #include <stdlib.h> #include <string.h> #define tamanho 5 int…
-
-2
votes2
answers225
viewsLogic test inside the Python array
In the R I can have this structure var1 <-TRUE var2 <-FALSE paste0("ANO_544, SEMANA", if(var1 == TRUE){", COD_NEGOCIO"}, if(var2 == TRUE){", CATEGORIA"}, ", MODULADO") And I got an answer:…
-
0
votes1
answer172
viewsRecursive query does not return records when the parent product and the child product have the same code
I have a table that maps a production line. The fields are: Product: Machine Output Product. Parentproduct: Input Product. Machine: Code of the machine. I’m using CTE s to get the data recursively.…
-
0
votes2
answers51
viewsC++ - pointer this
The Rotatex(float) and Scale(float, float, float) functions of the mat4 class return the this pointer. The purpose was to create a temporary instance of mat4 to store the pre-multiplication between…
-
0
votes1
answer21
viewsWhat is happening in this code the Event parameter would be a this?
<!doctype html> <html lang="pt-br"> <head> <meta charset="utf-8"> <title>Document</title> </head> <body> <script>…
javascriptasked 7 years, 3 months ago Leandro Nascimento 81 -
2
votes1
answer284
viewsSelect ID vectors with certain characteristics in R
I have a data frame with four columns of values for each ID and need to create a new df excluding Ids whose vectors have more than one zero or more than one NA. I created the DF library(dplyr)…
-
0
votes1
answer3779
viewsUpload Angularjs Files
I have a button where I select a file, I would like to upload that file to my server(Java + Vraptor). I can already get the file and also save the name of the file in the database along with the…
-
0
votes1
answer736
viewsRadiogroup select item through a string
I have a radioGroup with the items: 0 : bola 1 : futebol 2 : gol 3 : chuteira 4: jogador How to select the Index by the value recorded in the bank which is "ball, football...".…
delphiasked 9 years, 3 months ago Tiago Casanova 778 -
1
votes1
answer520
viewsModel validation with Scope on Ruby on Rails
Suppose the models: class A < ActiveRecord::Base has_many :bs end class B < ActiveRecord::Base belongs_to :a has_many :cs end class C < ActiveRecord::Base belongs_to :b end If I want an…
-
0
votes1
answer1013
viewsHow to search for users in the database without select option
Good staff always found bad a method I use to search users in the database in a select option, when I have many records the page takes to load and only tends to get worse, someone has some idea of…
phpasked 12 years ago Rafael Assmann 381 -
2
votes1
answer345
viewsHow to take data from an input and add the properties of a Javascript function?
I’m having a lot of personal doubts. I would like to take data from my input and place it within properties of a function. If the function could be performed ( capture all data) would display a…
-
1
votes0
answers47
viewsHow to use different images in the background-image, according to screen size?
I’m optimizing a site and wanted to know if I have how to use different background-image according to screen size. For example, screens larger than 640px use the image /referent123/original.jpg and…
-
1
votes1
answer116
viewsHow to check if after selecting a file the same still exists in the Javascript directory
In my application I use as a javascript framework the Angularjs, and to select the files I use the following button: <md-button class="md-accent md-raised button-arquivo-margin"…
-
-2
votes1
answer199
viewsJava parce csv to my bean - Opencsv
<!-- https://mvnrepository.com/artifact/com.opencsv/opencsv --> <dependency> <groupId>com.opencsv</groupId> <artifactId>opencsv</artifactId>…
javaasked 8 years, 7 months ago Gustavo Enndi 1 -
1
votes2
answers327
viewsHow many times will the x variable be created at the end of the loop? Why?
In the following loop, how many times the variable x will be created at the end of loop? Why? for (int i = 0; < 10; i++) { double x = i + 10; System.out.println(x); }…
-
0
votes1
answer733
viewsComparing dates of an array in PHP
I’m trying to compare the dates that come from a database array to be able to organize them within a timeline. The problem is that I can’t compare the dates to know where to place each entry...…
-
2
votes2
answers626
viewsHow to change the title color of the browser tab?
<html lang="pt-br"> <head> <meta charset="UTF-8"> <link rel="icon" a href="https://is.gd/DhDDsG"> <style> * { margin: 0px; padding: 0px; } body { background-repeat:…