Most voted questions
150,413 questions
Sort by count of
-
5
votes2
answers2359
viewsPassword encryption
I have an Asp.Net MVC project and would like to securely store users' passwords in the bank. The goal is to create something that cannot be easily decrypted in a few hours of brute force on a PC (I…
-
5
votes1
answer3655
viewsHow to Encrypt with AES Algorithm using 128-192-256 keys in Java
I need to do an encryption with the AES algorithm by testing the runtime according to key sizes (128-192-256), but I’m not able to find how to switch the key size to be generated by the system,…
-
5
votes5
answers511
viewsProblem with footer on mobile sites
I recently came across a problem in a footer of a project of mine. The footer in the case should be at the bottom of the page (bottom: 0;), So far so good, it’s normal. The problem is that when I…
-
5
votes3
answers1861
viewsC# MVC Run Function (Logout) When Closing Browser
I am in a service system and need a help to understand how I can call some event (Javascript / jQuery / Or not) at the time a user closes the browser without logging "correct" by the system... Att.…
-
5
votes1
answer150
viewsWhat is the "class" restriction on a generic type?
In the line below: public class Tree<TItem> where TItem : IComparable<TItem> This line I’m creating the definition of type TItem where TItem implements the interface IComparable, i.e., I…
-
5
votes2
answers122
viewsHow can I get maximum and minimum values after applying LOESS
My data is brought from a database and I simply apply: ggplot (data = df_postgres, aes (x = date_time, y = duracao)) + geom_point() + stat_smooth(method = "loess") And I get the following smoothing:…
-
5
votes2
answers263
viewsIn a MVC structure, can we create a model that represents a View (SQL)?
I was arguing with a friend of mine about using views (I mean Mysql, not Mysql Pattern MVC). Hence a doubt arose in the following sense: A Model is used to represent a data structure, and you can…
-
5
votes2
answers294
viewsXamarin android player error while starting "virtualbox kernel driver not running"
When executing the XAP-Beta-15.35-v0. 5.5-i386 get the following error: virtualbox kernel driver not running No driver has been installed in virtualbox and it is not running.…
xamarinasked 9 years, 1 month ago SoftLAB Tecnologia 51 -
5
votes1
answer1429
viewsHow to use the Node Passport.js to login against the database
How to use Passport.js to control access using the express.js database and middleware. How to do login logic and how to know that the session is already authorized when the user has already logged…
-
5
votes2
answers2251
viewsOracle - How to force a field size on a Function return
I hope to be clear on this issue , I will define in a general way but I believe that enough 1) I create any FUNCTION that returns a VARCHAR, it does not interfere with the return 2) I create a VIEW…
-
5
votes2
answers1637
viewsForce text to be downloaded in a format accepted by Msword with PHP?
I’d like to know how to force the download of a file, with some extension accepted by Microsoft Word, through function header. I searched a few times, tested the MIME types I found, like the ones…
-
5
votes1
answer336
viewsHow to pick up directories recursively?
How do I recursively grab all files *.php? With the code below caught all that are root, but wanted to get from all directories. I tried to use RecursiveDirectoryIterator, or use some functions I…
-
5
votes3
answers308
viewsCentralize elements using margin
I don’t know much about CSS or HTML, but I was building my site and I came across the following problem: In the image above to see that all thumbnails are arranged and perfectly aligned. When I…
-
5
votes1
answer2348
viewsProblem with accentuation when generating PDF with dompdf
I am generating a PDF report using the dompdf API, and the accentuation words are not being displayed correctly. I put the charset='utf-8' tag inside the head, but it does not solve the problem…
-
5
votes2
answers604
viewsTernary Operator, is_array, unexpected
Look at that. Follows the instruction $var = 123; echo "valor de var: " . is_array($var) ? implode("-",$var) : $var; There goes the following mistake: implode(): Invalid arguments passed. I hoped…
-
5
votes1
answer534
viewsMultiple events in Jquery selector
someone knows if/how it is possible to assign multiple events to a Jquery element in a single row? For example: $('#elemento') .keyup(function(){...}) .focusout(function(){..});…
jqueryasked 9 years, 1 month ago Leandro Hermes Neto 117 -
5
votes1
answer90
viewsWhat’s wrong with my chained list?
I implemented a chained list but when I enter 2 items, I remove the last one and add it again, for some reason it says that the value is null. public class ListaDinamica<T> { private class…
-
5
votes3
answers949
viewsWhy does the User-Agent header always return "Mozilla /5.0" independent of the browser?
I know that in PHP we can access a header called User-Agent and thus discover information about the operating system and browser used by the client. The only thing I don’t understand is that…
-
5
votes2
answers718
viewsWhat is the most threads supported by Java EE?
I’m analyzing how to rewrite the architecture of a Java program I’d like to know how many threads the scheduler (Scheduler) supports? or how can I infer this amount based on the processing power of…
-
5
votes2
answers214
viewsMake a reference variable point to another variable
I have the following question, for example: int a = 5; int b = 10; int & r = a; How do I use the reference variable r point to b and no longer to a? It is possible to do this?…
-
5
votes2
answers1293
viewsHow to create Jbutton in "square" format?
It is possible to create JButton in a "square" format, without the rounded corners when they are already in the JFrame? Does anyone have an example? I don’t use any specific laf, but the netbeans…
-
5
votes2
answers1857
viewsOSI error when published application
When I publish my application, the following error appears: This Operation requires IIS Integrated pipeline mode. Description: An unhandled Exception occurred During the Execution of the Current web…
-
5
votes1
answer1203
viewsWhat is the best method to log in to android and webservice php Restful?
I am building an application that needs login, I have already created the webservice in php using Slim. I am currently using a POST, passing a json with email and password for the webservice to…
-
5
votes2
answers1050
viewsHow to order numbers from an array?
I do not find the function to sort, increasingly, the numbers drawn. <?php $resultado = array(); for ($i = 0; $i <= 5; $i++){ array_push($resultado,rand(1,60)); } print_r($resultado); # Exibe…
-
5
votes2
answers1634
viewsWhy are you making a mistake when trying to compile the program with this library (IUP)?
By including a C library you are giving this error when trying to compile ||=== Build: Release in iup (compiler: GNU GCC Compiler) ===| obj\Release\main.o:main.cpp|| multiple definition of…
-
5
votes1
answer1390
viewsHow to read . txt file?
How do I read a file .txt which is written in lines and check if in a row that file has a value if you have made a check on checkbox. Example: txt files: 123 234 2456 If you have the file 123,…
-
5
votes4
answers6626
viewsWhat SQL command shows the maximum number of active connections to the Mysql database?
Which SQL command returns the number of active connections to the database?
-
5
votes4
answers5763
viewsCapture Real User IP
How do I capture the actual Public IP/IP of the user accessing the application? The IP address of the computer I can capture normally, but I want to know the public IP address of this client.
asp.net-mvc asp.net asp.net-mvc-5 asp.net-mvc-4 asp.net-identityasked 9 years, 1 month ago Leomar de Souza 1,074 -
5
votes1
answer134
viewsPower Panel, WHM and Cpanel, what are their differences?
Well, I would like to know the difference between these three terms, which I believe designate the level of access to server resources, for me, WHM is related to server account management, Cpanel…
-
5
votes1
answer627
viewsWhat is the difference between reset and clear in Terminal?
In the Terminal, what is the difference between the commands reset and clear? I’m using the Terminal of Ubuntu and apparently the two commands clear the screen.…
-
5
votes4
answers1277
viewsView last 5 lines of a PHP file?
Through the Shell, I can display the last 5 lines of a file through the command tail. Thus: > tail -n 5 public/index.php I would like to do the same thing in PHP. But I didn’t want to load the…
-
5
votes1
answer1015
viewsWhy is it recommended to place Javascript codes at the end of the body tag scope?
Do you have any rules regarding the use of scripts in tag <head>? W3C did not make the rules of use very clear.
-
5
votes1
answer1457
viewsHow to save locations from a map to an Sqlite database?
I plan to save sites displayed on a map to a Sqlite database so that the user can consult them in the future and add a description. Here’s my class Description... public class Descricao { private…
-
5
votes2
answers733
viewsHow to make a full date common?
I receive a string with a date, and unfortunately there is no way to change it, in the format: 1 de September de 2015 And make it into: 01/09/2015 The only way I could do this would be to break the…
-
5
votes1
answer210
viewsChange the quality of a video stream c#
I need to change the quality of a video that is being aired by my Api, I’m already sending the file, now I need to change the quality of it at the time of transmission, follow my code below: var…
-
5
votes2
answers887
viewsCalling a string equivalent method
Consider the following class: public class AnimationManager : MonoBehaviour { public GameObject[] Enemies; void OnTriggerEnter2D (Collider2D o) { if (o.tag == "Player") foreach(GameObject Enemy in…
-
5
votes1
answer174
viewsAdd data to a Mysql table with PHP. What’s wrong?
Initially, I’m new to PHP and SQL, so take it easy if you have shaving in the code. I’m just testing the PHP and Mysql integration, I took an example table from a book and made a quick html page to…
-
5
votes2
answers386
viewsa:Stop working with :visited or :link
I made 5 links and set them to change color using a:hover and a:visited. The problem is that when I use a:visited, the settings of a:hover stop working, the same happens when I use a:link. What…
-
5
votes2
answers2741
viewsHow to identify a specific number in any numerical value?
For example, my variable valor (whole type) has the value 1354, note that the number 13 appears at this numeric value. How can I identify a specific number at any other numeric value? I’d like an…
-
5
votes1
answer110
viewsWhat are Native Hybrid and Web Applications?
Hello folks I’m a little lost in the study of mobile computing I’m studying these 3 types of architecture for mobile development someone knows the definition of these development architectures ?…
-
5
votes3
answers7105
viewsConvert String with date to Datetime in Java
I have a CSV file and in it has a column with String: "Sun Oct 05 20:59:57 BRT 2014" I need to pass the CSV data to a Mysql table. Therefore, I need to convert this string to Datetime format so I…
-
5
votes4
answers971
viewsSelect between dates in Mysql
Good afternoon, I have the following problem: I have a column DATA_ENTRADA date type and need a select to compare the DATA_ENTRADA and the "current date" ( ex: today is 28/08/2015, tomorrow would be…
mysqlasked 9 years, 2 months ago maycon rocha 63 -
5
votes3
answers1117
viewsRead Remote Server log.txt on Real-Time Local Server
Those days passed the idea (I must have read somewhere and refreshed) of having a program on the local server that is synchronized with the remote server, where in this program I can see in real…
-
5
votes1
answer3559
viewsWebservice REST Simple
How to create a simple REST-type Webservice that does HTTP communication from an Android device with the server, using the PHP language? My goal is to make Requests and receive as a result Response…
-
5
votes3
answers472
viewsMER - Temporal confusion of cardinality
I’m having some doubts about the temporal aspect. Example: [FUNCIONÁRIO]------<PERTENCE>------[DEPARTAMENTO] In this case it is obvious: each official belongs to one department, and each…
-
5
votes1
answer354
viewsQt calling method in another class
I’m calling a method another class after entering data. But it is returning an Sqlite error: QSqlDatabasePrivate::removeDatabase: connection 'qt_sql_default_connection' is still in use, all queries…
-
5
votes2
answers855
viewsUpdate from change in select
I have a list of multiple selects and I need you to update the select option in the database. I can do this through ajax + php. My doubt is actually how to trigger the event from the option change.…
-
5
votes1
answer332
viewsDocumentation for creating files in PDF format
I am some time analyzing free libraries for creating PDF for use in commercial applications on Android, and so far I have not found one that meets all my expectations, functionalities and licenses.…
-
5
votes1
answer606
viewsHow to configure Apache Log4j to write to the Bank through Hibernate?
I am starting to use Log4j from Apache and would like to know how to configure it by XML file to record the logs in the database using Hibernate?
-
5
votes3
answers2129
viewsWhat is the simplest way to create a mask for numbers in PHP?
I have two ways to create masks for numbers in PHP, but I don’t know if it’s the most elegant and effective, so I would like to have some options to improve the code. I need the function to behave…