Most voted questions
150,413 questions
Sort by count of
-
5
votes1
answer565
viewsPhonegap does not change package name
I’m using the Phonegap build to generate the APK. When uploading to the Play Store, however, he says that the name of the app is "com.phonegap.ww". I opened the APK with the APK Editor and it…
-
5
votes2
answers7034
viewsHow to play sound in a java program?
I need to make a program in Java, where the user puts the password and it is displayed on a TV monitor, this program will be used in a restaurant, so that when the order is completed is issued on TV…
javaasked 9 years, 6 months ago T Fernandes 51 -
5
votes1
answer1926
viewsHow to declare and initialize two-dimensional matrices?
I have to save the row, column and contents of a spreadsheet. For this I created a two-dimensional matrix. My difficulty is how to initialize it? I believe the statement is no longer correct because…
-
5
votes3
answers377
viewsHow do I work with responsive design?
I use Media Queries, right, and my layout will have to adapt to various devices like tablets, iphone, smartphones, notebook and Tvs, but I found a problem in the tablet in landscape mode, it has an…
-
5
votes2
answers5145
viewsPass a function parameter according to the value clicked with Javascript
I need to pass the value of a function according to the clicked value of it. There are 3 Divs, each one is a gallery. I need that when clicking on the "see more" option, open a page with all the…
-
5
votes1
answer245
viewsError [Forbidden] when sending event in google calendar, googleCL API
For those who do not know, the googleCl(Command line tools for the Google Data Apis) follow the link https://code.google.com/p/googlecl/ I use only the command that sends an event to my google…
-
5
votes1
answer3525
viewsCakephp 3.0.1 error message
I have a problem installing the Cakephp, I’m using the Xampp, with PHP 5.5, and displays the message: Fatal error: You must enable the Intl Extension to use Cakephp. in C: Users inhome Desktop io…
-
5
votes5
answers338
viewsMove background of text
Staff need to place and animate a degrade as background of a font with a written text. I need this gradient to be applied to the source (not behind the text) and to keep moving from left to right…
-
5
votes2
answers3824
viewsWhat is the best way to save files, Bank or File System?
I have a demand to attach Pdfs to my application. The files have varying sizes, from 5 to 200 MB or more. Here comes my question: what is the best option to store? Direct in the database…
-
5
votes1
answer1638
viewsWhat’s a POC in C#?
I received a request to make a POC email, but before doing so I would like to know what a POC in C#. If there is content on the internet for the same. P.S.: I don’t want the solution, I just want to…
-
5
votes1
answer977
viewsButtons invisible in emulator but visible in preview
Why do buttons I create in xml not appear on Avd? In the layout they appear with a gray color, but when I touch to run in the emulator they are simply invisible. If I put some text on the button,…
-
5
votes1
answer228
viewsChanged database data is not shown in the Primefaces Datatable
I am trying to disable JPA cache (Eclipselink 2.5.2) through "persistence.xml", but it is not working. Changes made to the tables, externally to the application, are not presented in the Primefaces…
-
5
votes1
answer451
viewsWhat is SPF and DKIM and why do we need to configure them?
Every time we talk in emails, particularly newsletters, the terms arise SPF and DKIM. Many services of mailing online ask to configure these values in web hosting but do not mention the reasons,…
-
5
votes1
answer233
viewsWhat exactly is the element.class selector?
I was developing and one thing caught my attention: the rule elemento .classe is different from elemento.classe. I realized that the main difference is that the first one could be read like this:…
cssasked 9 years, 6 months ago Rafael Almeida 2,585 -
5
votes1
answer264
viewsError validating login and redirecting to home
I am using wamp 2.4 and trying to implement an Angularjs login. However, when I click the button submit occurs the refresh page but it does not change to the home. The session is always recorded…
-
5
votes1
answer197
viewsFire Asynctask class exception
The class below is responsible for obtaining data from a WCF Rest service: public class MyAsyncTaskGeneric<T> extends AsyncTask<String, Void, T>{ private final Class<T>…
-
5
votes4
answers11166
viewsRecover a file in GIT
I have two folders (test-git1 and test-git2), in both I gave a clone of the server repository. If I accidentally delete a file inside the test-git1 folder, how do I recover it? I tried to give git…
-
5
votes2
answers738
viewsCkeditor does not recognize required attribute
I’m using Ckeditor to create pages that may contain forms (in other words, forms can be inserted into the content being edited, because I’m using the full package). I wish I could use the attribute…
-
5
votes2
answers768
viewsGit repository size problem
At the company where I work, I was using Git to save a system, where three people use it. After, by accident, an image folder is sent, make a git pull has become absurd, since the downloaded data is…
gitasked 9 years, 6 months ago Wallace Maxters 102,340 -
5
votes2
answers785
viewsE-mail UTF-8 via ASP with CDONT
I am trying to send a form to an email using CDONT, but the charset is coming incorrectly and is not showing the accented characters correctly. <% Response.ContentType = "text/html"…
-
5
votes2
answers315
viewsCan I put an image of the internet on an Imagebutton?
It is possible to create a imageButton and within it put an image of internet. I can do that with webView, but it is possible to do with the imageButton?…
-
5
votes1
answer699
viewsHow to implement Diffie-Hellman in Javascript?
I am developing a web system where users can communicate with each other privately, without even the server having access to the content of the communication (i.e. end-to-end). For this I intend to…
-
5
votes2
answers780
viewsMulti-tenant system with the possibility of "customization"
I am raising knowledge for the creation of a multi-tenant system. I’ve been taking a look at some references from MSDN, SOEN and SOPT, as well as several websites. Although I have read the…
-
5
votes2
answers21755
viewsHow to get Date in Day, Month, Year and Time format with Jquery
I have a piece of code that I can get the date and time, but the date is in the format Mês/Dia/Ano followed by time, but precise in format Dia/Mês/Ano followed by the time, I tried to change the…
-
5
votes1
answer543
viewsParameter of any type in method
I am building a method and would like it to extend into any type. For now I am using string but I would like the same to work for int, float, double and datetime. public static bool isNotNull(string…
-
5
votes2
answers243
viewsCast problem in a generic method that receives an array of Enum’s (Enum[])
I intend to make a generic method that receives a enum[] and that a string representing the items of array comma-separated. public static string ToSeparatedCommaString<T>(T[] enums) where T :…
-
5
votes1
answer1084
viewsHow to get the coordinates of a point at a certain distance from my location?
Speak guys, I’m making an app, and in an app Activity need from my location to "zoom" in the maps as the user slides a seekBar, as per the image. I’ve been thinking about using the Bounds feature on…
-
5
votes1
answer1820
viewsPrint EPL code with javascript
I’m doing some testing with the printer Zebra GC420T using the language EPL to generate text and barcode. How can I javascript the printer print the following code? N q812 S2…
-
5
votes3
answers6760
viewsWhen is the use of an Enterprise Service Bus (ESB) recommended?
I am at the beginning of the development of a system that provides communication with some other systems through Web Services. Now our system will be the provider of services, or consumer of…
-
5
votes2
answers326
viewsDo I need to include jQuery on every page?
It is necessary to place the script jQuery production every time you start a new encoding?
-
5
votes1
answer727
viewsHow to create a value pair within a Java Map
It is possible to create a Map in Java using the concept of pair that exists in C++? I have tried to use it in the form below, however, I cannot assign values to my map. Map<String,…
-
5
votes3
answers626
viewsHow does php guarantee a single session_id?
Which algorithm used to secure a single session_id()? I wanted to know what the creation and verification is like to ensure that such an ID does not collide with an existing one? I need to create…
-
5
votes1
answer122
viewsUnexpected result in Lua test code
I wrote a little code to test a statement from the book I’m studying, Programming in Lua (3rd Edition). The statement, which is found on page 10 of the book, translated is as follows: Conditional…
luaasked 9 years, 7 months ago Raul FuGaDe 53 -
5
votes2
answers3895
viewsDrawable or Mipmap?? What’s the difference?
Since version 1.1 of android studio appeared a new folder called mipmap with the same features of drawable. What is the usefulness of this new folder?
-
5
votes1
answer39
viewsA background is loaded even when a rule is not applied over an element?
I do not know if the title of the question is clear, I will try to explain as clearly as possible. I’m studying about responsive websites and try my best not to use large images so the site doesn’t…
cssasked 9 years, 7 months ago Rafael Almeida 2,585 -
5
votes1
answer557
viewsHow to get command line parameters / file path
I am developing an application, and accurate by parameters/commands next to the file path. For example, these flags: C:/caminho_do_arquivo -r C:/caminho_do_arquivo -v And in the code there would be…
-
5
votes2
answers6374
viewsString comparison
There are several ways of comparison, but I always see that the most suitable are (===, strcmp ou strcasecmp). Among these forms presented considered the safest (according to some websites on the…
-
5
votes2
answers520
viewsCheck where the POST came from
Is there any way to limit the sending of POST forms by third parties to my website? Deny everyone, like there’s the URL that does it like a robot, but I wanted to inhibit, it’s like? When I say…
-
5
votes2
answers1625
viewsSerriled source Firefox
How to resolve this issue in Firefox regarding fonts ? Unfortunately in Chrome it gets smooth and in Firefox serrated.…
-
5
votes4
answers7094
viewsSwap the first character of a string with the last python character
I have the following function: def troca(s): letra1 = s[0] letra2 = s[-1] s = s.replace(s[0], letra2) s = s.replace(s[-1], letra1) return s troca ('bar') As you can see, I provide as an argument for…
-
5
votes4
answers374
views -
5
votes1
answer166
viewsHow to put a text cursor to start on the right? Calculator
I’m making a basic calculator and on the calculation screen, I want the numbers to be "printed" from right to left. How can I do this?
-
5
votes2
answers104
viewsError executing cascade class methods
I have the following code: 1. $customer = new Customer($apiContext); 2. $customer->setVat('XYZ0123456') 3. ->setName('Filipe') 4. ->setLanguageId(1); 5. (...) The following error occurs on…
phpasked 9 years, 7 months ago Filipe Moraes 8,737 -
5
votes3
answers3857
viewsPagseguro does not redirect customer after payment
After payment, the customer should be redirected to the thank you page I set up, but that’s not what happens. See, I took an API, I just needed to set up 2 files, among them are:…
-
5
votes3
answers10876
viewsRecognize duplicate items in a list
I’m getting a list of items in my action public ActionResult New(List<Itens> Itens) { return View(); } How do I recognize which items are duplicated on that list?…
-
5
votes2
answers4825
viewsHow to apply the Singleton pattern correctly?
The class PEHandlerService need to have a single instance and do not want to use synchronized because of the slowness, I developed the following code: public class PEHandlerService extends…
-
5
votes3
answers185
viewsProblem with program that prints three numbers increasingly
I’m having trouble creating the decision structures in a program that reads three numbers and prints them increasingly. My code that’s going wrong is this:: #include <stdio.h> int main (void)…
-
5
votes1
answer1502
viewsWait to finish the thread before ending the program
I have a loop while that ends only when I press the key q, then the program is closed. Within that loop, at a given time or condition, I initiate a thread that takes about a few 10 seconds to run.…
-
5
votes2
answers205
viewsFrom . NET to Java, what technologies or frameworks do you use?
I currently have a . NET-based work infrastructure with Angular JS and a possibility of a new project using Java has emerged. With . NET I use the following technologies: ASP.NET Identity Used for…
-
5
votes2
answers3987
viewsDouble formatting in Java
I have the following value 1234.0000. I would like to format to the following output: 1.234,00. There may be cases I’ll use as well 1.234,0, but I believe that making for the first case the others…