All Questions

1
answer

How to insert line break in textarea in text inserted via jquery / javascript?

I have a textarea and would like to list some items in it on each line. I am already inserting the text normally in the textarea and I separate the items in commas currently: nomUgs = selUgs.join(", "); Instead of this comma I wanted to...
asked on 17.06.2014 / 16:41
1
answer

It is a good practice to import modules in __init__.py

I noticed that in the Django framework modules are imported into __ init __ .py for convenience. """ Django validation and HTML form handling. """ from django.forms.forms import * # NOQA So this: from django.forms.forms import Form...
asked on 05.06.2014 / 15:46
2
answers

Hide different actions for different user profiles

I am in a project where I have 3 different levels of profiles: Administrator , Teacher and Coordinator . I already have the login module, registers and such. What happens is that I wanted for each profile type to appear only what is allowe...
asked on 25.05.2014 / 03:15
2
answers

Is there performance gain when using View's in SQL?

The View 's are virtual tables, resulting from SQL queries, as in the example: CREATE VIEW view_name AS SELECT column_name(s) FROM table_name WHERE condition From this, we can update or delete a View , but we can not edi...
asked on 15.07.2014 / 17:57
1
answer

Algorithm for cutting plane

I do not know if this is the best place to ask this question, but I searched a lot on the internet for some algorithm for cutting plan - which, by informing the dimensions of the pieces, shows the best arrangement so that it is minimized as litt...
asked on 04.08.2014 / 19:53
1
answer

What is the difference between 'filter_var' and 'filter_input'?

What's the difference between filter_var and filter_input ? I can not find this anywhere, at least not in a way that I understand. And how do I replace mysql_real_escape_string with one of them? $password = mysql_real_...
asked on 25.05.2014 / 03:47
2
answers

How do I give a sort in my dropdownlist

How do I sort in my dropdown? This is my dropdown. How do I sort it out? Calling DropDown <select class="form-control col-sm-6" name="cbxCodTipo" id="cbxCodTipo"></select> Of course I'll upload the values, but I just want t...
asked on 18.08.2014 / 21:44
1
answer

Problem declaring variables for averaging in Python 3

n1 = input("informe sua nota do 1º Bimestre ") n2 = input("informe sua nota do 2º Bimestre ") n3 = input("informe sua nota do 3º Bimestre ") n4 = input("informe sua nota do 4º Bimestre ") media = float((n1 + n2 + n3 + n4)) / int(4) print("A média...
asked on 19.09.2015 / 05:08
2
answers

How to use fluent nhibernate properly?

One problem I have encountered due to inexperience with this kind of tool is how to use lazy load without interfering with the software architecture. I use the following architecture: IHM (Human Machine Interface): It has all the forms a...
asked on 24.06.2014 / 21:01
1
answer

AngularJS, how to change bracket tags ({{e}}) to any other character of your choice?

In AngularJS by default comes the bracket tags ( {{ and }} ) for manipulation, wanted change to %% and %% , how should I proceed? Example: {{name}} to %%name%%     
asked on 01.06.2014 / 02:27