All Questions

2
answers

How to read and render a .txt file in the Django template?

How do I render the data of a arquivo.txt in a Django template? file content: 1;'one';'foo' 2;'two';'bar' I return in the template    1 - one - foo       2 - two - bar Any tips on where I start? Following the link...
asked on 25.06.2015 / 21:34
2
answers

Foreign key may not be primary key?

I'm new to databases. My teacher asked us to do the linking of 3 movie charts: Titulos , with movie names and links Categorias of movie and link to movies A middle table that would link category to movie title. So the m...
asked on 31.03.2014 / 20:37
1
answer

How to put one element before another with jQuery?

How to make a certain HTML before another div? I tried using prepend but it poe at the beginning inside the div but I want it to put above / before and out of it, using prepend it looks like this: <div class="pai"><div&g...
asked on 27.06.2015 / 00:06
2
answers

Collapsing text in a single line in a database

Suppose I have the following data tabela<-structure(list(nome = structure(c(2L, 9L, 6L, 1L, 8L, 3L, 4L, 5L, 7L, 10L, 11L), .Label = c("12 Anos de Escravidão", "A Caça",...
asked on 02.04.2014 / 18:52
2
answers

Give height and overflow-y in a div

I'm trying to give height and overflow-y to div to limit the size of div and add a scroll. Something like this: ForthisIamloadingalistofdatacomingfromDB(IamworkingonASPMVC)inthediv,andIaddtheheightandtheoverflow...
asked on 17.04.2014 / 11:33
1
answer

Web Api Client in Windows Forms

I'm making a client using Web Api. My site has the Web server function Api. I found this reference from Microsoft link which has an example client: static async Task RunAsync() { using (var client = new HttpClient()) { client...
asked on 05.05.2014 / 20:23
1
answer

How to make a pie chart with database?

I have the table in my database called votes, in it I have id, name and votes, I wanted to plot those values being, name and value in a pie chart or what is the percentage of votes each name <? $SQL1 = "SELECT * FROM votes"; $...
asked on 25.04.2014 / 21:27
2
answers

How to save path from a photo taken from the camera in Path or String

I need to get the path that saved the image and save it so that whenever I start the app the image appears in an ImageView. My code is the one public void onClickCamera(View v){ Intent cameraIntent = new Intent(android.provider.MediaStore...
asked on 09.05.2014 / 12:42
1
answer

Scope of variables within $ .getJSON

The variable role gets a new value in every Loop , when it is inside $.getJSON it takes the second value of the array and does not change anymore. There are two console.log(); in the code, I put their return next to it...
asked on 13.03.2014 / 19:00
2
answers

Doubt about web application chat with Java and PrimeFaces

Well, I'd like to ask a question. I have to make some kind of chat where people can talk to each other. It will work just like a chat of Facebook or WhatsApp for example, but I do not have any database or reference that I can s...
asked on 24.06.2015 / 19:15