Hacker News new | past | comments | ask | show | jobs | submit | randomanybody's comments login

Maybe not strictly against the law, but if I'm riding in your car and you are purposely ducking cops, I'm going to feel a bit suspicious.


one thing that worked for me was iterm and growl integration to show me a system notification on compilation completion.


I do this with PROMPT_COMMAND and notify-send.


I hope he does try to sue for a link to google which has a link to his own site which behaves in a certain way based on the if HTTP_REFERER header says it was from google. He could stop the behavior at any time by changing his own code. It would set a good public precedent to help curtail such buffoonery moving forward.


It's interesting how different neighborhoods can be in the same city. In Seattle, my old neighborhood's board (First Hill) was vastly different than that of Ballard, to the point where I wasn't sure my friends who lived there were talking about the same site. The latter sounded like it was filled entirely with militant, yet simultaneously skittish NIMBYers, while mine was filled with park get-togethers and lost puppies. And since you could only see one neighborhood, the other experience was invisible to me.


I live in the Central District of Seattle and a friend, who made an account and lets me log in so I can read, lives in Wallingford. The differences are appalling. The CD has its share of minor crime but reports of suspicious activity are accompanied by descriptions beyond race or, sometimes, security camera output. This is mixed in with posts about giveaways, contractor recommendations, and Metro bus reroutes due to construction.

Meanwhile, my friend's account showed lots of posts like described here. Oh, and the slagging on the homeless was just vile. I have screenshots of several examples but I don't want Nextdoor to go all Erica Barnett on me and ban accounts so I leave them out. But the police department had a lot more "community forums" on the Wallingford part of Nextdoor than the CD's...


for me, vi bindings when I compose mail. Also, it does threading right (multiple levels like reddit or hn, vs. flattened like Facebook)


"To visualise this, it’s simplest to think of the state of your repository as a point in a high-dimensional ‘code-space’, in which branches are represented as n-dimensional membranes, mapping the spatial loci of successive commits onto the projected manifold of each cloned repository."

http://tartley.com/?p=1267


Wow, that would be a great way to respond to all of the people who think git is too complex. :P


If you understand Git branches, this analogy one may help you to understand topology.


That's really... good. I have the theory that whether or not you see this is as an attempt at a legitimate explanation or just a joke depends on your level of self-confidence. I think few people will actually understand it (if they do it's a miracle, since such understanding would be a product purely of your own mind trying to interpret sense into what it sees), but those who lack self-confidence will see the fault in themselves, while those with enough confidence upon realizing they don't understand it will realize it's a joke, because if it wasn't they should have understood it.

Of course, now I'm open to a reply that demonstrates that it isn't a joke but makes perfect sense and that I'm clueless and overconfident... :)



Cheap with a poor customer experience? They'll fit right in at Walmart.


Mere humans are incapable of doing this right as most don't run with show whitespace (so tabs and spaces look different) & many don't grok the difference between indentation and alignment.

I wonder if gofmt logic can be extended to other languages.


Well, in my opinion doing any sort of aligning-things by hand is pretty tedious. I tend to just use indentation and not worry about alignment in languages that don't have a formatter to do it for me.

E.g. I would write

    struct Foo {
        int bob;
        string alice;
    };
and not worry about lining up variables, whereas gofmt would give you

    type Foo struct {
        bob   int
        alice string
    }
which is fine too but not worth doing by hand IMO.

But if you are, it's not too hard to know where to use spaces and where to use tabs, even w/o show whitespace. But it is true that this is more deeply more than most programmers want to think about indentation. :)


have you ever found a solution to make readline change cursor shape depending on mode? not knowing the mode before typing keeps me from turning this on, even though I prefer vi bindings.


You can do something similar using the show-mode-in-prompt option:

  show-mode-in-prompt
    If set to `on', add a character to the beginning of the prompt indicating
    the editing mode: emacs (`@'), vi command (`:'), or vi insertion (`+').
    The default value is `off'.
Unfortunately it's currently hardcoded to only use the '+' and ':' chars, and to only display at the beginning of the prompt.

Chet accepted a patch I submitted for custom indicators, and this will be coming in bash 4.4/readline 7.0: http://thread.gmane.org/gmane.comp.shells.bash.bugs/22580/fo...

I have patched versions of bash 4.3/readline 6.3 available on github (the bash page has gifs showing the functionality in action): https://github.com/calid/bash https://github.com/calid/readline

Note that the '\m' escape hasn't been accepted into the mainline yet, so as of now the custom indicators will still only display at the beginning of the prompt in the new versions.


Honestly, I've never looked. Although it seems some terminals can change the cursor shape, it looks like even Vim doesn't bother to try, so I'd be surprised if readline could.

The general solution is to just tap Esc a couple of times to ensure you're in Normal mode and continue from there.


I also use this convention, but one frustration is that no IDE wants to follow it in their auto line breaking functions.


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: