skysight-inc/HackerNews huggingface dataset:
So I wondered if it is possible to run a forum type
community - something along the lines of [elgg][1] or
[Friendica][2] - but without the MySQL or other type of
database backend?

You're attempting to optimize the wrong part of the architecture, I think.

A simple read-only query to SQLite or a NoSQL database is fast - generally just a few milliseconds and often less than one millisecond. The odds of you doing it much faster yourself are low.

Rendering pages is the slow part. Because each forum page you render is going to involve multiple queries to your storage engine (whether you go with SQL or roll your own) and a ton of string manipulation/concatenation.

So what I'd do is....

- Use SQLite for my storage engine. The 256 or 512MB of RAM on a RaspberryPi is plenty for SQLite.
- Cache rendered pages (and/or page fragments) to disk, rather than writing my own storage engine.

I'd use a lazy caching/prerendering strategy. Suppose a discussion thread has 50 pages. One of your mods deletes a post on page 1. Now all 50 pages need to be re-rendered. You have two choices. You can either re-render all 50 pages right away, or you can simply delete all 50 pages right away and re-render & re-cache them as needed, when a user actually requests one of them. I'd do the latter.

I've used this strategy myself. It was a very common paradigm back in the 90s and early 2000s when web servers commonly had hardware specs (700mhz, 256/512MB RAM) that was quite similar to what a RaspberryPi has today. The hardest part of this strategy is getting cache invalidation correct. Every time your code writes to the database, it has to also be aware of which cached pages/fragments it needs to blow away.

(You know the old joke: "There are only two hard things in Computer Science: cache invalidation and naming things.")
My point was about the decline of US industries, not about the income of workers. What matters here is the price of the produced products and you're at a disadvantage in a global economy when the prices are too high.

I suspect that either option (reducing wages or value of the dollar) would reduce buying power of US citizens since US has to import so many goods thus creating downward pressure no matter which option you choose.

Anyways, I agree that those problems have to be solved but I'm quite sure that the current consumption level is unsustainable and that this will change in the future in some way or another. Same goes for the EU. (where I live)

I just hope that this will happen in a peaceful way.
I used to put a cp -rp of the old drive onto the new drive. I think I have three or four drives deep by now, back to my ancient 386 running Windows 95.
Firebird 2.5.3 sub-release is available
Ultimate List Builder Pro|Build Your List 4x FASTER
Do "westerners call all Muslims (and Sikhs) terrorists"? Rubbish.

Do "they ignore that 85% of the direct victims of terrorism ... are non-fundamentalist Muslims"? No, they don't.

People throwing around blanket statements while complaining about blanket statements.
That kind of breaks down when you consider the fact that Wifi Networks can span multiple APs, and each AP can be running multiple Wifi Networks. For example a corporate or education campus where you have multiple APs for coverage, and then might have several SSIDs xyz-network, xyz-guest, xyz-lab that are running on every AP.
Now try the Hunan dialect where they pronounce h as f and (stressed) n as l.

Yes, they pronounce their province "Fulan"
Deploying Drones To Get An Overview Of Factory Farms
July 2014 Author Earnings Report
At noon, remaining Christians in Mosul will be killed
What makes mental time travel possible? (2003)
Uber is skipping some necessary steps for doing business over there (like giving yearly donations to the police pension fund and making campaign contributions).
It seems in this case neither the passenger nor the cop was crystal clear about the law. Regardless.... Nothing actually happened. Nobody was wrongfully arrested. A cop said some stuff that seems legally questionable, but did not act on it. That's not "really weird" in my book.
No, I think one would assume they are all directives, and therefore the computer would complain about the third one which is a contradiction.
Just curious, not nitpicking - how are you calculating the statistics without logs?
When you claim that to evolve an intelligent agent, the evolutionary algorithm itself needs to be more intelligent, you are essentially arguing for intelligent design. In the light of modern science, this is clearly wrong. The world is full of emergent complex phenomena (such as intelligent humans) that are result of several simpler "rules".
Can you point to any evidence that any actions in this article were caused by, exacerbated by, or in any way modified by any participants' views on the race of any other participants?
Portland to Seattle via train is quite reasonable. The stations are both downtown.
You store simple counts, and whenever a particular type of query is made you increment the relevant count(s).

