Most voted questions
150,413 questions
Sort by count of
-
4
votes2
answers334
viewsSentence separated by comma in an IF Javascript would have what purpose? " if (1, 2) {}"
By accident when I was changing a Javascript code I made, I put a comma instead of the || in an expression if. I altered if (that.busy || that.completed) return; for if (that.busy, that.completed)…
-
4
votes2
answers607
viewsWhat is the difference between initializing a constructor or doing attribution within the constructor?
What is the difference between the two examples below? I should also assign the value within the constructor in this class even if I initialized? example 1: class sof{ int teste; public: sof(int t)…
-
4
votes2
answers1404
viewsSplit string into substrings and search for them in another
I’m creating a function in which I will check whether a endereço_A contains parts in a endereço_B, exemplifying: address_A AVENIDA JOÃO E MARIA address_B RUA JOÃO The result should return JOÃO,…
sql-serverasked 7 years, 11 months ago Marcelo de Andrade 7,261 -
4
votes1
answer1794
viewsSave multiple attributes to the same object in Laravel
I have an immovable table other of attributes and created an immovel_attribute table since an immovable can have several attributes. I created the models Immovel and Attribute, need to create a…
-
4
votes1
answer64
viewsDoubt - Angular Controllers
I’m studying Angular and I have a question. I’m creating an application, and wanted to organize the controllers by creating one for each view (template). Exemplo: Tela Cadastro -…
angularjsasked 7 years, 11 months ago Julio Rodrigues 355 -
4
votes1
answer9873
viewsHow to backup a Postgresql database via pgAdmin 4
I am trying to generate a backup of my Postgresql database through pgAdmin 4, but every time I try to backup an error occurs: I am configuring the Postgresql preferences as follows: And when I set…
-
4
votes1
answer2976
viewsHow to get request header by passing Authorization Bearer using Datasnap
I’m using Delphi XE7, have a WebService REST made from the DataSnap REST, I need to get the bearer-token past Header by the customer, only that the DataSnap REST by default it executes as Basic.…
-
4
votes1
answer644
viewsIncomplete Edge
I need to make an element with this kind of edge. I did not find anything anywhere that would decrease the size of the border. I found and know just about the thickness.…
-
4
votes1
answer73
viewsWhat error in while loop? moon turn on
What’s the error in the loop? I wrote this code to print the sum of the first 10 prime numbers, I’ve reviewed the loops but I couldn’t find the error. It was to print the sum of the cousins until 29…
-
4
votes2
answers996
viewsDisplay the contents of Object Nodelist
How to display received content through a objectNodeList ? Through the following function I try to get the content of tags by the class. function final(){ var titulos =…
javascriptasked 7 years, 11 months ago MagicHat 12,262 -
4
votes1
answer86
viewsDifficulty placing non-significant zeros in a converted binary number
I found a code on the web that converts decimals to binaries (32 bits), but I needed one (256 bits) so I changed the code in the way I thought was correct, but after the given size the…
casked 7 years, 11 months ago Oberdan Santos 105 -
4
votes2
answers1673
viewsHow to resolve this 'java.lang.Illegalargumentexception: Unknown Entity' when running this simple application?
I am new to the world of Hibernate and when I run this application, I get the following exception: java.lang.IllegalArgumentException: Unknown entity: com.nataniel.api.domain.User at…
-
4
votes1
answer60
viewsPlot Main Title with Text and formula y = a + betaX + Epsilon
This is the data: a=structure(c(2.96898844129164, 2.7849952585919, 2.4022019576164, 2.97749332978932, 3.23431466394159, 3.37620019711505, 3.3295390792587, 3.11646532271242, 2.84000702738219,…
-
4
votes1
answer39
viewsHow to set default properties for variables that start with specific text?
Is there any way to define the properties of a variable as default by the initials of the variables? Something like public string obsUsuario { get; set; }, all of which start with Obs by default the…
-
4
votes1
answer7065
viewsLEFT JOIN com AND no Eloquent Laravel 5
I have a query with Left Join with AND I’m not able to implement it in Laravel 5. A snippet of the query: LEFT JOIN visitante v ON a.codigo = v.id AND v.data BETWEEN '2015-06-01' and '2016-05-31'…
-
4
votes1
answer205
viewsWCF Receive Reply in UTF-8
I’m consuming a Webservice by means of a Console application. I receive an object as a return and in this object I need to read an attribute called ReturnMessage. But the text is disfigured, the…
-
4
votes1
answer176
viewsmysql driver is not found when the application is rotated from a jar
I have developed an employee registration system. In this system the data persistence is done in a mysql database. When running the program by the package the system works normally, but when…
-
4
votes1
answer5391
viewsAutomatic code formatting tool for Notepad++
In my day to day I use the Textfx Plugin to indent my code and it is good the result. When I pass the code to other programmers, I use the "Chrome Inspector", which has a more complete and organized…
notepad++asked 7 years, 11 months ago Camila Yamamoto 1,302 -
4
votes3
answers1918
viewsHow to change the line color of a Dbgrid in Delphi?
I’m doing a expense control system, and when registering a new revenue or new expense I want you to change the line color of that record on dbGrid as chosen, I used a TDBRadioGroup to choose between…
-
4
votes1
answer102
viewsTreat a word with dots
I have a method that takes a text as a parameter and makes a .split in the text separating the words by " ". For each word in the text I make a check to see if the word is equal to the item in my…
-
4
votes2
answers392
viewsOpen View with Parameters
I have this Script: $('#Musico').change(function () { var id = $(Musico).val(); var url = '@Url.Action("Votar","Chamada")'; var tipo = 1; $(function ChamaVotar() { $.post(url, { id: id, tipo: tipo…
-
4
votes1
answer799
viewsConsole in windows Forms application
I have a class where opens the console, shows some data and then closes, when running a second time (without closing the program), an exception occurs in Console.WriteLine("") If executed once,…
-
4
votes6
answers906
viewsConvert text from div to number
I’m trying to get the text of this structure: <span id="our_price_display">R$ 71,90</span> And I’d like you to return to me just the 71,90. But in the structure I created, I can’t take…
-
4
votes2
answers2530
viewsHow to remove all "/" occurrences from a string using Javascript
Hello, I’m having trouble applying a simple regex with Javascript. So: var str = "/Date(1421287200000-0200)/"; console.log(str.replace('/\//g','')); //não funciona, mesmo estando certo…
-
4
votes0
answers818
viewsImage Resolution created with canvas
Good afternoon to all! I’m developing an application that scans a multi-digital file, where it is possible for the user to make cuts to these fingerprints and then save them to the BLOB database. To…
-
4
votes1
answer104
viewsSearch engine Optimization em Meta Tags (Custom Elements)
How does the indexing of meta tags created in frameworks like Vue.js and others that use this functionality ? Google robots analyze what the browser interprets or the page source code ?…
-
4
votes5
answers3614
viewsSplit array into smaller groups
I have an array in this format: meuArray = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ...]; I would like to turn it into a multidimensional array with javascript/jquery leaving it so:…
-
4
votes2
answers3123
viewsError saving Datetime type field
I am mounting an example of Code First, but when saving a field of type Datetime in the database returns me the following error Conversion of a datetime2 data type into a datetime data type resulted…
c# entity-framework-6 crud sql-server-2012 migrationsasked 7 years, 11 months ago Marco Souza 12,304 -
4
votes1
answer1609
viewsRun an Laravel Schedule every minute?
I’m using the Laravel 5.3 and would like to perform a task every minute, within the task I will put some checks, the question is to make it run every minute. I did the following in the Kernel App:…
-
4
votes1
answer114
viewsHow to prevent a certain key from being sent to the program several times
I’m making a calculator for year-end activity, which even works normally, as long as it doesn’t exceed typing. For example, if you sum two fractional numbers, it performs the entire sum correctly,…
-
4
votes1
answer144
viewsAlignment of <pre><code> elements in css
Example code without indentation /*Exibindo trecho de código no HTML utilizando o <pre><code>*/ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8">…
-
4
votes2
answers734
viewsHow to remove "disabled" attribute from the parent select option?
I need that only in the select option that is selected the "Leader" option, it does not assign the "disabled", only in the other selects daughters. The logic is that only a user can be a leader, but…
-
4
votes1
answer266
viewsSave dataset C#
I’m searching several tables from the database for a Dataset through a Stored Procedure in the MySQL using the Mysql Workbrenck, but when saving only the first table is saved, my code: Stored…
-
4
votes1
answer210
viewsIs it possible to give Insert with select?
I have two tables: hardware(ID, DEVICEID, NAME, ...) and softwares(ID, HARDWARE_ID, PUBLISHER, NAME, VERSION, ETC ...). I need to give insert in the software table, but I do not have the…
-
4
votes2
answers892
viewsGrab Id and move to another function on click button
Galley, I have the following problem, I have a table and every record I have a link. By clicking on this link I take the ID as follows and call a modal. <script> $(document).on("click", "a",…
-
4
votes1
answer122
viewsDo a Hasmany per date with Laravel 5.3?
Is there any way to make a HasMany bringing records by date? public function despesas() { return $this->hasMany(Despesa::class); //registros apenas desse mês } I tried to use the following, but…
php laravel laravel-5 laravel-eloquent laravel-5.3asked 7 years, 11 months ago Felipe Paetzold 4,527 -
4
votes1
answer66
viewsWhy does rvest break when processing an empty file?
When trying to process the contents of an empty file the package rvest locks and closes the RStudio. Follows small reproduction of the problem: tf <- tempfile() file.create(tf) html_erro <-…
-
4
votes2
answers1662
viewsApply filters to a Jtable
I have a table and in a JPANEL on top of it I created textFields and combobox with the intention of using them as filter. The method: tableRowSorter.setRowFilter(RowFilter.regexFilter("(?i)" +…
-
4
votes2
answers160
viewsError adding BD information
When testing in the application where I migrated the BD from Firebird to Postgresql the following error occurs when trying to save an item in the database: Reviewing the code I could see that the…
-
4
votes4
answers6169
viewsAngular js Array within another array
How do I print an array within another array, in the.log console it comes like this: Array[5] 0:Array[10] 0:Object 1:Object 2:Object 3:Object 4:Object 5:Object 6:Object 7:Object 8:Object 9:Object…
-
4
votes1
answer104
viewsHow to generate a graph with a curve similar to "sine" in jquery Flot?
Friends, I’m using Flot for a little ECG simulation (electrocardiogram), and I stumbled across a problem, which I think is over mathematics than of programming... So I’m sorry if I’m explaining bad.…
-
4
votes2
answers515
viewsStructuring with html/div and css
I am beginner/enthusiast and I’m having difficulty to drop the "table", I’m having problems to do this below without leaving a fixed pixel value. Well, it was solved and this was the result: *{…
-
4
votes1
answer146
viewsHelp with Javascript comparison operators
Good Afternoon, I am doing a job, of which I will have several forms with a minimum and maximum number and I want to create a check function and avoid inserting numbers out of the track by the…
-
4
votes1
answer168
viewsIn the specialized class should I use self or Parent to access the variables?
I have two classes, one abstract (Connector) and a specialized class (Connectorwmi) extending from Connector. My question is, considering the code below, in the specialized class I should rather…
phpasked 7 years, 11 months ago Fábio Jânio 3,407 -
4
votes1
answer993
viewsBroken Pipe with python sockets
I am having the following error whenever I try to send a message from the server to the client using Python sockets: server: import socket s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) host =…
pythonasked 7 years, 11 months ago Nathan Aguiar Neves 51 -
4
votes1
answer73
viewsWhat’s unscathed for python?
I wonder what exactly is wrong with this python code: import urllib.request page = urllib.request.urlopen("http://beans-r-us.appspot.com/prices-loyalty.html") text = page.read().decode('utf8') price…
python-3.xasked 7 years, 11 months ago Gabriel Santos 43 -
4
votes1
answer1201
viewsHow to update a Dropdownlist without refreshing the page
I have a State Dropdown, and a City Dropdown, and a zip code field, which is making use of the mail online API, when I put a zip code, my system checks whether the city already exists in the…
-
4
votes1
answer756
viewsRemove "public" directory from Laravel 5 by IIS web.config
I have an IIS server where a site built in Laravel 5.3 will be hosted and I need to remove the public folder from the url. NOTE: I am aware that if I enter the IIS manager and change the destination…
-
4
votes1
answer1934
viewsDifference between acceptance test and system test
In practice, what is the difference between acceptance testing and system testing? And how to do them?
-
4
votes1
answer233
viewsPassing multiple parameters as an Array
I have a method that takes an unknown amount of parameters like an Array, thus: public void enviarCampos(String funcao, String... campos) { // Ação do método } To call this method do:…