5,118 reputation
114490
bio website
location
age
visits member for 5 years, 5 months
seen Dec 23 at 12:56

I started learning web design to support my efforts as a singer/songwriter. I'm still doing that, but these days my actual job involves building intranet resources as well. My skillset is PHP, HTML, CSS, and Javascript (I'm a big fan of jQuery).


Apr
5
comment Despite the fact that GIT does NOT store file deltas, can you still rollback to previous file versions (unlimited times?)
Chris, you seem to have a pretty good handle on Git internals. Any chance you might take a swing at this? stackoverflow.com/questions/5176225/…
Apr
5
comment Despite the fact that GIT does NOT store file deltas, can you still rollback to previous file versions (unlimited times?)
Also, because Git uses snapshots of files rather than deltas, going back a long way in history is actually easier. Imagine you need to see a file from 20 commits ago. With deltas, you need to undo 20 changesets; with snapshots, you just grab the right snapshot. The longer your history, the bigger the advantage. And if you want to see the diff between the current version and that one, it's just a single diff, rather than having to decide what's been done, undone, redone, etc.
Mar
22
comment How can I make chown work recursively?
Thanks for the thorough explanation!
Mar
2
comment In Vim, what is Control + W for in insert mode?
Yep! This was in my .vimrc, which I intially got from a friend and have been tweaking since: imap <C-w><C-w> <esc><C-w><C-w> So he specifically mapped hitting "control + w" twice in insert mode to moving to the next window.
Mar
2
comment In Vim, what is Control + W for in insert mode?
@Mikel - updated question.
Mar
2
comment How can I use my local copy of Vim on a server?
Pulling the latest with cron is a neat idea. I guess each user on the server could have their own .vimrc synced to their home directory...
Mar
2
comment Is there an easier-to-reach mapping for ESC in Vim?
Interesting. What are the cases where CTRL-C is different?
Mar
2
comment Is there an easier-to-reach mapping for ESC in Vim?
I know that Control + [ does the same thing, but that's not really easier for me.
Mar
2
comment How can I batch rename files in bash?
This isn't the most concise way, but I do appreciate the readability and explanation. If I'm going to do this from the command line, I'd rather type what chrish shows, but if I were saving it as a script, I'd definitely use your way for readability.
Mar
2
comment How can I batch rename files in bash?
Nice - the most concise way so far.
Mar
2
comment How do I change until the next underscore in VIm?
It's great to know that I can define my own word boundaries, but after some thought, I think the best solution is ct_ as doubleface says below, since it's concise and is default vim behavior.
Mar
2
comment How do I change until the next underscore in VIm?
ct_ is exactly what I wanted. This has now become part of my regular workflow. Thanks!
Mar
2
comment In Vim, what's an elegant way to grab output from the command-line?
I also didn't know you could manually set registers like let @a = 'foo'. One cool idea would be, after doing a search and replace, you could save the search term to a register for pasting elsewhere by doing let @a = @/ - "make the a register contain what the / register contains, namely, my last search."
Mar
2
comment In Vim, what's an elegant way to grab output from the command-line?
Also - I didn't know about the system call. That's awesome!
Mar
2
comment In Vim, what's an elegant way to grab output from the command-line?
After looking at the help and experimenting, I see that 1) :r is short for "read" (so you can type out 'read' or just 'r' and it's the same command), and 2) doing :r path/to/foo.txt will insert the contents of that file after the cursor.
Mar
1
comment In Vim, what's an elegant way to grab output from the command-line?
Awesome! Thank you!
Feb
23
comment How to search for one of two similar strings in Vim?
Ah! I wasn't escaping the parentheses when I tried this. Interesting - I thought I only had to escape literal characters.
Feb
23
comment How to search for one of two similar strings in Vim?
@molsecules - right, thanks. I updated the question.
Feb
21
comment Macbook : Replacing RAM while on hibernate?
Really? Is it more of a bother to have a broken computer? As infrequently as you upgrade RAM, why not take the time to turn the thing off? I mean seriously, if I were doing this, I'd be careful about static electricity. No way would I have actual electricity running through my $1,000 machine.
Feb
17
comment Using JSLint with Syntastic in Vim
Yep - that works! Thank you.