deing's recent activity

  1. Comment on Does anybody here use a wake up light? in ~health

    deing Link
    Yeah, it helped me wake up this morning. I don't really have any fancy solution, just an old desk lamp pointed at the roof slope over my bed, wired up to a timer switch so it turns on in the...

    Yeah, it helped me wake up this morning. I don't really have any fancy solution, just an old desk lamp pointed at the roof slope over my bed, wired up to a timer switch so it turns on in the morning and puts itself out again. Since I started using it (it lights up about 45 minutes before my alarm goes off) I find it far easier to stay awake instead of just rolling to the other side.

    6 votes
  2. Comment on Recognizing basic security flaws in local password managers in ~comp

    deing Link Parent
    I mean, you're absolutely right — once an attacker gets access to my database I'm screwed. But considering that this database is only on devices that would have me screwed similarly if an attacker...

    I mean, you're absolutely right — once an attacker gets access to my database I'm screwed. But considering that this database is only on devices that would have me screwed similarly if an attacker got access to them, this concern is kind of void for me. If you're already inside my PC, I can't stop you from creating a bad day for me anyway, so why lose massive convenience for effectively zero benefits?

    16 votes
  3. Comment on Unofficial Weekly Discussion #2 - Topic tag system brainstorming session in ~tildes

    deing Link Parent
    We already have a videos tag that does a lot of what you're describing. I like the idea of tagging more content types a lot, though.

    We already have a videos tag that does a lot of what you're describing. I like the idea of tagging more content types a lot, though.

    5 votes
  4. Comment on Recent updates - repost warning, topic-tagging improvements, group-specific search, markdown strikethrough formatting, wiki/docs updates in ~tildes.official

    deing Link Parent
    As an aside (hah) the link I provided only searches in the tildes-wiki project :p

    As an aside (hah) the link I provided only searches in the tildes-wiki project :p

    1 vote
  5. Comment on Recent updates - repost warning, topic-tagging improvements, group-specific search, markdown strikethrough formatting, wiki/docs updates in ~tildes.official

    deing Link Parent
    While it's not integrated into the site, and quite some time will probably pass before it is (if it's even a feature Deimos desires), you can run a full text search using GitLab's Project Wide Search.

    While it's not integrated into the site, and quite some time will probably pass before it is (if it's even a feature Deimos desires), you can run a full text search using GitLab's Project Wide Search.

    3 votes
  6. Comment on Combining searches and filters in ~tildes

    deing (edited ) Link
    Submitted to GitLab as #528 #427. Aside from that, I can't say much more than "wholeheartedly agree". This is something we need, a lot.

    Submitted to GitLab as #528 #427.

    Aside from that, I can't say much more than "wholeheartedly agree". This is something we need, a lot.

    4 votes
  7. Comment on The gov.uk Design System in ~comp

    deing Link
    This site is a relatively new rabbit hole I fell into, a bit similar to the TNG tech manuals in being detailed and illustrated documentation with a lot of thought behind it, but actually real! If...

    This site is a relatively new rabbit hole I fell into, a bit similar to the TNG tech manuals in being detailed and illustrated documentation with a lot of thought behind it, but actually real! If you know similarly expansive design guidelines, feel free to share them here too.

    1 vote
  8. Comment on Trump’s Budget Deal Shows Deficits Don’t Matter Anymore in ~news

    deing Link
    [noise] @Deimos would you mind updating the link?

    [noise] @Deimos would you mind updating the link?

    2 votes
  9. Comment on The Case for Reparations in ~news

    deing Link
    This was already submitted a few days ago :) https://tild.es/et3

    This was already submitted a few days ago :) https://tild.es/et3

    2 votes
  10. Comment on Andy Ngo was assaulted with milkshakes that contain quick-drying cement at the Antifa rally he was covering. in ~news

    deing Link Parent
    I mean, do you have an explanation for posting a topic like this and then not replying to any even vaguely critical comments at all, claiming that "antifa seems more violent than neo nazis" and...

    I mean, do you have an explanation for posting a topic like this and then

    • not replying to any even vaguely critical comments at all,
    • claiming that "antifa seems more violent than neo nazis" and
    • having the audacity of asking for a source with a lowest-effort, one sentence reply when someone else dismisses that evidence-less claim

    that only involves good faith? Because I struggle to come up with one.

    11 votes
  11. Comment on html in url? in ~test

    deing Link
    Could be related to https://gitlab.com/tildes/tildes/issues/340, where the same thing happened but with ftp:// instead of data: links

    Could be related to https://gitlab.com/tildes/tildes/issues/340, where the same thing happened but with ftp:// instead of data: links

  12. Comment on Andy Ngo was assaulted with milkshakes that contain quick-drying cement at the Antifa rally he was covering. in ~news

    deing Link Parent
    Apart from the fact that left-wing extremism and political violence just… doesn't work the same at all as right-wing extremism and political violence, "Antifa" is really just people acting in...

    Apart from the fact that left-wing extremism and political violence just… doesn't work the same at all as right-wing extremism and political violence, "Antifa" is really just people acting in opposition to fascism ("anti-fa"). There's no countrywide or global "organization" to speak of, even though right-wingers like to act like there is, and literally everyone can claim the label for just about any degree of opposition to fascism.

    On the article itself, I kinda stopped reading in the middle because of its obnoxious snarky tone. I lack context on who Andy Ngo is to judge him being assaulted, too. To your they like to say "it's just a milkshake": Well, it wasn't a milkshake, it was quick-dry cement. The other incidents all used literal milkshakes as far as I'm aware.

    18 votes
  13. Comment on testing self-mentions in ~test

  14. Update! After a few hours of struggling I managed to set up Read the docs for Tildee, it should help using the library significantly. After getting some inspiration from TAPS I thought that maybe...

    Update! After a few hours of struggling I managed to set up Read the docs for Tildee, it should help using the library significantly.

    After getting some inspiration from TAPS I thought that maybe I try to work on something vaguely similar on my own. And after… some? hours of coding today I came up with this: tildee.py (source)
    It's a wrapper for the Tildes Public/Web API that is already used by the site internally to make it work. The obvious problem with that is that it will at one point break when this unstable API is changed. It can do basically all things a normal user can do with the notable exception of applying comment labels (because I haven't gotten around to that yet).

    Example of usage for a DM reply bot (result):

    import sys
    from tildee import TildesClient
    import time
    
    # Initialize client and log in, 2FA isn't supported yet and will probably break in horrible ways
    t = TildesClient("username", "password", base_url="https://localhost:4443", verify_ssl=False)
    
    while True:
        # Retrieve the "unread messages" page and get a list of the conversations there
        unread_message_ids = t.fetch_unread_message_ids()
        for mid in unread_message_ids:
            # Access the conversation history page; this also clears the "unread" flag 
            conversation = t.fetch_conversation(mid)
            # Get the text of the last message
            text = conversation.entries[-1].content_html
            # Abort if it's from the current user (I don't think this could actually happen)
            if conversation.entries[-1].author == t.username:
                break
            print(f"Found a message by {conversation.entries[-1].author}")
            # If the message contains a reference, reply in kind
            if "hello there" in text.lower():
                print("Replying…")
                t.create_message(mid, f"General {conversation.entries[-1].author}! You are a bold one.")
            # Delay before processing next unread message
            time.sleep(3)
        # Delay before next unread check
        time.sleep(60)
    

    This has a lot of potential. Haven't yet figured out potential for what, but I'll take what I can get.
    I'd be really grateful if someone with a little more experience than me (that's not exactly a high bar :P) could give me some pointers on the project's structure and the "API design", hence the ask tag. Other creative ideas for what to use this for are appreciated, too.

    48 votes
  15. Comment on A script that posts topics to Tildes, designed to be run on a schedule. in ~tildes

    deing Link Parent
    Using requests, I had to take some extra steps to post something (though it was pretty easy to figure out going from your description): import requests; from lxml import html; login_page =...

    Using requests, I had to take some extra steps to post something (though it was pretty easy to figure out going from your description):

    import requests;
    from lxml import html;
    login_page = requests.get('https://tildes.net/login');
    csrf_token = html.fromstring(login_page.content).cssselect('meta[name=csrftoken]')[0].attrib['content'];
    cookies = login_page.cookies;
    headers = {'referer': 'https://tildes.net'};
    login_request = requests.post('https://tildes.net/login', data = {'csrf_token': csrf_token, 'username': '-snip-', 'password': '-snip-'}, cookies = cookies, headers = headers);
    new_topic = requests.post('https://tildes.net/~test/topics', data = {'csrf_token': csrf_token, 'title': 'title', 'markdown': 'a b c', 'tags': 'a,b,c'}, cookies = cookies, headers = headers);
    

    CC @hungariantoast :D

    7 votes
  16. Comment on Rohit Sharma Dismissed: Fans Not Convinced With The Umpire's Decision in ~sports

    deing Link
    You seem to accidentally have submitted these articles multiple times: https://tild.es/ezk and https://tild.es/ezj, as well as https://tild.es/ezi and https://tild.es/ezh. Would you mind clearing...

    You seem to accidentally have submitted these articles multiple times: https://tild.es/ezk and https://tild.es/ezj, as well as https://tild.es/ezi and https://tild.es/ezh. Would you mind clearing the dupes?