Daily Shaarli

All links of one day in a single page.

Previous day

December 30, 2019

Next day

Perl Advent Calendar 2019 - Memories of Past Lives

Persisting between program runs
This is all very well, but Memoize uses an in memory cache. Jolly's problem is that each time he runs his code his program has to re-do all the work up until the point that it crashes. Using memoize like above won't speed up his code at all as every time the script runs it starts with a fresh empty cache.

What we need to do is what the Wise Old Elf suggested - persist our results between program runs.

Well, Memoize can do that:

Perl Advent Calendar 2019 - We Wish You a Meme Christmas

Imager is a handy dandy image drawing library in Perl that we're going to be using for our Meme creation needs.

Imager has about a gazillion methods to do pretty much every standard graphics manipulation you can imagine. But, shockingly, it doesn't have a way to draw standard meme text (Impact font, white text, black outline.) We can fix that by adding our own plugin:

According to Warren Buffett, Honing This One Skill Can Improve Your Worth by 50 Percent
  1. Develop a daily writing habit
  2. Watch popular speeches and learn how to critique them
  3. Observe the strong communicators in your own life
  4. Record yourself every day talking into a camera for 3 minutes
  5. Reach out to one person a week whose work you admire
  6. Volunteer to teach whatever you can whenever you can