skysight-inc/HackerNews huggingface dataset:
Approximately, if you have something like 10+ billion items, use Cassandra.

If you have less than 10 billion items, Postgres will be fine, and is easier to manage IMO.

If you do use postgres, you should vertically partition the table. This will help keep indexes smaller, improve the the cache hit rate, vastly improve the ease with which you can drop older data, and make various other admin tasks easier.

I've done this in the past with a compound primary key of (topic_id, t) where t was a microseconds-past-the-epoch timestamp (bigint) unique within a topic. Then set up a parent table: CREATE TABLE events (topic_id, t, data_fields..) and "CREATE TABLE .. INHERITS events" from it into multiple subtables, named based on the timespan they will hold, like events_2013, events_2014.

Depending on how much data you have, either partition by day/month/year/etc. I partitioned every million seconds (~11 days), since that kept the resulting table sizes a bit more manageable (gigs not TBs).

Add a CHECK CONSTRAINT to each sub-table to constrain the timespan (ie, WHERE t BETWEEN ?? and ??).

When you do a SELECT * FROM events WHERE topic_id = 1 AND t BETWEEN $x AND $y ORDER BY t DESC; the query planner knows which sub-table(s) to query, and doesn't touch the other tables at all.

You can also add a BEFORE INSERT trigger to the parent table that inserts into the correct sub-table, otherwise get clients to compute the correct table name when inserting.
Alchohol is a known carcinogen. 3.5% of cancer deaths world wide are actually attributed to alcohol.
http://en.wikipedia.org/wiki/Alcohol_and_cancer
The main difference from what is shown in those slides is that V8 uses a semispace collector. The SpiderMonkey collector just has a single nursery.

Jon Coppeard implemented a semispace collector for SpiderMonkey, but the added complexity made it a net loss in performance. So we scrapped it for now. It means we get a few objects unfairly tenured, but our measurements showed the actual number was pretty low and not worth the overhead.

It's totally workload dependent, and further GGC tuning (there's a lot to go!) may reverse that balance.
People invent and invest in the absence of patents. That justification is getting rather tired.
Microsoft Shuts Down Its Robotics Group
Dont know if I buy this. The whole DEA cant crack imessage was a PR stunt. I think they are lying together. The trust is gone.

Just using encryption isnt enough, it has to be open source and verifiable. Neither Apple or Google are there. Google has a anti privacy agenda, and Apple is closed source.

http://www.propublica.org/article/stanford-promises-not-to-u...
Second round of bash security patches out
We're an established team with a stealth product that we're releasing soon. If you'd like to participate in an early trial, send us an email. We're also happy to talk to anyone with time series needs or related needs like analytics on big data. Maybe we can build you something custom or cut you a deal. Drop us a line at bigdata.queries@gmail.com
Looks like it's hosted here now: https://git.gnome.org/browse/gnome-builder

I can't get it to build though, I get

fatal error: gb-resources.h: No such file or directory #include "gb-resources.h"
3 main reasons:

- Runs in browser, for client-side indexing.

- Based off of tiles, instead of s2's 6-faced-cube thing. This allows it to be used with a lot of well established tools and mathematical formulas. Also much easier to reason about IMHO.

- Indexes points about twice as fast at the moment.

I also use s2, and it really is terrific. There are many cases where s2 is the superior choice (mostly due to its hilburt curve indexing scheme).
I agree it is a fabrication.
Sorry, I didn't see the GPS. So if there are apps compatible with this, then it can distinguish itself from other smart-watches. Would be nice to go running without a smartphone and still tracking the speed.
I heard this last night. What I took away from it is this: if you're too slow to a market that's always changing, you will fail miserably. It took Dallas more than 100 years to "try" and build a port -- 300 miles away from the gulf -- so that they can move goods via the water. Before they finished, they had an airport that could do the job much more efficiently. Not only did they not build the port, but they also left a lot of damage behind.

Lesson is if you want to jump into a market, you either aim ahead of it, or you do it very quickly and try to change with it. No market stays idly by waiting for you to catch up.

