
“What the f*ck is” juice?
So I bought a juicer. I do like me a good fresh juice – carrot juice particularly, for some reason – but I hardly ever get to drink it because…. $3 for a tiny glass of carrot juice at Jamba Juice? Yeah, screw that.
Also, does anyone still ever go to Jamba Juice anymore?
I won’t lie, either; I also got it about three quarters of the way through watching “Fat, Sick, and Nearly Dead.” I was a little tipsy at the time, and apparently hokey documentaries on Hulu have replaced infomercials as my preferred method of late night time killers. I call them my “documentertainment.”
I don’t expect that to catch on. In fact, I kind of regret saying that at all.
At any rate, I woke up the next morning to a vague feeling of buyer’s remorse, and an email from Amazon saying, hey buddy, thanks for the sixty bucks.
Well I just made my first two cups of juice – the first was a tiny cup of carrot juice which (aside from the juicer) cost me about thirty cents, and the second was a hacked-together version of some juice recipe I found online.
I can already tell if I’m going to drink juice out of this thing regularly, I definitely need to formulate some of my own recipes. It promises to be interesting, because this will involve balancing flavors in a whole new way for me. I’m not really a salad maker, so I’m not actually very familiar with how to “cook” with raw flavors.
For example, carrots are delicious. I don’t care how you eat them or make them, they’re pretty damn good. On the other hand, kale is delicious when lightly sauteed with butter and garlic, (just so we’re clear, this is an easy way to make *anything* delicious) but when eaten raw, is… rather less appealing.
This recipe called for carrots, kale, an apple, and some other crap I didn’t have laying around, so I threw in some cucumbers and some extra carrots.
The taste is… interesting. The title of this post is what I’m calling this particular juice, because it kind of defies description.
Let’s see if I can, though.
You know how air freshener – pick any type you like – smells just super dandy?
And you know that hot, greasy loaf you pinched after a week straight of doritos and Cotijas burritos smells like a week-old skunk corpse in a microwave?
Now if you try covering up the second smell with the first smell, you don’t get a smooth transition. You get a strange melange of delightful and horrific, which makes the intestinal disaster oddly appealing, and will forever give your air freshener a nightmarish edge, which will hover around the edge of your perception until you finally just can’t use that air freshener anymore.
This juice is like that. It’s skunk-poo-cinnamon-glade.
Back to Henry’s for more carrots!
Hacked
Well, my site was hacked… over 3 weeks ago. I suppose it’s a sign of how out of balance my life is right now, when my entire online presence can get taken over by some ridiculous hacked webpage, and I don’t notice it for nearly a month.
At any rate, I’m restoring from old backups, ruthlessly wiping out whole swathes of directories on my server, and generally cleaning house. I suppose eventually I’ll come back with a leaner, more secure web presence; until then this whole thing has just been a colossal annoyance.
Cantaloupe
Flex and PHP Remoting: Typed Value Objects
After following a combination of Mihai Corlan’s and Alan Gruskoff’s excellent instructional posts on Zend AMF remoting with Flex, I was having some problems with returning typed objects from AMF into Flex.
The tear-your-hair-out-at-midnight-and-dream-about-running-away-and-opening-a-bar-in-Madagascar type of problems.
No matter what I did, AMF was returning generic Objects into Flex. I tried (what I thought was) everything. Octuple-checked my PHP value object classes, my PHP gateway, my PHP services, the metadata on my AS3 classes; nothing was working.
On a whim, manually imported the AS3 value object class into the test MXML component in which I was using the RemoteObject. No effect; still just getting arrays of Objects.
Finally, in desperation, I created an instance of the AS3 value object in the MXML component; I think at the time it was named “goToHellYouBastard,” or something similar. It didn’t do anything, wasn’t getting sent any data, and served no function but to sit there and look enticing, like a judas goat for my AMF value objects.
Worked like a charm. Oodles of typed objects returning from AMF.
So, for Zend AMF to successfully map to a value object class in Flex, on top of the framework stuff you need to get them talking to each other, it appears that you require:
- IDENTICAL value object classes. If you have methods on your value objects, no go. You’ll have to instantiate them as some other class, and recast or loop through the properties and transfer them over after they come into Flex. I’m still working on how to do this elegantly.
- A setClassMap for each mapping in your PHP gateway. Please note, it appears you don’t need to add any path/package information for these classes; regardless of where your classes are, it appears that: $server->setClassMap(“ValueObjectClass”,”ValueObjectClass”); will work fine.
- [Bindable] and [RemoteClass alias="ValueObjectClass"] metadata in your AS3 value object class.
- At least one instantiation of the AS3 value object class within the AS3 class from which you are doing the remoting calls.
For some reason I was under the impression that this wouldn’t be necessary. I was going to just grab all my VOs in a service call and hork them off to a model somewhere for processing, but it seems like I need at least one instance to start with. At any rate, I wasn’t able to find this specific information anywhere else (or at least, didn’t notice it); hopefully this will be of help to someone.