Most voted questions
150,413 questions
Sort by count of
-
5
votes1
answer63
viewsCode is not executed on command line
I have a file teste.php with the following code. <? echo "teste"; ?> When I run the command on the terminal php -f teste.php I receive as output my code: <? echo "teste"; ?> instead of:…
-
5
votes3
answers10282
viewsHow to navigate a children and a div with Javascript?
I need a function that goes through #paicasas and leaves the background of all children "casa1,casa2...". I tried to do it but I know it’s far from right. function apagar(){ for(var i in…
-
5
votes1
answer2184
viewsNfs-e Belo Horizonte XML signature error
I am developing the integration of a system to issue Nfse to Belo Horizonte are happening 2 situations that only with this city that I developed are happening, we have integrated several…
-
5
votes1
answer3364
viewsOffline database on Phonegap app
I’m creating an app with Phonegap and need to consume/manipulate information from an existing Sqlite base within my directory WWW but in 3 days looking for tutorials only found ways to create the…
-
5
votes1
answer20517
viewsCompare two strings in C
Hello, people, I want to compare two strings but the result is not returning what is expected, in this case the index in the function search_name, the error is in the fourth line of the function…
-
5
votes1
answer70
viewsInsert into array, whose parent property value is equal to the property value of the child object
I have an object (Questions) and I want another object (Answers) to be added to it according to a common id. var Perguntas = [ { idPergunta: 13, textoPergunta: "Qual seu nome" , Respostas : [] }, {…
-
5
votes1
answer811
viewsHow do I implement an Apple APNS push notification service?
I own a web service, and would like to create a Push Notification service for an app using Apple APNS without using the third-party service, as I could do this?
-
5
votes3
answers369
viewsStringbuffer.equals and String.equals difference in Java
The behaviour of the method equals class StringBuffer Java is different from equals class String? If yes, how would I overwrite that?…
-
5
votes3
answers2269
viewsWhat is the most efficient way to select items from a table?
Having the following table: | id | name | email | coutry | +----+------+-------+--------+ What shape more efficient (faster) to select ALL the rows of the table knowing that the table may have 1 row…
-
5
votes2
answers2617
viewsHow to list objects of a deteminated class?
For example, let’s say I have a class TConfiguracao. Here constructors and destructors attributes and in some cultures I create several variables of the type Tconfiguracao conf1 :TConfiguracao;…
-
5
votes1
answer535
viewsProblem with ng-click + Angularjs menu
I have a menu that is filled in dynamically: <div ng-controller="menuDinamicoController as vm"> <div ng-show="isAutenticado"> <img src="{{vm.fotoUser}}" id="imagemUsuario"…
-
5
votes1
answer1368
viewsWhen to use vertical-align?
I am aware that in certain cases it is advisable to use this property instead of text-align , margin or position. But I don’t know why or how vertical-align. Besides, how do you use this property?…
-
5
votes2
answers1688
viewsJoin a number of people without repeating the combination with the stipulated maximum
I have N pessoas to form as many meetings as possible. These N pessoas cannot speak to those who have already spoken at other meetings. Each meeting has at most N pessoas. Based on this information…
-
5
votes1
answer2120
viewsInstall a free app on an iPhone without a developer account
Since jailbreak is not prohibited I think I can ask this question here, exists with jailbreak or some other way to install an app developed by me on an iPhone? In case the app is automation that…
-
5
votes1
answer1494
viewsStructure of a database for 'Secret Friend'
I’m creating a secret friend system for the family, where it will be possible to have: Registration of users with their data (ex: Tennis size, shirt, etc...) ; Groups of registered users; Generate a…
-
5
votes2
answers2276
viewsMethods without parameters and with parameters
Declaration methods without parameters: void exemploDeMetodo(){ int i; } Calling methods without parameters: exemploDeMetodo(); If I want to make a method with parameters it’s like? That’s the way…
-
5
votes1
answer5783
viewsConversion of Dates to Mysql database
Hello! Well, I’m using xhtml and primefaces. On my xhtml page, I have a field for date and use the converter to save in the database, I have a problem with the day. If I want to save 30/04/1989 In…
-
5
votes1
answer216
viewsYield does not return data
When calling the method, an HTML component enumerable should be returned. I’m using the HTML Agility Pack to read an HTML file. The same method works as expected when removing the yield and add…
-
5
votes1
answer10356
viewsHow to use the Toolbar widget?
I’ve seen the own documentation of android I’ve done all the steps of other forums and still could not use Toolbar in my screen layout. How I should proceed step by step regarding the implementation…
-
5
votes1
answer438
viewsMark an image with a dot
I have a picture of a map and would like to put dots on it. How to do?
phpasked 10 years ago Rodolfo Oliveira 917 -
5
votes2
answers189
viewsWhy does Netbeans suggest improving the for?
When I was doing this for Netbeans Showcased That Lamp of Tips to Improve Code on the Line of for. The suggestion was to reverse the condition. Follow the code: Before of improvement: for(int j = 0;…
-
5
votes1
answer1306
viewsDynamic menu using Angularjs
I have an application that has a menu at the top and another on the left side. Menu items must be filled with BD data according to access profile. However, the menu is not being rendered when there…
angularjsasked 10 years ago Letticia Nicoli 304 -
5
votes3
answers10734
viewsRecursion to return numbers from 0 to n
I’m trying to make a recursive function that returns the n numbers of 0 until n, my code went like this: #include <stdio.h> int imprimenumeros(int n){ if (n==1) return 1; else return…
-
5
votes2
answers4850
viewsHow to print a text (coupon) via javascript?
I have a commercial web application written in ASP.NET MVC4 with c#, where I need to print a direct sale closing coupon to a non-tax printer (Diebold). Is there any way to send, whether by JS, a…
-
5
votes1
answer1710
viewsConnection error
I am creating a Windows Forms application using C# and am having a problem connecting to SQL Server CE 4.0. The application database is in the folder AppData of the logged-in user. To get the folder…
-
5
votes2
answers2666
viewsBackup in Sqlite database
I need to backup an Android Sqlite database. Ex: I will change device and need to copy the application BD to be loaded on other Android phone. Is there any viable solution? I developed an…
-
5
votes1
answer1497
viewsDynamically manipulating the DOM with jQuery
The system I am currently working requires a lot of AJAX and DOM manipulation, so I started learning (not long ago), jQuery. In the Feature I am currently developing, there is a jQuery plugin called…
-
5
votes1
answer1108
viewsWhy @Html.Checkboxfor returns "true,false"
In the construction of my View, I have a field of the kind: public bool? RegistoGesOleos { get; set; } Who I represent using Razor as: @Html.CheckBoxFor(model => model.RegistoGesOleos.Value) Now…
-
5
votes1
answer380
viewsAdding libs on android with eclipse
I usually take the jar and put it inside the lib folder of my project, but I’ve seen people who do the same thing and add it by "Java Build Path/Add Jars...", it’s different to just put it in the…
-
5
votes1
answer5990
viewsError updating entries in Entity Framework
I have the following code for mapping my application, but when I will try to make a insert gives the following error. An error occurred while updating the Entries. See the Inner Exception for…
entity-frameworkasked 10 years ago Rabelos 161 -
5
votes2
answers273
viewsHow to return different answers with different values in equal Classes?
I have two different values that must return different answers, but the classes are equal, how to solve ? See that the answers are wrong. .Container-Produto{display:block;border:solic 1px #ccc;}…
-
5
votes1
answer1111
viewsAndroid Sqlite data insertion
What is the best way to insert more than 10000 rows of data into a 13-column table using Sqlite Android? I thought of using the ContentValue then: Db.insert(DATABASE_TABLE, null, ContentValue);…
-
5
votes3
answers415
viewsUse PHP variable in JS file
I want to put PHP code in Javascript file, not HTML file. As for example here: document.getElementById('lbljour').innerHTML = "Jour " + date_today; With PHP code would look something like this?…
-
5
votes2
answers17919
viewsRemove and add elements depending on resolution
I wonder how I could remove a navbar a certain resolution? Example: in resolution less than 1024x768 one of navbars disappears and another navbar turns the button of toogle? This is done by Less or…
-
5
votes1
answer15614
viewsCall PHP function in onClick HTML button
I want to call a PHP function that I have on the same page, on the HTML button. My PHP function: if(isset($_POST['insert'])) { insert(); } function insert() { $requete = "INSERT INTO \"event\" (…
-
5
votes1
answer263
viewsHow do I sort Lambda by a List property?
I believe this has been asked before. I researched but did not find. I’m having trouble with this consultation, specifically in charge ThenBy that tries to sort the sub-list of objects. I know it is…
-
5
votes1
answer508
viewsTilted carousel (diagonal) in jQuery and CSS
I need to make a tilted carousel (diagonally as per image) but with transition between movements. I even prototyped something in this Jsfiddle but the movement is only working on the "back" button,…
-
5
votes1
answer5408
viewsMysql Error 1153: Got a Packet Bigger than 'max_allowed_packet' bytes
When trying to import a database from a dump with 1.2GB, the following error occurred: ERROR 1153 (08S01) at line 727: Got a Packet Bigger than 'max_allowed_packet' bytes The command I am using for…
mysqlasked 10 years ago bfavaretto 64,705 -
5
votes4
answers599
viewsProgram Locking in While
I’m working on a project and I’m having problems with the same, this program I’m posting is similar to what I’m working on. The problem is this: it arrives in while, the program does its function,…
-
5
votes0
answers12120
viewsIs there a free database for product barcodes?
I’m making an app that is related to supermarket products, and a future possibility is that, instead of the user searching by product name, he can also use the mobile phone to scan the barcode. How…
-
5
votes1
answer121
viewsD7zip file list
I’m using the D7zip(https://code.google.com/p/d7zip/source/) to extract files, and would like to receive the entire list of files from the archive archive. In the documentation, I found this: with…
-
5
votes1
answer78
viewsWhat is the benefit of Jsf’s life Cycle?
People I see people talking about understanding the life cycle of JSF. And I wanted to understand what uses we will have when understanding?
jsfasked 10 years ago Macario1983 1,335 -
5
votes1
answer504
viewsAjax Locking Page Exchange (Longpolling)
I am trying to complete a connection using Long Polling, where the browser sends a request to the server and awaits a response. To avoid this door being open endlessly, I created a routine so that…
-
5
votes1
answer2723
viewsHow to change the font color of a Jtextarea?
All over the internet I just found people wanting to know how to stylize part of the text and being "redirected" to JTextPane, then there are no answers to my question around. So there you go: I got…
-
5
votes1
answer486
viewsHow to extract the numerical part of a monetary value?
I have a string with the characters "R$ 1,000.60" and would like to extract only the characters "1,000.60". I tried using regular expression, but I couldn’t reach my goal. I got to this: string…
-
5
votes1
answer267
viewsChange HTTP User Agent
When an Android app sends a post to a web server (like a PHP page), this page receives an HTTP-Useragent type "Apache-Httpclient/UNAVAILABLE (Java 1.4)". I wonder if you have a solution to change…
-
5
votes4
answers860
viewsSelect with indefinite amount of conditions
The thing is, I have a field of research, and I want to search in different places than what’s registered, like this: tenis nike shox preto. I put in research: tenis preto. If I use a description…
-
5
votes1
answer1335
viewsRun custom functions in the browser console
It’s a little tiring having to keep writing console.log() all the time. I know that in my code I can define the function log that does just that. But outside the app environment, I would like to…
-
5
votes1
answer961
viewsCustom auto increment
I have to generate an auto increment of the type "000"+id, but I can not get to something concrete, my base is this below, I wanted only a light even of how to do, I do not need the answer itself.…
-
5
votes4
answers173
viewsJavascript PHP sprintf equivalent
Instead of doing: var html = '<a href="' + data.href + '" title="' + data.title + '">' + data.desc + '</a>'; I’m making: var html = '<a href="{href}"…