All Questions

1
answer

What is the difference between android: launchMode="singleTask" and android: launchMode="singleInstance"?

Good morning, I'm investigating the launch modes of the activities on android. I am developing an application where there should only be one instance of an activity (A), if it were the case that there were more instances of the activity could...
asked on 20.02.2018 / 03:38
2
answers

Insert data with iteration in php

I have the following function in the model that I want to enter in the database: public function agregarBolsasModel($datos, $tabla){ $stmt = Conexion::conectar() -> prepare("INSERT INTO $tabla(lote, caja, bolsa)VALUES(:uno1, :dos2,...
asked on 21.02.2018 / 03:17
1
answer

NoReverseMatch at / accounts / register u'cuentas' is not a registered namespace

I'm working with Django 1.10 and I just created a user registry but when I click save it does not redirect me to the cuentas:home page: User registration <form method="post"> {% csrf_token %} {{ form.as_p }} <but...
asked on 20.02.2018 / 15:03
1
answer

Drawing in OpenCV and Python

I'm doing an application in Python, which using the OpenCV library and passing it the height and width, I create a RGB image with the past dimensions and in which I can draw and gurantee later. I'm trying something like this: import numpy a...
asked on 21.02.2018 / 16:56
2
answers

Two columns with the same name

I have a problem with the query I'm doing, when joining two tables with a join I do not see a column because they have the same name. I tried to use a select as I normally do in sql but it still does not appear. $user = DB::table('app_registro...
asked on 19.02.2018 / 13:29
2
answers

Error when trying to join vectors

I want to join the vectors vector1 and vector2 into a single vector vectorUnion #include<iostream> using namespace std; void muestraVector(int v[], int longitud); void unionVectores(int vector1[], int longit1, int ve...
asked on 23.02.2018 / 19:25
3
answers

Search for consecutive characters in a PHP string

Hello I want to search within a text string, consecutive characters such as: qwerty, ertyu, tyuiop asdfgh, dfghjk, fghjkl zxcvbn, xcvbnm minuscuslas o capital letters indistinctly. Thank you.     
asked on 09.08.2018 / 01:57
3
answers

Use the OR clause (||) in Eloquent queries in Laravel

Greetings community I have a doubt and I do not know how it is resolved ... How well we know if I wanted to make a query that had an OR clause in SQl would be something like this: Select * tabla where campoA='1' || campoA='2' The issue i...
asked on 06.08.2018 / 20:17
1
answer

How to move folders with files inside them in Java?

I have the following dilemma. By day I have X number of folders in a directory that need to be moved to another directory and then make a backup of those files. I am creating a Java program to automate the process but I have problems when moving...
asked on 07.08.2018 / 18:32
1
answer

Selecionador Default option of a database

I have a table "put" this table contains the following fields id puesto 1 empleado 2 director 3 programador already having the ID correcpondiente to the user and the data contained by a submith in $id = $_GET['id']; I want my se...
asked on 09.08.2018 / 16:44