Most voted questions
150,413 questions
Sort by count of
-
4
votes2
answers1169
viewsRemove HTML tags
In terms of efficiency and performance, which of these codes is the best option to remove HTML tags in a string? Option 1: string ss = "<b><i>The tag is about to be…
-
4
votes1
answer187
viewsRename an element in a Jlist
Greetings, my friends. I have a problem in Java. I am trying to add a "Occurrence" element to a Jlist. This element has 4 elements within it, which I need to maintain. So far so good. However, the…
-
4
votes1
answer541
viewsType of android keyboard, text and number
There’s how I make the android keyboard stay with two types, in case I wanted numbers and letters. I tried using android:inputType, but it didn’t work. Do you already have a way to solve this? Thank…
-
4
votes1
answer1645
viewsMalicious code on all pages
Hi, I went to cPanel and saw by browser that some script was being loaded from another site. Upon seeing the source code, I came across the following code: <script…
-
4
votes2
answers243
viewsIs it safe to use $_SERVER variables to log errors?
We all know that it is possible to manipulate some information during a request, I never had to use anything like $_SERVER[HTTP_HOST], $_SERVER[REQUEST_URI] or $_SERVER['REMOTE_ADDR'] because I know…
phpasked 8 years, 11 months ago Renan Cavalieri 2,748 -
4
votes2
answers545
viewsFind string inside a php tag
When using in various types of embed from various websites, go only search for the link. For example: Youtube: <iframe width="420" height="315" src="https://www.youtube.com/embed/HLhuNbO0egU"…
-
4
votes1
answer799
viewsUsing the lower triangularization method calculate the determinant of a transposed matrix
Using the lower triangularization method, I have to calculate the determinant of a transposed matrix. I want, from the transposed matrix, to calculate the determinant using the inferior…
-
4
votes1
answer181
viewsDelay of the swing timer.
I’m making a little game that flashes some images in order on the frame, my goal is that they blink in order, but they’re all flashing together: public class Logica { List<Integer> seqAlea =…
-
4
votes1
answer2809
viewsPOST via Ajax with Django
Based on https://godjango.com/18-basic-ajax/ I am trying to make a post via Ajax using Django. Then I created a project on Github https://github.com/rg3915/front-dj-test #urls.py…
-
4
votes2
answers35
viewsStructures and selection of conditionals
Good afternoon! I’m doing a program that reads various cow data: among them age, production, etc. However, I am in doubt about how I can interrupt the event when typing code =0. As it is in the…
-
4
votes1
answer200
viewsdoubt about exiber values and decrypt in the Chained Queue?
How to display the values in the correct row because it displays from last to first. #include <iostream> #include <cstdlib> using namespace std; struct Item { int dado; Item *prox; };…
-
4
votes1
answer961
viewsPost Idhttp FIREMONKEY Delphi XE7
Following previous question: Previous question on the same subject. Now what he’s showing is: http/1.1 404 Not Found. Code used: Functional in VCL: function TForm1.UploadArquivo(server, script,…
-
4
votes2
answers634
viewsHow to Remove Input Image Edge
I’m wearing a input image to work as a favorite button <input type="image" class="btnFav" title="Favoritar" /> Only he gets a square edge on him I’ve tried using the css down, but nothing…
-
4
votes1
answer1722
viewsSelect between two tables in PHP
I am currently using the following query to select all saved posts in the database: "SELECT * FROM postagens ORDER BY id DESC LIMIT 7", however, I want to select only the posts made by "friends".…
-
4
votes2
answers1084
viewsRead a "value" inside a "<select></select>"
How to read the values of a <select></select> using HTML5 + Javascript? Ex: <select name="tAtividades" id="cAtividades"> <option value="0" selected="selected">Selecione o…
-
4
votes1
answer2947
viewsHow to change primary key referencing foreign key to auto increment
I have two tables, one call aluno and another call HistoricoAluno. After creating them, a change was missing which was to leave the primary key of the table alunos as auto_increment. By trying to…
-
4
votes1
answer2299
viewsJS + HTML Image Preload
Guys, I have an embedded application where our processor is not the best, which ends up giving some problems. Let’s say I need to display images of 10 to 10 seconds, in theory, it would only be to…
-
4
votes1
answer645
viewsHow to serialize with input disable?
In a reply to SOEN They pass an approach of temporarily disabling the camps: Example: var myform = $('#myform'); // Encontra os elementos e remove o atributo disable var disabled =…
-
4
votes2
answers409
viewsConvert date format
People, I need to convert the data format of my form fields to save in my database. As the data is coming from the form by array I am not able to capture them and convert before recording. The date…
phpasked 8 years, 11 months ago Marcos A. Silva 421 -
4
votes2
answers861
viewsHow to generate code before entering data into the database
I need to generate a code that matches id which will be auto-incremented in the database. It will be a routine that checks the last id generated and generates a code that will be the id later before…
-
4
votes1
answer102
viewsHow to model a set of 1 to 4 predetermined values
I am modeling a Mysql database where the main entities are documents. Among several other fields, these documents relate to one or more phases of a particular project. There are 4 basic values…
-
4
votes2
answers42
viewsHow to not serialize a particular type of element with jQuery
I have a form and I don’t want to "serialize" the input’s of the kind checkbox, soon tried some options such as below: var form = $('#service-item-form :not(:input[type="checkbox"])').serialize();…
-
4
votes5
answers19374
viewsHow to check if a field of type text or ntext is null or empty?
How can I check whether a field of the type ntext is null or empty in where? I got the following select SELECT Subject, Notes from DocumentNotes where Notes is null or Notes = ' ' but when comparing…
-
4
votes3
answers523
viewsGet code from a li
I need to get the <li> complete at all checkbox marked. My code that is mounted dynamically is below: HTMLNovo = ' <li class="item item-checkbox widget uib_w_69" data-uib="ionic/checkbox"…
-
4
votes1
answer207
viewsCheck closed connection
How can I check if a connection has actually been closed? $con = new Conexao(); $con->abrirConexao(); ... $con->fecharConexao(); I use a variable to instantiate the class Conexao which is in…
-
4
votes3
answers4136
viewsHow to subtract a date from the current system date
I want to subtract the current system date with the date that is saved in mysql. I insert the date into mysql via INSERT, manually, because I will not always use the current date to insert into the…
-
4
votes2
answers4252
viewsError: Undefined object reference for an object instance, how to resolve?
I have the method ChamadaEfetuada(MAluno) : bool checking whether the call was made to a particular student, this method is used in another method ChamadaEfetuada() : bool that instead of checking…
-
4
votes1
answer358
viewsDoubt about the socket.io functioning
I have a question regarding the socket.io that I have already researched in several places and most of a rolled up or uses some obscure terms, but ends up not answering the doubt directly. The…
-
4
votes2
answers102
viewsDoubts related to recursion
Good afternoon. I am developing recursion methods that work on a binary tree of research, but I am having great difficulties in recursion. For example, the method below should return the tree…
-
4
votes1
answer114
viewsHow to optimize this code?
Is there any faster (performative) way to compare the current value with the previous (bank) value with Entity Framework? Instead of selecting Id for Id (according to property Discount code below),…
-
4
votes1
answer3147
viewsUse case diagram - include and extend
Questions like the one I’m about to ask have been asked, but I can’t understand and apply to my scenario. I have the following records: - Register of equipment category - Equipment register To…
-
4
votes1
answer890
viewsPrint HTML page in mobile browsers
I’m building a system that will work on the web in PHP, where I have to make some impressions of some vouchers. The system can print the pages in HTML when I am on the computer, when I am accessing…
-
4
votes2
answers756
viewsHow to Download FTP Files
I need to download txt files that are on an FTP, I tried to use the following repackaged code below for this but it does not do what I need. The first parameter of the Downloadfile method is the URL…
-
4
votes1
answer202
viewsUnexpected Error using parse_args() function of the Argumentparser object in Python
In a simple code I’m doing in Python, I get the exception below, when I call the function parser_args() on the type object ArgumentParser: Unexpected error: (<type 'exceptions.SystemExit'>,…
-
4
votes2
answers1471
viewsAllow special characters as Java keyboard input
I am using Scanner to read some keyboard data, however, accents and special characters are not identified. For example: João and Maurício appear with a small square in the accented letter, however,…
-
4
votes1
answer2752
viewsWhere is stored the path of posts images in Wordpress?
I am building a plugin in cakephp custom, because the wordpress plugin itself does not work, until then, I managed to use everything, from the wordpress posts table, the problem is that I do not…
-
4
votes1
answer279
viewsDo not let user have access to script data
I have a script generated in python and calls functions in R. At first it was developed for internal use, but now they are thinking of releasing for customer use. However, they do not want users to…
-
4
votes2
answers1951
viewsTesting whether a radiobutton input is selected in PHP
I created a table that is the summary of all my previous calculations and in this table I created a field where I put a radial input to be able to select one of the calculated options. I need to…
-
4
votes1
answer292
viewsLog data using Combobox
I’m trying to create a real estate company On-Line, I have already built the structure, but I have no idea how to register the States, Cities and Neighborhoods of the same using a Combobox. For…
-
4
votes1
answer336
viewsError when rounding Bigdecimal
I’m performing a calculation with two methods, only since the attributes are of the type double, I’m using the BigDecimal to perform the operation and after that convert to two decimal places only.…
-
4
votes2
answers119
viewsBest way to give Binding on objects from 1 to N - Asp.net MVC
I would like to know how best to give the Binding of data in the object FuncaoGrupo of my Controller. Each item in the list Funcoes will generate 4 Checkbox in View. I have the following class:…
-
4
votes1
answer84
viewsHow to load a plugin according to the width of the screen?
Hello, my problem is this, I have two Plugins with similar functions, however they cannot be loaded at the same time as errors occur. Is there any way to load a particular script according to…
javascriptasked 8 years, 11 months ago Vinícius 163 -
4
votes1
answer90
viewsIs there any way to get back to the last branch in git?
The title says it all. Around and a half we use the git as follows: git checkout branch_x git checkout branch_y git checkout branch_x x can be master, or some Feature branch whichever. I wonder if…
gitasked 8 years, 11 months ago Anthony Accioly 20,516 -
4
votes2
answers4908
viewsTake the value of the Avascript table and place it in an array
I have a problem, I made a dynamic table in Javascript and I want to play your data in an array, I tried to use JSON but when I click on the button to run the event it does nothing. I don’t know if…
-
4
votes1
answer352
viewsHow to return all data from an SQL query outside of Function?
I have a function which has the objective of showing all the results of an SQL query to the database and need to assemble a view with the data of this query. To function is the following: function…
-
4
votes2
answers1776
viewsCreate a table with sorting using Datatable
I am creating a table and need to give option to sort the table by the field you prefer. I tried to use the datatable the data is filled correctly in the table but when I click on a header to sort,…
-
4
votes3
answers3226
viewsHow to identify if user is typing number or characters?
I have a textbox: <TextBox GotFocus="buscador_GotFocus" Tap="buscador_Tap" KeyUp="buscador_KeyUp" TextChanged="buscador_TextChanged" Name="buscador" Grid.Row="0" DataContext="Teste"/> In it…
-
4
votes1
answer3023
viewsHow to Delete Methods Automatically Generated by Netbeans?
I’m making a GUI using the JFrame automatically generated by the Netbeans IDE and had twice-clicked on a JButton unintentionally and it automatically generated a code of ActionEvent which cannot be…
-
4
votes1
answer134
viewsHow to create a "load" until the function is fully executed?
Hello. To get to the point: assuming that I have a function with repetition structures that, depending on what the user fills, the existing process in this function can take some time, and while it…
-
4
votes1
answer371
viewsSet Pagseguro API delivery address
I have to pre-set the delivery address of the pagseguro in my code PHP. The problem is I’ve tried and I can’t, what I can do is just set the billing address. My code: $paymentRequest = new…