OS X terminal tip: get total bytes in all files in this folder

So, you want to know exactly how many bytes are in all of the files under a given directory, and you only have a Mac OS X terminal to work with?

It should be easy, but it’s not.

Here, I’ll save you some time:

find . -type f -not -iname .ds_store -print0 | xargs -0 stat -f %z | awk '{s+=$1} END {print s}'

Of course I’m assuming you don’t want any of those nasty .DS_Store files to be counted.

“Apple’s Magic Is In The Turn, Not The Prestige”

“Apple’s Magic Is In The Turn, Not The Prestige”

A great piece on why people are starting to find Apple’s product launches boring, and why Apple doesn’t care.

Here’s a choice nugget:

Look at the mobile landscape right now. There are two companies that are making any money in smartphones: Apple and Samsung. Or, put another way: Apple and the company Apple just won a billion dollar-plus judgement against for copying their smartphone designs.

How to love Apple too much

How to love Apple too much

You could argue that running a blog/forum called “Mac Rumors” is a bit excessive, but micro-analysing the banners Apple have hoisted for their upcoming launch? Seriously?

I mean, I’m as pumped as the next Apple fanboi for this week’s product launch/es (or, more specifically, how my school might be able to do cooler stuff with better tech), but surely it’s not that hard to know when you’ve crossed the “not quite sane” threshold with the guesswork.

I enjoyed Stephen Hackett’s take:

Tim Cook designed the graphics after taking some LSD he found in Steve’s office.

Let’s all chillax, eh :)