Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer967
viewsWebrtc Javascript with Java/PHP server
Someone ai has some example or documentation, of how to create a Webrtc client (browser), using a Java or PHP server to make the "Handshake" between both? I cannot use Node.js, and the documentation…
-
4
votes2
answers4861
viewsHow to order a JSON in descending order?
I have a JSON value that I want to order it in descending order (I think in the example will give to understand). Example: var json = { 'um': { 'cont': '5' }, 'dois': { 'cont': '10' } ... }; So in…
-
4
votes2
answers1874
viewsHow to put buttons/titles with different design/style in C#?
In C# is there any way to put for example buttons with a different design, or the title with a different style? I want to put my program more "Fancy".
-
4
votes1
answer743
viewsBy what means does Android automatically update the calendar?
I am developing an app that is connected on a local network but without internet. I am using an APC 8750 card http://apc.io/products/8750a no battery, ie when off loses the calendar. By which means…
-
4
votes2
answers632
viewsAlternative to JPA Implementation
I am using JPA in a project, with the Hibernate implementation, still using Java 7. And constantly Permgen runs out of space. I know it’s because of Hibernate, how new I am in this java technology.…
-
4
votes8
answers1132
viewsCan you use a variable above when it is declared below?
I have some includes on a PHP page, with inclusion of other pages for user friendly URL, etc. I thought of using Global variables and even constant, but it’s not working. Does anyone know if there…
phpasked 10 years, 8 months ago Tiago Boeing 830 -
4
votes1
answer4059
viewsHow to run the current line in Sublime Text 2? Or, IDE that allows running the current line in Python
In the rstudio (IDE to r) it is possible to run the current line instead of the entire file using ctrl (or cmd) + enter. This is very useful for when you want to test just one piece of code separate…
-
4
votes3
answers210
viewstimestamp does not indicate the correct date
I’m working on a CMS for display of the articles, my problem is with the function strtotime() does not indicate the correct date, always indicates 1 March 1970. The Row (phpMyAdmin) of one of…
-
4
votes1
answer1449
viewsError inserting into Hibernate database
How do I insert the Product object into the database that is composed of an Ingredient object that already exists in the database, without duplicating the Ingredient object in the database. If I…
-
4
votes1
answer437
viewsPointers with methods, where am I wrong?
Creating a class that will have two methods one assign another to print vectors with public and then call this method no main. I was able to make it this far with the method baby Steps. Where I’m…
-
4
votes1
answer136
viewsVestige of mouse click
I need a script, that on an entire page where a click appears a ball in the place where it was clicked, but that after a couple of seconds disappeared. It doesn’t need to be ripples, just something…
-
4
votes1
answer877
viewsInput in Sublime Text
I am using Sublime Text to study python, but it does not support input. When running the following code with the sublime build: velocidade = int(input("Digite a velocidade: ")) I get the following…
-
4
votes1
answer1853
viewsHow to import/export categories in Magento?
I am trying to import products and categories from one store to another, but in Malta there is only the option to export only products and customers. Is there any way to do that?
-
4
votes3
answers2600
viewsAlign text within <select> in Firefox
I’m trying to line up the text inside a <select> but it is only aligned (by default) using Chrome and IE11 browsers (amazingly enough), only in FF(v27.0.1) that the text is at the top. I’ve…
-
4
votes3
answers16948
viewsMysql SELECT searching for value in another table
I have 2 tables: paginas and paginas_categorias On the table paginas I have a column called id_categoria, which would be the corresponding id of the table paginas_categorias. Using this id, I wanted…
mysqlasked 10 years, 8 months ago Gustavo Piucco 2,401 -
4
votes2
answers231
viewsRemoving comments in the HTML sent by the server
We all know the good old HTML comments: <!-- Oi, eu sou o Goku! --> The point is: there is some way to delete HTML comments that the server sends to the client? I think such configuration is…
-
4
votes2
answers2530
viewsMaven - Configuring the Mainclass
Problem: When I create a JAR for eclipse it works smoothly, but I’m trying to enjoy the JAR that the Maven is creating and I realized that it does not perform, because my class main is not in the…
-
4
votes1
answer1871
viewsI am unable to make the value of a property selected using the Razor Helper Dropdownlistfor
Dear Ones, in my ASP.NET MVC 5 application I am using . Net 4.5 I am unable to make the option to be selected for a certain property. Example of my class: public class Funcionario {…
-
4
votes4
answers2220
viewsHow to select "1" or "2" depending on the column value, in PL/SQL?
I have a column in my TIPOCLIENTE table. It shows CPF for Individuals and CNPJ for Legal Entities. I wish at the time of SELECT come "1" to CPF and "2" to CNPJ. How can I do this?…
-
4
votes4
answers1914
viewsCheck if a file exists on the remote machine via FTP in PHP
How can I check if a file exists on the remote machine using PHP via FTP (English) in order to act accordingly? <?php $ficheiro = 'public_html/banana.xml'; $id_ligacao =…
-
4
votes2
answers2520
viewsHow to create an autorun?
I made a program by Visual Studio and I’m trying to create an autorun to run it, however, the executable of the program is in \programa\programa\bin\Debug\programa.exe and autorun should be in the…
-
4
votes1
answer491
viewsFind isolated components in graph
What is the best algorithm for finding isolated components in a graph? That is, components that do not lose information. In this image, the only isolated component is H, because it only receives…
-
4
votes2
answers247
viewsStrange redirection
Even without the . htaccess and without the active apache rewriter module if I call meudominio.com.br/page it will search first.html page if it does not find it will fetch.php page. How do I disable…
-
4
votes2
answers1644
viewsConfigure Cakephp to send emails via gmail
I’m trying to set up the cakephp to send emails through gmail, I have already done some research and I have not yet succeeded in the result, someone could help me?…
-
4
votes1
answer985
viewsDynamically add layouts
I created an XML with Linearlayout, in it I have a Spinner and an Edittext. On my screen I have a Linearlayout that should receive this other layout I created. My question is: how to add this custom…
-
4
votes2
answers1930
viewsC# - Path to execution
I am making a Auncher, however I would like to leave the files with a "fixed" path, the Auncher is in the same folder of the file to be started, but I do not know how I could create a "middle way",…
-
4
votes1
answer1070
viewsFirefox and Internet Explorer iframe problems
I have a problem with Firefox and Internet Explorer when using a iframe to upload files to the same page. Chrome works perfectly, but in Firefox and Internet Explorer, when I click link the iframe…
-
4
votes1
answer264
viewsSpecific application of attribute [Childactiononly]
I saw from the ASP.NET MVC documentation that the use of the attribute [ChildActionOnly] prevents the method from being called directly via GET, only through a specific view. Frankly, I don’t…
-
4
votes1
answer112
viewsError while trying to observe the contents of a variable or property of an object in the 2013 VS Bugger
Practically every time I try observe the contents of a variable or property of an object, I get the error below: Function Evaluation disabled because a Previous Function Evaluation timed out. You…
-
4
votes3
answers2237
viewsConstruct string with special characters
I am building PDF’s, and I need to print a string with special characters. I am constructing the string as follows (using iTextSharp): PdfPCell teste = new PdfPCell(new Phrase("<O meu texto>…
-
4
votes4
answers1768
viewsCreate infinite menu with PHP+CSS+JS
I have a menu (vertical) that works as acordion, this in turn, need to open the "children" limitlessly (my problem to be solved, and can not), since it will be a menu for a store. As follows:…
-
4
votes1
answer265
viewsFilter JSON from Facebook Graph Api Feed
The JSON that the Graph API returns from Feed of a page using the address "Graph.facebook.com/ID/feed? access_token=_ACCESS_TOKEN_" displays the Feed complete, but I just wanted the posts made by…
-
4
votes5
answers2014
viewsDisable a Ubmit and Enable only when radio minimum Buttons is selected
I tried to do a function but came out with some strange bugs, it has to be more or less this script, but enable the button only if 5 or more radio Buttons are marked. Remembering that my form is…
-
4
votes1
answer435
viewsUsing BASE64 in Java
Problem: I can’t import the classes BASE64Decoder and BASE64Encoder, there are N code that use them and when I use them everything that is related does not work precisely because they are not found.…
-
4
votes1
answer388
viewsJSON returning <html>
I am returning a JSON from a server using PHP with simple code: <?php $response = array(); $response["success"] = 1; echo json_encode($response); I’m getting the answer through an android app,…
-
4
votes1
answer785
viewsjQuery Masked Input - Is it possible to recover the mask attached to the field?
I’m using jQuery Masked Input Plugin with jQuery Validation Plugin. When a form field loses focus, the validation plugin shows a message, but this is not happening with the fields that are have…
javascript jquery jquery-validate jquery-masked-inputasked 10 years, 8 months ago Philippe Gioseffi 3,202 -
4
votes1
answer5307
viewsHow to work a secure session in PHP using cookies so that the session does not expire when you close your browser?
In PHP, I usually work on user authentication in a restricted area using the variable $_SESSION, but I want to change this method to cookies so that the session does not end when closing the…
-
4
votes3
answers5305
viewsConvert string to utf-8
I’m needing to turn a string into UTF-8 encoding. I’m declaring it this way: $nome = utf8_encode($nome); And yet I can’t find the error. The string appears this way: Consolação…
-
4
votes2
answers625
viewsWeb Api 2 - Routing not working
I created a web service REST using Web Api 2, and in development everything is functional. I am using a small variation of the default route: config.Routes.MapHttpRoute( name: "DefaultApi",…
-
4
votes1
answer751
viewsShell send error message
I have a running cron task that calls a shell script. This sh file backs up the database and saves it to a folder on the server. So far it’s working. I know that at the time of generating the backup…
-
4
votes3
answers491
viewsLogica de Distribuição Igualada
I was wondering if anyone knows any matching distribution algorithms. For example I have 10 spaces and I have 4 a, 2 b, 3 c, 1 d. And I have to distribute these variables within these 10 positions…
algorithmasked 10 years, 8 months ago JunioorCelistre 111 -
4
votes3
answers257
viewsProblem with Jquery UI Slide Left
I’m developing a project and I needed to know how to slide a div to the left. I am currently using: $('#idDiv').toggle('slide', { direction: 'left', distance: 450 }); I wanted mine to div of 500px…
-
4
votes1
answer200
viewsBasic competition in Erlang
Adapted of this issue no stack overflow international, whose answer is my own. The next code was given in a class. We tested the code, but I didn’t really understand how it works. How this code…
-
4
votes2
answers341
viewsGoogle Analytics code
I am learning to use google Analytics and came across a problem. I want to be able to collect demographic data. In google Analytics says that the option is enabled but my code has no support for…
-
4
votes3
answers236
viewsCheck if a div contains a number
I have a paragraph that contains several links, alternating between words or numbers. I need to perform the following check: if the link within the paragraph is any text, it will do nothing with the…
-
4
votes2
answers521
viewsCan I use any programming language in Windows Azure? How?
The Windows Azure website makes it clear and explains how to use multiple programming languages. But still, it doesn’t explain how to use some simpler languages, such as C itself++. I know Amazon…
windows-azureasked 10 years, 8 months ago André Leria 5,047 -
4
votes3
answers3827
viewsHow to scroll infinity with pure javascript?
I’m trying to implement an infinite scroll on my site, like this one, but I’m having trouble making the script that picks up the mouse scrolling event. I tried using this script (below) that I…
-
4
votes3
answers3315
viewsPHP session expires before time
I have a problem with a session time in PHP with Codeigniter. I was using the sessions in the IC and with so many problems I decided to look for a solution to use native sessions with the IC and at…
-
4
votes1
answer455
viewsHow to set time to silent mode
I have a school schedule app and put the option to mute the device during the time stipulated by the user. However there is only the option to enable and disable silent mode, as I can do this…
-
4
votes2
answers234
viewsUpdate on Zend 2
I’m studying Zend Framework 2 and I’m needing a hand to do an update on two tables that are related. Come on. I have the table entries with the fields: id_entrada id_notafiscal and in the rating…