skysight-inc/HackerNews huggingface dataset:
Maybe I'm missing some way of implementing heapsort without array indices, but all the implementations I've seen use O(log n) space. For example, the pseudocode on Wikipedia (https://en.wikipedia.org/wiki/Heapsort#Pseudocode) at a quick glance uses five temporary variables: 'count', 'end', 'start', 'child', and 'root'. How much temporary space is this? Well, proportional to the log of the size of the array, at a minimum. If you're sorting 256-element arrays, these can each be 8-bit integers, and you need 5 bytes of temporary space. If you're sorting a 2^32 element array, these need to each be at least 32-bit integers, and you need 20 bytes of temporary space. If you have a 2^64 element array, they need to be 64-bit integers, and you need 40 bytes of temporary space. If you have a 2^128 element array, they need to be 128-bit integers, and you need 80 bytes of temporary space. Therefore, temporary space needed grows with the log of the array size. Which is very slow growth, but still growth!

The two things you can do are: 1) pick a fixed-size int and cap the max size of array you can handle; or 2) use a bigint datatype, and the size of your bigints will (asymptotically) grow with log(n).
I just tried to submit this. Too slow, as usual.

Excerpt:

She's not alone in her frustration. Last fall, a community member of GitHub's code base, Ruby on Rails, blogged about being sexually harassed by her own boss while attending a Ruby conference. She later deleted her post due to receiving an onslaught of victim-blaming, rape, and death threats.

Yeah, there's a lot that needs to change. Sigh. A lot.
mumble, mumble, something....Oprah...
For cars is way more feasible just having two electrical-charged metal bars that always touch the underside of your car when is in the garage, and if they are far apart it's complete safe (i.e: children can't touch both at the same time)
That strikes me as a statement that completely ignores the reality of the situation of creating a successful online retail presence. Also telling other people what to do seems incredibly naive, and the last part of your comment just strikes me as asinine.
Marco is not just another blogger who just complains. He's started Tumblr and Instapaper.

I don't agree with his opinion in his case, but he always has interesting insight.
Ask HN: How to disconnect Chrome from my gmail. They have made it so hard
It is obvious the browsers will try to stick all content into the view port by default. Too bad the web doesn't consist of vertical pages with no alignment whatsoever.
I haven't seen anyone 'showing support' for github. Just 'being disappointed' in them.
Information is vague, so it's best not to take side (yet, at least).

This caught my eye, though: "In one day, all of the work I've done at that company to be a better place for women to work has come undone."

"All work undone in a day" feels off. Either too impulsive, or speaking ill of her alleged work.

I'd be suspicious of anyone claiming great progress in their activist agenda (or whatever agenda) for two years, and then suddenly announcing it was all undone by a single remark or in a single day.
Yeah, the touchscreen seemed like a solution looking for a problem. The Wii-U pretty-well demonstrated that gamers aren't really that interested in having a screen nested in their controller, and it's already got a good pointing-device in the thumbpads. The only use for the touchscreen is private information display... and I think the SteamBox is going to be predominantly a single-player console so I doubt there would be enough usage of this feature to justify this.

I mean, Nintendo has demonstrated a handful of games that use private information for exciting effect, but not enough to justify the cost of a screen in your gamepad. Simple good old-fashioned reliable face-buttons will get far more use.
This is an interesting user interface problem. Connecting to a mobile or IP phone can take seconds. As the network operators or phone in question you need to provide feedback that the call is in progress but not ringing at the other end.

Unfortunately there isn't a universal sound for that so you either get silence or a fake ringing. Silence makes people think its broken, whereas ringing gives false hope...
I did not want to imply that, I wanted to say that the rich are capable of wasting a LOT of resources.
Which is of course an insane system. SAT should give everyone that time and a half.
I just ping it continuously. If it doesn't respond inside of some threshold--I think 5 minutes?--I assume I'm out of the house. On battery, the iPhone checks wifi pretty regularly, and actually holds a wifi connection when plugged in.
I feel like I must be the odd one here. My wife and I watch free Amazon Prime videos (i.e. bundled with the Prime service, I know nothing is actually free!) all the time. The selection is decent enough for us and they have lots of free television series that keep us busy. Between that and shipping that usually gets things here the next day, Amazon Prime is worth every penny to us.
that's an awesome site, wonder if there is anything more like it
my point is, there's no need for the cathartic negativity in form of a blog post.

