All Questions

2
answers

Delete files created more than 10 days ago, saving the most recent, if everyone on the list has more than 10 days of creation

I did this question where the question was how to delete files with more than 10 days of creation. I retrieve them from a directory and the code has already been implemented and is functional. However, I ended up with a problem that could c...
asked on 17.08.2016 / 20:31
3
answers

Git alias for the current branch name

In my work it is very common to switch between feature branches and stage / develop branches several times during the day. And many of these times I need to write or use a tab to complete the name of the branch even though it is inside it. I wan...
asked on 01.11.2016 / 03:43
1
answer

What are the formats used to represent values (color, contrast, brightness) in digital images? [closed]

What I want to do is: recognize pixel patterns in a file, or know how the assembler handles this (to make it easy to recognize these patterns). Always wanted to create some application to manipulate images, doing object recognition, trying ne...
asked on 09.01.2017 / 13:08
2
answers

Format value with explode and PHP implode

I have a dhEmi tag that has this value 2016-09-09T08:10:52-03:00 To return a datetime I did the following. $dtemis = $item->infNFe->ide->dhEmi; $res = explode("T", $dtemis); $res1 = explode("-03:00", $res[1]); $array = arr...
asked on 09.09.2016 / 15:10
2
answers

How to use Jquery with Vue.js?

During the implementation of Vue.js with sematic-ui, I have the following Jquery to open the modal: $('.ui.modal').modal('show'); How to do this integration in Vue?     
asked on 07.07.2016 / 21:04
3
answers

Check if the value is integer

I use the following code in php to check if the number is integer: $qtd_bo = "1.20"; if (!preg_match('/^[1-9][0-9]*$/', $qtd_bo)) { echo "Não é inteiro"; } It returns me that number 1.20 is not integer. Until then, okay. The...
asked on 03.10.2016 / 15:37
4
answers

How to list all tables in a SQLite database?

In MySQL, when I run the command SHOW TABLES I can see all the tables present in a particular database. What about SQLite? How can I do this?     
asked on 15.12.2016 / 15:52
2
answers

What's the difference between gravity and layout_gravity on Android?

In the customization of layout properties in Android Studio, I noticed that there is gravity and layout_gravity , both have the name gravity , so I'm a little confused as to its features. That is, what are the differences b...
asked on 07.10.2016 / 22:56
3
answers

How do I know how many days the current month has?

How to know how many days the current MySQL month has, example: setembro = 30dias Reason: I have a goal: exemplo: 1.000,000 I need to get the value of the goal and divide by the number of days it has in the current month t...
asked on 21.09.2016 / 15:46
3
answers

Remove only numeric elements from an array

I have an array like this: $arr = array('prolongar-se', 'durante, 4, 'a', 7, 'dias', 'dependendo', 'da', 'dose', 'administrada', 'e', 'do', 'pH', 'da', 'água', 'sendo', 7.5, 'ml', 'por','cada','paciente'); I would like to remove...
asked on 04.03.2017 / 20:55