Live data from Hacker News

Hacker's Guide to Setting Up Your Mac

lapwinglabs.com

181–190 of 267 posts

Re: Hacker's Guide to Setting Up Your Mac

#182
post #106

Earlier quoted context omitted.

Can I perhaps ask why? Is it a trust issue that you don't like accepting a prebuilt binary from some random on the internet?

I just enjoy the control.

That''s quite witty! Do you also make all of your bread from the base ingredients too? :-)

Re: Hacker's Guide to Setting Up Your Mac

#183
post #43

Earlier quoted context omitted.

It's slow and it has to build the packages most of the time. pkgin will install a precompiled packages very quickly. It is also a whole C program and Homebrew is just ruby scripts.

What makes C better than ruby?

I'm just guessing here but perhaps runtime speed? (In this context, that is)

Re: Hacker's Guide to Setting Up Your Mac

#184

Earlier quoted context omitted.

Just like PC's, Macs have entered the world of, what I call, "car guys." Car guys are always fiddling with things for a tiny performance or perceived security boosts without really thinking things through. In the Windows world you'll hear them tell you how you must disable the UAC, must install registry 'cleaners', must use $av_vendor_x because $av_vendor_y sucks, fiddle with some obscure registry change, use drivers…

I recall that this sort of stuff was very prevalent on the Mac before OS X.

It's always been prevelant everywhere.

The biggest one in Mac OS X history I remember is haxies:

http://en.wikipedia.org/wiki/Haxie

"Haxies are a source of controversy among Macintosh software developers. Because haxies make changes to Mac OS X that Apple did not intend, they complicate the operating environment for other developers' applications, and are frequently the cause of system instability and unexpected crashes.[1] Applications by Bare Bones software display a dialog after crashing (or are force quit by the user) if haxies are detected on the system. The Omni Group routinely asks users to remove Application Enhancer modules before contacting customer support for help with their applications.

According to a post by an Apple employee on an Apple mailing list, Apple ignores all crash reports submitted by users if they show that APE is installed."

http://daringfireball.net/2007/10/blue_in_the_face

"Reports abound regarding users suffering from a “blue screen” after upgrading to Leopard: they upgrade, reboot, and get stuck at a blank blue screen.

But, as far as I can tell, there is no mystery involved. There is one and only one known cause for this problem: old versions of Unsanity’s Application Enhancer, a.k.a. APE. Versions 2.0.2 and 2.0.3 of APE are apparently inert but harmless on Leopard. But at least some, if not all, versions of APE preceding version 2.0.2 are incompatible, and will render the system unbootable if left in place during an upgrade."

Re: Hacker's Guide to Setting Up Your Mac

#185
post #103

> allowing you to setup a new Mac in a matter of hours, not days Wow, it takes days for people to set up their Macs? I would be interested in something that would make this take minutes, not hours. It's already pretty easy to setup a Mac for development in a few hours.

I recently received a new MBPr from a work laptop and I would totally agree it takes days to setup from scratch. * It takes hours to download Xcode * It takes hours to download OSX Updates * Setting up Homebrew, Zsh, Vim, Browsers, GitHub, Dropbox, Mail, Rbenv, Rubies, Cloning work repos * Getting those other smaller things you were tinkering with, Z, Go Everyones dev setup is different. So I'd agree it takes days to…

But the speed to download xcode + updates is related to your Internet speed, surely? Nobody says Linux takes days to set up and then reference their Internet connection...?

I've got fibre, so perhaps I'm biased. Also, I avoid Homebrew/MacPorts etc. because the apps don't fit in with the window manager properly.

Re: Hacker's Guide to Setting Up Your Mac

#186

Earlier quoted context omitted.

Why is /usr/local bad advice?

Because /usr/local doesn't belong to homebrew and is not appropriate for homebrew to commandeer. MacPorts was originally written by the BSD team at Apple; if /usr/local was where a packaging system was supposed to stuff itself on OS X, they would have used it -- instead of /opt/local. The co-opting of /use/local breaks all kinds of stuff -- for instance, /usr/local/lib is in the default linker search path and can't b…

I disagree. / is where the stuff needed for single-user mode gets installed. /usr is where the OS's userland stuff gets installed. On Linux systems this includes everything that you get from your package manager, because this is considered to be part of your system. /usr/local is wher you install your own packages. For example, if I'm installing something from source, that's where I'm going to install it. Or if I'm building my own project, I would also install it there.

On a Mac, there is no system-blessed pacakage manager - the official packages are pre-installed on your Mac and only change when you get an OS update. They tend to be installed in /Library or ~/Library. All of the add-on package managers therefore play a role much closer to that of hand-installed source. It's logical that they install to /ur/local. In particular, one of my main use case for package managers is when I want to try out a package that has a whole bunch of dependencies. I might want to compile the package that interests me by hand, as I need to tweak the config, but I don't want to have to do the configure-make-make install dance for the 30 packages that it has as dependencies. That's where homebrew / MacPorts comes into the picture, they save me that work. But they should be installed into the same hierachy as the package that does interest me, as they are at the same level of "officialness".

One last thing. I know Fedora, Gentoo and MacOSX fairly well, and I have also worked a fair bit on a hand-rolled linux distribution. None of them ever had /usr/local/lib in their LD_LIBRARY_PATH by default, I've always had to configure that in my .bash_profile. This is exactly what you would expect, by default the directory should be empty, so why add it to the default LD_LIBRARY_PATH, that doesn't make any sense.

Re: Hacker's Guide to Setting Up Your Mac

#187
post #178

Earlier quoted context omitted.

You might also be interested in Witch [0] which lets you switch between windows of different apps as opposed to only switching between single apps or between windows of a single app. [0] http://manytricks.com/witch/

I love Witch, but after upgrading to Mavericks I found that it was weirdly sluggish and tended to overshoot what I was aiming at. It also doesn't function with a lot of fullscreen apps (primarily games) and iBooks does ridiculous stuff with its windows that no app switcher seems to know how to work around. All that said, I'm still glad I bought it and I end up switching back and forth to the default app switcher beca…

For what it's worth, I haven't had that slowdown experience neither on Mavericks nor on Yosemite. Given I for example don't use full screen at all.

Re: Hacker's Guide to Setting Up Your Mac

#188

I've been a long time Mac user and I think that software setup and updates has always been a bit clunky. Apple tries to make it easy with Software Update. You can always Homebrew to get missing pieces. For me, I use CentOS for servers and I really wish that OS X had 'yum' ( https://www.centos.org/docs/5/html/yum/ ) It feels very easy for me to install, update, remove, etc

This is very true, and I too happily go to Linux land for servers. But for the typical target market of Apple devices (this is debatable), most people are happier with the download / open DMG / drag to applications scenario instead of typing, no?

Re: Hacker's Guide to Setting Up Your Mac

#189
post #134

I've built a less "hacker" way to automate the install of a bunch of common apps at http://getmacapps.com Aiming for something you can easily use quickly, or send to less techy friends or parents to run.

Looks good but is opening a Terminal less techy for my mum? I would argue not. She wouldn't know what a terminal was, other than perhaps something at an airport?

No offence meant by the way. I don't know of an easier way to get the required command to run, so apologies for no suggestions on how to improve it.

Re: Hacker's Guide to Setting Up Your Mac

#190
post #62

Earlier quoted context omitted.

I get the joke, and it was the first thing that popped in my head too. But in all seriousness, OS X is Unix as well, and can do pretty much any Unix based task that GNU/Linux can. Sometimes the best tool for the job is the one you already own.

Have the Mac folks got focus-follows-mouse yet? http://steve-yegge.blogspot.it/2008/04/settling-osx-focus-fo... In general, I don't think I'd ever give up Linux. It's a hacker's OS, by and for hackers. Being able to pick apart and fiddle with any portion of, from the kernel on up, is a wonderful, empowering feeling, and something that has proved useful both personally and professionally over the years.

You can enable it for the Terminal only.

As the other commenter stated, it's an X11 thing. Despite the prevalence of applications that run under X11 and the XQuartz availability, the native UI under OSX is Quartz which handles everything under OpenGL I believe....?

Post reply on HN