All Questions

1
answer

What happens if I open a file and I do not close it?

I am new to programming in ansi C. I am currently learning to manipulate files. My question is if I open a file using the function fopen, and I finish the program without using fclose, the file can be damaged or is there a pending process on...
asked on 01.06.2018 / 00:09
1
answer

Error compiling passing const

There is an error that does not stop to compile and I do not understand, I explain, I pretend to make the power of a language, eg given a language L {0,1}, do L ^ 2, that would give us { 00,01,10,11}. That's what I intend to do in my code, ho...
asked on 04.10.2017 / 00:27
1
answer

Subtract two sql columns

I have a table in postgresql, the structure is as follows: clientes --------------------- nombre apellido pago deuda saldo pendiente The point is that I want to subtract the fields pago - deuda and the result that appears in s...
asked on 24.05.2018 / 23:09
1
answer

Create polygon layer in google maps api js

Good morning, I have the following coordinates:    -90.833910,13.994037 -90.833918,13.994095 -90.833924,13.994152 -90.833930,13.994207 -90.833936,13.994263 -90.833943,13.994322 -90.833951,13.994382 -90.833959,13.994440 -90.833965,13.994494 -9...
asked on 07.09.2017 / 17:34
2
answers

Unify 2 functions to read files with python

Since some time ago I am trying to make a bash simulator using python, I am creating the tail and head commands, for this create 2 functions: def head(textfile): content = [] try: file = open(textfile, "r") for line in...
asked on 28.05.2018 / 19:09
1
answer

Help with PHPMailerAutoload.php

I am trying to send an email using the php library that is PHPMailerAutoload.php The reason I use this library is to retrieve a user's password. NOTE: I am using gmail. I have the code configured this way: //Método getValor function getValor($...
asked on 04.09.2017 / 22:12
2
answers

Show list of integers

The program compiles but only shows the last item in the list to be entered and not the rest. #include <stdio.h> #include <stdlib.h> #include <conio.h> struct nodo{ int valor; struct nodo *sig; }; int main(){...
asked on 06.09.2017 / 16:22
1
answer

Multiplication and sum in MySql or php

I need to perform the following operation of the following table in mysql or php: I need to calculate unit_value by quantity (unit_value * amount) and add all the values when the nonreceiver is equal to 11 (where no_recibo = 11). I n...
asked on 06.09.2017 / 02:50
1
answer

link an iframe with an HTML form

I'm wanting to show a website inside an entry in wordpress, which is inside an iframe, which I want you to do a form but not link them so that the form makes its function within the iframe's website, look my code. <p> <ifra...
asked on 08.09.2017 / 04:56
2
answers

Stop Python script on NAO robot when touching the head

My problem is as follows. I have a Python script that runs so that the NAO robot performs various non-stop actions until the execution stops, however for security reasons (in case the robot goes crazy and wants to kill us all ) I need to add so...
asked on 31.08.2017 / 20:03