Most voted questions
150,413 questions
Sort by count of
-
5
votes1
answer363
viewsContinue running the loop even if a passage gives problem
I’m downloading Bovespa’s stock data for the package quantmod. However, I still do not know why, in the data from Santander (SANB11) the function getSymbols package is giving problem and loop for…
-
5
votes3
answers22986
viewsHow to add +1 in a counter variable to each click?
Each time I click a button, I want to add +1 to a variable. For example: I have a variable count receiving the value 5, when clicking a button I want the value 5 to change to 6 and so on, displaying…
-
5
votes3
answers157
viewsWhy does this violate Strict Standards?
take into account the following definitions of classes: class SuperDate {} class SubDate extends SuperDate {} class Foo { public function setDate(SubDate $date) {} } class Bar extends Foo { public…
-
5
votes1
answer2656
viewsWhat is the appropriate folder architecture to apply to a web project?
My project boils down to PHP pages, with folder for images, css, js and fonts. I’ve seen that some developers use a folder for project development and another folder for production. I would like to…
-
5
votes3
answers530
viewsHow to select all data.frame variables at once for a regression?
Suppose the following data.frame: set.seed(1) dados <- data.frame(y=rnorm(100), x1=rnorm(100), x2=rnorm(100), x3=rnorm(100), x4=rnorm(100)) If I want to run a y regression against x1...xn, I can…
-
5
votes1
answer3442
viewsHow to plot the estimated logistic regression model
Suppose I have the data below, apply a logistic regression to them and want to visualize the estimated function that returns the probability. #Simula os dados nobs<-100 beta0=-10 beta1=0.006…
-
5
votes2
answers8082
viewsMaven how to define JDK version?
Problem: When I create a project maven the project always got the version JDK 1.5, change the JDK version in the IDE when doing a Maven > Project Update he goes back to JDK 1.5. The archive…
-
5
votes4
answers514
viewsError in mysql_fetch_object
I don’t know what happens in this mistake. Fatal error: Cannot use Object of type stdClass as array in $result = mysql_query("select * from usuarios"); while ($row = mysql_fetch_object($result)) {…
-
5
votes1
answer154
viewsGetting Factory null in spring sessionfactory with configured resource
The name of the class containing the SessionFactory is DataProvider and has the following implementation: @Resource(name="sessionFactory") protected SessionFactory factory; protected Class<E>…
-
5
votes1
answer190
viewsParameter for Stored Procedure not identified
I’m having a problem, which would be a mistake saying that there is no parameter being passed to the Procedure. It is running the following code: cmdProcedure.Parameters.AddWithValue("@id", 0);…
-
5
votes1
answer384
viewsProblem with Java timer
Explanation: I have a component JTextField that would be a regressive counter, but when I use the ActionListener in this way: public static ActionListener alredBGolem = new ActionListener() { public…
-
5
votes2
answers5722
viewsHow does it work to adapt to different resolutions on Android?
In html for example, objects can (sometimes without any special code) adapt to the size of the window, for example by placing two images of fixed size, if you shrink the window one goes to the…
-
5
votes1
answer316
viewsHow to change the position of Ticks elements in Jqplot?
I need to know how to change the position of the Ticks (Graph Entities) so that they are diagonal instead of vertical, because as shown in the attached image, the names overwrite each other when…
-
5
votes2
answers2591
viewsHow to set the width of columns in a generated Excel spreadsheet as HTML?
I need to convert an HTML table and generate the file in excel. How to set column width in excel? I create the HTML file using PHP and export using : header ("Expires: Mon, 26 Jul 1997 05:00:00…
-
5
votes5
answers213
viewsCSS Child selectors on IE8?
Today I needed to fix to IE8 in which I used the following selector to align 3 boxes horizontally. #page-content .section-servicos .box-servico:nth-child(3n+2){ margin-right:0px; } in IE8 this code…
-
5
votes2
answers24059
viewsView div in Hover
How to display a div, which will have a summary about the movie (text), and a button to (SEE MORE) while hovering the mouse over an image. Example: <a href="#">IMAGEM</a> When hovering…
-
5
votes2
answers1118
viewsOptions to generate javascript library documentation
Currently I have used much the jsdoc3 with the docstrap, however requires a large amount of third party libraries to generate documentation with node and grunt, someone knows a robust alternative…
-
5
votes2
answers287
viewsHow to use the Afnetworking 2.0 library synchronously?
I would like to call a Rest service using the library AFNetworking. How to make a call synchronously, ie wait for the return of the webservice? For example: Method that will return a car object:…
-
5
votes1
answer243
viewsHow to make the clip:rect(...) property not occupy space (width)
I wonder if there’s any chance of clip: rect(...) really 'cut' the element in question, not just hiding it. Here in this picture, without the clip: rect(...), shows the edge to exceed the space of…
-
5
votes4
answers4937
viewsGenerate string securely random in PHP
How, using the PHP language, generate a string, preferably with configurable size, random enough to be used in routines dealing with cryptography and that for safety reasons cannot be insufficiently…
-
5
votes1
answer925
viewsHow to determine which HTML file should be displayed as input in Jersey?
I’m trying to find a way to provide a correct entry page in Jersey. A login page when there is no logged in user, otherwise I should display another homepage that will call Restful services…
-
5
votes1
answer1754
viewsHow to get around the expired page problem?
My problem is this: The user logs in, the data is sent to the request page (which lists all the person’s requests in summary form). On this page is checked if the login is valid. If it is, the rest…
-
5
votes3
answers54
viewsRemove margin with jquery
On a given page, when opening, I need to remove the margin class content to stay as I intend. CSS: .three-columns .content { margin: 20px 250px 0 250px; } .content { margin: 20px 0 0 250px; } I’m…
-
5
votes1
answer119
viewsProblem with display condition in Js
I’m trying to make parole with display: block; and display: none; but JS is not bringing the value of my element’s css display #slide. What’s the matter? var slider =…
javascriptasked 10 years, 8 months ago Rafael Alexandre 2,110 -
5
votes2
answers1944
viewsLoad Bootstrap Carousel
I’m developing a portal, with Bootstrap (3.1). For this I put a similar bootstrap Carousel on HEADER of the page and the content just below that Carousel. This is where the problem occurs, when…
-
5
votes1
answer1179
viewsRecognize Aria-Selected="false" with jQuery
How do I make a jQuery that recognizes if aria-selected="false" and if true change the background of the div "arrow-btn-sub" to another image (arrow img). This is part of an acordion and I want to…
-
5
votes3
answers19154
viewsHow to take the path of the open executable in C#
How do I take the path of the project in c#? Is there any function? Or I have to write the full path on my application?
-
5
votes1
answer107
viewsJqplot error in IE 7
I’m using the plugin JqPlot to generate a bar and column chart. After testing Mozilla and Chrome, which worked perfectly, I ran the test on IE7 and in the IE8 and got the following error:…
javascript jquery internet-explorer internet-explorer-7 jqplotasked 10 years, 8 months ago Eduardo Nobre 356 -
5
votes2
answers1856
viewsHow to select/deselect an input select Multiple at each mouse click? (without Ctrl)
I’m trying to make a script to select several options of a <select multiple> every mouse click. So far so good, I got and follows the code: var numSelected = 0; var valSelectedArray = [];…
-
5
votes3
answers221
viewsEquivalent to jQuery’s . filter() method or Zepto in pure javascript
What is the best way to make the "filter" method like jQuery’s or Zepto’s in pure javascript? I want to implement this method in my library:…
javascriptasked 10 years, 8 months ago Acauã Montiel 153 -
5
votes2
answers2143
viewsTake measurements of an element and play in variables? How to do?
Is there any way (using Sass maybe) to get the measurements (width and/or height) of already defined elements and store them in variables to use in calculations of other elements?…
-
5
votes2
answers2746
viewsHow to make the jQuery toggle function in pure javascript?
I found out a little while ago and found very interesting toggle function using functions: $('body').toggle( function(){ alert('A') }, function(){ alert('B') } ); (In the example I put only 2…
-
5
votes1
answer2128
viewsJSON transfer to Codeigniter via AJAX
I’m not able to pass a string in the format JSON for a controller of Codeigniter via AJAX. A string JSON: var avaliacao= {"avaliacao":[{"pergunta":"Qual sua…
-
5
votes2
answers633
viewsMysql Query in PHP only works locally
The system I’m maintaining was using two types of query (don’t ask me why) and locally (localhost) works perfectly. When I uploaded the project to the server, the querys declared as such: <?php…
-
5
votes3
answers1322
viewsGet the value of the "option" that was clicked either to select/deselect
I have the following <select>: <select id="multiselect" multiple="multiple"> <option value="pedra">Pedra</option> <option value="papel">Papel</option> <option…
-
5
votes4
answers7550
viewsjQuery identifying jQuery’s own change
When click on "put", the field is filled with the information "changed", but when this happens, the Next change does not identify this change. In practice it doesn’t work, how can I make it work?…
jqueryasked 10 years, 8 months ago David Costa 393 -
5
votes4
answers3081
viewsLimit number of characters per line
It is possible to limit the number of characters per line of a textbox multiline using Windows Forms C# and . Net 3.5?
-
5
votes2
answers1593
viewsHow to register dll . net using Inno Setup
I have a DLL written in C# and can’t register it using Inno Setup. An example of how to run this process would be useful.
-
5
votes2
answers4586
viewsHow to create an AVD for Android in Delphi
I’m starting at Delphi® XE5 and would like to know how to configure/create an AVD to emulate Android applications. Only gives me the option to choose the device, but I have nothing in Target Android…
-
5
votes1
answer2375
viewsWhat is Rameter Sniffing?
I’ve heard of Parameter sniffing. Something to do with SQL Server, stored procedures, and parameters. But what exactly is?
-
5
votes2
answers756
viewsHow to use arrays in Java?
It’s a very beginner question (I’m new to Java, I came from C++). I have to do a program that takes 4 grades from 10 students, but when I go to work with the "pointers" (arrays), my program returns…
-
5
votes2
answers1144
viewsChange Arraylist nodes
If I have a ArrayList<Integer> listInt for example, suppose in this ArrayList have: int a, int b, int c; //a = 2 b=3 c=4 and then I change the value of a, b and c for example to a=1 b=2 c=3…
-
5
votes2
answers927
viewsObjectoutputstream only saves the first object
I’m trying to manipulate a Byte file with Java. In the writing of the file I have the following code: FileOutputStream fos = new FileOutputStream("files\\Produtos.dat",true); ObjectOutputStream oos…
-
5
votes1
answer7034
viewsTake Edittext value from a layout passed as a parameter to a Alertdialog.Builder at the click of the button?
I use Layoutinflater in my view - View view = li.inflate(R.layout.alertdialog, null); I created a Alertdialog.Builder Builder setting for it the view, and the buttons positive and negative. My…
-
5
votes4
answers1759
viewsHow do I make all items in a menu equal in size regardless of quantity?
I want to make a menu that always leaves the items with proportional sizes, occupying all the available width and adapting. .top-menu ul { width: 100%; } .top-menu ul li { display: inline;…
-
5
votes1
answer425
viewsLetter "m" in Google Chrome version for Windows
Does anyone know the meaning of the letter "m" at the end of the Google Chrome version? I looked for answers in other places, but I still didn’t get good information. Ex. 32.0.1700.102 m Thanks in…
google-chromeasked 10 years, 8 months ago Vilmar Bispo Filho 75 -
5
votes3
answers1894
viewsIs it possible to import Javascript variables (Node.js)?
I have variables in app.js: var G = {}; module.exports = G; var DATA = G.DATA = 'DATA'; var F1 = G.F1 = function(val) { return val; }; This way I can export variables under the object G, and at the…
-
5
votes2
answers258
viewsApp crashing when an image is selected
I am trying to get an image using an Intent, but when I select the image, my application closes immediately. This is my current code: private void capturarFoto() { String nameFoto =…
-
5
votes3
answers419
viewsIn a menu of 3 levels, how to set a time when the event is mouseout on the second level to the third level?
I have a menu with 3 levels vertically (similar to the globe.com), my problem is when I I am in the last item of the 2nd level(for example) and move the mouse to the 1st item of the 3rd level, Hover…
-
5
votes4
answers11708
viewsHow do I call a function by pressing Enter in <input>
I’m creating a chat for a website and need the user to just press the enter and the message appears on chat, this function works normally with a field textarea but with input nay. HTML <form…