Making Safari Usable

One of the things that Activity Monitor’s “Energy Impact” fields have made obvious is that Safari 7.0 is significantly more energy efficient than both Chrome 30.0 or Firefox 27a1.

After regular usage, Safari has an Average Energy Impact of about 4-5 5-6 vs Chrome and Firefox hovering at about 8-9. For comparison: Airmail averages about 3, Spotlight is about 2, and Dropbox 0.75. Playing a 720p H.264 MOV in Quicktime Player is about a 9, and playing a 720 H.264 MKV in VLC is 20+.

Recently I’ve been migrating away from Chrome and back to Firefox, as the former has gotten more sluggish, and the latter has gotten a lot faster (Chrome is still my preferred browser for dev and the only option for SSBs), which actually has left me in a good place to try switching to Safari, as I’ve pared down my “necessary” plugins:

  • 1Password 4 – 1Password 4 is a huge improvement and the new way it works w/ browsers (as a simple frontend that interacts w/ a menubar app) makes all the browsers extensions work equally well (previously, the Firefox plugin would constantly freak out). With all the recent hacks, having unique passwords is more important than ever and I can wholeheartedly recommend 1Password.
  • Adblock – Safari only supports Adblock, not Adblock Plus but they both work well enough
  • Lazarus – if you’ve ever lost something you typed into a text box due to a browser close/crash you’ll want this. Available for Chrome, Firefox, and Safari
  • Evernote Clipper – I use Evernote for storing everything. Chrome’s extension is newer/fancier (and has some unique features) while Safari and Firefox are both an older version (but serviceable). I sort of like how the older version works so I’m not really complaining, although it is a bit curious.
  • Pocket – I’ve been using ReadItLater/Pocket for years. All the plugins add a “save to pocket” to the context menu, which is pretty much all I want. The Chrome version is a bit nicer since it has a colored icon in the context menu that actually makes it noticeably easier to us.

I also am using QuickStyle for Safari, which is like Stylish for Firefox or Stylebot for Chrome, but that’s more of a nice-to-have.

The most annoying thing I’ve found so far with using Safari, and probably the biggest reason I’ve never stuck with it, is that CMD 1-9 are mapped to the bookmarks bar and not switching tabs. It’s confounding (especially as I hide and don’t even use the bookmarks bar).

The solution for this is a SIMBL plugin called SafariTabSwitching – there is an installer on the Github page so installing is a snap, and the latest version is updated for Mavericks and is working great.

There are still a couple other niggles (only a single tab unclose), tab-close focusing is different, both Chrome and Firefox have a very useful contextual status bar (ie, when you mouseover a link, the URL shows up in the bottom left), so we’ll have to see if switching to Safari gives enough battery life to make it worth it. I’ll probably be updating this in a week or two w/ how it turns out.

Acer C720 Chromebook: Initial Thoughts

Last year I ordered a Samsung ARM Chromebook to test out as a developer device. The appeal would be a portable low/minimal maintenance low-power device I could use mainly for terminal/browsing work (I tried that unsuccessfully a couple years ago with a Toshiba AC100).

Unfortunately, it turned out the Samsung had poor battery life and a worse screen. Making it useful (a shell with vim and git) required dev mode (CTRL-D every time booting) and either installing chrubuntu, which had power/input issues, or a then very immature crouton (it’s now much better). The Chromebook didn’t do anything better than my MBA and had some significant drawbacks for development. The screen/performance also was a hinderance for general browsing/reading (my iPad was much better for that). A coworker eventually took the Chromebook home and found it useful/pleasant enough for that purpose though, so YMMV.

Given that experience, why buy another Chromebook? Well, it turns out one of the more annoying features, the secure booting, is actually fantastic when you’re worried about infosec when traveling. For an upcoming trip, I wanted a bulletproof system to be able to do basic browsing/web tasks and for copying (and maybe editing?) photos without worry.

There are a few new Chromebooks coming out, and I was looking at the HP Chromebook 11, which has a slick design, a great IPS screen and neat features like micro-USB charging, but I ended up going w/ the C720 due to the much better processor (Haswell Celeron w/ 4GB RAM vs Exynos 5250 w/ 2GB RAM), SD card reader, USB 3.0, and most significantly, the much better battery life (9h vs 5h).

It’s a shame that these ARM Chromebooks have such poor battery life when when compared to their tablet brethren using the same SoCs, but what can you do.

