Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer437
viewsWhy does the Jframe size exceed the size of your Contentpane, even though it has a defined size?
I noticed a strange behavior between containers in the swing. To illustrate the test, I created a JFrame and a JPanel, and defined the panel as contentPane of JFrame. Set the preferred and maximum…
-
4
votes1
answer402
viewsRelationship between the OR and Agile Methodologies
I see some books considering the RUP as agile and others not. The more traditional books do not consider it agile, which sounds more correct because historically it has not appeared in the "boom" of…
software-engineeringasked 7 years, 5 months ago Tássio Auad 1,482 -
4
votes1
answer72
viewsHow to capture Stackoverflowexception
Hello, I am going through some problems on the server and with the application developed in MVC... I checked that the site was restarting the application pool alone, so I went to Event Viweer and…
-
4
votes1
answer1530
viewsHow to put a background image and make it responsive?
I’m learning C, so I’d like to know how to put a background image (background) and also remove the blue edges. I’m using Visual Studio. Ps: some videos I saw on Youtube were basically about going…
-
4
votes1
answer455
viewsCalculation of the weighted moving average with exponential adjustment
How could I calculate the a in the following java formula: I did the following : Df = Df + a(1 -a) xx i I generalized the formula I just don’t know how to calculate the a, like making a formula…
-
4
votes3
answers160
viewsSelect Where IN all records
Gentlemen , will searched for days the answers to this doubt that I think is silly , but I could not. I created a view that has Matricula | Name |Job |Shift | Centrocusto | Codtreina | Status I made…
-
4
votes2
answers2479
viewsHow to get this scroll effect - when scrolling the page?
On this site, by making any scroll movement at its beginning, it scrolls to the end of the section. I would like to know how this effect is executed correctly. http://seunovopontodevista.com.br/ Can…
-
4
votes1
answer3271
viewsIs it possible to save the canvas as an image, and send it to the server?
Let’s say I have a code that looks like this: <html> <head> <style> .centralizado { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); } </style>…
-
4
votes2
answers118
viewsCan I have more than one Views directory in MVC?
I’m transferring my project to MVC, and I was wondering if there could be more than one folder Views in the project, or if you can load a CSS outside the BundleConfig, have a static page that kind…
-
4
votes1
answer1542
viewsHow to connect a script made in PHP LDAP with Windows AD using SSL connection?
I have the code in PHP LDAP to change password in Active Directory: <?php $usuario="xxx"; $senha_atual="0000"; $senha_nova="11111"; $pessoas="casa.cafe.br"; $servidor="1.1.1.1"; $porta=389;…
-
4
votes1
answer11299
viewsCluster and Sum in Oracle
I have a customer record ID NOME GRUPO 2033 JOAO FORNECEDORES 2044 MARIA MANUTENCAO 2055 JOSE FORNECEDORES And I have a record of purchases made by each customer ID_CLIENTE VALOR_COMPRA 2033 4.000…
-
4
votes1
answer359
viewsUsing EF and Dapper in the same project
I’m making a simple insert of a user class, it is taking almost 10 seconds to record the information. So I tried to find other solutions to solve my performance problem and found the Dapper. My…
-
4
votes2
answers1055
viewsConvert seconds to timestamp?
I am creating a PHP script to generate a json from a caption file webvtt, take the beginning and the end that are in the format minuto:segundo.milisegundo or if the video is too big they come as…
-
4
votes2
answers7451
views.Empty() in javascript, how to do?
I am using a preview script for images created with jquery, but I want to perform it in Javascript Vanilla, I am looking for a way to replace the variable command All.Empty(); however I could not…
-
4
votes3
answers1792
viewsColumns with numbers of different rows, how to join?
I have some time series (monthly) that end in different months, for example, some end in March 2017, others in April 2017 and some even in May 2017, follows example: 228 2016-12-01 1.12 229…
rasked 7 years, 6 months ago Danilo Imbimbo 533 -
4
votes2
answers6177
viewsHow to insert index and element within an array
I’m developing a loop to compare two tables in a database. The purpose is to know how many people were appointed by the same employee of the company. For this, I need to start a array as follows:…
-
4
votes1
answer394
viewsBase conversion between Numbering Systems
I am studying Computational Mathematics, more specifically Numbering Systems and their conversion. Numbering Systems are widely used in programming and computing in general, so my study focused more…
-
4
votes2
answers544
viewsMap Enum with search conditions
I have a class that makes the search conditions as follows: public enum EnumCondicao { [Display(Name = "Igual")] Igual, [Display(Name = "Diferente")] Diferente, [Display(Name = "Maior")] Maior,…
-
4
votes4
answers1265
viewsRequest JSON (http post) with Angular 2+
I am trying to consume an api in the sandbox of braspag and am getting an error message: Xmlhttprequest cannot load https://apisandbox.braspag.com.br/v2/sales/. Response to preflight request doesn’t…
-
4
votes1
answer467
viewsLoad Video by PHP (only part)
I have some files. MP4 When I want to display them, I create an html tav video and point to this mp4. Only sometimes I’d like to broadcast only part of the video. Ex: the video has 10min. But I want…
-
4
votes1
answer660
viewsCheck if all items in a string are different?
How can I check if all the items in a string are different ? For example: x:"abcdefga" = False y:"abcdefg" = True Since x[0] == x[7], soon would be False. But in case I would use that condition on a…
-
4
votes1
answer1324
viewsConvert numeric date to R
I imported a JSON table for R and the dates are in Unix format. Example: data <- c(1436904192, 1490717463, 1491924165) How can I convert this entire column at once to the date format 14/7/15…
-
4
votes1
answer269
viewsCSS - Selector "::"
In studies of CSS selectors, we have seen the selector :: in a few moments. However I did not find specific reference on this keyword :: isolated. That is, I only saw it being applied in selectors…
-
4
votes1
answer1572
viewsMysql - What data types should be in quotes?
I’m developing a script for backup/dump from my database via PHP, but when saving the file, I need to put, or not, quotes according to the type of the column. So far so good! But what types of data…
-
4
votes1
answer163
viewsWebworker and Async - What is the difference and when to use it?
I am studying specifically an implementation of Webworker, and did not understand very well the difference between Webworker and Async in Javascript, whereas Webworker gives me an asynchronous…
-
4
votes1
answer1739
viewsDLL Not found
when running my application, I’m receiving the error warning, informing DAL.dll has not been found. I have no idea what it might be, I’m following a tutorial, these are my first steps with C#. I’m…
-
4
votes2
answers94597
viewsHow to break the line?
Nome = input("Digite o nome do cliente: ") DiaVencimento = input("Digite o dia de vencimento: ") MêsVencimento = input("Digite o mês de vencimento: ") ValorFatura = input("Digite o valor da fatura:…
-
4
votes1
answer1978
viewsProblem with forecast in R
I’m trying to make a relatively simple GDP forecast, but I’m finding the following mistake: **Error in model.frame.default(formula = y ~ t2, drop.unused.levels = TRUE) : comprimentos das variáveis…
-
4
votes1
answer230
viewsScrape of MTE mediating system
I’m trying to make the Scrape of the Ministry of Labor mediating system. Basically, I want the relationship of collective agreements and conventions:…
-
4
votes1
answer442
viewsHow to simulate the event of typing the % (percentage) symbol when pressing Shift+5?
I was developing a calculator in C#, and started doing the activation part of the buttons through the keyboard. if (e.KeyCode == Keys.Add) { btnsum.PerformClick(); } Using the code above, I already…
-
4
votes3
answers1204
viewsCreate bat to move files returned by findstr
Good afternoon to all! I have come across a daily problem where, I have several . xml to open and check if these have tags: < desc_produto >Riscos< /desc_Produto >" or <…
-
4
votes4
answers2570
viewsHow to take the penultimate and antipenultímo item from an array
I have a array that comes from a return of a form and would like to know how to get the penultimate and antepenultimate position of the same in PHP.
phpasked 7 years, 6 months ago gabrielfalieri 1,231 -
4
votes0
answers36
viewsPlayback of intermittent bugs
I have a problem to solve at the company and I would like some guidance on that. What is the correct procedure to locate an error that happened only once? For example, in my case the client was…
source-codeasked 7 years, 6 months ago Anderson Araujo 71 -
4
votes2
answers530
viewsField Ionic search, need to close when user click "Go" or "OK" from Keyboard
I have a search field at the top, which is just a filter, so: <div class="bar bar-subheader bar-light"> <label class="item item-input item-floating-label"> <i class="icon ion-search…
-
4
votes2
answers725
viewsGraphic overlay on chartJS
I have the following problem, arose the need to create graphs dynamically from a select that represents the schools of the system and as it is clicked generate a pie chart with their respective…
-
4
votes1
answer195
viewsTDD improves the design?
Some people say that TDD (Test Driven Development) is responsible for improving design of the project classes. Others say this does not happen or is not necessarily true. TDD by itself, without any…
-
4
votes2
answers1567
viewsError declaration null - Unknown type name bool
The error you are making is in this function. bool tem_numero_na_lista(tipo_lista * aux, int valor) { while (aux - > prox != NULL) { if (aux - > info == valor) { return true; } aux = aux -…
-
4
votes2
answers1062
viewsWhat does the data-reactid attribute mean?
I was looking at some websites, and I saw, in the source code of some pages, an attribute called data-reactid, embedded in elements div. What is this attribute, what is its function and what…
-
4
votes1
answer60
viewsHow to create verification that will validate if Reportviewer is installed?
I need to create a check that will validate the installation of Report Viewer on the user’s machine. If not installed, I need to receive this information to make a treatment present a message to the…
-
4
votes3
answers46491
viewsPath to access html folders ,css,php etc
Could someone explain me this Nives system to access folder in the use of languages like html,css and php (../)(.../)(./).?
-
4
votes2
answers4666
viewsRemove disabled attribute when a condition is met
Good night. I am trying to make a login and registration screen for an application that will save the data in localStorage. To prevent the user from registering with incomplete data I disabled the…
javascript jquery html5 localstorage javascript-eventsasked 7 years, 6 months ago Mauricio Hartmann 131 -
4
votes3
answers146
viewsPerformance "Where in foreach vs if"
Which case would perform best? var chaves = new list<string>(); foreach(var item in lista) { if(!string.IsNullOrEmpty(item.Chave)) { chaves.Add(item.Chave); } } Or listaValida = lista.Where(x…
-
4
votes3
answers749
viewsHow to treat High and Low Letters Box along with Symbols
I got the following snippet spinning pretty: function busca() { var str = document.getElementById('txt').value; if(document.getElementById(str)) console.log(str + ' existe.'); else console.log(str +…
-
4
votes2
answers186
viewsHow can I transform a variable(0-10) into 3 categories?
The GLEASON variable in the database is 0 to 10. And I wanted to turn this variable into three categories, for example: 0-4: not aggressive, 5-7: aggressive intermediate and 8-10: very aggressive.…
rasked 7 years, 6 months ago Maria Lopes 115 -
4
votes0
answers99
viewsWhat is prototype-based programming?
Reading about javascript I came across the term prototyping-based programming, and I also saw that in devmedia claim that javascript is an object-oriented language based on prototypes. Finally I…
-
4
votes1
answer39
viewsDo search engines prioritize file names or "alt" attributes in images?
For example, an image named "xicara-de-cafe.jpg" without the attribute alt, has more weight than a file called "5ecaac15bb162ea847e1f4771a214b74.jpg" with the attribute alt="Xícara de café"?…
-
4
votes2
answers6031
viewsHow does . Closest() work in Jquery?
Hello, I wonder if I’m misinterpreting the command, or if I’m doing something wrong in the implementation. Freely translating, closest means "closer". But by clicking on an element and asking for…
jqueryasked 7 years, 6 months ago Artur Trapp 5,175 -
4
votes3
answers2718
viewsWhat is the correct way to pass the pagination data in Sponse REST?
In more robust applications, where a table can have millions of records, it is important to implement paging in a REST API. I have seen in some projects two ways to return pagination information…
-
4
votes1
answer309
viewsHow to recover categories linked to a post?
I climbed on Github (https://github.com/fabiojaniolima/larablog-beta) a small project in Laravel, something very initial. I intend as soon as possible to arrange the routes, structure the methods,…
-
4
votes1
answer164
viewsRelationship (Database) (Sql)
kindly: I can’t understand the following case: My problem would be the syntax used in part (1,1) -- (1,N) In case it would be, 1 Department allots N employees and 1 Employee can be in only 1…