Wednesday
Apr162014

Tessa Colors.nb, a Gift to the Public Domain

(*Tessa Colors is inspired by Andy Warhol's 4x4 screen prints.  Code creation by Dustan Doud as gift to the Public Domain 2O14.   Written in Wolfram Language.  The program is only about 13 lines long.  One file in - ~124 files and color variations output.  Paste this article into mathematica to run.

Program Description :
Load one image, get many colorful variations.  You'll need to edit the setyourdirectory to match your file location, and likewise save to a reasonable spot.  Hint:  view the  variable frame and edit intresting images accordingly.  Speedy enough on a modern computer, but probably not ideal with 200mb pictures and a Raspberry Pi computer.*)

inputimage = Import["/setyourdirectory/picturefile.jpg"]; is =
 ColorSeparate[inputimage];
frame = Table[
  ImageAdjust[ImageSubtract[is[[a]], is[[b]]]], {a, 1, 3}, {b, 1,
   3}]; (*view frame and select four of nine images within interesting images*)

 

interestingimages = {frame[[2]], frame[[3]], frame[[6]], 

  frame[[7]]}; list = Permutations[interestingimages, {3}];

mommix = Table[ColorCombine[list[[a]]], {a, 1, Length[list]}];

momremix =
  Table[ImageAdd[mommix[[a]], interestingimages[[b]]], {a, 1,
    Length[mommix]}, {b, 1, 4}];

mk = Flatten[momremix]; 

Table[Export["/setyourdirectory/Mom0" <> ToString[loop] <> ".jpg",
  milkkids[[loop]] ] ,  {loop, 1, Length[momremix]} ]; Table[
 Export["/directory/Moms" <> ToString[loop] <> ".jpg", mk[[loop]] ] ,  {loop,
  1, Length[mk]} ];

Wednesday
Apr162014

Kindergarden Challenges Facing Purple, Green and Orange Skinned Minorities

My daughter T. made a survey as her art project for a project fair.  I had made a Andy Warhol / Marilyn Monroe inspired digital screen print color mix matcher (See Tessa Colors).   One photo in (in this case, her mother in Kindergarden) and ~120 photos with color modulations came out.  She thought some of the prints were silly, happy or scary and used them for her really so unstructured project that I should of been a helicopter parent.

Here are the results of her survey:  

    

Clearly, purple and gray-green skinned little girls get no love - at least compared to that popular blue haired pink girl or the brightly colored cyan kid with the orange hair.  

I'm not certain what any of this means; ultimately its hard to put much stock in the preferences of nine 5 year old kindergardeners.  

....A neighbor read the poster and made an appeal against racism.  

The notions that there is one best race and the person that has those feelings conveniently happens to already 'be on the winning team,' as it were, seems widespread and something fundamentally flawed in many people.   My work with genetic algorithms makes me intuit that genetic diversity makes humanity stronger.  The whole of human genetic diversity can nearly be summed up in a village of 60 unique people.  That's not a healthy amount of genetic diversity in a species.  From a computational genetics standpoint, that looks dangerously close to a evolutionary dead end where humanity eventually faces extinction by failing to adapt to a virulent pathogen.  

So to my daughter T:  When it comes to people, there never has been one best kind.  Diversity makes populations stronger and keeps humaity alive.  And when it comes to hair and clothes, hands down go with pink.

Friday
Apr112014

Thumbs up on the Anova Sous Vide

If you love to do your home cooking in a pissy-complicated "get out the gram scale" kind of way just like me, then the Anova Sous Vide machine is a practical two hundred dollar investment.  Perfectly perfect medium rare dry seasoned steaks ala ziplock (55C for 1 hour) or fantasticly moist chicken breasts (62.8C for 80 minutes).  Just finish with a quick sear under the map-gas flame thrower to your choice of color, then salt and drizzle with a 39:1 mix of butter and white truffle oil.  

Easy peasy.  

Especially if you are doing your cooking in your stainless sink!  Cleanup: Pull out the anova.  Add dishes and soap, give em a long soak, then a scaldingly fast dip to pull the drain plug out, and load dishes into the dishwasher.

Seriously, neat product.

 

Rag noodle shrimp primaverde.  I realized this recipe is mine.  So I share:

In sous vide pouch at 140F/60C about 40min:

1 pound shring, raw.

4 tab butter.

1 clove garlic, intact but top and bottom 1/8th cut off

2 tablespoons Wondra instantized flour + 1/2 tablespoon flour

1 teaspoon better than bullion chicken

1.25 cups water.

 

After setting up sous vide,

 set up a seperate wok to boil water for cooking noodles ~ 2 quarts.  

 

Now make the noodles:

 

Blender:  Chop 1.5 cups flour and 1.5 tablespoons butter.  Add 3 eggs and 1/2 tsp salt.  Blend into dough.  

Countertop:  Roll dough into (~20sheets of paper) thin sheet.   with lots of extra flour to prevent stickyness.  Employ child labor if available.   They do like to help, even if they complain, and if they help cook, they are more likely to eat.

Cleanup countertop.  Again, employ child labor if available.  This also ensures that the child will almost certainly pull a 'sneak-away' after counter cleaning keeping them away from boiling liquids in the next step.    

In wok:  Tear coarse flat noodles and drop them into boiling water.  Cook 5 minutes.  Add half a bag of frozen vegetables, birdeye mix of carrots, asparagus, diced peppers is great.  Reheat just to a boil.  Drain off liquids.

pour sous vide shrimp and sauce from pouch into wok.

Mix and cook high heat until sauce just boils - about 2 minutes.  Turn off heat.  Thicken by sprinkle of 1/2 extra tablespoon flour if needed.   Add pepper or itallian herbs to taste and serve

 

 

Friday
Apr112014

Mathematica 10? Wolfram Language

I've gotta say that I'm terribly interested in Wolfram Language - although I suspect it will remain a bit more web-centric than my own tastes in software run.   What makes mathematica so amazing is that if you can conceptualize the essence of a problem properly in the language, a hundred lines of code can often do amazing things that some other computer languages might accomplish in ten thousand lines of code.   Of course it's not such an easy feat to "conceptualize" and describe problems - and its possible to implement a search for solutions on a model that has no validity in our universe. 

 
But those are problems in thinking about problems.
 
I'm going all "six-year-old kid in a candy store" for Wolfram Language; just can't wait to get my grubby fists sunk deep in those bins.  Just wondering if my ideas will still be my ideas if the computation is completed by a corporate cloud.  Never-mind. O-boy!  Oboy oboy oboy!   :)
 
Friday
Jan172014

Lamentations on Steven Jay Gould

 

I visited my local library this week.  While perusing the stacks I came across Steven Jay Gould's book "The Structure of Evolutionary Theory" and found the hours slip by.   For a blogger that didn't read even a tenth of the ~1200? pages I'm going to offer stiff criticism - it reads like a fussy historian's blog.  

I didn't spot the data or mathematical models I might of been looking for.  More eloquent histories and pictures of Cathedrals than apparent grounding in mathematical theory.  

Steven Jay Gould was a childhood hero of mine.  His insights into biology were extraordinary.  I miss reading his regular columns, and he died too soon at 60 years.  The Structure of Evolutionary Theory is a terrible stand-in for Mr. Gould himself.

Words directed at the next biologist superstar (a species more rare, apparently, than superstar physicists):  Consider great collaborations with a brilliant mathematician.  The division between evolution and information theory is just about specifics. 

It seems perfectly obvious to me that genetic algorithms can find workable solutions to problems well beyond the grasp of a bright human mind.  The evidence that they can and do is nearly everywhere.

-D