All Questions

1
answer

How to create a sequence in varchar in the Postgres database?

I have the following table in the Postgres database: CREATE TABLE customer ( userid character varying(30) NOT NULL, firstname character varying(30) NOT NULL, lastname character varying(30) NOT NULL, balance double precision NOT NULL,...
asked on 21.09.2015 / 20:56
2
answers

How do I specify that the builder type is the same as declared in the class?

I created an object that accepts a list of any type, like this: class Grid<T> { private Integer count; private Integer offset; private Integer limit; private List<T> list; private T tipo; public Grid() {...
asked on 23.09.2015 / 14:57
1
answer

What is $ scope.answer?

I'm new to AngularJS, I would like to understand what the $ scope.answer really is for, I did not find anything in the official documentation or the web, I just saw it in an example I took in a tutorial, but I did not understand the importance o...
asked on 14.10.2015 / 15:13
1
answer

Display Latin characters in a String

How do I display Latino characters as content for a web page? This content to be displayed is written in java, which should encode it correctly and return a String with values to be written to the server. I'm using the URLEncoder class...
asked on 30.09.2015 / 19:00
1
answer

Do not find HttpContext.Current

I'm trying to create a UrlHelper as follows: UrlHelper urlHelper = new UrlHelper(HttpContext.Current.Request.RequestContext); I have already made reference to System.Web , as I saw it as a solution in several places. using System.We...
asked on 01.12.2015 / 19:09
1
answer

How to allocate a member of a struct in C?

I would like to know if it is possible to allocate a atributo of a struct , follow my struct example: struct MinhaStructExemplo { int * atributo_quantidade; /*Atributo que eu gostaria de alocar na memoria*/ }; For the...
asked on 27.11.2015 / 00:35
3
answers

Array value with the highest occurrence

In an array, example [1, 2, 3, 4, 5, 2, 2, 3] , which logic, methods and functions I can use to get the value with the highest occurrence, as in this example 2 .     
asked on 19.11.2015 / 14:00
1
answer

How to convert a PDF file to TXT for TXT?

Is there any way in java to convert a PDF extension file to the TXT extension?     
asked on 16.11.2015 / 15:15
1
answer

How to change filename for download?

I am generating a PDF file and use HTML5 to display it on the screen: $("#conteudo-pdf").append('<object data="' + meuData + '" type="application/pdf" style="width: 100%; height: 100%"></object>') Content is displayed correctly...
asked on 23.10.2015 / 14:26
1
answer

Many to Many relationship problem in the Entity Framework

I have the following situation: To perform an authentication, I am using the old method for a small application, for assigning levels (roles), as many examples that have the web apart. I use EF and Postgres to access / write data and the Flue...
asked on 26.11.2015 / 17:52