Are CAPTCHAs Accessible?

I am writing a website in my spare time for an educational facility and from what I've read on the statistics of this place they seem to have many disabled students studying there. Simply put, I'm...

How do you read from stdin in python from a pipe which has no ending

I've problem to read from Standard input or pipe in python when the pipe is from a "open" (do not know right name) file. I have as example pipetest.py: import sys import time k = 0 try: for...

Can inherited public methods be excluded from Pylint's statistics?

Pylint keeps reporting an error (R: 73,0:MyLogging: Too many public methods (22/20)) for the following code: class MyLogging(logging.Logger): def foo(self): pass def bar(self): ...

lme4/Matrix: Entry Point Not Found - how to fix?

I have been using lme4 every day for quite a while. Today, after opening R (x64 v 2.15.1), it complained that there is no package called ‘lme4’. So I re-installed it. When I ran require(lme4)...

Error in gzfile(file, "wb"): cannot open the connection or compressed file

I'm trying to run two things: first, I'm creating a PDF with 4x5, ending with dev.off(), and then trying to create a new graph. However, after starting the second plot, I get: Error in...

How to capture stdout output from a Python function call?

I'm using a Python library that does something to an object do_something(my_object) and changes it. While doing so, it prints some statistics to stdout, and I'd like to get a grip on this...

Given a true random number generator which outputs either a 1 or 0 per call, how do you use this to pick a number from an arbitrary range?

If I have a true random number generator (TRNG) which can give me either a 0 or a 1 each time I call it, then it is trivial to then generate any number in a range with a length equal to a power of...

Open Web Analytics tracking doesn't work

I am a new owa(Open Web Analytics) user, I have installed owa in /owa/apache/htdocs/owa and create one index.html under /owa/apache/htdocs with blow content However I won’t be able to see any...

Failed to build gem native extensions of jquery-rails after installing Python 2.7

Using: Ruby: 2.1.1 Rails: 4 OS: Debian Wheezy Short problem story: I installed Python 2.7 and now my bundle install won't succeed anymore. It got stuck at: Using jquery-rails...

How to plot ROC curve in Python

I am trying to plot a ROC curve to evaluate the accuracy of a prediction model I developed in Python using logistic regression packages. I have computed the true positive rate as well as the false...

What is the best practice of docker + ufw under Ubuntu

I just tried out Docker. It is awesome but seems not work nicely with ufw. By default, docker will manipulate the iptables a little bit. The outcome is not a bug but not what I expected. For more...

Eloquent error: A facade root has not been set

I have been using Eloquent as a standalone package in Slim Framework 2 successfully. But now that I want to make use of Illuminate\Support\Facades\DB since I need to show some statistics by...

Feature Normalization

In statistics we hardly ever do feature normalization. We center covariates when needed, but don't do normalization. In machine learning, specifically deep learning feature normalization is...

Compute a confidence interval from sample data assuming unknown distribution

I have sample data which I would like to compute a confidence interval for, assuming a distribution is not normal and is unknown. Basically, it looks like distribution is Pareto but I don't know...

Error in gam function in R

I have a problem with my R code about a multiple linear regression. First, I try to use the gam function but this gives me an error. Here is the...

Pip ReadTimeoutError in Windows 10

Fresh Python 3.7 64-bit install downloaded from their main website, working on Windows 10 Pro. Using PowerShell with Admin rights. Pip always throws ReadTimeoutError. The command: python -m pip...

RestSharp "Not found" response

I'm trying to use the Youtube Data API v3 with RestSharp. Problem is: I get the response: "Not found" when I try to send a request. var client = new...

Negative values in time series forecast

I am trying to perform univariate time series forecasting in python on a monthly rainfall dataset of 136 years using ARIMA. My dataset is of the form: YEAR RAINFALL 2000-01-01 ...

Python stats module: How to extract confidence/prediction intervals from GPy?

After having looked through all the docs and examples online, I have not been able to find a way to extract information regarding the confidence or prediction intervals from GPy models. I generate...

The SelectInput "Selected" for R/Shiny is not working

I'm in the midst of building a Shiny application that shows COVID-19 statistics. Right now, I'm trying to set the default selectInput; selected == "World", with data$location, but for some reason...

What will be best "formula" for this mixed effects model

I have following study which I want to analyze with Mixed effects model: "Subjects" are divided in two "Group" (Treatment A and B). "Weight" is recorded before and 3 months ("Time") after...

multivariate time series anomaly detection

I have a time series data looks like the sample data below. so as you can see, i have four events as well as total number of occurrence of each event between different hours. after one hour, I...

ReadTimeoutError/pip not installling any library

as written in the title and as you can see in the first image I'm trying to install pandas and I get this error each time and not just pandas but all the libraries , I know this question has been...

Cannot add a DPDK-bound interface to the OVS bridge

I am unsucessfully trying to add a PCI interface (I219-V) to the OVS bridge using ovs-vsctl: [email protected]:/home/me# ovs-vsctl add-port br0 tryport -- set Interface tryport type=dpdk...

DOCKER container with postgres, WARNING: could not open statistics file "pg_stat_tmp/global.stat": Operation not permitted

I have a DOCKER container built from a few different images using a .yml, Dockerfile(s), etc. Everything builds and runs fine so far, except for this one issue that I am seeing mentioned in the...

How to calculate Mean Absolute Error (MAE) and Mean Signed Error (MSE) using pandas/numpy/python math libray?

I have a dataset like below. In this dataset, there are different colored thermometers, and given a 'True' or reference temperature, how different they measure according to some measurement...

Unable to refresh the statistics in hangfire dashboard

My website running with hangfire on the same server. The hangfire dashboard runs well on local. However, while I access http://localhost/hangfire/recurring on the server computer, it reports this...

How to route internet traffic via `Clash for Windows` (Ping from Python code is not working)

from os import system system("ping www.twitter.com") system("ping www.yahoo.com") system("ping www.facebook.com") I am in China, and Twitter and Facebook are banned here. I can open them in the...

Java update from 11.0.11 to 11.0.13 changes JVM code cache behavior and results in more process cpu usage and strange profiled nmethods memory usage

We run a complex clustered application with Java 11.0.11 and -XX:ReservedCodeCacheSize=375m with the same load profile attached 24/7 without any restarts. After we updated AdoptOpenJDK...

How to get sufficient entropy for shuffling cards in Java?

I'm working on a statistics project involving cards and shuffling, and I've run across an issue with random number generation. From a simple bit of math there are 52! possible deck permutations,...

Relevant tags