Today I Learned

A random mix of music, coding, French, history, et cetera.
Wed Mar 11, 2020

So proud to say that I've finally gotten good at crossword puzzles. I've dreamed of being a crossworder since I was a kid but never could get very far without help. Now my record is completing one in under 24 hours! As with most things though, they're more fun when collaborating with other people.

Each one teaches me something new. Check out some of the fun facts I've stumbled across. Hover or click on each clue to see the answer!

Sat Dec 14, 2019

Holy cannoli. So I changed the hero on my homepage on Thursday. I added in more shades of color and widened out the lines to add more visual depth. I used css polygon clip-paths and :before / :after pseudo-classes in order to create the effect. HOWEVER, I failed to notice that the z-index(s) I added to the classes put the polygons on top of the content! My rookie mistake broke the button in the hero and I didn’t catch it til today.

I had to do some reworking of the header. The main problem was that I had set the section z-index at -1000 and then tried to overwrite it by giving the inner div containing the content a z-index of 1000 🤣 Yikes! I simplified z-situation and then had to change the diagonal stripe color to something darker than the original so you can spot it underneath the background-color of the top layer (the section containing the content). The colors aren't exactly right so I'll need to keep tweaking that but it's a decent enough bug fix for now.

Of course, finding one bug often leads to spotting another. The polygon clip-path I had used to create the aforementioned dark stripe was positioned absolutely. I had used the same clip-path coordinates and simply shifted it with left: 40px as a shortcut. This introduced a pesky case of horizontal scrolling – gross! The overflow: hidden property didn’t do anything to help. I eventually solved the case by removing the 40px positioning and tweaking the clip-path coordinates to replicate the stripe.


Wed Nov 27, 2019

The other day I came across a funny French expression. Occupe-toi de tes oignons. Translation: Mind your own onions! Or, mind your own business.

The French really know how to keep food top of mind – quite a few of their expressions are food-centric. En faire tout un fromage literally means to make a whole cheese about it (i.e. to make a big fuss). Another fun one: Avoir la pêche means to feel full of energy. But it literally translates as "to have the peach". Beware though because if you have le melon, you're bigheaded and overconfident!

Read up on more French food phrases.

Fri Nov 22, 2019
Quick TIL recap of the past week:

Tue Nov 12, 2019

I'm not a podcast person but man, I'm in love with a podcast. It's called Dolly Parton's America, hosted by Jad Abumrad of Radiolab and All Things Considered. I've learned so many nuggets about world history, American history, and of course, Dolly! I'd highly recommend it. I'll leave you with a few tidbits I've learned:

  • Although the banjo is associated with Deliverance and Appalachia, it originated in Africa and was brought to the States by enslaved Africans. White entertainers later co-opted the banjo in blackface minstrel shows which is how it eventually came to be associated with white Southern culture. Learn more here.
  • There's a subgenre of folk/country music called murder ballads which you may have guessed... are songs about murdering someone. "Knoxville Girl" for example is a brutal update of the 19th century Irish ballad "The Wexford Girl" which traces back to a song from 1683 that details the murder of Anne Nichols. It's a really strange corner of violent pop culture.
  • Dolly can legitimately play her crazy long fingernails like a washboard when demonstrating a tune! 😂 She is a hero.

Here are a few of my favorite Dolly hits! Hope you enjoy 🌞

Mon Nov 4, 2019

Learned many things today! Rick Steves led me down a wormhole learning about the Cathars in 12th century France. I learned how to make a CSS bottom border <100% of its element's width. And I dove way into special characters in HTML. ∴°∴

Sat Nov 2, 2019

Figured out how to pass in variables with _includes in Jekyll. I had put my nav into an html file in the _includes folder which was great for cleaning up my code but I was stumped when I wanted to visually indicate the current page you're seeing. I got some good direction on how to go about using a variable to designate a specific class (Thanks, Doug!). On my unordered list in my nav file, I set
class =" {{ include.content }} " . Then at the top of each individual page, we call in the nav file and set a specific class for the page
{ % include nav.html content="page-til currentpage" %} .

