Interesting questions
-
-3
votes2
answers518
viewsFill in second input when typing in first
I have an html form with SOCIAL REASON and FANTASY NAME, so I wanted that when typed in the field "Social Reason" the field "Fantasy Name" was filled automatically with the same value. Thanks in…
inputasked 7 years, 8 months ago Carlos Roberto 1 -
1
votes2
answers12370
viewsHow to uninstall Cordova and Ionic completely from windows
I need to uninstall Cordova and Ionic from my machine completely without leaving any reference or cache so that when reinstalling I ensure that all instances are absolutely new. I wonder what the…
-
2
votes1
answer175
viewsTest end of file in C
Hello, I have a problem and I couldn’t solve. while(!feof(arquivo)) { fscanf(arquivo, "%d[^,]",&result); fseek(arquivo,+1,SEEK_CUR); printf("%d",result); fscanf(arquivo, "%d[^,]",&result);…
casked 6 years, 5 months ago Richard Santos 23 -
1
votes0
answers156
viewsrespond_to show errors with relationships
My question is only about the architecture of how to return the error to view. Follow the example below: class Pessoa < ActiveRecord::Base belongs_to :responsavel, class_name: 'Pessoa',…
-
-1
votes0
answers14
viewsIf condition inside the longpolling?
I would like you to only perform longpolling if the if($row["usuario"]=="123"), but I don’t know how to do this because it’s for a chat and any request that someone send to the comic all the chats…
-
0
votes1
answer737
viewsSpring Data JPA - Query via Specification - Manytomany and Join with Multiple Entities
Hello, I’ve assembled the following Specification class: public class ItemVendedorSpecification implements Specification<ItemVendedor> { private static final long serialVersionUID = 1L;…
-
3
votes1
answer55
viewsCreate a method that receives a generic class?
I’ve been racking my brain with the Reflection API. I am writing a class (reader) that reads a CSV file and creates an Arraylist of objects based on CSV. I made a test class to write the code, only…
-
0
votes1
answer819
viewsPHP function returning query in oracle database
I’m trying to create a Function in php that brings information from my Oracle database, but Function does not return any value. This Function aims to return some user data. The function is as…
-
-1
votes1
answer44
viewsResources required per formula
I’m self-taught and I’m still learning. So I don’t know which formula would be better (consumes less hardware resource: cpu and memory) Which one consumes the least in Python 3? 1 from random import…
python-3.xasked 6 years, 3 months ago Raden Vladi 1 -
0
votes1
answer94
viewsHow to import CSV files from a same level folder (and/or above) in Python?
I have already searched several topics here, unsuccessfully however. So, if there is already an equal question, please forgive me and indicate a solution. My project is articulated as follows:…
-
0
votes1
answer50
viewsProblem with Tinymce Rails
I am creating an application with Rails and made the integration of the Tinymce editor by Gem The installation process went smoothly. I tested it on the local server and it worked the first time.…
-
0
votes0
answers255
viewsValues with 3 decimal places entering erroneously
I have a textbox in which I inform a value of an item that must be divided to 10 people registered in the system, but that are divided by proportion, who has more item receives more of the new value…
-
0
votes0
answers15
viewsError Input string was not in a correct format. C#
follows below my code `if (actualValue != "") { capacityimportData = new Capacityimport(); capacityimportData.Quantity = Convert.ToInt16(actualValue); var data = ""; if…
c#asked 5 years ago Watson Rocha 1 -
1
votes1
answer49
viewsSwift error in passing parameters
func imageUploadRequest(param:[String: String] ,myImageView: UIImage) I need to call the function imageUploadRequest passing 2 parameters, the first being a string array and the second an image. How…
swiftasked 10 years, 10 months ago Rafael Silva 11 -
0
votes0
answers35
viewsprivate property Static is getting touched value!
I have the class below: <?php namespace CONSTANTES; class Constantes { private $livre = true; private $util; private $site = array ( "dominio" => "crud.com.br", "www" => "www.crud.com.br",…
-
0
votes1
answer235
viewsData Return with Angular
I have a service with the following structure: import {Injectable} from '@angular/core'; import {HttpClient} from '@angular/common/http'; import 'rxjs-compat/add/operator/map'; import {map} from…
-
1
votes1
answer1305
viewsHow to set up Github in Visual Studio 2013 (Share project on Local network)
How to set up Github (Version 2.26) in Visual Studio 2013 (in VST 2013 in Solution Explorer/Team Explorer) to share a project on the local network?
-
10
votes3
answers789
viewsHow is a REGEX Javascript for Mail Tracking Code (AZ123456789AZ)
I need a Regex for the A-Z 1-9 A-Z standard validating AZ123456789AZ I’ve tried to /^[[A-Z]{2}[1-9]{9}[A-Z]{2}]/$
-
4
votes1
answer39
viewsShould reducing functions be created outside or inside my React component?
Looking at the documentation of hook useReducer, I checked that the reducing function is created out of of the component: const initialState = {count: 0}; function reducer(state, action) { switch…
-
1
votes1
answer189
viewsHow to read a return Map<String, String> Java in javascript?
When making a request to a java control that returns a key map and value "String": @ControllerSupport public Map< String, String > teste() { Map< String, String > teste = new HashMap<…