1. these companies actually do provide valuable services that we are better off for

2. an overwhelmingly negative blog post addresses the problem but not the solution, so it's not being constructive
Glasshole Lies About Recording Bar Patrons on TV
Ireland wins 2014 Six Nations Rugby Union Tournament
Building an Arduino-powered, mobile-controlled irrigation system
Where is the code being hosted now?
It isn't the educators, it is the employers who pervert the meaning of a degree and a GPA.
Yes this is correct. I am sorry that this is not made more apparent on our site.
Yes, and please add an option to pay in bacon while you are at it.
Compare the NSA’s Facebook Malware Denial to its Own Secret Documents
> Also, not sure why so many people assume I'm a man. I am a woman. We poop too.

For me, it wasn't the poop. It was the vulgar hyperboles.
I absolutely love the prime service, and it has not become worse for me here in California. They had to start charging us tax but all it really meant was that we had closer and closer distribution centers. My overall service, in that regard, has only become better in the last few years. I use AP at least once a week between work and home purchases... can't say I have ever used the video stuff, though.
Maybe it's more useful to sprinkle massive amounts of bacteria and such... maybe develop some that have some kind of resistance to the radiation. They´ll die eventually but you can keep the planes at it.
I now have my new canonical example of concern trolling.
I imagine Marco is already working on interesting stuff and doesn't want to start a new business to compete with the companies he is criticizing. Just because you have identified a weakness doesn't mean you have the time or desire to exploit it.

As an Amazon customer, I just want them to be the best they can be. I don't give a shit about competing in the retail space.
SSH doesn't work over Tunnelbear. That's really a deal breaker.
Steering wheel camera 'detects angry drivers'
My statement was neither irrational nor unclear. Just more evidence that you simply do not have the proper context to make meaningful statements on this subject (language being sub-culture specific).

It is interesting how race issues is one of only a few subjects where anyone that can form an opinion feels qualified to weigh in on it, no matter how far removed they are from the issue at hand.
The intent is that the touchpad function as a trackball, and until I hear otherwise I'm going to consider the possibility that the touchpad can function as a trackball pretty well - the motion is similar, all your missing is the haptics of the thing physically moving under your thumb.

Either way, there are no pro-gamers in the twitch-oriented genres that use trackballs. So no matter what, the gamepad/trackball is going to be a handicap. I think we're all just hoping for "good enough", not "as good as a mouse". I'd settle for "good enough". The gap between a mouse and a thumbstick is such a massive ocean that a substantial improvement, even if it doesn't reach "as good as mouse" would be worth buying.
Is it possible to print gists right now ?
Our PC/Mac/Android clients are using OpenVPN.
As a Canadian Amazon customer, I'm used to this second class treatment.

With a fraction of the inventory, no "addon items", no access to Prime Instant Video or Kindle Lending Library, there's absolutely no reason for Amazon.ca customers to subscribe to Prime, even at $79.
ShowHN: Notecard – Convert your notes into flashcards
Let me give several alternate reasons:
1. There are far fewer Germans.
2. The percentage of software engineers in Germany is lower.
3. Germany has fewer startups. Large companies typically take gender equality pretty seriously, if for no other reason than that they are more risk averse.
4. Germans have the annoying tendency to speak and write in German. So while there may be quite a lot of people discussing problems in Germany far fewer people can read these and none are posted to english language websites like hacker news.

So assuming the problem was equally prevalent at software startups in both countries would expect to hear about it a lot less from Germany.
> Who will read this and hesitate the next time they're about to hire a woman because they're the best candidate for the job?

