All Questions

1
answer

Error "Operand of * must be a pointer" when creating pointer with malloc and using it in a FOR

I'm trying an example of the book "Understanding and using Pointers" that has this code: int main() { char *pc = (char*)malloc(6); for (int i = 0; i < 5; i++) { *pc[i] = 0; } return 0; } In theory, it should...
asked on 13.10.2016 / 15:48
2
answers

Better performance in consultation with BD Oracle

I am interested in finding a way to have a better performance in this scenario:    I have N stored procedures that must return the result of queries ( Select * from ... ).    These stored procedures are mapped with the Entity Framewor...
asked on 10.10.2016 / 14:37
4
answers

Illegal character in output

I have an application that exports the result to me in a .csv file. The export makes several project names, one of those projects has the tag name in HTML <b> . When trying to create this file, I get an illegal character in pat...
asked on 17.10.2016 / 15:00
1
answer

Does not recognize the reserved word Compute

When trying to create this query in SQL Managament SELECT OrderID, ProductID, UnitPrice, Quantity, (UnitPrice * Quantity) FROM [Order Details] WHERE OrderID < 10260 ORDER BY OrderID COMPUTE SUM(Quantity) BY OrderId I do not recognize...
asked on 06.10.2016 / 14:47
1
answer

How to show all data consulted?

I am implementing a system of friendship requests in PHP and MySql. And of course it works for me, but it only shows me only one result, which should show all the results I find. For example, Juan has received 3 requests. There is a text sayi...
asked on 11.10.2016 / 00:50
1
answer

Where the bootstrap classes associated with a Theme class in Genexus are specified

I have seen that using the "Container" class in Genexus, when displaying the page in the browser, the "container" class of bootstrap also appears. This also happens with other classes such as "ContainerFluid" and buttons among others. Now, wh...
asked on 11.10.2016 / 16:40
2
answers

How to print a text string with pauses between each letter printed in python 3.4?

Suppose I have string="I still find the guy funny" I want the result to be I still find the guy funny but that after each letter a small pause is made I thought about the code for letra in cadena: print(letra, end="") time.sleep(0...
asked on 03.10.2016 / 14:48
2
answers

with jquery how to execute a function when clicking and when clicking again execute another function?

I have not used much jquery and I can not do this: I have a li with id="play1" when I click on it: play a song and when I come back click on "play1" to pause the playback. so always, play / stop. <li id="play1"> $( "#play1" ).click...
asked on 07.10.2016 / 12:17
1
answer

Indicator of web-connected headphones

How can I know if I have headphones connected to my computer? My goal is to get it using HTML5 + JavaScript. The next page shows all the audio output devices, but there is no way to know if the active device is about headphones or not. li...
asked on 07.10.2016 / 10:53
2
answers

How can I iterate a JSONArray of objects with a for each in JAVA?

I have the following JSONArray in java and I want to go through it with a foreach , I do not know if it is possible, thanks. [{clave:valor,clave:valor,clave:valor}, {clave:valor,clave:valor,clave:valor}, {clave:valor,clave:valor,clave:...
asked on 30.09.2016 / 19:20