Most voted questions
150,413 questions
Sort by count of
-
6
votes1
answer1153
viewsWhat’s the head of the chain list?
I didn’t understand what head or (head) of the list means, and what is the advantage in using it?
-
6
votes1
answer1202
viewsHow can I differentiate authentications in the Standard? Example: Administrator and Common User without using multauth
How can I differentiate routes for the same auth? I have a User table and in it I have registered two types of user: admin and common user, both in the User table, with the same attributes. How can…
-
6
votes1
answer247
viewsIs my code object-oriented?
I have a code and would like to know if it is an object-oriented code. It follows the structure. I work with 3 files. first flame save.php, follows the code: include_once('dao.php');…
-
6
votes3
answers833
viewsBalloons with tips for using the system (Tour)
What I want is to know what name is given to those tips that appear to assist in the use of a system when we first enter it. For example, I log in to the system and a little balloon appears as if it…
-
6
votes1
answer289
viewsArgument of a function is another function
I would like to know how to put as an argument of a function another function. For example, let’s say I want to solve an integral by a given numerical method of approximation of an integral. And I…
-
6
votes1
answer382
viewsWhat is the difference between reverse list (Inverted index) and reverse list (Reverse index)?
what concept, characteristics, advantages and disadvantages and an example of use (application).
-
6
votes3
answers3964
viewsWhat is Threadpool all about?
I’m studying Threads in Java, and came across the following code: ExecutorService threadPool = Executors.newFixedThreadPool(10); for (int i = 0; i < 10; i++) threadPool.submit(new…
-
6
votes1
answer201
viewsDoes the keyword "async" really make the asynchronous method?
I was seeing a video (at 31:11 minutes) and there says that async does not make the method really asynchronous, it is more a "hint". As it was in English and I am not totally advanced, it was half…
-
6
votes1
answer1264
viewsSend text via php using my phone number
I would like to send sms via php, but without using third party api, I wanted to put my own mobile number as sender and it consume my credits for each send, ie just "automate" the sending of sms.…
-
6
votes1
answer4278
viewsHow does Session’s duration work?
Guys I have a php file with the following code: // Define o limitador de cache session_cache_limiter('must-revalidate'); $cache_limiter = session_cache_limiter(); // Define tempo da sessão…
phpasked 7 years, 11 months ago Hugo Borges 5,294 -
6
votes5
answers7439
viewsExercise with odd pairs in C
Statement - Make an algorithm that reads a set of numbers (X) and indicate the amount of even numbers (Qpares) and the amount of odd numbers (Qimpares) read. Note: Entering values ends when the user…
-
6
votes4
answers640
viewsJava abstract class exercise doubt
I would like to ask for your help again in this exercise. This time using the abstract class. Create an abstract class FuncionarioAbstract with the attribute String name and abstract method: public…
-
6
votes4
answers790
viewscapture value of < option > with jQuery
You guys, I got this select html. <select name='busca' onChange='link()'> <option value="1">OP1</option> <option value="2">OP2</option> <option…
-
6
votes2
answers272
viewsIn R, what is the best way to select sets of internal lists within a list of lists?
I have a list of lists like the one below: lista <- list(num = list(1:10, 11:20, 21:30), chr = list(letters[1:13], letters[14:26], LETTERS[1:13])) I’d like to turn it into a data.frame, but for…
-
6
votes1
answer172
viewsIndentation in a Tedit
It is possible to indent a text inside a TEdit or a derivative component (ex. TLabeledEdit)? If yes, how? I don’t want to line him up (Left, Center, Right), I just want to indentify it, like it’s…
-
6
votes2
answers99
viewsDoubt about List that does not return the result
I have this method in Java, which queries in the database and returns me a list of students. The method is searching in the BD, but does not return the data correctly... public static…
-
6
votes2
answers141
views -
6
votes3
answers3023
viewsForeach Array incrementing another array
with a doubt in performing a foreach and incrementing another helper to perform an Insert in the bank, see only: When I send a form via post I have the following array as a result: array (size=2)…
-
6
votes3
answers1307
viewsCount elements between two quantities
I’m creating a Dashboard to a religious organization, which will include the age group of its members among other data. The ages of registration and promotion among their religious education classes…
-
6
votes1
answer3084
viewsCall a method that calls another method of the same class?
Example have the class Metodo: public class Metodo { private String string; public String mostrar(String nome, String sobrenome){ this.string = "Nome: " + nome + "Sobrenome: " + sobrenome; return…
-
6
votes1
answer1726
viewsDifference between fflush and setbuf
What is the difference between the functions fflush(stdin); and **setbuf(stdin, NULL);**? When to use and when not to use each?
-
6
votes2
answers298
viewsHow to run audio with Pyqt?
Is there any way to run an audio file with Pyqt? You can do this only with Pyqt or you need to install another library?
-
6
votes2
answers2941
viewsIs it possible to change the browser zoom with code?
Is there any way to change the browser zoom with JavaScript? When loading the script would like to change the browser zoom to 100%, can be using any framework (Angular, jQuery). I’d really…
-
6
votes1
answer96
viewsWhat is the purpose of "X" at the beginning of some header names?
There are specific HTTP headers that have the purpose of passing some information. As for example the Content-Type that informs the mime of the content you want to receive or send. We also have the…
-
6
votes3
answers1227
viewsIs there a Data Annotation that prevents data duplication in the Database?
How do I prevent data from being duplicated in the database using Data Annotation or via another validation?
-
6
votes1
answer282
viewsIs there any way to assign values to a vector faster?
For example, I have the statement of the following vector: float vet[3] = {1, 1, 1}; It would be possible to change all values of the same at once, without having to change one by one element or…
-
6
votes2
answers421
viewsGroup css selectors to reuse code
Given my and html and css respectively: <!DOCTYPE html> <html> <meta charset="UTF-8"> <head> <link rel="stylesheet" type="text/css" href="css/estilos.css">…
-
6
votes2
answers146
viewsPointer changes address when exiting function
When performing a dynamic allocation of a vector or matrix in C, the pointer for that allocation changes address when leaving the function, before it was pointing to the initial address of the…
-
6
votes1
answer278
viewsImporting specific modules is faster/performative than importing everything (with the asterisk)?
In Python, since I realized that it is possible to import specific functions or classes from a module, I chose to always do so. One of the reasons is legibility. The other reason I’m not sure, so I…
-
6
votes3
answers463
viewsWhat is the correct option to instantiate a PHP class?
What is the correct option to instantiate a PHP class? Whereas the class is under discussion if call Atleta: 1) $atleta=Atleta; 2) $atleta= new Atleta(); 3) $atleta= Atleta(); Which of the 3 options…
-
6
votes1
answer61
viewsMysql function does not merge equals
I have this query for Mysql: SELECT email, COUNT(*) AS Vezes FROM automovel GROUP BY email HAVING COUNT(*) ORDER BY `data_cadastro` ASC It groups all the same emails together, and shows how many…
-
6
votes2
answers635
viewsHow to know the key of the 3 greatest results array?
have this array $qtd = array( 'acao' => $acao, 'aventura' => $aventura, 'comedia' => $comedia, 'drama' => $drama, 'faroeste' => $faroeste, 'ficcao' => $ficcao, 'suspense' =>…
-
6
votes1
answer1057
viewsHow to detect if the system supports hardware acceleration?
Currently I do this so that one of mine activity that require acceleration work: <application android:hardwareAccelerated="true"> <activity ... /> <activity…
-
6
votes1
answer476
viewsConvert Image to Base64 with Ionicframework
Is there any library that can convert images to base64 with the Ionic Framework? I tried to use the angular-Base64-upload, worked with the angular, but in the Ionic did not succeed. If anyone knows…
-
6
votes2
answers2567
viewsHow to format a date displaying the month name in angular?
I have an object Date on my Angular controller. $scope.date = new Date; I would like to format this date in the view to display the name of the month in full. I want the name to be displayed in…
angularjsasked 7 years, 11 months ago Wallace Maxters 102,340 -
6
votes1
answer2127
viewsHow to clone objects in Python?
In some languages, besides being able to instantiate a class to construct a given object, we can also clone an existing instance, if we want an object with the same characteristics of the current…
-
6
votes3
answers658
viewsPass SQL output to JSON
Hello, I want to pass the result of a select to json, but I can’t check why I can’t see it. So someone could tell me why this code doesn’t print anything? include_once 'conexao.php'; $query =…
-
6
votes2
answers312
viewsWho is who in the use of functions?
I have searched a lot, and has a lot of good content here, which covers this topic, however I still can not understand the functioning. The characters I’m referring to are: Function Parameters…
-
6
votes2
answers198
viewsShellscript does not find the directory
I’m starting with shellscript ,I have to checksum some files, so I decided to automate things with a bash script.. I made two scripts, one that uses one ls recursive in the directory set by me and…
-
6
votes2
answers1515
viewsData Displayfor display formatting
I have a field in the database, Date Time, and wanted to display on screen to the user, but in separate fields, being Date and Time. First displays the Date @Html.DisplayFor(modelItem =>…
-
6
votes1
answer185
viewsWhat is Level Trust of an ASP.NET application?
What is the purpose of setting up Level Trust in an ASP.NET application? It protects the server from something? It protects the application from something? In which case or for what reason it is…
-
6
votes3
answers3450
viewsPreloader while the site loads
I’m making a hotsite, it’s one page, and it’s a little heavy, with some pictures. I wanted to do a preloader with %, before loading all the content. With: $(window).on('load', function() {…
-
6
votes1
answer481
viewsHow to "limit" a Jcombobox according to the selected item?
I have a JComboBox, and I limit the size of it, with the following code: jcb.setPreferredSize(new Dimension(100, 21)); However, I would like to know if there is a way that after I choose an option,…
-
6
votes2
answers565
viewsWhat are ASP.NET MVC routes?
In ASP.NET MVC always appears to me the term route when I read something related to this technology, however, I started studying APS.NET MVC recently and this term route is causing me trouble.…
-
6
votes2
answers687
viewsHow is the query generated in Linq mounted when we do UPDATE?
How the query generated in Linq is mounted when we do UPDATE? using ColWebDBContext.DBase.Banco; using System; using System.Web.UI; using System.Linq; namespace DBContext { public partial class…
-
6
votes2
answers475
viewsWhat is the purpose of automatically generated directories in an ASP.NET MVC project?
In Visual Studio Community 2015 when we create a new project in ASP.NET MVC in the project is automatically generated the following directory structure, see the image below: Being in total eight…
-
6
votes4
answers931
viewsHow to verify variables that are not used?
Is there any way to verify which variables are not used within the scope one-class? As in the example below, the variables teste1 and teste4 has no utility within the application, as could locate…
-
6
votes3
answers249
viewsChange data value=" of tooltips if displayed in resolution less than 767px?
I’m implementing a few tooltips on a contact form I am developing. It turns out that when it is loaded in lower resolution (below 767px), it is cut tooltips. This is due to the fact of tooltips have…
-
6
votes1
answer356
viewsReturn modified object
I have the following problem, as the didactic example below: #include "b.h" #include "c.h" class A { public: int start(); private: B b; C c; int x; } a.cpp int A::start() { c = b.copy(); x = c.d;…
-
6
votes3
answers269
viewsHow to search and save a single field?
How can I search a single field of the table change it and save this field without having to search all fields of the table? The reason for this is simple, I have some tables that have more than 30…