All Questions

2
answers

What is the difference between android: layout_gravity and android: gravity?

When you design, for example, a TextView view in Android, you can assign the properties android:layout_gravity="left" and / or android:gravity="left" What is the difference between using layout_gravity or gravit...
asked on 05.07.2016 / 01:08
2
answers

Can a Layout be used in 2 activities?

Good afternoon. I have an app that consumes webservices (that part is already finished), but now I require that this app works without internet access, I have created my bd and I already have saved data. My question is if I can use a Layou...
asked on 13.07.2016 / 00:51
1
answer

What is the purpose and how is the buffer cleaned?

I am an initiate in programming and I am studying arrays and pointers but I have run into the buffer issue and I would like to clear up two doubts: What is the purpose of cleaning the buffer? How is the buffer cleaned? I have seen that...
asked on 27.08.2016 / 00:57
3
answers

signalr - TypeError: chat is undefined

I am developing a simple chat with signalr and I have run into an error that I still can not solve. It says that the variable chat is not defined which is not true, since I am declaring it. var chat = $.connection.chat...
asked on 06.12.2015 / 18:19
1
answer

Simplify CSS

I have a margin like this ( Fiddle example ): .menu--margen { background: #f4f4f4; border-right: 1px solid #bbbbbb; border-left: 1px solid #bbbbbb; border-top: 1px solid #bbbbbb; border-bottom: none; margin: 3px auto;...
asked on 11.04.2016 / 22:03
4
answers

Declare array inside loop vs empty it on each loop

I wonder if in C / C ++ it is better to declare a new array every loop loop: while(true) { char array[255] = ""; // Hacer algo con el array ... } Or empty it every turn of it: char array[255] = ""; while(true) { for(short i = 0; i...
asked on 09.04.2016 / 19:36
4
answers

Problem when changing a string word for another word in a phrase

Hello, I just need help printing the sentence already changed please. When printing I get the following: [Ljava.lang.String; @ 2a139a55 Here is my code: public static void main(String[] args) throws IOException { BufferedReader...
asked on 07.03.2016 / 06:04
5
answers

Perform 2 different functions in a javascript onclick event

I have a link that works as a button and when I click on it, a div will appear from the outside of the page, which will be positioned above what is in the html in that position. When I press the same button again, I want it to come...
asked on 04.02.2016 / 20:07
5
answers

How to get all the values of an object?

const obj = [{ nombre: "Nombre...", apellidos: "Coo..", edad: 22 }] console.log(Object.values(obj)) let nuw_obj = obj.map(function(p){ console.log(p.nombre) }) I want to access all the values and not their keys //Nombre...Coo..22     
asked on 01.11.2017 / 23:45
3
answers

Special PHP characters

Good morning, today I come with a small problem that is this echo $consulta; to which he replies with: SELECT SUM(carrito_cant) as cantidad FROM carrito_tb WHERE carrito_folio='3041M�Ra' and carrito_NP='NA'; Devido to the character or...
asked on 10.02.2016 / 00:27