Most voted questions
150,413 questions
Sort by count of
-
8
votes1
answer5127
viewsConvert String to Float with Java comma
How do I convert in an elegant way String for float java? The strings are with the Brazilian localization, that is, the values come with comma as decimal separator ("12.345"). I find it so... "ugly"…
-
8
votes1
answer808
viewsWhat is Event-Dispatching Thread (EDT) in graphical interfaces?
When learning to build graphical interfaces with swing/AWT, you hear a lot about the Event-Dispatching Thread (or EDT). Although I already have a certain coexistence with swing, I confess that I do…
-
8
votes2
answers1310
viewsHow to remove a word from a string without changing larger words that contain it
I would like to remove a word from a string in R. I was doing it as follows: > s <- "ele esta bem mas tambem esta triste" > stringr::str_replace_all(s, "tambem", "") [1] "ele esta bem mas…
-
8
votes2
answers764
viewsHow to generate Thumbnail of a Video for Android?
I’m developing an app for android, one of the screens of the same should generate thumbnails videos and display them in a list. Like the image below. I was able to generate thumbnails of images, but…
-
8
votes2
answers16188
viewsHow to compare two lists in Python?
I have two lists whose contents refer to a arquivo1.txt and the other one arquivo2.txt, there are differences in the contents of the files and wish to search only the data that is in file2.txt and…
-
8
votes1
answer2823
viewsWhat does i-esimo mean in an array?
Which means i-th, I’m having a hard time understanding its use in arrays and matrices.
-
8
votes1
answer1303
viewsWhat is and how does . NET Platform Standard work?
Recently I have studied the . NET Core and ASP.NET Core and one of the changes to the RC2 version that is to come, as far as I know, is called . NET Platform Standard. This standard is described in…
-
8
votes2
answers784
viewsprintf in Java - What is %3d for?
I’m seeing a java arrays exercises, but I can’t understand what the %3d, if it’s a int. for (i=0; i<n; i++) { System.out.printf("a[%d] = %3d b[%d] = %3d\n", i, a[i], i, b[i]); }…
-
8
votes2
answers13641
viewsDeletion of repeated words using Notepad++
It is possible to delete repeated words in a text file using Notepad++?
-
8
votes2
answers621
viewsDynamic scheduling of tasks with spring batch + Quartz
I have a project in Spring Batch + Quartz, which loads a file and then processes the data from the file. Only that I wanted to implement a view with a form where I had the option to choose the start…
-
8
votes2
answers2552
viewsWhich IDE supports PHP 7?
Does anyone know of an IDE (or simpler code editor) with PHP 7 support? I use Netbeans, but it seems that support for PHP 7 in it can be added in future versions, but it is still uncertain. I’m…
-
8
votes1
answer290
viewsManipulation of Vectors in C++
Is there a problem if I walk through one vector picking up the size of it with vector size.() and then make a for about the vector? I’m asking this question because almost every time I see…
-
8
votes3
answers157
viewsHow does field initialization work in constructors?
In the C# documentation it is written: If a class does not have a constructor, a default constructor is Automatically generated and default values are used to initialize the Object Fields That is,…
-
8
votes5
answers631
viewsstr_split does not work well in string containing UTF-8?
I want to iterate a string with foreach. For this, I learned that I must use the function str_split, that separates each character from the string to a array. However, this operation does not work…
-
8
votes1
answer1061
viewsCapture the sound of a microphone in Windows via C#
How do I capture the audio the microphone receives in Windows with C#? I want to develop a software that receives the outside sound and based on that it changes the volume of my computer.
-
8
votes1
answer156
viewsTo create a function equal to C# Array.Copy in C++
I would like to create a function similar to Array.Copy from C# to C++. This function has the prototype thus: public static void Copy( Array sourceArray, int sourceIndex, Array destinationArray, int…
-
8
votes2
answers5121
viewsHow to keep the session after browser close?
I log in to my site, but when I close the browser, there is no more session. Then I have to log in again. How do I fix it ?
phpasked 8 years, 9 months ago William Alvares 384 -
8
votes3
answers8112
viewsIs there any way to pass methods as a parameter?
In Java, I can pass methods as parameters? Example: public class Teste { public String metodoA(){ //faz alguma coisa } public void metodoB(double numero){ //faz alguma coisa } public void…
-
8
votes1
answer778
viewsDoes every processor use the same instruction set?
I was researching about machine language, but everything I found on the Internet is very little and only theoretical so I wanted to know if it is possible to create a simple program in machine…
assemblyasked 8 years, 9 months ago Paulo Abreu 416 -
8
votes1
answer489
viewsHow to resolve java.lang.Noclassdeffounderror when running rhinit() in R
I’m integrating the Hadoop with R using Rhipe and my configuration is as follows:: Ubuntu 14. Hadoop 1.0.3 R 3.2.2 Rhipe 0.73.1 When starting in the environment R the rhinit() the following message…
-
8
votes0
answers581
viewsHow does the RSA encryption algorithm work?
I wanted to understand how the algorithm works RSA, step by step, for a better understanding and so that I can use it properly.
-
8
votes3
answers11523
viewsPutting two Yes and No buttons on a Javascript message
I need to do just that: In case the user click No, system closes the message and keeps the existing information on the screen. On the screen there is a button limpar and he calls the function…
-
8
votes3
answers2490
viewsWhat are the differences between pointer and reference in c++?
This question is a specific version for c++ of the question: What is the difference between pointer and reference? In practice, what are the differences between a pointer and a reference in C++? I…
-
8
votes2
answers7334
viewsHow to redirect page in Angular?
After finishing the data update, I want the system to redirect the user to another page. I am using ui-router and I was told to use $state.go. But how do I use this command? Follows my code:…
-
8
votes1
answer157
viewsHow to use Fluentvalidation ruleset functionality in Web API?
I would like to use a feature of Fluentvalidation calling for ruleset in a web API project, because I don’t want to have to be doing model validation manually every time a action method is called.…
-
8
votes1
answer452
viewsWhat is a type class "class Minhaclasseexample<T> Where T: new(){}"?
A class class ExemploClass<T> is a list? See the example class below: public abstract class MinhaClasseExemplo<T> where T: new() { public T value {get; set;} } Which means every part of…
-
8
votes1
answer399
viewsHow to export a Datatable to Excel without formatting the information?
I need to export a number to Excel, but it always formats in an inappropriate way. Expected form: -8,0902322222234 Received: -809.023.222.222.234 The data from the Datatable are typed with string.…
-
8
votes1
answer1031
viewsTable structure for genealogical tree
How to create a table with genealogical tree structure for an individual using a concise nomenclature? Example: Individual Father Father (Paternal grandfather) Father (Paternal great-grandfather)…
nomenclatureasked 8 years, 10 months ago Lucas Fontes Gaspareto 3,656 -
8
votes3
answers524
viewsWhat is Front-end and Back-end?
I’m starting to study WEB and I still lack much knowledge, and early on I came across the terms that are highly used in this world of development WEB, who are Front-end and Back-end, I have read…
-
8
votes1
answer6420
viewsApache Tomcat (Production Setup)
Good morning, I’m doing a project and using Tomcat 8 as my server. The point is, I have a Linux server to host my application, but I would like to know if I need to do any different configuration…
-
8
votes1
answer2455
viewsIs the __destruct method useful?
I read about the method __destruct these two links: http://php.net/manual/en/language.oop5.decon.php https://stackoverflow.com/questions/7240230/is-the-destruct-method-necessary-for-php And I still…
-
8
votes1
answer112
viewsCan you use a dialog to open both folders and files?
Well, I’m using the openfiledialog to open files, however the software needs to receive files or folders, because it compressed and zipped (.zip) and then make a symmetrical cipher. I have searched…
-
8
votes2
answers6076
viewsHow do I set up Visual Studio Code to open the console in a new window?
In previous versions of the Visual Studio Code was opened in a window outside the Visual Studio Code, but in the new versions this screen of Console started to be opened inside the Visual Studio…
-
8
votes2
answers2250
viewsASP.NET needs a Windows server?
As usual for PHP I have always installed Debian and Apache, but I want to go deeper into web development and I intend to take a look at ASP.NET, out of curiosity I came to doubt if I will need a…
-
8
votes1
answer355
viewsCentralize (use only one) a Try-catch for every WPF application
Is there any way to centralize a try-catch for every application in a WPF application with C#? I created a window to use as MessageBox customized. When there is an error in any system registration…
-
8
votes1
answer451
viewsIn Python 2 is it more performative to use range or xrange?
The programming language I use the most is PHP :( and, after it has been implemented Generators in version 5.5, it is said to be faster to use it for generating numbers in sequence than with the…
pythonasked 8 years, 10 months ago Wallace Maxters 102,340 -
8
votes2
answers2568
viewsWhat is the purpose of the size_t and ssize_t commands in C?
What is the purpose of commands size_t and ssize_t? What kind of data they represent? size_t minhavariavel1; ssize_t minhavariavel2;
-
8
votes2
answers3639
viewsValidation of digital signature
I am developing a software integration with the legal note webservice for issuance of electronic tax notes of the city of Porto Alegre. After some difficulties I was able to fine tune the xml so…
-
8
votes2
answers195
viewsHow to check data range?
When requesting a vehicle reservation, the system inserts the scheduled departure and return time code (we prefer to work with fixed codes instead of schedules in order to facilitate programming).…
-
8
votes3
answers1596
viewsHow to order records in the query according to another ordination?
I have a table with the following columns: id - id_manager - value - source - id_source When registering an "Account to Pay", insert in this table managerial breakdowns of the company. Assuming that…
-
8
votes5
answers6773
viewsSeparate ddd from phone with SQL statement
I have a table with fields DDD and Phone. Some were registered correctly, others the ddd is next to the phone and need to separate. TABLE +--------------------+ | DDD | Telefone |…
-
8
votes1
answer461
viewsIs it possible to work with shp files in Delphi?
I would like to assemble an application that would have the function of a GIS (QGIS for example), that instead of developing a plugin that depends on it from the software to work, generate in Delphi…
delphiasked 8 years, 10 months ago Guilherme Lima 3,129 -
8
votes5
answers6529
viewsHow to create buttons to increase/decrease font?
I would like to implement accessibility functions on the website of the company I work with. I was able to implement the contrast button, but I’m having difficulty doing the increase/decrease and…
-
8
votes5
answers1583
viewsHow to read data from the Mysql database of an application in c#?
I have a table with 2 columns in phpmyadmin,I can connect and read one column but not the other, from the following error An unhandled Exception of type 'Mysql.Data.Mysqlclient.Mysqlexception'…
-
8
votes2
answers300
viewsHow to Resolve Fatal Catchable Error While Trying to Show Messages
I have a page where I check if the user has filled all the fields of a form but when trying to show the messages to the user the script returns me an error, I’m doing it this way: class SendEmail {…
phpasked 8 years, 10 months ago adventistapr 5,498 -
8
votes1
answer240
viewsDownload server memory image
I have an Asp.Net MVC project where I have an image in memory and would like to download it. See an excerpt from the code: Image imagem = default(Image); using (Bitmap b = new Bitmap(bitmapWidth,…
-
8
votes2
answers671
viewsWhat is the way to store and read settings?
Imagining that I have a small site, and this site stores and returns information from the database. Currently I see many people storing the data of login for Mysql or paths in PHP variables or…
-
8
votes2
answers98
viewsNo need to escape the "." in a field [...] in REGEX?
I was looking at some regular expressions here on the network, and I noticed that in many, in the character field, the . was not escaped \.. Thus : [a-zA-Z0-9.]. He doesn’t need the character \…
regexasked 8 years, 11 months ago CypherPotato 9,292 -
8
votes1
answer460
viewsHow to allocate a member of a struct to C?
I wonder if it is possible to allocate a atributo of a struct, follows my struct example: struct MinhaStructExemplo { int * atributo_quantidade; /*Atributo que eu gostaria de alocar na memoria*/ };…
-
8
votes2
answers14461
viewsConvert string to date
I need to make a function increment X days to a date. The problem is that the date is coming as string in that format: dd/mm/yyyy and at the time of assigning the X days to that date, says it does…
javascriptasked 8 years, 11 months ago pnet 14,727