26 ms·
Nothing in computing is worse than software that knows exactly what you want it to do, then gives some shitdick excuse as to why it's not going to do it in an e
by sneak 14y ago
Nothing in computing is worse than software that knows exactly what you want it to do, then gives some shitdick excuse as to why it's not going to do it in an effort to get you to jump through meaningless hoops.
- flurie 14y agoUse exit() or Ctrl-D (i.e. EOF) to exit Gets me more often than I'd like to admit.
- moolcool 14y agoIs there any reason you can't ctrl-c out of man pages?
- pygy_ 14y agoI think that man uses 'less' as a pager, and 'less' uses vi-like key bindings. It enables you to search using '/keyword', for example.
- trumbitta2 14y agoThat's because vi uses less as a pager, too :)
- byroot 14y agoBecause it use less as default pager and less is an interactive utility. If you prefer you can use another pager like more that will let you ctrl-c: export PAGER=more Or activate the -K option of less that will quit on ctrl+c export PAGER='less -K'
- nailer 14y agoWhy can't interactive utilities be cancelled?
- azernik 14y agoThey can be cancelled, just not with CTRL+C - that key combo sends SIGINT [1] to the process, which can be caught by a handler, and often is when the writer of the utility thought there was something else that users would want that signal to do instead of quit. For example, in less, SIGINT will stop a long-running text search that's taking too much time. [1] http://en.wikipedia.org/wiki/SIGINT_%28POSIX%29#SIGINT http://en.wikipedia.org/wiki/SIGINT_%28POSIX%29#SIGINT
- Karunamon 14y agoWouldn't this mean that the application has some concept of state, then? Following output, running a search, etc? If your state is just sitting in the file, interpret the signal as exit.
- raylu 14y agoIt would be pretty annoying if I ran a search or a follow (shift+F), thought it was taking too long, and hit Ctrl+C right after it finished. Ctrl+C doesn't mean "end this program." If you want that, consider Ctrl+\.
- nitrogen 14y agoEven Ctrl+\ (SIGQUIT) doesn't always "end this program." Java uses it to print a stack trace to the console.
- LeonidasXIV 14y agoMost Java programs I have to deal with print stack traces to the console even without prompting because somebody thought that the `ex.printStackTrace();` IDE autofix is definitely more than enough to handle an exception.
- tjoff 14y agoSo if the search finished just before issue ctrl+c you will close the application instead. Be vary of inconsistencies, even if they are just perceived inconsistencies.
- huhsamovar 14y agoIf you press 'q', the man page will close.
- maccard 14y agothat's great. but why doesn't ctrl c do it? I mean it closes everything else on my system, except man pages, vim and some other programs that use less.
- eurleif 14y agoThat message is generated by the __repr__() method, so it could get inadvertently triggered if it just exited automatically.
- fps 14y agoUse "logout" to leave the shell. Thanks, tcsh. Now I remember why I don't use you.
- pjscott 14y agoAnother reason to switch to IPython: if you type "exit", it will just exit. http://ipython.org/ http://ipython.org/
- Stratoscope 14y agoEven worse, on Windows the message is: Use exit() or Ctrl-Z plus Return to exit Well, first, there is no Return key on any PC keyboard I've seen in a very long time. There is an Enter key. But that's minor. The bad part is if I'm used to Linux and try to exit on Windows with Ctrl+D, I get this cryptic message: >>> ^D File "<stdin>", line 1 ♦ ^ SyntaxError: invalid syntax >>> Suppose it's the other way around: I started out as a Windows user and got accustomed to using Ctrl+Z to exit. Now what happens if I switch to Linux (as an inexperienced Linux user) and try to use Ctrl+Z to exit? Yes, I get this somewhat cryptic message: >>> [1]+ Stopped python mike@s:~$ Now, you know that I haven't exited Python at all but have merely backgrounded it, but remember I'm an inexperienced Linux user and don't know about fg and bg and stuff like that yet. So every time I "exit" from Python I've added another background task. Oops.
- laurent123456 14y agoI don't use Heroku but, from the help page, it seems the point is to push users to learn the new syntax. I don't know if it's a good idea or not, but I can see how they got there. Without this, they'll never be able to remove the deprecated command.
- ceejayoz 14y agoWhy do they need to remove it? It's a simple alias.
- shocks 14y agoI understand your frustration, but what if the program thinks you're doing something you're not? You may do irreversible damage. I guarantee that you'd be far more pissed if you trashed an entire project than you are about 'shitdick excuses'.
- nailer 14y agoSure, but: heroku console -> heroku slightlydifferentsyntaxforconsole is not one of those cases.
- pygy_ 14y ago$ git statis error. Did you mean status? Y/n You'd get the best of both worlds.
- bluetech 14y agoUse an alias! I like git config --global alias.s 'status --short --branch'
- aerolite 14y agoOk, but please don't alias statis to status. That's a horrendous typo.
- cowpewter 14y agoI want git to do that so badly. It's not like its output is particularly pipe-friendly anyway. Just ask me, don't make me type the whole thing again. Especially annoying when it's a longer command with a bunch of arguments or one that in no way could have negative side-effects, like git status or git log
- nitrogen 14y agoWhy are you typing the whole thing again instead of using the up arrow or Ctrl-P?
- 14y ago
- mdavidn 14y agoThis one annoyed me recently. $ bundle The source :rubygems is deprecated because HTTP requests are insecure. Please change your source to 'https://rubygems.org' if possible, or 'http://rubygems.org' if not. Why can't Bundler just use the new URL? Or, better yet, assume https://rubygems.org https://rubygems.org unless I specify sources in my Gemfile?
- geoka9 14y agoMaybe because it wants you to be in control? What they probably could do, though, is a 302 redirect to https. But that's frown upon by some, too.
- mdavidn 14y agoI only want to be in control when my use case differs from the common case. I would wager that at least 95% of Gemfiles could source https://rubygems.org https://rubygems.org implicitly and automatically.
- steveklabnik 14y agoYou can't guarantee that Ruby has OpenSSL support compiled in, it's not required.
- vidarh 14y agoBut you can check, and fail if the user specifies https and it's not present, and give a warning if the user doesn't specify anything or specifies http and OpenSSL is not present. I still think mdavidn is probably right that 95% or similarly high number has OpenSSL available, and it makes little sense to inconvenience all of those users when you can inconvenience "just" the few who don't instead.
- tinco 14y agoIt's not just frowned upon. Having a 302 redirect is almost as insecure as not upgrading to https at all. In browsers this is sort of acceptable because they let you visually confirm that you've been upgraded to https, and are now securely connected to the right server. In a text mode app that does the connection behind the scenes and fully automatically, there's no such confirmation or even intervention, so there's no perceptible difference between http and http 302 to https. Ruby (on Rails) values convention over configuration. It should have made https obligatory per default and overrideable with a flag per this guideline.
- jlarocco 14y agoGimp on Windows does this and it drives me nuts. Going to File->Save As... and trying to save to .jpg brings up a dialog box telling me to exit the current Save As dialog and go back to File->Export to save as .jpg. Asinine.
- reustle 14y agoGimp on every platform does this. Combine the two already!
- jordanthoms 14y agoNot only that, but it's a _new feature_.
- zanny 14y agoWhat I don't get is that you can open any image type and modify it in gimp on the fly. The reason they are separated is that xcf can maintain layers and any other image loses that information. But anyone who uses gimp for a few minutes will realize this, and then you don't need 3 dialogs. Hell, have a warning message in the save as box if you haven't saved a project in xcf.
- anoncow 14y agoIt used to do that. I hope somebody reverts this.
- nitrogen 14y agoThe comments I've found seem to indicate that the Gimp developers have no intention of changing this back, and that anyone who wants it back to the Gimp 2.6 and earlier approach is not in their "target audience". In other words, they hold their most common users in the highest of contempt. Edit: http://registry.gimp.org/node/26348 http://registry.gimp.org/node/26348
- 14y ago
- bcoates 14y ago@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0440 for './id_rsa' are too open. It is recommended that your private key files are NOT accessible by others. This private key will be ignored. What they think they know about the user and group setup on my machine doesn't give me a lot of confidence in whatever other unsupported assumptions the software probably makes. (and despite saying "recommended" there's no override) edit: to be clear, this is SSH's "shitdick excuse" not Heroku's.
- byroot 14y agoIsn't this a warning from ssh not heroku ?
- seryl 14y agochmod 0600 ./id_rsa
- bcoates 14y agoIf the file really was already in the badguys group and 0440 it's already been compromised so that's just covering it up. I suppose if SSH really had the courage of its convictions it'd automatically upload the key fingerprint to some revoked key blacklist.
- car54whereareu 14y agoblacklist the way sudo does http://xkcd.com/838/ http://xkcd.com/838/
- d0m 14y agoHere's another one.. In facebook apps settings, if you enter a url ending with a "/", the error message is "The url can't end with a '/'". Can't help but think about that lazy programmer who prefered to shoot an error message rather than fixing it. The irony is that it's often way easier and faster to add a .replace() and fixing it rather than writing , testing and translating the error message.
- TylerE 14y agoThat's not a safe assumption, especially in the presence of a CMS system. foo.com/bar and foo.com/bar/ (-> foo.com/bar/index.html) can be totally seperate URLs.
- Goopplesoft 14y agoYou're missing his point. Its a safe assumption in the case that the latter gives you an error pointing you to the former. If the latter was a blank/meaningful response that would make sense, but its not.
- nolok 14y agoYou misunderstood OP, the FB error he describe is not about hitting a url "path/" that 301 to "path" and FB not detecting it. In the uri standards, /path and /path/ are just as different as /path and /path2.
- slewis 14y agohttp://example.com/page http://example.com/page and http://example.com/page/ http://example.com/page/ could be totally different pages... So .replace()'ing could silently cause unexpected breakage.
- nailer 14y agoThey shouldn't be. Slash normalization is pretty normal and it's ones of the first things frameworks add.
- sbierwagen 14y agocp(1)'s handling of directories. ~/foo$ mv bar baz ~/foo$ ls baz ~/foo$ cp baz bar cp: omitting directory `baz' ~/foo$ ls baz
- sirclueless 14y agoTo be fair, `cp baz bar` is the only one of those commands that might take three hours.
- vidarh 14y agoThat's not true. mv across filesystems degrades to a copy, and can take just as long.
- wtallis 14y agoAnd CoW filesystems are getting more common, so cp's best case can be almost as fast as mv's.
- loeg 14y agoReally? After some quick digging, nope. Tl;dr: Not by default, and only on Linux, and only with btrfs (still marked experimental) and only with the `--reflink` flag. FreeBSD `cp(1)`: `copy_file()` does a simple `read()`/`write()` loop with a buffer[0] (despite ZFS maybe supporting CoW). GNU coreutils `cp(1)`: `copy_reg()` calls out to `clone_file()` if and only if `--reflink` was passed[1], and `clone_file()` fails on everything but btrfs[2]. [0]: FreeBSD `copy_file()`: https://github.com/freebsd/freebsd/blob/master/bin/cp/utils.c#L205 https://github.com/freebsd/freebsd/blob/master/bin/cp/utils.... [1]: coreutils `copy_reg()`: http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob;f=src/copy.c;h=5c0ee1e703d8494b71eda67436a12c5d79a9a5ef;hb=HEAD#l978 http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob;f... [2]: coreutils `clone_file()`: http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob;f=src/copy.c;h=5c0ee1e703d8494b71eda67436a12c5d79a9a5ef;hb=HEAD#l223 http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob;f...
- hesselink 14y agoIt always annoys me when git does this: $ git submodule update You need to run this command from the toplevel of the working tree. I bet git knows exactly where that is. So go there and do it!
- eridius 14y agoIt may know exactly where that is, but it doesn't necessarily know that you weren't trying to only update submodules in the current directory. Most git commands operate only on stuff reachable from the current directory, but `git submodule update` is incapable of being limited like that.
- chacha102 14y agoI'm not sure that is true... You can update only a specific repo if you'd like. In which case it would be possible to limit the submodule command to only submodules existing in the current directory. Yes, it would need to scale back up to the .gitmodules file, but it is still possible.
- eridius 14y agoYes, obviously the behavior of `git submodule update` could be rewritten. But the way it works right now, it can't be restricted to just submodules reachable from the current directory.
- raylu 14y agoThis might be because it's ambiguous which submodules you want to update if you have nested submodules. In other words, git knows "exactly where that is" by searching parent directories until it sees a ".git". Unfortunately, submodules also have ".git" in them since they're full git repositories themselves. git submodules are not the nicest part of git, unfortunately.
- hesselink 14y agoOK, so it wouldn't work if you're in a submodule. It could print a warning if there are no submodules. But if would still work perfectly fine in the majority of the cases. For those also annoyed, I use this git alias, which does what I want: sup = !sh -c 'cd `git rev-parse --show-toplevel` && git submodule update --init' -
- Tloewald 14y agoLotus Notes is hilariously awful in this regard.
- just2n 14y ago> Lotus Notes is hilariously awful I think it's enough to stop right there. :)
- blake8086 14y agoIf you change a file extension, the file may become unusable! Are you sure?
- heydenberk 14y agoThis one on OS X bothers me: >> "Another device on the network is using your computer’s IP address." I know that the thing to do here is renew the DHCP lease. Most people don't. Just renew it for me, please. The many procedures you can do to fix a network connection in Windows are even worse. Do these for me before you show me any troubleshooting messages.
- TazeTSchnitzel 14y agoNo. It should prompt you to renew it, but not just do it, since IP address conflicts probably mean one end is badly configured.
- heydenberk 14y agoIt doesn't presently prompt to renew — it just says that there's a conflict and doesn't tell you which settings panel might be helpful. Only a very tiny subset of users will actually try to reconfigure their router or make other such changes as the result of this information. Options requiring a prompt before automatic renewal would be great for those users, but it's not relevant in 99%+ of cases.
- TazeTSchnitzel 14y agoNo, they're relevant in far more than <1% of csses. Forgotten DHCP renewal is not the only reason that IP address conflicts happen.
- PuercoPop 14y agoBut that doesn't mean that alongside the warning the computer can't try to get a new IP address by itself, even if it won't fix the problem 100% of the time.
- raylu 14y agoNo. If something is wrong with the current network config, don't automatically muck around with it so that I can't troubleshoot the problem myself. It's important to understand the current state to figure out how you got into that broken state; kind of like a breakpoint at the first exception. Automatically renewing is like 'On Error Goto Next'. That said, I agree that it should suggest renewing the DHCP lease.
- deleted 14y ago[deleted]
- rossjudson 14y agoMakes me think about the Arch Linux install I got half way through last night. As I started to fall asleep from the sheer boredom induced by copying and pasting commands, I had realized that I had no fucking idea why I was doing it. A fresher kernel wasn't worth it. I hit reset and went Ubuntu 12.10 instead.
- pmr_ 14y agoAnd this is probably for the best, because you probably aren't the right kind of user for the distribution and community. If you take a look at [1], you will see that the wiki provides a lot more than just commands to type in, but also a rationale and explanation what each component does. Usually there are also links for further reading that should help your understanding of the topic.
- virtualwhys 14y agoFedora user...if Arch's forums are any indication of the quality of the distro, then Arch is excellent. Was looking for some help getting started with Awesome WM as well as sorting out an issue with crap Broadcom wireless card -- both searches led me to Arch, and it was there that I found informative, detailed threads that led to the solutions.
- ibrahima 14y agoAs an Awesome user on Ubuntu, I often end up referring to the ArchWiki. Also for a lot of driver issues. Their wiki is really excellent, I guess because when people are dealing with a lot of raw, newer packages they tend to work out the finer details of issues that people later on benefit from.
- lelandbatey 14y agoWhat bothered me the most was that I did install Arch over the summer. It was awesome! It wasn't to hard, but more technical than most "consumer" installs. This was due to the EXCELLENT bit software called that AIF (Arch Install Framework) that offered a ton of usability improvements while maintaining the customizability that many crave. So, I started recommending it to a bunch of people I know as an excellent development environment. What was odd was that they all reported back that it was incredibly hard to do and manage. It turns out that just days after I had done this install, Arch completely removed AIF in favor of a bunch of smaller, much less helpful scripts specifically so that it wouldn't be as simple (and thus less flexible) to install. I was, and still am, totally floored by this. I switched to using Ubuntu Server with my own choice of UI layer (Xmonad for life!) after dealing with that.
- thebear 14y agoAs always, the shining counterexample is TeX: "Missing $ inserted."
- derleth 14y ago> some shitdick excuse No reason to associate gays with people who can't program and/or design software competently.
- jdonnici 14y agoDesktop SQL clients get me with this... connect to a database, run a query, go to another window for a while. Come back, try to run another query... "Database connection closed. Reconnect?" Drives me nuts... I ran a query, didn't I?!?