Chat Logs

  1. bomb"Programs must be written for people to read, and only incidentally for machines to execute."
  2. dragonmasterThat sounds suspiciously Knuthy
  3. dreamrealIt does, and it's good advice
  4. if-p-then-qHiya! I'm on the train to my java lecture and decided to look it over, seems like we cover packages today, if I'd waited a week to start my project I may have had an easier time understanding the project structure lol
  5. dreamrealwelp, nevet has PEP support. The RFC process isn't idempotent - the first request yields different responses than later requests, but that's because the first request gives you the data from the RFC or whatever, and subsequent requests are factoids.
  6. dreamrealjsr 12
  7. nevetjsr 12: Java Data Objects (JDO) Specification (https://jcp.org/en/jsr/detail?id=12)
  8. dreamrealoh, nevet's muted here :D
  9. dreamrealbut this is neat: adding extra spec requests like that is pretty simple.
  10. deeboi was wondering wtf is this new nevet spec, 'nevet pep' google search only brings up post exposure medication for hiv...
  11. dreamrealdeebo: /whois nevet :D
  12. dreamrealI'm about to do a new release on it, lots of little fixes as I poke and prod
  13. [twisti]fuck that api shit, id just curl and pretend to be firefox or something
  14. dreamrealyoutube and twitter used to encode the title in the data somewhere; I don't know if they still do, but it was always a pain to work with.
  15. cheeseranti-bot/scraping
  16. dreamrealYeah. Avoiding the anti-scraping is not that difficult at all; it's a little impolite, but they kinda ask for it by being evil or evil-ish. That still leaves the problem of finding the title.
  17. [twisti]css.select("yt-formatted-string.ytd-watch-metadata:nth-child(1)");
  18. dreamrealright, that's for... youtube, yeah?
  19. [twisti]probably got to adjust that every few months, but less often than the api
  20. [twisti]yeah
  21. dreamrealWhich means we need special selectors for that site, which is the whole point I was making.
  22. [twisti]as opposed to a special api for that site ?
  23. [twisti]or just say fuck it, run puppeteer and grab the actual title
  24. [twisti]though that probably opens a whole new can of worms
  25. dreamrealRunning puppeteer for an irc bot sounds... uh...
  26. dreamrealI mean, I can just say "if the site matches this, use this selector mechanism" which means I'm just writing selectors/client profiles for twitter and youtube specifically, not too far off from how javabot does it today
  27. dreamreal~8 ball
  28. javabotMost likely
  29. dreamrealnevet does that with an interpolation: "<reply>(Yes|No|Maybe|Ask me( tomorrow| again| again tomorrow)|It's (unclear|unknowable))."
  30. dreamrealand yes, the expression could be "more efficient." The goal was to get it working, where you can nest the expressions.
  31. dreamrealnevet also does JCP/JSR/RFC lookups but seeds the factoid system with the retrieved information, so now you can annotate jsr 52's text with "don't use this crap!" and such
  32. dreamrealit's still not "ready" - I'm filing new issues pretty often - but a lot of those issues are being fixed with relatively little code.
  33. dreamrealbuilding is a pain - 850+ tests :D