Most voted questions
150,413 questions
Sort by count of
-
8
votes3
answers2145
viewsHow to display the exception message(ex.getMessage()) launched by the server in a jquery ajax?
@GET @Path("boleto/{processo}/{resposta}") @Produces({ "application/pdf","application/json"}) public Response gerarBoletoDividaAtivaComCaptcha(@PathParam("processo") String…
-
8
votes1
answer350
viewsHow to use Salts and hashs with PHP?
Following people, I have to make a system of registration and login of users, but wanted to increase the security of this system using Salts in passwords, someone could show me a simple example…
-
8
votes1
answer1524
viewsHow to change mouse cursor icon when passing over link?
Information: I have a table with the employee data. There is a column of this table, where the emails are contained, they have a direct link on Outlook. The component I’m using in my table is the…
-
8
votes2
answers1077
viewsHow interesting is it to use APC? Is it recommended to use it with objects?
I’ve been reading about PHP’s opcode cache, APC. Most of the materials I found to read, although good, only explain the installation/use of APC functions. What I’d like to know is: How interesting…
-
8
votes2
answers8421
viewsHow to run Android projects, on Eclipse, on a smartphone?
I have a Moto G and, no way, I am able to connect it (via USB) to Eclipse, to run the projects Android Application directly on the device.
-
8
votes4
answers7006
viewsDoubt with Regex with new line
I created the following expression: "<strike>.*?</strike>" to get all the text taxed, but due to the source code having line break (as in ex. below) is not working. <p…
-
8
votes2
answers969
viewsHTML Desktop app with Node.JS + Socket.IO
I need to develop an HTML-based chat app that connects to a Node.JS server that is running with Socket.IO. I even developed much of the app using Tidesdk, but at the time of the integration to call…
-
8
votes5
answers436
viewsRefactoring: When is a method "too big"?
I’m with a project that "recovers" certain information from an HTML page, makes a parse with the help of Beautiful Soup and return the values in the form of Dictionary, so that in another method I…
-
8
votes2
answers5688
viewsObject Comparison
The code below generates a false, but objects have the same attribute values, there is some method that compares objects, but their attributes, and not the object itself? Produto P5 = new Produto(1,…
-
8
votes2
answers205
viewsWhat is the difference between Scheme sequels and other languages?
I have heard that Scheme has "first-class sequels", while other Lisps (and other languages) do not. I researched it, but the material I found was not specific. What I understand is that sequels are…
functional-programmingasked 10 years, 8 months ago André Leria 5,047 -
8
votes2
answers780
viewssetTimeout attached to an onload does not work
I have a PHP page that confirms or does not send the user’s email through the contact page. I want after 10 seconds (long enough for the confirmation notice to be read), window.location be the home…
javascriptasked 10 years, 8 months ago Pedro Vinícius 1,870 -
8
votes3
answers784
viewsSet the threads priority in C++11
In the program I’m developing I have two Std::threads that are always active throughout the life of the program. However, I consider that the role of one of them is of minor importance and would…
-
8
votes6
answers52587
viewsHow do I use a database on an HTML site?
I am interested in making a site that will use a database, many told me they use Mysql to do this, but I have no knowledge about it, installation, use etc. I have knowledge in PHP, HTML, CSS and…
-
8
votes3
answers2418
viewsForce jQuery event execution order
Suppose a page has several events being associated via jQuery. For example, in a given section, I have: $().ready(function() { foo(); }); And further ahead I have: $().ready(function() { bar(); });…
-
8
votes3
answers16338
viewsHow to create and read an XML with Python?
How to create and read an XML with the component DOM in Python? And how to read an XML with the component cElementTree python?
-
8
votes6
answers1227
viewsProperty readonly . NET
I received this question in a test and could not answer: "How is it possible to declare a property readonly in . NET / C#?"
-
8
votes5
answers48166
viewsHow to increase or decrease the div proportional to 720x540?
I’m trying to solve this question because I have a slide on. ppt with dimensions of 720w and 540h and my page is net, so the reason for increasing or decreasing proportionally. Example:…
-
8
votes6
answers2251
viewsUpload files (always in different folders)
I wonder if it is possible (and how I could do) I create an upload system where whenever I upload a file, it goes to a different folder (always), and show me (or record) the path it generated. It is…
-
8
votes3
answers920
viewsCan using non-priminal variable type in C# affect performance?
Using non-priminal variable type in C# can affect performance? I have seen several codes where, instead of using primitive C#types, many use types similar to other languages that the IDE accepts. I…
-
8
votes1
answer277
viewsIs it possible to use sub-groups?
I have a form and this has three pairs of start/end dates. For each pair I validate if both dates are filled in or none of them is filled in, because it is not allowed to fill in the start date and…
-
8
votes4
answers13140
viewsWhat is the difference between operators '==' and '==' in Javascript?
I would like to know the difference between the two operators who would be: (1): == (2): === If possible, I would also like to understand in this case the use of the opposite operators of them: (3):…
-
8
votes3
answers243
views"Unclosure" a closure
I understand the great powers and the great consequences of the closures. But suppose I have the following code... function foo () { var x = 1; function bar () { return x++; } return bar; } ... And…
-
8
votes3
answers4468
viewsBest(s) way(s) to use Dependency injection in Laravel
What(s) is the (s) best(s) way(s) to use Dependency injection in the Expandable? The one I was using was this: public function __construct(Cliente $clientes, Telefone $telefones){ $this->clientes…
-
8
votes2
answers1301
viewsTechniques for setting requirements and writing use cases
A while ago I saw a Lynda.com course called "Foundations of Programming: Object Oriented Design" and the course guy gave a 5-step list to create a domain template: Collect requirements Describe the…
-
8
votes3
answers15165
viewsHow to subtract two dates using Python?
How do I know the difference in days between two dates using Python? For example; How to know how many days there are between 22/11/2013 and 25/03/2014, considering a possible leap year.…
-
8
votes6
answers8101
viewsHow to take the current date and add "n" minutes in this value?
I can get the current date simply with new Date(), but how do I add an amount of minutes to this value? If there is a way to add milliseconds, it may also be.
-
8
votes6
answers1639
viewsRemove an undetermined number of " " in a column in the database
The field description on the table product contains HTML generated by Ckeditor (English) that tries to escape the content: <table…
-
8
votes1
answer867
viewsHow to return to "waypoint_order" in the Google Directions API?
I’m developing a route mapping system using the Google Maps API. I have the points of origin and destination and between those points there are some points of interest. When plotting the route…
-
8
votes1
answer3210
viewsMaximum number and size of cookies
When investigating about cookies and their limitations, I came across this Microsoft page where they talk about Internet Explorer and its capabilities regarding Cookies: Size and number limits of a…
-
8
votes1
answer1071
viewsHow to launch my own exceptions with PDO?
When running the line below, in the constructor of my database access class: $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); PDO will report errors by releasing type…
-
8
votes1
answer1081
viewsURL::Previous() returns incomplete path
How I’m studying the book Code Bright, from time to time there are some errors that I take a long time to resolve. However, I couldn’t find a solution in Google. By doing the Redirect::to() from one…
-
8
votes1
answer494
viewsRead contacts contacts agenda iPhone using Xamarin
How do I read the contact list in my iPhone phone book using Xamarin? I need to read the contact list of the iPhone agenda. I do not know how to do and I did not find any Portuguese material on the…
-
8
votes2
answers6054
viewsHow do I read the record of incoming and outgoing calls on my iPhone using Xamarin?
How do I read the history log of incoming and outgoing calls on iPhone using Xamarin? I need to read the log of the calls/ made on iPhone. I do not know how to do and I did not find any material in…
-
8
votes0
answers1356
viewsHow to add additional fields to an infotype?
I need to perform a customization in an infotype (HR) adding two new fields for control as represented, circled yellow, in the image below:…
-
8
votes2
answers280
viewsTrigger an action when a hash is found in the URL
The idea is to start an animation when a hash is found in the URL. Example Taking the example of a page whose navigation works by hashing: <nav> <ul> <li><a…
-
8
votes3
answers4784
viewsWhy Laravel instead of Yii?
It’s been a while since I actually developed in PHP. In my last research, about two years ago, I didn’t hear much about the Laravel, as long as the Yii led some rankings (including my) framework to…
-
8
votes2
answers457
viewsHow do I log in through my Microsoft Live app?
I would like to know how I can log in through my application, whether Web or Desktop, on Live? I’ve looked for some things, but I haven’t succeeded. UPDATING So, as the bfavaretto suggested, I…
-
8
votes2
answers570
viewsHandle 1-pixel edge to avoid double edge (1+1 pixels) with side-by-side elements
I have a grid created with a list ul whose internal elements to li contains a border. The idea is that when the elements are side by side the edges are manipulated so that only a single stroke with…
-
8
votes3
answers1076
viewsIs anchoring a TR possible?
It is possible outside an element tr link some address as below? <a href="www.enderecodesejado.com.br"></a> If it is not possible, Javascript would solve this or better forget? I have…
-
8
votes2
answers673
viewsHow to quickly recover a large PHP array?
In the example below, I have a array in PHP with about 128,000 records (Portuguese language entries) that I retrieved from another file, and use in some applications, to compare the indexes as…
-
8
votes1
answer168
viewsProject that Imports Other Netbeans Projects
I have a project where is the whole part of Hibernate configuration. In the final project I will have some more projects (Personal Registration for example) that will need the project that has…
-
8
votes5
answers989
viewsHow to remove an Element from an XML with Python?
The case is that I have a file produced by a Garmin (GPS exercise device) and I want to remove all fields related to the heartbeat to pass the file to an athlete who did the exercise with me. The…
-
8
votes1
answer1584
viewsForm with a "file" type field arrives at the server with "$_POST" empty
On our hosting server, I have two projects, where both are with a module in our administrative area to manage images. In the project To, the form is submitted to the server and the $_POST is…
-
8
votes1
answer655
viewsProblem with printing HTML elements on the screen
I’m making a software (minigame) that works with a deck. In the administrative panel of the same I need to view and consult the game deck. I perform a query in the database and, with the results…
-
8
votes3
answers837
viewsDisable Auto Redirect after logging into Cakephp 2.4
I’m using Cakephp’s Auth 2.4 and if I try to access a link that needs login it redirects to the login form. For example: I try to access: /projects/Edit/34 without being logged in. Cakephp then…
-
8
votes1
answer270
viewsPrinting with path name saved in a table
I created a table called Funcionarios where I have at least 2 fields: ID and caminho_impressao. Where I put it for example: C: User Users1 Documents\ C: User Users2 Documents\ Then I tried to print…
-
8
votes2
answers927
viewsHow to log only active users?
In authentication beyond the data needed to log in the user, I want only those who are in status ativo = 1 log in, but I don’t know how to do this check. table user: id username email password ativo…
-
8
votes2
answers694
viewsReturn the total value of items calculated in a list
I have a table with Quant and Preço. On the form, beyond these fields, I have the field Total = [Quant]*[Preço] Also, in the main form I have the field SomaTotal = Soma([Total]) That is, the classic…
ms-accessasked 10 years, 9 months ago Regis Santos 1,574 -
8
votes2
answers3908
viewsHow can I get the first element of each parent element?
I have a structure like this: <div class="container"> <span class="iconset"></span> <!-- primeiro elemento --> <span class="iconset"></span> </div> <div…
-
8
votes3
answers7789
viewsBuilt-in form action parameter is not passed via GET
I have the following HTML code, and in the action Seto the address obeying my query string: <form name="searchCard" class="serachCard" method="get" action="painel.php?spv=nav/buscarCard">…