Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer97
viewsDifferent ways of exposing data
It is wrong to expose data and actions that should (inputs, and buttons) be made on these data in tables? Example in the figure below this being displayed data and actions that should (inputs, and…
-
4
votes0
answers133
viewsUncaught Typeerror: Object is not a Function. Clone html and Back button
I’m having a system problem where I need to make a button for come back and thought of a function to clone using and a function for the button come back. But the problem is that when I log in to the…
-
4
votes3
answers1464
viewsHow to control volume to app media on Android
I’m like a doubt on how to control the volume of the app’s media. I’m using this method: Button button1; MediaPlyer mp; button1 = (Button)findViewById(R.id.button1); button1.setOnClickListener(new…
-
4
votes1
answer1365
viewsCountdown in two tables
I’m having trouble counting items pertaining to neighborhoods. I need to list all the neighborhoods of the city X and show the items available cars and motorcycles. In the example I only used one…
-
4
votes2
answers571
viewsBatch to choose drive letter
I’m creating a menu for deploy imaging via winpe. Inside this I run some commands and apply to files that are stored on an external hard drive. I even managed to make one if exist c:\IMG GOTO and…
batchasked 9 years, 9 months ago Luiz Gustavo Batista 81 -
4
votes1
answer180
viewsDefine style in the :Hover event of an inline HTML form element?
It is possible to define style(CSS) of a single element HTML so inline at the event :hover? How to define style(CSS) of a single element HTML so inline at the event :hover?…
-
4
votes3
answers619
viewsDELETE FROM users WHERE user_id = $id
I have a script simple PHP+Mysql query: <table > <tr> <td ><h2>GERENCIAR ANUNCIOS </h2></td> </tr> <tr> <td > <table > <tr> <th…
-
4
votes3
answers1491
viewsAdd field at position I want in sql server
Every time I make one ALTER TABLE and add a column, this field goes to the end. In design mode, using the Sql Management graphical tool, there is the Insert Column option at any position, but it…
-
4
votes1
answer216
viewsHow does the reference to undeclared variables work in PHP?
In PHP, according to the manual, the reference of one variable serves for a variable to point to the same place where the other is in memory. I also saw that when we declare references to a variable…
-
4
votes1
answer2623
viewsMerge csv files into one
I have several csv data files that have a common column named "Data". If I read two files from this directory the reading is done in the correct way: > P1<-read.csv("02650019.csv", header =…
-
4
votes1
answer1164
viewsResolve SVN error: "must be ancestrally Related to..."
With Tortoisesvn I created a branch for production from my trunk, only after a while when I try to do the merge of trunk in production gives the following error:…
-
4
votes1
answer1614
viewsWriting in Rectangle - HTML Canvas
I’m using the following code var canvas = document.createElement("canvas"); canvas.width = 55; canvas.height = 20; var ctx = canvas.getContext("2d"); ctx.fillStyle = "red"; ctx.fillRect(0, 0, 100,…
-
4
votes1
answer282
viewsIs sending parameters to another function using object or hash a good practice?
Exemplo: function atualizar(dados, events) { //faz qualquer tratamento dos valores var hash = { novoValor: dados, outroValor: event }; // primeira opção return customize(dados, event); // segunda…
-
4
votes0
answers136
viewsStackoverflowerror - Infinite loop when deploying Ear with ejb and Demoiselle
By doing the deploy an EAR with an EJB that depends on the Demoiselle-core, an exception to Stackoverflowerror is launched. It happens that when trying to create a Resourcebundle…
-
4
votes4
answers1215
viewsHow to make an HTML list searchable
I want to put a search on the page, similar to the CTRL+F browser. I have a list of links and this search would only point to this list. Follow a print for better understanding.…
-
4
votes1
answer1320
viewsComposite primary key or primary key plus single index?
I am developing a report in my system to control the productivity of teams, the table of teams has the following information: (tblequipe) | id (pk) | nome | meta | | 1 | EQ01 | 5 | | 2 | EQ02 | 7 |…
sql-serverasked 9 years, 9 months ago mateusalxd 2,768 -
4
votes1
answer407
viewsASC and DESC sorting without losing variable value
I am trying to perform a sort of records on a page by firing a List/Menu, but by firing the same I am losing values of variables from a first selection. When entering the products page I already…
-
4
votes2
answers488
viewsFunction in mouseover event does not work in Firefox
I have a Javascript function that is enabled through the event onmouseover in a table with records, the field changes color when I move the mouse, so it’s okay the problem is that it only works in…
-
4
votes2
answers558
viewsBreak inside method that returns Boolean
I’m trying to make a loop for, who at a certain time returns true, and out of the loop. Example: public boolean autentica (Usuario usuario) { for(i=0; i<listaUsuarios.size ; i++){…
-
4
votes1
answer358
viewsSmall Back Office
I’m raising a little back office in PHP, Mysql and HTML and I have a little doubt. Table: IDNoticia Dia Mes Titulo Noticia Then in HTML/PHP I’ll do echo to show the day, month, Title And News but I…
-
4
votes1
answer162
viewsQuery to sort by two Mysql dates
I have my table tbl_noticias with two dates of the type date: data_criacao_noticia and data_atualizada_noticia. The aim is for the listing to be ordered as follows: if the data_atualizada_noticia is…
-
4
votes1
answer7881
viewsData saving on Android
I have a project based on the following 'folders' structure that will be saved some data in the external memory: /AppName Example1 [ Text files and etc. ] Example2 [ Text files and etc. ] Let’s say…
-
4
votes1
answer156
viewsSolr I/O increases over time
I’m running about eight servers with solr Servers (version 3.5) behind a Load Balancer. All servers are identical and LB is set to weight by the number of connections. The servers have about 4…
-
4
votes3
answers16370
viewsBat to enable and disable proxy
I need a bat to activate and disable proxy already with the ips set someone can help me ? To activate use the following command: REG ADD…
-
4
votes2
answers131
viewsProject imported from Eclipse to Androidstudio has no R reference
I imported a project from Eclipse for Android Studio, but he has no reference to the old R.
-
4
votes2
answers3188
viewsHow to receive data via POST, sent from android to PHP webservice?
I had made a webservice in java, now I’m switching to PHP and I’m having difficulty implementing a page that receives via POST a JSON that the Android app sends. ANDROID public static String…
-
4
votes1
answer875
viewsEntity Framework auto relationship enable cascading delete
How to create a cascading deletion, in a self-relationship using the fluent api and enable this in entity framework? Code: Public class Usuario { public int UsuarioID { get; set; } public int?…
-
4
votes2
answers581
viewsLocation of a point within the arc range
I’m looking for a Javascript function that returns a random value within a range in the area of a circle. The interval would be along the radius with distances equivalent to the center point and the…
-
4
votes2
answers509
viewsHow to read the width and height of a physical image file?
How to get the width and height of a physical image file?
-
4
votes3
answers10666
viewsError in publishing application to OSI
I am publishing an application on IIS, and when accessing it I get the following error: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the configuration data…
-
4
votes1
answer848
viewsAutocomplete shows no results in View input
I have seen other cases in some answers here, I tried to follow the steps of other answers and did not help at all! I’m having a doubt, this is my first time using autocomplete of jquery, I’m new in…
-
4
votes1
answer127
viewsBest practices when using Sqlcommand? Text or Storedprocedure?
I’m wondering which of the following approaches is best? 1 - Add a file *.sql as Resource, then run the Sqlcommand with the CommandType.Text. 2 - Add a Store Procedure to the Database, then run the…
-
4
votes1
answer462
viewsHow to test the service layer
I’m developing a multi-layered, multi-module web project. For the persistence layer I am using JPA 2.1 and Hibernate 4.2 and for Junit 4 tests. In this architecture my project was divided into…
-
4
votes2
answers1804
viewsRunning program in the background
How to run a program in the background, and when the user presses a key the program does something? I only know how to do with the program in focus.
-
4
votes3
answers2408
viewsCielo Integration By Page Store
I have a problem that I have tried to solve in several ways, but so far nothing and so I decided to come here. I am implementing the Gateway Cielo’s payment solution, the By Page Store, where the…
phpasked 9 years, 9 months ago Jorge Ribeiro Junior 346 -
4
votes2
answers2341
viewsHtaccess is not redirecting to 404 error page
I have a .htaccess with the following configuration: ErrorDocument 404 /erro404.html <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^index/?$ index.php [NC,L] RewriteRule…
-
4
votes1
answer400
viewsLine break interferes with regular expression capture
I’m needing to capture some Divs information that are sometimes separated by breaking lines, and this makes the operator (.*) capture not. For example, I have regular expression: <div…
-
4
votes1
answer92
viewsHow to know the last weekend of a month in LUA
How to get the last weekend of the month of March to change your time to daylight saving time. Code to identify if it is the month of March and if it is a Sunday. month_now=os.date("%m")…
-
4
votes1
answer348
viewsapache error = get overlap result error
I have an apache error that I can’t fix, in php log no error is reported only in apache. Has anyone identified anything like this? Below the apache log: [Mon Jan 05 10:20:26 2015] [warn] [client…
-
4
votes1
answer604
viewsAJAX request error - ASP. Net and Jquery
I have an aspx file where I created a script with an AJAX call to execute the method populaGridMembros on the table gwMembros, the method is working perfectly and returning a string in JSON format,…
-
4
votes3
answers14619
viewsjava.lang.Noclassdeffounderror: Caused by: java.lang.Classnotfoundexception: When run . jar
I am developing in Netbeans IDE when running through the IDE everything works fine but when I do clean and build and create . jar while executing casts me this exception: I tried to compile package…
-
4
votes1
answer57092
viewsHow to resolve java.lang.Nullpointerexception?
I created the class Server! However an Exception of the type is launched java.lang.NullPointerException! I wonder if someone could help me with this problem? The class is as follows: public class…
-
4
votes1
answer266
viewsCreate check multiple values of a variable
I have a set of rules that take up a lot of space in my code: if ($ni == '1' && $status2 == 'Aberto' ){ $url_edit = "<a href='edit_os.php?id1=$id1'>"; }elseif ($ni == '1' &&…
phpasked 9 years, 9 months ago Fabio Henrique 2,156 -
4
votes1
answer454
viewsHow to simulate a time trial with Tkinter?
I am developing a game in python "Who wants to be a millionaire" and wanted to put in the game the "time trial" to appear the time while we answer the question and when time runs out and the…
-
4
votes1
answer460
viewsHow to enable and disable automatic scroll in a chat?
I am having doubts in the implementation of this resource. I have a link that does this action, like enable and disable the automatic scroll. For better understanding, visit JSFIDDLE below: EXAMPLE…
-
4
votes1
answer158
viewsWhy does Facebook’s XHR request have that code?
I was analyzing the XHR requests from Facebook for study purposes and came across a code that I found curious to say the least. On the link similar to this 4-edge-chat.facebook.com/pull, has the…
-
4
votes3
answers5090
viewsHow to make eclipse auto-complete code automatically without pressing Ctrl+space?
<ui:define name="menu"> <ui:include src="/includes/menuPrincipal.xhtml"></ui:include> </ui:define> <ui:define name="conteudo"> <h:form id="frmFabListagem">…
-
4
votes0
answers462
viewsDjango Session timer Countdown
I have it on my login screen: SESSION_COOKIE_AGE = 1200 # 20 minutos and would like to show the remaining time on my template. Someone knows a good middleware or package for Django that adds a time…
-
4
votes3
answers1895
viewsDynamic Query in a List
How to apply a filter to an object List generic using Lambda? I know with Reflection i can get an array with the properties names of my object and through itself Reflection recover the property of…
-
4
votes0
answers394
viewsPHP Class PDO works all CRUD on the local server when the select works
I have a problem that I could not solve. I have already researched here and found nothing like it. I have a PHP application, using the PDO class for database connection. So I got her the CRUD:…