Most voted questions
150,413 questions
Sort by count of
-
6
votes4
answers364
viewsDifferent methods of creating an object
What is the difference between these two types of creation/instantiation of an object? Usuario usuario = new Usuario(); usuario.listar(); new Usuario().listar();…
-
6
votes1
answer1200
viewsFind column and position cursor in it
I have a spreadsheet that contains: COLUNA A1 CABECALHO (PRODUTOS) COLUNAS B1 A BK1 COM DATAS I will read a database ordered by product and date and have which automatically fill in the spreadsheet…
-
6
votes2
answers207
viewsHow to apply Stylededitorkit to a Jtextpane without inheriting this class on my screen?
I have a problem with tabulation in JTextPane and I’m trying to reduce the default value assigned to it but it’s giving an error because I have to inherit two classes (one for the JFrame and the…
-
6
votes5
answers497
viewsPrint string in reverse
Why can’t I print that string in reverse? I know there is possibility to use another simpler way, but I want to understand the error. static void Main(string[] args) { string frase = "Diego lima de…
-
6
votes4
answers330
viewsProblem with functions being performed multiple times
I would like to know how to remedy this problem. Example: I have a function of fadeIn/fadeOut. The event that triggers the function is the OnClick in some element. The point is: How to avoid that…
javascriptasked 8 years ago Seu Madruga 2,481 -
6
votes1
answer113
viewsXamarin Forms await is not respected
Good night, someone can tell me why the code below does not respect Wait, in debug the exit order is 1. init save 2. End Save 3. New header ID: 1 instead of: 1. init save 2. New header ID: 1 3. End…
-
6
votes1
answer117
viewsThe if parole is not obeying the rules
I have a problem here in my gallery, when I enter the menu and choose which image category I will choose. Ex: Praise Group (yes it is a religious site), it has to go in my controller and pick up the…
-
6
votes1
answer87
viewsDoubt Class C++
I would like to understand why some classes in C++ have the following statement: class Bla; class Ble { .... } My doubt is about the Bla class, it has no meaning as far as I could see.…
-
6
votes1
answer116
viewsSort 2 columns at a time - Asp Mvc + Fluentnhibernate
Good morning! I would like to know how to order two columns at once in a query so that in my case, 1 in descending order of date but in alphabetical order. public IList<Analise>…
-
6
votes2
answers723
viewsCount black pixels from a region of the image
I have the following question: I have a script that can select the coordinates of an area of an image: https://jsfiddle.net/zauk0qLk/2/ Whereas I have an image binária (black and white), how do I…
-
6
votes2
answers204
viewsProject Alamofire conversion to Swift 3.0
I have the following code when I want to make a call to the server: let mutableURLRequest = NSMutableURLRequest(url: URL) mutableURLRequest.httpMethod = "POST" let parameters = ["SessionID":…
-
6
votes1
answer214
viewsError while printing static list
How do I print my static list? #include <stdio.h> #include <stdlib.h> #define MAX 3 struct alunos { int matricula; char nome[30]; float nota1, nota2; }; typedef struct lista { int quant;…
-
6
votes1
answer350
viewsCan you create an Expandablelistview with the Swipe effect?
I have a ListView which is composed of 3 ListView's chained. The first is a list of Year of release, which has a list of genres that in turn stores a list of movies. I wanted to have the option to…
-
6
votes3
answers23959
viewsDisable SQL Server Column Identity
How do I disable the property identity of a column in the SQL Server? I’ve tried to: SET IDENTITY_INSERT ON/OFF But it didn’t work. I don’t know if it’s only for insertion, but I need to do an…
-
6
votes3
answers459
viewsDoes C# have a class for handling properties files?
In C# has some class for handling files properties? In Java I use the class Properties, I was wondering if you have a C equivalent#?…
-
6
votes2
answers166
viewsWhat is the Countable interface for in PHP?
I saw a certain class whose statement was that way: class Collection implements Countable {} I realized she was implementing Countable, but I didn’t understand what this implementation was doing…
-
6
votes1
answer220
viewsHow to determine the character’s level by gaining experience?
I created this calculation based on multiples below to determine how much experience the character will need to level up. float NeededExperience(int level, float experienceRatio = 100F) { float…
-
6
votes2
answers199
viewsIs there any difference between the ways of declaring classes in C++?
Ever since I started learning C++ I’ve always done something like: class. h #ifndef CLASSE_H #define CLASSE_H class OutraClasse; class Classe { public: Classe(); void foo(OutraClasse *bar); };…
c++asked 8 years ago Guilherme Nascimento 98,651 -
6
votes1
answer1030
viewsPHP Error Built in Server Invalid request (Unexpected EOF)
Eventually on the console or cmd error appears Invalid request (Unexpected EOF), note that I understand what EOF means, which is Andnd Thef File, but I don’t understand why exactly this happens. At…
-
6
votes1
answer354
viewsHow to make a Floatingactionbutton square or rectangular?
I have 2 Floating Action Buttons on screen. How can I make them rectangular?
-
6
votes2
answers221
viewsUse of methods in php object orientation
Hello, I have the following question: In this example: class produtos { public categorias = []; } categories is a vector, as you can see. Its structure is as follows:: $categorias["tvs"][0] = "aqui…
-
6
votes1
answer1308
viewsCreate View in Mysql through Laravel
How can I create a view in the Mysql database through migrations of Laravel? I found nothing in the documentation.
-
6
votes1
answer1270
viewsCalculate cubic root
I’m having trouble creating the following Root and LN buttons. I have buttons that should be very similar as for example the normal square root and the log. I tried to create the following for the…
-
6
votes2
answers1284
viewsAre there differences between Post and Request?
When I read regarding the request I always get the term post together, and that raises me a doubt. I understand that the request serves to make a request for something to the server and then the…
-
6
votes1
answer1511
viewsSelf relationship in Group table with Laravel and Eloquent?
I have a table of grupo with the fields: id (int not null auto-increment) Description (sweep) grupoid (int null) How would it be: 1) to migration corresponding to that table? 2) the creation of…
-
6
votes1
answer962
viewsRemote access to Mysql database
I have a BD within a corporate network on a local machine serving as a Mysql server. The structure of the network works like this! I need to access for example the machine that is marked red, and in…
-
6
votes1
answer328
viewsIt is possible to determine the access path to the file in Function
I have a Java WEB application where I am using a Function that opens the file .pdf which I determine, but it only opens the files .pdf that are in the same folder where this saved my project,…
-
6
votes4
answers5110
viewsHow to upload images using Ckeditor?
I’m building a Knowledge Base system and I’m using Ckeditor to edit the texts, but I wish I could upload images inside the text. I am using PHP with MYSQL and the text part is already working. How…
-
6
votes1
answer605
viewsWhy is it recommended to use "sp" instead of "dp" in text sizes?
Bearing in mind that when we use the unit sp in the TextView there’s always a Warning in this way: Should use "sp" Instead of "dp" for text Sizes In this Sopt response shows exactly the difference…
-
6
votes3
answers1926
viewsHow do you know how many days are in the current month?
How to know how many days is the current month Mysql, example: setembro = 30dias Motive: I have a goal : exemplo: 1.000,000 I need to take the value of the goal and divide by the amount of days you…
-
6
votes2
answers2294
viewsScraping in Python - read pdf
I made a Scrapping in Python that takes a URL of any PDF, reads and returns, but in some Pdfs I’m having the problem of coming with some characters like this: ".\nO xc3 xb3rg xc3 xa3o tamb xc3 xa9m…
-
6
votes2
answers858
viewsWhat are the differences between require() and library()?
In R, what are the differences between require() and library(), if there? When should I include the require() and when should I include library()?…
-
6
votes2
answers2168
viewsCompile and run project via command line
I have an Android application developed in Eclipse. I know it is possible to compile and run a project from the console, but I don’t know how to do it. The basic steps to compile a program JAVA is…
-
6
votes2
answers335
viewsHow do the parameters that LINQ methods receive work?
How the parameters within these methods that receive these parameters work: <TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) An example is the method…
-
6
votes1
answer6264
viewsUpload file via POST to Webapi
I need to upload a file to a WebAPI, I am using the following code to upload public void Enviar() { WebRequest request = WebRequest.Create(url); request.Method = "POST"; byte[] byteArray =…
-
6
votes2
answers238
viewsFirebase Google
I currently use Google’s Firebase database, ( and other components like, auth, FCM, etc.) for my project. I wonder if there’s a way to create server-side routines. For example: after a period of…
-
6
votes0
answers92
viewsIs there anything that gives you the path to CSS?
I need something to make me reference the path of CSS faster, like a feature in Google Inspect, because it’s hard to keep finding the sequences of hundreds of divs inside divs. Like something that…
-
6
votes2
answers9412
viewsIs it possible to make an INSERT INTO SELECT + other values outside of SELECT?
I need to insert into a table ACCESS some values from another table plus the time and the user who made the record. I know to get the data from the other table just do something like: INSERT INTO…
-
6
votes1
answer155
viewsC++ overhead in method header
I’ve been analyzing the performance of a Directx renderer through the VS2015 Performance Profiler tool and it pointed me to an overhead in the header of a very requested renderer method, as shown…
-
6
votes1
answer227
viewsList Mysql tables and filter by date
I need only a final value, the commission value for products with extra commission in a date range and a specific seller, the information is in 3 tables in the BD: Below is the table 'Commission…
mysqlasked 8 years, 1 month ago Roberto Gomes 455 -
6
votes2
answers48
viewsNew instance overwrites old values
Take a look at this class: class Signal: point = None view = { "x": None, "y": None, } def __init__(self, point): self.point = point self.set_position() print(self.point + " -> " +…
-
6
votes2
answers21084
viewsBrazilian Time Zone in Mysql
I have a Mysql database table called registros. In it, I then have the following structure: id_registro, nome_registro, data_registro. In data_registro i am using the current_timestamp(), searching…
-
6
votes1
answer277
viewsUpdate Textview on onResume
package br.com.automaserv.stocserv.fragments; import android.os.AsyncTask; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import…
-
6
votes1
answer233
viewsDefine id of the php array()
I have the following array() Array ( [camposdb] => Array ( [51] => Array ( [0] => cpf_cnpj [1] => nome_razaosocial [2] => cod_cliente [3] => cod_contrato [4] => mensagem [5]…
-
6
votes1
answer22028
viewsAdd photo in excel spreadsheet from local folder
I have a spreadsheet in Excel with a list of people. For each person I have a code. In a local folder I have photos of these people and the file name of the photos is the code of the person. Do you…
-
6
votes2
answers833
viewsShow use of Processor
I am trying to show the use of the server processor with PHP. Server is Windows with IIS. I’ve tried to use : exec("wmic /node:localhost path Win32_Processor where DeviceID='CPU0' get…
-
6
votes2
answers840
views -
6
votes3
answers9114
viewsWhat are the differences between printf, fprintf, sprintf, snprintf, printf_s and fprintf_s?
Researching I noticed that there are several variations of printf, but I did not understand which differences and which to use in a certain circumstance. I would like to know the purpose of each…
-
6
votes1
answer2476
viewsDraw route over the street on the map
I have a feature that captures the positions of gps every 10 seconds. Every 30 seconds or if there’s a 20 degree change in the Bearing (Compare the last position with the current one) store to send…
-
6
votes1
answer15117
viewsWhat are the differences between Java SE, Java EE and Java ME?
I am studying the Java Language in the course of Information Systems and I realized that the Java language is contained in our day even without realizing it. It is present on both our computers and…
javaasked 8 years, 1 month ago user28366