All Questions

1
answer

How to use IValidatableObject?

How do I use IValidatableObject to not validate a foreign key property during a registration? I want to validate only the foreign key in the edit.     
asked on 27.10.2015 / 02:11
1
answer

Is it correct to create a constructor method in an abstract class?

If an abstract class can not be instantiated, creating a constructor method for this abstract class can be considered as good practice or not? If so, what is the reason for creating the implementation of this method? Here is a snippet of code...
asked on 27.09.2015 / 03:43
3
answers

Refactoring a java class

I have a Java class that contains 1756 lines (obviously it's not all code, there are blank lines, lots of comments and some commented code in case you need it in the future) I'm implementing the MVC structure and this class belongs to...
asked on 22.10.2014 / 12:14
2
answers

block the "erase" of the screen by time of inactivity

My application works as a guide for a professional illuminator, it works passively (responds via Bluetooth to user commands in your working tool) or offline where the user can operate it manually in parallel with their tool , the issue is that o...
asked on 24.10.2014 / 18:39
1
answer

Variable pointer is declared null, but member function normally executes

Below is an example of the code I'm trying to execute. //main.cpp #include <iostream> using namespace std; class A{ public: A(){} ~A(){} void teste(){ cout << "Teste" << endl; } }; int main(){...
asked on 28.09.2014 / 14:17
1
answer

Can I sell a by-product of a product under the Apache 2.0 License?

I'm working on a project with OpenCart (like freelancer ) and I need to use a certain extension, however the extension is outdated (relative to OpenCart) and licensed under Apache 2.0. So I was thinking about upgrading the extension to Ope...
asked on 21.07.2015 / 17:07
2
answers

Placing a background image and making it responsive

I'm having a problem putting a background image on my page. I did some testing and it stays that way when I change the size of the window: WhenIgetmaximized,it'sright: HowcanIadjustthisimagetogetthescreencorrectly?CSS:.login-page{background-...
asked on 17.09.2015 / 13:41
1
answer

if with a matches or several comparisons?

Considering that I have a variable of type String tipoResidencia that will never be null, and that I need to run a test, the default solution is this: if (tipoResidencia.equals("CASA") || tipoResidencia.equals("PREDIO") ) But if I wa...
asked on 14.08.2015 / 22:14
2
answers

WebBrowser / Java Browser

How do I put a sort of 'WebBrowser [.NET]' into a Java project? I know there are free rendering engines like Gecko, which is used in Firefox. But I do not even know where to start, even if I get a free engine ready. I wanted a light from a...
asked on 10.06.2015 / 21:05
1
answer

Display something when trying to close my site

You can display something (an alert , or popup , an optin grabber newsletter) when the person tries to close my site ? I've seen something similar, that it displays alert() to confirm if the person wanted to leave or stay on the si...
asked on 19.11.2014 / 04:59