• 0 Posts
  • 5 Comments
Joined 2 years ago
cake
Cake day: May 31st, 2023

help-circle

  • 133arc585@lemmy.mltoBooks@lemmy.ml1984 by George Orwell
    link
    fedilink
    arrow-up
    10
    arrow-down
    10
    ·
    1 year ago

    I think there are many other versions of the same story that aren’t plagiarized, aren’t written by horrible humans, and are also better written.

    Personally, I’m fond of Aldous Huxley’s Brave New World. I haven’t read it, but you can skip Orwell’s plagiarizing and go to the source and read Yevgeny Zamyatin’s We.



  • Depends on how much you want to set up. For my purposes, I just check for connectivity every minute, and record true or false as a new row in a sqlite database if there is connectivity.

    This is what I use on my raspberry pi,

    #!/usr/bin/env python3
    from datetime import datetime
    import sqlite3
    import socket
    from pathlib import Path
    
    try:
        host = socket.gethostbyname("one.one.one.one")
        s = socket.create_connection((host, 80), 2)
        s.close()
        connected = True
    except:
        connected = False
    timestamp = datetime.now().isoformat()
    
    db_file = Path(__file__).resolve().parent / 'Database.sqlite3'
    conn = sqlite3.connect(db_file)
    curs = conn.cursor()
    curs.execute('''CREATE TABLE IF NOT EXISTS checks (id INTEGER PRIMARY KEY AUTOINCREMENT, timestamp TEXT, connected INTEGER)>
    curs.execute('''INSERT INTO checks (timestamp, connected) VALUES (?, ?);''', (timestamp, 1 if connected else 0))
    conn.commit()
    conn.close()
    

    and I just have a crontab entry * * * * * ~/connectivity_check/check.py >/dev/null 2>&1 to run it every minute.

    Then I just check for recent disconnects via:

    $ sqlite3 ./connectivity_check/Database.sqlite3 'select count(*) from checks where connected = 0 order by timestamp desc;'
    

    Obviously, it’s not as full-featured as something with configurable options or a web UI etc, but for my purposes, it does exactly what I need with absolutely zero overhead.


  • Yes you can. Goodreads has export instructions. On BookWyrm you upload the export file. It maintains ratings, shelves, read status/dates, etc.

    Just be careful when you import: some of my titles were matched to completely wrong titles. For example, “The Color Purple” was matched to some other random book with the word Purple in the title. Fortunately, as part of the import process:

    • it tells you which books it could not reasonably match and lets you manually match them, and
    • it lets you edit any matches it made automatically.

    Every book I had in Goodreads was available to add to my shelves on BookWyrm, even if they didn’t all happen automatically. Overall though, compared to how many books I had on shelves, only a handful were not handled automatically/properly.