All Questions

1
answer

How to declare a password input?

I wonder if there is a way to mask character entry in input() of python. Ex: Senha = 1234 Entrada = int(input("Digite sua senha: ")) In the above entry I wanted to change the letters entered by asterisks. Is there any way to...
asked on 31.12.2016 / 22:19
2
answers

In R, what is the best way to select inner list sets within a list of lists?

I have a list of lists like the following: lista <- list(num = list(1:10, 11:20, 21:30), chr = list(letters[1:13], letters[14:26], LETTERS[1:13])) I would like to make it a data.frame , but for this the two internal l...
asked on 17.11.2016 / 00:57
2
answers

How to install the PDO_PGSQL driver in ubuntu?

I have already installed PHP 7, Apache 2 and Postgresql 9.5. I have already enabled the extension in php.ini but it does not work. In Windows just enable this extension in php.ini that already works but here in Ubuntu was not...
asked on 13.09.2016 / 17:44
2
answers

Difference between DTO and ViewModel?

In this question we can see what ViewModel is: Pra does a ViewModel serve in ASP.NET MVC? In this other question we can see what is DTO: What is a DTO? But after all: What's the difference between DTO and ViewModel? When should w...
asked on 07.06.2018 / 22:04
1
answer

When to use cin.ignore () in C ++?

What is the exact time to use cin.ignore() in software written in C ++? Why a lot of the time, when I'm doing a big software, the readings are bugging, sometimes if I put cin.ignore() debugging, sometimes it buga more. So, what'...
asked on 02.08.2018 / 20:17
2
answers

EntityManager or Session? Which one to use?

I have worked with projects that used both Session and EntityManager but it has never been clear which one to choose. What to base myself on and what they differ in terms of performance and compatibility. Can anyone give a tip?     
asked on 29.12.2016 / 14:17
2
answers

Is there a way to access a value by CSS?

I'm trying to fit an image into the css on my site, and I want to extend the image on the whole screen, but for this I have to assign my image: margin-left , to correct screen positioning. Only the value that I will assign in this field...
asked on 27.08.2018 / 14:39
2
answers

UPDATE is a DELETE followed by an INSERT?

In another question ( In trigger we have INSERTED, DELETED , but what about "UPDATED"? ) this query has arisen as to how the database is executed due to the way the trigger accesses an altered record. Questions As for a UPDATE (no...
asked on 28.08.2018 / 16:10
1
answer

What is the asterisk in defining a function in Python? [duplicate]

For example, in the documentation for the module pickle it is common to see such notation: pickle.dump(obj, file, protocol=None, *, fix_imports=True) pickle.dumps(obj, protocol=None, *, fix_imports=True) pickl...
asked on 06.07.2018 / 16:20
1
answer

Is the Assembly code of a compiled program different from the one written?

I've compiled this Assembly code global _main extern _printf section .text _main: push message call _printf add esp, 4 ret message: db 'Hello, World!', 10, 0 When I went to give u dump in the assem...
asked on 28.11.2018 / 14:48