Most voted questions
150,413 questions
Sort by count of
-
6
votes1
answer166
viewsImplement Java Functional Programming Loop
private List<String> getPermissoes(TipoUsuario tipoUsuario) { List<String> permissoes = new ArrayList(); for (Permissao permissao : tipoUsuario.getPermissoes()) {…
-
6
votes1
answer477
viewsIs the PHP Day of the Week feature limited?
I am making a calendar using PHP and JS and worked perfectly between 1902 and 2037, because from 2038 the function to catch the day of the week in PHP returns an incorrect value. Is there a specific…
-
6
votes1
answer238
viewsWhat does the asterisk represent in the definition of a function in Python?
For example, in the module documentation pickle it is common to see such a notation: pickle.dump(obj, file, protocol=None, *, fix_imports=True) pickle.dumps(obj, protocol=None, *, fix_imports=True)…
-
6
votes2
answers200
viewsDelay closing a dropdown
Is there a way, alternative, more lite, to superfish, to delay the closing of a dropdown menu? When the menu is at Hover, it obviously opens, and when the mouse is no longer focused on it, the menu…
javascriptasked 6 years, 3 months ago John Quimera 541 -
6
votes1
answer89
viewsHow to clone only one subdirectory of github
Assuming you have a dummy directory on github: https://github.com/fulano/Diretorio And within "Directory" have the subdirectories: https://github.com/fulano/Diretorio/sub1…
-
6
votes1
answer5362
viewsCSS gradient with image
I need to develop a responsive web page, I’ll put a background image as "texture", but they can’t occupy the entire screen, only half, giving a fade transition, between the image and the white part…
-
6
votes1
answer1139
viewsWhat is the usefulness of :host, :host() and :host-context()
What is the usefulness of pseudo classes :host, :host() and :host-context()? If possible with some practical example
-
6
votes2
answers2115
viewsWhat is a TXT (TXT record) entry for in a domain?
The entrance is usually used TXT (TXT record) when you set up a domain to point to an email server. I’d like to know what the purpose of TXT. What’s an entrance for TXT? How to read configuration…
-
6
votes2
answers4147
viewsWhat is the difference between Embeddedid and Idclass in Hibernate?
I have read in the Hibernate 5.0 documentation that you can implement composite primary keys using two ways. The first of these is using the annotation @IdClass and imitating the Idclass attributes…
-
6
votes2
answers2983
viewsHow to exclude a certain group from the regular expression
I have a tax file that comes with the following information on the line: Ex:. OCF|DINHEIRO|160.12|12 To fix it I have to erase a part, and the right one would be: OCF|DINHEIRO|160.12 Then I started…
regexasked 6 years, 4 months ago Marcos Correia 123 -
6
votes2
answers230
viewsInvalid Property 'category.subcategory' of bean class. Error saving user to database
I am developing a web application that has the following mapping: A user has a category; A category has several subcategories; a subcategory has several products. As shown below: What I am trying to…
-
6
votes1
answer76
viewsDynamic typing and team development
Is there any good practice, standardization, recommendation, etc. aimed at preventing invalid types from being passed to methods and functions? If I am working alone is more quiet, I even wrote the…
python python-3.x software-engineering encoding-styleasked 6 years, 4 months ago Matheus Saraiva 2,157 -
6
votes3
answers759
viewsCenter menu on page
I am trying to align the menu I have centrally, but the attempts I made were frustrated and my knowledge in css I tried to change it here: #topNav ul.nav>li.mega-menu { position: unset; } The css…
cssasked 6 years, 4 months ago adventistapr 5,498 -
6
votes2
answers387
viewsHow to do concurrency control in Hibernate for INSERT in the database
I’m having a competition control problem in entering data in my web application. Context: I have 3 tables (ex: X, Y and Z) that record hospitalizations of patients (already registered). A patient…
-
6
votes4
answers2249
viewsCreate Virtualhost on port 81
I have two apaches installed for two versions of PHP (5 and 7), on port 80 and 81 respectively. I would like to create virtualhost for apache port 81 In the host file there is this line: Host…
-
6
votes0
answers145
viewsAlgorithm by Christofides - TSP, Problem in transforming the AGM into a graph with all vertices with even degree
I am carrying out the implementation of the algorithm of Christofides and input I receive the data from TSPLIB. Christofides' Algorithm has the following steps: Find the minimum generating tree Find…
-
6
votes2
answers2211
viewsHow to save images in the database using spring boot?
I’m having trouble saving images from a form in the database. Does anyone know how to save an image in the Mysql database using spring boot? I’m learning this technology now, so with this…
-
6
votes2
answers764
viewsAutomatic click along with full screen
I have a website, and on the site the user when logging in will enter a page and this page should be full screen automatically without the user needing to click something. I read that it is not…
-
6
votes2
answers198
viewsstrcpy is merging numeric format with other chars
I don’t know if I made myself clear in the title, but when using strcpy() to copy a char* to another when I put a format like this "teste" it works normally, but when I put a string 3 letter format…
-
6
votes1
answer604
viewsIdentify JDK version from Java
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);…
-
6
votes1
answer662
viewsSQL Server Data Dictionary
Hello, I come from Oracle culture and want to learn a little SQL Server, I’m having difficulty finding the data dictionary of SQL Server, I’ve searched in other forums and found nothing. In Oracle…
-
6
votes2
answers5261
viewsWhat are the real differences in creating a project with Expo and without Expo?
Recently I saw several items that differentiated a project with or without Expo, but currently the Expo includes many things where before we needed to touch native modules: Sqlite, image…
-
6
votes2
answers12870
viewsHow to consume an external API in Spring Boot
I have a springboot REST application that needs to extract information from another application. How I make this communication and can extract this data?
-
6
votes1
answer1287
viewsClassic Asp Debug with Visual Studio 2017
I don’t know anything about Classic SP and a demand has appeared where I have to debugging an application in Classic SP, because one of the filters is not working. And Response.write/Notepad++ won’t…
-
6
votes1
answer264
viewsWhat is the processing order of a PHP script?
Example scenario: echo hello(); echo '<br>'; echo 'Hello ' . world('World'); function hello() { return 'World'; } function world($v) { return $v; } Exit: World Hello World Like the PHP process…
-
6
votes2
answers9028
viewsInsert character in a specific position
Problem How to insert a character in a specific position? Example In my case in the fourth character str = 30000000 gostaria que ela ficasse assim: 3000.0000…
phpasked 6 years, 5 months ago V.Avancini 496 -
6
votes3
answers1243
viewsMerge all values at the same array level, at the same level
I got the following array: Array ( [A] => Array ( [0] => 10 [1] => 20 [2] => 30 ) [B] => Array ( [0] => 100 [1] => 200 [2] => 300 ) [C] => Array ( [0] => 1000 [1] =>…
-
6
votes1
answer2959
viewsWhat’s the difference between C and C99?
I saw C99 in text and I was curious there is some difference between normal C and C99?
-
6
votes2
answers7757
viewsIs the for attribute of a label element good for something?
I see several code examples where the attribute "for" is set in Labels. But in practice, whether or not this attribute influences something on the page? Ex: <label…
htmlasked 6 years, 5 months ago Joao Paulo 11,760 -
6
votes1
answer801
viewsChange Inputquery Box Size
The InputQuery is a message where we can enter a certain value, but changing the value of the variable passed as reference, see its structure : //Função InputQuery function InputQuery(const…
-
6
votes2
answers1431
viewsDownload file directly from FTP
How do I download a file directly from FTP without temporarily downloading to the PHP server? Code: <?php //.... $fcon = ftp_connect($ftp_host); $conecta = ftp_login($fcon, $ftp_username,…
-
6
votes1
answer12517
viewsValidation Telephone Field
Guys, I need some help from you. I have a telephone mask, which validates the fields 00000 11111 2222 3333 in sequence. $('body').on('focus', '.celular', function () { var maskBehavior = function…
-
6
votes2
answers1375
viewsHow to use DTO in ASP.NET CORE + DDD
I am assembling an application following the DDD standards. I would like to know how to properly use the Data Transfer Object - DTO standard. With the little I’ve read, I’ve come to the conclusion:…
-
6
votes1
answer85
viewsShould I avoid operations between constants in a loop?
In C++ there is some sort of optimization or cache that prevents the same mathematical operation between constants to be repeated, mainly in loops, thus decreasing application performance? For…
-
6
votes5
answers223
viewsSum of hours greater than 24 hours
I have a variable with the value '18:00', which corresponds to a duration received through calculations between two times. $tempo = '18:00'; // queria somar 8:00 Answer: $temposomado = '2:00';…
-
6
votes1
answer430
viewsUse missing ids
After seeing this question I have remembered a problem I have encountered several times: Let’s assume that there is the following table: Fruta ----------- 1 | Maça 2 | Banana 3 | Pêra Should it…
-
6
votes2
answers3586
viewsHow to initialize an array in Kotlin?
I need to initialize an array in Kotlin more do not know how to do, in Java I did so: int numeros[] = new int[] {0,1,3,4,5,6,7,8,9};
-
6
votes1
answer6469
viewsMacro email range + signature
Good morning. I need help in a macro for sending emails in Outlook 2007. I have a macro that selects a certain range of cells (all right and all down from a referenced cell) and pastes in an email,…
-
6
votes1
answer2565
viewsExtract information from lattes
Introducing Since 1999, Brazilian researchers have had a website where they can post information about their academic career. This information is known as Currículos Lattes. I wish to download a few…
-
6
votes2
answers198
viewsWhat are the advantages of creating dll’s in the project and not putting the classes directly into it?
In the company where I work use many DLL’s and I have a lot of difficulty debugging and understand this... In my projects (personal) I always put the classes directly in it and do not do as they, I…
-
6
votes4
answers162
viewsWhat is the difference between the operator IN and ==?
I would like to know the difference between the operator IN and the == in Python?
-
6
votes1
answer1086
viewsPassing a list of arguments to a Jasper Reports query
I’m redoing some reports on Jasper Reports here at the company. I am migrating to have a reporting service agnostic the SQL query structure of the report. Before, the system knew deeply how such a…
-
6
votes2
answers1076
viewsWhat is Microsoft Access for?
It’s a stupid question, I know. I have almost no contact with MS Access. I know it is a database. Does it have anything special? Any Feature worthy of note? How does it work? What demands does it…
-
6
votes1
answer2385
viewsAPK not upgrading
I am trying to update an app in google play store incremented version code, generated apk with the same key, however, the store displays the following error: any tips on how to solve this problem?…
-
6
votes2
answers466
viewsbox-shadow pick up the four corners of the image
Can anyone tell me how I leave the box-shadow in the same tone as the right and the top on the left and the bottom? http://prntscr.com/j3lwl7 HTML: <div id="wrapper_login"…
-
6
votes2
answers152
viewsTreat Exception by code
In Visual Basic 6 there was the command err.number where the error code is demonstrated. I have a C# app that we treat Exception by the description of the message because I did not find the command…
-
6
votes1
answer1028
viewsWhat are the differences between . bat and . cmd?
We rarely see file .cmd, but when opening it, we see that its content is very close to a .bat. What is the reason for this similarity ? What would be the main differences between them ?…
-
6
votes2
answers121
viewsRename url with database contents
How do I change the name of url with the contents of the database at PHP using the mod_rewrite? For example: I have in the bank a table with the name of urls and I want to use it as follows. Let’s…
-
6
votes2
answers229
viewsArraylist statement with type or without
I’d like to know the difference in declaring a ArrayList in this way: List<BancoPerguntas> listaBancoPerguntas = new ArrayList<BancoPerguntas>(); List<BancoPerguntas>…
-
6
votes1
answer219
viewsError when adding value in array, repeated values
I have two arrays, A and B. I created 3 functions in which I take a value from the beginning of array A and array B, remove the values, compare the values and if the value of A is greater than that…