All Questions

2
answers

Trying to get property of non-object in line 18

In the line that there is error is in this: if ($resultado->num_rows() > 0) ... This is my code: <?php $mysqli= new mysqli('localhost','id5840508_root','******','id5840508_hospital '); $salida=""; $query="SELECT*FRO...
asked on 20.05.2018 / 19:30
1
answer

Capture data with getline

I have problems with this function ... it turns out that when I execute it, it is printed on the screen directly: name > date > ... , and I can not capture the name. I have the libraries <iostream>,<fstream>,<string&g...
asked on 24.04.2018 / 05:10
2
answers

How to know if an element of the Sun has loaded with jquery?

How to know if a component has loaded, for example a div and not in the traditional way the whole page $(document).ready(function() { using jquery? Try it like that but it does not work the div is this <div id="calendar">...
asked on 23.04.2018 / 00:50
1
answer

Filter a DataFrame using a list

If I have the following dataframe a,b,c 0 2,3,8 1 5,6,5 2 7,8,7 I would like to filter the rows, but using a previously created list. Use something like this: num=[2,5] df=df[df['a'] in num] I would like to obtain the following resul...
asked on 24.04.2018 / 13:35
1
answer

How to solve blank space (Android)?

I have an Android XML that implements an AutoCompleteTextView. The thing is that I would like to put it underneath and if I move it, a blank space is generated between the top bar and the AutoCompleteTextView. Any solution? <?xml version="1...
asked on 25.04.2018 / 14:30
1
answer

dates timestamp problems when converting

I have stored the "dates" (it is a varchar) and I need to take it to another format to do operations, and many poor options and the one that seemed to help me dateformat arrogates values to me in zeros, I also have to keep the hours and minutes...
asked on 19.04.2018 / 16:35
1
answer

What can be done to simulate a MS SQL try catch but in PostgreSQL?

What can be done to simulate a Microsoft SQL Server try catch but in PostgreSQL? BEGIN TRY BEGIN TRANSACTION IF EXISTS (SELECT * FROM USUARIOS WHERE ID_USUARIO = @ID_RESPONSABLE) BEGIN DECLARE @ID_CLIE...
asked on 20.04.2018 / 21:43
1
answer

How to delete characters in python console? [closed]

Something like in java that I think is with a \b but in python     
asked on 30.10.2016 / 18:24
1
answer

Edit Dataframe pandas .groupby

I have the following code: import dataiku from dataiku import pandasutils as pdu import pandas as pd mydataset = dataiku.Dataset("PRD_edited_rejoined") mydataset_df = mydataset.get_dataframe()' mydataset_df[u"Válido"] = (mydataset_df.groupby([...
asked on 24.04.2018 / 14:34
1
answer

Duda functions template

The doubt is clear and concise, I have a function template, something like this: template <typename T> T suma(T& a, T&b) { return a+b; } The question is, what do I have to say to tell you the type of data I receive? Is the co...
asked on 20.04.2018 / 11:56