• 2 Posts
  • 48 Comments
Joined 1 year ago
cake
Cake day: July 10th, 2023

help-circle












  • I feel like maybe you don’t know what a headless component library is. A cli has a head – the terminal. Headless applications, by definition, have no visual portion. For instance, a headless browser is a browser where the web page renders in-memory, but never displays any content. A headless component library, then, is one where the implementor doesn’t provide anything visual, only behavior. For web dev, is very helpful – the library implementator writes all the js, but the css and html (the “head”) are left to the user for use. The best headless component libraries, then have nothing to screenshot without the user supplying some implementation.





  • The fediverse is less like Twitter and more like email. You sign up for email through a provider, like Gmail or Outlook, and they have control over your access to the other users and pay the costs of running your hardware, the same way you sign up with a particular domain on Lemmy or Mastodon. Like email, you have an inbox that receives messages, and communities are like email groups you join and send messages to. And, like email, it’s based on standards that everyone has agreed on through a group called the w3 consortium.





  • I think we can even calculate about how often it happens. My math is gonna be Amerigo-centric because I’m American and so are fortune cookies.

    There are ~3 billion fortune cookies produced yearly in the USA, so 8.2 million cookies are opened per day. There are 292,201,338 PowerBall combinations. That means that there’s about a 2.8% chance that someone opens a fortune cookie that has any given lotteries numbers on it. But wait! There isn’t just one “the lottery”; there are 48 states and territories in the US, and my state (Washington) has four games. Assuming everyone’s state is like mine, and you randomly select a lottery to play, that leaves us with a much more modest .014% chance that on a given day, someone opens a fortune cookie with their lottery number on it.