All Questions

1
answer

Redeem dictionary key with maximum sum of respective value

I have the following dictionary: dic = {'bsx_8612': [23, 567, 632], 'asd_6375': [654, 12, 962], 'asd_2498': [56, 12, 574], 'bsx_9344': [96, 1022, 324]} I want to retrieve the key whose value has the largest sum of its elements. How I am doi...
asked on 24.06.2015 / 17:19
3
answers

How to put two divs side by side in Bootstrap

I'm still new to web development and I'm having a question on my form putting the two lines of the form side by side into the responsive Bootstrap, knowing that each input will bring information separately. Example: Nome: ________________...
asked on 06.11.2017 / 16:31
1
answer

Identify Java version of JDK

I am creating an IDE and when the user presses to run the code I do the following: try { File file = new File(arquivoSelecionado.nome); try { FileWriter fw = new FileWriter(file); fw.append(code.getText()); fw...
asked on 30.05.2018 / 05:58
1
answer

Are all FontAwesome folders useful?

I use Font Awesome 5.2 just this way to insert the icons: <i class="fab fa-500px"></i> I would like to know if it is necessary to leave in the project all those folders and files that come in the file downloaded from the site, i...
asked on 14.12.2018 / 17:15
1
answer

Why insert a blank line at the end of the code?

Most linters from different programming languages, such as RuboCop (Ruby) and JSLint (JavaScript) recommend a blank line at the end of all code files. As an example, RuboCop:    RuboCop :: Cop :: Style :: FinalNewLine   This cop reinforc...
asked on 28.01.2018 / 21:35
2
answers

Delay closing a dropdown

Is there an alternative way, lite, to superfish, to delay the closing of a dropdown menu? When the menu is hovered, it obviously opens, and when the mouse is no longer focused on it, the menu closes. I would like to have a delay in closing this...
asked on 03.07.2018 / 20:03
1
answer

How to simulate load in a database?

I have a SQL Server database that recently had performance problems in production by the large number of concurrent users added to some implementation and architecture issues. After taking some measures to minimize the problems, I need to t...
asked on 10.10.2017 / 01:41
2
answers

With CSS is it possible to fill in the "eyes" of the Source? Is it possible to fill in the "holes" in the letters A, O, P, etc.?

I was wanting to create a title to use in the sessions of my site, but I wanted the font to have a similar effect to those images, with my eyes filled in giving the impression that the font has the inside of the characters filled in....
asked on 22.10.2018 / 14:36
1
answer

Mounting a query with laravel

I'm studying the laravel structure from this ready-made example = > bestmomo . In the project there is the userRepository repository with the following structure: <?php namespace App\Repositories; use App\Models\User; class...
asked on 24.11.2017 / 19:48
1
answer

Generate an APK on a server

I was thinking of an architecture that would work as follows. The user would have a series of parameters to populate and automatically generate code there click in a Buttom, be it in web or mobile would generate an apk application with t...
asked on 10.02.2018 / 12:03