You can count all the red cars that pass by without logging their license plates, model type and number of passengers.
It's been maybe 15 or so years, so I'm similarly pretty far down the rabbit hole, but I definitely remember having a lot of trouble with:

x = x + 1

At the time, it seemed patently obvious that it was a false statement, because there is no single value of x for which this is true.

If the situations are analogous, my guess would be that you would assume that each of these statements is an assertion, and that at least one of them must be false. Intuitively, I'd guess that it's the last one that people would assume would be false, because as you're reading from top to bottom, you've already "accepted" the first two.
Baseball seems very fast paced when compared to cricket, a game that can stretch over 5 days with routine breaks for lunch and tea.
One section of original lectures are freely available via MITs OpenCourseWare youtube channel: https://www.youtube.com/watch?v=2Op3QLzMgSY

It would be quite difficult to beat these lectures, while they appear a bit dated, the content is great.

SICP is a great way to learn about programming, although I am very surprised they got through the whole book in an introductory course. Chapters 4 and 5 cover some topics I was barely aware of nearing the end of my formal CS education.
There's a practicality aspect to it too. The last team I worked on had 3 brits, 4 indians, 2 pakistanis, 1 greek, 1 portuguese, 1 french, 1 australian, 1 kazakh. The misunderstandings and arguments were incessant and no one was particularly happy.
Someone also asked four days ago.

https://news.ycombinator.com/item?id=8041789
I've had potential landlords spontaneously offer me a discount only because I was white, well-dressed and mentioned a 9 to 5 job. That certainly isn't fair.
So you can convert them back again, right?
This is a very interesting area of research. The state of the art in motion planning for robotics actually uses multiple heuristics at once with A*.

http://www.roboticsproceedings.org/rss10/p56.pdf
It is sort of possible to do this statically. The benefit of static websites is not only fast loading, but also that GitHub Pages offer very high-quality free static hosting.

For a forum:

1) You'll need a server with an API for submitting posts. You can use the filesystem as the DB, if you'd like.

2) This server will update the static website (i.e. regenerate it, and push it to GitHub Pages) on a regular interval (which could be as small as one minute).

So it's definitely doable, and offers huge benefits. For one, static pages can be served very efficiently. If you use GitHub pages, you can leverage its global Content Delivery Network (CDN) for free. And you are guaranteed a nearly zero downtime for free by GitHub.

The only "drawback" is the insignificant one minute delay before a new post goes "live". Shoot me an email if you'd like to collaborate on a static forum project!
The police officer caused undue delay and distress to the passenger of the vehicle. That's most definitely harassment.
Amazed that the research company that discovered the fraud is called Gotham City Research! http://gothamcityresearch.com/
He started to, then he realised he'd really fucked up.
IBM Country Club was Awesome
My slightly informed opinion about biotech consumables is that a plasmid construct is only half of the deal. What you need as well - and that is indispensable - is a competent technician who will isolate and purify the overexpressed protein and run assays to confirm activity.

Competent technicians don't grow on trees. You are looking at a salary of 60 kUSD/year + benefits, and then you start running numbers if reagent kits might actually be the cheaper option.
Ok - was curious because they're counting cache hits ('which cars have a passenger') and a few others.
Also more here: https://news.ycombinator.com/item?id=8041215
same of this stuff applies to tennis as well...there's too much time spend between serves with all the little habits each player has, or using towel etc., plus the break every two games !? It's hard to even consider watching a full 5 set game.
The US still exports a lot, and is a leader in services and knowledge. Sure, china produces iPhones, but all the R&D is done in California. Heck, even the natural resources consumed for our imports aren't coming from labor rich manufacturing countries, but from places like Australia.

