Change Photo
Viviane Rutherford

Questions by Viviane Rutherford

How can I represent an infinite number in Python??

How can I represent an infinite number in python? No matter which number you enter in the program, no number should ...

Python here document without newlines at top and bottom?

What's the best way to have a here document, without newlines at the top and bottom? For example: print ''' dog ca...

Iif equivalent in C#?

Is there an IIf equivalent in C#? Or similar shortcut? ...

Project not selected to build for this solution configuration?

The error: >------ Skipped Deploy: Project: DrawShape.Android, Configuration: Debug Any CPU ------ >Project n...

List all PHP variables?

Is it possible to dump all global variables in a PHP script? Say this is my code: <?php $foo = 1; $bar = "2"; in...

cURL request in Laravel?

I am struggling to make this cURL request in Laravel curl -d '{"key1":"value1", "key2":"value2"}' -H "Content-Type:...

How do I remove a single breakpoint with GDB??

I can add a break point in GDB with: b <filename>:<line no> How can I remove an existing breakpoint a...

GCC: array type has incomplete element type?

I have declared a struct, and I try to pass an array of those structs (as well as a double array of doubles, and an ...

convert a char* to std::string?

I need to use an std::string to store data retrieved by fgets(). To do this I need to convert the char* return value...

Generate random float between two floats?

I know this is a rather simple question, but I'm just not too good at maths. I know how to generate a random float ...

Iterating over all the keys of a map?

Is there a way to get a list of all the keys in a Go language map? The number of elements is given by len(), but if...

How do I convert a Python 3 byte-string variable into a regular string??

I have read in an XML email attachment with bytes_string=part.get_payload(decode=False) The payload comes in as a...

Forming Bigrams of words in list of sentences with Python?

I have a list of sentences: text = ['cant railway station','citadel hotel',' police stn']. I need to form bigram...

Solver add-in error, solver32.dll not found and unexpected error occured?

I am using excel 2016. I am trying to automate solver to optimize my portfolio. The code works on a few pcs, but it ...

Alternative to winforms that can be easily used with C# and .NET?

I am tired of flickering of GUI and every possible control, milions of articles about double-buffering, ControlStyle...