Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer131
viewsHow to fit a Lowess curve into longitudinal data using R?
I have the following data: structure(list(X26 = c(1.69, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), X27 = c(0.94, NA, NA, NA, NA,…
-
4
votes1
answer99
viewsPHP BUG - Prepared queries
Good morning everyone, I’m starting in PHP, I follow a course through youtube. I’m studying prepared queries. I have a form that makes a query in the BD, however, when entering the data, the…
-
4
votes1
answer63
viewsInform or not the View inside the php controller?
I created a framework for own use, a little to understand how a Fw works, but turned into a basic working tool. I know that many will say that one should not try to reinvent the wheel. But I’m not…
-
4
votes1
answer325
viewsMethods with Dynamic C#parameter
I need your help with the following question. I have a data access class that has a method that takes the parameters to run a stored database. The problem is this, I have several objects in the…
-
4
votes6
answers201
viewsHow to remove 2 digits from each item in the list?
I have a list/array: var lista['01.um','02.dois','03.tres'] I need to create a new list like this: lista['01','02','03'] I know little of Groovy and Java, which is the correct way to create the…
-
4
votes1
answer1956
viewsWhile timer in Python
How to make a timer in while? I would like to run a while, and do something, e.g. a print "hello" run print "hello" for 1 hour for example.
-
4
votes2
answers78
views"Permissive" regular expression to detect extensions and allowed hosts
i have a list with some links https://www.exemplo.com/ https://www.exemplo.com/home/ https://www.exemplo.com/logo.png https://intranet.exemplo.com/ https://admin.exemplo.com/login…
-
4
votes1
answer133
viewsError converting bitmap to pictureBox on C#?
I’m creating a path within C# to always be able to call images from this path, (using namespace.Properties) and through it I am able to call the Resources and using the following code : var myIcon =…
-
4
votes1
answer329
viewsCreate Splashscreen to show file copy progress
I’m trying to create a splashscreen because when my application is open I perform some time-consuming actions, such as: Copy files Run a . exe My Main is like this: import…
-
4
votes2
answers92
views -
4
votes2
answers138
viewsDoubt with Python+Django
I’m starting with Python and Django, following a tutorial I found: https://docs.djangoproject.com/en/1.9/intro/tutorial01/ When I execute the command django-admin With startproject, it doesn’t…
-
4
votes1
answer100
viewsTextboxfor returned Null Post
I have a form where I query an API using jquery. The query returns the data and fills the textboxfor with this data : $.getJSON("//viacep.com.br/ws/" + cep + "/json/?callback=?", function (dados) {…
-
4
votes1
answer288
viewsCreate unique attribute beyond Primary Key in code-first
I’m creating a table of Logradouro where the countryside CEP is not the primary key, but should be unique. How do I do it using code-first in the Entity 6.0? To create primary key I use the method…
-
4
votes1
answer908
viewsHow to scroll through a multi-row table and select only one specific table?
I’m trying to do that by clicking on a tr with a unique id, open a slideToggle with another table under the same line that was clicked. I made this example by opening the first and second line, only…
-
4
votes3
answers314
viewsCross-Domain Application Security Questions
I have a question about the security of cross-Domain applications... The following is in case I have a hybrid APP that will run on a smartphone and will make requests ajax cross-domain to an api (in…
-
4
votes1
answer505
viewsSearch Matrix index from json value using the index
I have the following matrix: var usuarios = [ {nome: "João", id: 1}, {nome: "Maria", id: 2}, {nome: "José", id: 3}, {nome: "Ana", id: 4}, ]; I need to return the José user index. I tried using the…
-
4
votes1
answer1765
viewsC menu that moves with the arrow keys on the keyboard?
I saw once an algorithm in C where the menu selection had a "mini navigation" if I can call it that, where I used the arrow keys to navigate the menu and enter to select the option, I was curious to…
-
4
votes1
answer2270
viewsHide part of a text with javascript
I have a table that is filled with data from a bank. One of the columns contains text that is sometimes long ( more than 1000 characters). I want to limit the display of this text in the table to…
-
4
votes1
answer249
views -
4
votes1
answer727
viewsCountdown time
I’m creating a mini-game with several questions and I want you to have time, x until zero. The counter only needs to have seconds and minutes. Does anyone know of any function in C++ or some…
-
4
votes2
answers849
viewsBest way to make class relationship
Hello, I would like to know what is the correct way to make relationship between classes of 1.. N and 1...1. Example: public class Pedido { public int PedidoID{get;set;} ............. } public class…
-
4
votes1
answer1455
viewsHTTP and HTTPS redirection with exception
I have a website on http and added a certificate SSL. I need a script via htaccess that redirects the entire site to https (301 redirect), but a single specific page of the site will need to be…
-
4
votes2
answers1104
viewsOracle SQL result ordering
I am done the query below, which was ordered by the date of creation of the product batch. With the migration of version 11 to R12 of Oracle, the batch creation field became the migration date, that…
-
4
votes1
answer1574
viewsConnection between Active Directory and PHP, how to do?
Good morning, I am doing a job for the school and asked me to do a kind of auto-fill using AD (Active Directory), I mean through ad could fill the field "Name" and know all the permissions of that…
-
4
votes1
answer2155
viewsRead values from a table in Sqlite
I am in need of a help in the following situation: I need to take the values of a column in the bank and write these values in a variable, and then this variable will randomly generate one of these…
-
4
votes1
answer774
viewsHow to create a method in a Jbuttons Array that changes the color of jButton with Actionperformed?
I am doing a project that requires the creation of a pencil tool that will paint a group of jButtons positioned in gridLayout (10x10) as if they were pixels. I created a method called 'colorButton'…
-
4
votes1
answer623
viewsRedirect to error page when entering catch
I have a question as to a possible improvement in the method when an error occurs in a Action and redirect to an error page. At the moment, I do so on Action: public ActionResult Index() { try {…
asp.net-mvc asp.net asp.net-mvc-5 asp asp.net-mvc-4asked 8 years, 4 months ago Leomar de Souza 1,074 -
4
votes1
answer1891
viewsHow to monitor the change of an input type text field?
I need to monitor the change of the content of a text field, the function I use is this: $(document).ready(function() { $("#nome").on("keyup change click focus", function() {…
-
4
votes1
answer382
viewsSize occupied on disk by a table in Sqlite
In Oracle, when we want to know how much a table occupies disk we can make a query to the dictionary dba_segments. SELECT segment_name, segment_type, bytes/1024/1024 MB FROM dba_segments WHERE…
-
4
votes3
answers4110
viewsHow to get the first item of an object in javascript?
I have the following object in javascript: { "tipo_entrega_id" : ["Valor não é válido"], "outro_campo" : ["valor deve ser preenchido"] } The values are not defining by me, they come dynamically…
javascriptasked 8 years, 4 months ago Wallace Maxters 102,340 -
4
votes5
answers29127
viewsuse if in sql server
I have 3 tables in my database, CUSTOMERS, DISTRIBUTORS and EXPORT and I have a production order table where I take the customer type (Distributor, customer or export) and the ID of each of them.…
-
4
votes4
answers447
viewsC# Textbox to stop receiving after comma
I need a textbox to stop receiving values after the comma, once it reaches 2 houses. To simplify, think that the text has limit after the comma, but none before it. Example: Type the number 2.99.…
-
4
votes1
answer2154
viewsCheck the difference between two dates in months
Guys I need to put together a code on php where I enter 2 dates and it returns the difference in months. Example: $data1 = "2016-03-01"; $data2 = "2016-06-10"; Resultado 3 meses Example 2: $data1 =…
phpasked 8 years, 5 months ago Hugo Borges 5,294 -
4
votes2
answers430
viewsCut bidirectional relationship looping
I am with a Spring project, using JPA and liquibase, I have a bi-directional relationship between two entities, I wonder if anyone has a solution to the problem of infinite referencing between the…
-
4
votes2
answers1185
viewsDynamic calculations php
Is it possible to make a calculation in php, and my mathematical operations are in a variable? Ex: $operacao = '+'; $valor1 = 10; $valor2 = 10; $calculo = $valor1 .$operacao. $valor2; It would have…
phpasked 8 years, 5 months ago Rodrigo Segatto 743 -
4
votes1
answer1008
viewsStackoverflow in bidirectional relationship at JPA
I’m facing this problem with a bi-directional relationship, when I put in a question to create an answer it makes persistence, even then beauty, but if I try to get a get or even in the answer the…
-
4
votes1
answer53
viewsComboboxes that share the same Datasource, swap the selection together
I am doing a production order project and I have 7 combobox picking the values from the same table (which are the raw materials). I’m using this code on load form to load the combobox:…
-
4
votes2
answers966
viewsHide a div when showing another
I’m having a problem hiding one div when I show another. If I use .conteudo_up instead of the id2 I can do this effect, but it does for everyone at the same time and I want for each one…
-
4
votes1
answer1502
viewsCheck if there is a file if there is a report of PYTHON Blibioteca > . os
Check if the folder no longer exists, if it exists, you should print a message to the user indicating. I got stuck not knowing how to check on something related to this : os.listdir() os.mkdir…
-
4
votes1
answer1118
viewsDiscover common elements in multiple lists
I have the following code: list1 = ['a', 'x', 'c', 'b', 'm'] list2 = ['f', 'x', 'a', 'c'] list3 = ['c', 'e', 'x', 'b', 'p', 'k', 'l'] How do I discover the common elements so that you have a list…
pythonasked 8 years, 5 months ago Alberto Pimenta 169 -
4
votes5
answers1744
viewsDifference between back-end and front-end?
Guys, there’s a home page that has 3 filters: (select) Property Type: House or Apartment (select) Business Type: Purchase or Rent (input) City or district The person enters with the 3 search…
-
4
votes5
answers98
viewsConversion of object properties to numbers
I would like to know how to make the values of an object become numbers. I read about the Methods valueOf(), and toString(), but I have not yet figured out how to use them for this purpose, my…
-
4
votes1
answer3996
viewsGet the module of a negative number in R
Is there any function in R to obtain the module of a negative number or a number vector? example: v <- c(1,-2,3,-4) module(v) #> [1] 1 2 3 4…
rasked 8 years, 5 months ago rafa.pereira 273 -
4
votes4
answers83
viewsOnly join if the above query returns records
Good staff, I would like to know what approach they would take to make a union only if the above query of the union returns values. Consider that the tables are compatible EX: SELECT * FROM Tabela1…
-
4
votes1
answer9945
viewsHow to know if a number is integer
I need to develop an algorithm where, it divides a number by 2, until I get to the rest of the division, and I need to know if the rest of this division is an integer, what method can I apply to…
-
4
votes2
answers549
viewsError while reading C file
But before making this code I created a text file called numero.txt and included it in the file: 23;45;89;-230 452;0;97;1 87;2;4;6 346;97;-5;3 Follow code with error, but I can’t find the error.…
-
4
votes1
answer427
viewsSearch only the smallest number of each letter
How do I search for only the smallest number of each letter, in Sql server? My table: Expected result: A - 1 B - 2 C - 1 D - 1 E - 3…
sql-serverasked 8 years, 5 months ago Brupikk 141 -
4
votes4
answers6012
viewsHow to increase memory of Android Studio IDE?
Lately I’ve been developing for Android, and I’ve noticed that the Android Studio IDE takes a long time to load and start. I would like to know, how to increase the memory of Android Studio IDE? To…
-
4
votes3
answers1366
viewsHow to install an APK remotely? (how Googleplay updates apps)
I made a service to download an updated version of my application when it exists. I would like to display a message on the screen warning that there is an update and install/update behind my…
androidasked 8 years, 5 months ago daniel12345smith 2,120 -
4
votes1
answer717
viewsHow to disable file mode (permission) in GIT?
I’m working with the GIT here at the company where I work, along with two more programmers. Every time I make one git pull, whose changes were sent by these two programmers, I always have trouble…