ByteCode.News
Submit RSS Atom Sign in

Back to the channels

#java

  1. bomb "Programs must be written for people to read, and only incidentally for machines to execute."
  2. dragonmaster That sounds suspiciously Knuthy
  3. dreamreal It does, and it's good advice
  4. if-p-then-q Hiya! 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. dreamreal welp, 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. dreamreal jsr 12
  7. nevet jsr 12: Java Data Objects (JDO) Specification (https://jcp.org/en/jsr/detail?id=12)
  8. dreamreal oh, nevet's muted here :D
  9. dreamreal but this is neat: adding extra spec requests like that is pretty simple.
  10. deebo i was wondering wtf is this new nevet spec, 'nevet pep' google search only brings up post exposure medication for hiv...
  11. dreamreal deebo: /whois nevet :D
  12. dreamreal I'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. dreamreal youtube 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. cheeser anti-bot/scraping
  16. dreamreal Yeah. 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. dreamreal right, 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. dreamreal Which 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. dreamreal Running puppeteer for an irc bot sounds... uh...
  26. dreamreal I 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. javabot Most likely
  29. dreamreal nevet does that with an interpolation: "<reply>(Yes|No|Maybe|Ask me( tomorrow| again| again tomorrow)|It's (unclear|unknowable))."
  30. dreamreal and yes, the expression could be "more efficient." The goal was to get it working, where you can nest the expressions.
  31. dreamreal nevet 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. dreamreal it'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. dreamreal building is a pain - 850+ tests :D