All Questions

2
answers

Comparing string in php

I would like to know how to compare the contents of a string in PHP. I'm looking for a word on a line, but I do not know what position it is in. $ch_atend if($linha == "idle") { $ch_atend = $ch_atend++; }; This code is within a While and...
asked on 17.06.2014 / 19:08
1
answer

How to restrict inheritance types from a hierarchy level?

Given the hypothetical model below: public abstract class Veiculo { public Motor Motor { get; set; } } public class Aviao : Veiculo { } public abstract class Motor { } public class MotorCarro : Motor { } public class MotorAviao : Motor...
asked on 24.06.2014 / 19:30
2
answers

What happens with class name resolution in php 5.5?

PHP 5.5 has implemented a new feature, which consists of getting the class name through the keyword class : Example: namespace testando; class Teste{} echo Teste::class; // testando\Teste; This works correctly, as expected. Now...
asked on 24.06.2014 / 19:37
2
answers

How to change style of higher brothers?

I have a parent element (div # workarea) that has four children: figure#start , p#first , figure#start2 and p#second : <div id="workarea"> <h1 id="title">Área de Testes</h1> <figure id="sta...
asked on 01.06.2014 / 21:25
1
answer

Function to return the source code name itself in python

Is there any function to return the source file name itself? The intent would be to create a log file, which one of the data would have the name of the source that is generating that log. If you have an error, it is easier to go directly to t...
asked on 08.05.2018 / 16:30
2
answers

How does hierarchy elements in css work? [duplicate]

I would like to know how the hierarchy works in css, I explain: Let's say in my style.css I set to h1, h2, h3, h4, etc. by default font-size: 12px; , so far beauty ... Now, if for example I insert inside a class...
asked on 19.04.2018 / 19:06
1
answer

If C / C ++ are native languages then why do they need runtimes?

Generally the first thing that came to my mind when I heard the term native language, was a program that ran independent of operating system, communicating directly with the hardware, I always developed in debug mode, when I released a releas...
asked on 31.05.2018 / 02:31
1
answer

Difference between [i] + 1 and [i + 1]

I have questions regarding [i] + 1 and [i + 1] , one increa position and the other content, correct? Regarding the (*i)++ notation, is it similar to the two above?     
asked on 15.05.2018 / 15:43
2
answers

How to insert caption in graph with two axes and in r?

How do I insert the legend in this chart, what kind of bar would be the gross total and the line the total net? lines = 'Mes Acid Obt Jan 1450 102 Fev 1447 86 Mar 1461 87 Abr 1356 61 Mai 1398 80 Jun 1115 87 Jul 1211 82 A...
asked on 19.06.2018 / 17:54
2
answers

SQL Maximum value of another table

I'm doing a course project and I took the last step and would like a little help from you .. The project is a leased SQL database (contract for "rental" of cars.) The tables that import here and the values are: (there are more values, but...
asked on 27.04.2018 / 17:25