Posts by Leandro Godoy Rosa • 2,744 points
92 posts
-
2
votes2
answers1094
viewsA: Typeerror: Cannot read Property 'Concat' of Undefined - Typescript?
You’re declaring the variable, but you’re not initiating it, so yours dataFindProducts is equal to undefined, try initializing it with an empty array let dataFindProducts: Product[] = [];…
-
3
votes3
answers617
viewsA: Angular 8 - Problem with html accents
The problem is that you are using HTML entities instead of plain text for accents, Angular will treat it only as text and not as HTML. If you have control over this text then the easiest is to…
-
0
votes1
answer2015
viewsA: Transaction failed. The server response was: 5.7.1 <email>: Relay access denied
This error is usually related to authentication, if the data is correct it may be that the server requires the use of SSL, which can be activated by setting the property EnableSsl as true of…
-
3
votes2
answers40
viewsA: Back version of the application
The Número de versão should be an integer value, and should only be incremented, it is what will be used to know whether to update the application and Google Play will never allow you to launch an…
-
1
votes1
answer68
viewsA: How to convert "Webclient" to "async/await"?
You must use the method OpenReadTaskAsync, this yes supports async/await, the OpenReadAsync existed before async/await and triggers an event when the operation is complete, I believe that is why…
c#answered Leandro Godoy Rosa 2,744 -
0
votes2
answers94
viewsA: Configuring Angulasjs Routes with ASP.NET MVC
The problem is that the default Views folder is special, the Web.config located within it modifies the behavior of requests for files within it and so it returns that it did not find the file. If…
-
6
votes1
answer793
viewsA: What is the use of Task.Yield?
When using the async/await it is not guaranteed that the code will run asynchronously, and in some cases it may be desirable that the method is always run asynchronously, in this case you can use…
-
2
votes1
answer194
viewsA: Click windows transparent form C#
The behavior you describe is as expected, as you can see in documentation: When the Transparencykey Property is Assigned a Color, the areas of the form that have the same Backcolor will be displayed…
-
1
votes2
answers101
viewsA: Error Nodejs and when to use "=>"
The problem is that you are using a very old version of Nodejs As you said yourself you are using version v0.10.29, it is from 2014 and it seems to me that only after version 4.4.5 of 2016 has ES6…
-
6
votes2
answers997
viewsA: console.debug is not working in Chrome
In the latest version of Chrome some changes were made to the console filters. Now it has a combo with log level options, by default it comes as Info, which hides any log created by calls to…
-
0
votes3
answers1401
viewsA: How to access object created by another thread?
You can use objects created in other Threads, but you should be careful not to access the same two Threads object simultaneously unless the documentation of this object says it is safe to do so…
-
2
votes1
answer101
viewsA: Requisition Angularjs
You are probably opening the html file directly from a folder, using the protocol file://, and Chrome does not allow the use of Xmlhttprequest for Urls of this type, so the error. What you need is…
-
2
votes1
answer255
viewsA: Would 15 be the maximum limit of images per Drawable Resource File in Android Studio?
Your problem is certainly the use of memory of these images and not the amount of them in themselves, given that an Animationdrawable carries all the images in memory at once. First of all it is…
-
3
votes1
answer164
viewsA: Problem disabling Backgroundworker
This happens because the CancelAsync only signals cancellation, it is still your obligation to stop what is running. Basically what the CancelAsync is to set the value of CancellationPending as…
-
1
votes2
answers148
viewsA: How to protect yourself from malicious entry through a select dropdown?
I would say that the basic rule for any information sent by the user is "never trust the information sent by the customer" I must say that I don’t work with PHP, but this applies to any language,…
-
2
votes1
answer36
viewsA: String.Content How to Not Case Sensitive
With the method Contains is not possible, but one can have the expected result with the method IndexOf string tt2 = "teste amanha de manha"; string pp = "Amanha"; if (tt2.IndexOf(pp,…
c#answered Leandro Godoy Rosa 2,744 -
2
votes1
answer38
viewsA: Integrate ES2015 Classes with jQuery
This happens by the way jQuery works with event callbacks, it makes the this be the element that triggered the event. Since you are using Babel so it is very simple to solve this problem, just use…
-
1
votes2
answers1650
viewsA: Bootstrap menu does not open submenu
Does not work because Bootstrap 3 does not support submenus, the class dropdown-submenu that you used was probably from Bootstrap 2. If you really want to use submenus with Bootstrap 3 you will need…
bootstrap-3answered Leandro Godoy Rosa 2,744 -
0
votes4
answers654
viewsA: Pass parameters in JS functions
Since you are using Javascript without using any library to facilitate the manipulation of elements and events then you should at least use the addEventListener to capture the click event, and you…
javascriptanswered Leandro Godoy Rosa 2,744 -
0
votes1
answer57
viewsA: Making None float is not working
The problem in this case is the precedence of styles defined in different places or forms, I explain how the browser decides which style takes precedence in another answer if you want to confer.…
-
0
votes1
answer103
viewsA: Xamarin Build FAILED Error: Unsupported major.minor version 52.0
This is because you are trying to use JDK 1.8, Xamarin requires JDK 1.7, at documentation they guide to install JDK 7u79, but if you already have some other version of 1.7 installed it should work…
-
2
votes3
answers2067
viewsA: convert integer to decimal in jquery
If at this value the last two numbers are always the decimal places then the simplest would be divided by 100 var _produto = { "PaoID": $("#SelPao").val(), "FermentacaoID":…
-
2
votes1
answer381
viewsA: include decimal places Value 1500 and leave it as 1500.00 without comma!
You don’t need anything special, the value being in decimal the method ToString(string format, IFormatProvider provider) already does it, you just need to pass one CultureInfo that uses dot as…
-
3
votes2
answers297
viewsA: What are the differences between Visibility.Hidden and Visibility.Collapsed?
Visibility.Hidden makes the object invisible but reserves its space in the layout. Visibility.Collapsed makes the object invisible and makes it occupy no space in the layout. Already set the Widthor…
-
0
votes2
answers295
viewsA: Multiple device connections using Sockets
This depends on the methods you’re using to connect, send and receive data. If you are using methods for example Connect, Send and Receive they block execution so it would be necessary to use…
-
3
votes2
answers2784
viewsA: How to get the return (value) of a Promise in Javascript / Typescript?
This happens because its function get does not return anything, note that your Return is inside an anonymous function and not in the function get In general Promises are used in asynchronous…
-
3
votes3
answers57
viewsA: THIS object in conflict between jQuery and ECMA6 class
I believe that in this case the ideal would be to use a variable to store the reference to this class class Teste{ metodoUm(){ var _this = this; $('input').each(function () { // $(this) adicionado…
-
1
votes3
answers912
viewsA: Angular Scope with apply no ng-init
Never use the ng-init, the way you use it is exactly what it is recommended not to do, there are few uses of ng-init which are considered appropriate, in general the recommended is to initialize the…
angularjsanswered Leandro Godoy Rosa 2,744 -
1
votes2
answers116
viewsA: css shows error in chorme
The problem is that you are not "resetting" the css correctly and each browser is using a different default value. In case to be more specific the problem is in the box-sizing, where in Chrome is by…
-
0
votes3
answers5068
viewsA: How to include the Access-Control-Allow-Origin header?
In this case there is no way. The header should not go on your page, but on what is trying to be accessed remotely, in case it would have to be added on the IP camera, which is probably impossible.…
html-metaanswered Leandro Godoy Rosa 2,744 -
4
votes1
answer113
viewsA: Foreign code entered on page
By examining this code very superficially it can be divided into two parts The first of them would be all the lines except the penultimate What he does there is basically to take information from…
phpanswered Leandro Godoy Rosa 2,744 -
3
votes1
answer235
viewsA: How to check Body Width every time you change Jquery Size
In the size check you used the OR operator, this way it always ends up entering the first if, after all the page is always larger than 320 or smaller than 480 if (width >= 320 || width <= 480)…
jqueryanswered Leandro Godoy Rosa 2,744 -
2
votes2
answers1048
viewsA: Conflicting Signature Error
By your mistake this can happen for basically three reasons: If it is the APK release you used a different Keystore than the one previously used to sign the APK, and the APK should always be signed…
androidanswered Leandro Godoy Rosa 2,744 -
1
votes1
answer360
viewsA: Define the class of a li element created at runtime
Your code is practically right, only the name of the property that should be used that is wrong, instead of class must use the className li.className = "list-group-item";…
-
11
votes6
answers502
viewsA: Empty semicolon doesn’t make a mistake?
I think the question has been well answered, but there is one case I think it is important to mention here. Just as one can have semicolons without causing build errors, the following code also does…
-
2
votes3
answers754
viewsA: Access-Control-Allow_origin error not allowed
Header must be added on the destination page, not the source page. Let’s say I create a page http://meusitedeorigem.com/teste.php, on this page I have a script that calls by ajax the address…
-
1
votes2
answers907
viewsA: Trustlevel error
Honestly there’s not much to do if you’re staying at Locaweb. If your site is still in an early stage of development you can set up on your Web.Config the trust level for medium, which is basically…
asp.netanswered Leandro Godoy Rosa 2,744 -
0
votes1
answer202
viewsA: Socket receiving more than one message together
No, there’s no way to get him to receive the messages separately. To be more accurate, there is no separation of messages, or better yet, there are no "messages". These "messages" are an abstraction…
c#answered Leandro Godoy Rosa 2,744 -
2
votes2
answers702
viewsA: Decimal value conversion error in Insert C#
Your problem is that the string.Format uses the current culture information to decide how to convert a number to a string. This is usually not a problem for integers, but for numbers with decimals…
-
1
votes3
answers131
viewsA: LINQ Anonymized Type as parameter
In general it is not a good idea to try to pass an anonymous type between methods. The ideal in this case is to create a new type to be used, for example public class MeuProduto { public int Id {…
-
2
votes1
answer311
viewsA: Create rotary banner with Angularjs?
I’d say your problem is on the line $timeout(rotationBanner(), 60000) Notice that you call the function $timeout and in the first parameter you already invoke the function rotationBanner, a function…
-
0
votes2
answers401
viewsA: Request problem with jQuery ($.ajax) and Angular ($http)
You are trying to use JSONP to access the API but it does not seem to support the same. If this API is yours and you can modify it there are two things that can be done, one of them is to support…
-
0
votes1
answer169
viewsA: How to remove all data traces in the google search cache?
Just as an observation, it’s not possible to say for sure how google works, we can only interpret the information in the documentation on google so I’ll just be leaving a hint of what might be…
-
0
votes1
answer46
viewsA: Synchronous Xmlhttprequest and Xmlhttprequest.withCredentials
This error is not of your code, note the name of the file in which is giving the error, this is a file of Browser Link, a Visual Studio feature, even note that the port used by this file (59671) is…
-
4
votes2
answers12821
viewsA: What it means *(int *)
Let’s say I have a pointer to a whole int* iPtr; Whereas it already points to a valid memory address, if I want to change the value of it I first need to override the pointer *iPtr = 100; //atribuo…
canswered Leandro Godoy Rosa 2,744 -
1
votes2
answers812
viewsA: How to recover the value of Boolean from a REST service in Angularjs?
Your problem seems to be the use of ngResource, this module was made to consume Restfull services, and so it seems to me that the response coming from Webservice is an object, when it receives a…
-
1
votes1
answer131
viewsA: Indexeddb does not connect on Android 4.2
Indexeddb is not supported by all browsers, and according to the website caniuse with. the native Android browser supports it only from version 4.4 According to the same website it supports Websql,…
-
1
votes4
answers1114
viewsA: Create string array in C#
If the intention is to reuse the value I believe that the best alternative is the use of Inheritance. Considering the attribute public class CustomAttribute : Attribute public string[]…
-
3
votes1
answer31
viewsA: Navigationbar Visualstudio 2013
This is the Navigation Bar, and really it is different between VB.Net and C# In VB.Net it can be used to choose the available events in a control, whereas in C# it can only be used to navigate…
-
3
votes2
answers6625
viewsA: window.open javascript without the URL
You cannot hide the address bar in modern browsers. This is a modern browser security feature and there is no way around it with javascript or HTML. Imagine that without this sites could mimic…
javascriptanswered Leandro Godoy Rosa 2,744