Most voted questions
150,413 questions
Sort by count of
-
5
votes1
answer529
viewsUpload files with web browser c#
I am developing a process automation system, where my client’s supplier website has a part that needs file uploading. All automation is already developed, missing only this part. I’ve searched…
-
5
votes3
answers300
viewsCode for reversing sequence of non-vowels ending with zero status
I’m implementing the function decodificar, which aims to call auxiliary functions to reverse all non-vowel sequences. For example, if the word is "cool monsters," it will go to "mortsnol segais".…
-
5
votes0
answers417
viewsHow to move the object to where I click the mouse?
My problem is this: I have an Opengl program with Java. I made an animation for the drawing to move, increase and decrease in size, so far so good. When I went to create a function where the mouse…
-
5
votes1
answer563
viewsJavascript Image Handler
Is there any image handler similar to canvas or jimp for node.js? Explanation of why you don’t want to use either: So I was trying to use canvas as a test, and it’s taking too long to compile the…
-
5
votes2
answers801
viewsparameter master=None inside the class in module Tkinter (python)
I’m learning the Tkinter module in the course of Professor Neri Neitzke, No, I don’t understand what the parameter is for ( master=None ) no __init__(self, master=None) of the class below, could…
-
5
votes1
answer39
viewsWhat is the best way to insert with SQL?
I say that because there are two ways. Has the: INSERT INTO teste SET nome = "Lucas", sobrenome = "Alves"; And also the way: INSERT INTO teste (nome, sobrenome) VALUES ("Lucas", "Alves"); Speed,…
sqlasked 7 years, 1 month ago Lucas de Carvalho 6,427 -
5
votes1
answer677
viewsComparison between dates
I am wanting to validate the inclusion of dates in my system, referring to the lot of products, but I believe I am a little hasty in the way I am doing. For what I need, I thought of three…
-
5
votes0
answers131
viewsWhat is Hungarian Notation?
I was reading an article about development and the same was talking about this notation. I would like to know the definition and whether it is important to use it in the development of programmes.…
terminologyasked 7 years, 1 month ago Daniel Gentil 1,484 -
5
votes1
answer227
viewsReturn 0 on Linux and Windows
I am starting the ADS course and my programming teacher insists on using the return 0 at the end of the function. Most use Windows, I realized that the return 0 is required on Windows but on Ubuntu…
-
5
votes1
answer1351
viewsMultiple inheritance and diamond problem
What’s wrong with the diamond? How do languages treat it? And they treat themselves differently because there is this difference?
-
5
votes1
answer725
viewsVuejs: how to create a condition from one v-for to another
My problem is the following, I have two separate options boxes, where the list of the first box is loaded through a json. And I need to load the second box of options depending on the value selected…
-
5
votes1
answer132
viewsHow does v-if work internally?
From what I’ve seen, using the v-if it is possible to show and hide an element through a condition, but it does not function as a toggle of Jquery, the v-if ends up removing the element and can…
-
5
votes2
answers832
viewsCreate route to webapi method with parameters via querystring
I have the following route in class WebApiConfig of a project Aspnet Wepapi config.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "{controller}/{action}/{id}" ); Edited: Using…
asp.net-web-apiasked 7 years, 2 months ago Ricardo 14,521 -
5
votes1
answer1207
viewsHow to access a specific http header?
I have a Rest API in Java, which makes use of JWT to authenticate users and generate tokens to access their resources. I have an application in Angularjs, which should consume these resources, but I…
-
5
votes2
answers4353
viewsHadoop is a Database? What is Hadoop?
After all, what is Hadoop? Hadoop is a database? I have often heard "that company uses the Hadoop database". But when I started studying Big Data I saw that actually things weren’t quite like that.…
-
5
votes2
answers116
viewsFunction() X Function.call()
When analyzing Javascript/jQuery plugin code, I often see functions being invoked with .call(). I understand that by calling the functions in this way, the first parameter passed is the this (in…
-
5
votes2
answers1688
viewsWill using async="" result in synchronous or asynchronous loading?
I am using this function to load my scripts in a single row: function loadJS () { for (var i = 1, max = arguments.length; i < max; i++) { var file = document.createElement("script"); file.async =…
-
5
votes2
answers1366
viewsDiscover machine operating system in C
I need to do a function to clean the C screen running on Windows, Mac and Linux. I thought to do a function that: If the OS were Windows: system("cls"); If the OS was Linux or Mac: system("clear");…
casked 7 years, 2 months ago Gabriel Dantas 55 -
5
votes2
answers132
viewsShould I encrypt the password in the application or on the server?
I am making an application that requires registration of users and my question is whether I should make the encryption in the application and save on the server or send to password and encrypt on…
-
5
votes1
answer167
viewsLocate line that starts with negation of the expression
I have a text file with many lines. It is possible for me to find the first line that does not match the regex? Example, I want to make a regex that shows me the first line that doesn’t start with…
-
5
votes1
answer296
viewsWhat are the main differences between Ruby and Crystal?
I saw some information about the Crystal language a few days ago, but I would like to understand a little better what the main differences with Ruby. Examples: Which is faster and lighter in…
-
5
votes1
answer917
viewsHow to use multiple App.config
How to use more than one App.Config? I have a Solution with several projects. In each project there is an App.Config. When I try to read a key, either by AppSettingsReader or by…
-
5
votes1
answer121
viewsPerformance difference from for simple and for iterator
I have a list of customers and on a certain screen the user can do a search and edit the clients of the list that is quite extensive, comparing these two examples which would be the best to work?…
-
5
votes2
answers5377
viewsFormatting date in java
I need to format a date that comes for example: 20161109103000 for 2016-11-09 10:30:00. I’ve tried to use SimpleDateFormat, DateTimeFormatter and I couldn’t format the date.…
-
5
votes4
answers10900
viewsIs it possible to use the ternary operator under several conditions at the same time?
It is possible to use more than one condition at a time when using the ternary operator? <?php if($ativa == 0): echo "Médico(a) Desativado(a)"; elseif($ativa == 1): echo "Médico(a) Ativo(a)";…
-
5
votes2
answers4660
viewsIs it possible to simulate safari in windows?
I was wondering if you have any way to simulate safari in windows, because in some situations the layout that is applied in Chrome does not work right in safari. With this I wanted to know if it has…
-
5
votes1
answer246
viewsCompatibility between . NET Core 2.0 and . NET Framework 4.7
I am creating general purpose libraries (Dlls), to reuse them in projects . Net Core 2.0 and . Net Framework 4.7. I wish to have projects. Net Core on Linux and projects . Net Framework 4.7 for…
-
5
votes1
answer41
viewsRepresentation of an entity in my class
I got that field on the bench: ID_LIBERACAO and in my class of mastery I have so: [Table("Tabela")] public class Tabela [Key] [DataBaseGenerated(DataBaseGeneratedOption.Identity)] public int…
-
5
votes2
answers739
viewsMVC Custom and Friendly Routes | Create a Route with only one parameter in the URL
To create a path where only the single parameter would be displayed? For example, my route is currently like this: routes.MapRoute( name: "RouteEvent", url: "{ProdutoNome}", defaults: new {…
-
5
votes1
answer69
viewsDoes using multiple namespaces weigh more?
Let’s say I have these namespaces: use DataTables\Editor, DataTables\Editor\Field; DataTables\Editor\Format, DataTables\Editor\Mjoin, DataTables\Editor\Options, DataTables\Editor\Upload,…
-
5
votes1
answer846
viewsSubtract input date with current date
I am trying to subtract a date that the user type in the input with the current date. var data1 = $("#data_viagem").val(); var data1 = data1.split("/"); var viagem = new Date(data1[2], data1[1],…
-
5
votes2
answers152
viewsHow to generate multiple columns in a query from just one column?
I need a Query that returns 2 columns summed (input and output) from the "accounting" column of the "tbl_sef" table. the value of the "accounting" column shall be in the column "input" when the…
mysqlasked 7 years, 2 months ago Jamerson Cavalcanti 53 -
5
votes1
answer376
viewsWeb service hosting equals a website with pages?
I am developing a mobile application with Xamarin. This application is a screen to authorize or not discount above authorized by sellers. So I have a web service that goes into the bank and takes…
-
5
votes6
answers8998
viewsSum of multiples of 3 or 5
I’m trying to build a program that finds and adds the multiples of 3 or 5 below 1000. The problem is that is returning a result of the sum that does not match what I asked. package basicojava;…
-
5
votes3
answers185
viewsAnimation in images
Is there any way to make an image rotate by, say, 90 degrees when clicked on? I want that when clicking on the image, it takes a turn, like a clock pointer for example.
-
5
votes1
answer115
viewsWhat is Lazy instantiation?
I saw here on wakim’s response that code snippet: data class Person(val firstName: String, val lastName: String) { val fullName: String by lazy { "$firstName $lastName" } } What is this so-called…
-
5
votes1
answer276
viewsHow to convert Python encryption to PHP?
I wonder if it is possible to convert this encryption to the PHP language, I need to convert the passwords that were generated to be accepted in my Login system on the site, but I do not know how to…
-
5
votes3
answers1764
viewsHow to create a static method using Kotlin?
In JAVA when we want to create a static method, we use static. Look at: public static String getDragonGlass(){ return String.valueOf("All the dragon glasses."); } And in the Kotlin, how best to…
-
5
votes4
answers7265
viewsHow to get customer operating system information?
I need to get information from the operating system of who accessed the page, for example, through a command find out if it is Windows, MAC, Linux.
-
5
votes1
answer204
viewsWhat is it, Beacon?
What is Beacon? How can I implemented using Android? Can be implemented in . NET or only in java? Have some simple example?
-
5
votes1
answer251
viewsDoes it make sense to store the salt of a password with the hash itself?
Looking at tables in a database of a certain product, I came across a structure similar to this: [LocalUsers] UserId Integer PasswordHash Byte[] Salt Byte[] If an intruder gets this list, it’s…
-
5
votes1
answer708
viewsWhy does it declare a class or id in the script and link tags?
Several times I see coding in tags <script>/<link> who possess class: <script type="text/javascript" language="javascript" class="init"> <link rel="stylesheet"…
-
5
votes1
answer5004
viewsHow to remove Input type="number" buttons
How to remove both buttons from Input type="number" in HTML5? Example: <p>Quero que isso:</p> <input type="number"> <p>Vire isso porém sem usar o text, pois preciso do…
-
5
votes2
answers52
viewsDoubt regarding the https protocol
I am setting up an Apache server in Debian. When accessing https://.../index.php by Chrome , I have the following result: So my doubts are: To appear : I necessarily need a paid certificate, or is…
-
5
votes1
answer438
viewsHow to join 2 SQL queries into a single one (one is a mean value calculation and another search criteria with BETWEEN
I’m setting up a system that finds providers in a specific region, calculates the average value charged by them and brings this value. But before that he will only pick up the providers that are…
-
5
votes1
answer164
viewsReturn of SQL command
I need to select in my database all printers compatible with a selected supply, for example, the code supply 155 who is called 50FOZ00. I do the query below to select all compatible printers: SELECT…
-
5
votes3
answers1170
viewsGenerate 5 digit combinations
How do I generate 5 digit php combinations ranging from 0 to 9? In that same, in the future want to add letter, as it should be done?
-
5
votes2
answers326
viewsRegular Expression R
I have a variable that indicates the year of Elementary School that a student is attending, but this variable was not fulfilled in a single way. For example the 1st Year of Elementary School because…
-
5
votes2
answers10554
viewsSelect with "different" expression with two conditions
I wonder if there’s any way to make a select using a where for a field with the parameter other than < >, where it has two or more items. To facilitate follow example: select * from…
-
5
votes1
answer663
viewsHow to export data from R directly to sql server?
Friends, I consumed a web service with R and now I need to export this data directly to sql server. How do I?