Second lesson is, failures will be forgotten to the world, successes will be celebrated.
Thanks for all your work dancannon!
there are many services that download apks from play store, but beware that doing so you violate google's TOS
To anyone who remembers the original post made by Tom Coates over here: http://plasticbag.org/archives/2004/06/developing_a_url_stru...

This new post is a substantial expansion on the reasoning, the implementation, and the depth of the thinking reflected in the URL structure that the BBC uses.

I was contracting at Red Bee Media for a portion of this time, and the project work to support a lot of this moved at an incredible pace (once the BBC had fed the requirements over), worth noting that RBM ( http://en.wikipedia.org/wiki/Red_Bee_Media ) themselves were spun out of the BBC around this time. So you had substantial organisation change at the same time as these fast moving technical changes.
Yes, I believe that's exactly what's happening. Investors as a whole are able to shape their own reality: If enough of them talk about valuations taking a southward turn or a "bubble popping," then it can quickly become a self-fulfilling prophecy. The opposite case is also true, of course.
They'd need to prove there was evidence.
That old saying comes to mind: as you make your bed, so you must lie in it.
Storify, or the embedding of it, hid some tweets from scrolling, I had to select-drag to make them visible:

14/Seventh: Even if you CAN raise an up round, you are increasingly likely to incur terrible structural terms like ratchets to chin the bar.

15/That nice hedge fund investor willing to hit your valuation bar? Imagine him owning 80% of co after down round. How nice will he be then?

16/Eighth: When market turns, M&A mostly stops. Nobody will want to buy your cash-incinerating startup. There will be no Plan B. VAPORIZE.

17/Finally, there are exceptions to all this. But if you're reading this, you're almost certainly not one. They are few and far between.

18/Worry.
What's with the negative comments about the scrolling? It works fine either drag-mousewheel scrolling, flicking the mouse wheel, dragging the scroll bar on the right, or using a trackpad.

The main content, the text, scrolls as normal thoughout, using any preferred method.
Challenging Y Combinator in the Enterprise Space
Then they have the secret to manage depression because they've been catching up for so long it's a miracle.
This article doesn't define what a "drink" is. It also says:

> Do you drink a glass of wine with dinner every night? That puts you in the top 30 percent of American adults in terms of per-capita alcohol consumption. If you drink two glasses, that would put you in the top 20 percent.

Which, in context, is weakly linking "glass of wine equals one drink".

England talks about alcohol units. One unit is, for example, 125 ml of wine with an ABV (alcohol by volume) of 8%. Even though wine is recently getting weaker it's tricky to find wine as weak as 8%. 13% is more typical. If someone poured you 125 ml of wine at a meal you might think they'd made a mistake. Try it yourself now to see how small it is. 175 ml or 200 ml are more normal serving sizes.

200 ml at 13% is 2.6 units. Two of those is 5.2 units.

So, really, people need to learn how much alcohol they're drinking. You get the health benefits from alcohol when you drink one unit per day; risks start to rise after that. Being teetotal appears to be as harmful as drinking maybe 5 to 6 units per day, even when corrected for people who are teetotal because of health history.
That study defines "moderate" as 1-2 drinks a day, if you look at the chart in the article you linked, >6 drinks per day had higher mortality rate.
Well, if drinking was not causing any problems for you in life, then the action itself cannot be a problem, no?

Isn't being a functioning alcoholic the same as, um, say, a foodie? or anyone with a dedicated hobby?
That would be ideal. In the meantime, I’d take a dramatic decrease in the risks and expense of elective surgery. I would gladly sacrifice a year or two to get most of my body replaced if it meant my shelf life would be extended by significantly more than that.
'the cartel was only possible because of a government created monopoly'? Absurd on its face, as the cartel participants were not all licensees of the same patent.
> (Building that part, auto-scaling groups and replacing dead instances, is probably the hardest part of this whole thing, even with a provisioner like Chef or Puppet.)

Not so much with Zookeeper, Eureka, or etcd.
I thought the US government could already run arbitrary code on a running device via means of the baseband OS/modem? e.g.

PDF(!) https://www.usenix.org/system/files/conference/woot12/woot12...

So is this whole thing REALLY about the US Government losing access or more about them not wanting to expose their over-the-air code execution techniques?

Since presumably if they capture an already running device, they can just get the warrant, and ask the cellular network to send their specially crafted packet (which can unlock the phone, SMS the encryption key, or similar).

Sorry but if the Intelligence Services cannot unlock an encrypted device STILL RUNNING then I'll eat my hat.
Modular JavaScript Patterns and Specifications
Anti-advertising Ello is already attracting brands
I'm curious about the specific questions asked.

For a few years I drank so infrequently that across a year my weekly average would be below 0.25 drinks/week, but I wasn't a "never" drinker. There might be a difference between people who literally never drink (recovering alcoholics, lifelong teetotalers) and those who do drink, but who do so so infrequently that their average would round down to 0 depending on the question asked.
You're missing the punchline: Apple left the front door unlocked and open, and once they noticed, obviously closed and locked it.

Now the FBI complains they can't just go through the front door anymore. Well yes.
Step 1: Have the stenographers at the Washington Post publish your scary press release as "news" full of emotionally charged hyperbole like "Apple will become the phone of choice for the pedophile".

Step 2: After the next telegenic kidnapping / bombing / school shooting, claim "I told you so" as the perpetrator would have been stopped if not for a secure phone / encrypted chat / requirement to get a warrant.

Step 3: 95% of the public demands mandatory backdoors, criminalizing strong encryption, and warrantless dragnet surveillance.
I like the one on https://shellshocker.net/ but I'm unsure of it's license.
How to Create a Disposal Phone Number, SMS and Email Address
poking fun at people? It's not funny unless it's funny for everyone. Poking fun in a hurtful way is bullying.

Hopefully we never work together.
If you would like to perform similarity queries on your time-series please try simMachines.com (I am the founder)

We offer cyclic time warp search, time warp search and any other metric of pseudo-metric you can come up with :-)
Agreed, and it's shocking that this Washington Post article does not raise these points at all, or consult an "expert" that is not repeating the same PR rhetoric. For normal people to understand the issue and take a stance on it both sides should be illuminated. It could have been as simple as including Apple's or Google's original statements as to why they are taking this stance.
I was using FF too, but I could start the msdos prompt from start menu. I was able to open explorer.exe from it and I tried to ping 8.8.8.8 but then the screen went black.

It was fun though. The mouse is a pain in the ass.
Can you be more specific? I think the language features and the ability to pass structured data vs text, the OOP features are what all shells should be doing in the new millennium.
Google's mobile game Ingress enables players to create user-generated missions
FTA: The irony, some say, is that while the legal and technical changes are fueled by anger over reports of mass surveillance by the National Security Agency, the consequences are being felt most heavily by police detectives, often armed with warrants certifying that a judge has found probable cause that a search of a smartphone will reveal evidence of a crime.
Thank you for checking out DSM! This comment saved me a bunch of time.
France introduced minimum unit pricing[1] for alcohol. They saw a reduction in cirrhosis and a more profitable drinks industry.

[1] along with an advertising ban and reduced drink-drive limits.
To me, by far the biggest advantage of generics is that it makes it a whole lot easier to understand function signatures. I develop on both Android and iOS and I can't even begin to count the number of times I've read a function definition, seen that it takes an (NSArray *) as a parameter and had to trudge through 5 layers of indirection(either upwards to find the construction, or downwards to find the use) to figure out what that array is supposed to be filled with. Contrast that with Java on Android, if a function takes a List I can immediately tell what type of list it's expecting. It's true that if the code had proper tests and a good architecture this shouldn't be an issue, but when was that ever the case? You just get handed a git repo your predecessor left and are expected to read the code and understand it.
Sad to hear that. Not sure how I've missed this. I'm a paying customer since day 1, so, I've done as much as I could to help the project.
I think that under this noise both OS is stuffed with bookmarks heavier than any time before.

Ouch, those Apple and Google guys so bad that they following forth amendment, poor and evil FBI and NSA they can't do anything with american companies. They soo-o-o angry about their OS security that you definitely could trust it.