Lastly in your CSS, you'll need a rule for each page setting the "active" style. I used the :nth-of-type( ) pseudo-class to make sure only one nav link appears active at a time.

Learn more about Jekyll _includes, passing in variables, and :nth-of-type.

Thu Oct 31, 2019

Learned the crazy story of how Playtex won the contract to produce NASA's spacesuits. They got swindled out of the competition by defense contractors but they flew to Houston and begged to compete. In just 6 weeks, they had to design and build a suit that could withstand temperatures as low as negative 280°F and as high as 240°F all while housing a flexible astronaut and their pressurized atmosphere.

When their prototype went head-to-head in user testing, it was the clear winner. One rival suit had a helmet blow off and the other couldn't fit through the hatch! Expert seamstresses working on bras and underwear suddenly had the more daunting job of sewing a 21-layer spacesuit. They couldn't be more than 1/32 inch off and had to count every single stitch to ensure quality.

Their hard work paid off – the same group (now ILC Dover) makes every NASA spacesuit to this day. And they're based right nearby in Delaware. Pretty cool! Read more about it.

P.S. Soapbox moment 🔊

Tues Oct 22, 2019

I just finished a book called Mistborn by Brandon Sanderson – it was incredible! I haven't voraciously crushed through a book like that in a long time. When my friend recommended it, I have to admit I was a little skeptical given that it's a long fantasy novel. But it had everything you could want in a book. I learned that Sanderson's goal was to bring the level of intrigue of a heist movie like Ocean's Eleven to an epic sci-fi setting. It's no wonder I was instantly captured (we love Steven Soderbergh movies in this household).

Combine that with a really interesting system of magic, lovable characters, and Sanderson's accessible writing style, you've got a winner of a book. Oh, and it's just book one of a trilogy! I'll be cracking into the second of the series ASAP.

Mon Oct 14, 2019

Today I learned the French phrase "Ça me donne le cafard." If you translate this literally, it means "That gives me the cockroach" – gross! However, the French love their expressions and the understood meaning of the phrase is "That depresses me."

Though cockroach is the most common translation of le cafard, it can also mean hypocrite (likely taken from the Arabic kafr meaning miscreant or non-believer). Turns out the poet Charles Baudelaire invented the depressing translation in Les Fleurs du mal in 1857. Read more about sad French cockroaches here!

"Doin' the Cockroach" by Modest Mouse

Thu Sep 5, 2019

Today I learned some great advantages of Jekyll. My code for this portfolio site had become so repetitive with a head, nav, and footer on every page template. Needless to say, changing something in any of those areas was a huge pain. I met up with a former coworker asking him how I could approach using Rails partials or something similar to clean it up. We talked through a few different strategies like Rails, Vue, etc. but all of them sounded overly complex for what I needed.

I really wanted to launch this site on Github Pages, so we started poking around with Jekyll and voilà! Jekyll has its own includes feature which allows you to call content from another file. My code is so much cleaner! Thank God I had help though – the Jekyll documentation is minimal and they didn't explicitly state that you have to override their default layout and then declare the type of layout at the top of each page. Tricky stuff. A huge shoutout and thank you to Nisarg for figuring that out!

Wed Sep 4, 2019

I'm back! Since I moved from D.C. out to Alexandria, I've been fascinated by the birds around the neighborhood. Over the summer, you can see a flock of chimney swifts that circle the chimney of an adjacent apartment building every evening as they forage. These special swifts can't perch on a tree branch like other birds. Their claws are made only for clinging to bark or brick (which is why the inside of a chimney is a perfect place for them to live).

They can eat up to 1/3 of their body weight in insects each day. Oh, and their saliva acts as a glue that holds their nest to a brick wall – how cool!

Wed Jan 2, 2019

Today I dug into some of Loretta Lynn's songs. What an incredible musician. She married very young (15!) and had 4 kids by the time she was 20 years old. And yet she went on to become the most awarded female artist in country music. Some of her songs were controversial – "The Pill", for example. Loretta recorded it in 1972 but the label held it from release until 1975. Some radio stations banned it but the catchy tune still managed to become her highest-charting pop single and spread the word of birth control to overburdened women around America. Thanks, Loretta!