Ask HN: Teach me something new
1–10 of 782 posts
Re: Ask HN: Teach me something new
#2Thanks for coming to my TED talk.
Re: Ask HN: Teach me something new
#3Re: Ask HN: Teach me something new
#4Addie Joss threw the fourth perfect game in MLB history, in 1908.
Re: Ask HN: Teach me something new
#5It will relaunch the last command you used with sudo before. Example:
$ apt upgrade Could not open lock file ... $ sudo !! sudo apt upgrade [sudo] password for ...:
Re: Ask HN: Teach me something new
#6Scale/size can seemingly be taught accessibly young... we just don't. Nor use size as an organizational frame to catalyze understanding of the physical world. Asking first-tier medical school graduate students how big red blood cells are... goes surprisingly poorly. But there seems lots of fun to be had.
Re: Ask HN: Teach me something new
#7Re: Ask HN: Teach me something new
#8 $ awk 'BEGIN {srand(); t = srand() ; print t}'
1651247949
explaination:1. srand if not provided with a seed will use the current unix epoch as seed
2. srand will return its previous seed in a new initialization (and we assign it to t)
3. we print t
I learned this via a "Systems we love" talk (https://www.youtube.com/watch?v=IfhMUed9RSE)