All Issues
24,993 verified issues
Reload .vimrc in Vim without restart
It bothers me when I wrote something into and I have to close it first and open to get my changes be applied. Is there a way of reload in Vim without closing it? E.g. I've added to and I want line numbers to appear for all my windows and buffers.
One GnuPG/PGP key pair, two emails?
I have two emails I use frequently, for both of which I'd like to use PGP keys generated/managed by GnuPG. I'd like to avoid creating a different key pair for each email, if possible, as that's unnecessary for my situation, i.e. I use the two emails interchangeably. Is there a way to do this? I am using Mac OS X 10.5 and Ubuntu 11.04, and Thunderbird 3.1.10. Thanks in advance!
Obtain kernel config from currently running Linux system?
I accidentally deleted my .config for my kernel configuration on Linux, and seem to remember there was a way to retrieve the kernel configuration via the proc filesystem somehow. Is this still possible, and if so how would I do it?
What's like OSX's pbcopy for Linux
In a terminal in OSX I can pipe output to pbcopy and then go into a web browser and paste it. I tried this in Linux with xcopy but when I switch to the browser it just overwrites the clipboard with with whatever was in it the last time the browser was used. What works like pbcopy in Linux?
Excel: how to undo in current file only?
Microsoft Excel's undo / redo feature behaves unlike any other program I know. The undo stack seems to be global across all open files, so that undoing sometimes switches to another file and undoes something you didn't want to undo. And if an edit you want to undo was before an edit in another file, you have no choice but to undo the other file. I am not the first to complain about this - see "Excel's undo madness", about halfway down. Besides "edit only one file at a time", is there a way to make Excel's Undo apply to the current file only? I'm using Excel 2003 if it makes a difference.
Vertically stack multiple images using ImageMagick
I would like to combine multiple images into one image using ImageMagick. To explain a little better, I want the result to look similar to this: That is, I have a number of screenshots, and I want to turn them into one image with the original images on top of each other. By Googling, I have come across the 'composite' command, but I don't know if, and in that case how to use it to get the result I want.
How do you display POST data with cURL?
As an example, POSTing to a web server with the -v argument: And the output There is no mention of the data that I posted. Is there an option in cURL to display the string "firstname=john&lastname=doe" in the output? Note: Obviously the string I want is in the command I executed, but there are several other post options such as --form and --data-ascii etc. I'd like to see the raw data being sent to the server.
What is port forwarding and what is it used for?
There are a lot of questions on 'port forwarding', but there doesn't seem to be one that clearly states what it is and what it's used for. So: What is port forwarding? What is it used for, and why would I need it?
Is there a shortcut key to duplicate a tab in Google Chrome?
Is there a keyboard shortcut to duplicate a tab in Google Chrome? I've read through all the replies in the Google Chrome Forum thread, but there's no hope there. The only hope I get from that page is: Next update for Chrome should definitely include a duplicate shortcut.
Bash: Iterating over lines in a variable
How does one properly iterate over lines in bash either in a variable, or from the output of a command? Simply setting the IFS variable to a new line works for the output of a command but not when processing a variable that contains new lines. For example This gives the output: As you can see, echoing the variable or iterating over the command prints each of the lines one by one correctly. However, the first for loop prints all the items on a single line. Any ideas?
What are PATH and other environment variables, and how can I set or use them?
Questions about setting environment variables the are very common here, and in most cases the answers are very similar to each other. In the future it would be nice to have a good Q/A for this. So the question is: What are environment variables, like the executable , and how can I change and use them on major operating systems? A good answer would include a simple explanation of what environment variables and especially mean to the OS, as well as simple guidelines on how to set and read them accordingly.
Browse an UNC path using Windows CMD without mapping it to a network drive
What I usually do to get around this is to map that directory to a network drive and then I could easily access it from the command prompt. But is there an easier way on how to get around this?
How to allow local LAN access while connected to Cisco VPN?
How can I maintain local LAN access while connected to Cisco VPN? When connecting using Cisco VPN, the server has to ability to instruct the client to prevent local LAN access. Assuming this server-side option cannot be turned off, how can allow local LAN access while connected with a Cisco VPN client? I used to think it was simply a matter of routes being added that capture LAN traffic with a higher metric, for example: And trying to delete the route don't have any effect: And while it still might simply be a routing issue, attempts to add or delete routes fail. At what level is Cisco VPN client driver doing what in the networking stack that takes overrides a local administrator's ability to administer their machine? The Cisco VPN client cannot be employing magic. It's still software running on my computer. What mechanism is it using to interfere with my machine's network? What happens when an IP/ICMP packet arrives on the network? Where in the networking stack is the packet getting …
How to check which apache modules are enabled/installed?
Which is the most elegant way to check which apache modules are enabled?
Possible to "snap" top/bottom instead of just left/right in Windows 7?
In Windows 7, I know you can do Windows + Left to put a window in the left half of the screen. Is there a feature that will do top and bottom?
How does the tmux color palette work?
I'm trying to set something to gray, but can't figure out how. The only bit of info in the man page about colors I can find is: I also found a blog post which iterates through colors, but I can't quite grok it, and don't want to sit at the terminal all day guessing color numbers until one works.
Change default text editor for crontab to vim
I'm using ubuntu 9.10 and the default text editor is nano, which i hate. (doesn't everyone?) Normally it's not a problem as i just vi or gedit everything but is opening with nano. I tried changing it to vim using and selecting option 3 ("/usr/bin/vim.basic"). This has changed it for sudo and non-sudo alike. But still opens nano. Any ideas? max
What are the best options to use when compressing files using 7 Zip?
I often have to gather log files and upload them to a central server (Owned by another company). The central server has a size limit of the file, so I am trying to create the smallest file possible that is still in the zip format. What are the best setting to use when compressing a text file to a zip format when my only need is a small file size? I've done the obvious and chosen ultra compression, and I have noticed that LZMA does a better job than deflate, but there are far too many other permutations of options for me to test them all.
How to run Unix commands from within Vim?
How can I run Unix commands while I'm inside vim?
How to Delete a Junction by Using Command Prompt in Windows 7
I believe in Windows Vista, we could use command. However, I cannot find this command in Windows 7. I know I can use Windows Explorer and delete the junction, but I wonder if this can be done in Command Prompt. I can use command to create a junction from a Command Prompt, so, what is the opposite of it (something like )?