Posts by Igor Carreiro • 1,917 points
140 posts
-
0
votes1
answer124
viewsQ: How to calculate the response time of a Node application?
How to calculate the response time of an application in Node.js ? Without much delay only the request being made outside and a method that returns time through the Date.now() Example: Web…
-
0
votes1
answer96
viewsQ: Make sure the Component is starting with the uppercase - React Native
I’m trying to load Google Maps into a project with React Native and TypeScript but it is returning me the error that the Component shall be started with a capital letter: Error: Invariant Violation:…
-
1
votes2
answers36
viewsA: Retrieve a random value from a predefined number list
I managed using 3 functions CEILING RAND and CHOOSE This way I can pass the amount of records I have in the table by randomly retrieving only the specific values it contains inside. Example: DECLARE…
sqlanswered Igor Carreiro 1,917 -
0
votes2
answers36
viewsQ: Retrieve a random value from a predefined number list
Setting: I have a table of users that can contain 1 or N records inside, but for example let’s assume that I have 5 records there with their respective Ids, being them: 4, 23, 59, 17, 33 Is there…
sqlasked Igor Carreiro 1,917 -
2
votes1
answer340
viewsQ: Unable to install Npgsql 4.1.2 package. application . NET Framework
I’m trying to install the Npgsql to consume Postgresql data in my project , but returns me the error below: Severity Code Description Project File Line Suppression State Error Could not install…
-
-1
votes2
answers306
viewsQ: Find time within a range of hours
I am trying to develop a logic where there will be any schedule I need to find within a range of hours (Start time and End time) But I can’t make the correct comparison and/or I’m not treating it…
c#asked Igor Carreiro 1,917 -
0
votes1
answer26
viewsQ: Comparison of dates using Timespan.Compare()
I’m trying to see if a schedule exists within a range of initial and final hours, but I’m having a problem setting the condition. Example Parameter time: 07:00:00 Initial time: 06:00:00 Final time:…
c#asked Igor Carreiro 1,917 -
2
votes2
answers7589
viewsQ: How to pass parameters via url to an application in React?
I have an application in .Net MVC where I use the Session to store logged user data. But within this application I have a screen made in React which will be accessed externally (that is, it is a…
-
0
votes1
answer5128
viewsQ: Syntaxerror: Unexpected token < in JSON at position 0
I’m trying to file a requisition HTTP for a API and I get the following error: Uncaught (in Promise) Syntaxerror: Unexpected token < in JSON at position 0 Why is this happening error? How to…
-
2
votes1
answer141
viewsQ: How to take an image in a folder at the root of the project?
I’m trying to get an image that is inside a folder in the project to use with "Default" if any user does not add the photo at the time of registration, but when trying to pass the url, the error…
c#asked Igor Carreiro 1,917 -
1
votes1
answer173
viewsQ: How to Add :Correct Javascript?
I am creating elements and setting attributes dynamically via Javascript. But I’m not getting the property set :hover. Follows code: $(document).ready(function(){ let valores =…
javascriptasked Igor Carreiro 1,917 -
0
votes1
answer38
viewsA: Do not page the list of Products
I cannot locate where the SQL queries are to list the products This list is supplied on controller from the page, just search for your ActionResult. Depending on how the project was structured, it…
-
4
votes2
answers52
viewsQ: How to search for specific data on the same line?
I’m reading a file XML where I have to take the values of certain data that are on the same line, example: I have the following line: <"Row GenericKitName=\"12000\" QueryID=\"999\"…
-
0
votes2
answers32
viewsQ: How do I identify which element/pseudo-element I have to pick up to assign some styling (css)?
Example: I have the following button and would like to add the property :hover <!DOCTYPE html> <html> <head> <link rel="stylesheet"…
cssasked Igor Carreiro 1,917 -
1
votes2
answers341
viewsA: How to store the value of an input type number in a JS variable
You missed closing the keys. <input type="number" id="numero"> <input type="button" class="adicionar" value="Comprar" onclick="add()" /> <script> function add(){ var quantidade =…
javascriptanswered Igor Carreiro 1,917 -
0
votes2
answers263
viewsA: Form Validation - Step by Step (Javascript)
Just use required in tag Note: Only works in inputs... See more in ... https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_required…
-
1
votes1
answer445
viewsQ: How to get the exact value of the division with the decimal places after the comma?
I need to do a percentage calculation, but I’m not getting the exact amount. Example: int valorUni = 8; int valorTotal = 116; double result; result = (valorUni / valorTotal) * 100; //Resultado…
-
0
votes0
answers44
viewsQ: Alignment of elements per line
I’m trying to align the elements, but without success. The idea is to limit per line only 8 elements, besides not happening that, still keeps returning error: Misaligned elements: Codes: Html:…
-
1
votes1
answer304
viewsQ: How to manipulate coordinates of an html page freely
How can I get the coordinates of a page HTML and from these coordinates set a target/delimite (red square) dynamically (where I only change positions) In the case of this context it would be NAY use…
-
1
votes2
answers657
viewsQ: How to focus on a specific DIV and blur the rest
Is there a Javascript/Jquery library that of a targetdelimiting an area in a DIV specific and blur the rest ? Example I added a new item to the menu and as soon as I loaded the screen this one focus…
-
1
votes1
answer560
viewsQ: How to remove attributes from some bootstrap class
I have the Modal below which included a Wizard to show some information. For this, I am using the tag <ul> to align, but I’m using the class nav nav-tabs, but it generates a line that I can’t…
htmlasked Igor Carreiro 1,917 -
2
votes1
answer1146
viewsQ: How to align 'N' Divs on the same line?
I got the following container where I would like to keep the divs on the same line: How can I do this alignment ? Follow example of the code below <html> <head> <meta…
-
0
votes2
answers868
viewsA: Google Maps Latitude Longitude does not find address, but exists on Google Maps
The problem of consuming this method of API of google maps., is that it has a daily request limit, in this case, you have to force the request recursively. That is, whenever you do this and return…
-
0
votes1
answer931
viewsQ: Session configured on Web.Config and IIS Session State is expiring ahead of time
Setting: I store the Session of the user to keep it logged in to the system, but something is happening that in 10 minutes it is undone because the Session expired. But so much in the Web.Config how…
-
0
votes1
answer31
viewsQ: Nan error when using datatable sorting
I’m trying to create a date ordering in a dataTable where the format will be dd-MM-aaaa hh:MM:ss. the code below even works the problem that it gives some conversion error always at the first value…
-
0
votes2
answers231
viewsQ: Searching array value within another array and return
Take a look at the scenery: I have the following array’s let arr = [23,0,0] let coresLinhasPorPocsag = ["#4d79ff", "#ff6600", "#00cc88", "#b31aff"] I need to pick the color according to the position…
javascriptasked Igor Carreiro 1,917 -
-1
votes1
answer44
viewsQ: Query javascript in the Asp.net controller
I need to make a query on a method of API (Javascript) of google maps, however by controller, it is possible ? I have a requisition ajax that mounts a grid and within it I make a query in the table…
-
1
votes0
answers147
viewsQ: How to update a Datatable without Reload the page?
I have a DataTable(plugin) generated from an Array that will mount an onlines user list. And mounts to paging. But the AJAX that returns the list is of type GET and keeps updating the page to check…
javascriptasked Igor Carreiro 1,917 -
1
votes1
answer955
viewsQ: Convert string to XML
Consider the table: In the Behind code, I cannot convert a string into an xml modCamadaOperacao objModCamada = new modCamadaOperacao(); objModCamada.idCamadaOperacao = idCamada;…
c#asked Igor Carreiro 1,917 -
1
votes0
answers258
viewsQ: Local connection Sql Server Express 2017 - Asp.Net MVC
I’m trying to connect in Sql Server Express 2017 via Visual Studio (local connection), but keeps returning me this error always when you try to open: A connection to the server was successfully…
-
3
votes0
answers35
viewsQ: Application in 3 layers X MVC
I was talking to a college roommate and he said something about application in 3 layers, I thought of something like MVC and researching a little more, really this application in 3 layers looks like…
-
0
votes1
answer332
viewsQ: How to make an Event Change in ASP.NET Core MVC?
In ASP.NET we have the Event Change right in the Code Be-hind protected void ddlCiclo_SelectedIndexChanged(object sender, EventArgs e) { //algo aqui } What would be the equivalent in ASP.NET Core…
-
7
votes2
answers4291
viewsQ: Difference between date and datetime
I was researching the type of data SQL SERVER and I came across this table What would be the real difference between date and datetime data? Time, minute, second notation only ? What would that…
-
3
votes1
answer94
viewsQ: Check between date ranges?
Table Ciclos: I have the date 2018-07-05 How could I ride a query between the intervals of CiDtIni and CiDtFim according to the date above?…
sql-serverasked Igor Carreiro 1,917 -
0
votes4
answers486
viewsQ: How to break line using Streamwriter?
I have this code that generates a log always when the service ends, but it can happen to have unprocessed NF and I need to list it to be easy to identify. Example 100 NF were not processed. In this…
c#asked Igor Carreiro 1,917 -
1
votes1
answer198
viewsQ: Control time to return timeout
Look at the scenery: I have a procedure that running directly by SQL it takes about 50s to return the data. However, when this same process is executed via the system, the timeout in 15 s. My…
-
1
votes2
answers47
viewsQ: Formatting/Punctuation of real values
I have a value comparison to check if a withdrawal is possible or not. I’m having trouble formatting the values and making this comparison. Behold: And on the console this bringing me formatted this…
jqueryasked Igor Carreiro 1,917 -
2
votes2
answers381
viewsQ: Does Javascript not work in Safari/Edge?
I recently asked for guidance here at ONLY requesting help to make a chronometer via Javascript. While accessing in other browser (Edge and Safari(Windows and Mac version)) I saw that it keeps…
-
0
votes1
answer342
viewsQ: How to delete tbody from a table created via Javascript
I create a table dynamically from the result of a bank query. But I would like to have a control to eliminate the <tbody> of the same. I can do it using the command : var body =…
javascriptasked Igor Carreiro 1,917 -
3
votes1
answer78
viewsQ: Regressive chronometer is bringing the wrong value
I copied a Function from W3schools to create a regressive Chronometer. But the final date will be passed dynamically, in case the final date would be 09/06/2018 My doubt is how to pass the final…
javascriptasked Igor Carreiro 1,917 -
2
votes2
answers225
viewsQ: Center text according to length
I’m having difficulty putting together a logic, where will write the user name on a certificate. In order to always leave centered according to the length of the name, I have to keep adjusting to…
-
3
votes1
answer65
viewsQ: What’s the best way to get responsiveness from @Media
I was reading/researching how to apply responsiveness to websites for any type of platform and found this post done right here on Stack @Media That made me open some doubts: Is the content of the…
-
1
votes1
answer57
viewsQ: Resize images with Print.Window
I have a Function that prints an image in order to print it. But I would like to know if you have how to change the position of this image at the time it enters the method. At the moment the…
javascriptasked Igor Carreiro 1,917 -
1
votes0
answers42
viewsQ: Responsiveness of websites according to the Browser
I know it’s a massive subject and can easily be duplicated, but before you point it out, read. The properties of Bootstraps do not apply to Browser Safari ? I have an application that in 3 Browser…
-
0
votes0
answers25
viewsQ: Ordering (sortTable)
I’m trying to create a sort in the columns of a table but it does not command minor > major and major > minor and still takes all the styling of table: Note. Table content is dynamically…
-
0
votes4
answers1373
viewsQ: How to create an empty/null value in select dynamically?
I have a select of cities that is supplied dynamically with the query returned in the databases, but when the values in the option the default value emptiness some preventing to select an empty row.…
-
0
votes2
answers214
viewsQ: Popular dynamically select form
I have an appointment that returns a array where I want to popular a select dynamically, but by the code below it Undefined for(var i = 0; i <= cidades.length; i++){ var html = ""; html +=…
javascriptasked Igor Carreiro 1,917 -
0
votes1
answer86
viewsQ: Isolate and update only one Div
It is possible to 'isolate' a Div and update only her ? Example: I have the option to change the profile photo on the user, where as soon as it is changed from the one Reload on the page in order to…
-
0
votes1
answer104
viewsQ: PHP error after query in table "Call to Undefined Function mysql_error()"
I have a query data query made in PHP version PHP Version 5.2.4 Where 1 to each N query returns the error : I believe it’s a punctual Exception, but there must be some way to treat it. The code line…
phpasked Igor Carreiro 1,917 -
0
votes2
answers441
viewsQ: How to create an Operation Confirmation Alert?
I have the following Function which is called through a OnClick where will delete the record selects. But for security reasons, I would like to put a control to continue the operation or not.…
jqueryasked Igor Carreiro 1,917