Technology can change a lot. Our rate of food consumption was considered unsustainable until the green revolution. We were supposed to run out of oil 20 years ago, and we are getting better about recycling. It doesn't have to become a distopia, though it could.
Is it legal in Denver to for police to demand a non-driver's ID?

Why did no one ask the officer "Am I being detained? Am I free to go?" when he did not state a reason for the traffic stop and started asking probing personal questions?
But people were just doing their jobs and I didn't obstruct them.

No, but in the second instance they inconvinienced you. I wonder what you would have done had the outcome been different in either of these two instances?
Is the Search for Exoplanets is Futile? Gliese 581g a Big Disappointment
It sounds like our disagreement is only about whether it is "really weird" for an officer to request a passenger's ID during a traffic stop. The City of Denver has this to say on the subject: "Depending on the circumstances, officers may request identification from passengers as well." http://www.denvergov.org/police/PoliceDepartment/TrafficEnfo...

And as you say, the officer probably found it odd that there was a passenger riding in the back of an apparently private vehicle.
True, he didn't follow through, but he did bring it up in a way that suggested he was planning to enforce his flawed understanding of the law. My point is that he shouldn't even bring it up if he is uncertain.
Is there any way for you to prove that you don't log stuff? In the sense of [1].

[1] https://www.schneier.com/blog/archives/2013/10/can_i_be_trus...
I can't seem to find any privacy agreements or EULAs anywhere on the site. I can no longer tell if that pleases me or scares me.
Balancing a Personal Life and Career in Web Development
Tests match have become more and more rare though with the increase in twenty-twenty matches.
I would expect that every company pays their employees' business travel costs. (With some "ordinary and reasonable" caveats, of course.)

Why would an employee pay out of pocket for something that's for the employer's convenience/at the employer's discretion and direction?
That is pretty sweet, but is there any browser that does DNSSEC by default?

And even if there is aren't we back to trusting whomever signs DNSSEC? No doubt some US corp that had their private key national security lettered?
Football is a much worse offender. The amount of time spent waiting around just goes to show how it was perfectly made to generate TV advertising revenue.
> Can

There are various forms of cricket. What you're referring to is test cricket. However, the shorter forms of the game can last as little as 3 - 4 hours.
I would've thought that the poorest would be in the weakest position to move - no means to pay, fewer opportunities to hear of alternatives, little contact with family who might be elsewhere, etc.
The article seems to totally ignore this, but how much money did Gotham City Research make from shorting this company?
Oh crap. Reading further, he does indeed recommend bstring. It wasn't just a random library in a one-off example. Some of the examples also show he doesn't care about arithmetic overflows much. I didn't find him talking about these anywhere much, either (though I skipped a few chapters).
And a damn shame that is, I say ! Not that I disapprove of 20/20's mind, but they should not come at the cost of proper tests.
Assuming that all files are encrypted with the same passphrase, and you crack the passphrase, not the key generated from kdf(salt, passphrase), complexity is O(1) for Minilock as well.
Show HN: Top news from the command line
The browser doesn't need to do anything. The resolver will simply not pass an unsigned or incorrectly signed record from a signed zone. You can test yours here[1]. Google DNS[2] supports DNSSEC.

Were you thinking about DANE?

[1] http://dnssec.vs.uni-due.de/

[2] https://developers.google.com/speed/public-dns/
Can I buy a server and only pay after I mine its price in bitcoins with it? :-)

