Categories
Mastering Development

Error “Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index” [closed]

I have three textbox. When i enter some text in the textbox1 it returns some value searching my DB and show in dynamic grid view. When i press enter it should fetch the value from the gridview and paste the value in textbox1 and textbox2 and go to textbox3. the gridview has two cells. But […]

Categories
Mastering Development

Errors in nls() – singular gradient or NaNs produced

I am trying to fit my photosynthesis data to a nls function, which is a nonrectangular hyperbola function. So far, I have some issues with getting the right start value for nls and, therefore, I am getting a lot of errors such as ‘singular gradient ‘, ‘NaNs produced’, or ‘step factor 0.000488281 reduced below ‘minFactor’ […]

Categories
Mastering Development

P5 image not rendering

I’m new to P5.js and I’m trying to load images following the P5 reference. I’m using a local node http-server without cache saving. Here is the structure of my project : I believe it is not relevant to show the Controls, Factory, Hive, Bee javascript files as they are not using any P5 related code. […]

Categories
Mastering Development

How to plot the fitted line?

Plot these data and the fitted line. x <- c(25, 50, 100, 150, 155, 187, 200, 237, 287, 290, 300) y <- c(6.13, 5.51, 6.18, 6.70, 7.22, 7.28, 7.22, 7.48, 7.38, 7.38, 7.64) My fitted line is y=-436.845+0.006266667x. How to draw these points and the fitted line in the same graph? I need to specify […]

Categories
Mastering Development

Selecting button in winapi causes other functionality to break

I am writing an app with the Win32 API. The layout basically consists of a left window that never changes and a right window that changes between two windows. To control this change, I am using ShowWindow(hWnd, SW_SHOW/SW_HIDE). In the left window, there is a button that reveals one window and hides the other. I […]

Categories
Mastering Development

Subplots for different samples of Gaussian Distribution using python

I am trying to get 3 different subplots for 3 samples of gaussian distribution using hist() and for loop. My code is as: import numpy as np import matplotlib.pyplot as plt from scipy.optimize import curve_fit np.random.seed(123456) mu,sigma=0,0.1 x=[100, 200, 500] for i in x: data= np.random.normal(mu,sigma,i) f,a = plt.subplots(3,1) a = a.ravel() for idx,ax in […]

Categories
Mastering Development

why app is showing white screen in release mode?

I have upload an ios app developed with flutter on appstore for testing in testflight mode ,but it show white screen on some device when i used to test it ,but on some of the devices it worked fine, what will be the issue This is my splash screen file @override Widget build(BuildContext context) { […]

Categories
Mastering Development

Passing variables to a querystring within a vuejs component

I have a script I’ve used from codepen to create Tinder-like swipe cards. It all works fine except for one thing – I need to pass a querystring with variables so when the user swipes right they are taken to another page. In this section of code I can do this if the URL is […]

Categories
Mastering Development

itext7: deferred signing not producing a valid signed pdf

I’m trying to use itext7 to sign a pdf by getting the signature from an external entity. I must be missing something because the deferred pdf signing is not valid. Lets start with the code for deferred signing: public byte[] GetDocHashFromPreparedDocToSign(string pathToOriginalPdf, string pathToPreparedToBeSignedPdf, List<X509Certificate> certificates) { var pdfSigner = new PdfSigner(new PdfReader(pathToOriginalPdf), new FileStream(pathToPreparedToBeSignedPdf, […]

Categories
Mastering Development

SQL server Looping through columns

I have a table with multiple columns and I want to check if how many column has value greater than 5 like below. Can you please help? Thanks, HHC do i=1 to last_collumn; if column(i)>5 then count=count+1; end; Create TABLE have1 ( id number(32), set1_a varchar(225), set1_b varchar(225), set1_c varchar(225), set2_x varchar(225), set2_y varchar(225), set3_n […]