Tuesday, January 20, 2009

Mathetmatics, programming, and boozy brownies

In which I discuss everything a lady nerd needs to be happy: the Internet, mathematics, programming, learning, booze, chocolate, and baking. Actually, for the majority of people, I'd be willing to shorten that list to the Internet, booze, and chocolate, but for the purposes of this post, keep the longer version in mind.

A friend of mine (not Eli) has challenged me to Project Euler. Yeah, I didn't know what that meant either. So Project Euler is a bunch of math problems that you eventually need programming skills to solve, basically, and until then need some pretty mad spreadsheet skills. Well, there was one that was totally pen and paper, but other than that, mad skills. My friend and I are doing it to learn nifty new math and promgramming. According to the website:

Project Euler is a series of challenging mathematical/computer programming
problems that will require more than just mathematical insights to solve.
Although mathematics will help you arrive at elegant and efficient methods, the
use of a computer and programming skills will be required to solve most
problems.The motivation for starting Project Euler, and its continuation, is to
provide a platform for the inquiring mind to delve into unfamiliar areas and
learn new concepts in a fun and recreational context.

We're challenging ourselves to see who can do more faster. He started out ahead of me by doing a few while everyone else was playing Apples to Apples. Then I got in gear and started to kick is ass before getting hung up on an Excel function I couldn't figure out. I kicked it today and did two while at lunch.

It's fun, but also more than fun.

If that's not your cup of tea, here's a recipe for boozy brownies for you:

Preheat your oven to 325*F.

Combine 1 1/4 stick butter, 1 1/4 cups sugar, 3/4 cup cocoa, and 1/4 tsp salt
in a pan over medium-low heat. Stir until butter is melted and sugar
seemed to have melted in, is less grainy.

In a separate bowl, add 1/2 tsp pure vanilla, 3 tbsp fancy brandy (it's
half brandy, half congac), two eggs and stir until combined. Eggs
should be scrambled nicely.

Add 1/2 cup flour to chocolate mix. Fold in.

Add egg mixture. Stir until completely mixed in together.

Add nuts or anything you want.

Put in greased baking dish and cook 20 - 25 minutes until fork inserted
comes out clean. I use a flat oval baking dish of sorts my mom gave
me. The original recipe calls for an 8x8 pan. These brownies are
super dense and super fudgy, so I'd say the more spread out the better.
Let them cool a bit before eating and make SURE you have milk on hand.
They are pretty intense.

And there you have it -- math and chocolate. Two of my favorite things. Now if I could only figure out the biggest palindrome made from 2 three digit numbers....

(Seriously, this is addictive, I just stayed 20 minutes late at work thinking about it.)

--Lu

7 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Well, what's the biggest four-digit palindrome you can make that's less than 2000? That'd be 1991, which you can get from adding 999 + 992, as well as 998 + 993, 997 + 994, and 996 + 995.

    Unless there were other qualifications.

    ReplyDelete
  3. Well, shiiiit. I did not make that clear enough. The palindrome is made by multiplying the two three digit numbers. And it is bigger than 888888, which was the highest one I've found so far but also wrong according to the website.

    ReplyDelete
  4. Ah, multiplication. So six digits palindromically, less than 998,001. Give me a few moments, I'll get back to you.

    ReplyDelete
  5. I'd like to give a hand to Eli who fucking rocks and figured out this question while we were both working on it. Go Eli!

    ReplyDelete
  6. What can I say? I'm brilliant. *grin*

    ReplyDelete
  7. Just stumbled across this entry and it totally made my morning. What could be better than math and chocolate and booze?!?

    ReplyDelete