News for hackers. Stuff that matters.
Re:I swapped my MacBook for an iPad+Linode by moconnor on Wednesday November 02, 2011 @10:16AM (#3186748)
This is really true. Back then we were still using CVS, and I was writing a feature that I thought wasn't quite big enough to branch and remerge for, but turned out to be a bit more involved to get right than I'd thought.

Now we're on Mercurial and life is better.

Edit: A nice win with the Linode is that they back it up for me for $5 a month. Sure, there are solutions for the desktop too, but somehow I never got around to using one of those.

Re:I swapped my MacBook for an iPad+Linode by raganwald on Wednesday November 02, 2011 @10:22AM (#3186791)
There are two kinds of programmers: Those who’ve earned their experience the hard way, and insufferable know-it-alls who parrot whatever was in the last witty blog post they read.

There’s zero shame in being the first kind :-)

Re:I swapped my MacBook for an iPad+Linode by zachleat on Wednesday November 02, 2011 @03:09PM (#3188428)
What's the URL to the blog post where you read this? :)
Re:I swapped my MacBook for an iPad+Linode by raganwald on Wednesday November 02, 2011 @04:27PM (#3188783)
Re:I swapped my MacBook for an iPad+Linode by AbyCodes on Thursday November 03, 2011 @12:08PM (#3192381)
Recursion abuse!
Re:I swapped my MacBook for an iPad+Linode by pferdefleisch on Thursday November 03, 2011 @11:17AM (#3192147)
i think i'm in a wormhole!
Re:I swapped my MacBook for an iPad+Linode by marxidad on Wednesday November 02, 2011 @10:53AM (#3186996)
And one shame in being the other : P
Re:I swapped my MacBook for an iPad+Linode by jerf on Wednesday November 02, 2011 @10:26AM (#3186817)
I would observe that with DVCS, if your hard drive crashes you can still lose several days of unpushed code, too. I recommend and use cron jobs to push and/or rysnc things around on a more frequent basis for my really important stuff.
Re:I swapped my MacBook for an iPad+Linode by scottschulthess on Wednesday November 02, 2011 @11:38AM (#3187270)
This is why I keep my working copies in Dropbox
Re:I swapped my MacBook for an iPad+Linode by GoldenMonkey on Wednesday November 02, 2011 @12:50PM (#3187686)
second that... my working folders are dropbox... and commit to cloud git repository as needed.
Re:I swapped my MacBook for an iPad+Linode by kellishaver on Wednesday November 02, 2011 @11:25PM (#3190087)
Same here. I had some sort of electrical problem with my last computer and lost my hard drive due to it. Unfortunately, my back-up drive was also plugged in at the time and it got fried, as well (really bad luck/timing there).

One of the first thing I did when I got the new computer was to put a symlink to my projects directory in my Dropbox folder, so that all of my projects now get backed up to Dropbox automatically.

Re:I swapped my MacBook for an iPad+Linode by tl on Wednesday November 02, 2011 @12:25PM (#3187530)
We keep our main repository in under dev/$PROJECT and backup repositories under user/$USERNAME/$PROJECT. Then we set a post-commit hook to push to the backup server on commit. Setting up the backup and creating the hook is done by a shell script you run after cloning.
Re:I swapped my MacBook for an iPad+Linode by ori_b on Wednesday November 02, 2011 @11:04AM (#3187067)
Raid and rsync are your friends. Use them.
Re:I swapped my MacBook for an iPad+Linode by swah on Wednesday November 02, 2011 @12:42PM (#3187623)
I'm always doing

  git push origin develop
for this reason, but some environments probably don't allow you to do this easily? I work alone. (EDIT: be nice to people)
Re:I swapped my MacBook for an iPad+Linode by ConstantineXVI on Wednesday November 02, 2011 @08:24PM (#3189560)
We typically work in personal feature branches before merging into develop; if you use a similar workflow there shouldn't be much issue at all from pushing constantly.
Re:I swapped my MacBook for an iPad+Linode by swah on Wednesday November 02, 2011 @10:01PM (#3189848)
Can you protect from other folks pulling it? Sometimes people just don't want to reveal their code while is ugly...
Re:I swapped my MacBook for an iPad+Linode by ConstantineXVI on Wednesday November 02, 2011 @10:14PM (#3189878)
Gitolite[1] will let you mark branches as private on the remote either by specific branch name or a regex (ex: any branch that starts with "swah-" is private to you) if you want privacy before revealing your code.

[1] http://sitaramc.github.com/gitolite/

Re:I swapped my MacBook for an iPad+Linode by run4yourlives on Wednesday November 02, 2011 @10:58AM (#3187028)
Dropbox fixes this.
Re:I swapped my MacBook for an iPad+Linode by gujk on Wednesday November 02, 2011 @10:42AM (#3186928)
You could buy a second hard drive and put it behind your other drive and occasionally copy important files from your front drive up to your back drive.
Re:I swapped my MacBook for an iPad+Linode by vidarh on Wednesday November 02, 2011 @11:08AM (#3187092)
Works great until your computer/home/office catches fire.

Personally I have a mirrored drive set that I use as my primary storage, and a third disk that I rsync to nightly and use for backups of other stuff, because I don't trust that I won't have filesystem errors or controller problems that might render both disks in the mirror unusable. Then on top of that I use Crashplan to ensure I have an offsite copy.

For most of my code I also push to github or private external repositories regularly and/or pull to my laptop.

Maybe a bit paranoid, but I've had to recover from enough scary hardware and software failures over the years to not want to take risks.

Re:I swapped my MacBook for an iPad+Linode by BonoboBoner on Wednesday November 02, 2011 @10:53AM (#3186994)
Or use TimeMachine if you are on a Mac.
Re:I swapped my MacBook for an iPad+Linode by wizard_2 on Wednesday November 02, 2011 @01:46PM (#3187995)
No, if TimeMachine screws up a file it stays screwed up for ever after every backup, there's no integrity checking. It also completly barfs on large files that change little by little. The best example of that is the entourage mail store, but any single file db will do. I've seen clients bit bad by these problems. Don't get me started on the time capsule...
Re:I swapped my MacBook for an iPad+Linode by sepposade on Wednesday November 02, 2011 @06:18PM (#3189202)
Option-click on the Time Machine menu to verify backups. Sleep well.
Re:I swapped my MacBook for an iPad+Linode by chernevik on Wednesday November 02, 2011 @02:03PM (#3188097)
What should we use instead?
Re:I swapped my MacBook for an iPad+Linode by dman on Wednesday November 02, 2011 @03:50PM (#3188641)
Linus's solution is to write software that people run and use daily.
Re:I swapped my MacBook for an iPad+Linode by wtallis on Wednesday November 02, 2011 @05:23PM (#3188998)
Point your Time Machine backups at a NAS that's using ZFS with block-level deduplication.
Re:I swapped my MacBook for an iPad+Linode by xutopia on Wednesday November 02, 2011 @11:11AM (#3187105)
What's wrong with a remote branch you push to and then merge back into master afterwards?
Re:I swapped my MacBook for an iPad+Linode by jerf on Wednesday November 02, 2011 @11:25AM (#3187187)
Was my second sentence really that incomprehensible?
Re:I swapped my MacBook for an iPad+Linode by j45 on Wednesday November 02, 2011 @10:49AM (#3186973)
Thanks for sharing. Did you consider switching to a smaller laptop like a Macbook Air / Netbook?
Re:I swapped my MacBook for an iPad+Linode by moconnor on Wednesday November 02, 2011 @10:55AM (#3187003)
No, I wanted to try something radical and crazy and new. Frankly, I expected to be back on my MacBook by now. This has been as much a surprise to me as anyone!
Re:I swapped my MacBook for an iPad+Linode by j45 on Wednesday November 02, 2011 @11:22AM (#3187169)
I tried out an iPad app called Koder, it was nice but still lacked some things.

Your post has got me wondering about Vim again.. :) Making the switch to Sublime Text has got me appreciating a more shell-like interface for some things.

Have you ever found yourself wanting to code and not have an internet connection? I think that's a pretty rare scenario, I'm rarely offline.

Re:I swapped my MacBook for an iPad+Linode by moconnor on Wednesday November 02, 2011 @11:40AM (#3187280)
I haven't wanted to code offline for months. Maybe if I flew for more than two hours I'd miss it. Even the trains have wifi in Germany.

The few times I have wanted to code offline, I've also wanted to look something up >.<

Re:I swapped my MacBook for an iPad+Linode by j45 on Thursday November 03, 2011 @12:12PM (#3192395)
Haha, that's really true. I rarely code offline, maybe it's just another umbilical cord that we should be examining.

Between having tethering and generally ubiquitous tethering, we should be good.

I think I want to try getting into VIM again. Is there a good resource site you like, where I can find a decent guide and some pointers on where to find some language dictionaries? Totally off topic but I'd appreciate it.

Re:I swapped my MacBook for an iPad+Linode by danneu on Friday November 04, 2011 @02:14PM (#3197109)
I recommend just running "vimtutor" in terminal once you've installed Vim. It's the best introduction. Far better than the online tutorials that sometimes pop up on HN.

Once I got the basics down (15 minutes in vimtutor), I noticed enough productivity gains to use it immediately for note taking and scripting. Then I just decided to jump in and use it for a real project. I learn new hotkeys, plugins, and config tricks every week and I just feel my productivity inch its way up and up.

Re:I swapped my MacBook for an iPad+Linode by mdonahoe on Thursday November 03, 2011 @01:36AM (#3190467)
Vim on my 11" Air is excellent. SSD is nice and fast, and I wonder if the total weight is less than the ipad+bluetooth keyboard.
Re:I swapped my MacBook for an iPad+Linode by jarek on Thursday November 03, 2011 @10:51AM (#3192009)
Nope, Ipad: 601 g (613 g for 3G), 11" Macbook Air: 1080 g, I was unable to find the keyboard's weight but it can't be 400 g.
Re:I swapped my MacBook for an iPad+Linode by robgough on Thursday November 03, 2011 @12:54PM (#3192596)
According to Amazon the keyboard weight is 522g.

http://www.amazon.co.uk/Apple-MB167B-A-Wireless-Keyboard/dp/...

Making the Macbook Air 11" the lighter option.

Re:I swapped my MacBook for an iPad+Linode by jarek on Thursday November 03, 2011 @01:02PM (#3192628)
That is the boxed weight for shipping.

I have the wireless keyboard (the older three-AA revision) and it's comparatively lighter than my 7" Tab, which is 380 g.

edit: Charlie Stross says 325 g for a four-AA revision in http://www.antipope.org/charlie/blog-static/2010/05/ipad-wri.... Macworld says 323 g in http://www.macworld.com/article/150600/2010/04/ipadwhichkeyb...

Re:I swapped my MacBook for an iPad+Linode by epo on Friday November 04, 2011 @05:53AM (#3195494)
My Apple wireless keyboard (model A1314) has 2 AAs, have there really been that many revisions?
Re:I swapped my MacBook for an iPad+Linode by jarek on Friday November 04, 2011 @01:12PM (#3196846)
I don't personally recall the four-AA revision. Wikipedia links to Apple's press release http://www.apple.com/pr/library/2003/09/16Apple-Introduces-W... which confirms four AAs.

My keyboard, bought in November 2008, part number MB167LL/A, definitely takes three.

Current revision available on Apple's website is MC184LL/B and that one is well known to only require two.

Re:I swapped my MacBook for an iPad+Linode by scott_s on Wednesday November 02, 2011 @10:36AM (#3186883)
It's more difficult to setup, but it's wonderful to have a dedicated development cluster. Put everyone's home directory on a dedicated file server, which uses NSF to be global to the cluster. Then you can do automated backups on the file server - hourly, nightly, monthly, whatever. There are file server appliances which are configured for this sort of thing.

When you do this, much less important data is stored locally, on developer's actual machines.