Change Photo
Winfield Jones

Questions by Winfield Jones

Writing handler for UIAlertAction?

I'm presenting a UIAlertView to the user and I can't figure out how to write the handler. This is my attempt: let a...

Print pi to a number of decimal places?

One of the challenges on w3resources is to print pi to 'n' decimal places. Here is my code: from math import pi fr...

using onClick on images to display text?

I should start off by saying that if there is a question like this I'm very sorry but I couldn't quite find a defini...

Facebook login NullPointerException?

Am trying to implement the Facebook login for Android using the Facebook SDK (3.17.1) but i am having some issues i ...

Python IOError: File not open for reading?

I get an error when I try to open a file in Python. Here is my code : >>> import os.path >>> os.p...

Is Minimum Spanning Tree afraid of negative weights??

This is a follow-up question of Why most graph algorithms do not adapt so easily to negative numbers?. I think Shor...

Incompatible implicit declaration of built-in function ‘malloc’?

I'm getting this error: warning: incompatible implicit declaration of built-in function ‘malloc’ I am tryi...

Can't use SURF, SIFT in OpenCV?

I'm trying a simple thing like detector = cv2.SIFT() and get this bad error detector = cv2.SIFT() AttributeError...

What is HibernateTemplate class??

I am new in Hibernate currently want to implement the Hibernate Template classes , any one please tell me about the...

Django: OperationalError No Such Table?

I'm building a fairly simple application, research, in my Django project that uses Django-CMS. (It's my first groun...

Can someone explain how this bitCount code works??

This is code that my TA help me get, but then I completely forgot how it worked exactly since I can't seem to get th...

How to convert x,y coordinates to an angle??

Microsoft provide an excellent SVG gradient maker so IE9 can also have "CSS3" gradients (click Custom). I currently...

Fatal error: 'stdafx.h' file not found?

I am new to programming C++ and am trying to learn myself through websites (learncpp.com) although I am already stuc...

Android Intent Cannot resolve constructor?

I have a first class extending Fragment, and a second class extending Activity. My Fragment is working fine, and my...