Today I stumbled on a nice problem in a project I’m working on. I have an array with objects where each object has a weight. I then need to pick an object randomly while considering the weights (i.e heavier objects will get picked more often). If you think about this problem a bit you’ll definitely come up with a working solution, but Eli Bendersky took the time to sum it up nicely for all of us.
This saturday noon we had a meal with the family. That day had a beautiful sun and I decided to try and make some interesting colors. Here’s what came out. What do you think?
So was trying to debug my app in the simulator when I got one of these cryptic “Error 14389654: The debugger can’t launch the simulator” messages. Obviously the simulator was already running. Fine, let’s quit the simulator and Xcode, and relaunch them. But then when I hit Command+Q in Xcode I got this frightening error:
Don’t you just love Xcode?
I’ve been researching Git for some time now and started using it full time. I decided to give Git a try after having a lot of pain with SVN. The experience until now has been absolutely amazing! Read the rest of this entry »
So on friday morning I went to the beach with friends and took a few shots (some with my band new Tokina 11-16 )