Lazy, sexist assholes, that's who.
Algolia is also a YC company.
They're not talking about "just suicide", they're talking about insurance fraud involving suicide and also the deaths of hundreds of innocent people. To commit to that plan, you would definitely need to be some form of conscienceless freak.
What are you using to generate the PDF? I've been looking for a good html to PDF converter for a project I'm working on.
I'm imagining a big reason for "pressure sensitive" is that it has no thumbstick. Obviously the intent is that the left touchpad is to substitute for a thumbstick, but some stubborn gamers will insist on using the d-pad-ish buttons. So say you're playing a game designed for a thumbstick on the left button-pad, and the game requires a light-touch to "walk" like assissin's creed or Mario 64? The pressure-sensitive buttons provide that.
Wouldn't it be better to offer the service for free initially and get people hooked? If you are willing to "pay" to get visitors, this seems like a way to do it while building your future customer base. If you pay someone to review it, their feedback won't be very valuable - you want to hear feedback from people who will actually use the system.

I'm not an expert in any of this, and have not launched a product of my own. So take it all with a grain of salt.

Good luck!
One big assumption that this document makes is that MtGox wouldn't refill the hot wallet until it was empty. Why would they do that?

I think MtGox was pretty incompetent, but I don't think they were so incompetent that they didn't know enough to refill the hot wallet when it was getting low so that it didn't get completely empty.
Samsung Celebrity Spokesman LeBron James Says His Galaxy Note Makes Him Sick
The last women's studies course I took in college had the professor actively thanking the men in the class for their contribution to the discussion.

Some people are Assholes. Feminists are people. Ergo, some Feminists are Assholes. It doesn't say anything more about feminism than it does people in the checkout line at the grocery store.
Prime is better than ever for me too. I almost always get things the next day nowdays, even frequently for weekend orders (Saturday orders arriving Monday).

The one hiccup was that the first thing they tried to send me on a Sunday got lost, but they handled it with great customer service and next-day shipped me a replacement during the week. And since then the few things I've had scheduled for Sunday have been fine, too.

I'm in a big city, though. Maybe it's gotten worse for people in less densely populated areas that aren't so near their warehouses?

---

The videos service is a mess UI-wise compared to its competitors, but considering how much free shipping I take advantage of I can't complain. But Marco certainly a point that the bundling (and branding, and messaging, and discoverability) is pretty bad. It works serviceably on my Kindle Fire and Samsung TV, but is a clear step down from the competitors in terms of interface, app availability, polish, etc.
> free Amazon Prime videos

I know that's how Amazon phrases it but this is the fallacy the OP is arguing against.
Almost no one uses RSS and it's bad for business. Regarding usage, we have 60k+ newsletter subscribers and maybe a few hundred RSS readers. Regarding business, I can't converse with you directly over RSS, so it has almost no business value as an interactive medium and customer outreach tool.
I've been a prime customer for 7 ish years. I'm ok with the new price. Im extremely happy with the service, appreciate a lot of the new features (instant video, lending library), and overall Im not off put by tweaks like add ons that make the service more economically efficient and thus viable.

I get way more than $100 worth of simplicity from being a member of prime.

My only complaint: create an instant video app for android already.
Tumblr feminism is actually an even extremer extension of postmodern feminism, which is the mainstream ideology nowadays, promoted by journals such as Jezebel and Feministing.

The vast majority of tech industry feminists are postmodernists.
+1 for that observation.
I have the exact same question. I can remember hnsearch better than algolia and it is easier to spell in my opinion.
There are millions of great controllers out there with good D-pads you can buy. There are a tiny hadnful that have a decent pointing-device (eg. the Wiimote), and none that come even close to comparing to a mouse.

That's why this pad is important. Anything to do with d-pads is just going to be gravy.
Because they have a competing OS called Fire OS.
Those benchmark ratios are not comparable across languages.

The C code compares running time with a very standard mergesort.

The C++ code compares with std::stable_sort.

The Java code compares with a standard mergesort -- very similar to the code in the C version -- but has hard-to-predict JIT warmup effects.
When no one does anything to counter them, or to make it clear they don't speak for the social group, it does actually define said group.

