by sneak · 13y ago · 0 comments
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 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.
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.
>> "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.
Does anyone know what the iPhone/iPad/etc. do in this case?
Use exit() or Ctrl-D (i.e. EOF) to exit
Gets me more often than I'd like to admit. 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.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'It enables you to search using '/keyword', for example.
$ 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?No, SemVer means you increment major version numbers if, and only if, you break backwards compatibility.
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?
Oh, wait, this is rubyland. Nevermind.
I've been on a plane all morning and am in no condition to be parsing the topics here :)
What they probably could do, though, is a 302 redirect to https. But that's frown upon by some, too.
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.
/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.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.
$ 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.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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.
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.
"Database connection closed. Reconnect?"
Drives me nuts... I ran a query, didn't I?!? 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. > ce somedir
zsh: correct 'ce' to 'cd' [nyae]? yCrap.. I meant "DELETE FROM some_table WHERE id=1"
sighs
More commands could use options to adjust how big guns they let you fire at your feet with...
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.All my deletes written first as selects now, as a sibling comment suggested.
Oh yeah, you're using a toy database aren't you.
~/foo$ mv bar baz
~/foo$ ls
baz
~/foo$ cp baz bar
cp: omitting directory `baz'
~/foo$ ls
bazI think it's enough to stop right there. :)
No reason to associate gays with people who can't program and/or design software competently.