It’s still early going, but here’s what I can report:

  • The C720 is definitely much peppier, and browsing (scrolling, multiple tabs, YouTube) is smooth where w/ the Samsung ARM Chromebook, it was not, so that was a good call
  • Battery-life seems to be living up to its promise. I haven’t used it enough to run it down, even while installing software. It sleeps and wakes up well
  • The screen, an 11.6″ 1366×768 matte TN screen isn’t terrible (it’s brighter and a bit better to my eyes than the Samsung ARM Chromebook), but the blacks/contrast are mediocre at best and using the default black terminal and white web pages isn’t very comfortable, although w/ some tweaking I’m sure it’ll be workable
  • There’s now a file browser which means that I can copy photos from SD card to a USB 3.0 external drive, but I haven’t explored actually doing photo editing much. I doubt there’s anything with built in RAW support though, so I believe I’ll end up having to run in developer mode to install LibRaw, digiKam, or RawTherapee.
  • As mentioned, crouton is much improved, although I still wouldn’t pick a Chromebook as my first choice for development. Working in a Secure Shell window, I’m still missing basic stuff like having a decent clipboard, although the fix may be to succumb to running a full X/WM setup.
  • Although less secure in dev mode, you can still get some boot protection w/ verified boot with shell access. Just make sure that you have some good passwords for sudoing/your chroot. You might find reading the Chromium OS Security Overview to be worth reading. (In general, the design docs actually make for pretty interesting reading)
  • I’ve yet to setup my proxying/pac files, but you can see what I’m planning on my security plan page. (better safe than sorry)

Reference:

New Server

After just under 4 years on the same machine (827 days since last reboot!), my old server was finally being scheduled to be end-of-lifed by my ISP (NetDepot/GNAX who have been phenomenal – I’ve been hosting w/ them since moving off EV1/ThePlanet back in 2007).

This machine has definitely been lapped a few times – it’s an old C2Q Q9660 w/ 8GB of RAM with a 500GB boot drive and a 2TB storage drive, but it’s been solid, as has the network and support.

If you’re seeing this message that means that the DNS change should have propagated (hooray!). While NetDepot graciously offered to migrate me to a new machine for the same rate plan (a very reasonable $120/mo), I went ahead and have decided to dip my toes into the waters w/ OVH running one of their SP1 servers.

