Tag: Computer Science

  • Nested Loops

    In an exercise I was working on, I wanted to raise a list of bases to a list of powers and return the result. I tried a complicated method with list comprehensions and regular for loops, but nested loops make this so much easier: exponents([2, 3, 4], [1, 2, 3]) returns:

  • Automatically Snooze Incoming Mail in Gmail

    I get emails every day for a friend’s project that I want to respond to at least 12 hours after I get them, to see if the user has any questions. I was thinking it would be nice if there was a feature for this in Gmail. There isn’t in Gmail itself, but I figured…

  • Set/Reset MySQL Root Password on MySQL 14.14

    I was trying to setup MySQL that I installed using sudo apt install MySql and couldn’t remember how to set the root password. I found many different instructions on how to stop MySQL, boot into safe mode and reset the root password. None of them worked. This did: sudo mysql_secure_installation You will see something like…