HN user

iclelland

232 karma
Posts0
Comments90
View on HN
No posts found.

An arc that spans one radian of a circle's circumference has the same length as the radius.

So if you imagine a connected line of 233 suns across the sky, spanning 57.3 degrees, the actual length of that line would be the same as the distance from your eyes to the sun.

The original article is a bit better:

http://www.livemint.com/Companies/lDn53REhqvhqGoIxs9MgwJ/App...

Apple isn't actually prevented from selling either new or refurbished iPhones in India. What it appears that they cannot do, though, is open any Apple Stores there, because they don't (or can't) comply with a rule that "at least 30 per cent of the value of procurement of manufactured/processed products shall be sourced from Indian small industries" (from a similar story about Walmart: http://www.thehindu.com/business/Industry/30-local-sourcing-...)

It looks like what they wanted to do was to manufacture the original phones in China, as always, but do the refurbishment in India, and thereby call the refurbished phones "locally sourced". If they could do that, then they could run their own stores in the country, assuming that the refurb phones made up 30% of their product.

The Indian government rejected that idea, so I presume that Apple will need to continue selling through third-party retail stores, or come up with another way to comply with the rule.

And if your problem requires only one of each, and needs them for the same amount of time, then your optimization would be the correct one.

Now scale this to a situation where solving the problem requires ten thousand machines for each developer working on code, and where each minute of time spent writing code translates into two days of machine time running that code, and the numbers start to look different.

It's more likely that it's because they are two separate physical actions (returning the head to the left, and advancing the paper one line). They could be used independently: You could print a line in bold, for instance, by issuing a CR without an LF and then printing the same line again.

A carriage-return operation takes much longer than a single character, or even two or three. It doesn't make sense to issue two characters just to take up time. The printers always had to have some internal buffer memory (and handshaking over the communication lines to say when the buffer is full) in order not to lose any characters.

The first argument, ",8" caused the load to come from the attached disk drive, rather than the default cassette interface. The second argument, as explained by others, was to load binary files into their defined locations.

So you could also load binary programs from cassette with a LOAD "*",1,1

There's almost nothing that you can do with Cordova that you couldn't do with mobile Chrome apps, since, under the hood, they are Cordova apps.

In fact, the plugins themselves have all been available for some time on the Cordova plugin registry (I think Andrew announced this at PhoneGapDay in Amsterdam last year), and you can use them on standalone Cordova projects.

Much of this project is about getting Chrome packaged apps to run as Cordova apps -- that is, single-page apps, with a manifest file, background scripts, and the chrome.* APIs. The goal is that you could take an existing packaged app, build it with this tool, and have an Android and an iOS version running in a couple of minutes. (There are obviously a lot of caveats in that statement; mobile devices are different from desktop in a lot of ways)

There's no intention of being "better" than Cordova -- We've been a big part of the team that has been building Cordova for the last couple of years. If anything, it's a testament to how powerful the Cordova platform is, that we've been able to build this framework on top of it.

It's available to everyone right now; go ahead and clone it from GitHub, or install the cca package from npm -- it's a "developer preview" right now because some of the APIs are still changing; I wouldn't consider it stable enough to ship an app to users just yet. We're definitely looking for people to try it out, though -- we want to know what's working, what's missing, and what's just more difficult than it could be.

As a matter of fact, most of the engineers on this project are regular committers to the Cordova project. (Cordova is the underlying project, btw -- PhoneGap is Adobe's build system built on top of it)

We're very committed to the Cordova platform, and we're very active in pushing it forward.

Though there are a lot of individuals, and companies, involved, I suspect that, by any measure, Google is one of the top contributors to Cordova these days.

Zeros in JavaScript 13 years ago

You can submit the error, with the option of declaring what language the page is really in.

Unfortunately, "JavaScript" isn't in the list.

CSS Comb 13 years ago

It's likely to provide some help for compression (rather than minification), if you're gzipping your assets for transfer.

This is probably most effective if you tend to specify the same values for the properties as well, so that a run can extend from one property name through its value and to the next property name.

Clustering properties with identical prefixes will provide some improvement by itself, as it can keep the 'backward distance' values used in a small consistent range, but I expect that's going to be a much smaller effect.

The battery notification looks identical to that in iOS6, and probably has the same behaviour.

If you run your phone with the display off, say from 21% battery down to 11%, then it will cross the 20% reporting threshold. The next time that you unlock the phone and activate the display, you will get the notification.

It's not inconsistent; nor is it just being "optimistic" -- it may be poorly worded, but it consistently displays that same message every time you unlock the phone after the battery drains to 20%.

If the person who took that screenshot had waited another ten minutes, then the battery would probably have reached 10%, and the 10% notification would have been shown instead.

What's with this posting? crypto-gram has been going for a long time (I've been subscribed for at least a decade).

These days (since 2004 or so), the newsletter is essentially a compilation of the month's postings on his blog; If there's something interesting in the newsletter, people usually post a link to the actual blog post.