Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer107
viewsHow to search data from a third table based on the associative table
To put it in context: I have a table called principal and another called school. There are schools that directors who are registered with the name of the school. In this case, these schools are…
-
4
votes4
answers9035
viewsMask Car plate in jQuery
I did not find on the Internet a mask in the format BBB-1234 for car plates, the ones I found only validate when the field loses focus and even then only say if it is valid or invalid. You’d need…
-
4
votes1
answer1263
viewsConcatenation of two chained lists
The problem is: Write a program and make a function to concatenate two lists of integers into a third list that must be returned by the function, in C#. My doubt is only on how to concatenate the…
-
4
votes1
answer1191
viewsHow to change font properties in javascript
I need to change the font format and play up the image icon. Text displayed by: label: beach[7] for (var i = 0; i < locations.length; i++) { var beach = locations[i]; var myLatLng = new…
-
4
votes2
answers75
viewsReturn a case sensitive record
I own a constraint in the bank that is all with your name capitalized. As I do a count to find the same one using the UPPER? 'Cause I want to pass the where a tiny name to return. This one of mine…
-
4
votes1
answer1302
viewsWhat does - - mean in git checkout?
When we use the git checkout nomedoarquivo what difference with git checkout -- nomedoarquivo? I don’t know what changes using that --?
-
4
votes3
answers750
viewsIs it correct in a DTO class to have attributes of two or more tables?
I need to return in a REST data of two tables, to be consumed in an Android/IOS App, developed with Xamarin. As I return a DTO, I thought to bring in this DTO data of two tables, but I find this…
-
4
votes5
answers2275
viewsHow to reduce the search time in a table with more than 200,000 records?
I’m trying problems to list and search data table with more than 200 thousand records. I read in researches, that for the search system, the ideal would be to make indexes of type "fulltext" in the…
-
4
votes1
answer3926
viewsGenerate PDF Base64
I have an Laravel API that generates a PDF with Snappy dock. Works perfectly on Chrome linux but in windows that has the newest version of Chrome does not work, Chrome only opens a blank page. I get…
-
4
votes3
answers1301
viewsWhy are you concatenating instead of adding?
My code is concatenating instead of adding. What is the error? var cFinal = 0; var cFabrica = prompt("Insira o valor de fabrica do veículo"); var comissao = 0.28 * cFabrica; var imposto = 0.45 *…
javascriptasked 7 years, 2 months ago NegoWell 121 -
4
votes2
answers1404
viewsWhat’s the "self" for?
I am studying Python to complement my programs in Nodejs. But why in Python, a language that values the speed of development and ease of code, is used the self? Simple self use example class…
-
4
votes1
answer779
viewsPWA - How to use beforeinstallprompt event?
I have a Progressive Web Apps and am trying to create a function to know how many users "install" or not my app. According to the documentation…
-
4
votes2
answers1212
viewsCheck out of Base64?
I’m making an email application (Hapijs) and found that some emails have his text encoded for Base64, but others do not. In this application I will need to receive emails from all services (Gmail,…
-
4
votes1
answer71
viewsEmail invitation is not enough - Gitlab
I need to add another developer in the gitlab but I invite you and no email invitation reaches his e-mail. Is there any way add one member other than by email?…
gitlabasked 7 years, 2 months ago Junior Vilas Boas 353 -
4
votes1
answer1398
viewsWhen to use String and Stringbuilder
There is another question about What is the most appropriate way to concatenate strings?. It explains the possible types of concatenations in C#. But when should we use System.String and when we…
-
4
votes1
answer9032
viewsHow to pass an array as a parameter to function?
How do I pass an array as a parameter to a function? This way I did not work. var arr = [7,4,2,12,10,9,17,20]; function soma(num1,num2) { resul = num1 + num2; return resul; }…
javascriptasked 7 years, 2 months ago Antonio celso vieira 49 -
4
votes3
answers759
viewsThe null value automatically becomes 0
I’m doing a vehicle registration, I need it to register put that whenever a vehicle is registered the value zero instead of putting the value null, I tried by default, but it does not record the…
-
4
votes1
answer107
viewsBeginform from ASP.NET does not apply route mapping when making the request
I have a route problem(again), I use the ASP.NET MVC5, and I have the following route mapped: routes.MapRoute( "Search_route", "Home/Search/{search_input}/{search_input_category}", new { controller…
-
4
votes1
answer381
viewsWhy aren’t my custom error pages being called?
My custom error page is not being called. OS: Linux Ubuntu PHP 7 / Laravel 5.5 I already created the folder "Resources/errors" and in it the file "404.blade.php" I already gave permission in the OS…
-
4
votes2
answers178
viewsHow to update all records of all tables that have FK of a table
I have the following tables: CREATE TABLE Contrato ( [Id [int] NOT NULL IDENTITY, [Nome] [varchar](150), [Ativo] [bit] PRIMARY KEY ([Id]) ) CREATE TABLE [dbo].[ItemContrato] ( [Id] [int] NOT NULL…
-
4
votes1
answer167
viewsAdd elements to a List<? extends Number>
Why it is not possible to add elements to a list of type List<? extends Number>? for example : public class GenClass{ public static void main(String args[]){ List<? extends Number>…
-
4
votes1
answer51
viewsHow to set content at position 0 with field disabled?
I need that when my component receives a text (it will receive through a query), the text is "set" at the beginning of the field, because in many cases, the text is extended and the beginning is…
-
4
votes0
answers285
viewsService returns me cast error when consumed
I decided to make another post, since the subject is another, although in the original post, in the comments we touched on the subject, but no depth. I have that mistake:…
-
4
votes2
answers1359
viewsSearch specific value within a file . txt C#
I have a. txt file with the following lines: 000-000 = CRT 001-000 = 00000021 009-000 = 00 012-000 = 247823 013-000 = 0000559877 022-000 = 24082017 023-000 = 152842 032-000 = 80F1 100-000 = JORGE…
-
4
votes3
answers2297
viewsPython 3 make the program find out how much of a given digit is in a string or a number
It’s for python 3: I’m trying to make a very basic program to find out how much of a given digit is in a string or a number. For example, if the user writes 1200, I want to print-"your number has 2…
-
4
votes2
answers254
viewsCRUD with images , working with Httppostedfilebase and byte[]
We are using Entityframework with Codefirst and Database Postgresql. There are some tables that should save images, and the POCO classes are referenced as byte array. Up to that point all quiet. I…
-
4
votes3
answers6672
viewsValidate file extension
I have a code that checks the size before sending the file, I would like to know how to check the file extension together, for example, I need these extensions .jpg, png, .gif, .pdf, .txt, .doc,…
-
4
votes3
answers1569
viewsCommand suggestions in Vscode
I am programming in React-Native using Visual Studio Code, in the extensions I installed Eslint Javascript (ES6) code snippets jsx React Native tools React-Native/React/Redux snippets for es6/es7…
-
4
votes2
answers481
viewsPush() does not work in Vuejs?
I need to push() the data of Vuejs and make it add another object in the object array it has there. But when I click on the button I programmed for you to push() it just doesn’t. Follows code:…
-
4
votes1
answer2872
viewsWhat does " :: " mean in PHP?
In PHP, what do these four dots mean "::" ? I see a lot in things like: stackoverflow::class
-
4
votes1
answer61
viewsIs it possible to use the DOUBLE data type on 32-bit systems?
The type of data DOUBLE is a 64-bit floating point, but can be used on 32-bit systems without any problem?
-
4
votes1
answer64
viewsHow to format the day of the week to not show symbol in PHP
How to exchange the symbol � appearing on Tuesday by a C? My code below: <?php setlocale(LC_ALL,"pt_BR", "pt_BR.utf-8", "portuguese" ); date_default_timezone_set('America/Sao_Paulo'); echo…
-
4
votes3
answers187
viewsHow to understand and deal with the cost of Azure?
I’ve known Azure for a long time, read a lot and watched several videos but never used it. What I know about payment is that you only pay for what you use. It turns out that recently an acquaintance…
software-engineering windows-azure asp.net-core project-management microservicesasked 7 years, 2 months ago SomeDeveloper 18,074 -
4
votes1
answer278
viewsIterate over two List optimally - Algorithm Optimization O(n²) C#
I need to iterate over two lists and compare the values contained in both. But the way I’m doing it is taking a lot of time, because the greatness of my algorithm is O(n²), follow below more…
-
4
votes1
answer359
viewsWhat is the main difference between the Knuth-Morris-Pratt and Boyer-Moore algorithms
I know that the KMP(Knuth-Morris-Pratt) is used to find a Y text in X, tries to define a pattern in Y, and then saves this pattern in an array. And I also know that the BM(Boyer-Moore) works best…
-
4
votes1
answer375
viewsHow do I receive emails in my web application?
I am making a web application (front-end in Vuejs/Quasar and server in Hapijs) and I need it in addition to send also receive emails. I am sending it through the Nodemailer library, and it is…
-
4
votes1
answer599
viewsHow to pass an array in php’s Query function?
Well, I need to spend two in the php query, but I can’t pass them otherwise: $coluna = implode( ',' , $colunas); $date = implode( " ',' " , $dates); $teste2 = "'$date'"; //O teste2 está gerando algo…
phpasked 7 years, 2 months ago Lucas Souza 119 -
4
votes1
answer125
viewsIs it correct to use PHP code in the view layer along with HTML?
I’m starting now in the area and I have a college job to do and it is necessary to use the MVC standard, I have even separated things well, but I came across the following code in a file of my layer…
-
4
votes1
answer549
viewsAjax Request Does Not Work - Success Does Not Work
I did the following function: $("#CategoryList").change(function () { $("#SubCategoryDropDown").empty(); $.ajax({ dataType: "json", url: '@Url.Action("GetSubCategory", "ProjectSubCategories")',…
-
4
votes4
answers837
viewsProblems with conditional structures
I started programming a little while ago and I’m doing some Python exercises. The problem is that the result variable always returns "Approved" even when the concept is "D" or "E". I’ve broken my…
-
4
votes2
answers270
viewsTransition does not work in Javascript
The 'Transition' option does not work in this code What’s wrong? If you can explain where I went wrong I wanted her to come out slowly <!DOCTYPE html> <html> <head>…
-
4
votes1
answer234
viewsWhat is the difference between pull-based and push-based Development?
What is the difference between pull-based and push-based Development in software engineering? This refers to Git as well?
-
4
votes1
answer101
viewsRegex custom python time 3
I need to create a regex that accepts the following entries: 8:00 8 horas 8h 8h30 (8h 30) 8h30min (8h 30 min) 8h30minutos (8h 30 minutos) and I arrived at the following: ((\d{1,2}:\d{1,2}) |…
-
4
votes1
answer672
views.Net Core, Dapper and Visual Studio Code?
I’m trying to integrate Dapper into the. Net Core, but I’m not getting and all the tutorials I found, were made in Visual Studio, using Nugget. Then someone could explain me how to import Dapper…
-
4
votes3
answers2608
viewsProblem using include php different folders
First I apologize for not being able to express myself correctly, I am learning php yet and I came across the following problem. I’m setting up a site for studies and at the root I created the…
-
4
votes2
answers8261
views -
4
votes3
answers226
viewsDoubt in git usage
We’re migrating our version control from Subversion to Git. I’m finding the following problem, we have a large project with several developers, our flow uses the branches: Master, Develop and…
gitasked 7 years, 2 months ago Wagner Sorio 49 -
4
votes2
answers145
viewsLeaking memory in PHP
Leaking memory or Leaky memory occurs when a computer program does bad memory allocation management such that memory that is no longer needed is not released. I’d like to understand how the Leaking…
-
4
votes3
answers124
viewsSelecting Active Batch
I’m studying about appointments at Sqlserver and have the following scenario: I have a lot table that has the following fields: Table of Lot (Lot) Id INT ProdutoID INT Preco SMALLMONEY Inicio…
-
4
votes1
answer552
viewsCalculate the sum of repeated elements in Angular-JS using ng-repeat
In the code below is displayed a list of expenses using ng-repeat. For each element the description and value are shown. What’s the simplest way to show this total? <table class="table…
angularjsasked 7 years, 2 months ago veroneseComS 2,752