Most voted questions
150,413 questions
Sort by count of
-
4
votes2
answers125
viewsHow to remove rows from a table A that has no relationship to table B?
I have 2 tables and want to remove the rows of table A that has no relationship with table B? For example: In table B I have a field FK_ID and I want to remove from table A all rows that have no…
-
4
votes2
answers718
viewsCreate two lines with Owl Carousel inside a foreach
I have a loop that brings 12 images or more. The presentation of these images should follow the following layout: So as soon as the "next" if pressed a new block will appear with 6 more items…
-
4
votes2
answers82
viewsHow to return null if no result is found with find_by?
I’m getting a return as an array ([]) of a scope with find_by and I wish the return to be empty (null). See below some snippets of the code: class Dispute::Conference < ApplicationRecord ...…
-
4
votes2
answers85
viewsFunction Optimization (probably with for loop)
I’m having trouble developing when we talk about for... The basics I can understand now in practice... People have developed this code and I believe it can be reduced to a few lines with for. Notice…
-
4
votes1
answer2772
viewsAlign icon with text vertically
How do I align the icon with the text? .material-icons { width: 24px; overflow: hidden; } .material-icons.tiny { font-size: 1rem; width: 1rem; overflow: hidden; } .material-icons.small { font-size:…
cssasked 7 years, 9 months ago Hugo Borges 5,294 -
4
votes1
answer436
viewsDestroy(Logout) Session_id Codeigniter
Through the code below I recover all users logged in to the system and display them in a table. <?php $dados = array( 'session_id', 'ip_address', 'last_activity', 'user_data' );…
-
4
votes1
answer1323
viewsMake comparison using String.Contains() disregarding accents and case
I need to check how to make a comparison between strings, in C#, using the method Contains() that so disregards the sensitivity of accents and marry of a string. Example: var mainStr = "Acentuação";…
-
4
votes1
answer1223
viewsIs it possible to run a different PHP in a given folder?
I got a problem: The server uses PHP 5.3, which is very old but cannot be changed. I have a script that requires PHP 5.4+, websocket Ratchet. It is possible to install a separate PHP to be used only…
-
4
votes3
answers4343
viewsHow to download file without back-end
I want to force the download of a file and I’m trying these two ways. downloading on the same page: var docLocation = window.location.href + 'docs/apresentacao.pdf'; var iframe = $('<iframe…
-
4
votes3
answers10819
viewsConditional phone mask (with 8 or 9 digits) in Ui Mask. How to do?
I’m using the ui.mask to make the masks of inputs. I have a form whose field can receive both a value from a phone and a mobile phone. I have one currently a input similar to this: <input…
-
4
votes2
answers855
viewsMake comparison using String.Contains() disregarding Casing
I need to check if a given term exists within a string (in SQL is something like like '%termo%'). The point is, I need this done without considering Casing of the two strings. How can I do that?…
-
4
votes1
answer183
viewsHelp with Signal and slots (connect in another file slot)
Good morning dear, created a project (Qt Widget Application) with Qt Creator (Qt 5.6.1). The project has the following structure: myproject.pro Headers dialogform. h mainwindow. h Sources…
c++asked 7 years, 9 months ago Juliano Gomes 69 -
4
votes2
answers6889
viewshow to find and change a specific python line?
I’m learning Python and I’ve been creating txt files, adding things and rewriting them but n managed to modify a specific line, how can I do this?? and also I wanted to know how to find out on which…
pythonasked 7 years, 9 months ago Jairo Bernardo 41 -
4
votes2
answers516
viewsFunction IF Nested?
I wonder how to nest the Function SE as follows: Se G6 for >=20 e <=30 então 100, Se G6 >30 e <=40 então 200, Se G6 >40 e <=50 então 300, Se G6 >50 e <=60 então 400 How to…
excelasked 7 years, 9 months ago Carla Andrade 43 -
4
votes1
answer93
viewsHow to capture only the first part of a text that fits in regex?
<END>Av. Dr. Walter Belian, nº 2.230, Distrito Industrial, João Pessoa-PB, com CNPJ nº 07.526.557/0013-43 e Inscrição Estadual nº 16.218.7157; (NR) II - Sergipe, localizada na Rodovia BR-101,…
-
4
votes1
answer71
viewsDate formatting for Gtrends (gtrendsR package)
How to resolve this package formatting error gtrendsR(actually how I check the current native formatting and adjust it)? Error in as.POSIXlt.character(x, tz, ...) : character string is not in a…
-
4
votes2
answers2703
viewsHow to skip the line in writing the files?
Well, basically, I need to skip a line, after certain writing. insira o código aqui print("+---------------------+") print("|DEMONSTRAÇÃO DA LINHA|") print("+---------------------+") print()…
-
4
votes2
answers1054
viewsHow to identify changed value in input
How to identify if a determining value has been changed in input? I have the prototype below, however alert will be displayed according to the number of times the class="ultimo-valor" appears in the…
-
4
votes2
answers812
viewsInsert points into a map with an array that passes through the database
I’m creating a site where I need a map, and users fill in forms with latitude and longitude to create a point on that same map. Everything is stored in the database but I needed the name of the…
-
4
votes1
answer999
viewsAccess Object Property with a string
Pupil: public class Aluno{ public int Id { get; set; } public string Nome { get; set; } public string Sobrenome { get; set; } } Now I need to access the student’s Name and Surname through a string,…
-
4
votes3
answers296
viewsHow do prepare dynamic and generic with mysqli?
I have a mobile application that sends me the following parameters $tabela = $_POST[“tabela”]; // ex: “pessoa” $atributos = $_POST[“atributos”]; // ex: “codigo, nome, cpf” $valores =…
-
4
votes2
answers117
viewsCan separating static methods into several classes have a negative impact?
In question of organization it is relevant to separate methods into different classes. If we organize the methods in different classes in order to create a better organization, we can have a…
-
4
votes1
answer1805
viewsHow to pass parameter to MVC controller
How to pass the text or content of a DropDownList to the Controller by pressing a button? I tried using @model and I couldn’t. I tried adding the [HttpPost] in the Controller and using the type…
asp.net-mvcasked 7 years, 9 months ago Evandro Silva 149 -
4
votes2
answers498
viewsHow can I easily make application location permission?
I found this tutorial https://inthecheesefactory.com/blog/things-you-need-to-know-about-android-m-permission-developer-edition/en but I didn’t understand anything. I looked at this tutorial: //…
-
4
votes1
answer338
viewsCodeigniter 3 - Subdirectory structure - Routes
I created a project in the IC and I am going through the following problem: I split my controllers into two folders: application/controllers/painel/ and application/controllers/site/ Being that in…
-
4
votes1
answer2749
viewsTransform an array to string in python
I am trying to convert an array to a string and add "|" to it at the beginning and end of each field Below the example array ['', 'C170', '1', '14879', '', '1,00000', 'UN', '29,99', '0,00', '1',…
-
4
votes1
answer135
viewsWhy does a parameter have two "const" in its statement?
I’m reading the tutorials on the website of lib Opencv and during reading I saw the declaration of a function with a variable in a format I’ve never seen. I wanted to know what it means, declare the…
-
4
votes2
answers1241
viewsStore multiple select in a single column with PHP/javascript + Mysql
I’m having trouble storing multiple select in the same table field. In this case, when filling the form and marking more than one select, it stores only one and the input quantity field that is in…
-
4
votes2
answers545
viewsProblems with the result Curl and file_get_contents
I’m trying to get an image from a website to use imagecreatefrompng(), but the backlash was never what I expected... Url:…
-
4
votes4
answers398
viewsUse of self-reference
About the use of self-reference thiswanted to know what difference it makes: public static class Aluno{ private String nome; public String getNome(){ return nome; } public Aluno(){ this.nome="abc";…
javaasked 7 years, 9 months ago Sergio Souza Novak 513 -
4
votes1
answer307
viewsBarplot (bar graph) of numerical versus categorical variable in R
How to plot a bar graph on the R in which the eixo x I have a categorical variable (with 4 categories: frequent, sometimes rare, never) and in eixo y the average of a numeric variable (Y=0:13)? How…
-
4
votes1
answer1577
viewsHow to update Recyclerview simply and efficiently?
The most efficient way I know to update a Recyclerview is to resort to Adapter methods notifyItemMoved notifyItemRangeChanged notifyItemRangeInserted notifyItemRangeRemoved They, as opposed to…
-
4
votes1
answer1543
viewsHow to send email with body and attached using smtplib and email in python?
When I send a simple Python email using only the smtplib library, I can write in the body of the email through the "message" argument of the following script function: def…
-
4
votes1
answer274
viewsError in Dapper query
Well, I’m trying to perform a consultation on Dapper and get the following error: The model item inserted in the dictionary is of type'System.Collections.Generic.List`1[Taxability…
-
4
votes1
answer2184
viewsConvert a 'System.Collections.Generic.List' object to 'System.Data.Dataset'?
Cannot convert an object of type 'System.Collections.Generic.List in type 'System.Data.Dataset'? After making a report query, I am storing the data in a list and showing the data on the screen, the…
-
4
votes1
answer87
viewsDebug with min files in Angularjs
I created a task at Grunt to automatically the concat and uglify in my files .js Angular to improve performance and also to avoid inserting a new file every time I create a controller, for example.…
-
4
votes1
answer820
viewsIs it possible to edit and re-compile by reverting the source code?
For example, assuming I take an Atari ROM, if I reverse engineer this ROM I would have to make edits (change a color or change a text) and generate a valid ROM only with the information contained in…
reverse-engineeringasked 7 years, 9 months ago Marcus Becker 724 -
4
votes2
answers12366
viewsHow to sum the values of selected columns of each observation (row) in R?
I have a database with 10,000 observations (individuals/lines). I want to add the values of three variables (columns) for each individual (row). Ex.: x1 x2 x3 x4 x5 x6 1 0 1 0 40 45 76 2 1 1 0 31 86…
-
4
votes1
answer424
viewsTwo classes mapping the same table with the Entity Framework
I’m trying to do the entity map two classes to the same table this is possible? Setting: Man identity this decoupled (Eduardo Pires' Master) from my domain and the presentation layer in the domain…
-
4
votes2
answers103
viewsHow to insert a set time into a function
The function of this code below and next after I click on a form Ubmit it redirects to another page this worked now just need it to redirect to another page after, 5 seconds someone knows how to do…
-
4
votes1
answer636
viewsChange cell color according to the result?
I am a beginner in this universe, and I am locked in my development into a simple function that I cannot understand. This code below gets a value from the database, and I would like in the color…
-
4
votes2
answers5541
viewsExpected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 Com Webservice JAX-RS e Android Retrofit
I’m studying Webservice and consumption on Android with Retrofit2. I’ve done tests with public Apis like Viacep and FIPE and I can use the retrofit quietly, very easy but when I set up my own…
-
4
votes2
answers2287
viewsRename table in Firebird
How to rename table in firebird 2.5? I’m using the query: ALTER TABLE cliente RENAME TO clientes;, but error appears: invalid Toke 'Rename'.…
-
4
votes1
answer1480
viewsAfter all, why use C when programming in C++?
I’m learning C++ and I can’t understand why people think C knows C++? Or are the differences between the two despicable? I know the syntax is similar, but C++14 does things that C doesn’t, and aside…
-
4
votes1
answer114
viewsRobo_feed routine of checking if loop giving dick in python
Robo_feed I’m new to python, I was looking to develop a robot that would take the last post of some news portals here in my region, With a survey I came to the conclusion that it would be easier to…
-
4
votes1
answer5435
viewsHow to fix the error: HTTP Status 500 - Servlet Execution threw an Exception?
Language: Java Server: Apache Tomcat. Ambient: Eclipse. I am following the Caelum Workbook of the course FJ21 - Web Development with Java. I created a form but at the time of recording it presents…
-
4
votes1
answer14432
viewsCalculation of Sine with Python
Hello, I have a problem in the sine calculus using Pyhton, I set up a function for the sine and cosene calculus, but the result is coming wrong for sine, while the cosene the result is right. I…
-
4
votes1
answer1728
viewsHow to save a video captured by webcam without showing it using Opencv in python?
I’m starting to learn Computer Vision. I’m using the Opencv module for Python 3. Reading tutorials, discover the following script: import cv2 cap = cv2.VideoCapture(0) fourcc =…
-
4
votes1
answer186
viewsDifferent concatenation ?
Guys I’m starting programming has little time and I have to register only I want the information typed by the user as the name, email and age appear through an "Alert" after he click on the button…
-
4
votes2
answers1965
viewsget mysql data using javascript and ajax
I’m developing a web app (case interest, follow link) and it was going all right until I got to the bottom: The field NCM is a tag input with a disabled attribute. The information within it comes…