All Questions

4
answers

How to merge multiple text files into one?

Does anyone know how to select all text files from the same directory and merge all of them into just one final text file? Example: In the X folder, I have the 1.txt, 2.txt, and 3.txt files. I need to merge the contents of all into just one t...
asked on 22.05.2014 / 16:15
6
answers

What does the term Fallback mean?

I've seen this term fallback being used multiple times. Even in the framework that I use every day, Laravel 5, this word appears in a certain configuration: Example: /* |------------------------------------------------------------------...
asked on 13.09.2016 / 14:46
5
answers

Difference between transporting data in JSON and String

I'm finishing building a site in PHP with the MVC architecture, the next step is to integrate the application (which only has the interface) with the core ( controller ) site, to fetch information from the database. data. Thi...
asked on 17.05.2016 / 05:06
4
answers

Deliver a 16-digit number in PHP

Number: 9999999999999999 It looks like this: 9999 9999 9999 9999 $num1 = "9999"; //parte 1 $num2 = "9999"; //parte 2 $num3 = "9999"; //parte 3 $num4 = "9999"; //parte 4 I would like to do this, without losing any number or adding anythi...
asked on 27.10.2017 / 15:28
4
answers

Number formatting (php)

I created a function cotacaoDolar(); which returns at the end: return str_replace(",",".",$texto_dolar); And the result appears here: echo $i['sellingStatus'][0]['currentPrice'][0]['__value__'] * cotacaoDolar(); How do I format...
asked on 01.04.2014 / 19:51
5
answers

Transforming a JSON information into a variable

I'm calling a function in node.js and it returns a JSON: { "pair": "BTCBRL", "last": 2280.0, "high": 2306.0, "low": 2205.0, "vol": 113.17267938, "vol_brl": 255658.20705113, "buy": 2263.0, "sell": 2279.77 } I would like to us...
asked on 12.01.2017 / 14:51
3
answers

What is the appropriate amount of changes to commit?

I've noticed that in many public projects in GitHub , commits usually contain very minor changes. There are several instances of commits with changes to a single line of code. In others, there are changes only in comments, not in code. I...
asked on 29.05.2014 / 13:53
4
answers

MySql decimal value

I'm trying to insert decimal value into the mysql database, I wanted to put these values for example: 1.500,00 Thousands, hundreds and tens What kind of column should I declare?     
asked on 24.10.2014 / 01:44
3
answers

What is the difference between return and break in a switch case?

In some situations you need to practice switch case for optimization and improvement of code. I have an application developed for Android using Java, which in the case is used in both situations. Below I have an example using return...
asked on 05.01.2017 / 17:56
1
answer

Integration between Alfresco and Liferay, to use Alfresco as a document library

I need to create a public interface that allows access and download of files available in Alfresco Share. I've been trying to do this using the existing integration between Alfresco and Liferay. I found three ways to integrate Alfresco and Lifer...
asked on 11.12.2013 / 22:12