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.
Thanks Eli!
Posted Monday, March 22nd, 2010 by Ofri Wolfus in Code | No Comments »
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?
Posted Sunday, March 21st, 2010 by Ofri Wolfus in Photography | No Comments »
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?
Posted Friday, March 19th, 2010 by Ofri Wolfus in Code | 1 Comment »
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 »
Posted Wednesday, March 17th, 2010 by Ofri Wolfus in Code, dPompa | No Comments »
So on friday morning I went to the beach with friends and took a few shots (some with my band new Tokina 11-16
)
Posted Monday, March 15th, 2010 by Ofri Wolfus in Photography | No Comments »