Most voted questions
150,413 questions
Sort by count of
-
5
votes2
answers433
viewsget word in given coordinate (x,y)
I am formatting a document for printing and need to add a page break + header and footer at certain coordinates, if the coordinate is in the middle of the paragraph I need to divide it. I can…
javascriptasked 9 years, 2 months ago Pedro Sanção 5,639 -
5
votes2
answers90
viewsError with Java arrays
Could someone tell me what’s wrong with this code? The result is always the first number before the space, but has to be the sum of all numbers in the array. import java.util.Scanner; public class…
javaasked 9 years, 2 months ago pedrocarboni 117 -
5
votes1
answer446
viewsMonitoring Mysql database c/ Java application
I have a Java desktop c/DB Mysql application running in 100 company branches for more than 6 years. Today at headquarters we need some information from the branch database. I am developing a web…
-
5
votes1
answer1497
viewsjquery function is not being recognized on the page
My situation is like this: I have a page in ASP that mounts a table. And I have another one, also in ASP that has functions, which do the following. Provides an html to popular table. I put a jquery…
-
5
votes1
answer819
viewsHow does "printf()" work?
How the code works behind the function printf() do C? I am aware of what this function does, I want to know how it does.
-
5
votes1
answer588
viewsDifferences between Criteria and HQL
In the booklets I read and tutorials I accompanied the Criteria is more used, but I identified more with HQL. But I have the following doubt, all that is done with Criteria it is possible to do with…
-
5
votes1
answer737
viewsHow to detect the internet connection via javascript?
Is there any way to "know", via javascript, if the internet connection has been lost? For example, to try a reconnection with websocket, if it detects that the internet connection has been lost and…
javascriptasked 9 years, 2 months ago Wallace Maxters 102,340 -
5
votes1
answer139
viewsPrecedence of operators with pointers
Having, for example, the following instructions: int i=10, j=20; int *pti, *ptj; pti = &i; ptj = &j; What is the meaning of j = pti == ptj; and of i = pti || ptj; ? Also, I read that the sum…
-
5
votes2
answers4319
viewsjavascript Alert - disable "Block confirmation windows of this page?"
When we use Alert several times it opens a checkbox where the user has the option to disable Alert, there is some way to disable this feature? ( Never show the checkbox )…
javascriptasked 9 years, 3 months ago SneepS NinjA 7,691 -
5
votes1
answer1426
viewsC# App.config - Change BD address at installation time
I have a C# desktop application that when installed on a pc, must access a Mysql BD that is on another machine. The BD server address is configured in the file App.config . At the client’s request,…
-
5
votes2
answers6866
viewsFix and change color in menu depending on scroll
Good afternoon I would like to know if there is any way to change the color of a floating menu in a one page template depending on the section of the page where we are. As in this example:…
-
5
votes1
answer1820
viewsHow to convert string to double without rounding error?
Because the following command: Convert.ToDouble("199998,99") Results in: 199998.98999999 Already the command: Convert.ToDouble("199998,98") Results in: 199998.98000000001 ?…
-
5
votes4
answers15429
viewsaddClass and removeClass with Jquery
I am trying to create a menu where a div wins a class if clicked, but I would like to remove the class from the last link clicked in the menu. <div id="bolinha-dentro"></div><a…
-
5
votes2
answers941
viewsScript or command to sum all directories and show full size
I am developing a script where from a text list where will have the name of directories, the script take the name of each directory, show the size of each directory and then the total. Example: I…
-
5
votes1
answer144
viewsCancel Doubleclick on Treeview
I am using a TreeView to control permissions on my system, each operator has a profile that determines their minimum access, but it is possible to give more permissions to a particular operator,…
-
5
votes2
answers349
viewsKnow if a class is native to JAVA or created by the User?
I created a method that uses Reflection to run getters on top of an object, but I need to know if the class is native to JAVA, for example: java.lang.String, or whether it has been implemented by…
-
5
votes1
answer601
viewsCan foreign key be null in Entity?
I’m having a hard time in a project. I created two tables (Union and Schoolhouse), whereas the PK table Union is FK on the table Schoolhouse. But this FK may be void, i.e., the Schoolhouse may…
-
5
votes2
answers211
viewsPHP - Bring the result of a table according to the most recent message from another table?
So.. I have 3 table: user: | ID | NOME | SOBRENOME | | 01 | Igor | Ferreira | | 02 | João | Henrique | | 03 | Rose | Beltão | following: | ID | user1_id | user2_id | | 01 | 01 | 02 | User 1 >…
-
5
votes1
answer666
viewsSend xmlns:xsi and xmlns:xsd namespace in the webservice Soap response
I have a webservice developed in java working perfectly, only that I need to send the namespace xmlns:xsi and xmlns:xsd as shown in the example below: <soap:Envelope…
-
5
votes1
answer711
viewsConvert String Ex. 1.520.30 to Bigdecimal using Spring MVC @Initbinder
I have a canvas on which I work with the monetary value masks of jQuery Mask, when the user performs the Submit of form the value returned to my controller is Ex:. 1.340,34. The attribute in my Bean…
-
5
votes0
answers833
viewsError deploying to Wildfly 8: Failed to define class
I am getting the error below when trying to deploy my application, after migrating from Jboss AS 7.1 to Wildfly 8.2 and Java 7 to Java 8 and still cannot identify the source of this error. I’m using…
-
5
votes2
answers2507
viewsHow to put part of a text in bold in Tkinter?
I need to display a text in a GUI interface made with Tkinter, however, I would like only one word in the middle of this text to be in bold. I’m using it this way: texto = Label(Frame, text="Texto…
-
5
votes1
answer1413
viewsHow to make visual studio 2015 publish only the files that are most current?
I put a project in visual studio 2015 to try the tool. It is an Asp.net mvc application, I publish it directly to the server by FTP. Right click on the project, Publish, then I created an FTP…
-
5
votes3
answers20971
viewsHow can I open a modal window with window.open()?
How can I open a modal window with window.open() in Chrome, IE, opera, etc? It is possible to do this?
-
5
votes1
answer1853
viewsAdd new element to the array
I have a record of multiple contacts, in which each contact can have one or several dynamic fields. It is possible to define the name of these fields, and they are different between contacts. For…
-
5
votes2
answers2138
viewsJava and Postgresql/ MYSQL encryption
Hello I’m having a question in my college project, in scope it says like this: "Users and passwords can be stored in the database, using the database’s own encryption." Is the crypt in both by…
-
5
votes2
answers21680
viewsRedeem the largest number of a matrix with criteria
I need some formula or logic to rescue the largest number of a matrix, but with certain criteria. As well as the formulas CONT.SES and SOMASES that counts and sums the numbers of a matrix when the…
excelasked 9 years, 3 months ago Iago Correia Guimarães 799 -
5
votes1
answer711
viewsMulter file upload callback - Nodejs
Hello anyone ever used multer(express/nodejs module) to upload files? If so, how did you manage to capture the events of callbacks (onFileUploadStart and onFileUploadComplete)? Theoretically I am…
-
5
votes1
answer102
viewsWhat is this script running?
I am beginner in the area and found this file inside my server : <?php /* Script: Mass Deface Script */ echo "<center><textarea rows='10' cols='100'>"; $defaceurl =…
-
5
votes3
answers3151
viewsHow to read a Json file
$(document).ready(function(){ var json = [{ bloco:"bloco1", titulo: "titulo1", perguntas: [{ pergunta1: "Resposta1", opcaoSelecionada: "2" }]; }/*,{ bloco:"bloco2", titulo: "titulo2", perguntas: [{…
-
5
votes1
answer15283
viewsCheck if the completed email already exists in the database without refresh
I need you to fill an email in the email field, search the database and return a message warning if this email is already registered in the database. We developed jQuery + PHP according to answers…
-
5
votes2
answers544
viewsProgress bar on file upload and information registration
I’m developing a project, where I upload files, as well as a record of information. Both the file and the information are registered in the same form. So far so good, but usually, when there are…
jquery asp.net-mvc asp.net asp.net-mvc-5 asp.net-mvc-4asked 9 years, 3 months ago Leomar de Souza 1,074 -
5
votes3
answers1370
viewsOne button code to undo an action in C#
Hello, I am developing a Bingo software for the Church that I attend. When you press a button of any number, it will appear in the Picture Box. As shown in the following image. Now, realize that…
-
5
votes2
answers3753
viewsCheck if the login exists in jQuery before submitting the form
I need to develop a system in which when filling the customer’s registration, is verified if the registered email already exists in the database, and if it already exists, that informs the user (via…
-
5
votes1
answer227
viewsProgram does not execute anything when it enters function
My program runs, but right after asking for the value prob() the .exe stop working. I thought it was some communication problem between functions on account of the matrix lattice[][4] as an…
-
5
votes4
answers3288
viewsSelect with redirection
I can’t program! but I can make small changes. I need to create aselect and when the person chooses the item, it is redirected <select> <option value="Vilhena">Vilhena</option>…
-
5
votes2
answers7398
viewsstartActivityForResult() and onActivityResult() in Fragments
I have a MainActivity that allows me to open two Fragments. The class Fragment_1 has a Button that in his Listener opens a second activity through the following call: Intent intent = new…
-
5
votes2
answers599
viewsWhat are the names of the Tabs (Tabs) that are being used in the new apps?
It is a tab that when you slide the contents of Tab to the side goes to the new tab. In the new Youtube update they implemented this and I wanted to know the name to implement in my app. Youtube tab…
androidasked 9 years, 3 months ago daniel12345smith 2,120 -
5
votes1
answer668
viewsHow does mega.nz work?
Mega (successor to Megaupload) has a different and innovative way of the other download site. Usually, download sites send the file and the download is done in the browser, but mega.nz downloads the…
base64asked 9 years, 3 months ago user28062 -
5
votes1
answer609
viewsIs there a parameter passage in a Rigger?
I have two tables, one with the sessions and the other with the activities. Within the table activities I have two fields, available and saleable and within session I have vacancies. I would like to…
-
5
votes2
answers9548
viewsCurves / Waves in CSS
Is it possible to do, in pure css or with some other technique these wavy effects (image attached)? I don’t want to use images to make them.…
-
5
votes1
answer646
viewsCorrect use of DOM with React.js
Knowing that Reactjs uses a virtual DOM where elements are processed into a DOM representation in memory so that all changes are made faster then it would be "wrong" to use findDOMNode to directly…
-
5
votes2
answers3983
viewsHow to disable form field using Jquery
I have a registration form where the client type the zip code by Request using Ajax to get the address, the neighborhood, the city and the state. But how do I disable these fields after they have…
-
5
votes2
answers957
viewsC# - How to make a lambda filter with more than one field?
My List: public class Carro { public int Ano; public double Valor; } List<Carro> Fiat = new List<Carro>(); Fiat.Add(new Carro {Ano = 2000, Valor = 5000 }); Fiat.Add(new Carro {Ano =…
-
5
votes2
answers195
viewsCompile Linux-ready Assembly on OSX
I’m trying to do a study of compilers, so I have to compile an Assembly of a language called howto with nasm. the intermediate code generated by the howto compiler is as follows: extern printf…
-
5
votes3
answers29883
viewsDIV/IMG with blurred/blurred background
Make the bottom of a <img> or <div> is transparent like the iPhone design - blurred, blurred -, but only with CSS.
-
5
votes2
answers694
viewsHow to create a drawing in open book format and with content inside?
I need a drawing of an open book with contents inside, as the image below: ONLY WITH CSS!…
-
5
votes2
answers4670
viewsPosting system - "Duplicate entry '0' for key 'PRIMARY"
I’m having a problem, I’m not really sure if it’s in PHP or in the database. In a posting system using PHP, as soon as you post a news, the ID (the key Primary, which would be used so:…
-
5
votes1
answer157
views3D Visualization at Angular Google Maps
Preamble I use Angular Google Maps to indicate the location of several buildings in the campus from a university. My initialization is as follows: $scope.map = { control: {}, center: { latitude:…
-
5
votes2
answers33846
viewsPassing JS values to another HTML page
It is possible for javascript to pass a variable whether it is global or not from one HTML page to another HTML page? index.html receive variable.html Like, any way to save that value and page to…