All Questions

2
answers

Sort query in an interleaved way

I'm trying to list a particular product category. example. $consulta = $pdo->prepare("SELECT * FROM msg where tema = :tema;"); $s = 'mensagens-de-aniversario'; $consulta->bindParam(":tema", $s, PDO::PARAM_STR); $consulta->execute(); w...
asked on 14.06.2015 / 20:47
1
answer

Cancel Uploads

I'm trying to upload imagens files, but when I'm clicking on X of Photo Preview, it's only closing Preview, but it's still selected. How can I do when I click on x , also that list image is taken? My JS code just below....
asked on 25.06.2015 / 21:27
2
answers

Do not bring data in Json Array on Android

I have a problem in bringing data into an Array in Json . It looks like it does not execute the Try catch, but in the variable result it brings all the data. I would like to get the name field, but it does not run the Array. See my code...
asked on 18.06.2015 / 21:59
3
answers

Convert "unsigned int" into "unsigned char" vector?

I need to convert a unsigned int to a unsigned char vector to later translate those addresses into binary, for a job that needs to simulate a virtual memory. Can someone explain me how to do this?     
asked on 24.06.2015 / 19:25
1
answer

Show ads admob interstitial (full page) after game over

I've already imported all the Admob files into my project and it's working, but I'd like to know how to put interstitial ads to appear when WinPanel and LosePanel are active. Here is the code: using System.Collections; using U...
asked on 14.06.2015 / 20:44
1
answer

JVM. What is the difference between Metaspace and Permgen?

What is the difference between Metaspace and Permgen? I've been trying to understand for a while, could you help?     
asked on 22.06.2015 / 15:48
1
answer

MySQL JOIN with or without foreign key?

What is the difference between relating 2 tables using and not using a foreign key? Regarding performance, is it advisable to use foreign key to make the relationship? In what situation would it be indispensable and in what situation would...
asked on 28.06.2015 / 06:57
1
answer

How to enable PHP Sessions in Wordpress?

I'm developing my website using the Wordpress platform. I needed a lot, but very much, to enable PHP Sessions inside the platform, so logged-in users can stay logged in to the subdomains I'm creating. Any suggestions? I already tried to en...
asked on 15.01.2016 / 18:44
3
answers

In OOP, what are the differences between Afferent Coupling and Efferent Coupling?

Regarding the concept of acoplamento in Programação Orientada a Objetos , what are the differences between Acoplamento Aferente and Acoplamento Eferente ? If possible, to elucidate the understanding better, what would a...
asked on 06.11.2015 / 18:31
2
answers

Get IP address LUA

I want to get the IP address through the LUA code. I have an example code that works but I get the IP of the LAN interface. local hote, _ = socket.dns.toip(socket.dns.gethostname()) How can I get the IP from another Wi-Fi interface? is it p...
asked on 29.06.2015 / 14:59