Most voted questions
150,413 questions
Sort by count of
-
5
votes2
answers395
viewsBehavior of parameters in the class constructor in C#
I have a question regarding the behavior of the parameters passed to the constructor of a class, they are by default ref/out or value? Searching on the behavior of parameters in common methods they…
-
5
votes2
answers66
viewsShow or hide a pregnancy option, whenever the user selects in the registration that is female
How do I make a patient registration page appear or hide an option to tell if the patient is pregnant or not. The option would only appear if the user checked the Female option. The image below…
-
5
votes1
answer76
viewsHow to block menu buttons, when a form has not been saved yet, is it possible?
I’m new around here. I’m starting in c# and came across the following question: I have a form, where I haven’t given a post still, and I didn’t want to let the user leave this screen without saving.…
-
5
votes1
answer2115
viewsSwitch between branchs in GIT and changes remain in the current branch
Well personal I was with a doubt and when asking the question here on this same topic I am opening I answered myself but decided to continue to help someone who might have the same doubt. My…
-
5
votes1
answer2258
viewsNFE Digital Signature(Electronic Invoice)
I am developing NFE in the Python language, I already Gero the XML, I can send it to Webservice and I get the answer, what I need now is the digital signature The signature is an xml tag with some…
-
5
votes1
answer162
viewsHow to create a textarea with multi columns (like a newspaper?)
There is a way to create a textarea that its display form is in multi columns?. I have several fields in textarea for the user to be able to make edits, but I need these textareas to be displayed in…
-
5
votes3
answers3518
viewsHow to solve the problem "The main method was not found" in a Java class?
I created this Arraylist and at the moment of execution the following message appears: Error: Main method not found in class Declaracaoarray.Declaracao_array; set the main method to: public Static…
-
5
votes1
answer407
viewsHow to create a new configSections in App.config
I am working with an application that currently uses the section appSettings to obtain application settings through ConfigurationManager.AppSettings. But I would like a more complex structure for my…
-
5
votes2
answers127
viewsHow to invert values that are comma separated in mysql
Photo of my base: The data is like this: -46.63642120299626,-23.54854965191239,0 I need to select so that they stay inverted: Ex: -23.54854965191239,0,-46.63642120299626 My selection in php:…
-
5
votes2
answers109
viewsQuestions about Fluent API relationship for EF 5
I have two classes: User > Contains your PK (ID). User > Contains the user ID(FK). Class User.Cs public Usuario() { this.UsuariosP = new List<UsuarioP>(); } public int Id { get; set; }…
-
5
votes1
answer10995
viewsHow to read a json file using Delphi
Good not being a pro in delphi want to read a file json and extract fields. http://www.nif.pt/? json=1&q=509442013…
-
5
votes1
answer1567
viewsError using Viewbag in Dropdownlistfor ASP NET MVC
I have a Dropdown that lists the categories of my system, but when I submit the form without choosing a category, it gives a server error saying that the Value cannot be null. I put a validation…
-
5
votes1
answer612
viewsIn Spring MVC, how to send information to the view (.jsp) without using Modelandview?
I am developing a web application in Spring MVC. I have a method that returns a list (java.util.List) and I need to pass it to the view (.jsp), but without updating the page. I would like to know…
-
5
votes2
answers1630
viewsModeling of a database
I created the following modeling: Would you like to know what can be improved? leading in good practice considerations for database? Explanation: In the TBLogin a person will create a login, which…
-
5
votes1
answer612
viewsHow to disable and enable a network adapter with Delphi?
I have an application that at some point should disable and enable the Windows network adapter, I searched through the internet, but found nothing. Test before posting an answer because dubious…
-
5
votes1
answer201
views -
5
votes2
answers1345
viewsClick on the Link and open a player below it
I have some links, example: Link1 Link2 Link3 Link4 and would like to click on Linkx it opens an "embed" just below it, and that each Link brings its corresponding video. I’m working on a wordpress…
-
5
votes2
answers1205
viewsJquery Autocomplete
I’m having Autocomplete Problems, I can pull the data but autocomplete doesn’t work ! $("#marcas").autocomplete({ source: function (request, response) { $.ajax({ type: 'GET', url:…
-
5
votes2
answers1114
viewsHow to connect two SELECT (combobox) in PHP and do Auto Fill?
I wonder how I connect two select. As if it had a category and a sub-category, but I want the sub-category to appear when I click on the category. I have two tables in bd a member and another…
-
5
votes2
answers174
viewsAdd consecutive fouls
I am creating an online diary module, I need to get students with 3 consecutive absences, follow the entry select, when the student has more than 2 hours of class, the select displays different.…
-
5
votes1
answer374
viewsIs it correct to use H1, H2 with None display in order to SEO or are they penalized by search engines?
I looked here ,but I did not find any topic addressing. If already there, please mark as duplicate. I have a problem. My client’s logo cannot be reproduced through fonts and clean CSS, and in his…
-
5
votes1
answer1238
viewsActivate HOVER without clicking the same div
Next, I have 2 tables, the items in the second table have Hover. I need to mouse 1 item of the first table and it activates the Hover of the respective item of table 2, but I can’t pull the same id…
-
5
votes1
answer3520
viewstwo functions within the onchange
Colleagues. I’m trying to put two functions inside the onchange, but the functions only work when shooting one or the other. onchange="soma(); alterar();" How could I fix this? Thank you!…
javascriptasked 9 years, 1 month ago user24136 -
5
votes1
answer2787
viewsHow to read PDF data in R?
I have numerous PDF files containing water well reports from CPRM, like this: http://siagasweb.cprm.gov.br/layout/pdf/exportar_pdf.php?ponto=4300000556 Inside these files are information about the…
-
5
votes1
answer3509
viewsError when using bindParam: Only variables should be passed by Reference
I’m getting an error when I use the bindParam from the PDO, code: Connectionpdo class: function __construct($dsn, $username = NULL, $password = NULL, $options = NULL) { parent::__construct($dsn,…
-
5
votes4
answers2109
views"Filter" equal records into a list by adding their quantitative
namespace ConsoleApplication10 { class Program { static void Main(string[] args) { List<Teste> lstTeste = new List<Teste> { new Teste {Codigo = 1, Quantidade = 10}, new Teste {Codigo =…
-
5
votes3
answers18598
viewsHow to find the rest of the division?
I’m studying a workbook I found on the net, she asks for an exercise but did not teach to do it in the previous pages, I tried and it did not work, I thank you for your help. Make a program that…
-
5
votes1
answer444
viewsClass complexity P and NP
Good evening, I just started to see FSM (finite state machine) and I read about complexity of algorithms and about P and NP, but I have 2 questions that I don’t understand. I have this picture of…
state-machineasked 9 years, 1 month ago jcsantos 123 -
5
votes1
answer780
viewsValidate captcha with PHP
I have a captcha in a form where an image with 5 randomly generated values is displayed. How do I validate the captcha and only send the contact if the input value is equal to the one generated by…
-
5
votes2
answers701
viewsCreate Tedit Array at Runtime;
With the following code, I create an X amount of edits: var x : integer; var2: integer; begin var2 := strtoint(edit2.Text); for x := 1 to var2 do begin ArrayEdit[x] := TEdit.Create(Self);…
delphiasked 9 years, 1 month ago Guilherme Lima 3,129 -
5
votes3
answers3563
viewsmysqli_escape_string() expects Exactly 2 Parameters, 1 Given
I am facing an error in my code, when I run the server behavior of DW C6, when the step of mysql_ for mysqli_, then I get an error in the function executed on line 10. The mistake is: Warning:…
-
5
votes1
answer2770
viewsForce Urls with www. to without www. com htaccess
I would like when typing in the URL http://www.meusite.com.br o. htaccess always redirects to http://meusite.com.br, need this 4 extra characters for advertising campaigns. The opposite with .…
-
5
votes2
answers6742
viewsHow to change the color of the icon in Materialize?
I’m using the framework materialize and to put an icon I do this way: <i class="material-icons">menu</i> It turns out that by default the icon is in white color, I wonder how I can do to…
-
5
votes3
answers221
viewsC++ challenge, helps with logic
I received a list of exercises from the programming teacher, this as a challenge. write a function with either return the expression value y = i - i^2 + i^3 -i^4 +i^5 - ... +- i^n I thought I’d make…
-
5
votes2
answers2377
viewsWrite image with php
I am trying to print online certificates dynamically filled with PHP. The code I’m using is: class Certificado { public $nome_para_certificado = ''; public $modelo_de_certificado = ''; function…
-
5
votes1
answer605
viewsClose loop when typing specific character
Hello! I need to resolve the following question, but I’m not getting it. Write an algorithm that calculates the average arithmetic of the students' 3 grades (number undetermined of pupils) of a…
-
5
votes1
answer9671
viewsProblem declaring variables for average calculation in Python 3
n1 = input("informe sua nota do 1º Bimestre ") n2 = input("informe sua nota do 2º Bimestre ") n3 = input("informe sua nota do 3º Bimestre ") n4 = input("informe sua nota do 4º Bimestre ") media =…
-
5
votes0
answers76
viewsMethod to protect IIS from hotlinking
There is some efficient method against hotlinking pro IIS. I tried two but they did not work. <!--Método 1--> <rewrite> <rules> <rule name="Blacklist block"…
-
5
votes1
answer1418
viewsWhat is the correct way to use Bcrypt?
I’m trying to give my system a satisfactory level of security. In my researches I found several functions that create hashs for passwords, but among all of them, I saw the most recommended were…
-
5
votes2
answers305
viewsHow to model plots when you don’t know how many there are?
Usually, when it comes to payments in instalments, comes the idea of 12 installments. Then you soon create a table with 12 fields, one for each portion. But I am faced with the situation that the…
-
5
votes2
answers2187
viewsRun a Javascript function from the site link?
Example have the link: www.meusite.com.br/index.php?subject=conteudo do assunto;message=teste de mensagem I want to call the function onclick of that button automatically: <input value="Enviar"…
-
5
votes2
answers1455
viewsHow to create this rule in mysql
I have a field on my table: tipoEndereco char(1); But this field only receives two possible values, which are: 1-> i (Instalação) 2-> c (Cobrança) Because of that, I’m thinking, and I’d like…
-
5
votes1
answer201
viewsError when deploying lambda EJB project using glassfish 4
I have in my project two java files First.java. package br.com.bom; import javax.ejb.Stateless; @Stateless public class Primeiro { } Second java. package br.com.bom; import javax.ejb.Stateless;…
-
5
votes1
answer773
viewsWrite include date using Entity framework
I believe there was a misinterpretation, I’m posting the code to be better understood. I am using a project for my EF Repository is inside it I have: Note the doubt in //companySalvar.DATA_IND =…
-
5
votes3
answers302
viewsAccess web images application
I am beginner in android app development; I have the following question: if I want to make an application where the images used are not within the project, but on the web, what is the best way to…
-
5
votes3
answers3287
viewsFill a text field and display the same text in another field
I have three text fields containing the following information: Name, Email and Phone. How I would do so that when filling out one of the fields, the same information would appear in the other field?…
javascriptasked 9 years, 1 month ago user24136 -
5
votes2
answers213
viewsValue priority data ordering using LINQ
I have a "status" table with the following values: ID 1 = Ativo ID 2 = Novo ID 3 = Excluido How would you return a list of objects (that have the status object) prioritizing, coming first, those…
-
5
votes2
answers2206
viewsRedirect with htaccess keeping the URL
I need to redirect a registered domain (domain.com.br) to a domain folder of my hosting (domain.com/exclusive), but I want to keep the domain.com.br in the address bar, without losing the integrity…
-
5
votes2
answers204
viewsWhat is the name of the ... operator used in PHP 5.6?
From the PHP 5.6 we now have the possibility to invoke or declare a function, stating that the arguments are infinite, through the .... Example: function add(... $arguments) { return…
-
5
votes1
answer1901
viewsHow to use realloc() dynamically in struct allocation?
I have a structure struct TMedidorEletrico *medidor;, and it is necessary to reallocate the memory to this structure dynamically, until the user closes the loop. Memory must be reallocated one step…