HTML5 IndexedDB, Web SQL Database and browser wars

I'm starting the development of a web app with offline database storage requirements. Long story short, the app should be able to run on: One of the major desktop browsers, Chrome...

how accurate is the altitude measurement in mobile phones

How accurate is the altitude measurement from a mobile phone's GPS? I've gathered that the lat/long can vary by hundreds of meters but is that same level of uncertainty present in the altitude...

HTML5 drag and drop and multiple file upload

I have an HTML form that contains a file input field with multiple file selection and I also have a drag and drop feature that I am working on as well. My question is how to integrate both of...

C++ standard terminology for heap/stack

There seems to be some uncertainty about the terminology that should be used. There seems to be 2 different points of view: some people prefer to use heap and stack to mean the location of...

Difference between the built-in pow() and math.pow() for floats, in Python?

Is there a difference in the results returned by Python's built-in pow(x, y) (no third argument) and the values returned by math.pow(), in the case of two float arguments. I am asking this...

Order properties of object by value of customAttribute

What I'm trying to do is wirte linq expression which allows me to order my List<PropertyInfo> of some object by Custom attribute for example: public class SampleClass{ ...

What is the most reliable way of implementing toFixed()?

I'm trying to implement toFixed() to round to decimal places in a reliable way (the current toFixed() function returns different results across different browsers). My idea is implement it with...

Text mining using R to count frequency of words

I want to count the occurrence of the word "uncertainty" but only if "economic policy" or "legislation" or words pertaining to policies appear in the same text. Right now, I have come out with a...

Confidence intervals of the muhaz package hazard function

The muhaz package estimates the hazard function from right censored data using kernel smoothing methods. My question is, is there any way to obtain confidence intervals for the hazard function...

The different behavior of the function uasort in PHP 5.5 and PHP 7.0

I encountered a strange behavior of Magento 1.8 after changing php version from 5.5 to 7.0. This strange behavior is due to a change in the work function uasort. Source code: <?php $arr = [ ...

Symmetrical uncertainty

I want to implement a filter algorithm for dimension reduction using symmetrical uncertain. I do not know how to write mathematical equation containing probability. e.g. H(x)=-p(x)*log2(P(x)) Like...

How can I make sense of the `else` clause of Python loops?

Many Python programmers are probably unaware that the syntax of while loops and for loops includes an optional else: clause: for val in iterable: do_something(val) else: clean_up() The...

UWP App Communication with Windows Service

We are fixing to re-architect an application and are debating whether or not it is possible to use UWP instead of an ordinary WPF application. Our application needs the ability the access the...

Function inside render and class in reactjs

I'm trying to learn reactjs and i have some uncertainties. I was refering react DOCS and some other tutorials and i saw functions are written inside render function and also inside class. What...

Finding the point of a slope change as a free parameter- Python

Say I have two lists of data as follows: x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] y = [1, 2, 3, 4, 5, 6, 8, 10, 12, 14] That is, it's pretty clear that merely fitting a line to this data doesn't...

Conditionally make input field readonly in Angular 2 or 4: Advice + Best/which way to do it

I was attempting to answer someone elses question. And in doing so realised there was quite a bit of uncertainty in my mind about a few things. I'm hoping someone can provide feedback on the...

How to plot error ellipses from covariance matrix

I fitted my data with some parameters and now I have their optimal values popt and their covariance matrix pcov. I assume that these uncertainties are Gaussian and I would like to have a plot of...

Is there a way to get the error in fitting parameters from scipy.stats.norm.fit?

I have some data which I have fitted a normal distribution to using the scipy.stats.normal objects fit function like so: import numpy as np ...

perform Deming regression without intercept

I would like to perform Deming regression (or any equivalent of a regression method with uncertainties in both X and Y variables, such as York regression). In my application, I have a very good...

Perfomance SQL Server 2017 Graph vs Neo4j

I am researching about graph databases. I stumbled into SQL Server 2017 and learned that they added the option to use a graph database. But I have some uncertainties about the performance. I...

NodeJS Express async/await

Still getting the hang of Node's non-blocking nature. The following code executes as intended. However, I am wondering if there is a better approach to accomplish the task. There are 3 params...

How to a make a model ready for TensorFlow Serving REST interface with a base64 encoded image?

My understanding is that I should be able to grab a TensorFlow model from Google's AI Hub, deploy it to TensorFlow Serving and use it to make predictions by POSTing images via REST requests using...

How to inspect a Kendo multiselect?

I am developing automation for a page that has a kendo multiselect dropdown checklist. Normally I rely on the Chrome inspector dev tool to determine the Xpath of the elements I am...

Number of neurons for hidden layers

I'm trying to execute a Bayesian Neural Network that I found on the paper "Uncertainty on Deep Learning", Yarin Gal. I found this code on GitHub: import math from scipy.misc import...

Snakemake: --use-conda with --cluster

When I run with --cluster and --use-conda, Snakemake does not appear to set the conda environment before submitting to the cluster, and my jobs fail accordingly. Is there a trick I am missing to...

How to compute the uncertainty of a Monte Carlo Dropout neural network with PyTorch?

I am trying to implement Bayesian CNN using Mc Dropout on Pytorch, the main idea is that by applying dropout at test time and running over many forward passes, you get predictions from a variety...

4. Now fit a linear model for each metric and use the confint function to compare the estimates. (Batting)

Here's what I've done so far, I'm having difficulty figuring out the regression line. Before we get started, we want to generate two tables. One for 2002 and another for the average of 1999-2001...

Can gam.vcomp be used to estimate partial deviance explained in a GAM with gaulss family?

I am fitting a GAM using R package mgcv to estimate both a mean and SD: b <- gam(list(Y ~ s(X1)+s(X2)+s(X3), ~ s(X1)+s(X2)+s(X3)), family=gaulss(), data=somedata) Can I use the...

Is it possible to find uncertainties of spaCy POS tags?

I am trying to build a non-English spell checker that relies on classification of sentences by spaCy, which allows my algorithm to then use the POS tags and the grammatical dependencies of the...

Is a char array more efficient than a char pointer in C?

I'm trying to understand the under-the-hood difference between these two char declarations: char* str1; char str2[10]; I understand that using char* gives a pointer to the first character in...