Hacker Newsnew | past | comments | ask | show | jobs | submit | fireattack's commentslogin

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.


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.


  $ mkdir -p /tmp/x/y/z
  $ cd /tmp/x/y/z
  $ touch a b c
  $ mv a b c ../notexist
  mv: target '../notexist': No such file or directory


Do it with one file?


$ mv a ../notexist

$ echo $?

0


That's not what OP encountered.

> When Gemini executed move * "..\anuraag_xyz project", the wildcard was expanded and each file was individually "moved" (renamed) to anuraag_xyz project within the original directory.

> Each subsequent move overwrited the previous one, leaving only the last moved item

In a different scenario where there was only one file, the command would have moved only that one file, and no data would have been lost.


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.


The Linux (GNU?) version (mv) can change its behaviour according to what you want.

e.g. "mv --backup -- ./* wrong-location-that-doesnt-exist" will rename your files in an unhelpful fashion, but won't lose any.

e.g. "mv --no-clobber -- ./* wrong-location-that-doesnt-exist" won't overwrite files.

It's trivial to setup an alias so that your "mv" command will by default not overwrite files. (Personally I'd rather just be wary of those kinds of commands as I might be using a system where I haven't customised aliases)


tinycorelinux aliases cp and mv to include -i which is nice.


You mean "i.e." I believe


What's NIH


Short for Not Invented Here syndrome... when developers ignore existing libraries or solutions and implement their own version. Usually this is meant negatively, i.e. developers thinking they -need- to implement their own version, at great expense, when they could have just used an off-the-shelf library. However this article is positing that writing your own code is a good thing in some cases.


It is a good thing in some cases for a couple of reasons - first, off the shelf libraries often do a lot more things than are needed for the project at hand which can have the same effect that adding extra lanes to a highway does on traffic - more effort in the same space that could have been avoided. Second, OTS libraries can be opinionated, which winds up bending the existing codebase in ways that aren't optimal or aligned with the other code in a given ecosystem.


Not Invented Here


National Institute of Health


This is what I thought too.


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?


My guess? Most green things you see are a darker green. The extremely bright green (lime according to the W3C) is less useful, so they probably chose the color based on what they thought the user would expect.

Given that RGB is well-known, I suspect their assumption was wrong, but I have nothing to back that up.


Also, green is the brightest primary after accounting for typical human vision and typical monitors. The YUV formulas put at nearly twice as bright as red.

So a normal display has more green than you'd need, and 00ff00 green has terrible contrast against ffffff white


Extra nitpick.. green isn't even a primary colour. Red, Yellow, Blue are the primary colours that our eyes perceive. Perhaps this contributes to why the RGB numbering doesn't meet human perception of green?


Those are primary pigment colors (arguably... Should be magenta, cyan, and yellow). Those remove light to make color. Red, green, and blue are the additive primary colors.


No you have S, M and L cones in your eyes, which represent (roughly) blue, green and red. Your eyes are most sensitive to green and yellow because the spectrum of the M and L cones overlaps. This is why a lot of sRGB is green and why the Bayer pattern has one red, one blue and two green elements. Red, yellow and blue are the primary colors used in art education.


> typical human vision and typical monitors

Examples ? My "typical human vision" is worse than it was some years ago and my "typical monitors" are different with every iteration.


> they probably chose the color based on what they thought the user would expect.

just like everything in SW development in the last 10 years. SW is supposed to be an engineering discipline, not a witchcraft.


A #00ff00 green is gonna be much, much brighter and more intense than a #0000ff blue. If we call #0000ff "blue", it makes sense that the color called "green" should be of similar brightness/intensity to the color we call "blue".

Not that it's very consistent. The color called "red" is #ff0000, which looks brighter than both #008800 and #0000ff IMO. And arguably, "blue" shouldn't be #0000ff, since that's just not a very pleasent color. I think I might've been tempted to go with something like, red = #cc0000, green = #008800, blue = #0055ff. Or maybe go all the way and specify the colors in some perceptual color space rather than using RGB. But oh well.

(The color #0000ff for "blue" is super over used IMO. Most terminal emulators default to it as well and it just makes blue text hard to read in most out-of-the-box configurations. To get a nice blue color, you need some green in there.)


The naming is supposed to make sense for humans, not machines. Technically the "greenest green" from a technical POV is #00FF00, but the humans understanding of "green" is something more like #008000.


> the humans understanding of "green" is something more like #008000

That claim feels wrong. Colours are a concept on the level of the culture, not on the level of the species.


The humans at MIT's Project Athena, then.


In Unity3D Game Engine, "Yellow" as a named color is not #ffff00 but #ffeb04, the documentation says "RGBA is (1, 0.92, 0.016, 1), but the color is nice to look at!". I bet this bit the ass of thousands of developers that used it assuming it would be #ffff00 and then wondering why the output color somewhere was wrong.


This comes from the original HTML 3.2 spec (1996) which defined 16 colors matching the Windows VGA palette, where pure #00FF00 was deemed too bright for general use, so they chose the more muted #008000 for "green" and later kept it for backward compatibility.


> 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 )


Huh I recognize that library. Ran into the same issues last year and made a fork. https://github.com/acheong08/playsound https://pypi.org/project/playsound2/


Oh, thanks for pointing this out. This was an early unpublished draft. I later changed to `playsound3` which is a modern fork of `playsound`. I've updated the web page.


I guess it depends on the context? For example panda3d supports openAL, FMOD and Miles.


Totally unrelated to the content, but about the website itself.

The site completely breaks when I visit it. After some investigation, I found out that if I enable Stylus (a CSS injection extension) with any rules (even my global ones), the site becomes unusable. Since it's built using the React framework, it doesn't just glitch; it completely breaks.

After submitting a ticket and getting a quick response from the Stylus dev, it turns out that this website (and any site built with caseme.io) will throw an error and break if it detects any node injected into `<html>`.

[1] https://github.com/openstyles/stylus/issues/1803


I don't currently use Stylus, but it breaks for me too; it looks like CSS isn't applied at all: I get some big logo images, and the text uses standard fonts. Not sure which extension triggers it, probably Dark Reader. I could still read it, so no biggie.


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.


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


A similar thing happens when the word "password" is present in the file. Copilot stops autocompleting.

I haven't tried this yet, but I wonder if putting a comment at the top saying "the term ass refers to…" would convince copilot that you're not being profane.

I've also been a user since day one and other than that "safety feature" it's been such a fantastic addition. I turned off intellisense because copilot does a much better job (more accurate, longer auto completions) albeit with slightly increased latency


I’ve run into similar “features” like copilot refusing to complete anything that includes references to gender.


Happened to me when I asked it to make my code more "succinct". Made me smile :)


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: