All Questions

1
answer

Reasons to use private class

When I started in the area, in an OOP course the teacher explained about access modifiers ... I remember that the same day he said that it would be possible to create a private class, but he did not see a reason for doing so. Why can you d...
asked on 11.04.2018 / 21:59
3
answers

Java and Offline Databases

I need a help with database in Java. I want to make a database that the program generates a file, such as "database.db" and this file I can access without needing any internet connection, using only the mentioned file. How do I do this? Wh...
asked on 19.08.2014 / 22:18
2
answers

OWIN and Katana - How does it really work and how do I use it?

In recent times I've been trying to better understand OWIN in aspects of why use it, how it works, and how to use it. As for why I use it I've already asked here and I've already convinced myself that the biggest motivation is to get the more mo...
asked on 16.05.2014 / 22:40
3
answers

Java / Android: How to display in StackTrace Log

How can I display the entire exception error code (FullStackTrace) in the Android Log? try { //CODE }catch (Exception e){ Log.e(TAG,e.getStackTrace()); }     
asked on 18.12.2013 / 22:08
2
answers

int and Integer - Java

I am developing a project in Java and it is in error, I have already found it but I do not understand it. public class Time{ private String nome; private ArrayList<Jogador> jogadores; private Integer gols; public void a...
asked on 08.05.2015 / 01:16
2
answers

CKeditor html content gets empty after using jQuery-ui Sortable in your parent div

I want to "sortable" 2 or more div's with a CKeditor populated with html, however when doing this the html of CKeditor loses the content and the editing space gets blocked. Follow fiddle: link HTML <div id='e'> <div id='e1...
asked on 06.11.2014 / 14:57
6
answers

Is it bad practice to only use static methods in a class?

I was studying more deeply the OOP, learning more advanced concepts like Polymorphism, Override, Classes and final methods, abstraction, namespace and etc ... I've learned about static methods, where it can not be accessed by the object (...
asked on 26.02.2016 / 20:07
4
answers

Login in PHP with permission levels

I have a problem with my code to separate the logins. I want when a login with Rank = 1 is entered it redirects to a page, and when Rank is = 0 go to another page. I tried to do but I did not have a result because he always...
asked on 18.04.2014 / 12:25
2
answers

Is it safe to minify HTML?

Like JS and CSS, HTML can also be "minified": <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi...
asked on 10.07.2014 / 18:47
4
answers

Get ID of a YouTube video by URL

I have this string " link " and I want to get only the ID, ie from "? v="     
asked on 12.12.2014 / 17:08