All Questions

1
answer

Show form depending on value in SESSION variable in PHP

I am trying to show a form depending on a value in the session variable, at the moment of starting the command I call several data and I store them in the session variable, one of these is an operator, but I want that if the variable has the ope...
asked on 26.09.2017 / 04:30
1
answer

I have a problem when consuming web service soap with php

I have the following code to consume a soap web service with php, class request { public $request; public function __construct() { $this->request = new data(); } } class data { public $EntityCode = 10324; pu...
asked on 26.09.2017 / 03:41
2
answers

R: Generate values in new columns in Dataframe from column names

Greetings to all, You see, I have a large dataframe, and the names of the columns have a format type "XXX_YYY_ZZZ", being able to take XXX, YYY or ZZZ different categories / factors. I would like to make a dataframe of only 4 columns, being t...
asked on 28.09.2017 / 12:56
1
answer

How to use a permanent token with Http POST in REST services

Good morning, I'm trying to do a POST of a Json with a permanent token, but it always gives me error 401 unauthorized , code: public static async Task<Uri> CrearitemAsync(Item item) { using (var client = new HttpClie...
asked on 26.09.2017 / 14:30
1
answer

FPDF throws errors in 000webhost

It worked in a localhost XAMMP, I put it in a free hosting 000webhost to try it Warning: A non-numeric value encountered in /storage/ssd2/023/3036023/public_html/pdf/fpdf/fpdf.php on line 580 Warning: A non-numeric value encountered in /stora...
asked on 27.09.2017 / 17:58
1
answer

Treatment of missings and final layout of r a excel

I have a problem when dealing with the missings in R and then extract an Excel file without the missings, here are the data I want to manipulate col1=c("Sujeto1","Sujeto2","Sujeto3","Sujeto4","Sujeto5","Sujeto6") col2=c("A",NA,NA,"G",NA,NA) co...
asked on 01.03.2018 / 18:40
2
answers

Get a json from php to use it in javascript

For example: ..datos: [ {a:56, b:"nombre1"}, {a:26, b:"nombre2"}, {a:16, b:"nombre3"} ] Inside data: [....] I want to add the objects. In the php I use, I have: echo json_encode($array, JSON_FORCE_OBJECT); But it...
asked on 17.03.2018 / 03:51
1
answer

Generating a shared library of a project in c ++ with OpenCV

I have a C ++ code in visual study in which I use OpenCV to perform certain functions. So far I have had to generate a DLL to integrate it into Unity, but now I have to create a .so to integrate it into Unity and then create an Android applicati...
asked on 29.09.2017 / 10:19
1
answer

Delete the first line of an array and store result (php)

I am looking for the correct way to open a text file to upload the content to a    array Delete the first line and save the content in the same text file again. without the deleted line I use this example: <?php $ra= file("datos.t...
asked on 29.09.2017 / 19:29
1
answer

How to subtract the results of a query in SQL?

I have the following query: SELECT ID,PLACA,SUM(GALONES) AS GALONES,SUM(MONTO) as MONTO,MONTH(FECHA1) MES,YEAR(FECHA2) AÑO FROM [db_stransportacion].[dbo].[v_combustible_Asignado] c INNER JOIN [db_stransportacion].[dbo].[t_Vehiculo] v ON c.ID=...
asked on 09.03.2018 / 15:34