Most voted questions
150,413 questions
Sort by count of
-
5
votes1
answer2070
viewsJava Arraylist - Overriding values
Guys need to perform the following activity: "Consider an application to store the following data of a person in an address book: name, address, and phone. Specify a TAD to store the data of persons…
-
5
votes1
answer729
viewsWhat is string.maketrans for?
I was looking at some Python challenges and found one that involved rotating the characters of a string. Of type 'a' turns 'c', 'b' turns’d', and at the end 'y' turns 'a' and 'z' turns 'b'. While…
-
5
votes1
answer248
viewsOptimize the movement of the marker in Maps
Working with an application where I add one Marker on the map, as : markUser.draggable(true); But I want to optimize this method, to move the marker is necessary to hold for a while, I want with a…
-
5
votes3
answers2379
viewsHow to see how much memory occupies such a variable in C++? And how to use the define?
How to see how much memory occupies such a type variable int, char e long in the C++? And how to use the #define?
-
5
votes3
answers106
viewsAvoid the last occurrence of a character concatenated in a loop
The question is as follows, whether I have a foreach or which; want another repeat structure that receives data from the table and displays the categories: foreach ($categories as $c){ $c.nome . ' -…
phpasked 9 years, 8 months ago MarcosJunior 193 -
5
votes2
answers457
viewsAdjust text color in submenu
I took over a site to continue the development, but I have a legacy problem, I’m not able to leave the text black when the user hovers over a menu option. For example, when hovering over the…
-
5
votes2
answers120
viewsWhy do certain services still depend on the Java plugin?
Banks, digital certificates, government service websites still depend on the plugin java. The idea of Java, "write once, run anywhere" is not always true. Many services still have platform-specific…
-
5
votes1
answer337
viewsHow to merge a file with several other files, dynamically using Grunt?
I have a problem that I cannot solve in any way. The problem is this: I use the Grunt to automate the tasks of my projects, and in this case, I am using it as follows: As I did in the above drawing,…
-
5
votes1
answer1396
viewsEnable CORS via Javascript (Phonegap)
I’m creating a Phonegap application that consumes a Web API (Web Service), and I need to access an external domain. Searching through the web I found that CORS should be enabled via Javascript to be…
-
5
votes2
answers114
viewsHow to get a Date String?
My question is how to get a string and manipulate it. The user will inform dd/mm/yyyy in the form of String. How do I make this catch? And then I need to make this date whole so that I can do the…
-
5
votes1
answer143
viewsTraits don’t take property superscripts?
According to the excerpt from the PHP Handbook A Trait is intended to reduce some simple inheritance limitations by allowing a developer to reuse sets of methods freely... Take an example: trait…
-
5
votes2
answers2303
viewsPrevent an application from being closed by the user through the task manager
I have a C# application that cannot be closed by the user. But even if I eliminate all the means to close the application, including by itself, it is still possible to finish the process by the task…
-
5
votes1
answer634
viewsMaximum Array Size Passed by POST
I’m doing a function JavaScript to read a file the user is uploading and sending to the PHP via POST only content for insertion in the database. I’m trying to send a array with the contents of the…
-
5
votes1
answer202
viewsHow does Bitap’s algorithm work?
According to Wikipedia in English: The bitap algorithm (also known as o-shift or, shift and or Baeza-Yates-Gonnet algorithm) is a matching sequence approximate algorithm. The algorithm indicates…
-
5
votes1
answer179
viewsSegmentation fault: branch and bound in c
I have a persistent error in my code. My goal is to find the way in a maze mounted on an array with an algorithm like branch and bound. Follows the code: FILE *ent; FILE *saida; int NL; int temp;…
-
5
votes1
answer543
viewsFacebook login php Auth returning dialog/oauth? client_id in url
I’m making my application to login on Facebook, but it returns with GET on the url ?code=etc... Before it was working normally, I use via class from Facebook. See: $facebook = new Facebook(array(…
-
5
votes2
answers912
viewsHow to free memory from an internal malloc to a function that returns a pointer?
How to release a malloc internal to a function that returns a pointer? In a simple way to try to exemplify my doubt, consider the following function f: int *f(int tam) { int *ptr = malloc(tam *…
-
5
votes1
answer149
viewsWhat is ~ in regular expression for?
I have the code: function addhttp($url){ if(!preg_match('~^(http)s?://~i', $url)){ $url = 'http://'.$url; } return $url; } It adds HTTP if the given URL does not contain, but what I’m doubtful about…
-
5
votes1
answer10937
viewsDifference between Ansistring, Widestring, Unicodestring, Shortstring and String and how to convert
During my Delphi learning I see implementations that use AnsiString,WideString, UnicodeString,ShortString and String but I don’t know the difference between them. Another thing that always occurs to…
-
5
votes2
answers1135
viewsFormat Customformat value in Livebinding
I’m having trouble trying to use the property CustomFormat of Livebinding, I am trying to format a value obtained from database to number format with thousand separator. I’m using:…
-
5
votes1
answer6772
viewsHow to post on a facebook page using PHP
I would like to know how to make automatic posts on a particular facebook page using PHP. I consulted the documentation that facebook provides and besides being in English also did not understand…
-
5
votes3
answers280
viewsHow to compare data with accents in the database?
I’m having a problem with a search I did where the user filter content by district and county, is working well when I choose district and county without accents but when I choose a district and a…
-
5
votes1
answer376
viewsIn Django why does the is_authenticated method always return True?
I saw that the documentation indicates the method is_authenticated as being responsible for telling templates if there is a logged-in user. I also saw in the method code that it contains only the…
-
5
votes2
answers352
viewsDoubt with datatable and/or JSF/JPA modeling
Good evening, I have the following problem... at first it seems kind of silly, but honestly I can’t get out of it I want to create a table where the columns are Sunday, Monday, Tuesday, Wednesday,…
-
5
votes1
answer181
viewsCreation and communication with daemon
I have a Python application where I need to keep it online all the time. The application has its own console, which is where I do the communication and step parameters. I understood that I can…
-
5
votes2
answers1527
viewsHow do I close/close a msgbox via code?
I tried to find out how I could do this, but I did not find anything clear. I want to know if it is possible to close the first msgbox, shortly after 2 seconds. Follows the Code: MsgBox("Iniciando…
-
5
votes1
answer1563
viewsPerfect forward secrecy, what is it?
I was reading a story.I was quoting PFS and so I went to search, Wikipedia is weak on this, what is it? Is it like doing it? Please I’m a layman and I like examples, thank you from the start.
cryptographyasked 9 years, 8 months ago Gabriel Henrique 375 -
5
votes4
answers4908
viewsWhat is the cost of using the Google Maps API to create routes?
I’m creating an app where I take the user’s current position and create a route to a certain point. A friend commented that this route service offered by Google is paid for. Someone could or would…
-
5
votes2
answers4683
viewsAJAX post request with Angularjs
Hello, I wanted to know how I make a requisition POST for a url with Angularjs and also wanted to know how I transform a normal javascript object for a json, to send in this request.…
-
5
votes2
answers7699
viewsHow to move one element to the position of the other with Jquery?
I have an element and I want that when the user hovers over it, it should go to the position of another element. For example: I have the element A and I have the element B, when the user hovers the…
-
5
votes1
answer316
viewsWhat status can I return in an attempt to submit a form without a TOKEN?
I’d like to know what the status http I must return to my application if someone is trying to forge a request via form. The application I developed is done in Laravel 4 and I’m using that…
-
5
votes2
answers1198
viewsDOMPDF: Frame not found in cellmap. What causes this error?
This problem has been haunting me for a long time and I still haven’t found a solution for it. I have developed a system, where in a given location, the user can print a report, which is generated…
-
5
votes1
answer49
viewsReceiving user time
I’m a beginner in php and I’m racking my brain to find a solution. I have the following problem: I have a web application where my user builds his online physical establishment (hotsite). And in it…
-
5
votes1
answer1589
viewsDoubt between Any and All in a lambda expression on a list
On a list, I have 12 records (hypothetical) and there is a field called ValorCampoFlag, where this field receives 1 or null, for example. If I do a validation on it and the result if there is at…
-
5
votes2
answers154
viewsReturn a function
I created a function teste() which must be completed with the While and return the data. Why when I call my function teste() within the function PageLoad_Arquivo() it does not carry? function…
-
5
votes1
answer526
viewsConvert HTML menu to Wordpress
For the first time I am working on converting an HTML template to Wordpress. I’m having some difficulties and the one that’s bothering me the most is this: I have an HTML menu and would like to…
-
5
votes3
answers8270
viewsConvert natural number to binary recursively
How can I turn this function into a recursive function? I managed to make it iterative in this way: #include <iostream> using namespace std; int main (){ int n,pot,bin; cout << endl…
-
5
votes1
answer1327
viewsHow to set date formats in Django 1.7 for the whole system
Is there any way to change the display settings and/or date formatting at system level?
-
5
votes1
answer741
viewsHow Telegram Encryption Works
I’m analyzing that Telegram uses encryption end-to-end and I’m trying to understand how they get such a fact, they make everything available documented but my English is not so good and Google…
-
5
votes1
answer2172
viewsRevoke privileges
I have a database and I’m trying to make sure that only my user has access to this base. ie no one else can open, search, delete anything. I’m using the following syntax: GRANT USAGE ON batabase.*…
-
5
votes1
answer325
viewsHow to work with Séssions at Silex
Good night, I have a question about how to include, change and delete data in the Silex Session. Its API documentation is very simple and without explanation. Is the following: I need to create a…
-
5
votes3
answers10914
viewsHow to remove the first element from a list in python?
I have the following code: On the command line > teste.py primeiro segundo In the script teste.py: import sys print(sys.argv) And I have the following return: ['c:\\teste.py', 'primeiro',…
-
5
votes1
answer516
viewsAndroid - Different ways of "setar" a system in objects
Is there a different way (Syntax) to "set" a Switch on an object on Android ? For example, I only know this way: btn.setOnClickListener(new OnClickListener() { @Override public void onClick(View v)…
-
5
votes1
answer311
viewsHow to find the height of a dynamic element with Angularjs?
I have a menu with accordion effect I need to find out how high this menu, remembering that the height is dynamic, IE when it has some open element it gets bigger. After that it is necessary to…
angularjsasked 9 years, 8 months ago Bruno Laise 163 -
5
votes1
answer1187
viewsError in PDO query
I am creating a registration page where I have several tabs, as the structure below: <div> Aba 1 </div> <div> Aba 2 </div> <div> Aba 3 </div> <div> Aba 4…
-
5
votes3
answers12621
viewsHow to remove specific words with javascript
How can I remove specific page title values? Title: STACKOVERFLOW REMOVE: STACK RESULT: OVERFLOW
-
5
votes1
answer567
viewsUpdate page automatically when accessing system
I have a project, where I need the user to access the system, the system updates the page automatically, only once. I found how to do this from time to time( 5 in 5 seconds, for example), but I need…
asp.net-mvcasked 9 years, 9 months ago Randrade 21,612 -
5
votes3
answers165
viewsCatching value created at runtime
I’m trying to get a value contained in a tag (span) located in another domain using PHP and Javascript. There are cases where I can get the required value but mostly the returned value is null. I…
-
5
votes2
answers524
viewsDifference between Azure Queue and Queue Bus Service
I noticed that Microsoft Azure has two types of queue: Azure Queue which is part of Azure Storage and Service Bus Queue. In this tutorial the Azure website uses the Azure Queue service to exchange…
-
5
votes3
answers612
viewsHow to leave empty textbox after an Ajax request via Post?
I have a registration application in . net MVC and I am using Ajax to send the contents of the Forms For my Action that registers, when save the value of the fields, in my view the values are still…