All Questions

1
answer

Use a void function as parameter of another

Suppose I need a function to run to a certain point, call another, do some action, call another function, do one more action and finish executing. Whereas the called functions are given a parameter but give no return to the first. Ex: void com...
asked on 22.09.2015 / 18:27
2
answers

How to receive a List (Java) in Javascript using Spring MVC?

I have a web application where the Spring MVC framework is being used. I need to get a List in a Javascript function, but I do not know how best to do this without leaving the code confusing. The Process class has String and Integer attribute...
asked on 24.11.2015 / 20:45
3
answers

Validate a Form

How do I display a alert() if the person has not filled in a textarea, and alert() that the comment was saved? JavaScript: function saveTextAsFile() { var textToWrite = document.getElementById("inputTextToSave").value;...
asked on 16.09.2015 / 01:47
2
answers

How to create my own composite package in github?

I never distribute a library using a repository with composer, I have no experience with this, what I tried to do is was to create a folder structure like this: ./ |-- composer.json |-- src/ |-- Test/ |-- Foo.php In the% r...
asked on 24.11.2015 / 20:57
2
answers

When should I keep or delete a branch?

I'm working on a project and I'm starting to use a versioning control system, Git. When I create a branch to introduce a new functionality and after finishing it, I make a merge with master . What is the best practice to a...
asked on 22.10.2015 / 13:59
2
answers

Regular expression to reorder string

I have the result of a query with several joins , and in a row I have the concatenation of 2 groups. The line returns a string as: 1,4|a1,b4 . What I need is to regroup ID and Value as follows: array( 1 => a1 , 4 =>...
asked on 20.11.2015 / 01:49
1
answer

Pagseguro Return - Solution

I use C # Asp.Net MVC, I had to make the return of data from Secure Pag and I found the documentation a lot flawed, follow the solution I created below for those who have the same difficulties.     
asked on 25.08.2015 / 15:30
1
answer

How does the class constructor declaration in Qt?

Work with C and a little assembly on Atmel AVR microcontrollers. I'm trying to understand how the framework extends C ++. I created a new project with Qt Creator (Widgets), and generated the following code: MainWindow::MainWindow(QWidge...
asked on 08.08.2015 / 22:44
3
answers

How to implement business rules or system rules using Domain Driven Design in C #?

I'm having second thoughts about how to separate business rules from system rules with DDD. If I have for example a class Usuario with id , nome , login , senha as properties. A domain rule would require a pass...
asked on 26.08.2015 / 23:49
1
answer

Multiple schemas in the Laravel database 5

Good afternoon, I'm redoing a system and I adopted Laravel 5. In this system I have several schemas in the database and the solution I found was to work with a connection for each schema, as follows: 'pgsql' => [ 'driver' =>...
asked on 25.08.2015 / 21:34