• 1 Post
  • 28 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle


  • Display and layout rules aren’t difficult at all. Maybe I’m just not experienced enough. I’ve been a web dev for nearly a decade now and I feel like I’ve got the hang of it. That being said, I don’t work on projects that have to work on everything from a Nokia to an ultra wide monitor. We shoot for a few common sizes and hope it clears between edge cases nicely. What is an example of something that wraps randomly?


  • Genuinely, though, CSS is fairly clear cut about the rules of positioning and space. Relative positioning is one of the most important concepts to master since it allows things to flow via the HTML structure and not extra CSS. Fixed positioning is as if you had no relative container other than the window itself. Absolute positioning is a little weird, but it’s just like fixed positioning except within the nearest parent with relative positioning.

    Everything else is incredibly straight forward. Padding adds space within a container. Margins add space outside a container. Color changes text color. Background-color changes the background color of an element.

    Top, left, right, and bottom dictate where the element should be positioned after the default rules are applied. So if you have a relative div inside a parent which is half way down the page, top/right/left/bottom would move the element relative to it’s position within the parent. If you made the div fixed, it would be moved relative to the window.

    Lastly, if you’re designing a webpage just think in boxes or rows and columns. HTML can define 75% of the webpage structure. Then with just a bit of CSS you can organize the content into rows/columns. That’s pretty much it. Most web pages boil down to simple boxes within boxes. It just requires reading and understanding but most people don’t want to do that to use CSS since it feels like it should just “know”.

    As someone who has built QT, Swing, and JavaFx applications, I way prefer the separation of concerns that is afforded us via HTML JS and CSS.







  • Captain Janeway@lemmy.worldtoProgrammer Humor@lemmy.mlCSS Humor
    link
    fedilink
    arrow-up
    26
    arrow-down
    1
    ·
    edit-2
    6 months ago
    #moustache {
      position: absolute;
      bottom: 10px;
      margin: 0 auto;
    }
    

    If that doesn’t work:

    #moustache {
      position: absolute;
      bottom: 10px;
      left: 50%;
      transform: translateX(-50%);
    }
    

    Relative positioning is preferred but not always available if the parent face is positioned absolutely.

    Edit: adjusted bottom from 0 -> 10px since 0 would be at the bottom of the chin but there is obviously some padding to bring it nearer the lip


  • If you use your eyes, nothing happens. Most people think “observe” means they can just look at the experiment and expect it to change. That’s why so many people end up in metaphysics thinking their own perception has any impact on the outcomes of physical states. In reality, it makes no difference.


  • Captain Janeway@lemmy.worldtoLemmy Shitpost@lemmy.worldWhoops
    link
    fedilink
    arrow-up
    105
    arrow-down
    2
    ·
    edit-2
    6 months ago

    The word “observed” has largely been conflated with human perception in the layperson’s understanding of quantum mechanics. When they were first experimenting with the dual slit experiment, they were simply trying to make measurements to predict where an electron might end up after entering one of the two slits. However they soon discovered that their measurements changed the behavior of the electron. That behavior has been denoted as an observation however observation is very vague.

    It’s better to say “a measurement which causes a wave-function collapse” rather than an observation. When phrased that way, it feels a lot more explicit and it allows lay people like myself to ask the next question “what causes a wave function to collapse?”

    Source: I just asked my physics PhD wife about this a couple nights ago and she did her best to explain it to me.

    If anyone can explain what exactly causes the wave function to collapse, id appreciate it. Because I can’t understand anything I read online.

    Also this meme checks out. A person could observe their CPU with the right conditions and instruments to cause a wave function collapse. But I believe a Qbit can reset its state no?







  • Captain Janeway@lemmy.worldtoMemes@lemmy.mlGemini
    link
    fedilink
    arrow-up
    75
    arrow-down
    20
    ·
    7 months ago

    Feasible? Sure. Pick 2 people randomly during that time? Unlikely. I have nothing against diversity. And I have nothing against an AI being encouraged to produce diverse outputs. I do think it’s a clear indicator of the internal prompts that guide the AIs choices.


  • Captain Janeway@lemmy.worldtomemes@lemmy.worldThe circle of life
    link
    fedilink
    arrow-up
    7
    arrow-down
    3
    ·
    8 months ago

    There’s another theory running around that Stanley cups are also growing in popularity due to a demographic focus of Mormons.

    It didn’t take long before netizens began pointing to a connection between the popularity of the tumblers and Mormonism in the United States. For those of you who don’t know, Mormons are taught to not drink hot beverages, as they believe that “hot drinks are not for the body or belly,” thus avoiding tea or coffee and instead turning to alternative fizzy drinks for caffeine.

    To keep them at an approved temperature, the Stanley Quencher’s ability to keep a drink cold for hours makes it a perfect option, thus making it extremely marketable to this particular demographic.

    Source [blog]: https://screenshot-media.com/the-future/trends/mormons-stanley-cup-craze/

    I believe the “hot beverages” claim is a bit misleading. I’m not a Mormon, but my understanding is they “hot beverages” only applies to coffee and tea. It was interpreted as a medicinal phrase (like how a “cold compress” might refer to a particular medicinal application of cold rags and not any cold rags?). The Mormon Church allows members to drink some cold caffeinated beverages since they are not “hot beverages”. However, I think they weirdly still ban iced coffee despite it being cold…

    Anyways, they represent a sizeable 2% of the US population. 6.5 million people who generally abide by these cold/hot beverages principles. So a running theory is they command a decent portion of the thermos market share.

    I’m not an expert. I’m just sharing what I’ve heard.