Most voted questions
150,413 questions
Sort by count of
-
5
votes3
answers1214
viewsHow to style the input type search "clean" icon?
I need a way to stylize the icon at the end of input[type="search"]. The input type search when focusing on the element, it displays one if it has a value filled. Example: I realized that by styling…
-
5
votes1
answer5183
viewsHow to disable click out of modal?
I have a modal where I use to view the Google Maps Map. See the code below: <div class="modal fade" id="myMapModal" > <div class="modal-dialog modal-lg"> <div…
bootstrap-3asked 7 years, 5 months ago viana 27,141 -
5
votes2
answers83
viewsDesign based on the VS2015 spa template. How the service is generated
I created a project using the SPA template in Visual Studio 2015, to learn and understand, but I found this example very complicated. I still don’t understand where the service is mounted and…
-
5
votes2
answers330
viewsDifference between Find, Exists and Contains of the List<T> class
I’m working with the class List<T>, so I came across some research methods, if I may call it: Find; Exists; Contains; I was in doubt of what the difference between them, so I searched on the…
-
5
votes1
answer163
viewsjQuery doubt append appendTo inject HTML
Hello, I’m having a doubt. I have a variable containing an html structure and I need to inject a basic div (< div > < / div >) around all the contents of this variable, as a parent,…
-
5
votes1
answer476
viewsWhy use pointers as function parameters?
I already have a certain knowledge about pointer, but I wanted to understand why in most cases people use pointers as parameters in functions. Currently I have been studying algorithms through the…
-
5
votes3
answers119
viewsWhy declare property twice in one class?
When declaring a property in one class, they usually declare twice, one public and the other private. What is the purpose? private int _years; public int Years { get { return _years; } }…
-
5
votes1
answer546
viewsDifference between Users and Logins
In SQL Server we have the option to create logins and database users. What’s the difference between the two?…
-
5
votes1
answer341
viewsHow to find out which template Wordpress is using on a site page?
I’m often not sure exactly which Theme file is generating a page from the site, for example, http://example.com/nome-da-pagina-post. What I do is I put one echo within each Theme template,…
-
5
votes1
answer485
viewsWhat are the advantages and disadvantages of using <? instead of <?php?
According to the PHP documentation it is possible to enable the short_open_tag in the archive php.ini, in which it is possible to use: <? /* jon snow */ ?> in place of: <?php /* jon snow */…
-
5
votes3
answers4840
viewsHow to Format Javascript Date by Naming the Month and Day of the Week
Hello. Have that date: 18/05/17. And I need to convert her to it: 18 mai (Thu) May: (Thursday): Thursday Does anyone know how to do this using Javascript and jQuery?…
-
5
votes1
answer132
viewsDifferent types of python dictionaries
Is there any way to convert this dictionary: d = {'Ano; Dia; Mes' : '1995; 2; 5'} for this format: d = {'Ano': '1995'; 'Dia' : '2'; 'Mes': '5'} Thank you…
-
5
votes1
answer3741
viewsHow do I convert formdata to json?
I have the following code: var form = new FormData(); form.append('user',$("#user").val()); form.append('password',$("#password").val()); var data = JSON.stringify($(form).serialize()); but var…
-
5
votes1
answer1677
viewsJdesktoppane background without losing quality and expandable
I have code to add a background image to a JDesktopPaneand it works perfectly on widescreen 16:10 screens. However, when the screen is a little wider (16:9), it does not fill the rest of the…
-
5
votes2
answers1778
viewsWhat is a binary operator
I made a code in bash: #!/bin/bash echo "Digite o arquivo: " read ARQUIVO PROCURA=$(find /home/gabriel -name $ARQUIVO) test $PROCURA -e & echo "O arquivo '$ARQUIVO' não foi encontrado" And when…
-
5
votes3
answers20457
viewsRound image mask with CSS
original image I would like to know how to put the gray background and cut the outside of the player to stay just inside the circle.…
-
5
votes1
answer2138
viewsSpring MVC x Spring MVC Boot
What is the difference between Spring MVC x Spring MVC Boot? Are they the same thing? Is there any advantage in using the second? Thank you
-
5
votes1
answer483
viewsHow to correctly divide a number to only one digit in C?
I have the following function : divisibilidade11(int num); And the following variables: : int dividendo; int divisor; When the user enters with the type 11 for the variable divisor the function…
-
5
votes1
answer104
viewsoffline maintenance of Python modules
Due to problems with internet where I live, I need to maintain the packages and install new ones without the internet connection, keeping a microservicer mounted on Nanopi so that I get the files…
-
5
votes1
answer302
viewsWhat happens in real life in a developer environment if the programmer does not encapsulate an attribute?
The programmer João went there and created a class Cliente and the attribute public double saldo and the method Sacar() public also. What’s wrong with leaving the attribute double saldo, after all…
oop software-engineering encapsulation getters-setters privateasked 7 years, 5 months ago user3671786 55 -
5
votes1
answer25706
viewsWarning: Illegal string offset
I’m trying to show in the report the result of a INNER JOIN 3 tables, save the 3 values in a array and make a foreach to go through all the records, but the following error appears: Warning: Illegal…
-
5
votes1
answer375
viewsDouble Characters in Regular Expressions
I’m training my javascript and I’m wondering how I look for repeated characters in a regular expression Example: I type aa in a textbox and, within a validation method, the method checks whether the…
javascriptasked 7 years, 5 months ago bcastro95 61 -
5
votes1
answer41
viewsEF6 - Rushed load bringing less aggregated data than database data
I’m having the following problem with my relationships in Entity. When I seek for example a Bank Account by Id : return _databaseContext.Clientes .Include(x => x.Enderecos) .Include(x =>…
-
5
votes2
answers17946
viewsHow to delete apk posted on Googleplay
Hello, I developed a game in Gamemaker and published in Google Play in the category "For the whole family" but this fact caused the Admob advertisement to stop appearing in the game. There was no…
-
5
votes2
answers68
viewsSound only plays in debug mode
Because the sound only plays in debug mode? Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); MediaPlayer mp = MediaPlayer.create(getApplicationContext(),…
-
5
votes4
answers4373
viewsHow to change Bootstrap 3 code?
Is it possible for me to edit some part of a Bootstrap CSS code? If so, how?
-
5
votes1
answer7857
viewsWhat is the difference between . cer, . pfx and . pvk?
I was tinkering with some files that are certified digital and security certificates, so I came up with the question: What’s the difference between a file .cer, .pfx and .pvk?…
-
5
votes2
answers76
viewsForeach at a checklist in c#
private void Checked() { foreach (ListViewItem listItem in listView.Items) { if (cb_selectAll.Checked == true) { listItem.Checked = true; } if (cb_selectAll.Checked == false) { listItem.Checked =…
-
5
votes1
answer168
viewsLoad Webview in Objective c
I set up a Builder interface to load a webview, with . h, . m and .xib. In a side menu, when clicking on an option, I need to call this webview. Running the application, clicking on this option…
-
5
votes0
answers81
viewsHow does PHP Pear work?
I would like to know a little more about the PEAR: How it works? How do I put it in my application? What is the correct destination to place? Important information and details when using it? Note:…
-
5
votes1
answer216
viewsAmazon Elastic Beanstalk + Django + Sentry returning Raven.exceptions.Invalidgitrepository
I’m trying to deploy to AWS Elastic Beanstalk. My project has a structure where Django’s Settings is in the Settings folder: |projeto |--settings |----settings.py It contains the configuration as:…
-
5
votes2
answers458
viewsDoubt in displacement of bits in C
My question is regarding the following excerpt from a code: #include <stdio.h> int main(void){ int teste = 0, x0 = 0, x1 = 0, x2; x2 = 1; teste = ((x0|x2) | (x1|x2) << 1); printf("Valor…
-
5
votes2
answers83
viewsWhat is the syncblock?
I received a reply about a syncblock. Why is it necessary? I understand what I researched is about competition control. But why does every object need it if not everyone will have competition?…
-
5
votes1
answer110
viewsWhat is abstraction from a framework?
In another question I asked here on Stack Overflow about organizing folders in a particular project, I received a comment saying: Folder structure ends up being a more "personal" footprint, the…
-
5
votes2
answers3252
viewsHow to put the page number to be printed with CSS in @media print
I want to put the page number when the user wants to print my web page. For example, when it is to print my page, and it is broken in two, I want it to appear "page 01/02" and "02/02" on the pages,…
-
5
votes3
answers71
viewsDifference between Immediate Child and First-Child?
Could someone help me with the difference between these two concepts? From what I understand both mean the same thing...but by performing the test below, the text was left with the format of the…
-
5
votes2
answers3756
viewsChart of average profiles (including error bars)
I have a dataset that I titled Amazonia, which can be downloaded in this link. I need to construct a chart of average profiles (including error bars) of the newborn weight variable ('weight'…
-
5
votes1
answer19547
viewsDecimal to torque converter in C
I’m doing a code in C for a college job in order to convert a decimal number to binary. But when the program runs, it always prints out 00000000, no matter what number I put in. Would anyone know…
-
5
votes1
answer585
viewsEnable GPS within the app
Currently to check if the GPS is enabled use the following code: public boolean checkSetting(){ LocationManager manager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); return…
-
5
votes2
answers14121
viewsSQL query for nonnull records only
I have a table NotasFiscais and I’m searching all the records it contains in the column NChave. But some result contains this information and others do not, in the case are as NULL. How could I…
sqlasked 7 years, 6 months ago Igor Carreiro 1,917 -
5
votes2
answers54
viewsRunning a script through the name attribute does not work
Follows the code: <select class="form-control" name="dd_medidaAplicada" id="dd_medidaAplicada"> <option value="0"></option> <option value="cancelada">Advertência…
-
5
votes2
answers350
viewsHow to get the total memory occupied by the application?
I know there’s a GC.GetTotalMemory, but it only shows the consumption of managed memory. It has how to discover the full use of the application?…
-
5
votes2
answers2948
viewsHow to check if a windows service is installed, if you are starting the service via batch file
I need to run a service for some processes, but first I needed to check if the service is installed. The commands I use to install and uninstall are as follows:: %DIRServico%\SERVICO.EXE /INSTALL…
-
5
votes2
answers62
viewsError sorting list?
ViewBag.ListaEspecialidades = Especialidade.ListarEspecialidades().Sort(); Of a mistake "cannot implicitly Convert type void to Dynamic".…
-
5
votes2
answers32603
viewsHow to get the size of each table in the database?
Through a query, how can I get the disk space that the tables (in a database) are occupying? I can list all tables using sys.tables, but, and the size? SELECT NAME AS NomeTabela FROM sys.tables…
-
5
votes4
answers1270
viewsHow to fix Cross site scripting or XSS
I’m studying about some vulnerabilities I found on a site I did and I came across the possibility of the attacker sending malicious code, so I read and so my question here, I just need to fix my…
-
5
votes1
answer546
viewsGet CPU usage of a process in int C#
I need to get CPU usage of a process that is a variable. Ex.: var process = wait.exe And check the Wait.exe, if it has reached 100 CPU usage. How can I do this?…
-
5
votes2
answers700
viewsDropdownlist quantity Items
Good morning, I’m using dropdownlist in the asp.net to load some data coming from the database, however I do not know the amount that will be shown, because it depends on the fill in the database. I…
-
5
votes4
answers150
viewsHow to use unsafe code on a Web Site
I was looking to practice the use of pointers in C#, so I created in a website the following method: public static Nodo[] MontaTree(){ //... código ... } Obviously the above code does not allow to…
-
5
votes1
answer178
viewsWhat is the iterable type of PHP 7.1 for?
I was looking at some code to test PHP 7.1 and found the following excerpt: function doLoop(iterable $iterable) { foreach ($iterable as $value) { echo $value; } } $data = [1, 2, 3, 4];…