Posts by Miguel Fontes • 420 points
11 posts
-
0
votes1
answer33
viewsA: When I run the error appears: "Car() takes in Arguments". Can anyone help me? I don’t know what I did wrong
Flavia, I believe it is enough to adjust the signature of your init method to the one described below: def __init__(self, make, model, year): The init method should always use two _ as prefix and…
-
0
votes1
answer40
viewsA: Drag-Drop events generate internal counters?
Without the rest of the code I can’t be sure but perhaps this is a case of spreading the drop event to all div existing on the page. My suggestion to you is to add one stopPropagation in function…
javascriptanswered Miguel Fontes 420 -
1
votes1
answer750
viewsA: Method Returning Empty List
I believe your problem is the inclusion of Hashmap in Arraylist and subsequent cleaning by method clear. Specifically in this section: if(pageItemAt % maxItemsPerPage == 0 || pageItemsTotal ==…
-
2
votes4
answers806
viewsA: Assignment of Java Arrays
Since this looks like an exercise, there’s only one idea for you. I believe that the algorithm you seek, using only arrays, is similar to: [As the Array1 hold values] Get a value x of Array1 (you…
-
4
votes2
answers2008
viewsA: Save multiple instances of a class to a List in Java
Using a basic structure as an Arraylist, you can add each instance to a future reference. import java.util.ArrayList; public class Main { public static void main (String [] args) {…
-
9
votes2
answers1644
viewsA: Why use the Angularjs?
The text below is the result of a recent period of immersion in this world of Angular for learning. I ask that the community help me to improve my understanding if there is something incorrect or…
-
2
votes3
answers3595
viewsA: how to view more than one project in the Visual Studio Code explorer?
This has been debated for some time and is a resource not yet available at the moment. In short, the community is working on the inclusion of this feature. The Roadmap set for September/2017, aims…
visual-studio-codeanswered Miguel Fontes 420 -
1
votes3
answers636
viewsA: Less is a programming language, or just something more complex than CSS?
LESS is not a programming language yes a CSS pre-processor as well as SASS. The purpose of LESS is to extend the capabilities of CSS by adding new features to generate CSS such as mixins, functions…
-
0
votes2
answers84
viewsA: Javascript problem in converting value to int
It may be that the document.getElementById("ciclo").value is not returning a String. Not all DOM objects have the "value property". Check which object is being returned in this portion of the code…
javascriptanswered Miguel Fontes 420 -
5
votes3
answers1151
viewsA: Make it difficult to access CSS and JS files
As far as I understand these files are necessary Assets for the proper functioning of your site and there is no way to prevent the user from seeing what is receiving and accessing them if they wish.…
-
2
votes1
answer499
viewsA: Force Javascript File Version Update
I believe this problem in Systemjs is known: I found a Debate on the Github In this issue there is a possible Workaround: a Gulp plugin called systemjs-cachebuster. If you are using Gulp, it may be…