Posts by Leomar de Souza • 1,074 points
45 posts
-
1
votes1
answer133
viewsA: Problem with updating a Fragment
I was able to solve this problem by adding the following methods: In class FilterListFragment: public void reloadReminderListFragment() { Fragment currentFragment =…
-
1
votes1
answer133
viewsQ: Problem with updating a Fragment
I am learning Android and while trying to develop an app I came across the following situation: I have an Activity that has two Fragments: ReminderListFragment and FilterListFragment. The first…
-
1
votes1
answer860
viewsQ: Typeerror: can’t Multiply Sequence by non-int of type 'float'
I’m learning to program in python, but I came across a mistake in trying to develop the merge sort using object orientation. When calling the method sort() who belongs to the class MergeSort, the…
-
0
votes1
answer87
viewsQ: What is the difference between the complexity of an algorithm and the complexity of a problem?
I would like to know the difference between the complexity of an algorithm and the complexity of a problem, that is, which points differ the two things
computer-theoryasked Leomar de Souza 1,074 -
-1
votes1
answer707
viewsQ: How to calculate the complexity of this algorithm?
I would like an explanation of how to calculate the complexity of the algorithm below. I couldn’t understand very well using graph theory. FUNCTION PageRank (G, iterarion) d = 0.85 oh = G ih = G N =…
asked Leomar de Souza 1,074 -
0
votes1
answer150
viewsQ: Connection string for different logged in users
I am doing a job and I came up with a possibility that I would like to know if it is possible to realize: the purpose of this idea is to alternate a certain connection string as per the user logged…
-
1
votes0
answers26
viewsQ: Configure string Connection for different environments
I would like to know if it is possible to configure a connection string for two intended environments, for example, the debug and the release. That is, when debugging, the connection string will be…
-
1
votes0
answers87
viewsQ: Implementation of software license
Searching a few on the forums, I decided to ask this question to see how developers perform a software license. For example, when you develop software, how do you control the use of it to prevent…
-
1
votes1
answer356
viewsQ: Generic class for CRUD
I have some common CRUD features in the database, such as cadastrar, buscar um registro, buscar todos os registros and excluir. For this, I am currently implementing a manager class each database…
-
0
votes1
answer803
viewsQ: Use jquery.validate to validate image dimensions
I’d like to know how to use the jquery validate to validate the dimensions of the image being sent. In my case, the image has to be 400px high and wide.…
-
4
votes2
answers680
viewsQ: Disable css and image caching in the browser
Recently, I developed a project that had some drastic changes in its design, mainly by the side of css and images. In this, accessing it on some machines, I verified that to visualize its new design…
-
2
votes1
answer709
viewsQ: Set time zone for the whole project
I recently hosted an application on a North American server, so the dates are outside the Brazilian time zone. In this way, I would like to know if there is a way to define the time zone once so…
-
0
votes1
answer266
viewsQ: Modelstate.Isvalid in modal registration
I am using a registration form within a modal, however when the condition of the ModelState.IsValid is not satisfied with view is returned. Only instead of returning the same view before the action…
-
0
votes1
answer1829
viewsQ: How to create this regular expression?
I need a regular expression that accepts only [, ], - and letras and números to be used as follows: Rules The first character is the [, then comes letters numbers and the - and ends with ]. The…
regexasked Leomar de Souza 1,074 -
0
votes0
answers247
viewsQ: Upload - the process cannot access the file because it is being used by another process
I am trying to build a file manager, but I am finding a problem when updating the file. First I do the upload file, and after that, if the user wants to update, I have the option to update, where…
-
4
votes1
answer623
viewsQ: Redirect 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 {…
-
0
votes1
answer12
viewsQ: Togglecss except on some Ivs
I have the following problem: I have a js that adds a certain style in a div or whole html. I would like to know how to ignore some Ivs so that this style is not added to them. Follow the code I am…
-
2
votes1
answer34
viewsQ: What is the use of variables of type Int32rect
I downloaded a project that works with images and in some cases it uses variables of this type, I did not understand what the purpose of this type of variable in image processing.
-
5
votes4
answers5763
viewsQ: Capture Real User IP
How do I capture the actual Public IP/IP of the user accessing the application? The IP address of the computer I can capture normally, but I want to know the public IP address of this client.
-
4
votes1
answer201
viewsQ: Pick up selected Radiobuttons in WPF
I have several radiobuttons on my form, each with a content different. How do I catch the radiobuttom selected? Without having to do a método to check one by one.…
-
1
votes1
answer1018
viewsQ: Error "Access-Control-Allow-Origin header is present on the requested Resource"
I need to insert an API on my site that brings the weather forecast for a certain city, however, the request ajax always returns the error in the browser console. Below: XMLHttpRequest cannot load…
-
4
votes1
answer81
viewsQ: Controller and action routes in lower case
How to make the routes of controllers and actions are all in lower case? For example: instead of Noticias/Details stick around noticias/details.…
-
1
votes1
answer66
viewsQ: Problem with function return
Guys, I have a json code that searches for logged user information, and later, I have another code that searches all sectors registered in the system. The function normally returns the information,…
-
6
votes2
answers786
viewsQ: Modal display when submitting a form
How do I display a modal when I submit a registration form? The content of this modal will be just a message. Here’s the thing, on this form, you send a file and some information. As it usually…
-
5
votes2
answers544
viewsQ: Progress bar on file upload and information registration
I’m developing a project, where I upload files, as well as a record of information. Both the file and the information are registered in the same form. So far so good, but usually, when there are…
-
1
votes2
answers632
viewsQ: Set model property in javascript variable
I have an Action Usuario that displays user details among other actions that can be performed. I also have a code javascript that needs in some part to set a model property in the javascript…
-
4
votes2
answers8619
viewsQ: Pass parameter in View
How do I pass a parameter to a view in Mysql? Using SQL Server simply put WHERE u.nome = @nome that would solve the problem. Below is the view of the problem in SQL: CREATE VIEW `view_conta_pessoa`…
-
1
votes1
answer524
viewsQ: Count selected checkbox
I’m having trouble counting the checkboxes that are selected, maybe for the following reason, I have a radio that is also selected. Whenever I use the code $('input[type="checkbox"]:checked').length…
-
0
votes0
answers49
viewsQ: Mark point on image taken by Kinect sensor
Guys, I have the following problem: I have an application that provides me the Kinect images in real time, only I need to develop a functionality where the user marks some points in the image using…
-
6
votes1
answer276
viewsQ: What is the assignment in Action parameter method for?
I had a question regarding some codes I found in a project of a former employee of the company. It is a code that contains assignment in the parameters of the variables. Below follows an example:…
-
2
votes2
answers944
viewsQ: Right-click options menu selected in datagrid
Hello, I have the following problem: I have several records on datagrid and I want the moment I select a record and right-click on it, a menu with options for the selected row appears. The only…
-
1
votes1
answer656
viewsQ: Image of the database in reportviewer
Hello, I have the following problem: I have a table of Paciente and in it has a field Foto, which is a string with the path of this photo. I need to generate a report with the data of the selected…
-
0
votes1
answer804
viewsQ: Right-click options menu in datagrid
I need to create a menu with some options so that when a record is selected on a datagrid and right-click on this record a menu with the options for that record appears.
-
0
votes0
answers462
viewsQ: Reportviewer with list of a table and information of another table
I have the following problem, I have a table AVALIAÇÃO and another PACIENTE. I need to generate a whole list of patient evaluations. I already have the query in my datatable that does this, however,…
-
0
votes0
answers818
viewsQ: Binding in Datagrid - Unable to access a discarded object
I have a datagrid with evaluations whose first column is PATIENT NAME. However, when it comes to placing Binding Paciente.Nomeit gives error. Within evaluation there is a patient object. DATAGRID…
-
-1
votes1
answer360
viewsQ: Search by age in birth date field
Hello, I have a patient table and I need a query in which the user informs an age and returns the existing records. But I don’t have the age field in the table but date of birth.
-
1
votes1
answer369
viewsQ: Grab project URL
Hello, I need to get the url where my project is (wpf). The reason is this: there is an image upload inside the Image folder (which is in the Image File of my project) and I need the image File to…
-
1
votes0
answers765
viewsQ: MICROSOFT.OFFICE.INTEROP.WORD - Object Reference not set to an instance of an Object
I am in need of help with this problem using Microsoft.Office.Interop.Word. Detail: running the application in visual studio it works normally, without any error, however, if I play in IIS, it…
-
8
votes3
answers7123
viewsQ: Disable windows form maximize and minimize
I need a solution to disable the maximize and minimize buttons of a windows form. Using WPF these two attributes would solve: WindowStartupLocation="CenterScreen" ResizeMode="NoResize" But now I…
-
2
votes1
answer7401
viewsQ: Open maximized form on full screen
I have a main form, which contains all the options of the system and I would like to know how to open this maximized on the full screen, if possible, adapting the different resolutions. IMAGE OF THE…
-
2
votes2
answers801
viewsQ: Confirm form closure
I need to ask if I want to close the window that is open. I made the following form, but in any of the options, it closes. I currently use this event option: private void…
-
4
votes2
answers1303
viewsQ: Picking up content within a string
I’ll have a list of string in the following format: PERSON’S NAME( (LOGIN), an example would be this: ZACKSON MOREIRA MORGAN (zackson.morgan) Soon, I would need to get just what would be inside the…
-
14
votes1
answer11725
viewsQ: CLSID component COM class factory recovery failure
I have developed an application on my pc that does the following: from an upload of a word document, it generates a new document with some basic information. To generate this information, it opens…
-
4
votes2
answers2205
viewsQ: Send javascript object to php
I have the following class in php: class Corretor { private $id; private $nome; private $registro; private $email; private $senha; function __construct() {} /* Getters e Setters*/ } And in my html…
-
1
votes2
answers1206
viewsQ: Click event not working
<html> <head> <title>Notícia</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body>…