All Questions

1
answer

How to check the latest file in a folder with Python?

Assuming you have a folder with several TXT files with different names and need to know the latest file, how do I do this using Python?     
asked on 20.04.2018 / 14:13
3
answers

List value of checkbox items

How do I list checkbox values when the user select and when not selected does not appear in the list? / p> <select class="form-control" id="list-lugar"> <option value="0" disabled="true" selected="true">-</option>...
asked on 27.04.2018 / 19:34
1
answer

Where Mysql search for complete word

I have a database and would like to know how do I search for the data by typing the complete result using where Example: ID NOME CODIGOS 1 | Joao | 9714,51,100 2 | Maria | 50,9714,88100 I wanted to make it return a where by search...
asked on 29.04.2018 / 18:27
2
answers

How to make a loop / routine for the write.fst () function?

I have the following files in my working directory: Dados_1.fst Dados_2.fst Dados_3.fst Dados_4.fst ... Dados_10.fst The file Data_x.fst (where x is from 1 to 10) has the columns CODE, INSCRIPTION, ANSWER_A, ANSWER_B Then I create the fo...
asked on 16.05.2018 / 21:28
1
answer

Does it make sense to store the salt of a password with the hash itself?

Looking at tables in a database for a certain product, I came across a structure similar to this: [LocalUsers] UserId Integer PasswordHash Byte[] Salt Byte[] If an attacker gets this list, is it sufficient for him...
asked on 04.08.2017 / 22:16
2
answers

Is it possible to mirror an image horizontally (flip) with Canvas?

I know it's possible to mirror a <img> horizontally with CSS, but wanted to know if it is possible to mirror an image horizontally within a canvas . With CSS, I would do so: #img-flip{ transform: scaleX(-1); }...
asked on 03.05.2018 / 21:17
1
answer

What is raw () in ncurses.h?

Recently I'm trying to learn more about the ncurses library and I came across some codes that use raw(); When I took it to test what happened, it did not change anything, the code compiled and worked perfectly. So why does raw () exist? Wha...
asked on 10.05.2018 / 23:19
1
answer

How to place an iframe in fullscreen (full screen)?

I made this small player to be used within iframe . But I need to give you the option to put it full screen (as most video players I know), but I have no idea how to do it. I'll leave the player here as an example: var...
asked on 04.05.2018 / 16:56
1
answer

Determine the key of a dictionary that contains the largest amount of values

animals = { 'a': ['aardvark'], 'b': ['baboon'], 'c': ['coati']} animals['d'] = ['donkey'] animals['d'].append('dog') animals['d'].append('dingo') Be the animals dictionary defined above. The function applied to it should return the key...
asked on 22.04.2018 / 01:48
1
answer

What are the differences between local functions, delegates and lambdas expressions?

Local functions will be present in C # 7. Given this, I would like to know the main differences between local functions , delegates and expressions lambdas .     
asked on 01.02.2017 / 02:20