Change Photo
Viviane Rutherford

Questions by Viviane Rutherford

What is the .dockerfile extension??

Visual Studio Code (1.22.2) offers a file extension named .dockerfile in the the save dialog. What is a file with th...

matplotlib: how to draw a rectangle on image?

How to draw a rectangle on an image, like this: import matplotlib.pyplot as plt from PIL import Image import numpy ...

How to convert a Drawable to a Bitmap??

I would like to set a certain Drawable as the device's wallpaper, but all wallpaper functions accept Bitmaps only. I...

github: server certificate verification failed?

I just created a github account and a repository therein, but when trying to create a local working copy using the r...

Python: Convert timedelta to int in a dataframe?

I would like to create a column in a pandas data frame that is an integer representation of the number of days in a ...

How to Convert string “07:35” (HH:MM) to TimeSpan?

I would like to know if there is a way to convert a 24 Hour time formatted string to a TimeSpan. Right now I have a...

JavaScript get element by name?

Consider this function: function validate() { var acc = document.getElementsByName('acc').value; var pass = doc...

pandas timestamp series to string??

I am new to python (coming from R), and I am trying to understand how I can convert a timestamp series in a pandas d...

Angular 2: How to write a for loop, not a foreach loop?

Using Angular 2, I want to duplicate a line in a template multiple times. Iterating over an object is easy, *ngFor="...

Using unicode character u201c?

I'm a new to python and am having problems understand unicode. I'm using Python 3.4. I've spent an entire day tryi...

Solve almostIncreasingSequence (Codefights)?

Given a sequence of integers as an array, determine whether it is possible to obtain a strictly increasing sequence ...

Simple PHP proxy with persistent URL?

I have the simple PHP script: <?php $url = $_REQUEST['url']; if (preg_match('/\b(https?|ftp):\/\/*/', $url) !== ...

XSD Definition for Enumerated Value?

I'm stuck trying to define an XSD containing a field that can have only one of the following three values: Green R...

std::string to float or double?

I'm trying to convert std::string to float/double. I tried: std::string num = "0.6"; double temp = (double)atof(num...