Most voted questions
150,413 questions
Sort by count of
-
4
votes3
answers430
viewsHow to know if a binary sum of unsigneds has overflowed?
If I have a sum of two unsigned numbers (1 byte each) in an Assembly without carry flag, how do I know if I have overflow? Edit: the architecture in question is Neander Solution: I found a way to do…
-
4
votes1
answer276
viewsHow to control the thickness/thickness of the tag 'strike, del, s', the famous line above the text
Today I was developing a project and I reached a point that for the first time in my life I decided to make use of the tag <strike> html. I don’t know if it was the font style I was using, but…
-
4
votes1
answer256
viewsHow to play a graph that was created with the Plot command using ggplot2?
How to play the chart below using the ggplot2? I don’t know how to add the various charts into one layer single! bs<-function(t,mu,phi){…
-
4
votes1
answer202
viewsAs per comments on user defined function in Excel/VB
I would like to know how to by that help in user-defined functions in Excel. Not how you create the user-defined function, and yes as it adds instructions as user must manipulate it.…
-
4
votes1
answer240
viewsWhy are there so many parentheses in macro?
Seeing this, it intrigues because it needs those parentheses that seem unnecessary. What is their functionality? #define SUB(x, y) ((x) * (y))
-
4
votes1
answer1001
viewsDo not allow insertion of a date after another date already inserted
I have an HTML form in which I give the user the possibility to enter a start date and an end date and, of course, I do not want the end date to be earlier than the start date. The inputs for the…
-
4
votes2
answers180
viewsChange of object in inheritance
I have the following classes: class Funcionario { } class Coordenador : Funcionario { } class Gerente : Funcionario { } There a certain moment a Coordinator can become a Manager. How to solve this?…
-
4
votes1
answer84
viewsHow to know how much of the content was downloaded in an Ajax request?
I need to do that little animation, like on Youtube, of the progress bar that appears at the top. How do I know how much content has been downloaded, to have a basis for the progress bar? I didn’t…
-
4
votes2
answers1312
viewsHow to change the "Key" orientation of a Caption in ggplot?
how can I change the "key" of the caption below, so that it stays in the horizontal position, without changing the vertical lines of the chart. Also, how to leave the caption background with the…
-
4
votes2
answers829
viewsHow to support various types of screens/screens
I started on Android recently (self-taught) and came across the following situation: support for several screens. I saw some tutorials and doubts of other people but found nothing to help me with…
-
4
votes2
answers5999
viewsHow to put line break in the textview straight from xml?
wanted to put this text more organized without creating several textview , and I had the idea of using line break .…
-
4
votes2
answers181
viewsHow does an automatic categorization algorithm work?
I have that doubt. I’ve noticed on sites like Yahoo Answers, that there’s a recognition of the semantics of the questions and they’re categorized automatically. Sure, there are mistakes, but it’s…
-
4
votes3
answers1946
viewsAnimate the text of a textView in order to be displayed progressively?
I would like the text of the textView present in my Activity not to be displayed all at once, but gradually, something like a Power Point transition. An example of what I want to do exactly would be…
-
4
votes1
answer158
viewsFormat values from one array into another
I have a CSV that returns me the following array: Array ( [0] => Array ( [0] => ANO [1] => Sciences [2] => Mechanics [3] => Telecom ) [1] => Array ( [0] => 2001 [1] => 226…
-
4
votes1
answer488
viewsUsing Concat to concatenate array of strings
I was seeing about strings and that they are immutable and cannot be added to them in quantity otherwise they will be very slow. The recommendation is to use the StringBuilder. But I also saw that…
-
4
votes1
answer250
viewsIs it possible to call a method when the application is closed?
What happens when the user closes the app without calling a preset method in the app, what I mean is when it removes the app from the list of active apps.What happens at this point in time is?…
-
4
votes1
answer777
viewsHow to transform a string into HTML C#
I am using a component and need to load it with HTML snippet that comes in a variable. For this I created this Jquery: $(document).ready(function(){…
-
4
votes1
answer1366
viewsLaravel 5 - How to connect multiple Bases at the same time?
I’ve researched several places, and they all end up leading to that link. But I could not work using the methods given in the link. The problem: I have 3 banks configured in config/database.php:…
-
4
votes1
answer207
viewsProblem in scroll hover
When I mouse the button and see the content I can’t use the scroll bar, simply hide the content, someone can give a help? ul>li { list-style-type: none; } ul li:hover .mostrar { opacity: 1;…
cssasked 7 years, 7 months ago Samuel Souza 468 -
4
votes2
answers79
viewsSeparate the string value
Colleagues. When calculating the cart freight, it is returning as follows: I wonder, how do I get only the value 24.90? Because I need to add to the value of the cart. See below the reference codes:…
-
4
votes4
answers6919
viewsSELECT of month/year in DATES
I need select to return all the rows that were inserted in July 2010, as shown in the example, regardless of the day. How to return this query? SELECT * FROM FRCAST WHERE DATA_ID =…
-
4
votes3
answers663
viewsMethod Object.values( ) does not work in internet explorer 9
Guys, I got a problem. In a javascript file that we use works normally the Object.values() method that takes an object and returns an array. But on the internet explore 9 does not work. Someone…
javascriptasked 7 years, 7 months ago Paulo Rogerio 307 -
4
votes2
answers579
viewsReliability and Security of Sessions
I’ve been reading a little bit about security with sessions (both in ASP.NET and in PHP), and I read in some places that sessions, especially in PHP, can be easily stolen (even more easily if the…
-
4
votes3
answers609
viewsHow to compare 2 Arrays to Assert.Equals?
I need to compare two arrays on Assert.Equals. When I test the method in race it is right but the test does not pass. Code: public void SeparaStringTest() { RecebeComando recebecomando = new…
-
4
votes0
answers72
viewsCan you explain to me what is prototype in Javascript?
I’ve seen several explanations, but I don’t quite understand. Can you give a light there? It can be really high.
javascriptasked 7 years, 7 months ago Seu Madruga 2,481 -
4
votes1
answer224
viewsWhat does .container. 31 25 25 in CSS mean?
I am doing a self study on responsive site. In a tutorial I got, there are in the CSS file instructions like: .container.\31 25\25 { width: 100%; max-width: 1750px; min-width: 1400px; }…
css3asked 7 years, 7 months ago Jose Alfredo Rodrigues 41 -
4
votes2
answers662
viewsConvert HTML as image
I own a string with the page’s HTML, is there any way to save it as an image? Render the whole page as an image, and if possible, store it in an MemoryStream.
-
4
votes1
answer37
viewsI have a fragment that renders an xml but if there is no record I want it to render another page(xml)
I am new on android and do not know how to do it. Follow a small piece of my code. I will check if there are no records if the list is not empty. If it is empty I need it to render another page of…
-
4
votes2
answers333
viewsCalculate minimum number of permutations to sort
I received this question in a test, and I would like to know which ways to go. I have an array of distinct n integers, A = [A0, a1, ..., an-1]. I can swap any two elements of the array any number of…
-
4
votes3
answers879
viewsStore in the database or in sessions
While doing a survey, I found that some colleagues store the products of the trolley in sessions like this: $_SESSION[cesta][$indice][produto] In particular, I usually store the customer’s products…
phpasked 7 years, 7 months ago user24136 -
4
votes2
answers7271
viewsDivs daughters extrapolam Div father
I’m trying to get the DIV father to be filled by all the DIVS daughters, but I’ve tried several things and it doesn’t work. Always ends the father DIV being extrapolated by the daughters. EDIT: I…
-
4
votes3
answers287
viewsDo you need to use the third bind* parameter?
I would like to know whether you should use the third value of bindValue() / bindParam()? For example: $resultSQL->bindValue(1, $email, PDO::PARAM_STR); Or there’s no need for me to use:…
-
4
votes1
answer4925
viewsTO_DATE(SYSDATE, 'YYYY-MM-DD') works sometimes
I have the following problem: I use the JDBC to connect with Oracle. And I call rs.getTimestamp(index) to pick up a date field. When I run the function TO_DATE(SYSDATE, 'YYYY-MM-DD') the…
-
4
votes1
answer68
viewsEcomerce maintenance environment - Prestashop
I took a service to support an e-commerce on the Prestashop platform. I found the environment configured this way: The main application files are in bitbucket. To do the maintenance, I change the…
-
4
votes3
answers3702
viewsNotice : Array to String Conversion in
I have a problem with the following code : <select name="tipoPessoa" class="form-control"> <?php $tipos = array("Pessoa Fisica","Pessoa Juridica"); $tipoSemEspaco = str_replace("…
-
4
votes1
answer1028
viewsHow to convert px to vh and vw in Javascript?
I want to convert px to vh and vw in Javascript, how can I do this? example 23px = response vh or vw
-
4
votes2
answers1008
viewsHow to transform this text into an array with name and description?
I have a.txt file. It has the name of the images and the description about them. So I wanted to do it this way: nome:descrição imagem1.jpg:"descrição exemplo 1"; I know how to read the php file. Now…
phpasked 7 years, 7 months ago Amadeu Antunes 3,331 -
4
votes2
answers1536
viewsConvert string in binary format to PDF
I would like to know how to Gero a PDF file through a string with binary values, the values should actually turn a text (according to the ASCII table) and be written in PDF. I tried to do it this…
-
4
votes1
answer6483
viewsWhat is the most appropriate way to batch test ERRORLEVEL?
I’ve seen several forms of testing ERRORLEVEL in batch scripts. Some of them are dangerous and others are wrong, but sometimes go unnoticed. Below are some examples I know: Dangerous: the test works…
-
4
votes2
answers1768
viewsSingle quotes are allowed in JSON?
I can represent a JSON object this way? { 'helloWorld': true }
jsonasked 7 years, 7 months ago Marcell Alves 2,453 -
4
votes1
answer258
viewsAssign a function to Jcombobox
I am with the following doubt, I have a combobox, and I want that when you click on one of the combo options, it does something. I wanted to know how I put a variable or method "linked" to combo…
-
4
votes4
answers14684
viewsJavascript Regular Expression for Phone with IDD
I’m having trouble understanding the logic of Regex, and I can’t find codes that make up the complete phone mask with IDD, DDD and phone with 8 and 9 digits with change of hyphen when typing…
-
4
votes2
answers2918
viewsIs negative margin a bad practice?
Use a margin with negative value is a bad practice (bad acting)? Example: margin-top: -3px;
cssasked 7 years, 8 months ago Arthur Menezes 2,210 -
4
votes4
answers4556
viewsHow to change the order of appearance of Columns in a Data Frame?
I’ve got this df mounted on the R: Produto Classificação Comun Quilo Indice 1 ABACAXI HAVAI A GRAUDO 3,32 2,2 2 2 ABACAXI HAVAI B MEDIO 2,81 1,8 3 3 ABACAXI HAVAI C MIUDO 2,21 1,4 4 4 BANANA MACA -…
rasked 7 years, 8 months ago Danilo Imbimbo 533 -
4
votes1
answer1099
viewsHash, Object or Dictionary?
I have been studying python and ruby and have seen that several other languages as well as these two make use of different terminologies to determine a ' Json object. var objeto = { 'name' : 'Darth…
-
4
votes1
answer122
viewsComparison of Session and Viewstate with String
Recently, I received the following notice from Visual Studio in a code similar to the image: I understand what he wanted to say: there is a reference comparison of the two values (the session and…
-
4
votes0
answers751
views#2002 - No such file or directory no phpmyadmin
I am using MAC OS Sierra (safari 10.0.3), MAMP 4.0.6, phpMyAdmin and netbeans. Everything was going very well, had already run the application some times until suddenly the computer stopped. I…
-
4
votes1
answer1091
viewsAJAX request time
Well I make a request via AJAX, so I can put a load on the screen and remove it when AJAX loads the page. The problem is that I need to make the load appear only if the request takes more than 2…
-
4
votes0
answers84
viewsOracle , how the parameter no_proxy_domains of UTL_HTTP.set_proxy works
In the package UTL_HTTP , we have the method set_proxy in it a parameter no_proxy_domains , how this works. In short I want to request a URL without authentication.…
-
4
votes2
answers790
viewsWhat are Try/Catch blocks?
I would like to know what the blocks are try...catch. I would like more information in Portuguese, because in English I didn’t understand much, only that it would be a kind of if...else. What are…