Most voted questions
150,413 questions
Sort by count of
-
5
votes2
answers18380
viewsChange svg color in :Hover
I have a SVG inserted with the tag img on my website. I would like to know if there is a way when I do the Hover in this image it changes color but only with CSS? This is the contents of my SVG…
-
5
votes2
answers2053
viewsPass parameter without specifying the type of variable to receive in the function
I’m creating a Java function that returns the type of the variable and as such, since I’m trying to figure out its type, I have no way to tell the function what type of variable to expect. What I’m…
-
5
votes3
answers13363
viewsHow to validate an input?
I have a form that sends the values entered in input to another page. I want to do a validation between inputs, if a number is larger than another, and if it is not, do not go to the second page and…
-
5
votes1
answer820
viewsProblems hiding/displaying div with Javascript
I have a relatively simple problem, but I cannot find a quick solution: I have a dropdownlist which determines which div will be displayed, and the moment the page is loaded for the first time, it…
-
5
votes1
answer442
viewsExtend Phpword class in CI - class not found
I’m trying to put the Phpword library in codeigniter, so I downloaded Phpword and extracted the Phpword folder and the Phpword.php file into the third_party folder of CI. After this I created in the…
-
5
votes2
answers15519
viewsIndefinite reference of functions
I have a problem related to modularization of my project. Do not pay too much attention to the logic of the program, because the biggest problem I face is the fact that the program does not compile.…
-
5
votes1
answer301
viewsError with border Radius Chrome
I have the following structure using the bootstrap and fontawesome .social-rodape{ margin-top: 35px; } .social-rodape ul li a { padding: 10px 12px; border-width: 0; color: #37a8ab; font-size: 30px;…
-
5
votes1
answer3313
viewsHow to pass parameter for a dialogue with Primefaces?
I’m calling a Dialog via a JSF button with Primefaces 5.1 enabling the Dialog through the onstart="PF('iconeDeProcessamento').show()" button. Can anyone tell if it is possible to pass a parameter to…
-
5
votes1
answer189
viewsProblem with missings in variable weight in complex sampling
The presence of missings in the variable weight of a complex sampling is preventing the R from calculating the mean. Initially I tried the na.rm = TRUE, but it did not work, follows excerpt:…
rasked 9 years, 9 months ago Henrique Pizarro 659 -
5
votes2
answers458
viewsHow do I move the A context session to B context within Tomcat 05
Try two applications made in Java using Tomcat 6 and are in different contexts but one interacts with the other, by being integrated, I need one to be able to pass their session to the other…
-
5
votes1
answer6229
viewsPrevent zoom on smartphone/tablet with Bootstrap 3
I use Bootstrap 3 in my projects and have a question. I would like to know how to prevent the zoom on smartphones and tablets, that zoom that is done with the movement of "tweezers" or with double…
-
5
votes1
answer688
viewsMysql Backup with Event Scheduler
I would like some tip on how to backup a mysql database with Event Scheduler. I only got in my searches, find Event to back up tables individually. I wish I could back up the whole bank, someone can…
-
5
votes1
answer5094
viewsSetting up Tomcat 7 in Eclipse results in HTTP Status 404
I downloaded the version tar-gz Tomcat 7 and linux manually set the variable CATALINA_HOME entered the command $CATALINA_HOME/bin/startup.sh and I stopped http://localhost:8080/, worked normally…
-
5
votes2
answers411
viewsIs there any way to create a moip account through moip’s api?
I’m developing a system of Marketplace and each seller needs to have a MOIP account to receive sales. As these sellers are very lay I thought about automating this so that they do not need to create…
-
5
votes3
answers540
viewsColo allocate a memory based on the size the user typed
How can I get it right after the user enters a string the program counts the number x of characters of this and allocate X bytes to it? I am not able to do it, I tried for example to make after the…
-
5
votes5
answers25936
viewsHow to pass a list of values to a Stored Procedure?
I’m creating a stored Procedure in SQL Server 2008 R2 and would like to pass a list of values per parameter, for example: Table produto ---------------- | id | nome | | 1 | maçã | | 2 | pera | | 3 |…
-
5
votes2
answers887
viewsCheck if variable has been set
How do I check if a variable has been set? The #ifndef can be used for this? Plainer: #include <iostream> int getNumber() { if (check) { check = false; return 10; } else { bool check = true;…
-
5
votes2
answers5841
viewsStyle quote: "(Author, Date)" to "Author (Date)"
I’m using abntcite. I would like to know how to change the style of just a few quotes from (Autor, Data) for Autor (Data). I tried using \citeauthor{chave}, but it didn’t work. Thank you.…
latexasked 9 years, 10 months ago samuel.nascimento.junior 51 -
5
votes2
answers1147
viewsDifferences and use of RMI, Socket and JPA
I am new in java and would like a help to understand better RMI, Socket and the JPA, and better understand their utilities and when applied, because I don’t see much to choose between them. I did a…
-
5
votes3
answers4561
viewsValidate Datetime on the client
I have a model with a property like DateTime: [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd/MM/yyyy}")] [DataType(DataType.Date, ErrorMessage="Data em formato inválido")]…
-
5
votes1
answer1258
viewsHow do I place a Password field in a Messagebox?
How to enter a field that I can put a password into MessageBox. I could call one form, but wanted something simpler and faster, I would like that when I click on a button it provides a field to put…
-
5
votes1
answer276
viewsHow to use Format: Webgrid?
I am developing with MVC, and I have the List view [...] var columns = new WebGridColumn[] { grid.Column("Id"), grid.Column("Descricao"), grid.Column("UsuarioModificacao"),…
-
5
votes3
answers116
views -
5
votes1
answer886
viewsChange url of pages with ajax and click on another browser
I have the following problem, I am developing a web application in java and I would like to know how to change the URL of a page when I click on a menu link. For example: Access a site…
-
5
votes1
answer147
viewsPersisting all data as string is a problem?
Is there any problem in storing all the information of an application like string in the database? Independent of the application, SGDB, the programming language used, etc. I ask more for data…
-
5
votes2
answers2312
viewsScan the machine/server using php
I am creating a system report, I honestly did not know that PHP did this, I researched and I found that I did, but I found no useful explanation, I just found PHP SYS INFO as a reference. When I say…
-
5
votes1
answer805
viewsHow to simulate concurrent traffic/access arbitrarily in Apache?
I am using Easyphp 14.1 Devserver, which comes with`Apache 2.4.7/Mysql 5.6.15. I am willing to simulate high traffic and concurrent access to observe the performance and behavior of my site under…
-
5
votes1
answer17770
viewsAlign Submit button along with Bootstrap input
I have the following code that uses bootstrap 3 consisting of an input and a Submit button. Currently the button is below the input, but I want it to be aligned laterally with the input. I have seen…
twitter-bootstrapasked 9 years, 10 months ago Ricardo 14,521 -
5
votes1
answer781
viewsHow to save data to a global array
I am studying PHP, and so far I have developed a small system that "mounts" the site views and etc. But I came across an extremely annoying problem that I can’t solve. I need a function to show the…
-
5
votes4
answers1841
viewsDoes the order of the WHERE clauses interfere with performance?
I recently ran some tests on a database with a query using two Where AND clauses. I noticed that there was a significant difference using clause A before clause B and vice versa. Intuitively, it…
-
5
votes1
answer236
viewsMonitoring REST API status
I’m learning and trying to solve a POST case request where a dispatch of a body well wide to be processed by API and the return is a job ID to access the result. It turns out that the time it takes…
-
5
votes1
answer67
viewsHow to pass argument to Object prototyped with prototype?
With this of to do this: function Biscoito(sabor,marca,preco) { this.sabor = sabor; this.rodas = marca; this.preco = preco; this.mostrarAtributos = function(){ return sabor + ", " + marca + ", " +…
-
5
votes1
answer118
viewsDistinguish forms within PHP
There is a way to distinguish forms within PHP, since I want every form to be sent to the same function as it will be in charge of passing the $_GET the proper function capable of verifying the…
-
5
votes1
answer1334
viewsHow to create a window without using the GUI builder?
I’m starting to study C# and just like in Java, Ides provide resources that make it possible to build Guis easily by dragging components. The netbeans has a powerful construction tool where it is…
-
5
votes1
answer9108
viewsHow do I update Github repository after changing files locally in Git?
After I created a repository on Github and uploaded some files to that repository, I had to make some changes to the file, made the commits, but I don’t know how to send these changes to Github. How…
-
5
votes1
answer4812
viewsComma calculation in PHP
Need to multiply the value received from post form Ex: $height * $width * 45; So far so good, but if the user type a value with comma, the sum does not happen. I need the sum to happen both ways,…
-
5
votes2
answers1341
viewsHow to make a menu that has a geometric figure in the center and is responsive?
So, I’m a beginner in Web Design, and I’m having some problems with css on a site that I’m developing. I have to make a fixed menu, which is nothing more than a normal bar, but which has a figure of…
-
5
votes2
answers639
viewsHow to get all paths of a Jtree?
How can I get all the paths of a JTree including the nodes which have parents other than root? root exemplo1 exemplo1.1 exemplo2 exemplo2.1 If I do something like that: for(int i = 0; i<…
-
5
votes2
answers3756
viewsHow to save the path of an image in the Database?
I’m using JDBC and picking up an image to save in the database. However I want to save the image in the hard drive and save in the database only the way (path) hers. I wanted to know which is the…
-
5
votes1
answer1381
viewsCount string characters
I am counting the characters of a string in PHP. The content of the string is: 10,12,12,22,33. I want to percolate to print one by one and with an " n". The problem is that I use strlen, and it…
-
5
votes1
answer324
viewsTwitter Bootstrap: Set specific CSS rule for different sizes
I would like to know how to declare a value to a CSS property according to browser resolution in Bootstrap. Example: I want an edge to be displayed only on smartphones or very small resolutions…
-
5
votes2
answers705
viewsHow to calculate hash?
How do I calculate the hash of a torrent file with PHP? I’ve used the class BEncoded and it worked, but I wanted to know how it works.
-
5
votes2
answers9964
viewsPivot dynamic columns
I need to display this: Thus: Following the instructions of the links s: Use PIVOT operator without aggregation I cannot place a subquery inside the IN in the PIVOT Dynamic pivot with SQL Server I…
-
5
votes5
answers24461
viewsUsing jQuery Validation Engine and CPF validation
I am using jQuery Validation Engine with translation file for English. I added the following line to Javascript: "cpf": { "regex": /^\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2}$/, "alertText": "* CPF…
-
5
votes2
answers814
viewsSQL function that applies to each row of the column
We work with several tables that contain a date field, sometimes we need to separate the date string into 3 columns (day/month/year). I made a function where you pass the date string and it returns…
-
5
votes2
answers2907
viewsLimit scrollbar according to div size
Is there any way to limit the barra de rolagem page according to the size (height) of a div? Let’s say I have a website like any other, but when opening one box floating with a height of 1000px, I…
-
5
votes1
answer422
viewsLess should be compiled yet in development?
My doubt arose after read this question and its answers. Many Ides provide ways to compile LESS code still in development. In Netbeans, for example, it is possible to configure forever the code…
lessasked 9 years, 10 months ago Renan Gomes 19,011 -
5
votes2
answers1610
viewsAndroid with PHP Web Service
Someone has an example of what it takes to recover data from an external database without using JDBC ?
-
5
votes5
answers45344
viewsAccess website on local network through my Android phone
I made a site in PHP and Mysql responsive and would like to access it on my Android phone by localhost, I know I have to put my IP on browser but when I send access it appears the following error:…
-
5
votes2
answers5888
viewsTime calculation based on GMT and daylight saving time
I have a problem where I need to calculate the time in a certain place in the world. The calculation should happen and the only information I have at hand is GMT of the site. EX: -1, 2, -3, etc. I…