All Questions

1
answer

How to properly reuse business rules using EJBs?

I am refactoring a system where the greatest concern is to decrease the coupling and complexity of the various levels of inheritance, so the examples are illustrative. I have the entities Contrato , ContratoUso and ContratoAde...
asked on 11.12.2014 / 19:55
1
answer

Error inserting apostrophe into component that uses Auto Complete

I'm having trouble inserting% of apostrophe% when I'm going to search for the ' component of AutoComplete . Jquery $("#<%=txtHipotePai.ClientID%>").autocomplete({ source: function(request, response) { $.aj...
asked on 24.11.2014 / 19:38
1
answer

Multiple databases with multiple applications

I made an application with CodeIgniter that uses only one database. However, I was asked to create multiple copies of this application which will also access several different databases. That is, I will have dozens of applications and dozens o...
asked on 04.12.2014 / 02:26
4
answers

Updating data with entity framework

In the project I'm developing, MVC5, Entity 6, I just can not seem to update the data. The Code: zyon.TB_Cliente.Attach(cliente); zyon.Entry(cliente).State = System.Data.Entity.EntityState.Modified; zyon.SaveChanges(); That works when I...
asked on 27.11.2014 / 17:57
1
answer

Warning: array_filter () expects at most 2 parameters, 3 given

I have the following code that was taken from example # 3 in the PHP documentation for array_filter() : $arr = array('a' => 1, 'b' => 2, 'c' => 3, 'd' => 4); var_dump(array_filter($arr, function($k) { return $k == 'b';...
asked on 14.11.2014 / 22:44
1
answer

Vectorized Images, Awesome Font, Bootstrap Glyphicons. How do they work, what are the advantages and disadvantages?

I was checking out Font Awesome and Bootstrap . Home They use a font scheme for icons: In Awesome Font I saw the following files:    FontAwesome.otf    fontawesome-webfont.eot    fontawesome-webfont.svg    fontawesome-webfont.ttf  ...
asked on 08.12.2014 / 22:28
1
answer

Dynamic Search with JSON - PHP - MYSQL

I've been searching the internet but I could not find any references, perhaps because I was searching wrong, so I resorted to creating this post. I have a query in the database (MySql with PHP) that returns me a list of products with several...
asked on 08.12.2014 / 20:43
1
answer

Reading file in C

I have the following structure for reading each line of a file: fclose(arq); // fecha o arquivo para em seguida abri-lo em modo leitura apenas arq = fopen(url, "r"); if(arq == NULL) { printf("Erro, nao foi possivel abrir o arquivo\n"); } e...
asked on 08.11.2017 / 00:14
1
answer

Dynamic chart does not update

I'm using the HTML5 RGraph library and should update dynamically along with the bank. However, I would like the chart to put the last imputed data in the database, so if I entered the value 10 in the database, the graph line would stay in...
asked on 31.10.2017 / 02:15
2
answers

help here div and html functions

I have this code, when I hover over the div it moves, but I wanted it to happen when I hit the button: <head> <style> .square{width:100px ;height:100px ;background:red ;transition: all 2s;} .square:hover{background:blue;-web...
asked on 04.11.2017 / 01:02