All Questions

2
answers

Select fields with unique id and other conditions

I have a table with several fields and my goal is to bring only the id that appear only once and whose fields 3 and 4 are not null (any of them) The query you make is the following SELECT id FROM tabla WHERE campo3 IS N...
asked on 02.08.2017 / 14:50
2
answers

Error in array with Angularjs

I have two arrays which contain certain values the first array is predefined and the second array equals the first array . The second array itself is a array auxiliary which I use it to remove elements. T...
asked on 03.08.2017 / 04:46
2
answers

C: how to assign char * to const char * const *

A function returns a certain number of strings ( uint_32 extensions_count ) and I have to assign each of them in const char* const* extensions . The chains are in this structure: typedef struct VkExtensionProperties { char...
asked on 01.08.2017 / 14:18
1
answer

how to put the quotes correctly?

I have the following code which gives me the error shown, it seems to me that I am misplacing some quotes. Declare '@Cuenta Varchar(25),@Fecha Varchar(10),@Moneda Varchar(3),@User Varchar(20)' Declare '@NomTabla Varchar(60)' SET @User...
asked on 22.09.2017 / 22:46
1
answer

How can I declare a static memory c ++?

I have this code I would like to know what should change to use the (->) instead of using the (point) I think I have to add a new Lista<Punto> pLista; pLista.insetarFinal(Punto(8, 1)); pLista.insetarFinal(Punto(7, 2)); pLista.insetarF...
asked on 01.10.2017 / 08:06
2
answers

Rename image when loading on PHP server

How about, I have a doubt maybe very basic but I can not find a code that works with mine. What I want to do is save an image on my server (it already does) but that it is saved with a unique name and avoid duplicates Here my code: /*O...
asked on 03.10.2017 / 15:48
1
answer

Split IP into host part and network into c

I am doing a program in c to divide an IP into the host and network parts, I have the following code: #include <stdio.h> #include <stdlib.h> #include <netinet/in.h> #include <arpa/inet.h> int main(){ struct in_addr ad...
asked on 23.09.2017 / 12:21
2
answers

When changing class with Jquery, then Jquery no longer works

Change class a div with jquery, but when I try to use jquery with the class that I changed it does not work. $('.ver_drop').click(function() { $( this ).text( "Ocultar drop" ); $( this ).toggleClass( "ocultar_drop" ); $( this )....
asked on 02.10.2017 / 15:34
3
answers

Android Studio: pass the value of an edittext to a textview of another activity

I want to pass the value that a user puts on an edittext to a textview that is in another activity (the textview is in the main one, and the edittext in the second). This code belongs to the second activity, where is the edittext where the us...
asked on 25.09.2017 / 12:27
1
answer

Browse JSON in JavaScript

The following scenario is presented to me, I have in my HTML a <textarea> in which the user will enter a query, as if it were the command line, example, I can enter:    SELECT * FROM users;       SELECT * FROM countries;...
asked on 22.09.2017 / 03:31