News for hackers. Stuff that matters.

jacknagel

Re:JIRA and text patches are anti-open-source on Tuesday February 28, 2012 @10:38PM (#3646307)
>But then I found that that email address is shared to the whole world in git commit summary!

If you're talking about the email address in the commit itself, that's part of the commit object and not anything GitHub does behind your back. If you publish the commit anywhere, not just GitHub, the email address has become public knowledge.

Re:Mercurial vs Git: Why Mercurial? on Thursday February 23, 2012 @05:07PM (#3627016)
You might find `git add -N` ("--intent-to-add") useful. It's an extra step, yes, but it allows you to e.g. view the content of new files with `git diff` without actually staging the content for commit, and will allow you to stage that file during `git add -p`.
Re:BASH autocomplete for SSH on Saturday January 21, 2012 @07:01PM (#3495098)
Sorry, should be

    HISTIGNORE=ssh*
(the pattern has to match the entire line.)

Like many shell variables, this one is a colon-separated list.

Re:BASH autocomplete for SSH on Saturday January 21, 2012 @12:02PM (#3493945)
HISTIGNORE=ssh

It won't strip existing lines, but will prevent them from being recorded in the future.

Re:Git 1.7.8 changes for the everyday developer on Tuesday December 13, 2011 @04:05PM (#3349273)
IIRC (I read the git mailing list) there was a lot of arguing about whether generation numbers should be in the commit headers or stored in separate cache, and then a different fix went in to speed up "tag --contains" and the discussion was pretty much abandoned.
Re:TextMate 2 (Public) Alpha on Tuesday December 13, 2011 @02:34PM (#3348850)
Does anyone know how to adjust the line height?

In 1.x I could do

    defaults write com.macromates.TextMate OakLineHeightDelta n
but 2.x doesn't respect that (or com.macromates.Avian OakLineHeightDelta).
Re:Linus: please write good git commit messages on Sunday November 27, 2011 @01:26PM (#3282968)
git-log and friends indent the commit message by four spaces on the left, so wrapping at ~72 chars gives it symmetry on 80 column terminals. By wrapping it yourself, you decide where line breaks should be, not the presentation machinery.

The optimal human-readable line length is something like 66 characters. It's much easier to quickly scan a log message that's 72 characters wide vs. one that is 200 characters wide.

Re:Linus: please write good git commit messages on Sunday November 27, 2011 @12:42PM (#3282855)
It's hard to understate the importance of this.

GitHub's online editor has a default commit message along the lines of "Edited path/to/file", and I see a lot of pull requests with that message, and nothing else. That's about the most useless message possible, since it adds no information that isn't already implicit in the commit. It would be better to leave it blank and force users to at least write _something_.

Actually if you follow the thread(s) relating to this, a less invasive change to speed up "git tag --contains" was adopted (see git.git@ffc4b8012), so "soon" probably isn't the right word.
Awesome.
Just for kicks, here's a (terribly ugly) pipeline that will display the contents of .nls and `ls`, with duplicates removed:

ls | cat .nls - | column -t -s: | sort -r | perl -ane 'print unless $x{$F[0]}++'

and then obviously just echo "dirname: description" >> .nls to append to the file.

I would be interested in seeing a better pipeline, one that doesn't need perl/awk/ruby/what have you to remove the duplicates correctly.

Re:Lion is Apple Vista on Thursday July 28, 2011 @12:18PM (#2817508)
So the author has reached this conclusion after _several hours_ of using Lion?
Re:MacPorts 2.0 with Lion support now available on Monday July 25, 2011 @09:01AM (#2802407)
Yes, in most cases, but most packages have minimal dependencies due to Homebrew's "use what OS X provides" philosophy, i.e., the XCode toolchain (Homebrew doesn't even have a package for GCC).
Re:Xcode 4.1 now available free from the Mac App Store on Wednesday July 20, 2011 @01:33PM (#2786613)
FWIW, Homebrew only needs gcc 4.0 for a select few formula. The vast majority of them build with more modern compilers (gcc 4.2, llvm-gcc, and clang are supported; and I use a non-Apple gcc 4.6 to compile things occasionally).
Re:MacOS X is an Unsuitable Platform for Web Development on Tuesday June 07, 2011 @01:35AM (#2628043)
Troll. Nothing to see here.

Edit:

> I am simply trying to develop an application, is there a good reason why I am compiling libxml2 and all of its dependencies?

I'm pretty sure that libxml2 has no dependencies other than the standard C library.

Re:Dear Programmers: Stop chewing with your mouth open. on Tuesday May 03, 2011 @05:28PM (#2511735)
Agreed--there is way too much of this. A member of my family has Asperger's, is on medication and regularly sees a psychiatrist. It's insulting to him and everyone who has a clinical diagnosis when people throw the term around like that.
Re:Tweetbot on Thursday April 14, 2011 @04:34AM (#2446093)
Twitterific has Twitter in the name, and it's been around for ages.
Re:OS X Isn't for Developers on Thursday March 10, 2011 @07:09PM (#2311402)
It's also possible that Xcode 4 is only on the App Store because Lion is going to be on the App Store, and people who buy a physical copy of Lion will get Xcode 4 on the disc.
Re:Pixelfari: a pixely, 8-bitty version of Safari from Neven Mrgan on Wednesday February 16, 2011 @09:16PM (#2229390)
I have a 2006 Core Duo MBP also. Running file on the binary produces this:

Pixelfari: Mach-O 64-bit executable x86_64

Guess I'll have to find a 64-bit Mac so that I can play with it.