(pretty please with sugar, don't take this joke seriously)
iOS 8 is beta, they are totally fine about not supporting it there.
If we were using an SSH-type model, there's no particular reason why APs which you control which share an SSID can't also share a private key. If you are the administrator of the APs and you want them all to be seen as the same network, you could just move the appropriate keys onto the appropriate routers. Running multiple networks is the same thing - generate one key per SSID and duplicate them across all APs.

According to the other comments, apparently something like this is already a feature in WPA2, so evidently it doesn't break down too much.
The first few iOS betas are notoriously rough. It's like this every new version of iOS - it takes a few betas for Apple to work out major issues. Through almost all of the iOS 7 betas, Spotify crashed every time I tried to use the volume up/down buttons on my headphones.

I wouldn't blame these guys.
I actually believe this is the preferable approach for performance portability reasons. It's easier to reason about cache /vectorization performance across architectures and compilers when dealing with a single pointer and calculated indices. If you absolutely have to have a pointer to say the first element of a row (resp. column if using column major) you can always do this:

double* dmatrix_get_row(struct dmatrix* m, size_t r){
return &m->data[r*m->cols];
}

A pointer-to-pointer approach I think is most suitable for an actual array-of-arrays, where the length of each subarray can be different. Then you store an array of pointers to the first element of each subarray, and if the data is contiguous you can use that to calculate lengths as well.
With TV timeouts, sure. But generally this seems mitigated in football IMO -- the combination of:

A) the play clock (requiring the offense to start their next play quickly) and;

B) the fact that every single play has one or more players interacting with the ball, and some sort of an outcome from it.

Football has a methodical pace similar to baseball, but the biggest difference IMO is that in baseball a high percentage of "plays" (pitches in this context) don't actually result in any "action" and instead are just a ball or a strike.
"Prove" is a pretty strong word. I looked for and didn't find a lawyeresque privacy agreement, but even if I did that's not proof either since they could lie. They could invite you to their data center, show you their code, etc, but that is still not proof since they could be hiding things from you, or simply wait until you leave to flip the "log all data" switch.

It always eventually comes down to trusting a company, or trusting strangers. You're already doing this, because you are viewing this on some form of a computer that you didn't completely hand-build, and are running software that you didn't build from scratch using your own, self-built compilers.

I say a potentially better way of looking at this problem is: I know Comcast logs my DNS queries and who knows what else. I however don't know that this site does. From a pure privacy standpoint, I have nothing to lose by switching over and everything to gain.
I don't think it's public knowledge. They did make money though. It's an interesting company and I wanted to submit another link[1] specifically about them but it's behind a registration wall.

[1] http://www.ft.com/intl/cms/s/0/a841ea38-ca4d-11e3-8a31-00144...
That's very cool! They really are following the hacker spirit; the enthusiasm they have for their work, the try-and-see discovery of capabilities and the joy they have in sharing what they've done. It's very refreshing.
Cleaning up Safari, for your pleasure
Scientific Data Has Become So Complex, We Have to Invent New Math
You store simple counts, and whenever a particular type of query is made you increment the relevant count(s).

Exactly.

As a plus, precise accuracy isn't necessary here, no-one's going to care if you report 39,893 instead of 19,898 queries per minute.

Simple counters + regular reset to zero would do the job well enough.
For lobbying purposes, large unions (such as law enforcement) are just as effective as capital - both are simply means for obtaining votes.
While its true that someone needs to do the things which you mentioned, basic protein expression and purification are standard skills learned at the undergrad level for biochem / molecular bio majors. Depending on the composition of the plasmids, it should be very straight forward, and presumably the manufacturer will also provide plasmid-specific protocols to help. An existing lab tech / lab member / the investigator themselves could quickly pick up this work, or a tech could be had for a lot less than 60 grand a year.
Reality check triple :)

It depends a lot on where one's from, and/or what one's used to. I can only speak for Europe and larger cities in Eastern Asia: A rail connect from airport to downtown is commonplace, often high-speed, and is taken by the vast majority of passengers that do not have a private or hotel pick-up, including business travelers.

A fare of $100 to 'get across town', unless I was in a real hurry to make up 20 minutes of time for a really important point-to-point connection, would horrifies me, but occasionally the bullet has to be bit.

[For smaller cities without rail infrastructure, taxi/cab fares tend correspond to a lot less.]
DNSSEC in 2014 is a liability, not a benefit. Essentially, all you're signing up for when you use a 3rd-party DNSSEC server is that someone's misconfiguration is silently going to break your queries.

