Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer462
viewsSave Image in Database
In my system there is a registration of Professional who has the option to save the photo of Professional also, at the moment I am doing a photo conversion to Base64 with Javascript in the front-end…
-
4
votes2
answers186
viewsHow to convert Two-dimensional array to a Single array?
I have the following definition of Two-dimensional Array: int[,] arrayBidimensional = new int[3, 3] { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } }; The above variable does not have a method .ToArray()…
-
4
votes1
answer247
viewsUsing replace in a character in the middle of a String to add text before and after the String
I have this expression stored in a String: 1 * Math.pow(x, 3.0) + 4 * Math.pow(x, 2.0) + 1 * Math.pow(x, 1.0) + 27 However, I use a derivation library that only accepts the character ^ to make…
-
4
votes1
answer111
viewsHow to see the weights in Tensorflow?
I made a neural network to estimate a final value for myself, based on 7 inputs. It has only one hidden_layer with 95 perceptrons. I’d like to see what weights are used after training. I’ve searched…
-
4
votes3
answers347
views -
4
votes3
answers3057
viewsCurrent location - Flutter
Guys, I need to get the current latitude and longitude of the cell phone coom flutter, but it’s not working and I’m not finding anything on the internet, someone can help me? code: import…
-
4
votes1
answer83
viewsWhy is it hard to name things?
Reading this question I came across the following sentence: There are only two hard problems in Computer Science: cache invalidation and naming Things. -- Phil Karlton The focus is on the second…
-
4
votes1
answer1005
viewsHow to use HTTP2 on the Apache server
Today on my server I use HTTP 1.1, if I want to upgrade to version 2 What should I do? I need to install something on the server? Since the syntax is the same as version 1.1, it will not influence…
-
4
votes1
answer1078
viewsDelay in Java
Is it possible to delay in Java? Like for example, I have two messages and I want the second one to appear just a few seconds later,?
-
4
votes3
answers3072
viewsHow do a div or span occupy only the size of its internal content?
How can I make the div or span occupy only the space of its internal content? When I create a div here, it always takes up 100% of the space. I tried this but it didn’t work: div{ padding: 10px;…
-
4
votes1
answer78
viewsSecurity in a Task Management System
This is something that raises many questions. I am creating a Task Management System. Most fields are INPUTS or SELECTS FORMS. Most of these fields users only interact when they have already logged…
-
4
votes1
answer419
viewsLines beside in css
I’m trying to put lines next to a word, but when I go into mobile resolution, the lines go up and get misaligned. How do I make them vertically aligned and of the same horizontal length? First…
-
4
votes2
answers123
viewsHow does a method with the same name return more than one object type?
I am implementing the Google Drive API and I came across the following situation: var fileMetadata = new GoogleDriveAPIV3.Data.File() { Name = "folderTest/testeUpload.jpg" };…
-
4
votes3
answers850
viewsTaking value from an input
I have two inputs, and each input has a span. Follow the code below. $('.textInput').on('keyup', function(){ console.log($(this).val()); $(".val").attr("date", $('.textInput').val()); }); <script…
-
4
votes1
answer888
viewsRegister different types of users in Django admin
I have three types of users: Manager, Teacher and Student. All of them need to log into the system, but the teacher and student have some more information. The manager who creates access for the…
-
4
votes2
answers79
viewsHow to create hierarchy functions? Ex Console>Error>Writeline()
My question may seem confusing so I’ll explain. Imagine that I have three class: Program, Controle.cs, Volume.cs. class Program using System; namespace ConsoleAppPOO { class Program { static void…
-
4
votes1
answer95
viewsHow to popular a parameter property with GET access
To understand what I want to do, note the Formclosing() parameter of Windowsforms: private void Form1_FormClosing(object sender, FormClosingEventArgs e) { var r = e.CloseReason; } By analyzing this…
-
4
votes1
answer1085
viewsHow to define a composite key table in Sqlite?
I am making an embedded database as a field medium in the integration between two systems. The system A, where you have the data, export all your data to the system B already properly mapped.…
-
4
votes2
answers1430
views.get in Python 3
Hello. I’m starting in python, and saw the following tutorial: phone_num = input("Numero De Telefone: ") Mapa_De_Digitos = { "1": "Um", "2": "Dois", "3": "Três", "4": "Quatro" } output = "" for ch…
-
4
votes6
answers6000
viewsHow to get the column properties of a table?
I am working with a table created by another person, and there is in it a field of CPF, would like to know what is the size of this field, how many characters it is able to support. I know that in…
-
4
votes3
answers991
viewsShowing only pairs in the list - Python
My code needs show an int number greater than 2 and need to print the sequence of even numbers smaller than itself and need to start from scratch. If you are less than 2 have to print Invalid number…
-
4
votes2
answers65
viewsHow to identify acronyms with Regex Javascript
I need to identify acronyms that: Start with P Has 3 characters The last 2 characters can be digits or letters. Currently, I managed to create the regex \b(?:[A-Za-z0-9]){3} but unfortunately I’m…
-
4
votes2
answers296
viewsInserting data into an Arraylist
I have a problem to implement this code, I can not enter the data in Arraylist. public class Principal { public static void main(String[] args) { Faltas faltas = new Faltas();…
-
4
votes1
answer471
viewsC# - How to clear the "cache" of Visual Studio 2017 without having to close and reopen the program?
When I make a change to a library in Visual Studio Community 2017 I need to close the program and open again for the changes to take effect. The change I’m making is the documentation of a library…
-
4
votes1
answer420
viewsHow to translate "Errormessage" from a "Custom Attribute"
I created a Custom Attribute which is valid only if a property CPF is a valid CPF, but when locating the application I noticed that my Custom Attribute were not having their messages located by the…
-
4
votes2
answers529
viewsFlutter - How to pass Firestore ID list to a Futurebuilder?
I’m developing a book app and need help uploading the user’s favorite book list. I don’t know the way I’m doing it would be the right one, I’m saving the Ids of all the books that the favorite user…
-
4
votes2
answers8696
viewsError when pushing to Github
I need to perform a push of files from my machine to Github but I’m not getting. I leave below some lines of code that I used in cmd trying to accomplish the commit, push, git init and everything…
-
4
votes1
answer49
viewsHow to change the cut point (cut-off) in glm function?
I have the segiunte database, where I intend to do a logistic regression: set.seed(1) dataset <- data.frame( x = replicate(6, runif(30, 20, 100)), y = as.factor(sample(0:1, 30, replace = TRUE)) )…
-
4
votes1
answer180
viewsCustom Data Annotations for validation
I want to create a Data Annotation to be able to check in ALL pages of my application if the user who is logging in already has 1 Condomínio registered, if there is no registered condominium it…
-
4
votes1
answer157
viewsUpdate Fields Using Checkbox - Laravel
I have a User Registration form, where I make available the options to select several options in Checkbox. Registration - Sports Practice: Football, Volleyball, Swimming and etc. (Users can select…
-
4
votes1
answer97
viewsSimplified Javascript Cookie Value Capture
To accomplish my work I need to capture in a simplified way the values present in the First Cookie and Second Cookie. The value of each of these cookies is a variable web path (in Primerocaminho is…
javascriptasked 5 years, 7 months ago cpcolavite 41 -
4
votes3
answers4376
viewsCurrent date and time in time zone timestamp format
How can I print this date in timestamp format with time zone (timestampz)? from datetime import datetime, timedelta current_time = (datetime.now()) Upshot: 2019-03-28 15:14:19.108116 I would like…
-
4
votes1
answer514
viewsHow to write a __init__ file in Python 3?
I created a directory with 3 modules. As below: operacoes __init__.py soma.py media.py In my file __init__.py I have the following code: from media import * The module soma.py is used within the…
-
4
votes1
answer197
viewsStructuring a Saas Database
Well, I’m studying a little bit about applications .NET as Service and not as a Product, so that a monthly subscription customer’s use of the application. As long as the database will be unique and…
-
4
votes3
answers11645
viewsUsing Groupby in Pandas dataframe
good afternoon. I don’t have much skill with Python, I’m having some doubts. Anyone who can help me, I thank you. I opened my csv file in python as follows: import pandas as pd caminhoArquivo =…
-
4
votes1
answer767
viewsAccess methods from another Form
I have a form called TelaInicio where I have a method CarregarGrid() I would like to access this method through my other form Cadastrar I’ve left the method CarregarGrid()as public but still do not…
-
4
votes1
answer980
viewsHow do you create "build" icons, "download" icons in the description of a project on github?
I wanted to know how to create these "icons" on github... I’m kind of Noob and I can’t find the right name for it, so I can’t find anything on Google... I mainly wanted to know how do those who are…
-
4
votes2
answers3414
viewsHow to count the number of times a number or more repeats within a vector in c?
I need to do this exercise and I’m locking in on the countdown. Make a program that reads an 8-position vector and checks for equal values and write them (each repeated number should only appear…
-
4
votes1
answer223
viewsPHP in_array()
My array $tx is: Array ( [tax_val] => Air bag ) testing: echo (in_array('Air bag',$tx['tax_val'])?'Existe':'Não existe'); Returns: Warning: in_array() expects Parameter 2 to be array, string…
-
4
votes1
answer76
viewsData to string conversion
I’m developing a project and I’m having a problem with a date-to-string conversion (I believe that’s it). I am counting months between a date and another (algorithm obtained in this other question,…
-
4
votes1
answer16148
views500 | Server Error - Laravel
I created a new project in Laravel with the command laravel new server. I updated the Poser, inside the same, with composer update. However, when accessing the http://localhost:8000/, it returns me…
-
4
votes1
answer107
viewsForeach in Datatable
Have a datatable and needed to make a foreach to change some values of this datatable public static DataTable TabelaAmbientes { get; set; } I was doing the following foreach: foreach (DataRow lista…
c#asked 5 years, 7 months ago Jeff Henrique 1,020 -
4
votes2
answers121
viewsHow to return all content from a JSON?
I have a JSON file in the following template: [ { "id": 1 "nome": "José" }, { "id": 2 "nome": "João" } ] And I’m making the following JSON server in PHP so that I get the entire JSON back. The way…
phpasked 5 years, 7 months ago user3140824 99 -
4
votes4
answers152
viewsHow to know the exact line of a Nullreferenceexception error when creating a new instance of an object with multiple properties
That’s a question I’ve always had, but now I’ve decided to ask. If when creating a new object (as in the example below, Occurrencereport), the Nullreferenceexception error is generated, the stack…
-
4
votes1
answer47
viewsWhat is the name of a non-retail recursion?
In tail recursion, the recursive call is the last thing the function does, and can be optimized. And when is it not tail? What is the name? "Common"? "Body"? There must be a specific name for it!…
-
4
votes1
answer664
viewsCount with HQL JPA
Problem How do I receive the amount of record from a database table? public Integer quantidadeRegistros() { try { Query query = em.createQuery("SELECT COUNT(*) FROM Categoria cat"); return (Integer)…
-
4
votes2
answers182
viewsIs it necessary to have Node.js installed to run software with Electron?
For a user to run a .exe of a software made in Electron, it needs to have Node.js urged?
-
4
votes1
answer678
viewsBubblesort Complexity Calculation
I would like to know how I can demonstrate by induction calculation the complexity of the bubblesort algorithm, both in the best case and in the worst case. def bubble_Sort(alist): for numc in…
-
4
votes2
answers82
viewsDifferences between event definitions
Examples 1. <button onclick="clickTeste()">Teste</button> function clickTeste() { alert("click"); } 2. (the most commonly used) $("#testeid").click(function() { alert("click"); }); 3.…
-
4
votes1
answer244
viewsDetect the URL where iframe is being displayed
How to detect the URL where the iframe is being displayed and performing a function if the page is being displayed at a specific URL. Example: when accessing the page https://www.../exemplo.html…