Most voted questions
150,413 questions
Sort by count of
-
7
votes3
answers1639
viewsDate format in an NF-e
I am developing from a screen that will generate an NF-e and at the time I went to work with the dates I discovered that they need to be sent in a specific format that I do not know or found…
-
7
votes3
answers972
viewsWhy are there so many ways to check if a value is NULL? How to standardize?
There are certain things still that do not enter my mind regarding PHP. Because there is a function is_null, when we can simply compare the values using a comparison operator. For example $variable…
-
7
votes1
answer9427
viewsI can’t update my app on google play?
I know it is necessary to change the version number, but when I make the change and try to generate an apk gives error and shows me a message... Error:XML version "2.0" not supported; only XML 1.0…
-
7
votes3
answers2670
viewsKnow the frequency of words
Hello, I wonder if there is a function/command in R that I can know which are the most frequent words in a text and how often it appears. For example, I have a very large database, but it is a…
-
7
votes3
answers2527
viewsHow to determine the sort of accented characters in Mysql?
My table uses "utf8-general-ci" so all accents are OK. But when I have for example Aa, Ac and Áb and I want to filter "in alphabetical order", the result is: Aa Ac Áb About Excel, the result is: Aa…
-
7
votes1
answer185
viewsWhy does this query return *?
Why this query returns to me *? select convert(varchar(2), 141) I thought it was the ascii table, but the 141 doesn’t match the *. Utilise SQL Server 2008 R2…
sqlasked 9 years, 8 months ago Diego Zanardo 3,301 -
7
votes1
answer4280
viewsError $HTTP_RAW_POST_DATA is deprecated
After upgrading PHP to version 5.6 I started receiving the following message: Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be Removed in a Future version. To avoid…
phpasked 9 years, 8 months ago Guilherme Nascimento 98,651 -
7
votes2
answers579
viewsIs it possible to use stylesheet in an app?
I’m starting a development in Eclipse, however the style is very ugly, borders, letters etc. You can use CSS on Android?
-
7
votes2
answers415
viewsFluent API with ASP.NET Identity
In accordance with this tutorial, I transported Identity in a class library to encapsulate the system’s business rule. However, the entire system is using Fluent API to map the entities and Identity…
-
7
votes3
answers190
viewsSeveral tables that should represent a single entity
I am updating a system that has eleven tables that represent a single entity, I believe by implementation error, as an example below: Entidade: Foo Tabela Foo1 - Campo1, Campo2, Campo3 Tabela Foo2 -…
-
7
votes3
answers2732
viewsWhen and how to use protocols and delegates?
Could someone please explain to me in what situation and how to use delegates and protocols, I’m a little confused when to what I’ve read around, Thank you!
-
7
votes2
answers1844
viewsHow to declare an anonymous function in Python?
How do I declare and how an anonymous function of Python?
-
7
votes1
answer1470
viewsHow to commit only to a piece of a file in Git?
When modifying multiple parts of a file, you can commit to just one piece (for example, a new function)?
-
7
votes2
answers5383
viewsHow to select all characters except some specific words using regex?
Good morning to all, I would like to run a string search for some specific strings, but in the project we are working on we have no access to any function find or similar, only to a regular…
-
7
votes3
answers3350
viewsAdd event to multiple elements without being inside a for loop
I wonder how you would add an event click to all links with the same class without using jQuery, and without this event click is inserted within a loop for. The reason is this: don’t use functions…
-
7
votes2
answers189
viewsWhich Exception should I release according to each situation?
In PHP, we have several types of exceptions that can be released. Among them: BadFunctionCallException BadMethodCallException DomainException InvalidArgumentException LengthException LogicException…
-
7
votes2
answers1022
viewsHow to get the return of an instantiated Function (new + Return) - Javascript
I have a Function where I assign values in this, why it will be instantiated function Teste(){ this.valor='Valor no this'; return "Valor no return"; } I urge her var t = new Teste(); But now, like…
-
7
votes2
answers1244
viewsHow to employ multithreading with Rduino
I’m making a bell with Andy. This bell shall be composed of: 01 Arduino UNO, 01 Buzzer, 01 Transmitter 433 Mhz, 01 Receptor 433 Mhz. My doubt revolves around how I can treat the listener who will be…
-
7
votes1
answer3240
viewsHow to rotate the character as the mouse moves?
I’m learning how to play a game, but even if I follow it step by step, I think I did something wrong. It moves correctly but just keeps looking forward and does not turn, I do not know if it is…
-
7
votes2
answers1381
viewsWhat are subdomains and how do you identify subdomains in Ddds?
Studying DDD I found the idea of subdomain. From what I understand, a subdomain is a subset of the problem space that the application has to deal with, that is, a subset of the domain. From what I…
-
7
votes2
answers2435
viewsWhat is end-to-end encryption? How to apply it?
According to everything I researched and with the help of @Maniero I came to the conclusion: "Cryptography end-to-end is done when only the connection points have access to the key that will decrypt…
-
7
votes2
answers1014
viewsSetting up a database, how do I make this relationship?
I’m assembling the EER diagram of an ERP. Almost all tables have a column called "id_company" that relates to the "Companies" table. This is because the user will be able to manage one or more…
-
7
votes3
answers1561
viewsIncrement letters in PHP?
Recently I needed to increment letters in PHP within a loop. For each iteration, instead of numerical indexes, it needed letters of the alphabet. So, as I already know that PHP does letter…
-
7
votes3
answers823
viewsAssign array type in PHP
I know PHP is a weakly typed language. But there is some alternative way to "type" a array in PHP? Example, I can do this below to force receive a specific type of data in a function. function…
-
7
votes1
answer161
viewsIs it a good idea to map Urls that delete GET entries?
I’m studying Django and wondered if it’s really good practice to set up removals URL via GET, for example: http://meusite.com.br/usuario/deletar?id=10. Is this really good practice? Since some HTTP…
-
7
votes1
answer1637
viewsHow can I test authenticated webservice?
Hello, I have an authentication service already mounted in c# and wanted to do any test with it. It can be a webform page, which returns a positive or negative, or a class c# even if it runs per…
-
7
votes3
answers1559
viewsMap show current location
I would like to know how to make the map show the current location of the user. I created this code that apparently was working, only sometimes it fails to catch the location and application of the…
-
7
votes2
answers1803
viewsHow to recover the number of characters via regular expression?
How to know the number of repeated characters (example: Goitobto = 2 letters to), consecutive characters (sequence of letters abc..) and consecutive numbers (example: 12345..) within a word, using…
-
7
votes5
answers1506
viewsRead XML file in C#
I’m having a problem reading an XML file in C#. In which this is a file of a pre-sale, and I am with the following situation: in my xml I will have several pre-sales, and each pre-sale may have…
-
7
votes2
answers18011
viewsINNER JOIN with two fields of the same table
I’m having a problem I haven’t found a solution to so far. I have 3 tables in Mysql: Units:containing information from "stores". Orders: contain the order information made by loja01 for loja02, both…
-
7
votes2
answers6648
viewsHow to change the language of R?
When installing the r on my machine I realized that the menus and console outputs were all in English. How do I change to English? Inside the RGui I couldn’t find any option to change the language…
-
7
votes1
answer898
viewsIs it correct to save multiple entities at the same time in the ASP.NET MVC Controller?
I need to save 12 entities in the same method, in the Controller, I don’t know if I’m doing it right. In my method Create of Controller, call all entities and add all attributes in the same View. By…
-
7
votes1
answer970
viewsNfe shipment to MG in Versao 3.10
To send XML from an Nfe to MG in version 2.0 I do as follows: Public Function enviaNFe2(ByVal NumeroDoLote As Integer, ByVal ListiView As ListView, ByVal Label As ToolStripStatusLabel) As Boolean…
-
7
votes4
answers10421
viewsHow can I get a date (day, month, year, time, minute, and second) converted into milliseconds in Java?
How can I get a date in milliseconds? Example: 24, Sat, Jan, 17:39:50 2015
-
7
votes5
answers2024
views -
7
votes2
answers7907
viewsConvert XML to PHP array
I’m fetching article names by this link:…
-
7
votes2
answers1493
views -
7
votes3
answers377
viewsFirefox and IE cannot find source
I have a wordpress site where I installed two fonts: Calibri and Castlet. Chrome works correctly, but Firefox only recognizes Calibri. This is the site: http://plengenharia.syswebapp.com.br/ In Css:…
-
7
votes4
answers1799
viewsMaximum amount of elements sent by a form?
I would like to know if there is a maximum amount of elements that I can send from one form to another POST as I saw GET. I know if I pass my data via GET, there is a maximum length of URL, varying…
-
7
votes2
answers297
viewsBest way to do an Action that does not return data
I am making an ajax call to change an object. The call does not need to return anything. Only http 200 (OK) or 500 (error) code. I’m using the following code in the action but I don’t know if it’s…
-
7
votes4
answers6781
viewsWhy does my CNPJ validation pass this invalid value?
I have a problem with a JS validation, in case it does not pass any invalid CNPJ value, but when typed only 000.000.000/0000.00 it lets pass normally. function ValidaCNPJ(cnpj) { var i = 0; var l =…
-
7
votes1
answer1621
viewsWhat are web Workers and how to use them
Through researches I understood that Web Workers allow the simultaneity of processes in Javascript. It would be like firing a thread Javascript that updates the View. It can be considered that it…
-
7
votes1
answer329
viewsPolymorphism in Java
Example: // Super classe: Carro abstract public class Carro { String nome; public void andar(){ // anda } } // Sub classe: Fusca public class Fusca extends Carro { public void andar(){…
-
7
votes1
answer580
viewsDependency registration responsibility (Ioc, DI, n-layer architecture)
I’m starting a WPF (.NET/C#) project using an n-layer (Domain Driven Design) architecture, and to implement Control Inversion and Dependency Injection (Ioc/DI), I’m trying to use Microsoft’s Unity…
-
7
votes1
answer525
viewsHow to determine if a point of a swing component is visible on the screen?
How do I determine if a certain point X within a swing component is visible on the user screen? For example, let’s assume that the JComponent To was added to a window B (normally, but not…
-
7
votes4
answers2296
viewsHow to order three Ivs according to an attribute of hers?
I have 3 Divs: <div id='pai'> <div class='produtos' contagem='2'></div> <div class='produtos' contagem='1'></div> <div class='produtos' contagem='3'></div>…
-
7
votes1
answer4415
viewsRecursive function simulating a number elevated to a power
How to simulate the elevation of a number to a power using the recursion (and Python)?`
-
7
votes2
answers417
viewsPlanning of user interface
I’ve already tried to develop the layout of some applications, but the only criterion I ever used was to check whether it’s looking good or not. It turns out that this criterion is not very useful…
-
7
votes2
answers10840
viewsHow to read a large file row by row with Javascript (nodejs)
I have a very large file to import data to Mongodb via Javascript. The problem is that I cannot load the entire file into memory. I would like to read this file line by line, since each line is a…
-
7
votes2
answers212
viewsWhy Arraylist instead of Stack in the implementation of the Memento standard?
As you all know, the Memento pattern is the pattern that saves different states of objects and then retrieves them. The intention is not to retrieve the "last" to enter and then remove it? This is a…