Better HN
topnewbestaskshowjobs
Log inSign up

apendleton

4,277 karma · joined Feb 29, 2012 (14y ago) · 994 submissions

Submissions

comment 14y ago · link · parent

But this is part of the problem: we have multiple web properties, and the fact that AWS issues can affect all of them at once is a huge downside. Certainly, if we ran on metal, we would have hardware fail, but failures would be likely to be better-isolated than at Amazon.

comment 14y ago · link · parent

Sort of. It implements a lowest-common-denominator vector stack on top of either VML for old-IE, or SVG for everything else. This means many vector operations available in SVG but not in VML are either not available in Raphael, or are implemented in a way that doesn't take advantage of native capabilities. We experienced an issue, for instance, with trying to animate a zoom effect on a path. This is doable in SVG with transform properties in a very performant way, but Raphael implemented it by recomputing all the path coordinates at each zoom level for each animation frame, which was too slow to be usable. On top of this, the other major browser environment that doesn't support SVG is pre-Honeycomb Android, which doesn't support VML either, so Raphael only gets you so far in terms of being cross-browser.

comment 14y ago · link · parent

My favorite part is that empty bottles are always allowed, regardless of size. So you can have a six-ounce bottle with two ounces of liquid in it, and an empty three-ounce bottle, and that violates the rules, but if you pour the contents if the first bottle into the second, it's suddenly allowed, even though you have all of the same materials as before: bottles, liquids, etc. Totally irrational.

comment 14y ago · link · parent

Yeah, I was also struck by the similarity to revolights (which, incidentally, was also kickstarter-funded). This one seems somewhat less effective (no forward or rear illumination, and no easy way, from the side, to distinguish the front wheel from the back to guess the direction of travel), but on the other hand, I suspect it will be cheaper, easier to install, and get you much more use on a charge.

comment 14y ago · link · parent

Actually, my experience with PyPy, while generally positive, has exhibited many of the characteristics that article talks about in terms of downsides to "sufficiently-smart compilers." It's almost always much faster than cpython, but how much faster is highly variable, and not especially predictably so; seemingly-insignificant changes can have large and unexpected performance implications, and it's difficult as a developer to have the proper mental model to figure out what's actually going on.

In CPython land, Python is slower, but performs predictably, and if you want to speed it up you write C, which is much faster, and also performs predictably, though it takes some developer effort. In PyPy, you get some of the speed of C without the effort, but without the predictability either.

comment 14y ago · link · parent

Yeah, that bit was weird -- it implies a contrast in maturity and scale between North America and Europe that seems not to have basis in fact. Germany's largest bikeshare system, per Wikipedia, only has 3,000 bikes, which is smaller than Montreal's. Even DC's, currently the largest in the US, is on the same order of magnitude, at ~1700 bikes, and is a well-established system at this point (over two years old, with somewhere around 2.5 million rides so far).

comment 14y ago · link · parent

No, I think it's that even if each channel gets the same bitrate, if there's more "going on" in one channel than the other, there may be fewer bits to go around and that channel may have more qualitative loss. So if they both have the vocals equally, but one also has bass drum, the one with the base drum may lose more fidelity on the vocals than the channel with vocals alone.

comment 14y ago · link · parent

"Field declarations for a single content type strewn across multiple features? Why?"

Sorry for the confusion; I meant lower-case "features," as in, new pieces of functionality that both affect the same kind of data, not "Features" in Drupal terms. I don't think it would be especially unusual for multiple feature branches to affect the same content type in different ways.

"Who claimed Drupal was object oriented? Seriously, I'd like to know so I can spill my drink on them if I ever run into them at a DrupalCon afterparty."

Admittedly I've been away from the Drupal community for awhile, but I attended a DrupalCon several years ago in which the argument was made in multiple talks that Drupal's design followed the object-oriented philosophy despite not taking advantage of PHP-native object-oriented mechanisms. This (old) article seems to espouse these sentiments roughly as I remember them: http://drupal.org/node/547518 and I remember finding them to be pretty ridiculous at the time. Perhaps community sentiments have changed since then.

comment 14y ago · link · parent

Being able to export and commit isn't really good enough; keeping a work log is only a relatively small part of the capacity for version control systems to expedite development. Many projects have development workflows where new features are developed in branches, and only merged when they're ready to be deployed.

Suppose, in a Drupal project, you had two such features being developed simultaneously, and each added different new fields to a given content type, with corresponding changes to views and authorship workflows. Assuming it were even practical for each developer on a Drupal project to have their own development instance of the database powering a site (which it totally isn't), it's true that each developer could export their own version of the given content types, views, etc., and commit them to version control. The exported blobs are pretty much opaque to many Drupal developers (or non-developers, as you say), though, and may not be expressed sufficiently sanely that Git could figure out what changes actually took places. When these features were ready to be merged, would the merge work? Who knows? What if there were merge conflicts? Would developers be able to resolve them? Worse, what if Git's notion of the correct merge strategy didn't actually produce a semantically correct result? All of these operations take place on generated code that nobody wrote and nobody reads, which is scary enough that the whole process wouldn't be trustworthy.

Exportables are yet another in a long series of efforts in the Drupal community to attempt to address a deficit they have with respect to most other web stacks, and again they've done it in a way that doesn't really deliver the benefits of the feature as it exists elsewhere (see also Drupal's "database abstraction layer" or its supposed "object-oriented design").

comment 14y ago · link · parent

This is quibbling over semantics. Drupal's custom content types, custom fields, and Views all allow developers to express complex logic that would, in any other development environment, be expressed as code and committed to version control -- creating a new content type in Drupal and adding fields to it is exactly analogous to creating a new model in Django. You can call it "configuration" if that makes it easier to justify its being in a table, but it doesn't change the fact that Drupal developers spend lots of time building shit that can't go in a VCS, can't be easily tested, can't be branched/merged, and can't be easily deployed without a convoluted export/import dance. Just because there isn't literal code in the database, it doesn't mean there's a clean logic/content separation.

comment 14y ago · link · parent

The native Dart VM distinguishes between integers and floats for performance reasons, and (I think) lets you explicitly cast back and forth between them, and if, at some point, Chrome ships a Dart interpreter, developers will be able to take advantage of that. I assume this all gets turned into noops when it's translated to JS, so to some extent it's academic, but I think they were just trying to illustrate that Dart's innate notions of built-in types are different than JS's, and are kludged into JS types at compile time, whereas TS sits much closer to current JS environments.

comment 14y ago · link · parent

Apple has extra leverage, though, because of its perceived importance in the market. Look at visual voicemail: Apple decided IVR voicemail sucked, and worked its way through carriers until it could find one that would support changing its voicemail architecture. That carrier then turned both the iPhone and that feature into a competitive advantage.

If Apple really wanted to, it seems like they could have strong-armed their way into some higher-quality audio standard -- earlier deployment of VoLTE if nothing else, since that's going to happen eventually anyway. That said, I'm not especially surprised that they didn't; Apple has historically actually been pretty timid with wireless technology, and the biggest bafflingly absent feature of the original iPhone was that it didn't include a 3G radio even though 3G was already widely deployed.

comment 14y ago · link · parent

Yes, was about to respond and say exactly this. The frequency response is something like 300-3500Hz (vs. 20Hz to 20kHz for normal human hearing), and the dynamic range is also pretty mediocre. Skype is much better, and many in-network cell calls that never touch POTS also have better call quality already than landline phones do.

comment 14y ago · link · parent

Dick Cheney has half of one. He has a left-ventricular assist device, which has one pump, but still has a heart that does part of the work. The proposed devices in the PopSci article are two of those pumps together, replacing the heart's functions altogether. These have been implanted into cows and work fine, but haven't worked their way through the FDA yet for non-trial use in people.

comment 14y ago · link · parent

The conventional Jarvis-style artificial heart also tries to imitate the functioning of a human heart, with distinct pumps making up a heartbeat. They tend to suffer from mechanical fatigue over time, though, because they have no mechanism for self-repair. There has, however, been some interesting artificial heart research that uses continuous-flow pumps that could conceivably work much better than the current generation of artificial hearts: http://www.popsci.com/science/article/2012-02/no-pulse-how-d...

comment 14y ago · link · parent

Yes, that was my sense, as well: firstly, the terrorist fear tactics are ridiculous, but secondly, if terrorists ever were to use these things to smuggle weapons into the US, our drug policy would be at least partly to blame: drug producers and distributors are the best-funded organizations in global organized crime, they're probably the only ones well-enough-funded to develop this kind of technology, and they owe their wealth to demand induced by America's idiotic war on drugs. Now, though, it's too late -- the technology is out there for anyone to buy.

comment 14y ago · link · parent

This template language is only superficially the same, but the code between the <% and %> would need to be python in this version, not JS, so you can't actually share anything. You would need to combine something like this with a JS-to-Python transpiler for that to work.

comment 14y ago · link · parent

That this person is going to design peripherals is pure speculation on the part of the article's author, and it seems to stem exclusively (looking at the original ad) from this sentence: "Even basic input, the keyboard and mouse, haven’t really changed in any meaningful way over the years." In context, though, that sentence could just as easily be just an example of one way in which innovation in the Mac/PC space has stagnated.

The alternate interpretation that this person will be designing whole systems is equally plausible to me, especially given their investment into the Linux space. Initially, that move didn't make a whole lot of sense because the Linux desktop space is so small and (particularly where issues around graphics drivers and the like are concerned) requires a fair bit of technical acumen. A ChromeOS-like strategy makes much more sense, though: heavily tailor the OS user experience to fit your specific target audience, and vertically integrate so you control the hardware, and the user never has to touch drivers or configs. Then it's not "Linux," anymore, it's "SteamOS" or whatever.

comment 14y ago · link · parent

It is. From the article: "A rotating spacecraft would create artificial gravity that would keep astronauts in tip-top shape."

comment 14y ago · link · parent

Not really, no. If all it takes to exploit the remote service is to make the request (i.e., you don't need to be able to read the response data to exploit it), you can easily force a request by means other than XHR; an image tag is probably the most straightforward.

Also, strictly speaking, this class of attack is Cross-Site Request Forgery (CSRF), not Cross-Site Scripting (XSS).

comment 14y ago · link · parent

> I doubt that most people who felt financially secure and could afford a new car wouldn't want to own a new car.

Not that this is anything more than anecdata, but in my peer group, this isn't true. I get around by bike and don't own a car, but could afford a new car if I wanted one, and this is true of many of my friends. Ideas stemming from New Urbanism are a pretty big deal in at least a certain sector of our generation; we're much more likely to consciously decide to prioritize proximity to things over cars, and even if we can afford cars, we're (I'd like to think) more mindful of the sustainability consequences of the modes of transportation that we choose than our parents' generation was; further, I have a fifteen-minute commute and don't have to worry about traffic or parking, and it would take a lot for me to be willing to give that up. This is in Washington, DC, but I know people in similar situations in New York, San Francisco, Portland, and Seattle.

comment 14y ago · link · parent

> when for most PhoneGap apps, you really don't need to go much outside of what there are already plugins for

The operative word here being "most." You're right that for apps that meet those constraints, this is not especially compelling; the target here is for apps that are exceptions. We have produced cross-platform apps that require additional capabilities beyond what Phonegap includes, and have ended up writing a cross-platform UI, plus some native ObjC and Java glue for iOS and Android, respectively, to provide that capacity. The combination presented here would mean that at least on iOS, you could have a slightly more-pleasant glue-writing experience, particularly since anecdotally, ObjC is the hardest of the pieces of that kind of project for non-experts to get started with.

comment 14y ago · link · parent

The main advantage that I see at first glance is that this library, unlike lots of others (including those two), doesn't use eval or "new Function" to build compiled templates, which meets it meets Chrome's new security requirements for extensions.

comment 14y ago · link · parent

This post title omits "!" which is also necessary.

comment 14y ago · link · parent

Right, this is no different than it would be programming on current Python with the GIL. There are two different levels of locking in current Python implementations: locks within the implementation of the interpreter (the GIL for cpython and current pypy, or all the micro-locks in Jythin), and the locks accessible from the Python environment by Python programmers (e.g., the locks in the threading module: http://docs.python.org/library/threading.html#lock-objects ). The pypy STM project attempts to replace the first set to allow for simultaneous multi-core use while making it seem to the programmer like the GIL is still there, but if the programmer needs things like a specific execution order, it will need to managed by hand, the same way it always has.

comment 14y ago · link · parent

Delivery of the Model S started in June.

comment 14y ago · link · parent

It has long been Musk's contention that going to Mars would mean moving there, at least initially. He places less value on the return trip than NASA seems to.

comment 14y ago · link · parent

This article assumes self-signed certs anyway, and specifically addresses procedures for disseminating them.

comment 14y ago · link · parent

That may well be; these articles hint (without supporting evidence) that fees are part of the motivation, but I'm not sure how much credence to lend them: http://www.dailymail.co.uk/news/article-2153008/Visa-branded... and http://www.thesun.co.uk/sol/homepage/news/2910799/Visa-in-Ol...
1
3031323334