fireattack

Joined 8 years ago

Karma
1,898
Submissions
703
Member since
Feb 5
fireattack#outlook.com
View on Hacker News

Recent submissions

Comment · 1 year ago
Do it with one file?
Comment · 1 year ago
Windows doesn't either.

    >move 1 ..\1\
    The system cannot find the path specified.
            0 file(s) moved.
But the issue is you can't ensure LLM will generate the command with trailing slash. So there is no difference in Windows or Linux for this particular case.
Comment · 1 year ago
That's not what OP encountered. The "failure" mode is

    mv file ../folder 
where folder is not a folder (non-exist, or is a file).

And Linux will happily do this too.

Comment · 1 year ago
But it will show a warning. I don't get the issue.

   D:\3\test\a>move 1 ..\1
   Overwrite D:\3\test\1? (Yes/No/All):
If anything, it's better than Linux where it will do this silently.
Comment · 1 year ago
You mean "i.e." I believe
Comment · 1 year ago
What's NIH
Comment · 1 year ago
The definition of grey is totally debatable, but in W3C spec Green = #008000 (instead of #00FF00, which is called Lime?) makes no sense.

How did it happen?

Comment · 1 year ago
> playsound

This library is unfortunately effectively abandoned -- it hasn’t received any updates in over four years, and its latest version doesn’t work at all: https://github.com/TaylorSMarks/playsound/issues/101

(A workaround exists: downgrading to version 1.2.2, but that comes with its own issues.)

The last time I experimented with audio in Python, I was surprised by how lacking its multimedia libraries are.

For example, when I needed to read audio files as data, I tried `SoundFile`, `librosa` (a wrapper around `SoundFile` or `audioread`), and `pydub`, and none of them was particularly satisfying or has seen much active development lately.

If you need to read various formats, pydub is probably your best bet (it does this by invoking ffmpeg under the hood). I was hoping for a more "native" solution, but oh well. Unfortunately, `pydub` is also unmaintained and has some serious performance issues (for example: https://github.com/jiaaro/pydub/issues/518 )

Comment · 2 years ago
Comment · 2 years ago
I think what you said is true but the major reason is simpler: there are way more gamers than developers.

So if your project's audience is gamers, of course it's going to attract more people which also means lower quality community almost automatically.

Comment · 2 years ago
I'm Copilot customer since day 1 and I'm mostly satisfied with it, until a few months ago.

I noticed a mini project I was working on suddenly stopped showing any autocomplete results. The log shows the API returns empty `model deployment ID: []` constantly.

Upon investigation, I found the reason is that my code includes the word "ass", because it is a project about parsing .ass subtitle format (Advanced SubStation Alpha).

I have to rename all my variables to work around it, and eventually this isn't enough: I have a subprocess.run to call ffmpeg to burn subtitles on video when encoding. And the VF (video filter) for that is called.. ass.

Here is an MRE (try typing anything after the line `subprocess.run` and observe the copilot log):

    import subprocess
    from pathlib import Path
    STORAGE_DIR = R"G:\test"
    def process(f, subtitle, output):
        subprocess.run([
            "ffmpeg", "-v", "error", "-stats", "-i", output, "-vf", f"fps=60,ass={subtitle}", "-c:a", "copy",
            '-c:v', 'h264_nvenc', "-pix_fmt", "yuv420p", output, "-y"
        ])
    def main():
        for f in Path(STORAGE_DIR).iterdir():
            process(f, f.with_suffix('.txt'), f.with_name(f.stem + '_ouptut' + '.mkv'))
    if __name__ == '__main__':
        main()
Other people have reported similar issues [1] about other "bad" words. I mean, I get it, but don't they think having "ass" in that "profanity blacklist" would cause way too many false positives? To make it worse, MS/GitHub seem refusing to make any solution or even communicate about this issue.

I've opened a ticket on GitHub's support system too, but got no response whatsoever after weeks. I'm very disappointed as a paid user.

To any GitHub employee if you're by chance reading this, it would be tremendously helpful if you can help mention this issue internally. Thank you in advance.

[1] https://github.com/orgs/community/discussions/55630

Comment · 2 years ago
Comment · 2 years ago
Would GIT affect how Python runs across multiple Python processes?

I'm asking because I encountered a weird phenomenon before.

I use a simple Python lib called "schedule" which is to run some tasks periodically (not precise). And I often run a script multiple times (with different arguments) to monitor something say, every 30 seconds. So they're in three separate Python Interpreter processes.

What I've noticed is that while when I initiated them, they were something like 5 seconds apart, they eventually will end up running in sync. Probably not related to GIL at all, but I guess do no harm to ask.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton