Perl: map
Tutoring Perl: the tutor gives an example of Perl’s fantastic map function. Suppose you have the array (1,2,3,4), but you want to musically enhance it to (and a 1, and a 2,….) @arr=map {‘and a ‘.$_} (1,2,3,4); yields @arr = …
Tutoring Perl: the tutor gives an example of Perl’s fantastic map function. Suppose you have the array (1,2,3,4), but you want to musically enhance it to (and a 1, and a 2,….) @arr=map {‘and a ‘.$_} (1,2,3,4); yields @arr = …
Self-tutoring about PHP: the tutor looks into the hazard of register_globals. In PHP, register_globals, when set to 1 (or on), could allow variables to be created and set from within web requests. In particular, if a variable was uninitialized in …
Computer science: PHP: the register_globals phenomenon Read more »
Perl tutoring: the tutor compares a greedy match with its corresponding lazy one. argument greedy lazy e2ee9a /e\w*\d/ /e\w*?\d/ match e2ee9 e2 Source: roberts perl tutorial McGrath, Mike. Perl in easy steps. Southam: Computer Step, 2004.
Self-tutoring about point of view: the tutor mentions a discussion with his son. Returning from the gym this morning, my son mentioned Eddie Hall. “He dead-lifted 500kg. From the exertion, he forgot his children’s names for two weeks.” I paused, …
Self-tutoring about baking: the tutor nears fulfillment of a long held curiosity. I first heard of red velvet cake possibly on Master Chef. Since then, I notice it often. I assume it must be something special. I heard tell that …
Self-tutoring about cooking: the tutor mentions findings about the desired internal temperature of pork roast. Yesterday I looked up the internal temperature for pork roast. Here are my findings, as I understand: USDA Health Canada 145F (followed by 3+ minute …
Perl tutoring: the tutor comments about square brackets in Perl regex. Perl regex match string /[beat24]/ string containing any of b,e,a,t,2,or 4. /beat24/ string containing the exact sequence beat24 Source: McGrath, Mike. Perl in easy steps. Southam: Computer Step, 2004.
More self-tutoring about sweet sorghum: the tutor continues about the traditional US syrup. In yesterday’s post I bring up “local molasses” – aka, sweet sorghum or sorghum syrup. Charmingly, the tradition of sorghum syrup production endures: I’ve included links below …
Self-tutoring about US farming traditions: the tutor mentions “local molasses.” Although we weren’t farmers, I grew up around it. A couple of times, local kids told me I didn’t have the stuff for farm life. Regardless, I absorbed the culture …
Self-tutoring about holidays: the tutor philosophizes about when their events might be held. A couple of days ago I drove by a sign advertising a Valentine’s dance: Valentine’s Dance Saturday February 16 Immediately I was charmed by the message, because …
Lifestyle: holiday events: before or after the day? Read more »