Most voted questions
150,413 questions
Sort by count of
-
6
votes3
answers2496
viewsHow do I find the C# version I’m using?
I wanted to know how to find out the version of C# I’m using.
c#asked 6 years, 7 months ago Wallace Maxters 102,340 -
6
votes1
answer900
viewsDaylight Saving Time date conversion
Currently in my system I use the following code, to convert the dates coming in ajax. new Date(parseInt(data.replace(/\/Date\((-?\d+)\)\//, '$1'))) Where the variable data is a string that comes in…
javascriptasked 6 years, 7 months ago Jeferson Almeida 3,076 -
6
votes3
answers1996
viewsOpen external videos(mp3/mp4) with PHP
Hello! I am using a "player" (in php) to open my external videos. However the user does not have control of the length bar of the video, he can not have control, nor return the video, nor advance,…
-
6
votes2
answers2605
viewsHow to insert an HTML file with [innerHtml] and maintain Angular attributes
In my Componente i receive an HTML in the form of String and use [innerHtml] to insert this HTML in the Component View. Component: test(){ alert('Teste :D'); } html_string = '<input type="button"…
-
6
votes2
answers905
viewsHow to create a sequential number that does not repeat, per user
Work on a bill issuance project, in this project exists the entity Emissor. My database Sql-Server may have several emitters. Each issuer can issue their tax bills. Each invoice shall have a…
-
6
votes1
answer200
viewsSearch for people with similar names
I am developing code to search for people names intelligently using SQL SERVER LIKE operator. In names like Souza and Sousa just use brackets [] Ex.: select * from pessoas where nome like 'joão…
-
6
votes4
answers320
viewsFlatten lists. Is a more concise solution possible?
I solved the following Python exercise: Implement a function that receives a list of length lists any and return a list of a dimension. The solution I was able to make was this:: #!/usr/bin/env…
-
6
votes1
answer819
viewsLink address with GPS applications
Guys I’m having a question, I’m developing an ad platform and I came across an issue here. My advertiser registers on the platform fills in the information puts your address and a google map my…
-
6
votes4
answers409
viewsSeparate text by space except inside quotation marks
I’m trying to use a regex to separate the texts separated by space, except those inside quotes, for example: Entrada: texto1 texto2 "texto3 texto4" texto5 Saida: Array("texto1", "texto2", "texto3…
-
6
votes1
answer617
viewsWhat is a Distributed System
In my distributed system class, SOAP and REST web-services and other topics in this field are discussed. However, I can’t understand what a Distributed System, I don’t know if it’s a combination of…
terminologyasked 6 years, 8 months ago gato 22,329 -
6
votes2
answers663
viewsWhere to create a Helpers layer?
I need to create a layer Helpers which will contain classes that will be made available for the entire project. These classes will contain functions such as calculations, wipers of string, anyway,…
-
6
votes1
answer304
viewsWhat are the delegates?
In iOS programming it is common to use structures that act as delegates. One of them, for example, is the UITextFieldDelegate. This class, according to documentation, informs the implementor of…
-
6
votes1
answer1536
viewsDirective differences in Angular
I would like to know the difference between the statements of directives. For example: ng-for="" *ngFor="" (o que é esse asterisco?) ngFor="" [ngStyle] I’ve seen and used them, but I haven’t found…
angularasked 6 years, 8 months ago Marco Garcia 332 -
6
votes3
answers14615
viewsHow to remove a Foreign key in mysql?
I need to edit a table, but I cannot remove it. I need to remove Foreign key, however, all commands I tried did not work. I’m currently trying to alter table tabela drop foreign key nomefk And the…
-
6
votes1
answer92
viewsWhat’s wrong with that code?
My college professor gave us this code and was asked what’s wrong: public class Teste { private static Teste INSTANCE = null; public static Teste getInstance() { if ( INSTANCE == null ) { INSTANCE =…
-
6
votes2
answers3207
viewsWhat are the differences between ASP.NET MVC and ASP.NET Razor Pages?
What are the differences and limitations between ASP.NET MVC and ASP.NET Razor Pages? I was very curious, because apparently the Razor Pages use the MVC standard, but without the need to use a…
-
6
votes1
answer290
viewsGenerate an APK on a server
I was thinking of an architecture that would work as follows. The user would have a series of parameters to fill and generate code automatically, then to click on in a Buttom, be it in version web…
-
6
votes1
answer991
viewsWhy insert a blank line at the end of the code?
Most linters from different programming languages, such as Rubocop (Ruby) and Jslint (Javascript) recommend a blank line from the end of all code files. As an example, Rubocop:…
-
6
votes2
answers1725
viewsHow to increase number to fractional power?
I would like to know how to raise a number to a fractional power, for example 2^2.5, 3^0.7 ? For positive integers it works more or less like this : #include <iostream> #include <math.h>…
-
6
votes1
answer23929
viewsHow to get the ngFor index value
Could help me in a doubt, I have a form with an array where there is the FormControl "id". Is there any way to receive the value of index to fill in this field? <tr *ngFor="let item of…
angularasked 6 years, 9 months ago Felipe Hideo 82 -
6
votes1
answer1578
viewsWhat is an embedded database (Embedded)?
what is an embedded database, and what we call the "unbuilt"? For example: I’m trying to create a database by the H2 Database Engine, and it has two database options: Embedded or Server. You could…
-
6
votes3
answers2884
viewsREGEX - Capitalized words in the middle of the sentence
Is there any regex/replace to uppercase words in the middle of the sentence to lowercase? (Yes, I could pass everything to Lower) but there is a catch, the rule should be ignored if the word is…
-
6
votes1
answer691
viewsGIT error sending project to Ionic Pro: fatal: sha1 file '<stdout>' write error: Broken pipe
I signed Ionic Pro and I’m trying to send my local project to their Cloud. I use the command: git push ionic master It starts all right but makes the mistakes to follow: git push ionic master Enter…
-
6
votes1
answer172
viewsText around image/round div
I’m in doubt on how to get the text around the round/div image. Follow the example: Maybe we could start like this: html <div id="texto-esquerdo"> <p> Lorem Ipsum é simplesmente uma…
-
6
votes1
answer187
viewsWhat is the Spectre?
The Spectre is a security breach that compromises a large amount of systems. What is? How it works? What kind of systems and devices are vulnerable? What can be done to defend yourself against him?…
-
6
votes3
answers390
viewsIs it possible to place objects in an Arraylist as soon as instantiated?
Doubt applies not only in one ArrayList, but in any kind of List. It is possible to add objects to ArrayList soon after we instantiate it, and without having to use the method add()? As can be done…
-
6
votes1
answer142
viewsIs it worth using binary operators to gain performance?
I have the following situations: if (1 & 1){} and if (1 == 1){} According to what I’ve learned, working with bitwise Operators causes a much better performance in the program, with this I came…
-
6
votes1
answer218
viewsRemove comment lines from TXT files
I wonder how to remove comment tags from files TXT with PHP, someone could help me? I’m having this problem in reading txt files that are displaying comments. PHP code: function…
phpasked 6 years, 9 months ago João Vitor Pereira 105 -
6
votes1
answer87
viewsSymbols in compilation time
When compiling only with -c and when displaying the symbols with $nm ficheiro.o, what the symbol means C and which section is assigned to it? I have read that it means that the symbol is common and…
-
6
votes1
answer56
viewsWhen to choose between using a string wide or not?
When using a string wide (std::wstring) or a string normal (std::string)?
-
6
votes1
answer219
viewsHow to communicate tabs with an extension/add-on and store variables?
I want to be able to communicate tabs with an extension and go storing values in variables and share these values between tabs, how can I do this? Note: This is a tutorial question, read more on: I…
javascript google-chrome-extension firefox-extensionasked 6 years, 10 months ago Guilherme Nascimento 98,651 -
6
votes3
answers1943
viewsRun Python and C# together
How can I in C# import, ie, execute some script in another language (Python)? Example: If you write "R" in a C#program, it executes a file if called ApertouR.py.
-
6
votes3
answers14621
viewsTable does not break the line
Here’s what I’m using a table from the site: Datatables and here’s the deal: As you can see the text gets all in line which makes it difficult to read because you have to scroll my doubt is how do I…
-
6
votes1
answer3103
viewsExcel - VBA sum +1 to line
I have a question . I’ve been testing the macros to fill out a database but I’m having a problem. ID - Name ZZ1 - A ZZ2 - B How do I add this automatically? (now ZZ3) I have the following code that…
vbaasked 6 years, 10 months ago ChrisAdler 1 -
6
votes2
answers490
viewsDifference between Activity and Content
I do not know if this is the right place for this, if it is not for guidance where I take this doubt. I’m learning to develop apps in Android Studio, and I’m following some tutorials. Some cases…
-
6
votes1
answer35
viewsNumber of queries in a dataframe
I have a data frame where in each column is the value of events in the period, I need to calculate the increment and the decrease of these periods for a larger basis and I could not do: p1<-…
-
6
votes1
answer298
viewsPerformance differences between structs and classes
I know the difference between structs and classes is that structs has its public members by default, and that structs belong to C (but nothing prevents use in C++). In practice when creating an…
-
6
votes1
answer281
viewsWhat is the difference between Prototype and an Object?
I use new to create objects in javascript and for what I noticed very superficially there is not a big difference between the instance with new and using the prototype. What’s the difference and…
javascriptasked 6 years, 10 months ago Marcelo Batista 1,617 -
6
votes1
answer4113
viewsCount of a specific character in a word in Python 3
I recently asked a similar question, but I received answers where my input was supposed to be a number. Is it possible to count how many specific characters you have in a word? As in "example" you…
-
6
votes3
answers6131
viewsHow to Save Data with Asyncstorage
I’m trying to save the mobile data without using a database. I found the AsyncStorage but I’m not able to implement. saveData(){ let usuario = 'Usuario Top'; AsyncStorage.setItem('usuario',…
-
6
votes1
answer873
viewsEntity Framework Update Database
When executing the command Update-Database I have the following error Could not load file or Assembly 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, Publickeytoken=b03f5f7f11d50a3a'…
-
6
votes3
answers342
viewsWhy doesn’t the while stop?
#include <stdlib.h> #include <stdio.h> int main() { int i,j; char elenco[30]; while(elenco[i]!='s' || i<=20) { printf("indique um menbro do elenco ,se quiser sair escreva apenas a…
-
6
votes2
answers2606
viewsCheck whether the previous day is a holiday and/or Sunday
I’m having trouble developing a date validation logic. The variable dataFecha is called with -1 day to already validate the previous day. But when I go to test the validations, he did not subtract…
-
6
votes2
answers3622
viewsColumn 'XXX' in field list is ambiguous
I am having trouble executing the following Query: SELECT product_id, presentation FROM Variant INNER JOIN productCategory ON product_id = product_id LIMIT 10; Error: ERROR 1052 (23000): Column…
mysqlasked 6 years, 10 months ago J Junior Carneiro 101 -
6
votes2
answers6385
viewsWhat does the HTTP Error 403.14 mean?
Well, I have a Web Api, which is configured as follows: WebApiConfig.Cs public static class WebApiConfig { public static void Register(HttpConfiguration config) { // Web API routes…
-
6
votes1
answer667
viewsWhat is SSH and what are its advantages over HTTPS?
Some services offer client-server connection through SSH (Secure Shell). What is this SSH? One case is Github, which recommends SSH even though it already offers HTTPS, but HTTPS seems much easier…
-
6
votes2
answers1773
viewsWhat is the Retrofit?
I am using the retrofit in an application to consume a Java Web Service and I am in doubt: Retrofit is a library or API?
-
6
votes1
answer754
viewsRemove file extension, not to be seen by user
How would I make the file extension not be viewed by the user? Example Once the user finishes the registration, it will be directed to the page confirmacao.php, but I would like the extension .php…
-
6
votes1
answer1909
views -
6
votes1
answer169
viewsIntelligent Pointers
I was studying smart pointers and based on this blog: https://murilo.wordpress.com/2008/12/15/smart-pointers-os-ponteiros-espertos-do-c/ #include <iostream> template <class T> class…