Most voted questions
150,413 questions
Sort by count of
-
4
votes2
answers2699
viewsRevert a string and add method to native objects in Python
In Python, we have the method reversewithin the List. It reverses the order of a list. Example: [1, 2, 3].reverse() // [3, 2, 1] However this method is not present in a string. example (Python):…
-
4
votes4
answers1730
viewsHow to display "Update your Browser" warning when it does not support HTML5?
How to show the warning "Update your Browser" when the user browser does not support HTML5 tags or CSS3 properties? One initiative that encourages this is the website…
-
4
votes1
answer1560
viewsFetch of children with JPA+Hibernate not working
I have two classes, Terminal (who is the father) and Portaria (son). I’m using JPA and it’s working, but there’s a bug I can’t fix. I upload a list of Terminal and when testing the t.getPortarias()…
-
4
votes2
answers93
viewsDoes R have a similar command to SAS IN?
R has some command similar to SAS IN? Follow an example in SAS code: variable1 IN (4,5,6,7) THEN variable2 = 1; That is, if the variable1 assumes the values from 4 to 7, the variable2 is assigned…
-
4
votes1
answer3981
viewsHow to generate millisecond timestamp in PHP?
The function time() PHP generates a UNIX timestamp in seconds, example: echo time() // 1420996448 But I would like to generate a Unix timestamp also with milliseconds, as I can do this?…
-
4
votes1
answer7435
viewsOn HREF and SRC, finally, what are the differences of application?
From what I’ve been reading, HREF serves to point to something external(outside the page) that the user requests, or that the page containing it needs to use it (in the case of style sheets). That…
-
4
votes1
answer37
viewsCheck if a variant div exists
I have several Ivs with the class prefix "webserver_[.. ]" and would like to check if any div with the prefix "webserver_[.. ]" exists, only with jQuery, how to do?
-
4
votes1
answer512
viewsCan injecting dependencies into an EJB builder cause modularization and performance problems?
Recently I migrated from Spring to CDI + EJB, I tried to inject my dependencies directly into the constructor as I did in Spring and as it is supported by CDI but in an EJB: @Stateless public class…
-
4
votes0
answers599
viewsMariadb for when I have many hits on wordpress
I have a Wordpress site, used Mysql before in Centos, I decided to migrate to a Debian 7 with Mariadb, but when I have more than 30 simultaneous blog accesses, the database to. Go on down mine…
-
4
votes2
answers126
viewsHow to calculate an optimal value for Scrapyd’s CONCURENT_REQUESTS variable?
One of the default settings in Scrapyd is the number of concurrent processes (is 16). CONCURRENT_REQUESTS = 16 What would be the best methodology to calculate an optimal value for this variable? The…
-
4
votes1
answer410
viewsPhonetic Research for Telephone Directory
I’m having a problem searching for phrases, I have a search field and I’m using the LIKE operator to do this, but it’s not serving me correctly, I tried now using SOUNDEX, but it only returns a word…
-
4
votes2
answers408
viewsLong Polling with mysqli does not return data
The data of data php. file database does not return, if I change the whole data php. for any html text it returns running long Polling, but if I try to use mysqli it returns nothing. What can I do…
-
4
votes2
answers2082
viewsHow to improve the process of generating unrepeated random numbers?
I have a randomized number creation algorithm for lotteries that have the following characteristics: 1° The number to be generated must be reported. 2° Numbers cannot be repeated. 3° Numbers need to…
phpasked 9 years, 10 months ago Gabriel Rodrigues 15,969 -
4
votes2
answers1969
viewsHow to make a CSS animation stop in the last state?
I have a div, which is lively, and would not like that at the end of the animation she turns to the state of when she started, because she ends up returning to the original state at the end of the…
-
4
votes2
answers1848
viewsIs referencing the table itself in Mysql correct?
I am working on a system where the previous programmer structured a particular table of posts referencing itself (to be able to identify what would be the post comment) Sort of like this: Posts --…
-
4
votes3
answers4171
viewsTime in Java counting seconds in real time
I want to show the system time and the seconds counting in real time in Java.
-
4
votes1
answer107
viewsTwo different builds same source Visual Studio
I have a Solution with several projects. I need to create two "profiles" of builds different for two situations. This is possible? In build A I will show the menus X, Y and Z. In build B I will show…
-
4
votes3
answers2948
viewsHow to add contiguous numbers from an array?
I have a array of numbers being typed by the user, and need to add the numbers of this array. import java.util.ArrayList; import java.util.Scanner; public class Questao3 { /*3.Fazer um algoritmo…
-
4
votes1
answer2727
viewsSelect list option selected with Angularjs
I’m implementing a select list that has as options the Brazilian states. I would like to return the selected value according to the return of a web service. For example, if the service returns RJ…
angularjsasked 9 years, 10 months ago Paulo Henrique Queiroz 419 -
4
votes1
answer818
viewsWhat is the Dynamic Proxy generated by the Entity Framework?
What is the Dynamic Proxy generated by the Entity Framework? And a class? What is its function?
-
4
votes2
answers205
viewsWhy match returns an object - JAVASCRIPT
I was always one of those who understood the functions and applied, but I want to understand, why this: var a = "__myseld=ej232;Nome=Alexandre"; var as = a.split(";"); var x = 0; while (x<5) {…
javascriptasked 9 years, 10 months ago Ale 2,461 -
4
votes1
answer450
viewsKnowing line and file that is running a method
I want to know if it is possible to know the line and file that is running a method. For example, I have a class Log, with it I log users' logs. Log.php <?php /** * Classe de Logs */ class Log {…
phpasked 9 years, 10 months ago KaduAmaral 11,472 -
4
votes2
answers5928
viewsHow to remove the default arrow(from the browser) in the select tag?
I’m making a < select > customizable. The problem is the different renderings that happen in browsers. In fact, you just need to hide the arrows that appear: in IE: and in the FF: In Chrome…
-
4
votes1
answer707
viewsPass values from a JSON to html via Jquery
I am trying to take the JSON data from Twitch and manipulate it in html, in case I wanted to put together a simple list with the online channels, using Alert it shows the channels but I thought to…
-
4
votes1
answer1467
viewsHow to avoid misuse of a REST API?
I am developing an application that is composed of three parts: Backend (BD + API), developed with Symfony 2 + Doctrine 2 IOS client Android client Most client requests for the API must be…
-
4
votes1
answer540
viewsHow to make Blur effect on button?
Is there any way to 'Blur' effect on an image button using C# (Windows Forms)? I know this is possible with WPF, but I have no way to change it now. If not possible, there is something that gives me…
-
4
votes2
answers98
viewsDoubt while sql
I need to get all five figures before the ~3L of the XXX: ~1BLB~2B1C~3L~1TPL~2B39~3L~1RAD~2C1D~3L And so on and so forth. I already managed to make it takes the first value before the 3L with this…
-
4
votes1
answer737
viewsCan I post on my own facebook using the API?
Can I post on my own facebook using the face SDK? Can I read my feed with an SDK? the question is simple, I want to build my own interface to use my facebook profile the way I wish.
-
4
votes2
answers1833
viewsDynamically execute model class method from an ajax request to the controller
I am creating a feature in my system for dynamic component reloading, so that queries are executed that are allocated in model layer classes, through AJAX requests. However, since I use the MVC…
-
4
votes1
answer1442
viewsReport display error (Fastreport) in Multi-language software
I have the following error in displaying a report made in Fastreport. This error started to occur after doing the Internationalization of my software using the native features of Delphi XE7…
-
4
votes4
answers2080
viewsHow to capture elements in a json structure using javascript
I need to get some elements inside a JSON structure with Javascript. I can get unit elements like this: alert(response.paymentMethods.CREDIT_CARD.options.MASTERCARD.images.SMALL.path);…
-
4
votes2
answers1415
viewsHow to authenticate a user via HTTP request?
I’m trying to authenticate users in a forum Vbulletin by means of an application desktop using components of the package swing, the code is working but I believe that this is not the best way to do.…
-
4
votes2
answers157
viewsWhy are some "git" commands preceded by a dash and others by two dashes?
I’m learning to use the git and I noticed that certain parameters are preceded by a dash while others are preceded by two. Example: git branch --merged git branch -d nome Why?…
-
4
votes1
answer500
viewsSome devices can’t find my app in the playstore
From time to time I’ve been updating the application, some devices do not find, I tried on my tablet positive 10 inches, and did not find. I have already configured the manifest to receive support…
-
4
votes1
answer287
viewsData stream with socket.io
Hello I am doing database data stream this way below, sé que esta sobrecarregadno muito o navegador do client, teria outra forma de stream sem ocorrer essa sobre carga? var express =…
-
4
votes3
answers739
viewsAdd space to each letter in UPPERCASE
How to make space using PHP when you start a capitalized word, for example, a string oiEusouMuitoLegal result in oi Eusou Muito Legal.
phpasked 9 years, 10 months ago Vinícius Lara 3,750 -
4
votes2
answers213
viewsHow to get value from a checkbox
When I submit the form input does not return the value of checkbox and says that the $_POST['newsconf'] there is no. HTML <input type="checkbox" id="newsconf" name="newsconf" value="1"/>…
-
4
votes1
answer147
viewsHow to show the build version?
I see in some pages and systems the compilation version. I’d like to show in a view the compilation version of my ASP.NET MVC project.
-
4
votes3
answers1670
viewsLimit HTML5 Audio Controls
I wanted, if it were possible, of course, that a component <Audio> HTML5 only shows the mute, and the rest did not appear; as the volume, play, pause, etc..…
-
4
votes4
answers249
viewsMost common words among Rows
Is there any function in Mysql that gives me the 3 most common words between a column in format TEXT one-table? Example Maria Joaquina Maria Antonienta Maria B. among these Rows he returns Mary…
-
4
votes2
answers1659
viewsWhat is and what is the reserved word "strictfp" for?
I don’t know this keyword, I’ve never seen an example of code in which it was used. Until today I discovered her existence by reading some books about Java, however it was not clear what the utility…
-
4
votes1
answer4417
viewsWhat’s the difference between print and echo in PHP
What would be the difference between using print or echo in PHP, since both print a text on the screen. When it is most advisable to use which? echo "echo"; print "print";…
-
4
votes3
answers2598
viewsHow to know which component is in focus?
I am making a form (Windows Forms) in C# and I would like to know how to get the component that is focused. In my form there is a SplitterPanel and within it, in the Panel2, has a TabControl with…
-
4
votes2
answers887
viewsCan I use a variable to overwrite a method?
When rewriting a method, in PHP, I can use a variable to receive the method? I did the example below and it worked normally, but I don’t know if this is correct or if it is the best way to rewrite a…
-
4
votes2
answers755
viewsWhat does the dereferenced compilation error mean in Java?
In a test code (in Java), whose goal was to convert a string in one another string between upper and lower case letters, I received the following error at the time of compilation: error: char cannot…
-
4
votes1
answer229
viewsSrlua - Problem after compiling
I’m trying to compile a simple script that contains: require 'classlib' human = class() function human:__init(name) self.name = name end gabriel = human("Gabriel") print(gabriel.name) With srlua,…
luaasked 9 years, 10 months ago Gabriel Sales 1,257 -
4
votes2
answers1134
viewsHide Menu Navigation Drawer when choosing item
I would like a help of how I can do when clicking on the Nvaigation Drawer item go to the specific Fragment, and in this Fragment I do not want to make available the Navigation Drawer for the user.…
-
4
votes2
answers201
viewsHow to save space in audit log?
I was creating a system that provides me data of my users according to the date I request, from X to Y for example. And the only way I could find for that was to create a table that way: date with…
-
4
votes1
answer216
viewsHow to manipulate Widgets from the main window through a signal function ( C and GTK+)?
I have very little experience and am coding a program for a college job. I am using the GTK+ 2.0 library. There are several widgets in the main window, among them a button that I connected to a…
-
4
votes2
answers949
viewsProblems with JPA - Hibernate does not persist WHOLE object
Good morning guys! I have the following entities: package br.com.sistema.entidade; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.IdClass; import…