Better HN
topnewbestaskshowjobs
Log inSign up

mapgrep

6,331 karma · joined Sep 23, 2010 (16y ago) · 813 submissions

Submissions

comment 14y ago · link · parent

Inventing a new identity system that features 1, portability and 2, end-user price of $0 is surely possible, but surely more than "a little extra work."

DNS has the virtue of being here now, being tested and refined over multiple decades, and offering a choice between subdomains for free or portability for a nominal annual cost. It's not perfect but it's good.

comment 14y ago · link · parent

I was mis-remembering how iTunes work there. It will auto-re-shuffle in some cases -- you don't always have to do it explicitly -- but it looks like it has more to do with whether you switch away from the playlist after the music stops playing. If I simply "pause" and select another song, without switching away, the order remains stable as you say. If I switch to say the Music library view, and then back, and double click a song (any song), it re-shuffles with that double-clicked song on top, playing.

comment 14y ago · link · parent

Did you read the first (highest rated) answer? This has nothing to do with iTunes trying to be "an algorithmic DJ" rather than truly random, it has do with the confusing intersection of two features: You can pick the first song in the randomly "shuffled" playlist, and a shuffled playlist holds its order until it is re-shuffled.

The user posting the question assumed that when he double-clicked on the first song in the playlist, iTunes was re-shuffling the playlist. It wasn't. It assumed he wanted to start the playlist again. If he had picked any other song to double click after playback was stopped, it would have re-shuffled the playlist.

The solution was to toggle shuffle off and then on again. Then he'd force re-shuffling.

iTunes does have a separate algorithmic DJ feature, by the way, called iTunes DJ. No need to mess up shuffle. Shuffle is truly random.

comment 14y ago · link · parent

"There have been a few architectural changes to John Siracusa’s OS X reviews as well. Siracusa has detailed the process in his separate explanatory blog post, because the review wasn’t long enough and he had more to say." HA

comment 14y ago · link · parent

I completely agree about Wondrich. I'm partway through Imbibe and it's fantastic.

Not sure about American whisky aging, though that sounds plausible.

comment 14y ago · link · parent

You're way off on standard Evan Williams ("black label"). It's very good, even if you don't factor in the remarkably low cost. Calling it "abrasive" or like an "industrial solvent" is way inaccurate. Maybe you're just used to very mellowed and sweet sipping whiskies. That's fine but it doesn't make brawnier whiskies trash as you imply.

As someone who mixes many of his Manhattans and Old Fashioneds with Williams (alongside Rittenhouse 100 rye), and who has tried it blind against Jim Beam black label, Maker's, and Daniels, I endorse wholeheartedly Eric Felten's take in The Wall Street Journal:

"It's a terrific deal. Most of the [inexpensive] bourbons I tasted were barely adolescents -- Beam, for example, spends about four years barrel aging. But Evan Williams is made of whiskey that has been in oak for five to seven years, and the extra age comes through. The nice spicy rye in the mash also comes through, giving the bourbon a dash of cinnamon that keeps the vanilla sweetness from cloying. Evan Williams is a good, solid, no-nonsense bourbon. " http://online.wsj.com/article/SB120916374801546109.html

I've had the single barrel. It's fine, very nice for sipping. But by no means would I use it in the drinks where I use regular Evan Williams. It's a little too mellow for a cocktail (although Esquire came up with an interesting one - basically a Manhattan made with Lillet blanc instead of sweet vermouth - I think they called it a Yellow Dog. You'll notice Lillet is much more meek than a sweet vermouth, even a relaxed Dolin. That way it doesn't overwhelm the soft nine-to-twelve-years-aged Single Barrel).

