Heroku Fucking Console
github.com
github.com
heroku console -> heroku slightlydifferentsyntaxforconsole
is not one of those cases. $ git statis
error. Did you mean status? Y/n
You'd get the best of both worlds. git config --global alias.s 'status --short --branch' > ce somedir
zsh: correct 'ce' to 'cd' [nyae]? yCrap.. I meant "DELETE FROM some_table WHERE id=1"
sighs
WHERE id = 1 ctrl + a DELETE FROM....
Found it's also helpful for writing SELECTS and avoiding the whole "oh crap, now let's load the entire DB" type of moments.
select * -- delete
from sometable
where id = 1
Then you can run the whole thing to see what would be deleted, and highlight starting at the word delete to actually delete.More commands could use options to adjust how big guns they let you fire at your feet with...
http://dev.mysql.com/doc/refman/5.0/en/mysql-tips.html#safe-...
All my deletes written first as selects now, as a sibling comment suggested.
Oh yeah, you're using a toy database aren't you.
Use exit() or Ctrl-D (i.e. EOF) to exit
Gets me more often than I'd like to admit.It enables you to search using '/keyword', for example.
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'If your state is just sitting in the file, interpret the signal as exit.
Ctrl+C doesn't mean "end this program." If you want that, consider Ctrl+\.
As another example, perhaps it would be nice if ctrl-w deleted one word backwards if you were currently editing text in your webbrowser, but close your current tab/window otherwise. If the state is always what the user expects when they press ctrl-w it would work fine, but in reality you would have lots of people accidentally closing tabs.
Thanks, tcsh. Now I remember why I don't use you.
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. $ 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 unless I specify sources in my Gemfile?What they probably could do, though, is a 302 redirect to https. But that's frown upon by some, too.
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.
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.
This assumes the client doesn't kick up a fuzz. The entire point is Bundler now does kick up a fuzz. But it could also be made to follow any redirect first, and only kick up a fuzz if the final resource is not https.
No, SemVer means you increment major version numbers if, and only if, you break backwards compatibility.
That's true, but both silly and not what you said before.
There's no good reason to care about version numbers in and of themselves, if you care about them at all, its because of their semantics: using SemVer doesn't make you not want to break backward compatibility, not wanting to break backward compatibility is independent of the use of SemVer. Of course, if you don't want to break backward compatibility, you won't end up bumping the major version number under SemVer, but you've got the whole direction of cause-and-effect wired backward when you say that SemVer is the reason not to break backward compatibility.
No one wants a major version bump in Bundler in order to change the primary rubygems URL because historically there is a lot of potential pain in Bundler updates, and so you better be getting something new that's worth the pain, not just a superficial change that happens to break compatibility only as a technicality.
SemVer seems pretty much tangential to that, that's a problem with the particular history of the particular project.
If the original claim had been "Bundler's history of major version updates means that they don't want to bump their major version; combined with their commitment to SemVer, that means that any backward incompatible changes are avoided", rather than just that SemVer alone led to people in general seeking to avoid backward-incompatible changes, I wouldn't have challenged it.
I think that's highly dependent on the particular market that a product is in, and how its version numbers are used in marketing. Chrome (which neither heavily markets around version numbers nor uses SemVer, but instead increments the major version number with every regularly-scheduled feature release) end-users (whether you are speaking of regular end-users or developers) probably don't have any particular expectations tied to major version bumps.
Microsoft Windows (which doesn't use SemVer, but does heavily market around major versions) end-users probably have much bigger expectations for major versions, as a direct result of the vendor's marketing investments.
A developer-focussed product that consistently uses SemVer and markets around particular new features rather than major version numbers probably won't have much expectation from its target users tied to major release bumps except that they will meet the SemVer definition of a major release bump.
What sensitive data are people passing back and forth to rubygems of all places that needs encryption? Especially in the context of a bundle where you're more likely than not pulling down or updating gems (from a public repository, which contains no sensitive data)? And this need is apparently so pressing that it should be complained about to the user?
I've been on a plane all morning and am in no condition to be parsing the topics here :)
Oh, wait, this is rubyland. Nevermind.
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.
I think they value developers and people who use their software frequently. As a developer, I love the separation of save and export. They really are separate functions, and the XCF actually saves the export location relative to the original XCF location. It makes working on large projects so much easier.
If I wanted to just do a quick edit to something, Gimp isn't the ideal tool for that job anyways. If I wanted to make it so, selecting export instead of save is really fine, especially since it gives the option in the menu to overwrite whatever JPG you just opened.
I think people who use their software frequently would take offense to the software telling you to fuck off and go do it a different way.
The intent is obvious, both to the user and the developer. Why make people's lives more difficult for such questionable benefit? MS Paint doesn't have this problem. Photoshop doesn't have this problem. The user knows what they want to do, and they could do it before the change. Why are you getting in their way?
I use their software very frequently, and the biggest frustration with this is that it completely screws with my muscle memory for the Gimp and every other application. I continue using 2.6 because 2.8 is just too frustrating.
When working with images so much that you no longer think about the keyboard and mouse, but you think "Save" and it just happens, a change like this is like rewiring your hand so that all the fingers' nerves are reversed, and you have to get permission from your navel before you can lift your pinky.
If I wanted to just do a quick edit to something, Gimp isn't the ideal tool for that job anyways.
Gimp has always been the ideal tool to just do a quick edit to something, because it's the tool I know. I've been using it for more than a decade. I don't need some new developers to come along and think they know better than me how I use their software. That's Apple's billion dollar job, and even they get it wrong often enough.
If I wanted to make it so, selecting export instead of save is really fine, especially since it gives the option in the menu to overwrite whatever JPG you just opened.
Clearly you're not working fast enough for your fingers to be ahead of your brain. I don't need options, I need my tools not to talk back to me.
I think this is very relevant: http://xkcd.com/1172/
Clearly you're not working fast enough for your fingers to be ahead of your brain. I don't need options, I need my tools not to talk back to me.
If you have any constructive feedback - or better yet, _code_ - make a polite post on their forum or mailing list. No one here cares about your specific workflow.
Actually, you're the only one here vehemently defending the Gimp's new behavior. The other comments seem to prefer Gimp 2.6's Save behavior. But this is getting unnecessarily petty and personal; it's obvious we disagree, and I'll just stick to 2.6 and stop recommending Gimp to people who would otherwise be happy pirating something more expensive.
Edit:
Contempt? What?
Exactly.
Don't take it upon yourself to speak for everyone.
And they STILL only have 8 bits per plane (people were whining about this in the 90s ... when Bill Clinton was president), STILL can't remember sub-pixel rendering steps ... other than improved PSD importing, I don't see why.
I'm sure they've put a lot of work into this; but not in the right areas.
Their target audience should be highly technical people that need to do image work and want a tool like vim/emacs/zsh etc but for images; learning curves are ok as long as you can combine simple steps in composable tasks to do amazing things.
I say the same things about all my good tools: "I've been using it for 10+ years, I totally suck at it still, and I would never use anything else". You can say that about paintbrushes, driving, violins, maybe even photoshop or excel; but not gimp.
They were going down that road for a while in the 2.2 or so days, but then they did a 180.
If you really want to destroy your layers and history (which GIMP saves into XCFs) there is a menu option for that. But you almost certainly don't want to do that.
So what smaller, simpler program (other than Gimp 2.6) has all of Gimp's features, but is suitable for a quick edit? Say I have a .png image stored in a version control system, with no need for layers or history, and I want to do a quick perspective clone to paint over something?
When you save a layered file in a unlayered format photoshop just forces the "Save Aa a Copy" option to be checked and then saves a flattened version while preserving the open one, thus if you then decide to quit without saving a layered version you get a "Are you sure you wish to quit without saving document x?"
The way Photoshop handles it is far superior imho. With gimp iirc even if the file is not layered you still have to do export?
And for many edits, i simply don't want to save layers or history. there's just no point if i'm cropping, converting, re-sizing, or quickly fixing something. If i do then i'll save it as a layered file and layered is by far in the minority. I know what i'm doing i don't need the app to 2nd guess me, and it seems the new workflow is better for people who don't understand the difference between layered and un-layered files.
That way it would satisfy both the elitists and the people who just want to do their jobs.
The work flow is really awkward then. You are exporting a jpg from a jpg? Oooookay....
cheers
For example, I open a jpg and go to save it as a PNG. I select PNG from the drop down list of available types and type the filename, but unless I also add .PNG to the filename it makes a jpg again.
I was so excited when they made it a native app, too.
If Command-E actually brought the window up in front of the rest of the windows instead of hiding it behind the main window, it might have been a different story.
Just my two cents.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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.
If your account or computer has already been compromised you're still screwed but this helps considerably on shared computers, NFS, etc. where the access situation is easier to misunderstand.
foo.com/bar and foo.com/bar/ (-> foo.com/bar/index.html) can be totally seperate URLs.
In the uri standards, /path and /path/ are just as different as /path and /path2.
/path and /path/ are two totally different things in the standards, just like /path and /path2. Sure in most cases with and without trailing slash gives the same page; but it's not something you can assume.
Same reason why "we don't allow https links" doesn't mean you can just drop the s.
~/foo$ mv bar baz
~/foo$ ls
baz
~/foo$ cp baz bar
cp: omitting directory `baz'
~/foo$ ls
bazFreeBSD `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....
[1]: coreutils `copy_reg()`: 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...
$ 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!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.
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.
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' -I mean, christ, I fetch and merge as separate steps.
I think it's enough to stop right there. :)
Now click "Use .tar.gz" => file now has name foo.tar.tar.gz
>> "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.
That said, I agree that it should suggest renewing the DHCP lease.
If the DHCP is set to serve a static IP for the MAC, the problem will presist, if the DHCP server is dynamic it will just do what its desgined to do and assign a unused address fixing the problem while not changing the network configuration at all.
[0]: http://www.amazon.com/The-Inmates-Are-Running-Asylum/dp/0672...
Does anyone know what the iPhone/iPad/etc. do in this case?
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.
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.
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.
No reason to associate gays with people who can't program and/or design software competently.
"Database connection closed. Reconnect?"
Drives me nuts... I ran a query, didn't I?!?Is the string "f.cking" considered unappropriate on HN? What about "f.,.ing" or "f'ing"?
Edit: replaced the asterisks with "." and "," for formatdoc
Edit: has been changed to "Heroku Fucking Console" at 19:02Z. I approve!
If the f word had to be edited out, why not something like "Heroku [curse word] console"
The problem is that this American morality is enforced to everyone internationally, as such a high portion of high-traffic websites are American. And it's not just about cursewords, it's this sick censorship of women's breasts, nudity and sex in general.
Communication on the internet is switching to a small number of mostly American social media websites like Facebook. If Facebook bans certain expression of thought or certain types of media/pictures, then that decision has pretty widespread effects. Even worse, when exposed to this kind of thinking, other countries will slowly start to adopt it.
On the other hand, other countries would enforce a different kind of morals more (like censorship related to racism and religion).
I love it when some sites make exceptions, like Tumblr (or Reddit in the past).
It's not that the words are bad, but some people take it too far. Especially on the internet, where some people erroneously believe in the anonymity of pseudonyms
Anyway, a lot of people object to the overuse of the word "fucking" simply because they've grown out of it. I'm all for artfully dropping it in from time to time for well-placed effect, but it can easily become a crutch used by those too lazy to consult their inner thesaurus. It's sort of shorthand for "I really mean it, which makes it more true!" Although it's arguably true that this particular tool takes it around the bend enough that it starts becoming funny again. Wait, I mean it's FUCKING true. :-)
http://www.hnsearch.com/search#request/submissions&q=f*cking&sortby=points+desc
I'd just like to know: Why was this title changed? Would a majority of the admins be in favor of this?"According to Paul Fussell's Class: A Guide Through the American Status System, aversion to profanity is a middle class thing. The upper class[1] do not use euphemisms for profanity or obscenity. Fussell wrote that Jilly Cooper reported "I once overheard my son regaling his friends: 'Mummy says pardon is a much worse word than fuck.'"
I doubt that many members of the upper class (see Fussell's book for a definition of upper class, it is roughly the tastes of "old money" but not dependent upon actual wealth) read Hacker News. It is likely that those who do not object to obscenities such as the word "fuck" are more socially liberal freethinkers who dislike formality. Those who do object are likely to be members of the middle class who believe (foolishly) that in censoring profanities and vulgarities, they are emulating the upper class."
Provide a fucking help topic
210bbc9498 Browse code
tpope authored 16 hours ago
Initial fucking commit
a1b87e8b4b Browse code
tpope authored a day ago
I like how he has total commitment to his commits.also. WTFPL!
Used incorrectly swearing suggests someone who doesn't have much control over their emotions or vocabulary and lacks range of expression.
Yet this Heroku library, presumably created by someone who, stubbing their toe on that same problem over and over, is one big exclamation point all-caps rant, with all possible lines of code and input fields in Github (even the license!) filled with rage and satisfaction, and the nice thing is that the library ultimately fixes a problem and makes the solution available to all.
Separately, to anyone thinking this "unprofessional", take a look at Philip Greenspun's definition of a software professional: http://www.youtube.com/watch?v=JsPFdVrbGeE#t=41m20s (incidentally, this entire lecture deserves to be bookmarked and watched).
Edit: By the standards of Greenspun's definition the author of the library would be considered a consummate professional.
For those without time to watch, here is the link for the presentation he used (though he's an excellent speaker and the presentation adds much more):
http://philip.greenspun.com/ancient-history/professionalism-...
1. git blame 2. move to the blame window and hit 'o' to open the commit 3. discover that the line in question was merely moved not created by this commit, then move to the --- line in the diff and hit 'o' to open the previous version of the file. 4. repeat from step 1
It's a few more steps than `git log -S` but it provides a different kind of flexibility. You can trace all manner of historic code migrations even without a common search term.
Also, how divorced he is from his own example is when he says 'professionalism to [cosmetic sales] is nice car, clean clothes, no offensive language'... and then says 'but that's not professionalism to a surgeon - they have a lot of money so probably a nice car, but I don't expect them to be clean'. A surgeon!? This guy doesn't think it's in a surgeon's professionalism to be clean!?
And on a surgeon's cleanliness, note that Greenspun is referring to the surgeon's car, not hands or other parts. (Though perhaps some doctors could use help in that department: http://well.blogs.nytimes.com/2011/09/01/getting-doctors-to-...)
I didn't give the speech more than a few minutes because he seemed quite confused by the term - while the speech might not hang on the semantics, I was thinking 'what can he offer if he can't even keep his context straight'.
Also, taking your summary as a pracie, it seems to be missing a fundamental part of acting professional: a measured response when acting with others, be it clients or other professionals. You can be competant, inovative, and teach and still be a histrionic, self-aggrandising arsehole that creates drama left, right, and centre. 'Being professional' includes downplaying drama that isn't directly related to the core work of the profession (if your lab is about to run out of a critical isotope, this isn't a drama you want to downplay).
(Yes, looked it up now)
[vagrant@localhost conf]$ hadoop --help
Error: No command named `--help' was found. Perhaps you meant `hadoop -help'
[vagrant@localhost conf]$ hadoop -help
Error: No command named `-help' was found. Perhaps you meant `hadoop help'
[vagrant@localhost conf]$ hadoop help
Exception in thread "main" java.lang.NoClassDefFoundError: help
Caused by: java.lang.ClassNotFoundException: help
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: help. Program will exit.I solved this a long time ago with a simple `alias hrc-='heroku run console --remote'`. That way I can type in console `hrc- production` or `hrc- staging`
What is with all the crass language that has become so pervasive in this industry in recent years?
Why the need to express yourself so poorly?
What is poor about this usage of "fucking"? It's an intensifier, appropriately used in this instance. Some people lean on swear words too much, but I don't think this is such a case.
This is not the case of overuse? That github page drops the f-bomb 20 times.
An aside: why do you use "f-bomb" instead of "fuck" when talking about "fuck"? It's not like we don't automatically fill it in when we hear it. See Louis CK's rant about this (nsfw language): http://www.youtube.com/watch?feature=player_detailpage&v...
If you want literary use of "fucking" (there, I said it), then I would invite you and the repo owner to read "The Elements of Fucking Style" by Chris Baker and Jacob Hansen [1]. Maybe then you both would understand how to use the word.
Lastly, to help the situation I've decided to offer a helping hand to fix this problem, a pull request[2]!
Does anyone know if you can rename a repo with a pull request?
[1] - http://www.amazon.com/The-Elements-cking-Style-Helpful/dp/03...
[2] - https://github.com/undernewmanagement/heroku-fucking-console...
Edit: added a fixing pull request
I feel like you're treating your prescriptivism of how the English language should be used as more objective than it really is.
I feel honoured to be downvoted by obvious twats.
Also, watch your language young man!
Post = Post.count # instead of "post = Post.count"
Which re-assigned the Post class to a number. Then we started getting production airbrake errors where the Post class was now a FixNum, /facepalm.
It was an easy fix, just restart all of the servers, but I was very surprised to say the least.
Note: I believe this was with the Bamboo stack. I'm not sure if this is still true with the Cedar stack.
Sounds familiar: http://www.catb.org/jargon/html/D/DWIM.html
One may make the argument that removing the default behind 'heroku console' was too pure and not pragmatic enough, but going from strictly what you are writing here, this is the logical implication: "don't write error messages suggesting what I meant, and I'll (apparently?) be happier."
(Firefox 19.0, 32-bit build on x86_64 Linux.)
Is it a bad sign when page-widening spam makes you nostalgic?
(Ah, Slashdot circa late 1990s! What a time to be alive!)
The attitude is ill ;-)
If you're annoyed with something, have they even tried bringing it up with Heroku's support team? If so, have they tried shipping this tool that doesn't make the maintainer look like an arrogant troglodite?
Though when searching for a reference (http://www.ohohlfeld.com/linuxfun.html), I found this (non swearing) gem:
init/main.c:
/*
* Tell the world that we're going to be the grim
* reaper of innocent orphaned children.
*
Some software development subjects are best not discussed in front of ordinary people, but it's hard to not make fun of it when you're dealing with a daemon that's not properly reaping it's zombie children...