All Questions

2
answers

Update from change in select

I have a list with multiple selects and I need to change the select option to be updated in the database. I can do this through ajax + php. My question actually is how to trigger the event from the option change. Could someone give me a light? T...
asked on 27.08.2015 / 17:19
2
answers

Database connection error

I have a problem connecting to MySQL database with PHP I am using WAMP I created a database in my PHPMyAdmin I made my connection via PHP but this error appears when I click send in my form : Thesearethecodesformyconnection:config.php&...
asked on 16.07.2015 / 18:44
1
answer

Foreign key can be null in Entity?

I'm having a hard time on a project. I have created two tables ( Union and School ), with% of the Union table being PK in the School . But this FK can be null, meaning the School can belong to a Union or not. Well, here's...
asked on 30.07.2015 / 16:59
1
answer

What are the pros and cons of the TaskListObject implementation on ListObject

What are the advantages between the two implementations below. Both return a list with several products (more than 1k): public Task<List<Product>> GetAllProductsAsync() { var query = Products.ToList(); return Task.FromResu...
asked on 01.08.2015 / 16:26
2
answers

javascript alert - disable "Block confirmation windows from this page?"

When we use the alert several times open a checkbox where the user has the option to disable the alert, is there any way to disable this feature? ( Never checkbox )     
asked on 31.07.2015 / 22:02
2
answers

What does KWARGS mean in Python?

I know that in Python we can define in a function something like what we call "named parameters", that is, "named parameters". def my_func(**kwargs): pass my_func(nome="Stack Overflow", linguagem="Português") I do not know if my defini...
asked on 24.06.2015 / 13:23
3
answers

IFs and Object Orientation - C #

I have a question about how to replace IF with polymorphism. I'll give you the following example: Let's say I have the ExecucaoIndividual and ExecucaoGeral classes. For this I created an interface to use the strategy pat...
asked on 26.06.2015 / 17:28
2
answers

What is the maximum number of threads supported by Java EE?

I am analyzing how to rewrite the architecture of a Java program would like to know how many threads the scheduler supports? or how can I infer this amount based on the processing power of my PC / Server / Cluster?     
asked on 08.09.2015 / 03:02
1
answer

Add data to a MySQL table, with PHP. What is wrong?

Initially, I'm new to PHP and SQL, so take it easy if you have barbering in code. I'm just testing the PHP and MySQL integration, I took an example table from a book and did a quick html page to pass the parameters. HTML: (index.html)...
asked on 31.08.2015 / 04:00
1
answer

Try / catch in JS

I have an array called agenciasUri , which formats the data before inserting it into it. After that, I set the JSON jsonObj to send a request. What I find strange is that it's working properly. Why can I access agenciasUri...
asked on 23.07.2015 / 13:55