All Questions

3
answers

Spinner with steps (values) of 0.5 in 0.5?

I need values that go as follows: 0.5 1 1.5 2 2.5 3 Etc I did a function but I do not know if it can be done in another way that requires less code, here's my code: private String GetNumber(int spinner) { String res...
asked on 03.01.2018 / 04:01
2
answers

Delete all the following text to a character X

I have a query. I need to remove all the text that follows a sign that I determine , in this case the bar . I get the string of characters from a text field and store it in a variable. Example: www.mipagina.com/publicaciones/favorit...
asked on 18.02.2018 / 21:03
2
answers

money_format smarty

Good, I would like to be able to convert this figure: 23785638.83 to 23.785.638,83 in smarty I was thinking about using money_format but I get it whole, if you can help me I would appreciate it     
asked on 15.12.2017 / 02:52
1
answer

How can I execute the following query?

I want to be able to get the name of the months by extracting the month from a field that is called FECHA_RECIBE but in the MySql console it tells me that there is an error near FROM . the rest of the query works correctly. The quer...
asked on 05.01.2018 / 21:07
2
answers

Problem With Exceptions

Good guys, I told you my problem. I am practicing the subject of the exceptions in java and I have changed some of the validations that I have to replace them with exceptions but I have a problem and I do not know how to implement a second excep...
asked on 06.12.2017 / 19:09
2
answers

Set background-color from an array of colors

I have a component that is responsible for displaying the values of an array of objects and each object has a series of colors assigned: colores: any = [ {id: 1, c1: '#f0f0f0', c2: '#c8c8c8', c3: '#b4b4b4', c4: 'a0a0a0', c5: '8c8c8c'},...
asked on 30.12.2017 / 17:57
1
answer

C ++ about the format of output text strings

is my first question in the forum. I come from a past in the programming in C "plain" for saying it in some way. Now I have a linux mint installed and I'm using g ++ to learn C ++ and a couple of books and tutorials. Here the output format...
asked on 14.12.2017 / 00:48
2
answers

Why do I have a gap in one of the sections?

I am creating a site and one of the sections does not occupy the whole height, there is a small gap up and down. It is in the penultimate section the one before the Copyright, it is green and the white holes are visible. I put the example in CO...
asked on 24.12.2017 / 18:52
1
answer

HDPI folders - MDPI - XHDPI etc

I would like to know what resolution my images should have for these different folders: The problem I have is that I only have 1 image that is 400px X 400px , so having a small screen for example, the images do not fit well and ar...
asked on 29.12.2017 / 12:33
1
answer

How to extract a number from an almost random string in C ++ using regular expressions [closed]

How to extract a specific number from a string that can have almost any shape, I explain: My string can be: cualquiercosa+CH+number+cualquiercosa that is: TEST-13?:41CH12f:A1345 I just need to extract the number that f...
asked on 19.01.2017 / 11:17