Virtually no important services on the Internet rely on DNSSEC. Using it now is pure downside.

What's especially funny about this is that your DNS queries to these third-party servers are not themselves encrypted; in other words, you're sending your DNS UDP packets halfway across the Internet for the pretense of cryptographic security.
Your understanding is that millions and millions of Americans are "watched very closely"? There are a lot of Muslim citizens.
I don't think the officer was in the wrong here. The law had changed, but he acted on something that was still illegal under the new law: not having commercial insurance. He was right, the Uber driver was violating the law. Its to his credit that he resolved the uncertainty, in the moment, in their favor.

That is actually a public interest issue. If an Uber driver hits you, and his personal car insurance doesn't cover it because it was commercial use, he can just declare bankruptcy and leave you stuck with the bill. This is why states require you to have insurance before driving.

Indeed, the irony of the article is that the police officer is the one who had the author's interest at heart. When a driver gets into an accident and a passenger is injured, the driver's insurance pays for the passengers's medical expenses. If the Uber driver's insurance denies the claim because he was engaged in commercial use (and probably lying about things like annual mileage and purpose of the vehicle), then the author is up shit creek.
When Are Business People Entitled To Be Entitled?
Thems some mighty tall claims. Cite sources please?
Great Write Up. There is a ton of information packed in there. C++17 looks like it will be a major improvement like C++11 was. Very much looking forward to Modules.

The (elem : range) proposal seen here: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n385...

I'm really looking forward to as well. I wish it could have been in C++14. STL (the guy) is right when he says (auto elem : range) is very tempting. Its so easy for a novice user to not understand they are making a ton of potentially (and likely) unneeded copies. Also in code review its quite common, to see (const auto &elem : range) when it should be (const auto &&elem : range).

After getting bogged down years ago in a crappy C++03 codebase I eased off C++ for a few years, but i must say, the language is really getting better. 5 years ago if you would have told me I would be looking forward to writing something major in C++ I would have laughed.
The point is this has nothing to do with software or anything of interest to Hacker news. Why bother reading HN if it's going to be cluttered with posts and comments that clearly belong elsewhere (Huffingtonpost.com, Disqus, Twitter whatever...) then some sour grapes crybaby who seeks attention voted down your Karma to prove a point. I'll still read HN but some participants are just trollish. I'll never hire or work with anyone with the usernames above because in my world civility and good behavior counts, even with the "little things" like respecting HN guidelines (see below) but it's your life and do what you want with it. Sooner or later you'll put your foot in your mouth in the very worst way and panic all day over your mistake.

Hacker News Guidelines
https://news.ycombinator.com/newswelcome.html

What to Submit

On-Topic: Anything that good hackers would find interesting. That includes more than hacking and startups. If you had to reduce it to a sentence, the answer might be: anything that gratifies one's intellectual curiosity.

Off-Topic: Most stories about politics, or crime, or sports, unless they're evidence of some interesting new phenomenon. Videos of pratfalls or disasters, or cute animal pictures. If they'd cover it on TV news, it's probably off-topic.
I don't really see how this is a cheat sheet.

What is a cheat is the benchmark graph the author has taken from the Julia site, which lists languages in decreasing order of benchmark performance - except Julia, which is listed before Fortran, despite being slower at everything except parsing integers.
Extraordinary claims require extraordinary evidence, so I think perhaps you ought to start by naming some important service that does rely on DNSSEC. How about a bank, or a major email provider?
A few years back I miscalculated my self-employment tax. Didn't get audited, just got a letter saying "You miscalculated and overpaid", followed by a check for the $100 or so.
my result was: "Your answers are consistent on the C0 level." I am not sure that that means though?
Besides being a terrible book, it also contains many small mistakes. My favorite one is checking the return value of memcpy() for non-NULL.

http://c.learncodethehardway.org/book/ex44.html