HNHacker News
TopNewBestAskShowJobs

q_revert

638 karma · joined June 6, 2012

ocfinn.com
submissionscomments
q_revert··on Here’s Why Firefox is Still Years Behind Google Chrome
vimperator is probably the most useful web extension i've ever used.. and it doesn't have a good chrome equivalent

http://www.vimperator.org/vimperator

q_revert··on Firefox 25 will get a major UI overhaul
if you enjoy vimperator I suspect you'll appreciate the tree style tabs mentioned above.. also if you `:set tabnumbers` you can easily switch between numbered tabs, which can be very useful

http://i.imgur.com/3x8nF0J.png

q_revert··on Improving the security of your SSH private key files
i'm not sure if it works in all shells, but at least in zsh/bash doing

   $ echo "this will not be saved in history"
 
as opposed to

   $echo "this will be saved in history"
can be useful
q_revert··on Steve Jobs emails that show how to win a negotiation
also, there isn't a single typo in jobs' emails (at least anything immediately obvious), whilst in comparison murdoch's responses seem sloppily written and careless.. as you've pointed out, it does seem as though a lot of effort went into jobs' emails.. and in the end, it would seem the effort paid off..
q_revert··on Ted Nelson, coiner of the term 'hypertext', Outs Bitcoin Creator
I'm not sure what constitutes an outing, but I'm pretty sure this isn't it:

“I cannot say QED to that because I have not proven it,” he adds. However, he says his theory is “consistent, plausible, and I believe, compelling.”

q_revert··on The //* /*/ //*/ comment toggle trick
for any vim users I would recommend having a look at NERDcommenter, from the author of the very popular NERDtree

https://github.com/scrooloose/nerdcommenter

q_revert··on Collection of the best fonts for programming
moved around a fair bit between DejaVu Sans Mono/Inconsolata/Consolas etc before eventually settling on Ubuntu Mono, which really holds up extremely well at smaller sizes (7/8 pt)
q_revert··on You should blog even if you have no readers
having recently started a blog for several of the reasons mentioned I'm interested as to what HN's opinion on comments are? my site's current incarnation doesn't have any, and I've considered adding them, but I'm not sure they'll really add anything given the low traffic

I do like the idea of Svbtle's 'kudos' system as a measure of leaving positive feedback or an indication of a post's popularity. I guess my main worry is that someone might actually enjoy a post but find it difficult to let me know, is an email link really enough in this instance? seems like a rather high barrier to entry

http://ocfinn.com [in case anyone was wondering]

q_revert··on Don't Copy-Paste from Website to Terminal
one of the recommended ways to install oh-my-zsh

   wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
q_revert··on Zsh-lovers – tips, tricks and examples for the Z shell
another nice one which i get a lot of use out've.. (again, no idea if bash can do this too)

   $ setopt brace_ccl #put this in your ~/.zshrc

   $ echo {1-3}.pdf {a-d}.pdf
   1.pdf 2.pdf 3.pdf a.pdf b.pdf c.pdf d.pdf
q_revert··on tmux 1.8 Released

   bindkey 'a' last-window
   bindkey C-a last-window
if you use the command frequently enough, it might be worthwhile binding `^a a` and `^a^a`, similar to the tactic of binding F1 to <esc> in vim
q_revert··on tmux 1.8 Released
the new choose-tree commmand is superb, for anyone who regularly uses tmux and already understands how great it is, you should consider upgrading for this alone..

with several sessions running on most of my machines, i frequently found myself `detaching` and `reattaching` to a different session... as the `choose-session` command gives you a full list of all the windows, which tends to obfuscate exactly what's going on, particularly if you have a bunch of sessions and windows..

