• Jtskywalker@lemm.ee
    link
    fedilink
    arrow-up
    3
    ·
    10 months ago

    I made a website for my wife with a list of a ton of reasons why I love her and each time she taps the screen it shows a new one.

    So… that is a thing you can do for the cost of a domain name and some cheap hosting.

  • Nsh@lemmy.ca
    link
    fedilink
    arrow-up
    3
    ·
    10 months ago

    The creator of MySQL, MaxDB and MariaDB named them after his children My, Max and Maria, so why not

    • dan@upvote.au
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      10 months ago

      after his children My

      I thought you were kidding, but his daughter is actually named “My”.

      • Fonzie!@ttrpg.network
        link
        fedilink
        arrow-up
        1
        ·
        10 months ago

        It helps that it’s a name in another language (Finnish), where “my” isn’t a word, at all.

  • ArbitraryValue@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    10 months ago

    Once when I was still a kid, I told a woman I loved her so much that I could only love her more if she was a robot.

    She did not think that was romantic.

        • WhiteHotaru@feddit.de
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          10 months ago

          My

          1. The Finnish author Tove Marika Jansson (1914 - 2001) invented this name for her stories about the Mumin troll (Moomin Trolls). Lilla My (Little My) lives with the Mumin family. She is so small that she can sit in the family’s milk jug. My gives expression to a most destructive turn of mind. She is totally disrespectful and can be very aggressive but has nevertheless an extremely positive attitude to life. Sometimes, she may even demonstrate a kind of careless friendliness - when it suits her.
          2. My is also the name of the 12th letter in the Greek alphabeth.
          3. Creative Spelling of Mi (see Mia)

          See: https://www.nordicnames.de/namefinder/

    • nickwitha_k (he/him)@lemmy.sdf.org
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      10 months ago
      var LogicGate = map[string]string{
          "OR": "OR",
          "AND":  "AND",
          "NOT": "NOT",
          "NOR": "NOR",
          "NAND": "NOR",
          "XOR": "XOR",
      }
      
      func isLogicGate(inString string) (bool) {
          _, ok := LogicGate[strings.ToUpper(inString)]
          if ok {
              return true
          } else {
              return false
          }
      }
      
      func stringAsGateLogic(inString string) (bool, error) {
          inSplit := strings.Split(inString, " ")
          var phrase1 strings.Builder
          var phrase2 stringa.Builder
          var gateString string
          for word := range inSplit {
              if isLogicGate(word) {
                  if len(gateString) < 1{
                      gateString = word
                  } else {
                      phrase2.WriteString(word)
                  }
              } else {
                  if len(gateString) < 1{
                      phrase1.WriteString(word)
                  } else {
                      phrase2.WriteString(word)
                  }
              }
          }
          boolPhrase1 := bool(phrase1.String())
          boolPhrase2 := bool(phrase2.String())
          switch strings.ToUpper(gateString) {
              case "OR":
                  return (boolPhrase1 || boolPhrase2), nil
              case "AND":
                  return (boolPhrase1 && boolPhrase2), nil
              case "NOT":
                  return (!boolPhrase2), nil
              case "NOR":
                  return (!(boolPhrase1 || boolPhrase2)), nil
              case "NAND":
                  return (!(boolPhrase1 && boolPhrase2)
              case "XOR":
                  orRes := (boolPhrase1 || boolPhrase2)
                  nandRes := (!(boolPhrase1 && boolPhrase2))
                  return (orRes && nandRes), nil
              default:
                  return false, fmt.Errorf("Why you do dis?: %v", inString)
          }
      }
      
      func main(){
          answer, err := stringAsGateLogic ("This person misunderstands a beautiful function code can be very sexy or maybe I'm a odd girl.")
          if err != nil {
              fmt.Println(err)
          }
          fmt.Println(answer)
      }
      
      • wallmenis@lemmy.one
        link
        fedilink
        English
        arrow-up
        0
        ·
        10 months ago

        isLogicGate is not used. Maybe you mean to place it in “isGate” in the stringAsGateLogic for loop’s if statement?

        • nickwitha_k (he/him)@lemmy.sdf.org
          link
          fedilink
          arrow-up
          1
          ·
          10 months ago

          Thank you. That’s what I get for writing a drawn-out shitpost program on my phone over several hours while away from home, instead of in a few minutes in vim.

          • AVincentInSpace@pawb.social
            link
            fedilink
            arrow-up
            1
            ·
            10 months ago

            Speaking of, Vim is actually quite easy to set up on Android. Simply download Termux from F-Droid (the version of Termux on Google Play is severely out of date) and pkg install vim (or nvim if you prefer). (Also, full aarch64 linux terminal on non-rooted Android, woo!) Using Vim with an onscreen keyboard is agonizing, of course, but it does work (Termux provides the Ctrl and Esc keys). The F-Droid app Unexpected Keyboard is a recommended addition – it’s an alternative on-screen keyboard with no predictive text and swiping to the corners of each key for alternate symbols. It makes using Vim on a touchscreen at least moderately less painful.

  • OneCardboardBox@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 months ago

    I use friends and family as sample data for unit/integration tests.

    At a previous job, I tested an automated email system by scheduling fake events for various US presidents. I’ve long left that position, but I never cleaned up the test data. Every month I still get a reminder for Nixon’s upcoming reservation at the Watergate Hotel.

  • Spectacle8011@lemmy.comfysnug.space
    link
    fedilink
    arrow-up
    1
    ·
    10 months ago

    The GNU kernel was not originally supposed to be called the Hurd. Its original name was Alix—named after the woman who was my sweetheart at the time. She, a Unix system administrator, had pointed out how her name would fit a common naming pattern for Unix system versions; as a joke, she told her friends, “Someone should name a kernel after me.” I said nothing, but decided to surprise her with a kernel named Alix.

    Source: https://www.gnu.org/gnu/thegnuproject.en.html

    • dan@upvote.au
      link
      fedilink
      arrow-up
      1
      ·
      10 months ago

      I need to get on Linus’ level. I’ve never written a function with an argument called magic2.