Most voted questions
150,413 questions
Sort by count of
-
4
votes3
answers5883
viewsDisable button after click
I have a form that sends likes to my database by clicking the button. <form action="envia_curtir.php" method="post"> <button class="icones icone-polegares-para-cima"…
-
4
votes1
answer2407
viewsDirect PDF Printing on Java Printer
So, I need to print a PDF directly to the printer, because I need to print Tax Notes.If I use this form Desktop d = Desktop.getDesktop().print("Caminho do arquivo") it prints normally the first…
-
4
votes2
answers1161
viewsHow to insert using Sqlbulkcopy with Entityframework
I have a method that adds almost 2000 records at once, I was using the Bulk Insert and it was working perfectly, but this extension is paid for. So I decided to use the Sqlbulkcopy class but I’m…
c#asked 7 years, 1 month ago William Cézar 1,268 -
4
votes3
answers430
viewsReplace part of a Java String
I have repeating Strings, just changing a word. I have one case to assemble email content, but do not want to keep repeating the whole string, being that the only value that will be different, is…
javaasked 7 years, 1 month ago Guilherme Nass 939 -
4
votes1
answer42
viewsCan Let’s Encrypts certify Ips?
I have a local server running some applications php, and some running in virtual environment hosts, all accessing via https, but now the company wants to make the intranet via ip available for…
-
4
votes1
answer110
viewsNodejs because so many files
Good afternoon, everyone, I’m starting a short time with Nodejs a little project in VUEJS, and I saw that when I give the command NPM INSTALL it creates about 20,000 files, my application gets to…
-
4
votes3
answers2405
viewsIs it possible to export the source code of an Android Studio project? How?
I developed an application in Android Studio that is now available in Google Play. As it was a project that I used as my TCC theme, the university needs the PDF source code. How I extract the code…
-
4
votes1
answer41
viewsHow to search a character in a set of javascript strings
I have a set with certain strings, it is a vector, need to be done searches for characters in this set. Case: Be it V my set of strings contemplated by: ["ana", "paula", "cris", "voa",…
-
4
votes1
answer553
viewsHow do I use Atlassian Connect to get Jira data and generate a JSON?
I need to make a script to get some data from Jira and I believe that for that you have to use the API Atlassian Connect that uses a server in Node.js. However, I don’t want to manipulate the data…
-
4
votes2
answers1091
viewsOperation of the new operator
I wanted to understand basically what the logic behind the objects of the classes that use the operator new for example, I have the following program in D: import std.stdio; class Hello { public…
-
4
votes4
answers33862
viewsHow to search for values in column A that do not exist in column B?
For example, I have a spreadsheet: [ A ] [ B ] 1 valor1 valor1 2 valor2 valor2 3 valor3 valor3 4 valor4 valor4 5 valor5 valor6 You can see that in column B, there is no valor5, what I wanted is to…
excelasked 7 years, 1 month ago Lucas de Carvalho 6,427 -
4
votes1
answer1312
viewsSee The Employee Salary Amount on a Given Date
Does anyone know what a query would look like to see what a certain employee’s salary is at a certain date? The table of the salary adjustment history of each employee has the following fields:…
-
4
votes1
answer456
viewsProblems restoring a Postgresql database with C#
private void btnRestore_Click(object sender, EventArgs e) { if (clsB.ConectaBanco()) { //Executo a seguinte função para limpar a base de dados, para poder dar o restore. clsB.ExecutarSQL("drop…
-
4
votes1
answer3295
viewsFailed to load PDF document
I am working with a crafts system, where the user will enter the number of the craft, the person to whom the document will be directed and the message, and would like that, if the data were…
-
4
votes2
answers215
viewsGather background information that is in different arrays in the same array
When the user of a submit in the form, I receive the following arrays (in this case I had 3 products in the form, if I had only 1, in the 4 arrays I would have only the Indice 0, if I had 5…
-
4
votes2
answers2246
viewsHow to print from a web application to a local printer with C#
I need to program in web some resources that perform local impression, where text and commands are sent to a specific device without the user interaction. For example the issuance of labels on Zebra…
-
4
votes2
answers233
viewsWhen I type broken number, it removes the comma and sums as integer
static void Main(string[] args) { Console.Write("Digite sua primeira nota: "); double n1 = Convert.ToDouble(Console.ReadLine()); Console.Write("Digite sua segunda nota: "); …
-
4
votes2
answers401
viewsSimultaneous calls in Restful service
Hello, I’m having doubts on how to make fun simultaneous calls (about 100) in a REST service. The example of code I have is the following: using (var http = new HttpClient { BaseAddress = new…
-
4
votes1
answer938
viewsHow to create a dynamic matrix using chained list in C language?
Please help me with whatever power on the subject, I am having difficulties with data structure in college. I thank you already. What I already have for coding! typedef struct tipoElemento { int…
casked 7 years, 1 month ago Selton Farias 53 -
4
votes1
answer824
viewsHow to return 2 objects at the same time in a Java method?
public class Equacao2Grau { int a, b, c; public int CalculoDelta(){ return (int) (Math.pow(b, 2) - 4*a*c); } public int FormulaQuadratica(){ int x1…
-
4
votes2
answers282
viewsAlmost prime numbers
I have a doubt in C, I know check if a number is prime, however, almost cousin do not know.. as I do? Follow the part of the code working! However, just checking if it is prime.. the almost prime…
-
4
votes1
answer593
viewsReturn message together with Unauthorizedresult
I am using . NET Core 2 to create a dependency that will be injected into an API. The idea is to create a middleware to control incoming requests and act according to a number of business rules. It…
-
4
votes1
answer193
viewsHow do I convert RGB values into pixels for an image in PHP?
for ($j = 0; $j < $altura; $j++) { for ($i = 0; $i < $largura; $i++) { $rgb = imagecolorat($img, $i, $j); $rgb = imagecolorsforindex($img, $rgb); $imagem[$c] = $rgb['red'] + $rgb['green'] +…
-
4
votes2
answers1906
viewsCalculate Difference between 2 dates (has time in them)
Hello, I would like to make the following calculation. Starting Date = 11 September 2017 at 11:35 am Final Date = 11 September 2017 at 12:35 pm It should appear to me 1:10 am. Another example:…
-
4
votes2
answers252
viewsScope equivalent to @Stateless on CDI
I’m migrating the notes EJB from my application to CDI and I have some doubts: What is the equivalent scope @Stateless of the EJB at the CDI? The @ResquestScoped would act in an equivalent manner? I…
-
4
votes2
answers858
viewsOperator in java
I am learning Java and came across the need of the operator in. For example: I have a vector (v = {1,2,3,4,6}) and I want to see if 5 is in this vector (there is in this case). In python would be v…
-
4
votes2
answers618
viewsGrid styling for gallery using flex display
Well, I’m trying to create a gallery, display:flex, how can I accomplish this? I thought about using the float, but I remembered that the flex display ignores any float :/…
-
4
votes1
answer1426
viewsFind out which image size was inserted by input file
I am creating a system to organize the images of a site, that is, I will store information such as name, extension, size, height, width, ... and I am having difficulties to get the data of height…
-
4
votes2
answers909
viewsError - Font-Awesome icon
Need to Add an icon in a menu, the icon I want to use is the: fa fa-file-pdf-o (PDF) Classy: font-awesome.min.css Only there is a problem when I add it. It appears as follows: The HTML code that…
font-awesomeasked 7 years, 1 month ago Carlos Henrique 494 -
4
votes1
answer107
viewsIs there still reason to use var in Javascript?
ES6 introduced the Keywords let and const for variable declaration. There is still reason to use var? If yes, in which scenarios to use?
-
4
votes1
answer688
viewsError in Plot.window(...) : need Finite 'ylim' values
I have a continuous variable whose n=15000 comments and 451 Als. When rotating the qqnorm For the evaluation of normality, I verified that it does not present normality and therefore I applied a…
-
4
votes1
answer135
viewsDoubt: how to use python scripts for web?
I want to make a web application that will read colors in RGB logos and create suggestions of color scales for websites. The algorithm will be in python, using Opencv. The client moves the image…
-
4
votes3
answers438
viewsOver with Group by
I have a query that I use to return me as an extract, accumulating the values record by record: SELECT TOP (100) PERCENT Mes, Credito, Debito, Sum(Credito - Debito) over (ORDER BY Emp_id, Mes) AS…
-
4
votes2
answers1704
viewsTake PHP variable and display in input
Good afternoon, folks. I am wanting to take the value of the Cpf variable, after it is treated, and display it inside an input. practicing.php <fieldset style="width:50%; margin: 0px auto; ">…
-
4
votes1
answer204
viewsLinux image in Docker?
I’m trying to understand the concept of Docker but it’s still a little confusing for me. Docker would be an image generator/emulator that can be managed in the cloud? If so, I believe I have…
dockerasked 7 years, 1 month ago gabrielgrs 457 -
4
votes1
answer126
viewsStack/Stack with priority in c#?
My teacher passed 2 exercises, the first was to create a stack (Stack) simple to run unit tests in this class: using System; using System.Collections.Generic; using System.Linq; using System.Text;…
-
4
votes4
answers1350
viewsCheck if id_user is logged in (Session - codeigniter)
I am building a login system and in it I am making some validations. Everything functional, except, the verification if user is already logged in. I’m using the method below, but it’s not 100%…
-
4
votes2
answers753
viewsCount the amount of months you "Turned" from two dates?
I need to count the amount of months that turned from two dates using PHP, I have the following code to calculate the difference of months between 2 dates. $data1 = '2017-01-01'; $data2 =…
phpasked 7 years, 2 months ago Marcos Paulo 43 -
4
votes2
answers210
viewsDifference between table, Entity and behavior
What’s the difference between table, Entity and behavior in the context of Model? For example, I have a table called module, I want to make a query like this $modulo = TableRegistry::get('Modulo');…
-
4
votes2
answers1543
viewsWhat is the purpose and how to use Broadcasting in Laravel?
The version 5.3 of Laravel has some news, as the Broadcasting, for example. I read the documentation, but I could not understand very well on the subject. I saw that it has some relation (whether…
-
4
votes4
answers880
viewsWhy is it not advisable to use PHP codes in the same HTML document?
I was in the lab today showing a simple PHP code example to a colleague and my teacher saw it and asked "Why are you putting PHP together with HTML?". Even without understanding much I answered that…
-
4
votes2
answers674
viewsVuejs: how to create a condition for a v-model?
The problem is, I have a switch made with label and input checkbox and it has a default value that comes from date of my instance of Vue. var app = new Vue({ el: '#app', data: { slcModalidad: 0,…
-
4
votes1
answer163
viewsError executing function for the second time
Inside the controller I have this function: public void salvaEncaminhamento() { Integer qtdEncaminhamento = 0; if (manifestacao.getTbEncaminhamentoCollection() != null) { qtdEncaminhamento =…
-
4
votes1
answer2391
viewsWhat is Entity Manager?
What is the Java Entity Manager? Attending a class on java the teacher mentioned that the method find() of Entity manager and that this method, when searching for a record in the database stores the…
-
4
votes1
answer339
viewsCheck if a value is contained in the line
I am working with a query system, and I would like that, for example: If I look for the value "a", it returns me all the lines that have "a". I tried to use the command like, as shown below: SELECT…
mysqlasked 7 years, 2 months ago Lucas Ramos 321 -
4
votes2
answers422
viewsCalculating average time
In my bank I have a table that has the fields entrada, saida, the two fields have the format D-MM-YYYY H:M:S, would like to make an average calculation. Ex: The average waiting time is 30 min Based…
-
4
votes1
answer1186
viewsHow to check if a File can be created in a Folder before trying to create it in it?
My program allows user to define a Folder, and later the program will create a New File in this Folder. However, the program is not able to create a File in any Folder, for example: Creates New File…
-
4
votes1
answer8943
viewsDoubt about Latex image reference
I’m trying to put sequential numbering on two figures. Example: figura 3a, figura 3b. But when I do \ref{fig1a} in the text, it shows the later numbering (4b): \documentclass[jou,apacite]{apa6}…
latexasked 7 years, 2 months ago Diego Vidal 41 -
4
votes1
answer869
viewsGallery with category filter
I need to implement the following: category buttons + category gallery I have several categories on my site and an image gallery for each one. On the front, I will create buttons with the categories…
-
4
votes2
answers1079
viewsEvent loading when conducting queries in AJAX with ASP.NET MVC
I’d like to know how to best place a Waiting to identify that the data of a survey is being processed, in case I have a table and can perform a search filter, when the request is sent I would like…