wickedchicken

Joined 16 years ago

Karma
2,193
Submissions
419
Member since
Jul 1
qrunk.com
View on Hacker News

Recent submissions

Comment · 14 years ago
I fly SFO <-> JFK very often. VX34 there and VX27 or VX29 back are my rides of choice, since I hate layovers and prefer redeyes. The wifi is passable too (don't try to SSH over it, though).
Comment · 14 years ago
Comment · 14 years ago
Comment · 14 years ago
Comment · 14 years ago
Comment · 14 years ago
A lot of people here are commenting on GitHub being 'overpriced' or 'greedy.' TPW did an interview a while ago that has insight into why their pricing structure is the way it is. It's a pretty interesting read:

http://mixergy.com/tom-preston-werner-github-interview/

(search for 'which metrics') to skip to the pricing part).

Money quote: "That’s like buying a car based on how much it weighs. It’s irrelevant."

I may be biased since GitHub does a lot to foster the developer community in my area (I nabbed a sweet contracting gig at one of their drinkups), but I'm perfectly happy with their pricing.

Comment · 14 years ago
The BSD networking stack.
Comment · 14 years ago
So I'm not sure if I understand correctly, but let me put it this way: with a little more git craziness, you can crack apart a commit and separate it into two. This is good if you did two unrelated changes to a file, committed that, and realized you wanted two separate commits later.

The basic process is:

1. git rebase -i, and change a commit to 'edit' 2. git reset HEAD^, this 'undoes' the commit and leaves the changes in your directory as if you had written the code but hadn't committed it yet 3. git status 4. git add <filename> -p, this lets you add commits to your file a chunk at a time. first, add all the commits as a part of commit one. skip the parts you want for commit two. 5. git commit (do not do git commit -a here) and write the message for your first commit 6. now your working directory will be all the changes for commit two. git commit -a if you want all of them 7. git rebase --continue

This page[1] has a more concise answer, but leaves out the git commit -p part.

Note that if you mess up in rebase-land, you can always git rebase --abort. If you come out of the rebase and everything looks lost ('oh god I lost my data!'), use git reflog and pull up the hash of where you were before. Your data is still there.

Another note: if your commits are already separate, you can use rebase to selectively squash and reorder them. Read the manual on git rebase -i, if you rearrange commits and only squash some I think you'll get what I'm talking about.

[1] http://stackoverflow.com/questions/6217156/how-to-break-a-pr...

Comment · 14 years ago
> However, I could use rebase to start combining loosely related commits, trading the time resolution for clarity in the commit history.

In general, your commits should be the smallest atomic operation that makes sense. When people talk about 'clean history,' they're talking about working in the awesome workflow git provides:

1. Write half-written broken code. 2. Fix that code up. 3. Add some more onto that. 4. Fix a typo! 5. Forgot to update the README.

Now, you could push that to master, but then the main master is littered with commit messages like 'oops' and 'typo.' Instead, you can rebase 5-1 onto the latest master, squash them together, and have one 'nice' commit that only has the cleaned up final changes.

This is one of the most powerful things about git: in a private repo, you can commit all kinds of garbage and half-written stuff without caring. When you want to make your stuff public, rebase and squash, then send it out. Be careful though! Only rebase your own private branches, or you're gonna have a bad time™.

Comment · 14 years ago
Comment · 14 years ago
Comment · 14 years ago
Comment · 14 years ago
Comment · 14 years ago
I meant a physical wall clock, not an app. I suppose I could mount and iPad on my wall and run the app, but I don't want to spend several hundred dollars on a clock that will sue me.
Comment · 14 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton