Reputation
5,815
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
11 50 100
Impact
~757k people reached

Jan
18
comment what is the command+k ( in mac ) equivalent in ubuntu
FYI - apparently this is called "clear scrollback" or "clearing the scrollback buffer" and is a function of the terminal program (not the shell, such as bash or zsh).
Dec
16
comment Extend Monitors on Both Sides - Using Splitter
The problem is that the computer only "sees" one output for display, so it pushes one image out that pipe. The fact that you later split it and send it two places doesn't change that. You need the computer to "know" to send multiple images.
Dec
16
comment Extend Monitors on Both Sides - Using Splitter
Clever, if impractical. :)
Dec
8
comment Vim lint check - only show message if there's an error
Syntastic has become one of my biggest time-saving tools since you told me about it. Just wanted to note that generally the error-checking is done by calling out to an external program, which may need to be installed. You can find out what it needs by looking in the syntax_checker file. For example, for Javascript checking you need to have JSLint (jsl command line utility) installed: superuser.com/questions/247012/…
Dec
8
comment Is a file system just the layout of folders?
Great answer! Could you add some info about how file systems differ in behavior? For instance, I've heard some do "journaling". I've also heard that ext is less subject to fragmentation than FAT32.
Nov
18
comment How can I see the name of a process owner from the OSX prompt?
@DanielBeck - answer updated to clarify.
Nov
18
comment How to install vim with clipboard support on Fedora?
@garyjohn - ...and, your awesome tip about running graphical vim on the command line has come in handy yet again, this time on a Mac. mvim -v also gives access to the system clipboard. Thanks!
Nov
14
comment Macvim color scheme conflicting with .vimrc
Update - I am now using the Solarized color scheme, which is very easy to read and, among other things, sets a good highlighting color for me, so I don't have to do the above at all.
Oct
31
comment Printing background colours in Chrome
Doesn't work if it's more than one screen long. Also, most designers will set different styles for screen and print using the media attribute of the style tag: fonts that work better in each media, maybe removing images or ads from the printed version, etc. Printing from a screenshot defeats this effort.
Oct
14
comment What's the Unix command-line symbol for “the PID of the last suspended process”?
awesome, thanks for the clarification. :)
Oct
13
comment What's the Unix command-line symbol for “the PID of the last suspended process”?
I think kill % was what I was looking for. Though I suppose this is actually the last job started rather than the last one suspended, for me this is typically the same one.
Oct
7
comment Toggle between two different vim configurations?
@Michael Caron - you can keep your .vimrc and .vim anywhere you like, as long as you have symlinks in your home folder to wherever you put them. Personally, I use this trick to keep all my configs in a .dotfiles folder, which I can sync to Github.
Oct
7
comment Toggle between two different vim configurations?
I recently learned that vim -u "NONE" opens vanilla vim, with no configuration. That can be useful if you've got a complex configuration and want to know whether some behavior is native to Vim or not. (This also works for MacVim - I haven't tried Gvim on Linux.)
Sep
22
comment How can I add line breaks in an XML file from the Unix command line?
After reading your comment, I tried this with both single and double quotes from zsh, then I switched to bash and tried both ways. In every case, it just inserted n. I'm using OSX Snow Leopard - what are you using?
Sep
19
comment How can I add line breaks in an XML file from the Unix command line?
On my OSX machine using zshell, that command converts <foo><bar>stuff</bar></foo> to <foo>n<bar>nstuff</bar>n</foo>n.
Sep
16
comment How can I add line breaks in an XML file from the Unix command line?
Oh wow, I didn't know about xmllint. Thanks!
Aug
31
comment How can I tell what syntax and indentation rules Vim is using on a particular line?
Now that I think about it, I suspect that BOTH the PHP and HTML rules are being applied.
Aug
31
comment How can I tell what syntax and indentation rules Vim is using on a particular line?
@digitxp - I don't have a /syntax/javascript.vim currently. I do have a indent/javascript, but that just decides when to indent or unindent, not how many spaces to use for an indent. And, as I said, a separate JS file gets indented with my default of two spaces.
Aug
26
comment Can I use Vim editing mode on the command line without losing recursive history search?
That's interesting, though - I frequently use search as a movement in Vim. I guess I can't use it to move within the command I'm currently editing, since it's pegged to searching history, eh?
Aug
26
comment Can I use Vim editing mode on the command line without losing recursive history search?
A hard choice! garyjohn shows a Vim way to do it, and JdeBP shows how to get the keybinding for Ctrl+R back! I'm going to play with both methods and accept an answer later. I'll decide based on 1) which method seems easier to me and 2) which gets more upvotes. Thanks to both of you!