All Questions

3
answers

Problems adding item to array with AngularJS

I'mbuildingashoppingcartwithdynamicoptionswithAngularjs.Theproblemishere:{ "14": [ { "id": 3, "forma": "Alface", "preco": 1 }, { "3": 1 } ], "15": [...
asked on 26.02.2015 / 04:49
1
answer

Recursive function for integer input

I have this code but it does not work very well, that is, if it is integer at first numOfValues is correct, but if not it is with type None , since what is in memory is the first input ( which is not integer). I would like, regardle...
asked on 04.03.2015 / 15:56
1
answer

Duplicate records with OneToMany relationship

I have a mapping as follows: public class ClasseA { public ClasseA(){ listaClasseB = new ArrayList<ClasseB>; } @OneToMany(mappedBy = "xxxx", fetch = FetchType.LAZY, cascade = CascadeType.ALL, orphanRemoval = true)...
asked on 27.11.2014 / 13:11
1
answer

How to read / translate the keyword yield?

I am studying about the keyword Yield in C# , and I have this question: how to read this word in Portuguese (structured?). Is it something like "return the current value of the enumerator"? Would not it have a one-word translation...
asked on 09.03.2015 / 01:03
1
answer

Is it safe to use ajax requests many times and repeatedly?

I want to create a 'mini server' for me to use on my site (tumblr), for real communication with my visitors and one way to do this is to use ajax requests. When the site loads, it requests a JSON file, when I receive this file the request is mad...
asked on 08.03.2014 / 02:24
3
answers

How do I debug a site on mobile devices?

I'm developing a website that, although it looks good on the desktop, is getting deformed when accessed via mobile devices. Specifically, some issues occur when using the Android default browser , others when using Chrome pro Android. I do not...
asked on 27.02.2015 / 21:08
1
answer

JAXB - Tag repeating, instead of nesting

I have a problem that I can not store more than one element in the same TAG, look at the XML: <ItemCardapio> <nCdItemCardapio>10</nCdItemCardapio> <nQtdeItemCardapio>2</nQtdeItemCardapio> <ObsProduc...
asked on 01.03.2014 / 01:22
2
answers

How to release a sub-directory protected with .htaccess?

I have .htaccess in my test environment developed in CakePHP and the .htaccess has authentication so that not anyone is accessing it. Now I need to release a directory from the site, actually a CakePHP plugin, I need anyone to have acc...
asked on 07.01.2014 / 19:28
2
answers

How do I add a file extension in the list of extensions supported by Adobe Brackets?

I'm using the files with html.eco extension in my WEB project and I'm trying to edit it in Adobe Brackets, but I can not specify that it should treat these files as HTML fonts. I would like Brackets to provide me with the typical HTML file fea...
asked on 13.02.2014 / 13:19
2
answers

How to create a test with RSpec to check the return of users?

This describe below is the default that Rspec creates. I have a hard time working with TDD ( Test Driven Development ) and it is complicated to understand the whole procedure. For example, I need to test that when accessing the index...
asked on 14.01.2014 / 14:31