Talking Drupal Newsletter #391
Episode #391 Public Speaking
Today we are talking about Public Speaking with Marjorie Freeman & AmyJune Hineline.
Topics
Why Public Speaking is important
Why people are afraid of Public Speaking
Tips to overcome
Imposter Syndrome
What makes a good experience
Never do’s
Favorite Public Speakers
Alternatives
Podcasting as Public Speaking
Writing Workshop
How to get started
Resources
Guests
Marjorie Freeman - @the_mjfreeman
AmyJune Hineline - @volkswagenchick
Hosts
Nic Laflin - www.nLighteneddevelopment.com @nicxvan
John Picozzi - www.epam.com @johnpicozzi
Kat Shaw - drupal.org/u/katannshaw @katannshaw
Module of the Week
Stephen Cross @stephencross
Environment Indicator
Adds visual indicator to identify which admin environment is being accessed.
Upcoming Episodes
#394 Open Source in K-12 Education with Stu Keroff April 4.
#395 Kat’s Show. Recording April 11.
#396 Drupal Security Mark Shropshire & Benji Fisher. Recording April 18.
#397 Semantic Versioning with Michael Miles. Recording April 25.
Submit your questions on the #alkingDrupal channel on Drupal Slack or DM us on twitter @talkingdrupal.
Drops of Drupal
#004 PHP Boolean and Conditions
I was recently bit by a nuance of conditional booleans. You may see code where the existence of a string is evaluated like:
$name = 'Stephen'
if ($name) {
echo 'Name filled in.';
}
This code will echo Name filled in for any value $name is set to, other than two; “” and “0”. The zero is the gotcha.
A quick review of conditional evaluation of boolean conversion:
$bool = true;
$int_zero = 0;
$int_gt_zero = 10;
$int_lt_zero = -10;
$str_fill = "Hello World";
$str_empty = "";
$str_zero = "0";
if ($bool) {
echo "bool True\n";
}
if ($int_zero) {
echo "int_zero True\n";
}
if ($int_gt_zero) {
echo "int_gt_zero True\n";
}
if ($int_lt_zero) {
echo "int_lt_zero True\n";
}
if ($str_fill) {
echo "str_fill True\n";
}
if ($str_empty) {
echo "str_empty True\n";
}
if ($str_zero) {
echo "str_zero True\n";
}
The results:
bool True
int_gt_zero True
int_lt_zero True
str_fill True
One more thing. Did you know boolean constants are case-insensitive? While uppercase is a style most have adopted, the following are all valid:
$x = true
$x = True
$x = TRUE
by Stephen Cross
Patching .htaccess for SEO
by Martin Anderson-Clutz
Anyone who has ever gone through the process of trying to maximize their site's Lighthouse or PageSpeed Insights score will have seen suggestions to increase the cache lifetime of static assets: at least 1 year for assets like images and fonts, and at least 1 month for assets like CSS and Javascript files. As noted in the linked page, it is possible to set this cache lifetime site-wide, but if you want to set a shorter cache lifetime for your content than your static assets, we can achieve this with minimal effort…
Continue reading at www.mandclu.com.
Minifigure of the Week
by Nic Laflin
71011-8
This week I would like to share 71011-8 Animal Control Officer! This is the 8th minifigure in Series 15. Released in 2016, this has one of my favorite animals. You can see she loves her job until you see the second printing after she was sprayed!
Contact Us
@talkingdrupal on Twitter
#talkingdrupal on Drupal Slack