07 November, 2009

Lime pie recipe


Tastes great!
  • 2 ripe avocados
  • 1/2 cup coconut milk
  • 2 tablespoons vanilla (or vanillated sugar)
  • 3/4 cup agave syrup (or sugar syrup)
  • 1/2 cup lime juice
  • 1/8 tablespoon salt
  • 3/4 cup coconut butter (or coconut oil)
  • pie crust (below a recipe for it)
Mix all the ingredients (except the pie crust) in a blender.
  • 180 gr plain cookies
  • 200 gr butter
Melt the butter and crush finely the cookies. Mix and place in the bottom of a cake pan, also on the sides of it. Pour the blended mix and place in the refrigerator for at least 6 hours.

Related posts:

05 November, 2009

Vector Tanks: iPod-iPhone game



A few days ago I was looking for a vector drawing program, capable of SVG à la InkScape. So I went to the App Store, and looked for "vector". I found no vector editing, but I found Vector Tanks, and looked nice enough to (after googling and youtube) buying it. I think it is overpriced, but it is an enjoyable and fun game. I miss resuming games after tapping the "home" button. Also in the instructions says after several seconds of not touching the screen the game pauses... I wonder how many seconds are this! I have not been able to pause it this way.




You are in a vectorised, green-red-pink field, with enemy tanks you have to shoot. To move, you drag those green boxes on the sides, each one depicting one side of the caterpillar. Thus you can rotate on place, or move easily. To fire, you tap on the center.


Beware of the reloading time!

Of course the tanks can fire back:



Or you can hit a land mine



All these features appear in the radar screen (crosses are mines, boxes are, well boxes to hide behind, light green things are enemies).



You can find jeeps and tanks. Each tank is worth 100 points, jeeps are quicker, don't fire back and try to evade you. You can run over them, though, and are worth 1000 points.



You can find also three diferent power-ups: Shields, rapid-fire and nukes. The first two are timer based, the third, use based. It creates a huge blast, that can also kill you. Better have shields!



You can find more about the game at the creator's page, ir the creator's blog: new ongoing version.

Another ("strange") Mac game related posts:
Some Mac/Linux/iPod-related posts you may like:

03 November, 2009

External rays & Lavaurs algorithm

As you may remember, I spent quite some time this August with Lavaurs algorithm for the topological identification of the circle corresponding to the Mandelbrot set. After that, I spent quite some more trying to do pictures of external rays to show side by side. I was not able... and then found Mandel.

Really nice program, with lots and lots of options (and I met the programmer, which happens to be also mathematician, we met at a conference). I asked if there was some whay to draw all rays in one step, as it stands I needed to press "e", enter the rational number corresponding to the ray, and enter. "No, you should change the source... probably the best way was to do it by hand if there are not too many rays".

I though No way! I don't want to do it by hand, neither mess with someone else's code... I am teaching a class of computer things, and I must look at too much C code.

I wrote a LISP prorgam that, given a "level" uses my Lavaurs code to generate a shell script in Mac OS (full of command line AppleScript) such that the needed keystrokes are sent to the Mandel application.

The code is as follows
(defun GenerateScript (Num)
(progn
(format t "open -a mandel.app;~%")
(format t "osascript -e 'delay 0.1';~%")
(format t "osascript -e 'tell application \"System Events\" to keystroke \"5\"';~%")
(format t "osascript -e 'delay 0.1';~%")
(format t "osascript -e 'tell application \"System Events\" to key code 99';~%")
(format t "osascript -e 'tell application \"System Events\" to keystroke \"600\"';~%")
(format t "osascript -e 'tell application \"System Events\" to keystroke return';~%")
(format t "osascript -e 'delay 0.9';~%")
(dotimes (n Num)
(dolist (X (PeriodK n))
(progn
(format t "osascript -e 'tell application \"System Events\" to keystroke \"e ~A\"';~%" X)
(format t "osascript -e 'tell application \"System Events\" to keystroke return';~%")
)))))
This opens Mandel, changes resolution and drawing algorithm and sends all rays. And the result is as follows:


Thanks to Mandel, LISP and my Lavaurs code