And don't, and again, don't use this bad bad TOR and other security stuff of bad hackers full of trashware: http://securitywatch.pcmag.com/apple-ios-iphone-ipad-ipod/32... that are suprisingly sticking at the top of your application store.
In North America, a drink usually refers to a standard 12oz (355mL) bottle of beer at 5% ABV. This is about 1.775 times your "unit."
GCC's vectorized loop is using the usual "round-up" method, but we can easily implement the distributive method there by mixing 32 and 64-bit arithmetic:

; xmm7 = 0 magic 0 magic
; xmm6 = 0
; xmm5 = 0 (accumulator)
division_loop:
vmovdqu xmm4, [rax] ; xmm4 = w3 w2 w1 w0

vpunpckldq xmm0, xmm4, xmm6 ; xmm0 = 0 w1 | 0 w0
vpunpckhdq xmm2, xmm4, xmm6 ; xmm2 = 0 w3 | 0 w2
vpmuludq xmm1, xmm0, xmm7 ; xmm1 = w1 * magic | w0 * magic
vpmuludq xmm3, xmm2, xmm7 ; xmm3 = w3 * magic | w2 * magic
vpaddq xmm1, xmm1, xmm0 ; xmm1 = w1 * magic + w1 | w0 * magic + w0
vpaddq xmm3, xmm3, xmm2 ; xmm3 = w3 * magic + w3 | w2 * magic + w2
vpsrlq xmm1, xmm1, XX ; XX = shift constant
vpsrlq xmm3, xmm3, XX ; XX = shift constant

vshufps xmm1, xmm1, xmm3, 10001000b ; back to w3 w2 w1 w0
vpaddd xmm5, xmm5, xmm1 ; add to accumulator

add rax, 16
cmp rax, rbp
jnz division_loop

The shifts can be further tweaked to allow to use a blend instead of a shuffle, in case there's a penalty for changing from integer to floating-point domains. Saturating increment also works well, despite there not being a PADDUSD instruction; it can be done in two cycles:

; xmm6 = -1 -1 -1 -1
vpcmpeqd xmm3, xmm4, xmm6 ; xmm3[i] = (xmm4[i] == -1 ? -1 : 0)
vpsubd xmm4, xmm4, xmm6 ; xmm4[i] += 1
vpaddd xmm4, xmm4, xmm3 ; xmm4[i] += xmm3[i]
This is exactly what I've been looking for but couldn't find! Fantastic. Sendgrid strips HTML tags in their Template Engine but doesn't document it -- I debugged their WYSIWYG editor and gave them the source of the problem, but they asked me to send a video. After 4 rounds with support I had nearly given up on finding a good service that mashes developers with the marketing and design departments.

Three tips:

1. Please optimize your SEO! Searching for transactional email, transactional email service, transactional email comparison, I don't and didn't see you in results. (Guess I should have asked Hootsuite :)

2. I signed up from my mobile so I wouldn't forget -- your dash seems to work great except the gravatar/account is fixed position.

3. I tried to sign back in to confirm #2, but the log in link is nonexistent on mobile.

Congrats on the funding round from a fellow BC startup! Hope to see you around :)
Because they told you they think you might have left your oven on.
125ml is actually about how much wine you should be pouring into a glass at a time.

Random image I found illustrating this: http://i.imgur.com/27971Kr.jpg
Would that prevent the end user from adding another layer of security onto the device? Kind of how you can log on to my machine, but that doesn't make it any easier to decrypt my Truecrypt partition (I think...).
I can't wait to see the FBI point the finger at the NSA and say something to the fact of "The FBI is trying to protect you, we aren't the NSA violating your right."

That would be golden
I really don't think a cannabis addiction can be classed as the same life ruining addiction that alcohol is. Maybe because of it's legality it can ruin lives but the parent was specifically talking about after it became legalized.
Roshi sits on top of Redis, so this solution can be quite expensive.
If you attempted to do this, you would likely end up in jail for a very long time under the CFAA. Fair warning.
Beware. I became a manager after 5 years of development. Now, 7 years later I'm back to developing software :) Much better.
Presumably it uses the US Standard drinks, found here: http://www.cdc.gov/alcohol/faqs.htm#standDrink