I am now paying $80/mo for a 4Q E3-1245v2 w/ 32GB RAM and 2x2TB SW RAID1 storage w/ a 200Mbps connection. The OVH NA data center is located in Quebec, Canada (OVH is a French ISP and their other 2 data centers are located in France) and seems pretty fast, and so far, service has been… well, responsive, if not entirely helpful (despite being one of the world’s largest ISPs (#4 right now), they have some weird gaps like no recurring billing).

Guess we’ll see how this goes.

OVH Notes:

  • Their servers come prerooted – you should comment/mv the /root/.ssh/authorized_keys2 file if that seems icky (documentation)
  • There’s also an rtm script that runs regularly via /etc/crontab, but that seems pretty harmless/useful.
  • Server setup via vague new server setup recipe – one day I’ll sit down and learn Ansible

Apple’s A7

I don’t spend as much time keeping track of consumer tech these days, but I stumbled on an interesting article on Apple’s new A7 that got me to dig a bit more:

While in the short-term there have been more last-minute leaks from components suppliers, and it may be a losing battle, it looks like Apple is attacking strategic leaks by increased vertical integration: building/buying a fab may only be the first step (keeping in minde that Apple has over $100B in offshore cash).

Plastic cases are one thing, but it’ll be interesting to see how secret Apple can keep its AppleTV and iWatch developments. I think it’s fair to expect the former may end up attacking the living room/XBone a lot more directly than past efforts, and the latter will have a pretty big personal sensing/informatics component. These are both things that are pretty untapped markets for Apple that would benefit from a 360 ecosystem.

iPhone 5s LTE Bands

As someone who does a fair amount of international travel, looking at the iPhone 5s’ LTE support of the different models is pretty interesting. The thing that popped out as possibly the biggest choice is the A1533 (T-Mobile unlocked version) vs the A1453 (Sprint). The A1533 supports Band 1-8, and 13, 17, 19, 20, and 25. The 1453 supports all of those and adds 18 and 26.

Based on the fact that you simply get MOAR bands and that its an option that’s available for me I initially was tending towards picking the 1453, however, looking at Wikipedia’s list of LTE networks, it turns out those additional bands are not so useful. 26 is only used by Sprint and KT in South Korea (KT also supports band 3 and 8), and 18 by au/KDDI in Japan.

Basically, not very compelling additions, so may not be worth the trouble. By comparison, the Nexus 5 will support band 2, 4, 5, 17, 25, 26, 41.

Why Automation Is Problematic

It’s Labor Day here in the US, and automation and its implications is something that again, has been weighing on my mind.

Here’s the short, to the point summary in two graphs:

Changes in Productivity and Hourly Compensation since 1948

Change in Productivity and Wages since 1979

To spell it out: the fundamental problem with automation is that when workers (lets call them the “proletariat”) are displaced by automation, they don’t see any of society’s productivity gains – those benefits are instead captured and concentrated by a smaller and smaller set of owners/capitalists (lets call them “bourgeoisie”).

Economic and technological logic is no doubt going to inexorably drive this displacement, but it’s not going to address the resulting social instability creating a massive and literally unsustainable underclass.

Related recent articles/discussion:

Syria Resolution in Congress

The Syrian civil war that’s left tens of thousands of civilians dead has been terrible and tragic, and Assad’s recent use of chemical weapons only compounds that. Remember, all this started during the Arab Spring in 2011 when Assad responded to protests by kidnapping, torturing and raping activists and their family members, including children. The fact that the international community can’t get its shit together in light of what’s been going on for over two years offers dim hopes for humanity’s future.

Unfortunately, I don’t see how symbolic “limited and narrow” unilateral military action by the US would help… anyone, really. That, btw is the general consensus, but I can’t even imagine it impacting Assad’s continued killing of civilians, conventionally or otherwise.

Coincidentally I received a canned response today from my Rep about the Amash amendment (she voted Yes). So I decided to write a followup w/ my thoughts about the Syria Resolution. Thought I might as well publish it while it’s in my clipboard:

Representative Bass,

I’m sure I won’t be the only one dropping a line about the Syria Resolution that President Obama sent to the Hill today, but just thought I’d give my 2 cents.

I think we can all agree that the use of chemical weapons (and the slaughter of tens of thousands over the past two years) in the Syrian civil war is terrible, however as some (Fallows of the Atlantic, et al) have noted, we knew about similar usage of chemical weapons in the Iran-Iraq war and did nothing (this was, if you recall, when Saddam Hussein was our good friend).

If the international community really does view use of chemical weapons against a nation’s own people as anathema/unacceptable, there should be a strong, multilateral, international response. That there isn’t saddens me a great deal, however, I can’t see how a unilateral military response, no matter how limited or broad would change that most basic fact.

That being said, let’s play this out… if we send out a “limited” missile strike against strategic targets, it’s unlikely to be anything but symbolic, except for the additional civilian
casualties – “collateral damage” except to those who are killed, and their families. What it won’t do, is stop Assad from continuing to kill.

But what if it’s successful in getting us more involved? As Obama so forcefully stated, he already believes that he has blanket AUMF, and would treat any YES vote as tacit agreement to escalate w/o restraint. In for a penny as they say…

We’ll only be more entangled in yet another war in the Middle East – one in which there is literally no winning end-game (as the likely replacements for the Assad regime would be even worse for both American and global interests. Over the past decade, we’ve had two wars of choice that have left us poorer in standing, treasure, and most importantly, in lives, both military and civilian and has also left us with a more dangerous Middle East and a world where we are less secure. I cannot imagine that engagement in Syria would end better (in all likelihood it’d be much worse, considering the conflicting interests of Iran, Russia, China, etc).

In the past, President Obama has shown no qualms about (embraced, really) abusing the unitary exercises of executive privilege that the Presidents have carved out over the past decades. That fight is for another day, but Obama’s decision to yield to Congress shows that he’s fully aware of what this commitment would mean and where it’ll lead.

Ignoring the politics of the situation, it seems clear that unilateral military action in Syria does not serve anyone’s best interests, and I hope you’ll side with the American people in doing the right thing and voting NO on the Syria Resolution.

Thank you,

Leonard Lin

Fixed the Glitch

I think this Hacker News back and forth (in response to new that the NSA will be cutting sysadmin staff by 90% to limit data access) cuts right to the heart of the matter.

zaroth:
But who will manage the systems that are managing the systems? I’m sure this will work out brilliantly for them when systems crash, or hackers start exfiltrating their data, and there’s no one left to analyze the logs and discover and fix the holes.
The problem at the NSA isn’t that there are too many sysadmins, although apparently that plays well with tech illiterate politicians. The problem is too many morally unconscionable programs which lead to a growing revulsion in the ranks.

Mr. Alexander defends his agency’s conduct and claims the press is distorting the facts. “No one has willfully or knowingly disobeyed the law or tried to invade your civil liberties or privacies,” he said. “There were no mistakes like that at all.” Except we know that even FISA says that’s not true, in a report so damning apparently even elected members of congress can’t read it.

I have news for you Keith, blanket collection of the “meta-data” of every call on Verizon’s network is ex vi termini, invasion of privacy and civil liberty. DEA’s SOD (Special Operations Division) handing off your clandestine intercepts to civilian law enforcement is just the latest, but not the last, sickening revelation. The leaks won’t stop until you stop, and I hope your hubris continues to blind you to how close the political tides are to turning against you. It seems to me that your ‘ends justify the means’ mentality conflicts with your sworn oath to uphold the Constitution, and I can only hope history will look back on this whole endeavor as a dark stain in American history, and view you like a McCarthy of our time. Machiavelli would be proud of you, sir.

rhizome:

The problem is too many morally unconscionable programs which lead to a growing revulsion in the ranks.

Au contraire, it’s extremely morally conscionable to people who see law enforcement as a noble profession empowered to rid the nation (and beyond) of people they see as the scum of the earth. These programs are run by people who, I can guarantee you, do not wake up in the morning wondering what morals and ethics they can ignore that day.
However.

“No one has willfully or knowingly disobeyed the law or tried to invade your civil liberties or privacies,” he said.

And he’s right. And that’s the problem: these things are likely not against the law. The law has both been perverted inch by inch and the agencies have been allowed to operate under looser legal interpretations than you and I receive for parking tickets. This means that to the degree that laws exist that permit their behavior (PATRIOT Act, FISAA), those who would constrain them to even the loose boundaries do not (and by all accounts refuse to) do so. This goes for the FISC as much as Dianne Feinstein and Eric Holder. This means they can say it’s legal for them to do pretty much whatever they want. So now what?

I wish I could agree with the zaroth and the optimists – the romantic view that as they squeeze tighter, as they transgress, actors of conscience will react or that as Assange posits, that authoritarian organizations will become less effective as the secrecy cost increases (PDF link to Assange’s 2006 essay State and Terrorist Conspiracies), however sadly I feel that this reduction in numbers will have quite the opposite effect.

While it’s easy (and satisfying) to decry the opposition as evil from my experience, the idea that no one (well most) people are not the villains of their own story seems to reflect reality much better (see also guardian organizations in particular are predisposed feel paternalistic. This is only magnified by a culture of hidden, hoarded knowledge, secrecy and elitism (“if you only knew what I knew”). Depending on your location on the libertarian/authoritarian political compass, your skin may be crawling a bit reading this description, but certainly those involved in this total surveillance view themselves as professional and honorable – their duty is to serve and protect those that (by design) don’t know any better.

However, there of course must be those within the organization that will have qualms and doubts. After all, history has shown again and again the inevitable progression of unchecked state power against its citizenry, especially when an organization can act in secrecy and with impunity. And of course there are those that, having been brought up with the belief in liberal democracy (you know, the Constitution, the Bill of Rights, the Federalist Papers) would have a very hard time indeed justifying secrecy and actions that would fall under what many would consider the very definition of tyranny. And of course, some of those individuals must also be concerned about what it means to society to have total surveillance, archived forever, and searchable instantly. This combination of the panopticon and the memex has never existed before and its existence (and now the public knowledge that it is controlled by a state actor w/ no meaningful oversight) and I suspect its impact and consequences has yet to be fully digested by society at large…

All this is a long way to say that there surely are those working at the NSA that have doubts – but as this continues to polarize, the ranks will only further close. Those that have the strongest doubts will leave or be forced out, but the Death Star is already fully operational, and there will be more than enough authoritarians, opportunistic, power-hungry, and just plain sociopathic boots to fill the ranks. And as those that would resist the trends towards aggregating more power and authority leave, so will the last remaining internal checks and balances (the external ones having disappeared long ago), leaving the organization more focused, in fact accelerating the slide towards… well, something that will no longer be much of a democratic republic in function, if not form.

Without drastic changes (full transparency, full oversight), this logic feels inescapable, inevitable. The truism about power and corruption seems apropos here.

That’s not to say that the issues of digital privacy and surveillance wouldn’t otherwise be a problem, that cat’s certainly out of the bag, but there’s a clear difference between the commerce vs the state (that centers on the monopoly on violence).

It’s also not to say that the society automatically becomes some sort of Grim Meathook (well, unless you’re poor in which case it already is, or if you decide to stand in the way of the Harkonnen fist). After all, in this new society, you capacity for autonomy will depend primarily on how innocuous/complicit you are within the system (also, being rich never hurts) – this, perhaps alarmingly, is not so different from how it’s always been.

OK, this is much longer than I was planning on, and has turned out to be a bit of a ramble that certainly lays out a lot of rope at least as far as my thoughts on political theory goes. I wish, that after quite a lot of thinking and processing, that I had some better conclusions, but … I don’t. Oh, here’s a catchy one:

Welcome to the future. Enjoy your stay.

205-217

The Amash-Conyers amendment to defund the NSA’s domestic surveillance programs failed to pass the House today. The White House made a statement prior to the vote that included this amazing sentiment:

This blunt approach is not the product of an informed, open, or deliberative process.

How whoever wrote that managed to do so without choking on the cognitive dissonance, I don’t know.

On the bright side, we’ll soon have a full record of where all our congressmen stand when confronted with, well, the worst attack of the Republic and the Constitution that I can think of in my lifetime.

James Madison is hailed as the “Father of the Constitution”, and was a key figure both in drafting the Constitution and the Bill of Rights. Sometimes he gets quoted on T-shirts. A prescient quote of his:

If Tyranny and Oppression come to this land, it will be in the guise of fighting a foreign enemy.

Senator Ron Wyden (D-OR), one of the few Senators on the Senate Intelligence Committee that has been privy to some of these programs (and one of the even fewer, Mark Udall (D-CO) is the only one I can think of, who seems to give a shit) recently also quoted Madison. His remarks on domestic surveillance and the PATRIOT Act are well worth the watch/listen. He ends with this:

At this point in the speech I would usually conclude with the quote from Ben Franklin about giving up liberty for security and not deserving either, but I thought a different founding father might be more fitting today. James Madison, the father of our constitution, said that the the accumulation of executive, judicial and legislative powers into the hands of any faction is the very definition of tyranny. He then went on to assure the nation that the Constitution protected us from that fate. So, my question to you is: by allowing the executive to secretly follow a secret interpretation of the law under the supervision of a secret, non-adversarial court and occasional secret congressional hearings, how close are we coming to James Madison’s “very definition of tyranny”? I believe we are allowing our country to drift a lot closer than we should, and if we don’t take this opportunity to change course now, we will all live to regret it.

Unfortunately, it seems too few perceive that secret laws, with secret interpretations by secret courts, enforced secretly, and kept secret with extreme prejudice coupled with an unchecked, massively increased/invasive security apparatus and unbounded total surveillance (saved forever) might be an existential threat to a free society.

Oh well.

UPDATE: Votes here:

2013 MBA Battery Life

I’ve been using an older (2011) 11″ MBA with very poor battery life (~2hrs?) and have been very much looking forward to upgrading to a Haswell MBA for quite a while.

TLDR: battery-life is much improved, however falls far short of the claimed 9 hours for my 11″ MBA. I get about 6hrs max (6hr 12min) and in regular usage, less.

The specific model I have is the top-of-the line MacBook Air “11-inch, Mid 2013” with a 1.7GHz Core i7 processor, 8GB RAM, and 512GB SSD. Here’s the iFixit teardown. Anandtech did a recent test comparing Core i5 to Core i7 battery life (the Core i7 is very slightly better under low workload, and is 13-18% worse under medium-heavy workload).

The battery is spec’d by Apple at 7.6V and 5100mAh – 38.75Wh, 8.08oz. The battery had a Cycle Count of 6, a Max Capacity of 5326mAh (4.4% above spec) and an initial voltage of 8.545V – that’s to say it’s in better-than-spec condition.

Display was set to 75% for testing with the keyboard backlight off, wifi on, screen sharing off, SSH on.

Background apps include: Dropbox, iStat Menu, Evernote Helper, MiniBatteryLogger, and memcached (64MB, not being used).

The 6hrs was spent almost entirely with light web browsing w/ relatively low CPU/disk/network usage. It’s too bad there isn’t anything like Android’s battery/activity tools built into OS X (I suppose you could script something to sample/aggregate activity but that’s sort of beyond the time I really want to spend on this since I can’t really do much w/ that data).

I used MiniBatteryLogger 1.8.5 for getting battery stats and for graphing. Also here’s some clips at the end from iStat Menu:

For those interested, here’s the raw battery data export.

UPDATE: MacWorld also did a comparison of the i5 vs i7. Macrumors has a very long 2013 11″ Battery Life Thread (real world)

UPDATE2: The Verge published an 11″ review where they claimed to get 9-10hrs+ of battery life (cycling through popular websites at 65% brightness). gnoring any critiques on the battery testing methodology, I really wish I could find the disparity – getting that sort of battery life would be really nice… Things that could possibly be responsible for the difference:

  • Actual browsing uses a lot more network than refreshing a series of mostly cached sites
  • FileVault chews up a lot more power
  • Wifi signal/AP distance/type has significant difference in power consumption
  • Some long-running process, either ClipMenu, iStat Menu, Dropbox, SSH is causing my laptop to function way less efficiently than it should.