Most voted questions
150,413 questions
Sort by count of
-
5
votes4
answers1917
viewsHome Time in SQL (Years, months and days)
I need to create a SQL function that returns the employee’s home time, example: years old, months and days So far I’ve managed to bring the years old and months, but I couldn’t get the logic of day…
-
5
votes2
answers40895
viewsValidate input to only receive numbers with jquery?
I need this input to receive only numbers: <input class="form-control input-sm " placeholder="número" maxlength="4" type="text" ng-model="numero.nJogo" /> This I need to receive only values…
-
5
votes2
answers1164
viewsJava: Understand working Wait() notify() notifyAll()
I’m studying Threads Java and its resources and I came across a question. I have the following classes in my program: public class Main { public static void main(String[] args) { ThreadB b = new…
-
5
votes2
answers3032
viewsTest a new theme in Wordpress without losing the previous theme changes
Hello, I recently created a wordpress blog, I liked the theme, until a few days ago, but now I’m starting to think that it is not very blog guy. I’m using the oblique theme. The blog is already in…
-
5
votes1
answer125
viewsError importing xml.parsers.Expat in Python 2.7 only works with Python3
Good morning, a few months ago I started with python I’m using it to do tests on android applications. I have the following problem importing the xml.parsers.expat. when running straight into the…
-
5
votes2
answers1859
viewsIs there a maximum size limit for an HTML page?
Note: This question is not on code optimization. It is known that browsers have a size limit for a URI. There is some kind of limit for requesting/rendering an HTML file? Giving a simple example,…
-
5
votes1
answer5204
viewsHow to create a Radio button with image?
How can I make a Radio Button turn into an Image? I need to make an image gallery inside a form to, when clicking on the image would be selecting a radio button as in the image below:…
-
5
votes1
answer5547
viewsImporting data from a web page to Excel via VBA
Here’s the thing: I found the code on the Internet that works perfectly with what you’re indicating, but I need to adapt it to a project and I’m not getting it. In short, the macro accesses the page…
-
5
votes1
answer633
viewsError executing Databasefactory.Createdatabase() method
I’m getting the following error while performing the function DatabaseFactory.CreateDatabase(): "Configuration system failed to boot" The app.config is as follows: <?xml version="1.0"?>…
-
5
votes1
answer1161
viewsRails and Webmotors
someone with some experience with Rails integration with the Webmotors Api? I am using Gem SAVON to integrate the application with the site API and am getting the error: Savon::Soapfault:…
-
5
votes2
answers1465
viewsHow to make source responsive?
How to make text size responsive and fit different screen sizes? I tried using units em but it didn’t help. I’ve tried using Media Querys: EX: @media(max-width:768px){font-size:1.5em} I’ve tried…
-
5
votes3
answers17714
viewsDisable Submit button to make no multiple calls to the server
I am trying to disable the button after clicking , so that it does not keep sending the form data several times if the user keeps clicking. my button <input type="submit" class="formButton"…
-
5
votes2
answers17150
viewsHow to create an Anonymous Thread in Delphi
I would like to know how to create an Anonymous Thread in Delphi, if you can show an example I would be grateful.
-
5
votes1
answer10573
viewsCheck if a div is visible
I need to know which id of the visible div, I’m looking for on isVisible() but it’s not working, what should I do ? Problem: I have several Ivs that take count of the whole screen, but I only leave…
jqueryasked 8 years, 10 months ago Renan Rodrigues 3,709 -
5
votes2
answers3479
viewsBoleto Bradesco PHP
I have a system and I use the Boleto PHP wallet 25 no record of Bradesco, I received a call from the bank saying that this wallet will cease to exist passing only to wallet with Registration. I use…
-
5
votes1
answer264
viewsParallelism and Entity Framework
I’m having some problems using parallelism (I don’t have much knowledge in this area) with C# and Entity Framework. My scenario is as follows, I am using an ASP.NET MVC application and within it I…
-
5
votes2
answers136
viewsComplex type bind with Angularjs
I am studying Angularjs and Asp.net MVC and could not bind a property CPF class Person when performing a POST: Classe Pessoa: public class Pessoa { protected PessoaFisica() { } public Int32…
-
5
votes1
answer95
viewsRefresh page information without refreesh
I’ve looked and I haven’t found exactly what I want. My problem is this: I have a comments page that I wanted to update every change in the bank (this for everyone who is connected at that time). I…
-
5
votes1
answer80
viewsView recursive calls in eclipse
Is there an eclipse tool that shows recursive calls like in this image? Where I can see the details of preference graphically?…
-
5
votes2
answers1162
viewsIs it possible to leave the label and text at 90 degrees?
It is possible to make a TLabel stand upright, but your text like this: I have tested some components, but they do not work in the version of Delphi-XE8. I managed to let him in 90 degrees but the…
delphiasked 8 years, 10 months ago Guilherme Lima 3,129 -
5
votes2
answers1706
viewsCapture user name logged into machine via Web Application
There are two applications, one in Java and one in ASP and both manage to integrate with Active Directory without me typing user and network password. The application made using ASP, automatically…
-
5
votes1
answer1167
viewsRounding Up - C#
I use a program to correct my stock of the tax file sped that I send to revenue. But I’m in trouble because unit products are coming out with broken value. Example below, the product had (50) units…
c#asked 8 years, 10 months ago Jerrythecat Silva 51 -
5
votes1
answer151
viewsIs there a way to name the selected tables from a stored database to identify them in the Dataset?
I have a Store Procedure in SQL Server that projects various data. Example: CREATE PROCEDURE [dbo].[teste_sp] AS BEGIN select * from compra select * from cliente select * from fatura END However,…
-
5
votes2
answers324
viewsSearch with Mysql PDO in Array
I have that code: $whereBusca = "itaim-bibi"; $whereBusca = explode(',', $whereBusca); $sql = $pdo->prepare('SELECT id, nome, caminho FROM regiao WHERE caminho IN (:whereBusca)');…
-
5
votes2
answers8376
viewsConvert a positive decimal number into negative
I have the following query: Valor1 = '200.000,00'; select Valor1 from TB1 Is there any function that converts a positive number to negative?
-
5
votes1
answer549
viewsEntity with multiple members of the same type in the Entity Framework
When we have two entities related to Many-to-Many and create the navigation properties correctly Entity creates an extra table to configure that relationship. In the case I’m working I have a…
-
5
votes2
answers513
viewsIs there a difference between compiling from the linux terminal or from the IDE?
I’m programming in C in the linux for a semester now, and I always come across people who call themselves better programmers because they compile and run the program through the terminal. However,…
-
5
votes2
answers348
viewsLimit the database results?
Continuing with the classroom videos, I came across a method of displaying database data a little different, in the video is used: $result = mysqli_query($conn, 'SELECT * FROM comentarios ORDER BY…
-
5
votes1
answer1012
viewsHow to implement drag-and-drop on an html page?
I am a Delphi programmer, but I would like to implement an html page with the drag and drop function of a page element. I’m creating an avatar mount page, but I’d like to leave the accessories…
-
5
votes3
answers426
viewsWhen should I wear the new one or not?
What happens here? Why is an instance of Date in this example: String dataFormatada = new Date().format("dd/MM/yyyy") Already in this example was not used the new: def data =…
-
5
votes2
answers431
viewsCount elements in a range of values
Is there any more concise way to count all the elements of a vector (here in the example between 10 and 20) than the one presented? vector<int> v={1,2,3,45,24,10,20,-90,100,18,17,15,87}; int…
-
5
votes3
answers2237
viewsChange column to indentity using T-SQL in SQL Server
I need to change an existing column in a table so that it stays with the property identity using T-SQL and then entering data into this table. The column already contains data and after this…
-
5
votes1
answer2028
viewsHow to get value from one form to another?
I have Form 1 and it has a field that in the action onExit I search the code in the bank and if not find I present a message if you want to register a product. If you open Form 2, now I’m not able…
delphiasked 8 years, 10 months ago EA.Jsp.Android 169 -
5
votes1
answer1247
viewsStart Windows Service automatically
I created a Windows Service test, I have been researching and saw that to start it automatically you need to change the property StartType of the object serviceInstaller for Automatic, that the…
-
5
votes5
answers1041
viewslocalhost does not have access to the requested page
I’m trying to access a URL in AJAX but it’s making the following mistake: Xmlhttprequest cannot load http://receitaws.com.br/v1/cnpj/MEUCNPJ. In the 'Access-Control-Allow-Origin' header is present…
-
5
votes3
answers108
viewsIs there any way in pure C to implement set?
I’m doing a job for college and I need to check word for word from a "dictionary" on file txt and compare these words to the words of an array that has been provided. To make my life easier (because…
-
5
votes1
answer1595
viewsIdentify if your computer has a QR Code reader
The first stage of registration of my project has two layout options: one for those who have QR Code reader (web cam) and another for those who do not have. I need to identify if the user’s browser…
-
5
votes1
answer241
viewsProgrammatically generate links and download content
I would like to know how I would collect data from a website. The site is http://www.ons.org.br/historico/energia_natural_afluente.aspx . There I have to download all the operational historical data…
-
5
votes1
answer227
viewsFreeaspupload ASP Classic stopped working
At the company where I am working all the systems were built in ASP Classic, and we used Freeaspupload to download files sent through form, but this morning this class stopped working from nothing.…
-
5
votes3
answers223
viewsMultiple pages with a different id
I have several PHP pages , with different names of course. I wish I had something like this home.php?id=0, on the following page is named after cliente.php I wish when I have the home opened by…
phpasked 8 years, 10 months ago usersantos 765 -
5
votes2
answers746
viewsWhat the best way, change only the registration steps and not every page
I have a page where the user chooses to login (if already have registration) or register, if he chooses to register by clicking the button cadastre-se I would like the element to exit to the left…
-
5
votes1
answer395
viewsRollback in specific table Laravel 4
I am manipulating a Mysql database with Laravel 4. I want to know if there is any way to do a rollback in just one of the database tables. For example, my Migration included the tables x, y and z. I…
-
5
votes2
answers229
viewsCreate javascript-mounted title attribute in <td>
I have a table called gridContudo. In this table, there is this <td>: { width: 100, name: 'OBSERVACAO', index: 'OBSERVACAO', label: 'Observação'}]. What I need is to create a title attribute…
-
5
votes1
answer116
viewsIn a repetitive structure are there differences between working with Object or Array?
When I do a query in the database by PHP and want to return this data with while, usually use the fetch_object(), which returns the data in type object. For example: $query = "SELECT * FROM TABELA";…
-
5
votes1
answer317
viewsError while uploading an Angularjs+Vraptor file
I have a system where I can upload files through an Angular library (ng-file-upload), but if the file is larger than 3MB when I try to upload I have the following errors: GRAVE: Servlet.service()…
-
5
votes1
answer11610
viewsError running program: Unsupported major.minor version 52.0
While running my program I am getting this error: Exception in thread "main" java.lang.UnsupportedClassVersionError: TestaContador : Unsupported major.minor version 52.0 at…
-
5
votes1
answer118
viewsAndroid Protection Reverse Engineering Client-Server
I see that it is very common applications Android (games for example) are modified through engenharia reversa. Even using obfuscação and other anti reverse engineering techniques, it is difficult to…
-
5
votes2
answers6153
viewsHow can I not allow the user to type numbers and only text in Java?
I am creating a program about registration in which the user has to put name, password, email, etc. But in the fields such as name I want the user can only put text instead of numbers,and that if he…
-
5
votes3
answers399
viewswhile list 4 in 4 result within div
How do I list the result of an sql query so that 4-in-4 line is inside a div. Ex. expected result: <div class="row"> <span>1</span> <span>2</span>…
-
5
votes3
answers1527
viewsHow to find the negative of a color in hexadecimal?
I would like to know what calculation I can use in language like javascript, php or python to discover the negative of a cor hexadecimal. Example: If the white negative is black, then I: `#FFFFFF…
hexadecimalasked 8 years, 10 months ago Wallace Maxters 102,340