All Questions

1
answer

Insert in two tables at once

I have the general table I also have the table line And finally I have the company_line table What I want to do is that when I insert in the general table the general_id of the new record is passed to the company_line...
asked on 29.11.2018 / 20:59
1
answer

Laravel MethodNotAllowedHttpException error en route Resource

I have a question, when I try to update a data I get the MethodNotAllowedHttpException error, I understand that this error comes out when there is a problem with the paths that are get and should be post but in my case my path is...
asked on 04.12.2018 / 05:33
1
answer

How to consume the Spotify API in Ruby on rails 5.2

Working with the Spotify-API in Rails I'm using Rails 5.2.1.1 ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux] As of version 5.2 of Ruby on Rails, some improvements in the sections of security . To connect the Spotify AP...
asked on 04.12.2018 / 05:20
2
answers

Program includes extension in name when moving files

I have a program in Java where when copying a group of files, when copying them, I copy them in the following way, this is the code of the method where you copy them: public static void copyFiles(String src, String dst) { int x = 0; eF...
asked on 25.02.2016 / 17:16
1
answer

Mapping in model two fields first key

I have a table whose structure is composed of two PK, I want to include it in my model to insert records to it, but I have problems doing this my question is how do I declare in my model that I have those two fields as pk, I tried that way...
asked on 05.12.2018 / 16:46
1
answer

Insert text in input text in another web with php?

How can I insert text in input text from another web with php? How can I press a button on another website with php?     
asked on 28.12.2016 / 12:12
1
answer

Someone could give me an example of friendly numbers in PHP

Help with an example of checking friends numbers in PHP, I can not find any example or tutorial on the web Two positive integers A and B are friendly numbers if the sum of the proper divisors of A is equal to B and the sum of the proper divis...
asked on 04.12.2018 / 21:40
1
answer

java.lang.NullPointerException in a RecyclerView

This warning appears to me in a layout where it loads a RecyclerView within onCreate in this line specifically in setLayoutManager recyclerView.setLayoutManager(layoutManager); generates the following:    Method...
asked on 29.12.2016 / 20:01
1
answer

Delete a records and records related to this, MySql

know how I can delete a record and at the same time all records related to this, I currently have the table tb_artista in which I want to delete a record of that table with the id AR1, at the same time in tb_album I want to delete a table with i...
asked on 04.12.2018 / 14:02
2
answers

Validate Onclick event in JavaScript

I want to perform a validation on a button to clean my forms by clicking on the exit button: if (document.getElementById('btnsalirmodalf').onclick == true) { document.getElementById('asignadoa').value == ''; document.getElementById('Es...
asked on 06.12.2018 / 18:40