There's a lot more to this phenomenon than you could get into on hacker news, but it goes something like "if you don't agree with everything i say exactly, you're clearly the enemy"
We don't currently accept BTC, but you can pay for TunnelBear with honey. Contact us for our mailing address. (I am quite serious, we've actually received some delicious organic honey in the mail a couple of months ago). We wouldn't mind accepting bacon, but you will have to make the payment in person, I am afraid bacon would spoil during shipping.
Depends on the GPU, too. Some of the more popular mobile GPUs don't even have integer ALUs anymore.
Hope they don't do it here in Canada. With no Amazon Video service here, there already isn't much reason to buy Prime.
It has one unacceptable flaw: staggered keys. http://loup-vaillant.fr/articles/better-keyboards
Can anybody explain why Moldova is doing so well with this despite being so poor?

I can see various initiatives they have undertaken that would get them moving in the right direction such as joining the Open Development Technology Alliance (ODTA) - but I can't figure out the underlying reasons for success.
Someone should register hey.sexy for those spicy voip calls via webrtc.
No, not right now. Will add that to the task list too. Thanks
I don't understand those overflow equations.

In the first equation (it admits it's wrong), I plug in 1 and get 0.00390625.

In the second equation, I plug in 1 and get -0.992188.

I think the answer is supposed to still be 1, because there should be no overflow until it is 256.

I thought maybe I was misunderstanding and the equation isn't just to handle overflows but is supposed to add 1 then handle overflows. So I plugged in 0 into the equations and they both outputted 0. So they aren't trying to add 1.

Wouldn't the correct equation be frac(value / 256.0) * 256.0 ?
It's worse, but I wouldn't say there's "no reason". I make almost all of my purchases on amazon; their selection has improved greatly in the past year.

Adding Prime has removed much of the friction from the process. I don't have to group items together to get free shipping. Yet I also find I'm not making impulse purchases, so it works out well.

Mental space is precious, so removing the planning from amazon purchasing has helped, even if I spend a bit more money.
>But, even in a January interview with ReadWrite about how progressive the company had become, she noted some lingering issues: “I recently got an email from a middle manager that began, ‘So Julie, how are the women at GitHub?’ I said, ‘You should ask them’.”

This is pretty telling of her attitude, I think.
iirc, I've started seeing "addon items" in the Canadian store.
It's Phantom doing the printing.
eh eh. couldn't stop laughing.
Yeah, I've spent a couple of late nights scrambling trying to think of one item I want to buy from Amazon to pad an order out to the desired price.

Freeing myself from that bit of mental gymnastics might be worth it.
My complaint is: Why do I have to install Silverlight on my Mac to use amazon video while you can stream to your iPad without silverlight?
The corollary of your benefit of the doubt for github is "Horvath is probably lying or at best mistaken." Why is that your default assumption?
It's also really lucky that the Gamecube GPU, released well over 10 years ago, matches extremely well to the modern GPU pipeline.

Compare this with the PS2, which has a bunch of crazy programmable coprocessors to build an extremely flexible but hard-to-emulate system.

It's probably no coincidence, given that it was developed by ex-SGI engineers who founded their own company, ArtX, who got bought out by ATI to develop the R300, one of the first modern programmable GPUs.
Elasticsearch now includes cardinality with Hyperloglog++
Maintaining an up-to-date search engine is more than just having a mirror. Have you identified a specific missing feature?
They're not free.
Are there any plans to open source this ?
Use another browser? or just make a "fake" gmail account or something...
That's unbelievable. I never would have guessed feminists would be actively fighting against meritocracy.
Children may have pieces of metal such as bicycles, or they may walk across such bars while holding hands. I bet there are way more failure modes with such an approach (kids never drop buckets of water inside garages, for example)

I would put in a few more safety methods.
You're begging the question that catharsis has no value.
Not at all. Much more likely is the desire of governments everywhere to ... how did the EU commission put it :

"A review of conflicts between national laws or jurisdictions that will suggest possible remedies" [1]

In case anyone doubts what this means : it means that they're angry their laws currently effectively do not apply to the internet (because the site owner is not within their jurisdiction) and they intend to use DNS assignments as the enforcement arm of their governments.

Also, from this article :

"Major corporations have complained, however, that con artists already swarm the Internet with phony Web sites designed to look like the authentic offerings of respected brands."

We all know what they're complaining about and it's not "con artists. It's the fact that holding a trademark on the word "and" is southeast uzbaledongenirestan doesn't give them full veto rights over any dns name that matches ".and.", in any tld.

Expect takedowns to get much, much worse very quickly. This move makes ICANN dependant on organisations that want to use DNS to make legal threats and force any internet site to operate in every jurisdiction their customers may be located in instead of just the one they're located.

And remember : VPNs only help if the thing you're trying to reach is still on the internet. This is about moving enforcement from local ISPs to remote ISPs.

[1] http://europa.eu/rapid/press-release_IP-14-142_en.htm
If you have a thick skin, then you won't mind my telling you that this is not the first time I've read a rude, immature comment on here and then looked above it to see your name attached to it.
> "Don't worry about getting zapped: Hall assures that the magnetic fields used to transfer energy are "perfectly safe" -- in fact, they are the same kind of fields used in Wi-Fi routers."

LOL. power transmitted by a Wifi router ~= mW. Power required for, even a low energy light bulb ~= 10W. The current draw in modern homes is so big that EM transmission, especially at sensitive wavelengths like microwaves, is highly likely to cook things (and people).

They may well have found a real way to make it work. But saying "it's the same as wifi" shouldn't convince anyone.
Bad wording, I was differentiating between the Amazon videos that are bundled with Prime vs the videos that you still have to pay for even with Prime. We very rarely pay an additional amount to watch a video on Amazon.
Disagree completely with the fearmongering.

"Its shipping deals always felt unsustainable, so in the absence of other changes, I’d feel that the extra $20 per year was justified."

So what exactly is the problem being decried? Amazon increases the cost of a "free shipping" plan that was previously seemed unsustainable.

Oh, and Amazon bundles free videos with Prime as it wants to get into the media delivery business ruled by Netflix and make it cheaper. It already doss this with books but now wants to enter the game to challenge Google's Play and Apple's iTunes Store. This is MORE competition in the mobile OS + media delivery space. Let Amazon enter it. It already has one of the most sophisticated infrastructures in the world, with AWS - which by the way is its biggest revenue center.

If you want to be concerned about anything, be concerned about the effect these economies of scale will have on the American worker. With self driving cars from google and packing robots from Amazon and giant data centers from Apple, who will need record stores, bookstores, newspapers, cab drivers, oh wait..
Is it wrong to call a woman a "Queen"? What.the.fuck.

I call my wife 'mi reina' and my daughter 'princesita'. Are you telling me these retards are saying that's a no-no?
Hahahahahahahaahhahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahah!!!!!. Dear lord, my belly.
Marco is using a complete straw man here
He takes a optional add on service (Amazon Prime) which a company offers value to its "its most dedicated customers". Then he compares it to other companies require of you to use their service.

You are in no way required to have Amazon Prime to use Amazon. If it doesn't make sense to you, then cancel it. Amazon is still happy to have you as a customer without it.

It feels like people are complaining they bought a car, asked for the sunroof option, and now are loudly complaining that cars shouldn't have sunroofs.
Yea, I love Prime videos. The author here is extrapolating about the entire Prime subscribership based on his personal experiences. That's a terrible way to write an article.
Show HN: How To CoffeeScript | Handy and Short Examples Of CoffeeScript
More cross-browser testing is in order.

In Chromium on Linux Mint, it wants to download the PDF file right away (doesn't wait for a button press). And it never actually loads, just keeps showing the loading icon.
Google wants to keep its email scanning methods a secret
You know, instead of being sarcastic, you could attempt to find out why the user things so.

As an executive of Agolia, you have just wasted a learning opportunity.

FWIW, I liked HN search because of it's sorting ability. By date, points and how it combined with the filter comment only, story and heading.

Cheers!