All Questions

2
answers

Generic, extend to an X or Y

How do I make my generic class only receive types that extend from class X or Y? Example: class MinhaClasseGenerica<T extends ClasseX ou ClasseY> Sorry if it got a bit confusing, I'm a newbie yet, I can not explain very well.     
asked on 18.04.2015 / 00:26
2
answers

linux command - block rename / rename folder

I need to give an ftp user access to the / var / www folder but there are folders that it can not access / edit / delete I tried a command: #chmod 000 <pasta>     
asked on 10.04.2015 / 15:02
2
answers

How to make SVG image fit the size of a DIV?

I have an image SVG of about 100 lines and 60 paths and I need it if it fits to any block node, like a div for example. I tried to put% css% css in the class tag and set svg to width but this cut the image instead of...
asked on 08.02.2015 / 21:15
1
answer

Error 'use' (T_USE) when using autoload

I have the following folder and file structure: -api -v1 -libs -Slim -Facebook -autoload.php -index.php -login.php Inside the "index.php" I include the "login.php" include: require_once 'login.php'; In the "login....
asked on 17.02.2015 / 19:54
2
answers

How to set a private property in Python? Is there protected property?

I come from PHP. In it, when we want to define a property of a class as private we add the keyword private in its declaration. Example: class StackOverflow extends StackExchange { private $language = 'en'; // privado, só pode ser...
asked on 04.03.2015 / 20:56
2
answers

Changing date to be shown in datepicker

I'm making a calendar with datepicker , and I need this calendar to show only Mondays, and most importantly, show one month after the current date, ie, it will have to show from 05/27 only Mondays. I've been able to get him to show you...
asked on 27.04.2015 / 19:43
2
answers

Open xls (password protected) file in Delphi and save data to Firebird table

I have a password-protected office file ( .xls ) that has multiple rows. I want to do a search for the contents of the column 1 and knowing the line that is the result I want to save this single row in a Firebird database table. Example:...
asked on 10.02.2015 / 03:42
2
answers

Restrict method override of an object in javascript

I'm trying to create an object where its methods can not be changed. That is, its value, even if changed, should continue as initially defined. Example: var object = (function(object){ object.method = function (text) { retu...
asked on 09.02.2015 / 16:11
2
answers

What is the proxy creation in the entity framework?

What is the purpose of disabling this feature?     
asked on 02.01.2018 / 12:01
2
answers

Change CSS with javascript when clicking

I have a circle in css and half of it is hidden. When you click on it, I want the hidden part to appear. When I click back, I want him to hide again. I made the following javascript code, the problem is: I click, it appears; clico, hides; I clic...
asked on 03.03.2015 / 18:38