UlrikHD

joined 1 year ago
[–] UlrikHD@programming.dev 4 points 11 months ago* (last edited 11 months ago)

Personally I would recommend to use regex instead for parsing, which would also allow you to more easily test your expressions. You could then get the list as

import re
result = re.findall(r'[\w_]+|\S',  yourstring)  # This will preserve ULLONG_MAX as a single word if that's what you want

As for what's wrong with your expressions:

First expression: Once you hit (, OneOrMore(Char(printables)) will take over and continue matching every printable char. Instead you should use OR (|) with the alphanumerical first for priority OneOrMore(word | Char(printables))

Second expression. You're running into the same issue with your use of +. Once string.punctuation takes over, it will continue matching until it encounters a char that is not a punctuation and then stop the matching. Instead you can write:

parser = OneOrMore(Word(alphanums) | Word(string.punctuation))
result = parser.parseString(yourstring)

Do note that underscore is considered a punctutation so ULLONG_MAX will be split, not sure if that's what you want or not.

[–] UlrikHD@programming.dev 5 points 11 months ago

Photoshop (if it does?) and any other believable face swap apps use some sort of neural networks, which is exactly the problematic tech we are talking about.

[–] UlrikHD@programming.dev 24 points 11 months ago (2 children)

Lower skill ceiling. One option can be done by pretty much anyone at a high volume output, the other would require a lot training and are not available for your average basement dweller.

Good luck trying to regulate it though, Pandora's box is opened and you won't be able to stop the FOSS community from working on the tech.

[–] UlrikHD@programming.dev 10 points 11 months ago (11 children)

And if Google went nuclear and starts embedding the ad into the videos themselves?

[–] UlrikHD@programming.dev 0 points 1 year ago

You asked how it can be done

[–] UlrikHD@programming.dev 1 points 1 year ago (2 children)

Then I would suggest you to re-read the article and spend a minute to think about how that relates to how the technology can be abused. I'm not sure I can make it more obvious, and honestly if feels like you don't understand it in bad faith.

[–] UlrikHD@programming.dev 6 points 1 year ago (4 children)

You asked how it can be abused. This is one way it can be abused.

If it's computer, it can be hacked. Doesn't have to be the car company itself that does the spying, though considering the track record of American companies, it wouldn't surprise me. It could be you local police department, your distrustful partner, etc...

[–] UlrikHD@programming.dev 1 points 1 year ago (1 children)

Please refrain from using the word "retard" as a slur on our instance in accordance to our user rules.

[–] UlrikHD@programming.dev 1 points 1 year ago* (last edited 1 year ago)

I don't have any experience with pipx and personally prefer to just skip the .toml and place the whole pyprojectsetup in setup.py.

With that method, I would write inside setup()

packages=find_packages()  # Include every python packages
package_data={  # Specify additional data files
    'yourpackagename': [
        'config/*'
        etc...
    ]
}

This would however require you to have a package folder which all your package files/folders are inside, meaning the top level repo folder should not have any files or other folders that you want to distribute. Your MANIFEST.in looks fine.

[–] UlrikHD@programming.dev 1 points 1 year ago* (last edited 1 year ago)

If you believe it's an bug with our instance, try making a post over at !meta@programming.dev . Posting here is unlikely to grab the attention of an admin unless the post gets reported (which it did). Before that though, look up if isn't just the more likely scenario of a general lemmy bug/quirk caused by mismatched lemmy versions, etc...

[–] UlrikHD@programming.dev 162 points 1 year ago* (last edited 1 year ago) (17 children)

I don't believe for one bit that windows will move to a pure subscription based model. They are greedy, but not stupid.

What's more believable is that the base OS will be the same as usual, but if you want fancy AI assistants in your OS, you must subscribe, with the justification being that MS must pay for the servers running the models you're using.

view more: ‹ prev next ›