To save the click, it's 14g of alcohol, which is roughly a 12oz beer (5% ABV), 5oz wine (12% ABV), and 1 shot of 80 proof.
Forced key disclosure is legal in the UK, with up to 2 years (5 if terrorism is involved) in prison if you fail to comply. In the US it's more iffy and you'd be trying your luck with the judge.
The funniest part is that as a customer, I still have very little guarantee that the company can't access the phone's content at will; it's still promises to me.
Not sure what people are talking about, really, the scrolling is basically unchanged. The native scroll bar exists and is 100% functional. Page-up/down/space just works, seemingly without involving Javascript or anything, and with no delay.

I could select and copy paste the entire text! How refreshing.

The top navigation bar is unobtrusive, functional, and the links are actual anchors, no javascript involved and ready for sharing. In fact, the whole page renders fine (with very minor feature downgrading) with Javascript disabled.

And it looks fantastic on both a 24" desktop screen (Chrome and Firefox) and on a 4" mobile screen, with a typically less-optimised-for browser (Mobile Firefox) to boot. I'm enjoying the high-res, screen filling photos.

Printing doesn't work well, but I think we've all moved on (and like I said, copy paste does work). I can't say for sure how accessible it is, one would think the BBC has some sensitivity for that issue.

Honestly, I think it's fantastic. On the other hand, it looks so polished I haven't even started reading it.
Security Update on CVE-2014-6371 Shellshock
I can see a daily drink or two (realizing that the 'or two' does make a difference) as what should be a normal high end, but the top 10%? Wow, I'd imagine that drinking a dozen or so drinks a day would quickly ruin your health-obesity, liver problems, run ins with the law, etc.

It seems like in the US there really isn't that much of a nationwide culture of moderate drinking-drinking being the thing you're only supposed to do on non work nights or for celebratory occasions. I think controlled moderate drinking (the glass or two of booze a night) tends to be looked down upon as being one step away from being in the gutter.

But that's just my own opinion, bashing our somewhat prudish society.
If I make a (possibly false) assumption that our coherent extrapolated volition would include guaranteeing the survival of us and AI that makes that volition happen, then it does seem to imply that it will include destruction, assimilation or permanent power-limitation of all other life in the universe.

And an outcome of Friendly AI is all humanity 'living happily ever after' - if we avoid the details of what exactly would 'living happily' look like (since we likely are unable to define that before actually implementing FAI and/or CEV, and the exact result could also extremely vary depending on flavor and degree of [un]Friendliness that is achieved, and none of us know if that will involve ponies), then 'living happily' would quite likely include converting the entire universe to an environment where the 'living happily' happens nonstop for the rest of eternity.

And, unless there's the rather implausible 100% agreement of everyone or an ability to create arbitrary numbers of new, separate universes, yes, Friendly AI would still involve either some people being 'forced' to join or those people being left behind in isolated world[s] by almost everyone else. I see no reason to assume that the maximum possible level of Friendliness can make 100% of people 100% happy 100% of time. Choosing universe-future A prevents universe-future B from happening, and anyone who prefers universe-future B will be 'forced' to accept universe-future A if that is the most Friendly choice by whatever exact definition of Friendliness that happens to get implemented.
E-mail doesn't have to be bulk to have spam in it. Not that I agree that the implication the parent post makes will be widespread, but I can certainly see some companies using such e-mails as an intrusive (spammy) marketing opportunity.
That's actually the recommended amount of alcohol intake though. Clearly, alcoholics shouldn't be drinking, but for non-alcoholics there are significant health benefits to having a couple of drinks every day (to the point where NOT drinking is actually considered a risk factor for heart disease).

http://www.ncbi.nlm.nih.gov/pmc/articles/PMC28294/
Well, Network Manager for starters is a binary and not a shell script like the dhclient-script.
How Big Data Is Failing Us