All Questions

3
answers

How to select last records from related table?

I have the following tables: negociacoes , negociacao_contatos and negociacao_status and the following relationships: negociacoes hasMany negociacao_contatos negociacoes belongsTo negociacao_status In negociacao_stat...
asked on 25.06.2015 / 21:07
1
answer

Complexity of class P and NP

Good evening, I just started to see FSM (finite state machine) and I read about algorithm complexity and about P and NP, but I have 2 questions that I do not understand. I have this picture of the 2 machines: What is the complexity...
asked on 22.09.2015 / 06:05
1
answer

Convert svg to java png

I'm trying to do an SGV image conversion to PNG, but I'm having some issues. My code: String svg_URI_input = Paths.get("/home/ivan/Documentos/imagem/Svg2.svg").toUri().toURL().toString(); TranscoderInput input_svg_image = new Transco...
asked on 02.07.2015 / 14:29
1
answer

Problem with Session and Nodejs

I am creating a chat with node and session , but I have the following problem: the user identifies and enters the room there all right. I am testing on 2 different computers. When I do a refresh on the page it assumes the session of the...
asked on 03.07.2015 / 03:33
1
answer

What is the best method to do login authentication in android and webservice php RESTFul?

I'm building an application that needs login, I've already created the webservice in php using Slim. I'm currently using a POST, passing a json with email and password to the webservice to return the corresponding user's json, but I believe t...
asked on 06.09.2015 / 19:12
1
answer

Entity Framework 6 error while logging the SQLs

I am trying to see the SQLs executed by the Entity Framework, I use version 6. I'm following this guide . I made a new DBContext using the graphical interface. 5 tables only. The code is inside a Controller Web API2: public class TAG...
asked on 17.06.2015 / 14:52
1
answer

How to inflate a class on Android?

I needed to inflate a form on a tab, I always do the form in xml, but this time I did via code, does anyone know how I display my class instead of xml in a FragmentTab ? Code to inflate xml to View : if(this.getTag() == "formula...
asked on 23.06.2015 / 16:38
1
answer

Registry Service Provider.BR

I want to submit myself as a service provider in the Registro.BR and this requires that a test be done in the homologation environment of them. I am finding the information mismatched, so I had some doubts. 1- They quote an application called...
asked on 17.06.2015 / 00:19
1
answer

Can you calculate the diagonal on Canvas?

I need to draw a square with Canvas in an image. This image comes from the database, where it has different dimensions. I am able to draw the square in the center of the image, but if the image is wider, the Canvas is out of proportion. Is it po...
asked on 24.06.2015 / 15:56
1
answer

EF is giving Timeout in a query that should be instantaneous

When I run the SQL generated by direct EF in SQLServer it runs less than 1 second. When you run the application it times out because it takes more than 30 seconds. I have seen a lot of this problem on the internet with procedure calls, but wh...
asked on 24.08.2015 / 20:34