Most voted questions
150,413 questions
Sort by count of
-
7
votes1
answer4748
viewsVisual Studio Indentation Configuration
I’m starting to program C# in the VS (if anyone knows a better IDE, thank you) and he has a peculiarity that is irritating me: I use key indentation as follows: for(;;){ //code } But the VS, when…
-
7
votes1
answer6590
viewsFunction "change" with <ion-select><ion-option>
all right? I’m struggling, I hope you can help me... I’m studying Ionic 2 a little while and thought I’d make a simple application. In Javascript I managed to do it quietly, but with Ionic does not…
-
7
votes2
answers1503
viewsHow to identify the MVC version?
How can I identify the MVC version I’m using in my project?
-
7
votes3
answers69151
viewsVectors in Python
Okay, I’m coming from line C, and I’m having a hard time creating vectors in python. In C if I write vet = [5]; I would create a vector called vet with 5 indices. I wish I knew how to do this in…
-
7
votes1
answer51
viewsOperator "and" for class assignment
Looking at some Github repositories I found this repository for generation of boletos with php and within the class Cedente I was struck by the use of the word and within the function construct in…
-
7
votes2
answers2689
viewsRecursive Functions in Javascript
Could someone please clear me of a doubt ! function recursiveFatorial(x){ if (x == 0) return 1; else return x * recursiveFatorial(x-1); } console.log("Resultado da funcao recursiveFatorial:…
-
7
votes2
answers213
viewsHow to remove img tags from text?
I need to remove all img tags from javascript text. So the images don’t come. Note: The text is random. Like: Vestibulum varius lectus a ante euismod <img src="teste2.jpg"> cursus. Nam sed…
javascriptasked 7 years, 6 months ago Paulo Rodolfo 336 -
7
votes2
answers3003
viewsWhat is the difference between Webhooks and a REST API?
In a API REST We define a resource to receive data and then return some response. And to send a message to a webhook, we make a request and also receive a reply (depending on the case). You both do…
-
7
votes2
answers604
viewsPDF to text organizing columns
I am scraping to extract files .pdf, and I need these files as an organized text, since for each line of text in the file there are 3 different columns. For example in this file, you can see the 3…
-
7
votes1
answer482
viewsReturn last value inserted in table where value is not Identity?
I would like to return the last value of the primary key entered in the table, but my primary key is CPF so I can’t use SELECT SCOPE_IDENTITY().
-
7
votes2
answers56156
viewsHow to center all content of a div - Bootstrap
Hello. I am learning how to use the bootstrap. In my studies I had a question. If there’s any way to centralize the entire contents of a div. I have sample codes... <!DOCTYPE html>…
-
7
votes2
answers441
viewsQuery that returns if the child has inherited the parent’s and/or mother’s surname
I have a scenario that I need to sort my records where: The child inherited the surname of the father and/or his mother? Note in the image that if one of the child’s surnames exists in the parent’s…
-
7
votes1
answer1806
viewsReportviewer MVC Core
I am working on a project using ASP.NET MVC Core. I installed all the necessary dependencies for the use, but it does not allow to be used in my application. However, if I create a new MVC5…
-
7
votes1
answer107
viewsCompare Strings by format not by value
I have a shape of a String, for example: xxxx-xxxx-xxx But instead of the x can enter several letters or numbers, example: A216-0450-013 X2LP-1018-589 Y585-0000-047 What I need to do is compare to…
-
7
votes2
answers7126
viewsHow to create an executable for a python program that installs the used libraries?
Hello, I have a code I made in python and it uses some libraries. I wonder if it is possible to make an executable for this program and q user q uses it n need to have python or these libraries…
-
7
votes2
answers930
viewsUnderstanding the documents of a SOAP web service
I am working with a system that offers integration through web service, more precisely SOAP. He provides me with some Urls, which, from what I understand, provide access, describe and document the…
-
7
votes2
answers1595
viewsORM (Eloquent) in Laravel 5.x VS Microservices architecture. How to develop web services using Eloquent that consume end-points of an API?
Consider the following architecture: This is a very modern model where the API offers end-points for different services to transact with the database. I am a begginer user in Laravel, so my question…
-
7
votes4
answers16556
viewsGenerate random numbers in Python without repeating
I have the following situation: I have a vector with 4 indexes. In each index a random value is generated from 0 to 100. I have a code that does this perfectly, but sometimes the numbers repeat.…
-
7
votes2
answers7285
viewsHow to paste clipboard text into vim?
Researching the Cheat sheet of some places, I discovered how to see the transfer area (the Registers) no vim, :reg. However, I could not use these records, even using the commands demonstrated on…
-
7
votes3
answers1306
viewsDiagram of class MVC
I am developing a web system in php, where all controllers extend their respective models, for example: I have a user Control and a user?. Another question, my model methods are all protected,…
-
7
votes1
answer6487
viewsHow does a function run automatically without being called?
I can create a Javascript function and call it as follows: funcaoTeste = function() { console.log('Ola funcao teste'); }; funcaoTeste(); To perform the function I need to call her funcaoTeste(),…
-
7
votes4
answers18311
viewsHow to flip (mirror/flip) an image
Well, I need to invert an image preferably if possible with CSS. I don’t know if it’s possible. I wanted to point the arrow to the left. Thank you…
-
7
votes2
answers1555
viewsShow zero on the left using the Tostring method
I have roughly the following code implemented in c#: using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Teste { public class Program {…
c#asked 7 years, 6 months ago HenriqueNeves 73 -
7
votes11
answers37801
viewsCompute sum of digits of a number
Type a program that receives an integer number in the input, calculate and print the sum of the digits of this number in the output. Example: >>> Digite um número inteiro: 123 6 Tip: To…
-
7
votes1
answer247
viewsCss in inputs using Affordance principles
To facilitate the development of responsive forms it is very common to put 100% width on inputs, and control their size through the width of a div as container, this technique helps when…
-
7
votes1
answer246
viewsHow do I stop watching the changes in a particular file?
The scenario is as follows. I work on a project that contains a JSON file with database configuration. Something like: { "db_config": { "conn_string":…
-
7
votes1
answer605
viewsHow to login without using the Identity standard?
An update on Api of Facebook made the default login form of Identity stop working. The way I’m doing that stopped working is like this: public void ConfigureAuth(IAppBuilder app) {…
asp.net-mvc asp.net-mvc-5 api facebook asp.net-identityasked 7 years, 7 months ago Renan Carlos 1,594 -
7
votes2
answers1557
viewsDoes Node.js compile the Javascript that runs on the server?
According to V8 documentation, it compiles Javascript for machine code, as an optimization strategy. Thus, the Javascript that runs on the server via Node.js is compiled or interpreted?…
-
7
votes3
answers1974
viewsHow to add more products?
I’m creating a personal "sales" system for my father’s company. I’m just having a problem. I can only sell one product at a time, I’m new to PHP so it doesn’t have much to do. I want to make a…
phpasked 7 years, 7 months ago Andre Junior 85 -
7
votes1
answer10500
viewsWhen to use lists and when to use tuples?
What’s the difference between the types list and tuple in Python and when to use each?
-
7
votes1
answer6958
viewsWhat would be a PID?
I’m starting to study desktop applications. I had a certain question about how I could know if a particular application is running and I was told that I could use the PID, as a solution, to detect…
-
7
votes1
answer3111
viewsWhat good is an Inker?
Some languages use a Linker or likeditor as it is also called. What is its function and its relation to the compiler? Why some languages do not have a Linker?…
-
7
votes1
answer8172
viewsHow to catch setar/catch object in localstorage?
I’m sending a JSON object to localStorage: window.localStorage.setItem('tarefa',aux); And I try to get this object in another controller like this:…
-
7
votes2
answers837
viewsHow to implement a class to use Preparedstatement through it?
I have the following class Connect.java package util; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; import…
-
7
votes3
answers36730
viewsError pushing origin master on github
I have the following error in github when I’m going to push. Please make sure you have the correct access Rights and the Repository exists. I created the repository and as I was already with the…
-
7
votes2
answers1003
viewsSwift 3 / Xcode 8 - How to change the native language of my App?
I’m finishing an application and I couldn’t help but notice that some components of my app are in English: How to change the app’s native language? How to make it change automatically according to…
swiftasked 7 years, 7 months ago outrowender 164 -
7
votes1
answer507
viewsCustom HTML attributes
I am developing a system aimed at managing public tenders and I need it to be compatible with as many devices as possible. In some situations it was necessary to use custom attributes, example:…
-
7
votes2
answers10403
viewsHow to separate a string into pieces?
In other languages there is split, explode or something like that string in pieces according to some separator. There is something ready in C or I have to do in hand?…
-
7
votes1
answer9516
viewsHow to change the version of PHP in which Composer runs on Linux?
I installed Composer on my Ubuntu via the following command: apt-get install composer Ubuntu currently supports multiple installed PHP versions. I have PHP5.6, PHP7.0 and PHP7.1 installed on my…
-
7
votes1
answer443
viewsSome of the real solutions to render lock error and improve performance
Well, lately I’ve seen, in articles about performance, some Angouts, and also in groups on social networks, about such a "blocking of rendering content above the edge". But what is this mistake ?…
-
7
votes2
answers820
viewsWhat is type and state inheritance?
Recently in a Java simulation, I came across a question related to inheritance classification, which I had never seen before. Taking the opportunity, I will separate into topics, so that the answer…
-
7
votes2
answers2370
viewsWhat is the difference between directives (Directive) and components (Component)?
It seems that in more recent versions, in addition to the method directive, Angular 1 also has a method called component. I would like to understand the main differences between one and the other.…
angularjsasked 7 years, 7 months ago Wallace Maxters 102,340 -
7
votes1
answer1549
viewsDaily notifications at a specific user-defined time
I created a method to send a notification to the user with the name sendNotification() using NotificationCompat.Builder and NotificationManager. I need this notification launched every day at…
-
7
votes1
answer154
viewsHow is the process of installing the letsencrypt.org certificate on Linux on Apache servers?
I really liked the idea of using the certificate from letsencrypt.org. I found several tutorials on the internet, including that in Digital Ocean. All the steps worked correctly, but since I don’t…
-
7
votes3
answers160
viewsCheck if you have more than one character in a String
How can I check how many "@" you have in a string? example: "@Teste @Teste" has 2 @, how can I do this java check?
-
7
votes1
answer494
viewsWhat is ABI? Does it have anything to do with API?
I am reading that answer because I am currently studying C++. I was trying to understand the difference C and C++. In the quoted answer, I came across the term ABI. Until then I knew about API, but…
-
7
votes2
answers408
viewsWhat is Strategy Pattern?
I was reading about Strategy Pattern, however, I could not understand it very well and I was confused about its functioning. Doubts What is the Strategy Pattern? In which scenarios should I use it?…
-
7
votes1
answer17403
viewsWhat is the best way to concatenate strings in Python?
I know I can concatenate strings with +=, +, join() and append(). They all give me the same result when I concatenate two strings. What is the best way to concatenate Python strings? What is the…
-
7
votes1
answer4876
viewsCustomizing a user model Laravel 5.4 - Login problem
I tried everything already, but I can’t solve a problem in the login system Laravel which is this: I created a model called Usuarios, I put all the information in it that has to be properly placed,…
-
7
votes3
answers6007
viewsHow to Customize Password Recovery Email (Laravel 5.4)
As I can customize the Laravel 5.4 password recovery email, I need to change the language but can’t find the place to edit.