All Questions

1
answer

How to use multiple models in a view

I am doing an individual registration and I have the following models: Pessoa Fisica Juridica In my view code, I only have the declaration of a model : @model CodeFirst.Models.Fisica The problem is that whe...
asked on 23.11.2015 / 11:59
2
answers

Why when using Object.create to create the property __proto__?

I just asked this question How to clone an object in javascript? And I had another question. When I create an object from another with Object.create , the __proto__ attribute containing the contents of the object passed by the...
asked on 26.11.2015 / 18:19
2
answers

How to send and receive bitmap on restful server

I searched and found very little content, I would like some tips because I never did. How do I send and receive a bitmap to a server? Command with JSon? Convert to base64? What is the best way to send and how should my method be on the server to...
asked on 22.10.2015 / 19:29
2
answers

list.foreach vs foreach

I have a list with several string , there is a difference between scrolling the list values: This way: ListaString.ForEach(delegate(string str) { Console.WriteLine(str); }); Or this: foreach(string str in ListaString) { C...
asked on 06.08.2015 / 14:01
2
answers

Assigning a value to my td within a table with jQuery

I can not assign a value to my td within a table, it contains% dynamic% as in the example below: <table class="table table-condensed table-hover" id="tabelaDependentes"> <caption>Lista de Dependentes</caption> <the...
asked on 11.11.2015 / 19:52
2
answers

How to correctly save an image URL in MySQL database?

I'm testing the targeting of images with the URL. But during the tests, the URL was returned with changes as seen below: URL entered in the database: http://www.meusite.com.br/pastaimagem/logos/imageLogo.jpg URL returned by the bank: h...
asked on 23.02.2015 / 21:33
2
answers

How to implement a chat in an Android application with WebApi backend

I'm developing an Android application that consumes services from a WebApi project. In one part of this application will be necessary the development of chat between two or more people. Given this scenario, what is the best approach to develo...
asked on 05.03.2015 / 18:47
2
answers

Why ArrayList instead of Stack in the implementation of Memento pattern?

As you all know, the Memento pattern is the default that saves different states of objects and then retrieves them. The intent is not to retrieve the "last" entry and then remove it? This is a stack, right? So why do examples use ArrayL...
asked on 31.12.2014 / 12:50
1
answer

Inform or not "div" in CSS

Should I report the div in CSS? Example: .teste {blablabla} div.teste {blablabla} HTML: <div class="teste">teste</div> I never reported, but I was seeing the code of a site that he was informed of.     
asked on 08.12.2014 / 16:44
2
answers

Static classes and classes with static methods

When I declare a class static , I am required to write my static methods and this class can never be instantiated. Now, I have a common class and create my methods inside it all static. Well, I even consider this static class, for consider...
asked on 27.02.2015 / 15:22