Posts by Levi • 665 points
35 posts
-
0
votes0
answers37
viewsQ: Flutter camera autofocus timeout error
I’m using the Flutter camera to create a camera component. The component works relatively well, if not for the fact that when I try to take a blurred footo, the component returns a timeout error.…
-
0
votes1
answer65
viewsQ: What is the main difference between Thread.Abort and Thread.Finish?
I started working with threads recently and came across the need to close a thread, eliminate it altogether. After some researches I discovered the methods Abort and Finalize, however I did not…
-
0
votes2
answers137
viewsQ: Problem sending data from a console application to Webservice
I have a console application that receives data from a mobile device, I am trying to send this data to a web service to process the data and fill them in the database. I’m trying this way: public…
-
0
votes2
answers284
viewsQ: Problems while rescuing data from a json file
I am trying to upload data from a json file to an html table. I’m trying to rescue the json this way: function getJson(){ $.getJSON('dados/livros.json', function(data){ console.log(data); }); }…
-
0
votes1
answer557
viewsQ: How to add Primary key to an existing column of an already populated table
I have a table already populated, in this table I have the column Deviceimei which I want to turn into Primary key. Is there any way to do this without having to empty the table ? I’m trying this…
sql-serverasked Levi 665 -
2
votes1
answer61
viewsQ: How does "Threadpool.Unsafequeueuserworkitem" work?
I’ve done some research but I’m not finding a more didactic explanation, since I have no experience with threads.
-
0
votes1
answer64
viewsQ: How to count how many records there are in a Onetomany relation?
I have two tables that are related in Onetomany format, example: I have a record of table A that relates to 1 or more records in table B. I’m trying to do a query that returns how many records in…
-
0
votes2
answers163
viewsQ: How to dynamically increment a JSON.stringify
I’m trying to build a dynamic JSON.stringify. Example: initial value : var body = JSON.stringify({ "UserName": email }); if(input1Change != 0){ if(input1 != ""){ //incrementar o JSON.stringify }…
javascriptasked Levi 665 -
0
votes1
answer39
viewsQ: Problem sending image to database
I have a web application in which the user can change his profile image, I am able to select the image file correctly, the problem is time to send to the database (send the application data to a…
-
0
votes2
answers271
viewsQ: Allow certain characters in an input text
I have the following expression:: (/[^\d]/g, '') I’m using this expression in a Javascript function so that a input type="text" accept only numbers. The problem is that I now need this function to…
-
0
votes1
answer77
viewsQ: Mask problem for input type="text"
I’m trying to get the input type="text" only accept numbers and keep the date format as I insert the numbers. //Exibir no formato de data function mascaraData( campo, e ) { var kC = (document.all) ?…
-
1
votes3
answers654
viewsQ: Identify the value of a cell of the clicked line of an html table
I’m trying to identify which email tr that was clicked. My problem is that regardless of the tr that I click, always returns me the same value. Note: I would like to know the value of the cell, not…
-
1
votes2
answers173
viewsQ: Click event to tag tr of a table
I have a table HTML which I fill with data I own in a database. Each tag tr of my table represents a client, disregarding tag tr header. I would like to add an event of click to the tags tr, as if…
-
1
votes1
answer160
viewsQ: Geocoordinate does not contain a definition for Getdistanceto
I’m trying to make an algorithm that calculates the distance between two points from their coordinates (Latitude and Longitude), in my researches I ended up coming across Geocoordinate…
-
3
votes1
answer746
viewsQ: How to Dropdown Menu Overlay Div Content
I am trying to make a Dropdown Menu, the problem is that I would like this menu to overlap the contents of the div. I have tried using the position: absolute, works, Entering the div of the dropdown…
-
1
votes1
answer453
viewsQ: How to hide email address
I’m making an algorithm that sends emails, I’m able to send emails normally, but I wish I could hide the email address of the person sending to the recipient. Obs: when I say hide the email address,…
-
1
votes1
answer256
viewsQ: Is it possible to add an SVG animation to the HTML body of an email?
I am doing an email sending algorithm for account confirmation, I am able to send the email normally, however I would like to add an SVG animation in the HTML body of the email. I am using outlook,…
-
1
votes1
answer430
viewsQ: Adding an image to the html body of an email
I’m trying to do an automated sending scheme using c# . NET, my problem is time to add an image in the body of the email, in which the image does not appear. This icon appears in place of the image…
-
3
votes1
answer691
viewsQ: Insert a Datetime into a date type input tag
I am trying to insert the current date into a tag input of the kind datetime-local. Tag Input: <input type="datetime-local" id="inputDateNow" class="registerInput inputCodeDate"…
-
0
votes1
answer31
viewsQ: Problem filling HTML table
I’m trying to load an HTML table with data from a Sqlserver BD. I am able to recover the data from the BD, the problem is time to load the table, which is filling with the names of the columns and…
-
0
votes0
answers115
viewsQ: Document.querySelector returning null
I’m trying to fill an HTML table with data from a Sqlserver BD. My HTML table: var overViewForm = '<h3>OVERVIEW</h3>' + '<table id="modelTable" class="table table-striped…
-
0
votes2
answers62
viewsQ: Load a scrip tag after another script tag has been loaded
I want to load a script tag only when the other one is FULLY loaded. Example: <script type="text/javascript" src="js/scriptUm.js"></script> <script type="text/javascript"…
-
0
votes1
answer35
viewsQ: Difference between Jsviews and Jsrender?
I started playing with templates recently and ended up coming across Jsviews and Jsrender, I’ve done some research on it but I still can’t quite understand the main differences between them.
javascriptasked Levi 665 -
4
votes1
answer1240
viewsQ: Convert Unix Timestamp to Datetime
I am trying to select the largest date from my table, however the dates are stored in Unix Timestamp format in a whole column type. I need to do this conversion because I need to calculate the…
-
0
votes1
answer194
viewsQ: Error when changing the type of a smalldatetime column to int
I’m trying to change the type of a column of my table, which is empty, from smalldatetime to integer. Error: Implicit conversion of data type from smalldatetime to int is not permitted. To execute…
-
0
votes2
answers73
viewsQ: Select MAX with the Unix Timestamp field
I have a database in which tables have a Timestamp column (column name) which is int type, where I store the value in Unix Timestamp format. I’m trying to give a select on the most recent date.…
-
0
votes1
answer45
viewsQ: Way to get all results of SQL Command query
I am trying to select two columns of a table via sql command by running a precedent. Code : String consult = Convert.ToString(command.ExecuteScalar()); Procedure : BEGIN SELECT Value, TimeStamp FROM…
sql-serverasked Levi 665 -
0
votes0
answers30
viewsQ: Problem with stored Procedure
I am trying to create a stored precedent that checks whether the table is empty or not, if it is empty returns -1, if it is not empty return the most recent element of the table. I’m trying this way…
-
16
votes2
answers8360
viewsQ: What do GMT and UTC stand for?
I recently discovered Unix Timestamp and I came across the acronyms GMT and UTC, I would like to know what they mean. I’ve already done some research, but I didn’t find anything very clear.
-
0
votes1
answer101
viewsQ: Where is the error in this method?
public DateTime HexToDateTime(String hexDate) { long intDate = long.Parse(hexDate, System.Globalization.NumberStyles.HexNumber); DateTime date = new DateTime(1970, 1, 1, 0, 0, 0,…
-
0
votes1
answer111
viewsQ: Problem in creating a stored Procedure
I am trying to create a stored database that serves to check if my table is empty, and if it is not returning the value with the higher Id. But I’m not getting it. CREATE PROCEDURE spConsulta…
-
1
votes1
answer281
viewsQ: Query in an empty table
What is the return of a query in an empty table? Example, I am running this SQL Command: select Value from AVL_AnalogInput1 where TimeStamp = (select max(TimeStamp) from AVL_AnalogInput1) . Table…
sql-serverasked Levi 665 -
2
votes1
answer769
viewsQ: Check if a certain value already exists in an SQL Server table
I am trying to check whether a certain value is already inserted in my table or not. Example : Check to be determined Imei already exists in the column Deviceimei. I am trying to select Count, to…
sql-serverasked Levi 665 -
2
votes1
answer394
viewsQ: Change the type of a column in several tables in SQL Server
I have a database with 41 tables, in all tables I have a common column to which I would like to assign another dataType. In my case the column is currently varchar(255) and would like to change to…
-
7
votes1
answer2211
viewsQ: Is there a module function of a number in C#?
Example : module of -1 (|-1| = 1). I’ve done some research on the internet but all I think is the division module (%). I am trying to circumvent the common way of passing a negative number to a…