• 0 Posts
  • 349 Comments
Joined 3 years ago
cake
Cake day: June 20th, 2023

help-circle







  • The couple times I’ve actually used LLMs, it was comically wrong.

    I asked it to write some pyqt code and it made up things that didn’t exist. It wasted my time and was worse than useless.

    And then I tried a Starcraft 2 replay analyzer/coach LLM. It told me 4 spores (anti-air defense structures) was too many to defend against 2 banshees (air to ground attack airplane). In the next sentence it told me I needed 2 per base, of which I had 4. So it told me 4 was too many but 8 was the right amount.

    Edit: I also forgot about my phone! Google replaced their old assistant with Gemini, and now when I tell it to add something to my shopping list half the time it lies and said it is added and half the time it tells me it can’t. It fails to to start navigating in Google maps. It also replaced my morning overview and it forgot how to say the word “ninety”. I wish I were making this up but it says “ninnety” like the 2nd half of “inifinity”. All this shit worked fine before, who asked for this garbage?!

    Now I turn it off everywhere and avoid it. My brain works and I don’t need computers to lie to me.









  • I’m not the OP, but I can explain how to use cron in like 4 sentences: Edit cron with the command crontab -e, this opens your text editor. If you want your jobs to have environment variables, put those at the top. Put this header at the top: # m h dom mon dow command It means minute, hour, day of month, month, day of week, command. Type in numbers for these values or a star which means all of them. Command is the command to be run.





  • I’ve coded this and I’m a retard. Relative portion from a method:

    from urllib.request import urlopen
                foundrss = False
                for line in urlopen(self.channelurl):
                    for word in line.split():
                        if foundrss:
                            if not self.feedurl:
                                self.feedurl = word.split(b'"')[1].decode("utf-8")
                                if 'xml' not in self.feedurl:
                                    raise Exception("'xml' not found in feedurl")
                            elif not self.channelname: # feed url is set, extract the channel name that comes soon after
                                if word.startswith(b'content='): # start collecting words
                                    self.channelname = [word.split(b'"')[1].decode("utf-8")]
                                    if word.count(b'"') == 2: # channel name is a single word
                                        self.channelname = self.channelname[0]
                                        return
                            else: # we have channelname started, just collect the rest of the words now
                                if b'"' in word: # get text to the left of "
                                    self.channelname.append(word.split(b'"')[0].decode("utf-8"))
                                    self.channelname = ' '.join(self.channelname)
                                    return
                                else:
                                    self.channelname.append(word.decode("utf-8"))
                        elif word == b'title="RSS"':
                            foundrss = True