All Questions

3
answers

How to separate HTML from PHP [closed]

I read in several places that one should not mix PHP with HTML and vice versa, How could I then separate this code for example: <?php include 'C:\xampp\htdocs\trabweb\sessaoBD.php' ?> <!--entra na sessão e na database --> <!DOC...
asked on 26.11.2018 / 16:06
3
answers

How to reuse the connection in the subclass?

Colleagues, I have a connection class: class Conecta { private $Servidor = '127.0.0.1'; private $Usuario = 'root'; private $Senha = 'senha'; private $Banco = 'banco'; // Protegido protected $Conecta; // Faz a cone...
asked on 09.11.2015 / 02:23
3
answers

Read array JSON on Android

I'm having trouble reading a JSON in the format: [{"RESULTADO":"SUCESSO"}] WebClient.java: //PARA LER UM JSON, USAMOS A Scanner Scanner scanner = new Scanner (connection.getInputStream()); String resposta = scanner.next();...
asked on 04.12.2018 / 02:30
2
answers

Problem with @keyframes CSS

I'm doing an animation with CSS but the effect is correct only in the first word of the text and the rest is not. Would anyone know the reason for this? h3{ position: absolute; font-family: consolas; letter-spacing: 5px; color:...
asked on 27.09.2018 / 20:12
2
answers

How to make a constructor like QObject?

Having a new question about an old question, I want to know how to create a class equal to QObject . Basically, I want to know: How to make a copy constructor that does not accept assignment operators? How to make a class that can de...
asked on 12.02.2014 / 18:16
3
answers

Pass Javascript Variable into an Input text

In this code, I need to pass the variable Var url_atual into As I'm not aware of javascript I would like a little help on how I can do this function loginMeuSite() { var url_atual = window.location.href; var divLoginSite = document.getEle...
asked on 08.10.2015 / 22:11
2
answers

EF 6, Mapping with Fluent Api in classes with inheritance

I am training the class mapping for the Entity Framework using the Fluent API and I have some questions. The first is this: Mapping a foreign key with attributes would look like this: public int EmpresaId {get; set;} [ForeignKey("EmpresaI...
asked on 19.03.2014 / 15:56
3
answers

How to remove accented expressions with regular expressions in Python?

I'm developing a regular expression to try to replace accents and characters with ç by normal characters Example: á = a ç = c é = e But my regex is only eliminating, any tips? import re string_velha = ("Olá você está ???? ") st...
asked on 21.09.2018 / 19:40
2
answers

Why can not I access the integer vector in the main () function?

I can not access the positions of the integer vector that I loaded in the function loads. In that function I can correctly access the data with: printf("%d\n", n[i]); But in the function main() , below where I call the function loads,...
asked on 07.10.2018 / 15:52
2
answers

Function library find () does not return if found or not

I'm writing a program for a college exercise and I'm not sure about find() . I must enter two integers, check if the first number exists within the set already defined previously. If it exists, I should insert the second integer in...
asked on 14.10.2018 / 00:04