Re:NoFAQ – A tool that corrects your console commands
by 13of40 on Tuesday September 06, 2016 @02:00PM
(#12437922)
It seems like most people who are entering commands don't get what it's supposed to do, since most of the commands under "Help Fix Commands" are either malicious, don't have an associated error message, or both.
Also, it seems like it's being a little bit racist about what a "console command" is, because it won't let me suggest...
(dir -rec).FullName
...as a fix for...
PS C:\> dir /s/b
dir : Cannot find path 'C:\s\b' because it does not exist.
Re:NoFAQ – A tool that corrects your console commands
by MBVaughn on Tuesday September 06, 2016 @04:01PM
(#12438868)
That's definitely in the works. I'm working on a reporting/curating functionality for "fix-requested" commands as well as for suggested fixes. I'm hoping to push that to the live environment as soon as possible.
Re:NoFAQ – A tool that corrects your console commands
by amyjess on Tuesday September 06, 2016 @02:17PM
(#12438038)
Oddly enough, both of the points you bring up are handled perfectly by zsh's built-in correction. zsh will only suggest 'ls' for 'sl' if 'sl' isn't installed, and it'll catch 'fksc' and 'chomd'.
Re:NoFAQ – A tool that corrects your console commands
by kazinator on Tuesday September 06, 2016 @02:23PM
(#12438097)
How well it works is: exactly to the extent that the crowd-sourced data is accurate. No more and no less.
It is not reasonable to suggest "ls" for "sl". If we regard this as typo correction, we have to consider that no letter in the command is in the correct position.
For typo correction to be plausible, it has to affect only some reasonable fraction of the command. The command has to be fairly long and the edit required to correct it has to be fairly small. E.g. showmnt -> showmount.
Re:NoFAQ – A tool that corrects your console commands
by fizzbatter on Tuesday September 06, 2016 @12:46PM
(#12437326)
A lot of these suggestion things are nifty - another one is a machine learning code helper (spots errors, identifies errors, etc).
Not sure if this even has an api.. but i want it to. Despite that, my problem with them is that there's no way i'm going to send every failed command or all my code to some random 3rd party. It just isn't happening.
I'd love for this thing to be a local install, and then i can pipe any command failures i have to it locally, and feel semi-secure about them.
Really, i think i just need to bite the bullet and improve my understanding of the math behind ML (i'm terrible at math), and take a course or two on ML. I feel like there are so many opportunities for ML in your local life, that you would never ship off to a 3rd party. Hard to profit from, but seems great for open source projects.
(Note, i didn't mean to imply that this site used ML at all.. the other code suggester service does.. and the two, from a UX perspective, feel similar to me)
Re:NoFAQ – A tool that corrects your console commands
by MBVaughn on Tuesday September 06, 2016 @04:04PM
(#12438900)
Thanks for your feedback!
Currently, we don't have an external API, for curation and server load reasons. Also, we want to be as transparent as possible about what data is collected - the current website is a wholly "opt-in" sort of design.
Re:NoFAQ – A tool that corrects your console commands
by jscheel on Tuesday September 06, 2016 @03:04PM
(#12438420)
This definitely needs some cleanup. I like the idea, but the suggested fix for "git remote" is "sudo rm -rf /". Thankfully it doesn't have --no-preserve-root, but still..
Also, it seems like it's being a little bit racist about what a "console command" is, because it won't let me suggest...
...as a fix for...- Suggested `ls` for `sl` despite the fact that the latter [0] is a wonderful utility.
- `chomd` didn't yield any suggestion. Neither did `fskc`.
A similar utility that actually helps is thefuck [1].
[0] https://github.com/mtoyoda/sl
[1] https://github.com/nvbn/thefuck
It is not reasonable to suggest "ls" for "sl". If we regard this as typo correction, we have to consider that no letter in the command is in the correct position.
For typo correction to be plausible, it has to affect only some reasonable fraction of the command. The command has to be fairly long and the edit required to correct it has to be fairly small. E.g. showmnt -> showmount.
Not sure if this even has an api.. but i want it to. Despite that, my problem with them is that there's no way i'm going to send every failed command or all my code to some random 3rd party. It just isn't happening.
I'd love for this thing to be a local install, and then i can pipe any command failures i have to it locally, and feel semi-secure about them.
Really, i think i just need to bite the bullet and improve my understanding of the math behind ML (i'm terrible at math), and take a course or two on ML. I feel like there are so many opportunities for ML in your local life, that you would never ship off to a 3rd party. Hard to profit from, but seems great for open source projects.
(Note, i didn't mean to imply that this site used ML at all.. the other code suggester service does.. and the two, from a UX perspective, feel similar to me)
Was pretty cool!
Wooaa, no! (Now your local changes are gone.)
Or maybe it isn't.
The main problem with this, as I see it, is the lack of knowledge of the user's intention.
Without that, it's only good for total basics that built-in correction or 'thefuck' would handle.
With that, well.. that's StackOverflow.
Which environments have a Unix-like ls which refuses, without -a, to list an explicitly named entry which exists, but starts with a dot?