Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer519
viewsHow to measure the performance and costs (processing and memory) of a frontend?
I am working on a project that uses a lot of Javascript (ecmascript-6, jQuery), Html5, CSS and would like to have some way to measure the performance, the consumption of processing and the…
-
4
votes2
answers499
viewsDiv appears in her after 2 seconds with jQuery
Guys I’m mounting the loading system using Jquery. And they consist of a div that covers the entire tala in the browser and that when all elements of the page are loaded, Jquery hides the div. The…
-
4
votes2
answers405
viewsHTML and Javascript integration
I am doing some initial tests with javascript, and I am not succeeding in trying to change a parameter of my HTML code. The idea is that when you click the "Message" button, the text is updated to…
-
4
votes1
answer1467
viewsCSS and JS files in Laravel
By "default", the CSS and JS files in Laravel are in the folder public. But when I create dependencies with Bower, it creates the component folder in the folder vendor. I can change the vendor for…
-
4
votes2
answers3070
viewsHow to see the queries that were executed by the eloquent in Laravel?
How can I find out which queries were executed in Laravel? For example, I have the following query: $usuarios = Usuario::with('nivel')->where(['status' => 1])->get(); I would like to know…
php laravel laravel-5 laravel-4 laravel-eloquentasked 8 years, 2 months ago Wallace Maxters 102,340 -
4
votes0
answers74
viewsWhat would be the best practice, within the MVC standard, to process the data?
An example (I usually use Cakephp, but the question would be for any framework and language): to save date type fields in the finger bank I have to transform a format field dd/mm/yyyy in yyyy-mm-dd.…
mvcasked 8 years, 2 months ago Keoma Borges 201 -
4
votes1
answer1299
viewsHow can I compile a simple program in Prolog?
I have SWI-Prolog installed, but I’m using it as a kind of interpreter, Exp: swi-pl?- [load]. True I wonder if there is a simple command that I can use via terminal to compile the source code into a…
prologasked 8 years, 2 months ago Gabriel Rodrigues 118 -
4
votes1
answer117
viewsCan I declare a library within a class in C++?
I need to use type variables string, the problem is that I cannot include libraries within my classes in Code::Blocks, there is some way to include the library string/string.h in my class in C++?…
-
4
votes2
answers158
viewsError using package plm - Error in x[, ! na.check] : (subscript) Logical subscript Too long
I am using the plm package to perform analysis in a panel. To structure the base as a panel, I used the function pdata.frame of the same package. With this, I had as return a panel with the…
rasked 8 years, 2 months ago Otto Tavares 43 -
4
votes1
answer139
viewsRecover last row inserted in table with non-sequential primary key - Mysql
It is possible to know which was the last row inserted in a Mysql table where the primary key is not sequential? I have a table where the primary key consists of two columns that are FK, so they…
-
4
votes3
answers604
viewsHigh-box text button in Android API < 14
We see that at the launch of Android 5.0 Lolipop came Material Design that has indeed changed a lot on Android and along with this, the component of Dialogs which by default comes with the high text…
-
4
votes1
answer567
viewsHow to convert array keys to all uppercase or lowercase?
I’m getting some data from a Webservice, through a JSON response. Convert this data from JSON to array, through json_decode. But one thing that’s bothering me is the fact the keys are coming with…
-
4
votes1
answer379
viewsAndroid 6 problem with map.setMyLocationEnabled(true)
I have a problem with the Google Api 23+ specifically in the method mapa.setMyLocationEnabled(true); You need permission to run, and on android 6.0+, I can’t implement the new permissions method.…
android google-maps-android-api-2 android-permissionasked 8 years, 2 months ago Roger Casagrande 123 -
4
votes1
answer1116
viewsChange title bar and window icon
I want to change the title bar icon of the Java window, as shown below: I’m going the method initComponents() and leaving as it is in the code below, but the line setIconImage(iconeTitulo); is left…
-
4
votes1
answer168
viewsHow to extend the length of Widgets within a Qscrollarea?
I’m looking to build a question form in Qt. As there are several questions to be answered, it is necessary to allow the scrolling of the form, and so I used a QScrollArea. Questions are all answered…
-
4
votes1
answer94
viewsHow to calculate columns equal to Skeleton
To .col-md-1 is calculated thus: 100/12 = 8.3333...3 in the Skeleton was otherwise calculated which returned the following result: .one.column, .one.columns { width: 4.66666666667%; } What logic did…
-
4
votes4
answers1532
viewsAngular 2 Binding in Component
I have the following scenario. I have a list in one webservice, but when I expect a return to pass the value to my component, it just doesn’t do the Binding because it takes time, and even when it…
-
4
votes1
answer326
viewsCopy and write image launches java.lang.Illegalargumentexception: image == null!
I created an algorithm to traverse a directory tree and mirror its contents. The exception is when the program enters a directory with 400 images. It copies the images until it reaches an image…
javaasked 8 years, 2 months ago Vítor Marçal 172 -
4
votes1
answer859
viewsError while removing accents
I have a javascript code to remove accents, it works with any accent, less with the crase, and the code should work with the crase as well. I can’t find the bug. var teste = "Çaptúra de Tela…
-
4
votes1
answer1747
viewsFunction to sum elements of an array does not return correct value
I am making a program for a shopping list, the user passes to the program the values of each product and each one is stored in a vector. Then we added the elements of the vector to give the total…
-
4
votes1
answer48
viewsHtml.Editorfor losing value when rebooting the page
am starting my html.editorfor with "0.00" like this: @Html.EditorFor(model => model.Preco, new { htmlAttributes = new { @Value = "0,00"} }) However, when the user receives a validation message…
-
4
votes3
answers670
viewsHow to sort sql queries in the RUBY on Rails model?
I have the following method an ROR application. query_student = "SELECT name, registration, room FROM students WHERE registration = "+ params[:registration]+" AND password = "+params[:password]…
-
4
votes1
answer560
viewsC++ - Sort particular points of a rectangle in a vector?
I have a project in c++ where I should map regions of an image using the mouse click. The point is that I should get the mapping points in a specific storage order, as in the image below: my problem…
-
4
votes1
answer2784
viewsHow to get HTML code from a page with PHP?
I’m in a project where I need to get the HTML of a particular page on the web in order to check the HTML content of that page. Could what path I can follow to do such action in PHP? I’m currently…
phpasked 8 years, 2 months ago Luiz Henrique Esper 71 -
4
votes2
answers59
viewsHow to turn the first array of a multidimensional array into a key?
how can I turn the first array of a multidimensional array into a key? for example that would be my multidimensional array array (size=5) 0 => string 'Nome' (length=4) 1 => string 'd_r_A'…
phpasked 8 years, 2 months ago Guilherme Freire 767 -
4
votes1
answer185
viewsBug textarea with padding in Firefox
The padding-bottom in a <textarea>, works normally on Google Chrome and in other browsers when scrolling the scrollbar, but in Firefox the spacing is always "fixed" and the texts appear cut.…
-
4
votes2
answers758
viewsAverage between timestamp dates
I have 3 dates: 2016-08-17 12:29:01 2016-08-17 12:34:13 2016-08-17 12:39:26 And I would like to get the average time between them. If there are more than 60 seconds, then in minutes, and the same…
postgresqlasked 8 years, 2 months ago Jonathan 1,073 -
4
votes2
answers230
viewsDirect cast or cast functions. What is the best option?
In PHP, I realize that it is possible to do some things in countless ways. One of them that comes to my attention is the functions and functionalities related to the conversion of types. It is…
-
4
votes1
answer100
viewsBD query without overloading the server
Hello folks good night! I need to perform several queries of an ID in an X table, but this is overloading my server and the connection with the BD gets off, I contacted my server and informed me…
-
4
votes1
answer2415
viewsHow to take the button out of an input file (without JS)
I got the following input file and wanted to know how to remove the button, so that in the box show only the name of the file *It is not necessary JS, I have seen some examples and remember that…
-
4
votes2
answers649
viewsDelete files created more than 10 days ago, saving the latest if everyone from the list has more than 10 days of creation
I did this question where doubt was how to delete files with more than 10 days of creation. I recover them from a directory and the code has already been implemented and is functional. However, I…
-
4
votes2
answers176
viewsManipulating Javascript window.history
Is there any way to list the URL’s of window.history? If I want to use window.history.go(-2), has how to know which URL this -2 will return?
javascriptasked 8 years, 2 months ago Amanda Lima 3,428 -
4
votes1
answer3476
viewsHow to put elements of a list in another list
I have the following code: a = list() b = list() c = list() a = (1,2,3) b = (2,4,6) c = a + b[1] print(c) How do I add an element from a list to another list?…
-
4
votes0
answers62
viewsHow to know the current position of the user in the ranking
I have the table quiz_general and the table account, the table quiz_general that’s how it is: I’m doing a ranking system, it uses several lines to make the sum of points of each user, not just one…
mysqlasked 8 years, 2 months ago caiocafardo 1,897 -
4
votes1
answer790
viewsHow to add results from a list and display result in an Ionic popup?
I have an actiosheet that opens a popup: In the popup I want the total values of the list to be displayed. That is, I need to add / accumulate the values of the list and display the sum in the…
-
4
votes1
answer698
viewsJavascript - Copy content from a <span> to clipboard by clicking a <button>
I am creating a CPF generator, which when the person generates, appears an option "Copy", but I would like to know how to implement the functionality of copying the content that is presented.…
javascriptasked 8 years, 2 months ago Alexandre Lopes 2,769 -
4
votes2
answers925
viewsHow do I make a countdown chronometer to a date?
Good is the following I have a following date with an hour, and I would like to know how I could make a countdown chronometer, with days hours and minutes and seconds until I reach that date and…
javascriptasked 8 years, 2 months ago Gonçalo 2,525 -
4
votes1
answer146
views -
4
votes1
answer240
viewsAngularjs google Chart with dynamic data
Example of how my code is http://plnkr.co/edit/hMnKAzjbkQzHWjL5p6KX?p=previewangularjs I receive the data from the webservice and organize this way. var avaliacoes_descTipo = []; var…
javascript angularjs google-charts angularjs-scopeasked 8 years, 2 months ago Erik Ieger Dobrychtop 153 -
4
votes1
answer330
viewsHow to receive external data via XML
I am creating an android app and I need it to receive and show on the screen information of the tide board of the site below: http://servicos.cptec.inpe.br/XML…
-
4
votes2
answers194
viewsHow do I exchange the 3 and 5 occurrences of a word in a string
Someone can help me in this, I need to change the 3 and 5 occurrence of a word in a text, I can change the other occurrences. Texto=input("Digite o Texto: ") #recebendo o texto do usuario…
python-3.xasked 8 years, 2 months ago Adriano Brito 85 -
4
votes2
answers1950
viewsClose all the Activities
I own 3 activities: splash_screen MainActivity error_webview To Activity error_webview has two buttons, one to open the splash_screen and another to close (Exit), but wanted to click on "Exit" to…
-
4
votes2
answers182
viewsExit multiple loops without using goto
Oops! The title says it all! Someone knows an interesting way to get out of more than one loop without using goto?
-
4
votes2
answers40
viewsHow to change the value of fields in a column?
I am with a simple doubt but I could not find a solution. The same way I can when I use select bring an empty column using select a.x,NULL as y,a.z from DADOS a, how can I make a column instead of…
-
4
votes3
answers327
viewsUpload a file with parameters in Silex with Angular-File-Upload
I am doing a work with Angular (version 1.5.8) and using Silex as Web Service. To send the file to the Web Service I am using Angular-File-Upload (version 1.5.1) and my Angular service is like this:…
angularjs upload angularjs-directives file-upload silexasked 8 years, 2 months ago Vinicius da Silva 131 -
4
votes1
answer1539
viewsReplace point by comma in Javascript
Good night in the example below add up if the values of 3 text boxes, and the result comes out in the fourth, how to make this result appear with comma and not with dot? <html> <head>…
-
4
votes1
answer2009
viewsIs there any way to validate an input in Angularjs without using form?
I have a input which I wish to validate via Angularjs. However, this input is not within a form. So, when trying to access the form validation information, I was unsuccessful: <div…
-
4
votes1
answer365
viewsString combination in SQL
I need to generate all combinations of a word varchar of a database record. I need to develop in MySQL in PostgreSQL To make it simpler: TABLE DADOS_BASE How to make a process/Function that selects…
-
4
votes1
answer100
viewsAspnet MVC database first or code first
I have an Aspnet MVC 5 project in which I will use Owin and Identity, I needed to customize Identity (attributes and relations) to meet my needs, but I already have all the tables of the database…
-
4
votes1
answer442
viewseffect on input using jQuery
Guys I’m making a input with an effect similar to that of Android. Good here in this example I put a input and a select. The input is working perfectly, when he is with the Focus he turns blue.…