Uploadify & PHP Sessions

Secured sites need the following parameter passed across;

session_id: <?= session_id() ?>

And somewhere in the code it should pick this up out of the $_REQUEST variable and set it … basically the problem lies in flash (what uploadify uses) not using the same session data as your browser, thus in flash’s eyes you seem logged out and it can’t do much in the way of sending files to where they need to go.

jQuery Tricks with Facebox

To use focus() and datepicker(..) properly with facebox, these need to be added in using the reveal.facebox(…) event AND use the #facebox tag as well (facebox does a copy of the content to put in it’s popup window and you can’t have two boxes focused at the same time now can we?!)

$(function() {
 $(document).bind('reveal.facebox', function() {
 $('#facebox #new_date').datepicker({dateFormat: 'dd/mm/yy'});
 $('#facebox #new_date').focus();
 });
});

Thanks goes to¬†http://groups.google.com/group/facebox/msg/aea0ba1522bf13a3 for this trick! ūüôā

Babovka (Cake)

Ingredients:

  1. 240g butter
  2. 1 & 1/4 cup sugar
  3. 5 Eggs (separate whites from yolks)
  4. 2 & 1/4 cups plain flour
  5. 1 cup milk
  6. 2 teaspoons baking powder
  7. 1/2 teaspoon grated lemon rind
  8. 1 teaspoon vanilla essence
  9. 1/3 cup cocoa powder
  10. oil for pan

Method

  1. Mix butter & sugar
  2. Add eggs yolks
  3. Beat till light & creamy
  4. Mix in flour & milk alternatively
  5. Add baking powder into last 1/2 cup of flour
  6. Blend in lemon peel & vanilla
  7. Fold in stiffly beaten egg whites
  8. Pour 1/2 batter into another bowl and add in chocolate
  9. Pour in batter in 4 alternating light & dark layers
  10. Cut through with a spoon for marbled effect
  11. Bake in preheated 200 degrees oven for 60-75 mins
  12. Cool in pan for 15 mins, then turn out
  13. Sprinkle in icing sugar