(update - here's a link to the Evan Williams Single Barrel cocktail - http://www.esquire.com/features/how-to-give-a-toast-0212)

comment 14y ago · link · parent

"I will not store sensitive data in plain text"

By this logic, Gmail would need to encrypt the contents of every email and every attachment, then encyrpt the full-text indexes of those emails and attachments. Obviously my contacts should be encrypted too. Then they'd need to encrypt the names of all labels/tags, which can contain sensitive information. Then they'd need to encrypt their logs, since when I visit the service and from where is actually sometimes sensitive info.

This is basically endless. It's impossible to accurately asses the bounds of what an arbitrary user will consider sensitive. The core is reasonably easy -- passwords, CC numbers -- but there can be hugely sensitive data at the edges.

My favorite example of this at the moment is 1Password. 1Password does a very thorough job of encrypting their passwords file. You can go read a whole blog post and white paper they wrote on their keychain format. But it turns out (as I and others have raised in their forums) there is a cache they create in the clear in the filesystem where the cache files are named after the websites where you have an account and have recently visited.

Now MANY people will not consider this sensitive data. But some people will. The passwords are not leaking, but the names of sites where I have accounts IS leaking. No problem, unless you have an account at donkey-fetish-dot-xxx your partner doesn't know about or whatever. The guys who designed 1Password clearly didn't think this issue would come up because, to their credit, they probably don't spend a lot of time on sites like private-pirated-movie-trove-dot-info. Or they don't have spouses/bosses who know where to look for these cache files.

Anyway, this is a long way of saying that you'll go crazy trying to encrypt all sensitive info. I think the 1Password case is clear cut but, judging by the response from their support, they did not. You might think a users' bookmark tag is not sensitive info, but if it's named 'job-hunt' or 'divorce-lawyers' it probably is. In the end, everything is sensitive info to someone.

comment 14y ago · link · parent

I wonder whether fear of a Twitter crackdown on third-party clients played any role in the timing of this. Having an app, even an alpha app, in users' hands would increase the outcry if Twitter were to move against third-party clients like Tweetbot. (Obviously, I mean an outcry in addition to the userbase for the polished iOS client.)

This is purely speculative, I admit.

comment 14y ago · link · parent

If you want a deeper dive into RubyMotion, the creator was just on The Changelog podcast - http://thechangelog.com/post/25928209107/episode-0-8-2-ruby-...

He actually left Apple to launch RubyMotion -- a commercial product, by the way -- after creating MacRuby and developing/maintaining it for several years.

comment 14y ago · link · parent

> You need to limit the applicants to organizations with the financial wherewithal to be able to provide the stability needed

Right, like Sun, Netscape, Digital Equipment Corporation, Silicon Graphics, GM, Lehman Brothers, etc.

If any industry should know that "financial wherewithall" != stability, it's the technology industry.

comment 14y ago · link · parent

I'm very curious about what sort of work was involved in such a project. Presumably there was some sort of relatively low level compatibility layer involved, since Marklar was kept updated to run 10.2, 10.3 and 10.4, apparently with a small team (Quora post said the guy needed a project he could do alone).

There were at least two other successful ports of MacOS to x86 back in the pre-Steve days, both described in Jim Carlton's book "Apple." Presumably those ports were trickier since they were porting code originally developed specifically for 680x0 chips rather than originally developed on a portable Unix-like operating system. Still, they were able to get things up and running remarkably quickly. Performance and bug fixing and third party compatibility were another matter.

comment 14y ago · link · parent

As long as the remote files are not in production and are under version control, what's wrong with editing them directly?

Sometimes it is hard to effectively duplicate the server environment (OS, RDBMS, ODBMS, web server, reverse proxy, other web server, caching tier) on a local machine. Particularly in a test deployment (as opposed to dev) you want to be very close to the production setup.

comment 14y ago · link · parent

Speculating that the author would be a bad parent, and now additionally speculating she's a page-view whore, is completely orthogonal to your main point about the tone of the article. It's a gratuitous attack that flies in the face of this specific community guideline: "Be civil. Don't say things you wouldn't say in a face to face conversation"

Just because this is a journalist you are unlikely to meet doesn't mean you should so cavalierly impugn her morals. You can criticize an article without making it into an attack on the author.

How would you feel if I replied to one of your comments with a sarcastic, "Gee, you'll sure make a GREAT parent some day"?

comment 14y ago · link · parent

Regarding Perl DOM parsing, you might want to check out HTML::Query. Its selectors still fall short of jQuery but when I was evaluating it against pQuery it came out ahead (IIRC).

comment 14y ago · link · parent

I read your story and I see someone who is full-time kicking ass to fulfill a true personal passion.

I see you've got various doubts. One small suggestion: when you say things like "I'm too old to compete at this gig" ask yourself if there is specific actual convincing evidence for that, or if you're just grappling with some near-term depressive thoughts. (Also, try gathering evidence for the opposite argument: That you'll compete well with your professional colleagues.)

I hope that didn't sound condescending. I definitely don't have any psychological training, just my .02. Having watched this industry for a while, I can assure you many of the people you think you're competing with will come and go with the business cycle and with real-world work challenges. People who really want to do it stick around through various bubbles and tend to do very well for themselves.

comment 14y ago · link · parent

I don't know Nicole, nor do I work for or with the NYT, but attacking her parenting because you disagree with the article does not seem reasonable.

By all means, make your point about the headline and story. Nicole is, presumably, an adult. But so are Andreessen Horowitz, and comparing them to a vulnerable child is not particularly convincing.

comment 14y ago · link · parent

Thanks for staying engaged in the thread, I appreciate all your thoughts!

comment 14y ago · link · parent

I enjoyed your lengthy comment but you are being selective in the historic context you provide.

In a nutshell, you show how private placements got exempted from certain securities regulations, how those depression-era exemptions were expanded in the 1980s leading to "tons" of new activity, and how those exemptions may now be expanded further, making startups very happy.

What you leave out is that federal investment-activity standards have been shown by recent history to be wholly inadequate. You leave out the recent financial meltdown, a direct result of replacing 1930s era banking regulations with looser laws in the 80s and 90s. And you leave out the dot-com collapse, caused by dubious IPOs of the sort that SOX -- which JOBS would partially repeal -- was subsequently designed to counter.

This context is vital. The aggressively deregulatory JOBS act comes st a time when our regulatory framework has been exposed as woefully inadequate, in the midst of quickly ballooning tech valuations, and as we are seeing financial misstatements already from companies like Groupon that went public under the old, supposedly over-regulatory regime.

So yes, we should consider the historical context around the JOBS act. And I'd choose a vastly different frame than you have: Financial regulations designed to prevent bubble-depression cycles have been steadily stripped away since the 1930s, leading directly to the collapse of our economy in 2008 and the ensuing malaise. Now the JOBS Act proposes to strip these standards down even further.

comment 14y ago · link · parent

What Rolling Stone wrote is that the JOBS act would "exempt them from independent accounting requirements for up to five years."

What the magazine was referring to is that auditors would no longer have to attest to a company's financial controls for financial reporting (mentioned in the Orrick PDF you intended to link http://www.orrick.com/fileupload/4619.pdf).

This means, for example, they would not bother to make sure revenue is being booked correctly, as explained here http://online.wsj.com/article/SB1000142405270230407200457732...

When Groupon recently had to restate (and slash) previously-reported revenue, this was due to weak internal controls, the same sorts of controls the JOBS act would exempt from being audited. http://online.wsj.com/article/SB1000142405270230402350457731...

So you really need an independent audit not just of the numbers but of the controls behind the numbers if your goal is to make sure investors get accurate financial information about a company.

Thus audits of financial controls are a key part of independent accounting.

The only change I'd make to Rolling Stone's original piece would be to revise to "exempt them from CERTAIN KEY independent accounting requirements for up to five years." But that's for clarity, not technical accuracy.

Taibbi is communicating an accurate idea - the JOBS act seriously weakens independent oversight of accounting for affected companies.

comment 14y ago · link · parent

Do you have anything other than "I believe what changed" - a memory you are uncertain of - to dispute the article? The doc you link does not mention auditors at all.

And for what it's worth, this NY Times article would seem to support the original Rolling Stone assertion:

"Under the JOBS bill, companies with up to $1 billion in annual revenue would be free to ignore — for their first five years as a public company — regulations that were put into place after the end of the dot-com bubble and the collapse of Enron. Among them are requirements to hire an independent outside auditor to attest to a company’s internal financial controls..." http://www.nytimes.com/2012/03/23/business/senate-passes-sta...

comment 14y ago · link · parent

Any idea why that's pegging the CPU? My naive analysis would be that once the database has sent/stored the data, the server is just doing some light filtering/serialization and sending it off to the client. But obviously there's more going on if these requests (en masse) can get you to 100 load.

Shot in the dark: Is there some kind of sorting going on?

comment 14y ago · link · parent

I liked their guideline on when to use bang methods like `array.map!` in ruby:

"The names of potentially 'dangerous' methods (i.e. methods that modify self or the arguments, exit!, etc.) should end with an exclamation mark. Bang methods should only exist if a non-bang method exists."

That last sentence finally made me understand why `string.gsub!` takes a bang but `FileUtils.rm_rf(dir)` does not, even though the latter is far more dangerous (in the generic case). It's not just about the danger level of the method but about the existence of a non-dangerous alternative. Now I've started noticing that some gems do not follow this guideline.

comment 14y ago · link · parent

Yes you can get a big discount. Then when your business booms, and you need to expand, upgrade or (for some licenses) renew, Oracle gets decide how much of your profit to take off the table in licensing fees, up to the full list.

But of course I'm speaking out of school here. I have no proof Larry Ellison or his minions will pursue such ruthless business tactics. Just a feeling :)

comment 14y ago · link · parent

Slightly more idiomatic would be with a useful die (and a semicolon terminating the first line):

  open(my $fh, "<", "file.txt") or die "Error reading file: $!";
  my @lines = <$fh>;
To slurp into a string rather than an array of lines:

  open(my $fh, "<", "file.txt") or die "Error reading file: $!";
  my $s = join('',<$fh>);

comment 14y ago · link · parent

"Fixed-price unlimited-volume data pricing is a totally, unfixably broken idea." -Bray

This "unfixably broken idea" is how the internet spread to the general population, 1995->present. That's 17 years. Seventeen years in which even very limited carrier competition brought prices way down and speeds way up. Does anyone remember how much a 128kbps ISDN used to run?

Seventeen years in which the typical consumer went from downloading mainly text and gifs to downloading mainly (bandwidthwise) lengthy videos, many of them high def. Despite the fact that, as Bray puts it, "once the network operator has your monthly payment, they’re powerfully incented to keep you from using the network."

Now any reasonable person can imagine how mobile might change things. But Bray gives such ludicrously short shrift to the power of flat-rate pricing it is hard to take anything else he writes in the essay seriously.

Of course the idea of unlimited usage is an illusion. Consumers know this. They have always known this in the deep and visceral way that only a flaky modem/ISDN/DSL/cable/EDGE/GPRS/3G connection can convey. But they like the trade offs: The ISP limits your bandwidth basically continuously such that your connection might slow down or outright disappear and such that latency might increase. In return, your bill is predictable.

ISPs have always worked this way. Always. You'd dial the modem bank and get a busy signal. Or you'd connect -- perhaps even through newfangled DSL technology, which in theory insulated you from your neighbors -- only to find the provider's upstream internet link was saturated. Or you'd jump on a cable connection and find it running at half speed because your neighbors were awake.

What consumers liked about "unlimited" was what it meant for our pocketbooks: Your use is unlimited as far as the bill is concerned.

Metered pricing is an illusion, too. The illusion is that you pay for what you use. But of course that's not true. No one is proposing dropping monthly mobile fees, you notice. So 0 bytes != $0. Also, having a million dollars to blow will not magically get you unlimited bandwidth. All the limits of network contention with fellow users, and all the limits of the network itself, are still there. Sure, other people might USE less data. But also, the telco might BUILD less infrastructure as a result. So in a way metered is the worst of all worlds: You still get the implicit limits and unreliability of a mass consumer network, PLUS new explicit limits that allow the telco to wallet-rape you.

It is amazing to me that someone as smart as Bray looks at this tangled mess of competing, differently- (but not-very-differently-) crippled versions of paid network access and actually accepts the abstractions at face value and, worse, writes off the arguably slightly less realistic abstraction as unworkable when that very abstraction is the reason he draws a paycheck from a company that sells web advertisements. I mean.

comment 14y ago · link · parent

"I've deliberately hired non-Indian people to run the tech support stuff as to buck stereotypes"

http://azizansari.com/faq

comment 14y ago · link · parent

Re #2, I heard ~November that Python was deprecated in production at Google. No idea what the details/caveats on that are (I presume it applies mainly to new code?).
1
212223
28