Change Photo
Georgianna Johnston

Questions by Georgianna Johnston

Colouring plot by factor in R?

I am making a scatter plot of two variables and would like to colour the points by a factor variable. Here is some r...

How to insert newline in string literal??

In .NET I can provide both \r or \n string literals, but there is a way to insert something like "new line" special ...

What is the difference between dataview and datatable??

What is the difference between DataView and DataTable in .Net? As far as I understand DataView is just a false prese...

How to find absolute difference between two numbers MYSQL?

What's the best way to find the absolute difference between two numbers in MYSQL so that I may order results? The b...

OpenGL vs. OpenCL, which to choose and why??

What features make OpenCL unique to choose over OpenGL with GLSL for calculations? Despite the graphic related termi...

How to compare times in Python??

I see that date comparisons can be done and there's also datetime.timedelta(), but I'm struggling to find out how to...

Run-time error '1004' - Method 'Range' of object'_Global' failed?

I have a problem in VBA with a line throwing back an error. What the macro is intended to do is find a particular ...

What are the differences between CHECKSUM() and BINARY_CHECKSUM() and when/what are the appropriate usage scenarios??

Again MSDN does not really explain in plain English the exact difference, or the information for when to choose one ...

TypeError: must be str, not float?

this is 1/8 of my script: print('Your skill:', int(charskill)) with open('C:\Documents and Settings\Welcome\My Docu...

What is an AssertionError? In which case should I throw it from my own code??

In Item 2 of the "Effective Java, 2nd edition" book, there is this snippet of code, in which the author wants to for...

Is a slash (“/”) equivalent to an encoded slash (“%2F”) in the path portion of an HTTP URL?

I have a site that treats "/" and "%2F" in the path portion (not the query string) of a URL differently. Is this a ...

Keystore file does not exist?

I'm trying to use the Google Maps API in one of my projects and in the directions to set up the API credentials it w...

The anti-forgery token could not be decrypted?

I have a form: @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) { @Html.AntiForgeryToken() @Html.Vali...

find index of an int in a list?

Is there a way to get the index of an int from a list? Looking for something like list1.FindIndex(5) where I want to...

How many spaces for tab character(\t)??

I want to implement a text drawing function. But I am not sure how \t works, which means I don't know how many space...