All Questions

2
answers

How to separate only the first word from each string in a list?

Given this list: nomes = [ " Paulo Ricardo " , " Fabio Junior " , " Roberto Carlos " ] How do I create a new list by separating the first and last name and only adding the first name without the last name in this new list, using list compre...
asked on 17.04.2018 / 22:25
1
answer

Is it possible for a program to modify its own code?

I was developing an artificial intelligence program with neural networks, but what always made me embarrassed is that every time I open the program, it will have to repeat the whole course of learning to achieve the same result as before. My...
asked on 08.07.2017 / 23:33
3
answers

Select option from a select

I have the following HTML: <select id="faturamento-mes-referencia"> <option value="1">Janeiro</option> <option value="2">Fevereiro</option> <option value="3">Março</option> <option v...
asked on 10.02.2017 / 16:42
2
answers

How to stylize the p tag differently?

But I can not stylize it to look like the image below. How do I do it? Will it be another tag ? Itriedthisway: p.acessorapido{ float: left; width: 100%; height: 38px; max-width: 885px; margin-top:...
asked on 20.06.2017 / 16:15
3
answers

OFFSET next to COUNT (*) returns nothing?

When I make an inquiry this way the data is returned correctly (Currently 2 rows): SELECT * FROM noticias ORDER BY data_noticia DESC LIMIT 30 OFFSET 2 But I need to know how many rows this query returns me so intuitively it would look like...
asked on 06.09.2018 / 23:28
2
answers

Converting numbers into categories in R

In my database, I have a Variable TP_CorRaca with values 0,1,2,3,4,5. Each number corresponds to a color. Example: 0 - White 1 - Black 2-brown .... I want to make this match to use the lm ()     
asked on 06.03.2017 / 09:55
2
answers

Change of object in inheritance

I have the following classes: class Funcionario { } class Coordenador : Funcionario { } class Gerente : Funcionario { } At that point a Coordinator can become a Manager. How to solve this?     
asked on 22.03.2017 / 15:42
4
answers

Inverting sequence (PYTHON 3)

Good Night, I'm a beginner in IT and I'm doing a basic python course, I have to implement the following: Write a program that receives a sequence of integers ending with 0 and prints all values in reverse order. ** Note that 0 (ZERO) should n...
asked on 23.03.2017 / 22:21
2
answers

Return day of the week from a date in the format dd / mm / yyy

I have this function that brings me the day of the week: public static String getWeek(String date){ //ex 07/03/2017 String dayWeek = "---"; GregorianCalendar gc = new GregorianCalendar(); try { gc.setTime(new SimpleDateForm...
asked on 07.03.2017 / 04:59
1
answer

How to perform operations with really large numbers in C / C ++?

How to perform sum operations with really large numbers? Numbers that can reach 50 or 1000 digits. Do I need to install any library? How to install this library on ubuntu? Can you post an example of the code by adding the two values below?...
asked on 02.04.2017 / 20:26