Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer160
viewsError signing xml passing PIN automatically
I have this code that selects the certificate according to the serial passed: public static X509Certificate2Collection SelecionarCertificado(string serial) { X509Store store = new…
-
4
votes2
answers122
viewsHow to create regular expression to search for numbers in parentheses?
I’m trying to create a Regex to get numbers that are in parentheses. So: 1) Pergunta 1 2) Pergunta 2 3) Pergunta 3 4) Pergunta 4 . . 10) Pergunta 10 So far I’ve managed to reach that: (^[0-9].* )…
regexasked 5 years, 5 months ago Diego Souza 16,524 -
4
votes1
answer88
viewsSparsearray vs Hashmap what’s the difference?
I was doing my daily refactoring and came across a warning. use new Sparsearray(...) to Instead for Better performance Okay, but what’s the difference between Map and SparseArray? This is my code:…
-
4
votes3
answers91
viewsSort by SQL numbering
I have a table with columns ID and ReqNorma filled with a following standard: When I perform the query to filter them, I receive values that are not in order because some of them were registered out…
sqlasked 5 years, 5 months ago Hudson Medeiros 527 -
4
votes2
answers145
viewsHow to leave the background of Visual Studio 2008 in dark theme?
I use Visual Studio 2019 and love the dark theme, but lately I’m using 2008 for work demands and it has the white theme. It is possible to put it in the dark theme ?
-
4
votes1
answer1109
viewsHow to change the color of the progress bar?
I’d like to do two things on my progress bar. Change color from green to red. Remove the blocks and create a color. I’m using Visual Studio Community 2019 on Windows 10.…
-
4
votes1
answer98
viewsBug to popular a Data Gridview in Window Forms
To popular my grid the values are not aligned correctly, as the image below. This is my Load Form code: DatabaseRepository db = new DatabaseRepository(); var colunas = db.GetColumnsName(); var…
-
4
votes1
answer155
viewsWith CSS is it possible to control which element will activate the Focus-Within of a Form?
Is there any way to determine with CSS only which elemento focused on specific will activate the :focus-within of form? I want only one input specifically activate the class form:focus-within {} of…
-
4
votes1
answer1967
viewsHow to take data from a JSON with Python
I’m taking data from a JSON. Only I’m having a problem. { "atividade_principal":[ { "text":"Atividades de televisão aberta", "code":"60.21-7-00" } ], "data_situacao":"03/11/2005", "nome":"GLOBO…
-
4
votes3
answers228
viewsDelete automated files
Good guys, I have a system, where practically daily uploads are sent via pdf files. After a while it has a lot of accumulated file. For example: Upo 100 PDF hj files, tomorrow I put 20. So, from the…
-
4
votes3
answers165
viewsWhy authenticate your cell phone number via text in the register?
I am developing an android app, early on I come across the following question about security. Why authenticate by SMS? It brings extra security? Why not just check the number present on the cell…
-
4
votes2
answers176
viewsDoing a LINQ function that can be called in an EF query
I have the following expression: Where(cd => cd.Modal == modal) .Select(s => s.Volume) .DefaultIfEmpty(0) .Sum() what use to make a same calculation several times within a few querys through…
-
4
votes2
answers638
viewsCapture input value dynamically with Jquery
I’m having a problem where I need to multiply the value of two input fields (price and quantity) to play in a third field (product price). My problem occurs where I try to get the value of these…
-
4
votes3
answers2125
viewsFormat Time in a Python data frame
I’m trying to format the column that brings the hours with milesimos, that is, to take milesimos and visualize hh:mm:ss only.…
-
4
votes2
answers915
viewsSelecting an Item from a List<T> with index equal to the iteration value of for
How can I select an item from a list by the index, this being equal to the iteration value of a for? I tried to accomplish using LINQ, while compiling and inspecting the StringBuilder which would…
-
4
votes2
answers430
viewsAlert message Response Headers
I’m on a project. NET, in which I create a login page and check the DLL, and in this check, is passed a string of a message that I need to capture with a Typescript to give the alert. This message…
-
4
votes1
answer211
viewsuse user ip as proxy to request
I am developing a site using the guzzle and wanted to use the ip and the port that the user accesses the site as proxy at the time of the request already tried these codes and n was <?php $ip =…
-
4
votes1
answer1129
viewsCalculate derivative and integrals in R
I have a set of functions that I need to calculate their respective derivatives and integrals. Because there are many I thought it best to create a function that takes an expression as an argument…
-
4
votes1
answer582
viewsReact.js problem
I am making an application in React.js and gave this problem: Element type is invalid: expected a string (for built-in Components) or a class/Function (for Composite Components) but got: Undefined.…
reactasked 5 years, 5 months ago Thales Vinicius 53 -
4
votes2
answers88
viewsCreate a column with the second highest row value
I would like to create a column on dataframe teste with the second highest value of the respective line, as I did to find Min and Max. library("matrixStats") teste <-…
-
4
votes4
answers6855
viewsExecute function when losing focus of an input
I have a normal html input: <input type="text" class="form-control" style=" width: 20%" id="hLane1"> </input> To make it run an event just use the event click But what if I need to…
-
4
votes2
answers201
viewsConditionally add elements into the Javascript Array
When I try to merge two objects using the operator spread conditionally, it works perfectly with both conditions 'true' and 'false': let condition1 = false; let condition2 = true; let obj1 = { key1:…
-
4
votes2
answers6606
viewsAutomatic installation script without user interaction
I need to run the ocsinventory agent installation automatically via script, which will be started by the domain’s GPO, and can be in . bat, . vbs or powershell, and there can be no user interaction.…
-
4
votes1
answer800
viewsHow to access Httperrorresponse data (error.Message) by Angular 2 (7)?
Code Component.ts delete(i: number) { this.formConcluido = false; this.formConcluidoErro = false; this.cidadeDeletar = this.cidades[i]; this.cidadeDeletarId = this.cidadeDeletar.Id;…
-
4
votes1
answer649
viewsHow to undo merge keeping changes made after
The branch feature had a merge of aleatorio. How to delete this merge by keeping changes made in feature, before and after the merge?…
-
4
votes1
answer2163
viewsHow to compare elements of the same index in a list
I have the following problem to solve: Consider that Mariazinha has performed a multiple choice approval. We now want to determine the number of hits Mariazinha. To this end, the template and…
pythonasked 5 years, 5 months ago Diovana Valim 203 -
4
votes3
answers315
viewsWould it be possible to list Enum from a table field through a query?
I wonder if there is any way to bring the values of the inserted in the ENUM of a table column through a query. For example, with this table: CREATE TABLE shirts ( name VARCHAR(40), size…
-
4
votes2
answers571
viewsHow to convert jpg images to webp using php?
I’m setting up a real estate website that imports photos of an xml. I wanted that when importing, it converted jpg to webp, but of the ones I found on the net, I could not make it work. Does anyone…
-
4
votes2
answers701
viewsCombobox read only
I’m trying to get a combobox read only (as the option ReadOnly of textbox), tampering with the properties of the object, but I’m not succeeding. The combobox is in a common windows form. It will be…
-
4
votes1
answer63
viewsWhat is the "groups" property in the result of a Regex?
When searching for a certain occurrence in a string with Regex without the flag g (of global), the result comes, in addition to the array with the occurrence found, other properties such as index,…
-
4
votes4
answers2052
viewsIs Ecmascript 6 supported by current browsers?
Can Ecmascript 6 features available in Javascript already be used in a way that is supported by current browsers? I wonder if this version is already supported as a whole (and not just specific…
-
4
votes2
answers132
viewsIs it good practice to insert CSS tags at the end of Body’s body?
I checked the performance by means of testing on the website of google so-called Pagespeed Insights, when inserting the tags related to the CSS at the end of the body of body scores go up. But this…
-
4
votes4
answers205
viewsCatch event that happened on page
Is there any way to stay monitoring the events that are happening on the page? Any function you leave by registering on console.log for example, I don’t know, it’s just an example.. There’s a way to…
-
4
votes3
answers7855
viewsWhen do I use "%d" in a python language?
What is "%d" for in Python programming language?
pythonasked 5 years, 5 months ago Mikael Pereira 43 -
4
votes3
answers176
viewsDoubt exercise with lists
Follow the problem: Create a Python function that takes a list and returns how many numbers are positive. If a list element is not an integer or real number (float), the function must stop and…
-
4
votes2
answers609
viewsDifference between ?. and ?? in C#
I looked at the documentation of Microsoft but still I found it a bit confusing, the main things I managed to abstract were: "?." - is a conditional null operator and tests the value of the left…
-
4
votes2
answers914
viewsHow does larger and smaller Javascript string checking work?
If you perform the condition '15000' > '100000' the result will be true If you perform the condition 15000 > 100000 the result will be false If you perform the condition '15000' > '200000'…
-
4
votes3
answers485
viewsAid in SELECT DISTINCT
I have the following select: SELECT CD_CLIENTE, DT_ATUALIZACAO, FROM TABELA Return me the following result: But I’d like to select just the last DT_ATUALIZAÇÃO of each customer, I thought to use a…
-
4
votes2
answers264
viewsRedirect to a URL if Javascript is disabled
Using the tag <noscript> it is possible to detect when the Javascript engine is disabled in the browser (as per this question), but how to redirect the browser, after a few seconds, to a…
-
4
votes1
answer114
viewsProblems in the covariance structure
Hi guys All right? I’m having some problems about defining the covariance structure in R. I need to adjust the following covariance matrices: AIR GUN compSymm Uniform. As you can see in the code…
-
4
votes2
answers4989
viewsHow to run scripts in powershell
I have an extract.sh script that does some things. I have another powershell.sh script that makes the powershell call only. And inside the powershell.sh I pull the extract.sh to run the script…
-
4
votes1
answer166
viewsWhen trying to create an object using `this` the console says that the property is Undefined
I’m learning to use objects in Javascript, and I stumbled upon an unforeseen behavior in my object. In the case when I try to store an element via DOM within a property the console says that the…
-
4
votes1
answer3026
viewswhat is a service and what is its difference to a controller?
I have read many articles and seen many lessons on Java and lately I come across a lot with the concept of services and controllers, I have the clarity of the role of the Controller within an MVC…
-
4
votes2
answers146
viewsFormat decimal places in Forms
I need to format the decimals and I can’t. What is the correct way to do the formatting in this case? double peso, altura, imc; string nome; nome = txtnome.Text; peso =…
-
4
votes1
answer63
viewsHow to perform "sudo" commands between servers?
Before running a R script on server 'A' I have to restart Shiny-server on server 'B'. /bin/ssh cabala@***.***.***.*** 'sudo service shiny-server restart' I would like to enter a command into the R…
-
4
votes2
answers291
viewsConvert written numbers with thousands separator to numeric value in R
I have the following number that I am importing from a site, I put in the following way not to need to put all the import code of the data a <- as.character("353.636.000.000") I’d like to turn…
rasked 5 years, 6 months ago Henrique Faria de Oliveira 725 -
4
votes1
answer36
viewsChange buttons to appear as quantities are dropped
I have a table where I store the customer payments and between the columns are these two: And the listing is that way: <?php for($p = 1; $p <= $visualizarR[1]->QtdParcelas; $p++){ $botao =…
phpasked 5 years, 6 months ago user24136 -
4
votes2
answers213
viewsDeath Note in Python - Loop Sentinel of Death
I have a question in my code of Death Note where I can’t create a loop to ask if the notebook user wants to kill someone else and the code should be closed when the user no longer wants to kill…
pythonasked 5 years, 6 months ago user141036 -
4
votes1
answer185
viewsDifference between MOV and MOV ptr
Maybe it’s not the ideal place to ask this, but I’m having a test and I don’t understand the difference between MOV and MOV ptr. for example, if we have in c language "unsigned char x,y", in…
-
4
votes2
answers2343
viewsHow to change the value of the key in a Python dictionary?
Are there any methods in Python that change the dictionary key name? I just know how to change the value. Exemplo: RE2 = { "Nome": "Leon Scott Kennedy", "Ocupação": "Oficial de Polícia (R.P.D)",…
pythonasked 5 years, 6 months ago user141036