Most voted questions
150,413 questions
Sort by count of
-
7
votes1
answer859
viewsTransfer ownership of a "Property" from Google Analytics?
The documentation on the ownership of Google Analytics accounts does not clarify whether it is possible to transfer ownership of certain Property user A to user B. I found this answer on SOEN given…
-
7
votes6
answers5683
viewsCopy Wordpress database without using Phpmyadmin
I need to migrate a Wordpress site from one server to another. One of the necessary steps is to export the database used on the current site, edit some data if necessary (such as the site address…
-
7
votes3
answers3604
viewsHow to make a background of an element in SVG in a decent way?
I develop websites that have the company logo on SVG, but wanted to know how to test easily or force to replace the SVG when the browser does not support. So I could have done the logo on PNG to…
-
7
votes1
answer146
viewsIs there a specific type for passwords other than String in . Net?
I see very commonly the use of strings to store passwords in the program memory, not only on . Net, but in all the programming languages I’ve used. At first, I don’t see a problem in it. But as I…
-
7
votes4
answers4043
viewsBest practices in using BD connections via Entity Framework
When defining the context class in the Entity Framework (example): public class Context : DbContext { public DbSet<Usuario> Usuarios { get; set; } public DbSet<Categoria> Categorias {…
-
7
votes3
answers8251
viewsUsing jQuery Validation Engine and CNPJ validation
I am using the jQuery Validation Engine with this file of translations into Portuguese. I added in Javascript the following line: "cnpj": { "regex": /^\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2}$/,…
-
7
votes2
answers355
viewsMaximize Solution: Sublist Construction Meeting Limit
Having a set of n-values, I need to divide these items into subsets that do not exceed the value (sum of all items) stipulated and assure me that the formation of the set is as close as possible to…
-
7
votes8
answers5526
viewsHow to make a DIV fill all available width
I have two Ivs, one with a fixed width, 250px; which is on the left, will be a fixed menu, always on the left. And another div to the right that I want to make it 100%, whenever the user handle the…
-
7
votes2
answers761
viewsHow to create and remove aliases in GIT
I would like to know the commands to create an alias, I learned that I can shorten my commands and make it faster and more productive, but I still don’t know how to do this. Does anyone know the…
-
7
votes3
answers3287
viewsHow to put the regression equation on a graph?
On another question saw how to put the regression line on a graph. But, how to put the regression equation in the graph? For example: Or…
-
7
votes2
answers6229
viewsChange image src through jquery
I’m using the plugin Animated Responsive Image Grid and I want to change the image src through Javascript/Jquery. Html code: <div id="ri-grid" class="ri-grid ri-grid-size-1 ri-shadow">…
-
7
votes2
answers889
viewsIs it possible to disable a certain action of an HTML element with a certain class via jQuery?
On my startup I know that all links should block, using the plugin jquery-blockui, the screen to avoid multiple clicks of impatient user avoiding multiple and unnecessary server requests.…
jquery jquery-ui jquery-blockui jquery-ui-multiselectasked 10 years, 8 months ago Philippe Gioseffi 3,202 -
7
votes3
answers476
viewsUnmounting a USB Pen-Drive via code
I wonder how I can do to disassemble a removable drive(Pen-Drive) via c code#.
-
7
votes3
answers6519
viewsHow to get a difference between two dates?
Let’s just say I have an initial date equal to 30/01/2014 10:00 and a final date equal to 02/02/2014 10:00. I would like to know if it is possible to obtain a grid containing these results: If…
-
7
votes1
answer4682
viewsHow to create a Plot with 2 superimposed histograms?
Suppose I have the following data from 2 distinct groups. set.seed(1) grupo1<-rnorm(400,6,2) grupo2<-rnorm(200,8,2) How I make a histogram of the two groups on the same screen, identifying…
-
7
votes4
answers2032
viewsValidation of forms with javascript
I’m having trouble validating a form with pure javascript, when it arrives in the field of the type "checkbox" always returns false, even with "checked = true". Why is this happening? How can I…
javascriptasked 10 years, 8 months ago Odair 1,653 -
7
votes2
answers241
viewsHow to specify a CSS class for text that breaks line in an HTML element?
Most of the time I work with texts within elements HTML, I use a resource in CSS called line-height. Suppose the height of a specific element is 50px, so I put the line-height with 50px also so that…
-
7
votes1
answer658
viewsHow to generate Jlabel or Jtextfield at mouse click?
I wonder if there is a way to generate a JLabel or JTextField at the position where you click, on a JPanel or a JFrame. It is possible?…
-
7
votes4
answers1531
viewsList all Roles in Checkbox and mark the roles that the User has
I am creating an Asp.net MVC 4 User Management System with two Simple Tables. Users and Roles. I can create users by selecting the roles they will own. At the time of Edit I’m trying to List all the…
-
7
votes3
answers5189
viewsHow to convert a string to const char *?
I’m trying to make an audio player (an mp3 player) using the library SDL_mixer. The problem is that I have a function that returns a string (a music directory) that I need to pass this string as an…
-
7
votes2
answers1209
viewsUse <Section> tag inside a <aside>
My appointment is as follows: <aside> <div class="last-news"> Conteudo </div> <div class="social"> Conteudo </div> <div class="links"> Conteudo </div>…
-
7
votes3
answers7402
viewsLoad refresh-free page post with AJAX and JQUERY
I am in need of a Wordpress help as I would like to load posts without refresh or reload page. I have a menu that returns posts from a certain category in a <div> left and would like to be…
-
7
votes2
answers20956
viewsHow do I get changes from a specific branch/branch of a remote repository in GIT?
I created a new branch/branch on my local machine. So I made a commit and a push to the remote repository in Bitbucket. I checked in Bitbucket that the new branch/branch was successfully created.…
gitasked 10 years, 8 months ago morphinduction 473 -
7
votes3
answers6710
viewsCheckboxlist on ASP.NET MVC
I need to create a checkboxlist on my page using MVC (Razor). I noticed that there is no Html helper like Html.Checkboxlistfor or anything like that. Someone has some example of how I could do that.…
-
7
votes2
answers1761
viewsExchange impact - Myisam for Innodb
In a medium database (~2GB) Mysql that is all with the Myisam engine. Performing the conversion to Innodb, what will be the impact on my system? I can simply convert by phpMyAdmin, for example?…
-
7
votes6
answers31940
viewsHow to remove a data.frame column in R?
Suppose a generic date.frame, such as: set.seed(1) dados <- data.frame(y=rnorm(100), x= rnorm(100), z=rnorm(100), w=rnorm(100)) head(dados) y x z w 1 -0.6264538 -0.62036668 0.4094018 0.8936737 2…
rasked 10 years, 8 months ago Carlos Cinelli 16,826 -
7
votes2
answers394
viewsGet inverse relationship with Laravel
I am creating a forum system that is divided by sections. Each section contains categories, each category contains topics. Ex: Administração _ |_Regras da do fórum |_Sugestões e críticas…
-
7
votes5
answers140
viewsIs it possible to scroll to git bash?
I just installed the git and I chose to install the git bash (command line tool) together, to use all commands of the git for him. However, I noticed that mouse scrolling does not work at this…
-
7
votes2
answers2496
viewsHow to know when the user opened an application?
How do I check, while my program is running, if a particular software is opened by the user?
-
7
votes4
answers27486
viewsHow to change the background with javascript?
I have a function in javascript that returns the day and time for text, for insertion in html, how can I add styles to this text, should I do inside javascript or even in html function…
-
7
votes3
answers162
viewsUse . on() instead of . bind() in Cakephp’s Jshelper
When I write Ajax with Cakephp’s Jshelper, I write something like this $this->Js->get('#searchCity')->event( 'click', $this->Js->request( 'http://api.geonames.org/searchJSON', array(…
-
7
votes2
answers362
viewsError using File.Delete method within Controller
I’m in trouble in my controller the moment I start a file deletion routine. I am using the method File.Delete(), but he simply does not recognize and returns me the following warning: Cannot Choose…
-
7
votes1
answer2547
viewsWhen to use void* and auto*?
C++11 provided us with the type auto (Automatic). It can transfer type for the first time. But before it, people used to use the void*, where you referenced on the pointer. I still use void*…
-
7
votes2
answers439
viewsJquery - Problem with events Mouseenter() & Mouseleave()
Situation: I have a menu, and I need that when an event occurs hover, he displays a series of information from the respective menu When the mouse goes to another menu, the displayed information has…
-
7
votes1
answer378
viewsHow to use escape character in CSS?
I’m trying to insert a special character into :before of my links so that they stay in the following way: This is the link The problem is that this character is written in hexadecimal and when I try…
-
7
votes2
answers3467
viewsHow to add two arrays of integers with pointer arithmetic?
I am doing an exercise where I pass by parameter two integer arrays already defined by the user. I need now, in a third array, to store the sum of the two received arrays, at the same positions,…
-
7
votes2
answers4248
viewsHow to adjust the height of the div according to the text?
I created a div with a defined width, but when I insert a very large word the text keeps coming out of the div, how to continue to word at the bottom line?
-
7
votes1
answer315
viewsDjango 'bool' Object has no attribute '_Committed'
I have a field of sorts FileField and when I try to delete the contents of it, returns me this error message: bool' Object has no attribute '_Committed' To make the upload works normally, the…
-
7
votes5
answers2130
viewsHow to add a class to a <li> by clicking on it, leaving only it with this class?
For example: I have more than one ul with their li; If I click on a li of the first ul she has to add a class; If I click on a li of the second ul, she adds that same class. Only that does not…
-
7
votes4
answers8200
viewsHow to send text to the printer with PHP and Javascript?
I need to print a text that is not necessarily contained in the html document on a client-installed printer, I need to open that window to select printers and so on and send the print. // EDIT In…
-
7
votes1
answer9290
viewsHow do I remove a staging area file in git?
I accidentally added all the files to the staging area of git with the "git add." , how to remove a file from staging area so it is not commited?
-
7
votes6
answers53653
viewsHow to change PATH in Windows
I wonder how I can change the variable PATH in the Windows environment. I am a linux user but I know that windows also allows the use of this environment variable to find its executables.…
-
7
votes1
answer557
viewsLimit payment options to Paypal accounts only (credit card not)
I’m doing the Paypal Express Checkout API integration. When the paying customer actually goes to the Paypal website to enter his or her details in order to make the payment, you are presented with…
-
7
votes5
answers1446
viewsIs it possible to include elements in the DOM after it is loaded and ready?
I have a table that, depending on the amount of an X value, inserts a set of attributes at the bottom of the page (fields). These elements have events assigned to them. But that’s not the point.…
-
7
votes4
answers298
viewsHow to implement an Objectset wrapper that works with Linqtoentities?
I need to create a wrapper for ObjectSet to create a centralized access control. The goal is to implement CA without making changes to existing queries in the system, which in this case are spread…
-
7
votes1
answer356
viewsEnterprise authorization for app submission
I need to submit an app to an Apple store, which I did as a freelancer for a company. The app features photos and descriptions of the company and its customers. I was told that I need to send, along…
-
7
votes1
answer353
viewsWhy am I losing the values of <input> when opening and closing a <iframe> using Javascript?
Context: I have an application, which uses php+html+css+javascript(with jquery). On it I have a page called principal.php containing an iframe: <iframe src=pedido.php/> inside calling the…
-
7
votes1
answer1225
viewsVBA - Backpack problem
In excel I have the following table | Produtos | Preço | | Produto A | 100 | | Produto B | 250 | | Produto C | 200 | | Produto D | 800 | | Produto E | 560 | | Produto F | 970 | ... And I would like…
-
7
votes3
answers13134
viewsHow to make a dowload inline file available in html?
I wanted to create a link to a dowload in my HTML, but I didn’t want to save this content in a separate file, but in the html itself. In images you can do something like this <img alt="Embedded…
htmlasked 10 years, 8 months ago Jader Dias 223 -
7
votes1
answer1549
viewsMysql query equal to one value or another
I’m having a doubt in a query mysql. I have this query select cor from cores where cor in('verde','vermelho'); The problem is that I want the green, and If there is no green I want the red. but not…