Change Photo
Mallory Kuhn

Answers by Mallory Kuhn

How do websites get this almost white color??

Short answer: Picture and CSS: both are possible. Long answer: To add a background image, you will have to do something like body { ...

3D Array in Python with mutliple data types?

You can create a np.recarray like shown below: a = np.recarray(4,dtype=[('col1',int),('col2','|S10'),('col3',int)]) a['col1'] = range(4) ...

np arrays being immutable - “assignment destination is read-only”?

Check if the array is writable with >>> img.flags C_CONTIGUOUS : True F_CONTIGUOUS : False OWNDATA : True WRITEABLE : Fa...

Extract year from date?

if all your dates are the same width, you can put the dates in a vector and use substring Date a <- c("01/01/2009", "01/01/2010" , "01...

Cannot draw italic text in Firefox canvas?

This is because Impact doesn't come with an italic version. You can see this when you view it in a font viewer (like Mac Font Book). Brows...

How do I put my website's logo to be the icon image in browser tabs??

That image is called 'favicon' and it's a small square shaped .ico file, which is the standard file type for favicons. You could use .png ...

How do I initialize a byte array in Java??

Using a function converting an hexa string to byte[], you could do byte[] CDRIVES = hexStringToByteArray("e04fd020ea3a6910a2d808002b3030...

Finding a regular expression?

Try this: 1* (011*)* 00 (11*0)* 1* An explanation: 1*: any amount of leading 1’s (011*)*: if there is a 0 before the 00, it must...

image/pjpeg and image/jpeg?

I believe most browsers wouldn't mind, except Internet Explorer which treats pjpeg files differently. According to this conversation, you...

Coin Change Maker Python Program?

I'm now sure about what you want to achieve. Using the modulo operator you could easily find out how many quarters, dimes, nickles and pen...

svnadmin not recognized?

As far as i know the svnadmin command is not part of those distributions. In TortoiseSVN there is no command client at all only the graphi...

Eclipse - “Workspace in use or cannot be created, chose a different one.” [duplicate]?

Right answer can be found in this (duplicate) question. I reproduced the answer here (and it works!): Just delete the .lock file in t...

what is a auth_user_file.txt??

I assume that those crawlers are looking for auth_user_file.txt because its name is probably given in some tutorial for Apache's mod_authn...

How can I remove non-ASCII characters but leave periods and spaces using Python??

You can filter all characters from the string that are not printable using string.printable, like this: >>> s = "some\x00string....

CodeIgniter: Unable to connect to your database server using the provided settings Error Message?

For me the issue was in the php.ini file. The property mysql.default_socket was pointing to file in a non-existent directory. The property...