however, the `choose-tree` gives you a session tree, which you can expand and easily identify... meaning that instead of sending `^a d`, followed by tmux attach sessionname you can comfortably do a `^a s` and get where you want to be (presuming you've remapped ^b to ^a)

also, you should be using the tmux buffers, `^a =`!

q_revert··on Terminology – a new terminal emulator
locally, I find the tmux buffer system (just like in vim) to be very useful for pasting text around the place, also, the newer versions have :choose-tree, which is well worth a look, using ^a s gives you a list of open sessions, from which you can choose what you were working on, and if you give your sessions sensible names (based on the starting directory for example) then you can switch between projects/jobs incredibly easily..

also, running tmux locally has the advantage that if you need to leave the office or go somewhere, you can still reattach to your work machine and pick up from where you left off.. so, in a sense, everything is remote

q_revert··on Terminology – a new terminal emulator
perhaps it's not that they don't manage remote machines, just that they do it differently to you.. nested tmux with $HOSTNAME/$IP in the hardstatus make this very easy imo, tells you where you are whilst also allowing you to keep a minimal prompt.. as i find long prompts can be incredibly annoying

also, using ^a^a to send commands to the nested tmux isn't so bad.. but to get to the third one down you need to use ^a^a^a^a as you need to send a ^a^a to the second one in..

for the fourth nest you need 8 ^a's, but again, it's a bit like code indentation, if you're 4 tmuxes deep, then there's a good chance you're doing it wrong

but still, it's nice to be able to do it if necessary

q_revert··on 80 chars per line is great

    set colorcolumn=80 
is another nice way to keep yourself within the bounds, it also has the bonus of not being a hard limit, just a visual indication that you're overstepping

edit: (already mentioned)

q_revert··on Idiomatic Python [video]
audio only here too, Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
q_revert··on The enigma of the Ford paradox
anyone who found the discussion of dynamical systems here interesting would be well served by having a look at http://www.scholarpedia.org/, which has some very good articles on the area

[edit] http://www.scholarpedia.org/article/Encyclopedia_of_dynamica...

q_revert··on I'm a shut-in. This is my story
even a cursory read of the post would suggest that the OP is actually doing quite a good job of dealing with his problems
q_revert··on Vim After 11 Years
you should take a look at https://github.com/jpalardy/vim-slime , very handy for sending code from vim sessions to other tmux panes
q_revert··on Vim After 11 Years
same here, but use

   nnoremap <Space> za   
   vnoremap <Space> za
also, for folding in general I'd recommend using

  set foldmethod=marker
which has the benefit of making folds more 'transparent' in your code, and also persistent across vim sessions
q_revert··on What is up with the insane long Google results URL now?
using a greasemonkey script like http://userscripts.org/scripts/show/121261 can fix this for you.. obviously using such scripts brings it's own issues, but a nice(ish) solution imo
q_revert··on Favorite Unix Commands
a few nice ones here too, http://www.pixelbeat.org/cmdline.html, http://www.pixelbeat.org/docs/linux_commands.html

always worth looking at these types of lists imo, whilst some of the commands mightn't really fit into your workflow or seem useful immediately, they're often exactly the snippets of information that can save hours at a later stage..

q_revert··on How fast could you travel across the U.S. in the 1800s?
http://en.wikipedia.org/wiki/Man_versus_Horse_Marathon
q_revert··on The Homely Mutt
"Notmuch is not much of an email program. It doesn't receive messages (no POP or IMAP support). It doesn't send messages (no mail composer, no network code at all)."

notmuch doesn't replace mutt, you use it with mutt/offlineimap etc as your mail indexer, which makes massive mail archives instantly searchable.. (and does this extremely well)

I suspect this what the grandparent was referring to, it's not intended as a mutt replacement, so to complain that it doesn't replace it well is a bit unfair

q_revert··on Show HN: We got tired of asking 'What browser are you using?' and created this
works nicely for me in firefox/opera, but doesn't do too well in anything else... although I'd doubt you'd need to worry about them too much, still, it's always nice to see apps like this fail gracefully, if you had a 'this particular browser isn't supported' type message rather than 'something went wrong'

http://imgur.com/a/chkc2

broken useragents..

konqueror: Mozilla/5.0 (compatible; Konqueror/4.6; Linux) KHTML/4.6.5 (like Gecko) Fedora/4.6.5-8.fc14

seamonkey: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.19) Gecko/20110429 Fedora/2.0.14-1.fc14 SeaMonkey/2.0.14

dillo: dillo/0.8.6 < -- wouldn't worry about that one too much :)

epiphany: Mozilla/5.0 (X11; U; Linux x86_64; en-ie) AppleWebKit/534.16+ (KHTML, like Gecko) Version/5.0 Safari/534.16+ Epiphany/2.30.6

midori: Midori/0.2 (X11; Linux; U; en-ie) WebKit/534.7+

q_revert··on Linux Commands for Developers
I was expecting to see the first comment in here complaining about his use of 'cat', as in all of the examples his second argument could've easily taken a filename argument..

  sort order.*
is surely more elegant than

  cat order.* | sort
which is fair enough, however, as it happens, i generally do end up using 'cat' in the way he's used it.. for such small jobs nobody can be genuinely worried about the overhead, and it comes down to a matter of taste..

personally, i find that using 'cat output | $command' helps to separate out the 'logic' of what i'm doing, if that makes sense..

also, again, purely as a matter of taste

i'd prefer

  egrep 'Hardcover|Kindle'
over

  grep "\(Kindle\|Hardcover\)"
EDIT: (as alexfoo has pointed out, this isn't a proper AND as it worries about the order.. my bad, still useful though :D )

and as a sidenote, something i only found recently, but which is quite useful, a logical AND with egrep looks like

  egrep 'Hardcover.*Kindle'
q_revert··on PG: The Art of Funding a Startup is now free on Amazon
from one of the amazon reviews:

"The price to content ratio of this publication is enormous and much of the information can be gleaned from a web search. "

for a free book it seems harsh but probably fair

q_revert··on My biggest problem with Vim

   f 24 ^M      - choose reply
   f 6  ^M      - enter text buffer
   ^i           - open vim
   *** write this message ***
   :wq          - message gets transplanted into text buffer
   esc, esc     - exit text buffer, exit insert mode
   f 7 ^M       - choose reply again

   ??? 

   profit       - vimperator
q_revert··on Show HN: Chartulo.us - Chart anything from the command line
another option/alternative is to use matplotlib, which is ideally integrated with ipython notebooks http://ipython.org/, well worth a look if anyone's interested.. their integration with numpy/pandas etc is superb.. and on top of all the benefits of plotting with matplotlib, you get ipython and all its features for free... for example http://imgur.com/Le8px
q_revert··on Managing Work-In-Progress Folders with “ls -ltr”

   /tmp/ $ mkdir -p test1/test2/test3                                       

   /tmp/ $ touch test1/test2/test3/test4                                    
   
   /tmp/ $ ls -ltr test1/**/*(.)                                            
   -rw-r--r-- 1 usr grp 0 Aug  9 11:11 test1/test2/test3/test4              

   /tmp/ $ touch test1/test2/test3/test\ with\ spaces                       

   /tmp/ $ ls -ltr test1/**/*(.)                                            
   -rw-r--r-- 1 usr grp 0 Aug  9 11:11 test1/test2/test3/test4              
   -rw-r--r-- 1 usr grp 0 Aug  9 11:12 test1/test2/test3/test with spaces
← PreviousPage 2 of 3Next →