Most voted questions
150,413 questions
Sort by count of
-
5
votes2
answers4213
viewsConvert hour format in seconds
I have a value displayed by a json: "tempoShoutcast":"03:11:48" How can I turn this format into seconds?
-
5
votes1
answer473
viewsHow to correctly write a project vision document?
I am a developer who works alone and for some time questioned here on what documents would really be important to be produced at the start of the development process. Analyzing the accepted answer,…
software-architecture software-engineering ddd software-project project-managementasked 7 years, 9 months ago SomeDeveloper 18,074 -
5
votes1
answer12643
viewscan’t Multiply Sequence by non-int of type 'float'
Error: can’t Multiply Sequence by non-int of type 'float' I am facing this error, I know it involves variable types, but I do not know how to make the entry receive a float type value…
-
5
votes2
answers4468
viewsInput mask with zeros on the left
I have a numerical type input, which should only receive numbers (obvious). However, some browsers let the user type alphanumeric. However, this is not the only problem. I need 0 to be displayed on…
-
5
votes1
answer2888
viewsIn Python is there a debug function equivalent to "print_r" or "var_dump" in PHP?
In Python there is some function for debug equivalent to print_r or var_dump of PHP? For example, in PHP: $valor = 'Hello'; var_dump($valor); string(5)'Hello' In Python would have some similar…
-
5
votes0
answers116
viewsHow to print an existing PDF using Poppler (Qt5)?
I’m using Poppler for Qt5, but I’ve reviewed the API documentation https://people.freedesktop.org/~aacid/Docs/Qt5/ to read existing PDF documents, I need to put the functionality to send to printer,…
-
5
votes2
answers101
viewsHow to get an item from a list randomly?
Suppose I have the following list: frutas = ['abacate', 'mamão', 'laranja', 'uva', 'pêra'] I need to capture one of these elements from list randomly. How would I do it in Python?…
-
5
votes1
answer51
viewsHow to reload the page after the message closes using Hubspot Messenger(). run()?
I’m making an MVC app and I need to re-load after the message closes (success or not). How can I do this? Codepen for testing: http://codepen.io/larissa/pen/rjOpRM/ HTML: <button class="btn…
-
5
votes3
answers998
viewsResponsive font according to text size
How can I make a source responsive according to the size of the text? I have a website: radioturn.com.br The name of the song is constantly updated, I would like to remove the mark and let it stand…
-
5
votes2
answers626
viewsHow to hide an element after a certain time?
So, I have a div who shows up every time I submit a form, wanted to know how I make this div disappear after a while.
-
5
votes3
answers41543
viewsAlignment from side to side
I want to put both divs (green and red) aligned side by side as they are, but the green should be fixed aligned on the right, while the red line is aligned on the left, so I put the margin-left:0vw;…
-
5
votes1
answer107
viewsWhy is it possible to access array indexes with "{}" keys?
In some tests I did with PHP, I saw that it is possible to use keys ({}) to access indexes of arrays. Example: $array = ['a' => 1, 'b' => 2, 'c' => ['d' => 4]] echo $array{'c'}{'d'}; //…
-
5
votes1
answer411
viewsBabel for those who have never used Nodejs
Maybe because I have a much greater experience with PHP I’ve never been a fan of Javascript. I always found the syntax of language confusing and complicated and often resorted to jQuery to do simple…
-
5
votes2
answers583
viewsScript js does not interrupt form Ubmit
Guys I’m having a problem with an algorithm in jquery, that of uploading files with ajax without updating the page. I don’t know why when I put the return false; at the beginning of the algorithm…
-
5
votes1
answer52
viewsWhat is the need to inform the parameter "Order" in the object of type Indexannotation?
I am creating indexes for some columns that will be used in a query with Where(). The intention is to make the search faster. Until then I was creating like this: Property(x => x.Documento)…
-
5
votes2
answers45
viewsProblem in solving javascript
The code below should not be executed automatically by receiving id values and assigning them to the ui array? var ui = ["input", "prompt", "heading"]; ui.forEach(function(id){ ui[id] =…
javascriptasked 7 years, 10 months ago Lucas Trino 87 -
5
votes1
answer47
viewsSymbol unknown javascript
Guys, I’m learning javascript and I downloaded Olw Carousel and I went to see the js and at the beginning of the script there’s this excerpt ;(function($, window, document, undefined) what intrigued…
javascriptasked 7 years, 10 months ago vinibudd 455 -
5
votes1
answer79
viewsbRasilLegis [ command "get DetailsDeputed"]
I need to collect the data of the deputies who were present in committees, positions, etc. However, I can only do this with one deputy at a time. It’s possible I can choose them all at once?…
-
5
votes2
answers239
viewsHow to pass command line arguments in PHP?
Guys I’d like to do those scripts that pass arguments. Ex. php script.php -email [email protected] Where can I find documentation about this? PS: I just want to know how to pass these arguments…
phpasked 7 years, 10 months ago user50712 -
5
votes1
answer106
viewsCalculation of hours within consultation
I already made this account and it works right in C++. My problem is to do inside a select to appear in the table. If someone wants to see the C++ algorithm to help mount in Mysql I can send. This…
-
5
votes1
answer448
viewsDivision between integer and real number returns Nan
I’m afraid the integer values (example 350) and a real number (example 3.50), need to divide one by the other precisely (3.50 / 350) the result would be 0.01. var tamanho =…
-
5
votes1
answer2120
viewsNetbeans Error When Creating Project
My mistake is in the IDE, I’m using Debian Jessie, I decided to use it recently. The Netbeans installation went perfectly, the JDK installation too, but it gives me this error: I tried to reinstall…
-
5
votes1
answer139
viewsHow to run a loop while waiting for input?
I want to know if you can run a repeat loop while waiting for an input type() and right after receiving the loop input for or while starts processing it immediately. something like: imputs = []…
-
5
votes1
answer215
viewsObtain only numbers in an input that receives XX ml (example: 200ml)
I am using the Jquery mask to automatically put the ml (milliliter) suffix in the input that gets the size of a bottle. being the input id #size: var tamanho = $("#tamanho").val(); An example 200 ml…
-
5
votes2
answers5470
viewsHow is good documentation done using SCRUM?
I am developing documentation using the agile method SCRUM, I do not know if I am on the right track, and many people have difficulty in this, so I decided to realize such a question, currently put…
-
5
votes3
answers1506
viewsFormatting numbers with jQuery
Hello, I have an array that is returned via an AJAX request and I intend to format the numbers of each of these keys as follows: Example: Standard values -> 2569 -> 192544694 How I wish they…
-
5
votes1
answer2175
viewsWhat is the purpose of the "ready()" function?
In scripts written in jQuery I always come across a function that is the function ready(), as the first function to be executed, see an illustration example of it: <script…
-
5
votes1
answer1868
viewsHow to randomly choose an item from a Python dictionary?
I would like to know how to randomly choose an item from a Python dictionary? For example: I have the dictionary dic = {'Pedro': 99, 'João': 19, 'Rosa': 35, 'Maria': 23} and need to choose an item…
-
5
votes1
answer83
viewsAllow Multiple Users per Browser
For example, the Google allows you to maintain n accounts of Google wrinkled in your browser. In the case of Google, it creates a call control variable authuser who receives a inteiro, it passes…
-
5
votes1
answer3327
viewsReading accented CSV file in Python?
I am learning python3 and ended up getting stuck in the question of reading a simple csv file that contains the character 'à'. I’ve tried using Code, I find that I found through the internet but…
-
5
votes1
answer139
viewsWhat is the purpose of the "system" directory of the micro-framework Inphinit?
I intend to use the Inphinit micro-framework on a project of mine, but first of all I need to know more about it. Being so, I created an example project just to familiarize myself with its…
-
5
votes2
answers126
viewsHow do I know the time and date of a location with PHP?
I intend to store in a variable the current time of Portugal and in another variable the current date of Portugal. How can I do?
-
5
votes2
answers939
viewsGenerate a random profession for Online Players
I am creating a small game (Android) to play I more friends of mine. The game is called "Cops and Thieves". At least it is necessary to have 4 players in which one of them will be the POLICE,…
-
5
votes3
answers212
viewsCapture the WHERE clause of an SQL query
I need to capture only the clause where several queries to analyze the filters used. For example: select "DIM_1"."col1", "DIM_2"."col2" , "DIM_3"."col3" , "DIM_4"."col4" , "FAT_1"."col5" from…
-
5
votes3
answers1793
views -
5
votes1
answer806
viewsError: Object of type 'closure' is not subsettable
I’m trying to encapsulate a code in functions but in the process such error happens: Object of type 'closure' is not subsettable But I can’t find why. Follow the code working: h = (b-a)/n B =…
-
5
votes1
answer145
viewsDevelopment windows CE Cortex-A9
I have a Processor Collector: Ti Cortex-A9 OMAP4430, I have developed a clamp using Lazarus 1.6.2, I am trying to compile, I am getting the following message: Error: Illegal Parameter: -Cpcortexm3…
-
5
votes2
answers185
viewsHow to pass a lambda expression as argument of a parameter in a method?
Is there any way to pass a lambda expression as a parameter argument in a method? For example: Private Sub Metodo(Expressao As ?) Lista = Lista.Where(Expressao) End Sub…
-
5
votes1
answer562
viewsDo I really need to have the src and ng-src attributes in the IMG tag? What is the function of each?
I saw here that we have the creation of tag <img> with the attributes src and ng-src. It really needs to be? Even more that here the two attributes have the same value.…
-
5
votes2
answers768
viewsHow to make a gradient at the ends of a line, with CSS?
Probably this may be a repeated question, but since I don’t know the name of the effect I can’t find anything on it, the effect I want to do on the edge is exactly the same as the image below: How…
-
5
votes1
answer319
viewsHow to search for markers already created on a map - Google Maps
I have a map where there are already loads of Markers. In this map I need to fetch all markers, and show a list with markers visible to the user, to make a small list of data similar to this…
-
5
votes3
answers1936
viewsHow to pass dynamically changed value to function, in Angularjs
The fields itemCodigo, itemDescription, itemPreco and itemQuantidade are filled dynamically (at runtime, without refresh) from a query performed in the database. However, these values, when passed…
-
5
votes3
answers11209
viewsCentering using the Absolute position
I don’t understand the following code: div{ position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; width: 100px; height: 100px; background: red; } Online example I know that set…
-
5
votes1
answer336
viewsDiscover the User Hostname
I have an application Running with Angularjs where I need to know the name of the machine (user) that is accessing the application. Someone has already had to do this with javascript? Note: The…
-
5
votes2
answers4753
viewsAdding values between html and javascript inputs
Dear friends, I am trying to add sum between html and javascript inputs, but with this example, I was only able to put in the html input. How do I implement the javascript input and add the value…
-
5
votes1
answer119
viewsError installing R packages in Gitlab CI
When I try to install R packages using shell, the following error occurs: My code from the archive gitlab-ci.yml is as follows: before_script: - export DJANGO_SETTINGS_MODULE= ---- - pip install -r…
-
5
votes1
answer261
viewsASP.NET MVC Scaffolding for any table
Someone knows a way for me to generate CRUD automatic to my bank tables using MVC? I have 5 tables and would like to generate SinglePage apps automatically for them, without having to generate…
-
5
votes2
answers117
viewsHow to call different modals, without using database
I’m having some difficulties, I know this is not the ideal way, but it’s what I need at the moment. I have a list medicos and need to call a different modal for each of them, without database,…
-
5
votes2
answers75
viewsGoogle Chart + Foundation Tabs
I’m facing problems with Google Chart + Foundation. The Gráfico doesn’t stay in width:100%, and it seems to lose formatting. And this happens when I use it in Tab of Foundation. Strange that if you…
javascriptasked 7 years, 10 months ago Eduardo Santos 754 -
5
votes1
answer280
viewsHow to make the properties of a User Control accessible in XAML?
A User Control can be used for various purposes, but I would specifically like to know a simple example of how to create a User Control any that returns any value. For example a Numericupdown:…