Most voted questions
150,413 questions
Sort by count of
-
8
votes2
answers9322
viewsHow to push remote branches?
I have a local branch called ResultadoAPI, the remote is located in origin/Feature/Resultadoapi I tried to push in several ways but this remote continues outdated…
gitasked 9 years, 5 months ago Daniela Morais 4,687 -
8
votes1
answer837
viewsWhat’s the difference between css and javascript animations?
Lately I’ve been studying some animations with CSS. However, researching more on the subject, I ended up verifying that it is possible to make animations also with javascript. What’s the difference?…
-
8
votes1
answer2008
viewsInstall Codeigniter 3 with Doctrine and Composer
What is the best way to install Doctrine via commiserate in the codeigniter 3.0? I plan to leave the files in the folder libraries. I created the file composer.json: { "config": { "vendor-dir":…
-
8
votes3
answers812
viewsjQuery is still "necessary"?
I have recently wondered about the real need to still use jQuery in new web projects. I know that he was, until recently, the best means (and for many cases the only one) of manipulating HTML…
-
8
votes3
answers7156
viewsgenerate a json file with java
Iterative insertion: 7841910ns - 7ms Iterative selection: 2677762ns - 2ms Iterative merge: 708154ns - 0ms This algorithm was made in Java, in the java console is printed several values, being: name…
-
8
votes1
answer1129
viewsLong Polling performance with PHP, Mysql and Ajax
I’m developing a site in PHP, and using Long Polling techniques for real-time notifications. I’m making the script wait 50 seconds for an answer, and not getting one, in 2 seconds it comes back to…
-
8
votes1
answer10416
viewsIs it possible to list all the neighborhoods of a city?
I am using the Google-Maps API, but I did not find anywhere in the documentation something related, I would like to list all the neighborhoods of a specific city, but the items with neighborhood…
google-mapsasked 9 years, 5 months ago Guilherme Nascimento 98,651 -
8
votes2
answers357
viewsHow to access information from a. torrent file?
I would like to know if it is possible and how to obtain information (Link Magnet, seedes, leechers, peers, size, etc. ) of a file .torrent using PHP.
-
8
votes1
answer787
viewsCheck if list is equal
I have the following list: x = [([1,2], [1, 2]), ([1,2], [4, 5])] And I wanted to check if the first list of each Tuple is always the same. Note: the list x contains tuples with lists. These tuples…
-
8
votes2
answers2260
viewsSettings for javascript Alert
Are there other ways to change the Alert display? for example when using \n he breaks the line, I wonder if there are other commands of those that I can modify the text display, for example leave a…
javascriptasked 9 years, 6 months ago Silvio Andorinha 8,394 -
8
votes2
answers6972
viewsLeave two Divs always at the same height
I’m using bootstrap, I’ve tried using display:table-cell and display:cell in divs children, however, nothing worked, I have two divs, and both have dynamic content, but I need the two always stay…
-
8
votes3
answers17275
viewsError #1062 - Duplicate entry '1' for key 'PRIMARY'
I was trying to put one of my tables as primary key. As soon as I try to get the message: #1062 - Duplicate entry for key 'PRIMARY' The data are filled in and are more or less like this: I tried to…
-
8
votes1
answer72
viewsWhy does the Regex result have two values?
I need patterns kb, Mb or Gb, I’m using regular expression (k|m|g)b$ and it has to be at the end of the line. The test of my expression results in only 1 match when I test "20kb", but in this script…
-
8
votes1
answer2872
viewsProblem between Pagseguro and number of installments
I made the implementation of a virtual store customized in PHP language and as checkout I am using Paying. In the implementation, the transparent checkout was used and was working correctly, but the…
-
8
votes2
answers1558
viewsDoes the passage of objects in Java simulate passage by reference?
Everyone says that Java goes by value, including Objects. These are copied and cannot be reassigned to a new object within the method. The problem is that it is possible to change object values…
-
8
votes1
answer574
viewsWhy does a char array support a character like ç and a char variable not?
Even though the char variable only supports ASCII characters, why in the following code it has the normal output when a value is inserted with characters that are not part of ASCII as accented…
-
8
votes1
answer14933
viewsDouble type and Decimal type, which is suitable for monetary value?
I found here in the SO a question with an answer until well accepted by the community What kind of data (double, float or decimal) should I use to represent currency in . NET with C#? I just never…
-
8
votes3
answers22485
viewsPass php variable to javascript
Someone could tell me how to pass a PHP variable to Javascript code. I know there are already many posts about it and I’ve tried to apply only that I must be doing something wrong so I decided to…
-
8
votes1
answer2249
viewsWhen and where to use webservice?
I’m with an android app project that is similar to Easytaxi (has nothing to do with taxi, but follows this logic of using map to locate "taxi drivers" in real time, with account registration and…
-
8
votes2
answers1745
viewsThreads in python 3.4
Well, I have a certain difficulty in using threads, I need to perform the following procedure: I have several items to be compared with a variable, but this comparison takes a certain amount of…
-
8
votes5
answers26812
viewsWhen is isset required?
I would like to know when it really is essential to use the isset variables in PHP, especially in the case of forms. What happens is that I am creating a large form, with some 200+ fields, which…
-
8
votes3
answers7123
viewsDisable windows form maximize and minimize
I need a solution to disable the maximize and minimize buttons of a windows form. Using WPF these two attributes would solve: WindowStartupLocation="CenterScreen" ResizeMode="NoResize" But now I…
-
8
votes1
answer15493
viewsLaravel 5 - Remove public from URL
I developed a form and need to "throw it" in production server. I have no server access (Linux, Slackware). I access my application from the url…
-
8
votes4
answers599
viewsTool for mobile zoom
I am developing a mobile application with Apache Cordova, I need a tool similar to Zoomify, but for mobile. I tried to use Zoomify, I did not get good results, which tool is the most suitable for…
-
8
votes3
answers2534
viewsWhy doesn’t the height accept percentage?
I created this Fiddle as a test. Wanting me to have the screen split half green, half red, why is it on the property height I put the value followed by "%" to div disappears? Being here saying you…
-
8
votes1
answer72
viewsString in php is a class?
String in java is a special class, where vc can instantiate the object only by assigning a value without using the reserved word new. But in php when we initialize a variable with a text, we can say…
-
8
votes1
answer658
viewsHow to login to the site using Instagram, Twitter or Google+ account on Platform . NET (C#)
I’m looking to develop something of the kind but I have no references to how to do, could help me with some example?
-
8
votes4
answers5471
viewsCount occurrences in a list according to prefixes
Let’s say I have a list ['rato', 'roeu', 'rolha', 'rainha', 'rei', 'russia'] and another list with prefixes ['ro', 'ra', 'r'] how do I count how many times each prefix is within the first list?…
-
8
votes1
answer723
viewsCreating a Java Interpreter for android?
I am developing an android application where it will be possible to write a java code and run... something similar to the visualg. then I did something different than most tutorials on compilers and…
-
8
votes1
answer9291
viewsExecute cmd commands from Java
I wonder how I do to execute cmd commands in java. Well, I did that: import java.io.*; public class Commands { static final Runtime run = Runtime.getRuntime(); static Process pro; static…
-
8
votes3
answers37193
viewsHow to enable and disable fields by clicking button
I have a page made with bootstrap 3 where I show some fields coming from my BD, now when opening the page I need all fields except a button Iniciar Tarefa are disabled, the button Iniciar Tarefa…
jqueryasked 9 years, 6 months ago adventistapr 5,498 -
8
votes2
answers578
viewsPerl for web development
You can use Perl for web development? In this context, the language offers some benefit, that is, there are problems that it solves more effectively than on other platforms?
-
8
votes2
answers226
viewsWhy does Value in Spring MVC need an asterisk?
Why do I need to put * no value when there is nothing else? I mean, before using Spring MVC worked smoothly only as /planilha/. The getPlanilha works properly but if it has the same RequestMethod…
-
8
votes2
answers3923
viewsRun parallel process in PHP
I own a Web service that is consumed by some applications. On the Web service there must be the use of API of Amazon and perform a process whenever a record change is made via Web service. Initially…
-
8
votes1
answer3746
viewsHow to save multiple inputs with the same "name"?
I need to save several input that contains the same "name", but the problem is that it only saves one single result for several. Example: <form method="post" action="guardar.php"> <input…
-
8
votes2
answers385
viewsIn which scenario is it recommended to use Keyedcollection instead of a Dictionary?
I didn’t know about the existence of KeyedCollection until you see this reply gypsy. I wondered how and when to use a KeyedCollection, since there is the Dictionary which apparently has the same…
-
8
votes1
answer577
viewsHow to count touches (letters, spaces and symbols) in PHP?
I made a program that extracts my annotations from my code and creates a file txt to be a little manual. I made a format to make it cooler: +-----------+ | | | ESPECIAIS | | | +-----------+ It takes…
-
8
votes5
answers1617
views -
8
votes1
answer2080
viewsRandom() generating repeated numbers
I am developing a small application to perform XML import, which searches the items present in the note and performs the search for them in DB company. When the item is not found, the link is done…
-
8
votes1
answer6362
viewsWhat does L, R, NC mean in HTACCESS?
I don’t quite understand the way the flag works L. The doubt arose when I was trying to use the following script: #quando vier o "public" na url, reescreve para folder/public RewriteRule…
-
8
votes1
answer87
viewsCompile Archive . ly
I’m compiling a program in Haskell, but came a file .ly, and I can’t compile it. I try ghc Grammar.ly And I get the message: ld: warning: ignoring file Grammar.ly, file was built for unsupported…
haskellasked 9 years, 7 months ago Pedro Soares 1,136 -
8
votes4
answers2315
viewsHow to format a value in Javascript?
What is the simplest way to format the value 1234213412341 for 1234.2134.1234-1 using Javascript? <script> function formatar_valor(strvalor){ var formatado; // formata return formatado }…
-
8
votes2
answers2364
viewsJosephus problem (recursive)
This is the resolution, recursively made in C++, of josephus problem, where n is equal to the number of persons in the circle, and k is the number of step to be taken for the next person. #include…
-
8
votes1
answer1863
viewsEncrypt Web.config
I come here with a question about ConnectionStrings of Web.config. Seeing that normally, we inform a form of authentication on ConnectionStrings for the application to access the database. And by…
-
8
votes1
answer660
viewsDifference between Library and Helper
What differentiates the helper of a library? For example: let’s say I have a class for URL manipulation. I call it and it completes the URL with the site path. That would be a helper?…
-
8
votes3
answers1864
viewsHow to return key of object with higher value in Javascript?
Let’s say I have the following object: var obj = {"frutas": 50, "vegetais": 100, "carnes": 150 }; How could I return the key of the highest value item? Example: obj.maxKey(); // "carnes" I tested…
-
8
votes2
answers214
viewsWhat happens if I don’t specify the { }?
I own this code that works normally: if($time <= time()) { if($time != 0) $Server->wsSend(1, 'perfect world'); foreach ( $Server->wsClients as $id => $client ) $time = time() +…
-
8
votes3
answers2955
viewsFunction that returns function in Javascript
I started studying Javascript a short time ago and came across a situation in a code (exercise) that I can’t understand. function hi(a,b) { return a*b; } function hello(a,b) { return hi(a,b+1); }…
-
8
votes6
answers96354
viewsHow to make an "Alert" in PHP?
I’m making an email form in PHP, and I’m trying to make one alert when the client clicks to send a validation. The validation seems to work because it redirects to the page I want, but does not…
-
8
votes4
answers607
viewsGet full number of an input
In a <input>, have the following value: 00001545455 When I recover the same with Javascript, he comes without the first 4 zeros. Can someone help me? I am already passing it in the function I…