Docker ❤️ Parallels ❤️ OS X (El-Capitan)

Tags

, , ,

Getting started with Docker + Parallels on OS X (using Homebrew)

Want to use Docker on OS X? At the moment, the OS X kernel does not directly support containers like Docker or OpenVZ. So you have to run a VM with docker installed. You then use the Docker CLI to interact with the Docker (daemon) running on the VM. The whole process is actually very easy to setup now that Docker Machine supports the Parallels driver.

Assumptions: You already have Parallels (11, Business or Pro Edition) and Homebrew installed.

$> brew update  # need to brew with a recent version
$> brew upgrade
$> brew install docker docker-machine docker-machine-parallels
… grab some coffee…
$> docker-machine create -d parallels dev1
$> eval `docker-machine env dev1`
$> docker run hello-world

All done!

You are now ready to use Docker, Docker Composer and even Docker Swarm.

Scoring my iPhone rumour round-up

John Gruber (Daring Fireball): iPhone 6s (or whatever it’s called) will have the biggest jump in camera tech ever (perhaps dual-lens based on technology acquired from Linx)

  • Check, camera is now 12MP, records 4K, better low-light performance. Not dual-lens though.

Mark Gurman (9to5Mac): Same exterior (perhaps 0.13mm deeper, which is too small to be noticeable). Updated interior with fewer chips. Rose Gold as an option. Difference is size could be due to inclusion of Force Touch (not sure at all, just reporting feedback and comments on the article itself). Will have faster LTE (updated Qualcomm chip).
-(http://9to5mac.com/2015/07/03/iphone-6s-photos-nfc-storage-chips/)

  • Check, iPhone 6s is a infinitesimal bit larger, has fewer chips, rose-gold option, faster LTE, substantially improved CPU

WSJ: Apple manufacturing a record number of iPhones (90mn). Same sizes.
-(http://www.wsj.com/articles/apple-preparing-record-number-of-new-iphones-1436367371)

  • Seems to be holding up, esp. when looking at Apple’s guidance for the holiday quarter.

iPhone (vNext) Rumours

John Gruber (Daring Fireball): iPhone 6s (or whatever it’s called) will have the biggest jump in camera tech ever (perhaps dual-lens based on technology acquired from Linx)
-(http://daringfireball.net/thetalkshow/2014/11/15/ep-100)

Mark Gurman (9to5Mac): Same exterior (perhaps 0.13mm deeper, which is too small to be noticeable). Updated interior with fewer chips. Rose Gold as an option. Difference is size could be due to inclusion of Force Touch (not sure at all, just reporting feedback and comments on the article itself). Will have faster LTE (updated Qualcomm chip).
-(http://9to5mac.com/2015/07/03/iphone-6s-photos-nfc-storage-chips/)

WSJ: Apple manufacturing a record number of iPhones (90mn). Same sizes.
-(http://www.wsj.com/articles/apple-preparing-record-number-of-new-iphones-1436367371)

Will have iOS9 (master of the obvious, yours truly).

Twitter’s potential

Tags

,

$TWTR has not been doing so well off late, but has immense potential.

Twitter is primarily an interest graph. I tweet about things I am interested in (and do so very publicly). I follow and am followed by people with interests similar to mine.

People reading my twitter feed are able to figure out what topics interest me. For example every time I tweet about Apple’s terrible iCloud Photo Sync, someone tells me about Dropbox Carousel and so on. I crib about how expensive the iMac is (mainly because I really really want one) and Microsoft fanboi’s see this as something to be countered.

Why are algorithms not able to do this for me? Do you need the full firehose to be able to do this? I should be able to target ads to people who are interested in a particular topic. What is a topic? What is my view on that topic? This is where I think some AI / clever algos are important.

This makes me think Twitter’s has tremendous potential. Potential that may not be fully appreciated and therefore may not be fully valued.

#iptables forward an IP address to another

Using #iptables to forward a whole IP address to another (server)

iptables -A PREROUTING -t nat -d $src -j DNAT --to $dst
iptables -A POSTROUTING -t nat -d $dst -j MASQUERADE

Connections from anywhere to $src will get forwarded to $dst (though source IP will be changed to that of eth0 or default outbound device). Useful when moving servers; keeps the old address alive for a bit. Though we lose ‘real’ source address.

For example, if forwarding IP address used by an SMTP server, all email will appear to come from $eth0. If $eth0 (could be the same as $src, but not guaranteed) is privileged, in the sense that it is allowed to relay, then anyone will be able to relay through the SMTP server. But works in a pinch, while DNS changes are propogating through the ‘net.

A somewhat more concrete example. Say you have IP address 1.2.3.4; if you do

iptables -A PREROUTING -t nat -d 1.2.3.4 -j DNAT --to 8.8.8.8
iptables -A POSTROUTING -t nat -d 8.8.8.8 -s 1.2.3.4 -j MASQUERADE

1.2.3.4 is now forwards to Google’s Public DNS Server. You can now use 1.2.3.4 as if it were 8.8.8.8.

Two Theories of Disruption

Tags

, , , ,

#Gyan

There are two ways to think about the @claychristensen theory of disruption. New market disruption and low end disruption. @monkbent believes in the first but not the second.

#1 New market disruption: competing on different attributes than the ones held dear by the incumbent’s best customers. Example windows versus iOS.

“This remains an incredibly elegant and powerful theory, and I fully subscribe to it. We are, in fact, seeing it in action with Windows – the incumbent – and the iPad and other tablets; new technology that is inferior on attributes that matter to Windows’ best customers, but superior on other attributes that matter to many others. (My belief in this theory is why I have been, to my own personal surprise, more sympathetic to Steve Ballmer – here and here – than most).” — @monkbent

 

#2 Low end disruption: i.e. integrated versus modular.

In a vertical – proprietary tech is usually the best in the beginning in but over time modular becomes good enough.

Once an industry moves to modular – money moves to whoever controls the performance defining subsystem.

“…the move to open modular architecture just happens over and over again. It happened in the personal computer. Although it didn’t kill Apple’s computer business, it relegated Apple to the status of a minor player. The iPod is a proprietary integrated product, although that is becoming quite modular. You can download your music from Amazon as easily as you can from iTunes. You also see modularity organized around the Android operating system that is growing much faster than the iPhone. So I worry that modularity will do its work on Apple.”@claychristensen

Since Apple has been a consistent outlier – it’s not being disrupted by modular forces, people question the theory. One explanation that I find appealing is this: It’s who the buyer is. Modularization happens when the buyers are enterprises and the users are not the purchasers. In such a market, the value of ‘user experience’ is greatly diminished. On the other hand, in markets where the consumer is the user/buyer ‘UX’ rules. For examples mobile phones and BYOD. In such a market, there is no limit to quality of UX and consequently the integrated solution is much better than modular alternatives (for much much longer than otherwise? forever? IDK).

Another explanation for Apple is that it keeps changing the goal posts. It’s not just the components on the phone, but also the ecosystem. And then how that ties in with your desktop / laptop / car / house (all also made by Apple). So the integrated system is a much wider system and it will take longer for modularity to do its work. Note that this also appears to be Xiaomi’s strategy. Born in intense competition as it is…

Apple shipped 3x as much battery capacity as Tesla in 2014

Tags

, , ,

So, everyone’s talking about the possibility of an Apple iCar; it looks certain that it’s got something to do with batteries (Apple’s being sued for recruiting scientists from A123) and arch-rival (wannabe arch-rival?) Samsung just bought out a company that makes automobile batteries…

So I was thinking – who sells more batteries today? Apple or Tesla? And because it’s not quite Apples to Apples I’ll try comparing battery-capacity.

Apple Battery Capacity 2014:

  • approx. 180m iPhones; the iPhone 6 has a 7.9 watt-hour battery, while the 6+ has 11 watt-hours. Presumably a decent chunk of the 180m phones were older 5, 5s, 4 etc. So let’s say the average capacity per iPhone is 8 watt-hours. Total: 180m * 8 = 1440 million watt-hours (i.e. 1.44 GWh aka Giga-Watt-hours)
  • approx: 60m iPads; the iPad Air 2 has a 27.6 Wh battery, while the Air (1) had a 32.9 Wh battery. Let’s hand-wave and say 28 Wh average. Total: 60m * 28 = 1680 million watt-hours (1.68 GWh)
  • approx: 19m MacBooks; MacBook Air’s have between 38 & 54 Wh, Pro’s 63.5 to 91 Wh. Let’s say 54 Wh on avg. Total: 19m * 54 Wh = (1.02 GWh)

Apple also sold a quite a few other devices with batteries, remotes, iPods, Beats headphones, Wireless keyboards and watt-have-you (haha), but’s let’s ignore it for now.

 

So Apple shipped 4 GWh (1.44+1.68+1.02=4.14 GWh) of battery capacity last year alone. That’s about $2 billion (cost) assuming Apple has the same cost as Tesla for battery capacity. I’d argue that it’s lower, but who knows.

 

“Tesla Motors may have the lowest rates for electric car batteries; the estimated battery costs for Tesla Motors is around US$200 dollars per kWh.” — From <http://en.wikipedia.org/wiki/Tesla_Motors>

 

Now Tesla shipped 17,300 Model S cars (http://insideevs.com/monthly-plug-in-sales-scorecard/). They can have a 65kWh or 85kWh battery-pack. Say 75kWh on average. Total: 17.3k * 75kWH = 1.3GWh.

 

So there you have it. Apple shipped 3x as much battery capacity as Tesla in 2014.

 

Some more fun napkin math (let me know if it’s all wrong…): Apple’s batteries pack 25% more energy per gram than Tesla’ (so for the same weight, using Apple battery tech in Tesla’s could improve range by 25%!)

 

The iPhone 5s battery is 26g -> 7Wh 26g (26/7 = 3.7 g/Wh)

(http://www.ebay.com/itm/Original-1560mAh-3-8V-Li-ion-Internal-Replacement-Battery-for-iPhone-5C-5S-/201227137579?pt=LH_DefaultDomain_2&hash=item2eda12722b)

 

Tesla cells are : 10Wh 45g -> (45/10 = 4.5 g/Wh)

(http://industrial.panasonic.com/lecs/www-data/pdf2/ACI4000/ACI4000CE17.pdf)

 

Apple’s batteries probably charge faster too (assuming that you can parallel charge the 1200 or so MacBook Air batteries that make up a single Tesla sized 65kWh pack).

 

Also interesting: Batteries like memory are super-high-margin. Like 60-70% gross.

 

Disclosure: I’m long Apple (+ve net delta) and have no position in Tesla.

$MU

Just putting this out here:

Recommended $MU on Oct 20 @ $29.69 (right here on this blog)

It’s up 11.5% to $33.08 since then (10 days).

image

I’m going to be replacing my stock with some PUTs. Perhaps 1/4th my position. +ve delta and theta.

And it turns out the scuttlebutt was right, the iPad Air 2 has 2Gb of RAM. (And a unexpected, to me at least, 3rd core)

Can anyone think of a reason why DRAM demand would fall from here on?

Follow

Get every new post delivered to your Inbox.

Join 288 other followers