Change Photo
Darren Runolfsson

Questions by Darren Runolfsson

How to make a crescent moon shape in HTML canvas?

I need to make the following shape in HTML5 canvas. I have tried using cubic bezier arcs and also clipping two circl...

How to create an array of enums?

I have about 30 different flagged enums that I would like to put into an array for indexing and quick access. Let me...

SQL keys, MUL vs PRI vs UNI?

What is the difference between MUL, PRI and UNI in MySQL? I'm working on a MySQL query, using the command: desc my...

MySQL the right syntax to use near '' at line 1 error?

hello i have a run a query using php it give error You have an error in your SQL syntax; check the manual that cor...

Using node.js to listen on 2 different ports?

I'm currently using Sockets.io to communicate with clients, sending JSON and whatnot, from a port. That's all worki...

Make WPF window draggable, no matter what element is clicked?

My question is 2 fold, and I am hoping there are easier solutions to both provided by WPF rather than the standard s...

How to change jupyter kernel from Python 2 to python 3??

I have installed Jupiter notebook and I only have python 2 as a default kernel. I want to change it from python 2 to...

How to get Bitmap from an Uri??

How to get a Bitmap object from an Uri (if I succeed to store it in /data/data/MYFOLDER/myimage.png or file///data/...

How to add a URL String in a JSON object?

I need to add a URL typically in the format http:\somewebsite.com\somepage.asp. When I create a string with the abo...

When opening a RecordSet in Access VBA, if the type is dbOpenSnapshot, does it make the option dbReadOnly redundant??

In Access VBA, when opening a recordset as a snapshot, does it make the read-only option redundant? At first thought...

List of Built-in WPF Fonts?

I'm looking for the list of "safe" font families to use in a WPF application - font families that should be installe...

Run batch file as a Windows service?

In order to run one application, a batch file has to be kicked off (which does things like start Jetty, display live...

How do you write a migration to rename an ActiveRecord model and its table in Rails??

I'm terrible at naming and realize that there are a better set of names for my models in my Rails app. Is there any ...

ImportError: No module named pip?

OS: Mac OS X 10.7.5 Python Ver: 2.7.5 I have installed setuptools 1.0 with ez_setup.py from https://pypi.python.or...

Can someone explain how Big-Oh works with Summations??

I know this isn't strictly a programming question, but it is a computer science question so I'm hoping someone can h...