Most voted questions
150,413 questions
Sort by count of
-
5
votes1
answer322
viewsSearch field add product to cart
When adding some product in my shopping cart the search field of the site does not appear and I can’t identify why, I was eliminating what I could from the files .css that I have and I still…
cssasked 9 years, 7 months ago adventistapr 5,498 -
5
votes1
answer1083
viewsSend email with signature using an image
Hello! I have a function in a file of a wordpress site that fires a confirmation email when a person fills in a form. However I would like to put an image as a signature of this email. but when I…
-
5
votes3
answers389
viewsCompiler error when trying to reset vector
Compilers error when I try to reset an array with the command vetor[10] = {0}; And he only makes a mistake in that line because I also used it in the assignment int vetor[10] = {0} and there does…
-
5
votes2
answers11135
viewsException vs Runtimeexception, when using one or the other?
I was with that doubt, and when I was made aware of it another came to me, which I would like to be clarified. What’s the difference between Exception and RuntimeException? When to use Exception or…
-
5
votes1
answer1927
viewsBuild GUI for Windows without using Windows API
I have been searching the internet for a way to build graphical interfaces for windows without necessarily using Windows API. I program in C# and for this, I have as solution WPF. However, I could…
-
5
votes1
answer170
viewsHow is the Linux kernel or programs written in C tested?
When we use Java, we use Junit to test codes. But codes written in C, such as kernel Linux, how it is tested?
-
5
votes1
answer2771
viewsHow to get computer information with C#?
As information of the computer where the C#application is running, such as computer name, IP, status of the firewall, if you have antivirus installed, if antivirus is active, etc.
-
5
votes2
answers390
viewsWhy can’t an anonymous method be assigned to a var or Dynamic?
The following code: var mostra = delegate(string x) { Console.WriteLine(x); }; mostra("teste"); The . Net should not identify the var as a Action<string>? And the same for dynamic?…
-
5
votes3
answers1828
viewsFormat Strings to RG
How can I format this String: 12345678x for this: 12,345,678-X ? I tried to use the String.Format but I couldn’t. Solved: public string RgFormat(object rg) { string strRg = rg.ToString(); return…
-
5
votes2
answers781
viewsDelete all console logs
there is some way to delete all logs from the console and start again, like I inserted several logs there using console.log, but I want to remove all of them at once and start again by inserting…
javascriptasked 9 years, 7 months ago Vinícius Lara 3,750 -
5
votes3
answers11265
viewsSessions in JS or jQuery
Is there any way to use js or jquery sessions? I’d like to do something similar to php sessions.
-
5
votes2
answers832
viewsHow to align text in a "mobile" menu using the "select" tag
I have a website (structuraonline.com.br) Responsive and when I access the menu on a PC simulating a mobile device the text is aligned to the center but when accessing using a mobile device itself…
-
5
votes2
answers620
viewsHow to smooth a curve and define ylim for a given function using ggplot2?
I got the following graph with the curve function: f1 <- function(x){x^4 - 6*(x^2)} curve(f1, xlim = c(-3, 3), ylim= c(-10, 5), ylab = expression(x^4 - 6*(x^2))) However, I would like to use the…
-
5
votes2
answers19768
viewsHow to print a page directly, without browser dialog box, using Javascript?
How to print, that is, send a page directly to physical print, without displaying the browser dialog box before? I see many examples on the internet but everyone asks for print confirmation.…
-
5
votes2
answers116
viewsHow to make readable the code that uses String properties?
I have a string that uses parts of another string, how to make this code more "clean"? Since it is very difficult to understand. String sessionHash = dirPath.substring(dirPath.substring(0,…
-
5
votes2
answers1430
viewsCopy files from one remote to another using GIT
I have two configured remotes, origin (Heroku repository) and github (github repository). In my local repository I made several changes but I gave the "push" only in origin, leaving github without…
-
5
votes1
answer10841
viewsAngularjs Difference ng-show and ng-if
What is the difference between using ng-if and ng-show/ng-Hide ?
angularjsasked 9 years, 7 months ago Letticia Nicoli 304 -
5
votes1
answer1211
viewsHow to include a jar when running a Java file per command line
Every time I run the program I need to call a specific library, which in this case is /home/usuario/Programas/weka-x-x-x/weka.jar, but every time I run the program, I have to include the following…
-
5
votes1
answer858
viewsHow to work with environment variables?
I am developing an application that works with files (save and upload) and have to work with system variables to determine where to save these files. My question is: Is there any way to use…
-
5
votes3
answers18417
viewsHow to catch the child element
I’m trying to get the value of the plan by clicking the button. html <div class="price-button"> <input type='hidden' name='plano' value='Plano Padrão' /> <button type="button"…
-
5
votes5
answers4008
viewsRegex take from one point to the other within a text
I have the following text:: From: .... blabla bla Message: blablabalab //linha em branco From: .... blabla bla Message: blablabalab //linha em Branco From: .... blabla bla Message: blablabalab How…
-
5
votes4
answers199
viewsProblem accessing array element
I have a problem in the function below that truncates all words to have at most N characters. For example: if the string "freedom, equality and fraternity" means the invocation of truncW(t,4) should…
-
5
votes1
answer148
viewsHow do I start Maps in a specific place?
How do I make the App, when opening Google Maps, zoom in on a specific place (for example, a specific coordinate)? The codes of the demo it shows ALL continents when initializing being necessary to…
-
5
votes1
answer224
viewsHow to merge into a file already minified with Grunt-contrib-uglify
Here’s the situation, I’m using the Grunt-contrib-uglify to minify my project’s javascript into a single file, the problem is that one of these files is already minified, and the uglify does not add…
-
5
votes2
answers707
viewsMysql to Python 3 connector
I’m doing a project with Django and Python 3 but I can’t find the appropriate Mysql connector. The django.db.backends.mysql works, but only for Python 2, and I wanted to avoid using this version. On…
-
5
votes1
answer11274
viewsHow to insert data into two tables at the same time?
I need to make an insertion as follows: I have two tables TABELA 1 and TABELA 2 and a cadre form. This form has three inputs: input 1, input 2, input 3 The input 1 shall be inserted into TABELA 1.…
-
5
votes2
answers2975
viewsCheck if 'Allow dummy locations' is enabled
I have an app that needs the "Allow Dummy Locations" option of the standard Gallery app enabled to work. How to check if it is enabled? How to send the user to this item of my case is disabled? This…
androidasked 9 years, 7 months ago felipe.rce 1,969 -
5
votes3
answers632
viewsReplacement for TAG <center>
I have the following form: .table { max-width: 500px; border-collapse: collapse; font-size: 12; width: 320px; text-align: center; box-shadow: 2px 2px 2px 2px #aaa; } .table tr td{ padding: 8px 8px…
-
5
votes2
answers475
viewsIs it feasible to use more than one Dbcontext for in the same database?
I’m developing a new application on ASP.NET MVC and searching saw some examples of applications with more than one context. Let’s say my application has several different modules, but all entities…
-
5
votes1
answer2701
viewsJavascript: how to count the characters of an html text?
The problem: I have formatted html text and I need to count how many characters (ringtones for journalists) I have. I will use Javascript. Some solutions came to mind, but as this will be done…
-
5
votes1
answer1765
viewsPosition arrow from a dropdown menu correctly
I added an arrow to my dropdown menus from Bootstrap 3, but I’m having trouble positioning Arrow correctly below the dropdown-toggle, below is a demo image: On the left is my current scenario, with…
-
5
votes1
answer1536
viewsOperation with Delphi hours
I was manipulating hours in Delphi and I came across the following situation: CASE 1 horafinal := strtotime('08:00'); horaInicial := strtotime('17:00'); horaInicial := horaInicial - horafinal;…
-
5
votes2
answers2783
viewsAdd new file to commit
How do I add new files to a commit already done in Git without creating a new commit? If you have already pushed to the remote server, like "re-commit"?
-
5
votes2
answers699
viewsHow to send a SOAP in C?
How do I send a C SOAP? I have a Web Service that consumes SOAP and have to send that SOAP in C. How can I do that? Is there an API or I have to create a library?
-
5
votes1
answer1487
viewsReuse function in 2 different controllers
I have the same function in 2 different controllers. This is not good practice because it will complicate code maintenance. How do I reuse the same code on different controllers? Using "Factory",…
angularjsasked 9 years, 7 months ago Filipe Moraes 8,737 -
5
votes3
answers596
viewsDelphi 7 apps in windows 8
I installed Delphi 7 on my Windows 7, but we know that by default Delphi 7 comes with Indy 9. It’s OK for me because I only use the idhttp.post and the get via http. The doubts would be: That…
-
5
votes2
answers880
viewsDuplicate value in table. How to remove?
I inserted some TSE tables in my database and have duplicate column values SQ_CANDIDATO representing the image above. How can I do a maintenance with sql who will remove ALL the duplicated values…
-
5
votes2
answers4578
viewsAndroid Toolbar: center title
I’m trying to center the title of mine Toolbar but I can’t. I’ve tried to use Theme (did not work) and I have tried in Java code (however in Java code as I am using the API 13, can’t use the…
-
5
votes1
answer214
viewsHow to use qtwebkit-plugins in my project?
Qtwebkit-plugins is a library that provides functionalities for QWebView, as SpellCheck/Corretor ortografico and Notification Web API. Read about in: SpellCheck Notification Web API I tried to…
-
5
votes2
answers2743
viewsHow do I set a private property in Python? And is there a protected property?
I come from PHP. In it, when we want to define a property of a class as private we add the keyword private in his statement. Example: class StackOverflow extends StackExchange { private $language =…
-
5
votes2
answers139
viewsUse date or class to query DOM elements
Here I am needing a little help to get a broader view on this subject. As a rule I usually avoid using class to query elements in HTML, I end up using a custom data property. in many cases I end up…
-
5
votes3
answers9803
viewsPassing array as a function parameter
I want to receive the array containing numbers 3, 15 and 23 and array output display double. Only it is giving the following error: Warning: Missing argument 1 for criando_array(), called in…
-
5
votes3
answers697
viewsNoclassdeffounderror
When I try to open the program it does not find the nativehook class, but it is in the classpath Error: C:\Users\Paulo\Desktop>java -jar AutoClick.jar Exception in thread "main"…
-
5
votes1
answer6204
viewsHow to increase the font size of an Edittext according to the screen size?
I would like the font size to be proportional to the screen size of the device running the application.
-
5
votes2
answers1861
viewsHow to refresh page and not send duplicate data to PHP database?
I would like to know if anyone has an example or can explain to me in the following question: In case the user refreshes the page, after sending the first form, the data is not sent again to Mysql.…
-
5
votes1
answer229
viewsLoading old libraries to Requirejs
What’s the best way to set up old libraries that weren’t built using the AMD specification? I refer to libraries that have not been defined with instruction defines(). In this case, I am trying to…
-
5
votes1
answer1201
viewsProblem connecting multiple Codeigniter databases
I have an application where it connects to multiple databases, initially I use the file database settings database php.. Only when I connect to another bank, it still loads the file settings…
-
5
votes2
answers22077
viewsGit does not send commits to server. Error: Everything up-to-date
When giving the command: git push origin master git does not send the information and gives the following error: Everything up-to-date I realized that the master of my local repository is not…
-
5
votes2
answers2457
views301 redirect outside the domain with htaccess
I own a domain www.dominio1.com.br that points to the root of my site and another domain www.dominio2.com.br configured as redirector to www.dominio1.com.br/novo. However, I would like the user to…
-
5
votes2
answers2465
viewsWrong time on Mongodb
When I put in the schema mongodb: created: { type: Date, default: Date.now } The time is with a difference of 3 hours more. How can I fix this?