All Questions

1
answer

Add new value to an enum type field in Laravel

I am working with migrations in Laravel and I have a partners table that has a type attribute of type enum with the following values: $table->enum('type', ['cliente', 'proveedor', 'empleado', 'transportadora'])->nullable(); What I nee...
asked on 30.08.2018 / 22:40
1
answer

Create and repeat Cooldown

I want to make a cooldown that when I reach the end of for example 24h add 1 day and start the countdown again of 24h, if someone could help me I would be very grateful, thanks in advance Here something of what I've done trying: var co...
asked on 08.10.2018 / 15:35
2
answers

Web API 2, OData v4 and Automapper

I have a problem that I have no idea how I can fix it. I have a class as follows: public class Message { public long Id { get; set; } public DateTime DateCreated { get; set; } public DateTime DateModified { get; set; }...
asked on 11.12.2015 / 00:25
3
answers

Arguments in function (Javascript - ES5)

I have the following code: function leerTexto (nombre, callback) { process.nextTick(function () { var contenido = fs.readFileSync(nombre) callback(content.toString()) }) } Leaving aside what the code does, I would like to know why the...
asked on 05.03.2017 / 22:03
2
answers

problem with writeObject in java

I'm uploading images to the server. The image is sent in an input file to my local server, I convert it into a byte array, I set the array in a model class (BasicFileAction) and then with an object of type URL I make a connection to a service in...
asked on 18.08.2017 / 16:22
1
answer

What is the benefit of using interfaces for services in Spring MVC?

Suppose I have the following JPA repository: public interface IGreetingRepository extends JpaRepository<Greeting, Long> { } And according to the documentation I would have to generate a service interface as follows: public interface...
asked on 29.12.2015 / 00:38
0
answers

Pass data to a component of the Router [closed]

I am trying to make a simple application, which consists of 3 components: SearchComponent , ListComponent and DetailComponent , the scheme would be such that so: Being the SearchComponent visible in all views, and the other 2 rout...
asked on 23.08.2016 / 09:18
3
answers

Is it necessary to divide responsibilities of a controller in AngularJS?

I am creating an ABM with AngularJS, I have a controller usuario.controller.js that has the responsibility to create, delete and display the list of users. The problem is that every time I load the view create the controller is re-insta...
asked on 18.12.2015 / 02:25
3
answers

Calculate route between two points with Google Maps in IOS

I'm using the SDK of Google Maps in
asked on 20.10.2016 / 08:18
3
answers

When to use MyISAM and when InnoDB?

When choosing the MySQL storage engine, when should I use InnoDB and when MyISAM and what does the choice depend on? Is it any higher than another? In my case I have 8 tables, some of half a million records, other small and all are related in...
asked on 16.03.2017 / 13:33