All Questions

1
answer

laravel 5.6 related models to related models

I have in the model Finca.php public function piscinas(){ return $this->hasMany(Piscina::class)->select('id' , 'finca_id', 'area' , 'name'); } And in the Piscina.php model public function finca(){ return $this->belong...
asked on 13.06.2018 / 22:48
1
answer

Problem with conditional

I have a problem with this code. It is a game of pasapalabra. It consists in guessing the words. I have two buttons, one to validate (valid if the answer is correct or not) and another that passes the turn. At the end, when he asks again the una...
asked on 08.06.2018 / 22:10
1
answer

Change the expandable list view android icon

I want to change the icon of the first image with that of the second image. How can I do it? android:id="@+id/expandableListView" android:layout_height="match_parent" android:layout_width="match_parent"...
asked on 04.06.2018 / 14:39
1
answer

React, Google map: "Unexpected token" and "google is not defined" when deployed

I'm getting two errors, the first: ###Uncaught SyntaxError: Unexpected token < And the second: ###ReferenceError: google is not defined When I run it on my computer everything works but at the time of deployment in now.io e...
asked on 11.06.2018 / 06:09
1
answer

Discount amounts in SQL without using a cursor (SQL)

I need to discount or download quantities, I have a query that yields the following result: This result I have to download the balance based on the amount, the column to calculate is descontar ; that is, for an article I have an a...
asked on 11.06.2018 / 14:44
2
answers

save image in django python

Hi, I would like to know if I can and how to possibly save an image in a folder whose name is entered in the title of the same model, for example: title ="animation" image = this will be stored in uploads / animation / class Imagen(...
asked on 13.06.2018 / 15:01
1
answer

How to display the name field referenced by your ID in CakePHP 3.x?

I have three tables (Premises, Routes and Schedules): Local Table: id | nombreLocal -------------------------- 1 Local Uno 2 Local Dos 3 Local Tres Routes Table: id | id_local_origen | id...
asked on 07.06.2018 / 20:29
1
answer

Infinite Scroll, insert content when I get up

I'm trying to perform a test to make my web with infinite scroll, and upload content as it scrolls down. It happens to me that with the method that I see everywhere, I insert the line when I arrive at the top, I mean I have to go down (it does n...
asked on 09.06.2018 / 08:51
2
answers

Thousands Separator

I have this query SELECT CONVERT(numeric(18,0), CAST((g.SI_Existencia) * gg.SI_Costo_Promedio AS MONEY),1) from SI_Inventario_Teorico_QAD g INNER JOIN SI_Maestro_Ref_QAD gg ON g.SI_Articulo = gg.SI_Num_Articulo WHERE SI_Articulo = 200...
asked on 24.07.2017 / 17:20
1
answer

Download xml from FTP

I am trying with the following code to download several xml from an ftp. The first xml downloads it correctly but from the second it returns null . What would be the right way to do this? private Vector<InputStream> descargarConten...
asked on 19.07.2017 / 17:33