All Questions

1
answer

Folder management

I'm new to programming and I'm doing a project in which I want to create, open and delete folders, but I can not find how I can open it. I use the library java.io.File . Try this: public void crearCarpeta()...
asked on 23.11.2017 / 16:47
2
answers

Release memory c ++ (delete)

I'm working with linked Lists (using pointers). In a memory reserve function (using new) as long as% co_of% In another function I release all the memory (with delete) and according to the project statement I should be able to generate a Li...
asked on 23.11.2017 / 17:15
1
answer

Problem removing elements from an array: "can not delete array elements"

I have a problem to which I can not find a solution for more laps I give it. I have a program in which I generate a series of data and store them in a list. Later I have to remove some of the elements from the list so that its size is smaller. I...
asked on 22.11.2017 / 10:21
2
answers

Route control (URL) in PHP to execute API requests

I've been thinking for a while now about the best way to solve this and I do not come up with a satisfactory solution. I would like to exercise strict control over the routes that are introduced in an API that I am designing in my domain....
asked on 24.11.2017 / 15:17
1
answer

Help with Arduino via Serial

I have an Arduino that I use to move some servos. The Arduino has the following code: #include<Servo.h> //Creamos los objetos servo Servo servo; Servo servo2; Servo servo3; Servo servo4; int enviado; //Aqui enviamos el numero completo...
asked on 21.10.2017 / 14:08
1
answer

duplicate message when executing stored procedure

How can I avoid duplicate results on the screen when I execute a stored procedure? This is the procedure: CREATE PROCEDURE 'my_procedure'() BEGIN declare fecha_aux varchar(30); set fecha_aux = Date_format(now(),'%M %d %Y %h:%i:%s %p...
asked on 24.11.2017 / 12:51
1
answer

doubt in bit fields

I have this code: #include <stdio.h> /* * palabra de 32 bits: 0 a 31 */ struct palabra { unsigned car_ascii : 7; // bits 0 to 6 unsigned bit_paridad : 1; // bit 7 unsigned operacion : 5; // bit 8 a 12 unsi...
asked on 21.10.2017 / 15:32
2
answers

Function and conditional

Good evening. I have two vectors, one with binary data M <- c(1, 0, 0, 1, 0, 0) and another with non-binary data C <- c(2.5, 3) I need to create a function (in R) that assigns a value of vector C, whenever a value o...
asked on 25.10.2017 / 22:41
1
answer

Verify Internet App Android Studio

I need my application to check if there is internet and if there is not show a set.text saying that there is not. I think it has something to do with this class: public class HTTPDataHandler { static String stream = null; public HTTPDataHa...
asked on 24.10.2017 / 16:04
1
answer

Error with sqlite database on android

I have this code to manage an sqlite database on android: public class ConfiguracionSQLite extends SQLiteOpenHelper { public ConfiguracionSQLite(Context context) { super(context, "configuracion", null, 1); } @Override...
asked on 22.11.2017 / 10:07