How to get rid of “windows can’t verify the publisher of this driver software” window?

How to get rid of the “Windows can’t verify the publisher of this driver software” window? Policy setting didn’t work. I have tried the following suggested solutions however neither one has worked. I am working on Driver Validation test automation using C# language and I would like to avoid the user interaction while installing/uninstalling drivers. … Read more

Missing vc_runtimeminimum_x86.msi and installation won’t work

Go to Control Panel–Programs and Features, uninstall the Visual C++ 2015 Redistribute items. After that, run the tool: https://support.microsoft.com/en-us/help/17588/fix-problems-that-block-programs-from-being-installed-or-removed. Re-run the VS 2017 installer as administrator, then click the icon besides ‘Launch’ and choose ‘Repair’ to repair the VS 2017.

How do you round to 1 decimal place in Javascript?

Math.round(num * 10) / 10 works, here is an example… if you want it to have one decimal place, even when that would be a 0, then add… EDIT: Add round with precision function… Using this principle, for reference, here is a handy little round function that takes precision… … usage … … defaults to round … Read more

Getting “TypeError: failed to fetch” when the request hasn’t actually failed

The issue could be with the response you are receiving from back-end. If it was working fine on the server then the problem could be with the response headers. Check the Access-Control-Allow-Origin (ACAO) in the response headers. Usually react’s fetch API will throw fail to fetch even after receiving response when the response headers’ ACAO and the … Read more

How to convert List to int[] in Java?

Unfortunately, I don’t believe there really is a better way of doing this due to the nature of Java’s handling of primitive types, boxing, arrays and generics. In particular: List<T>.toArray won’t work because there’s no conversion from Integer to int You can’t use int as a type argument for generics, so it would have to be an int-specific method (or one which used reflection to do … Read more

not a Stata version 5-12 .dta file

Had the same problem and Roland’s suggestion of using read_dta from the haven package worked! To reiterate Roland’s comment that helped form this solution. read.dta from the foreign package can only read files from Stata version 5 to 12 and your file seems to be created by a version outside that range. haven’s read_dta can read dta files outside … Read more

Categories R

invalid type (list) for variable

tl;dr rows of data frames are lists, not numeric vectors. When you read.table() you get a data frame (so constructing a matrix, as I did before, doesn’t replicate the problem). The fact that this is a list, not a numeric vector, is a problem. There are a variety of ways of handling this. The easiest is unlist():

Categories R