Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer610
viewsDelete the last value in an array
I have an array in which each index contains a letter, which together form a sentence. I was unable to delete the last array value. After searching a lot, I was able to delete, but I think the code…
rubyasked 9 years, 6 months ago Rafael Almeida 2,585 -
4
votes2
answers798
viewsApache + Delphi XE7 + Datasnap. Memory problems
I developed a program with Apache, Delphi XE7 and Datasnap. My Apache httpd.exe consumes memory until it gives the "Out of Memory" message so I need to restart Apache. I configured Servermodule…
-
4
votes2
answers2656
viewsPHP session does not work
I have a system from which I use session to validate the user. For validation I use the code below: <?php session_start(); public function validaUsuarios($loginUsuario,$senhaUsuario){ .......…
phpasked 9 years, 6 months ago user24136 -
4
votes2
answers1347
viewsFind out how many days passed from one date to another
In a java program, where the person first inserts the day, then the month, then the year, how do I know how many days passed from that date inserted until another later date that will also be…
-
4
votes2
answers1201
viewsModify Canvas in real time
How can I use the tag canvas HTML5 and make this change in real time as I input the data into input? I’ve already done the form and put the tag canvas page. I was wondering if JQuery it is possible…
-
4
votes2
answers1348
viewsUpdate involving 3 tables
I have 3 tables: TABELA A ID ID_TABELA_B 1 188 2 189 3 190 4 200 TABELA B ID ID_TABELA_C 188 22 189 22 190 22 200 23 TABELA C ID NAME 22 Gato 23 Cão Table A is linked to table B and table B linked…
mysqlasked 9 years, 6 months ago Filipe Moraes 8,737 -
4
votes1
answer575
viewsUse of @Transactional Demoiselle
I’m having trouble using the note @Transactional Demoiselle. When I was managing the transaction "in hand" with a EntityManager injected, everything was fine. But now using the @Transactional, the…
-
4
votes1
answer7965
viewsIntegrity Constraint Violation: 1048 Column 'name' cannot be null
I am trying to create a system to upload PDF’s and always returns me the following error: Error Registering Record! - SQLSTATE[23000]: Integrity Constraint Violation: 1048 Column 'name' cannot be…
-
4
votes2
answers412
viewsProblem when changing the type of a column in the model using JPA annotation
I have a column in the database that is limited to receiving a varchar(255), but I need to change this to a bigger size. For that I added these annotations in the field: @Column(nullable = true,…
-
4
votes2
answers3387
viewsFinish a process programmatically
I want to make a program that presents a Task Manager user. I already have the rest of the logic, but how can I finish a process (task Kill) with C#?
c#asked 9 years, 6 months ago Vinicius Marcel Conceição 41 -
4
votes1
answer1025
viewsConvert PDF to DOC
It is possible to convert a PDF to a word document by keeping all formatting, alignments, fonts and tables in the converted document, using apache-poi or some other api?
-
4
votes2
answers283
viewsRegexp does not take input value
I need to extract the value of a tag html <input value="2530317385" name="X-Tmx-session-id" id="X-Tmx-session-id" type="hidden"> I’m wearing a Expressão Regular to return the value of input…
-
4
votes1
answer137
viewsHow to transcribe Javascript functions to PHP
How can I transcribe these functions to PHP? function bytesToWords(bytes) { var str; for(var i = 0; i < bytes.length; i += 2) { var char = bytes[i] << 8; if (bytes[i + 1]) char |= bytes[i +…
phpasked 9 years, 6 months ago Vinícius Lara 3,750 -
4
votes1
answer456
viewsScroll with Animate does not work
The code below in jQuery runs perfectly well in Google Chrome and Opera. The problem is that it doesn’t work in IE and Firefox, it used to work. // Jquery document... $(document).ready(function() {…
-
4
votes2
answers2045
viewsPHP accent problem, Mysql
I have a very strange problem with my PHP code. All my charset are correct <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta charset="utf-8"> I already use the…
-
4
votes1
answer114
viewsError in logical TV control - Java
I’m a beginner in java and I’m having a hard time making the button btnVolumeUp raise the counter. First I have this TV class where I created the methods. public class Televisor { int canal = 0; int…
-
4
votes3
answers1952
viewsHow to get a text from a Qlineedit in Qt?
For example, I have a LineEdit, when I press a button I want to pick up what I wrote on this LineEdit and store a QString.
-
4
votes2
answers130
viewsWhat is the equivalent of a functional specification for games?
I work in a company that writes software for commercial use, usually in style sistema. To specify the software we use several documents among them: Functional Specification MER (Database Modeling)…
-
4
votes2
answers590
viewsOpen subdirectories with explorer in C#
I am making an application whose purpose is to search and open a subdirectory inside a folder that is on a server. But what I can do so far is just search and open the folders that are at the…
-
4
votes3
answers487
viewsHow to update PHP Timezone with javascript using the Date.getTimezoneOffset function?
I’m getting the TMZ end user with this code: TMZ = new Date().getTimezoneOffset() for me it returns 180 and this number I send to the server, so that it adjusts his time with mine, but the function…
-
4
votes1
answer4944
viewsWhat is Javascript interrogation for?
Citing an example: if(this.gap > 1 || !this.sorted) { this.sorted = true; this.gap = parseInt(this.gap / 1.3) == 0 ? 1 : parseInt(this.gap / 1.3); setTimeout(this.name +…
javascriptasked 9 years, 6 months ago Jose Maximilian 773 -
4
votes2
answers72
viewsGeneric, extend to an X or Y
How do I get my generic class to only receive guys who extend X or Y? Example: class MinhaClasseGenerica<T extends ClasseX ou ClasseY> Sorry if you got a little confused, I’m new yet, I can’t…
-
4
votes2
answers2413
viewsConfigure Cordova Sqlite Storage
I am unable to configure the plugin Cordova Sqlite Storage. The steps I follow are: Install the plugin with phonegap plugin add https://github.com/litehelpers/Cordova-sqlite-storage Copy…
apache-cordovaasked 9 years, 6 months ago Marcos Barbosa 91 -
4
votes1
answer236
viewsLatency <audio> Html5 on mobile phones
I am starting in javascript and I have in my hands a simple project but they are breaking my head. The project consists of creating a multitrack player (such as recording studio software) where by…
-
4
votes2
answers108
viewsUpdating Mysql table using sqlSave in R
I’m new to R and I’m trying to add new tables to the database,: Error in sqlSave(connection, dado, tablename = "teste", rownames = FALSE, : unable to append to table ‘teste’ Where: dado =…
-
4
votes2
answers1377
viewsMake Tooltip appear by clicking inside the input
I have the following problem. I have this js code: // Tooltip $("#sel-tooltip").select(function startTooltip(){ $(function() { $('.tooltip-icon').tooltip({ placement: 'top', title: 'Sinta-se em…
-
4
votes2
answers786
viewsHow to update the canvas?
On a canvas, I added 10 small squares, but I also want to be able to change the position of these squares continuously, and that change be drawn on the screen whenever I do (I don’t necessarily need…
-
4
votes1
answer2229
viewsHow to get the value of several fields filled using jQuery?
Currently I have a customer search system that can be searched by Cpf, cnpj, phone, address, email and various other information, I can search a customer asking if there is a customer possessing an…
jqueryasked 9 years, 6 months ago Gabriel Rodrigues 15,969 -
4
votes1
answer134
viewsHow to get the value of the attribute "Lazy" of the datatable primefaces in the bean?
To get the attribute value selectionMode datatable (primefaces) in MB: DataTable dt = (DataTable) FacesContext.getCurrentInstance().getViewRoot().findComponent("IdForm:IdDataTable"); String sm =…
-
4
votes1
answer188
viewsHow to Distribute RIA with JNLP and Java 8
I developed an application and at the time of distributing with JNLP, I found an impasse. With Java 8, it asks to sign the Jars and the certificate must be from a recognized CA. I signed the Jars…
-
4
votes2
answers471
viewsDisplay a sequence of Divs in two lines
Good evening, I have the following structure of Ivs: 1 | 2 | 3 | 4 | 5 | 6 What I need to do is that this structure looks like this: 1 | 3 | 5 2 | 4 | 6 A single detail, is that I need to do this…
-
4
votes1
answer401
viewsHow does an e-CPF work?
I do not have a Card or Token, but I would like to know how it works because in the future I must use in the system to generate Certified/Digitally Signed Medical Reports. I have some questions:…
-
4
votes1
answer9724
viewsHow to access webcam and photo with HTML5 and Javascript?
Does anyone have an example showing how to implement this application and then save the image?
-
4
votes3
answers1170
viewsHow to format title to url format?
For example, I have a title : 'Test Title Url'. But I need to leave it in url format, there is some function that does this?
-
4
votes1
answer122
viewsWhy does Arrays implement Ienumerable but not Ienumerable<T>?
I was making a class that contains an Array of the class Episode: public Episode[] EpisodesList; Then I implemented the IEnumerable<T> in my class. And as expected, I implemented the method…
-
4
votes1
answer319
viewsApostrophe within echo
well I’m trying to put on the slide the images but the bet is breaking , where is the error? edited below the summary after the tests I did even using the \ . meu codigo atual echo "<div…
-
4
votes1
answer812
viewsCapture Accent Words with Scanner
I’m using a Java Scanner to capture Words/Phrases, but when I type in a word it contains or 'ç', the letter turns into a 'square'!
javaasked 9 years, 6 months ago Nickolas Carlos 632 -
4
votes3
answers2449
viewsHow to do terminal loading effect on just one line?
How can I do a loading effect by refreshing a terminal line when running a program in c? Example: carrying... points are increasing. I can do this effect in a while loop but just cleaning the screen…
-
4
votes1
answer580
viewsHigh memory consumption Java Swing application
I am developing a Java application but when performing some tests and noticed that when running the application, my memory consumption increases. And as the use, it always allocates more and more…
-
4
votes1
answer1039
viewsHow to pass the Edittext value of a Fragment to the Textview of another Fragment?
I have a Fragment that contains an Edittext in which the user will enter his name. In another Fragment is Textview which will receive the name typed in the previous Fragment. Fragment Edit (where…
-
4
votes1
answer159
viewsSmall doubt with numerical operations
I was doing a python function that gives me the results (x' and x") of bhaskara formula, just to train the logic a little bit. And playing a little bit in the shell, I ended up discovering something…
-
4
votes3
answers1608
viewsIs it possible to backup a remote bd sql server via c#?
I am using Assembly Microsoft.SqlServer.Management.Smo to back up an Sql Server database to c#. The problem is that the way it is implemented I can only perform the action if I am running the…
-
4
votes3
answers1678
viewsHow to run code just in the first click?
I have a list of buttons (<li>): <li id="1">link 1</li> <li id="2">link 2</li> <li id="3">link 3</li> <li id="4">link 4</li> <li…
-
4
votes3
answers1500
viewsCopy bank record
I used the following query to try to 'copy' a record insert into valores select * from valores where id = 1 However, I receive the following message: An Explicit value for the Identity column in…
-
4
votes1
answer606
viewsSingle email field on Django User model
I have a system that has a user register and I’m using the lib django.contrib.auth.models to make this registration. However I I need this model’s email field to be unique. from django.db import…
-
4
votes1
answer4489
viewsHow to make an ajax autocomplete?
I’m trying to implement an ajax autocomplete, where I do a database search and show the input options, but I’m not able to identify where I’m wrong. Follows the code: <div class="row troca">…
-
4
votes2
answers422
viewsIs it possible to combine first:Child with :Hover?
It is possible to use these two pseudo-classes together? I have a <ul> and I want the first <li> when passing the mouse has a different property. I imagine it would be something like: ul…
-
4
votes1
answer1219
viewsFilter and save to csv
I would like to perform a filter on R. I have a database with 5 variables and more than 5000 lines. One of my variables is "room", in which I have 29 room (ex:Sala1,sala2...). I would like to…
-
4
votes1
answer789
viewsHow do HTTP request?
I would like to make an HTTP request to my college server by mimicking the requests sent by the browser so I can log in and check my notes. I already have experience with mobile development, my…
-
4
votes1
answer219
viewsAutomatic scroll bar
Good morning! I have the following question, I need the bar to go down to the end of the page as a monitoring system, I need to get to the end of it to go back to the top and give a refresh. I can…