skysight-inc/HackerNews huggingface dataset:
Another fun complication: database stored procedures implemented with non-SQL code. I worked on a project where the client's dedicated SQL ninjas managed to bring the time to process daily extracts from the data warehouse down to 2min from 45min by switching over to CLR (.NET) implementations of the calculations being performed on SQL Server 2005.

IIRC the issue was simply that MSSQL 2005 is just plain slow at doing calculations compared to C# code (the calculations were complex financial models involving large amounts of data and inter-dependencies between that data in calculations, so shipping the raw data to an application was not a viable option).
Um where you're describing context tree you say that root MOC has main queue concurrency and then that main queue has private concurrency, which is wrong. The picture is right

That said I agree on conclusion, I started my first (quite big) core data app constantly worrying about performance, so I juggled all kinds of MOCs around, but then I just threw all of them out, start with a single main queue MOC and only add private queues where absolutely needed.
So when the time comes to change the business logic you have stored in the database, do you have to ensure that every possible client that may use that business logic is updated at the same time? You could version your business logic in the database, but then it seems like you've implemented a version controlled business logic library inside the database.

Incidentally, every time I see people attempting to put business logic in the database it's usually manually updated views or stored procedures. It reminds me of the days of yore of people shelling into production to edit php files. Other than Rails migrations, South, etc, are there usable tools out there for sanely writing software that runs inside the database?
America is different from Europe and Asia. We accept failure here. The cultural generalities in Europe and Asia do not reward try and try again. They hide failure. In America, we tend to celebrate it, just look at our gossip magazines.
I agree, but they are pretty bad. My point was specifically about underplaying their illegal and immoral practices as "building useful software" which is not conductive to useful discussion.

Which ones do you believe aren't true?
"I guess you are not a newbie with Bootstrap nor frontend design"

Your guess is wrong. If you had put the repositories and themes up on GitHub and dropped the price of the book to $20, I would have glanced at the ToC and most likely bought it.
I would always lean on the database to perform simple sums and aggregations unless I was really concerned about turning the database into a performance bottleneck.

If you need to add simple logic above and beyond this, stored procedures aren't sexy but they can be a good compromise that avoids shipping data around and re-implementing SQL in your application server.
Kara (http://www.swisseduc.ch/compscience/karatojava/kara/) is an excellent and fun game to learn finite state machines. Also, there are variants to learn Java and concurrency.
> Utilitarianism is bankrupt moral philosophy, so you won't get a utilitarian justification from me.

> Unless you just mean "utilitarian" to mean "useful" or "efficient."

Economic efficiency and the value proposition of utilitarianism are defined identically, so, yes, I'm saying "utilitarian" to mean "efficient".

> I really don't have the patience to go deep into philosophy and economics in HN comments

Then you probably shouldn't make value claims about properties of economic arrangements.

> I'm not saying that it's good for certain people to know less than others. I'm saying that it's inherent in human society.

You seem, then, to have completely abandoned the "positive property" claim that I asked you to support.

> The whole point of a stock market, to take a simple example, is so that a company can raise money based on certain people's belief that the company will do well. Sometimes they are right, sometimes they are wrong. They want to take the risk. The whole situation comes from information asymmetry.

No, it doesn't. Sure, the point of a stock market is to allow firms to raise money. But information asymmetry isn't essential to it. Some difference between the market participants is necessary for exchanges to occur in the market, but difference in preferences (i.e., different utility functions) is sufficient (this can manifest in, e.g., different sensitivies to risk and different preferences for current vs. future goods) to support a market without asymmetric access to information.
It's just self-promotion disguised as a testimonial. See his previous submission.
Anyone here remember Omega Tank by Origin? An old DOS PC game that gave you a simple but effective environment to program combat tanks to fight against the computer or programs written by your friends. Awesome game.
I'm currently doing a Keto diet (very similar to Paleo) and -at least for me- this is definitely the case. I'm addicted to carbs. I cut carbs and I immediately start losing weight and forget about constant hunger. Whenever I eat anything with carbs, my weight loss stalls and I start having cravings again, all the time.

Edit: Oh, and by the way, I've lost 40 lbs since I started :-)
The judge will enforce the decorum of his courtroom, and you don't want to be a lawyer on the receiving end of that.
Building portable Jekyll
@lwhalen

I am not really disagreeing with you. I have also met a lot of people like this.

I was trying to point out
1) How it has become really hard to work your way out of poverty with an entry level job these days.
2) How a life of constant failure and lack of guidance leads to personality trait which seems to almost predisposed towards failure.

"even if your girlfriend breaks up with you, you still get your butt into work the next day. No whining, no excuses. It might not be the Greatest Job Ever (tm), but it's better (IMHO) than sitting around leeching off family."

This shows a good work ethic in you, a strong sense of values and I agree with it and admire it. But having raised in a tightly-knit family with no financial issues, I wonder how I would have turned out if I had grown up in the a family like the one mentioned in the article.
Was it a Mac? I'm sure MacBooks have the ability to be tracked if the owner allowed it. I have a MacBook pro and the guest account allows a thief to login and I can track them through the guest account.
Letting them find their own content is something I'd question. On Wikipedia there's a list of (explicit) images you can't include in any other pages. I would hope there is, or would make, an extension that limits access to those pages on my children's local copy of wikipedia.

I've had very little experience with guiding children on non-tablets. Once I ran the iPad simulator, another time I put the resolution to the smallest possible. This made the buttons big and the amount of the webpage visible as manageable as possible. The first is much better for any children who've been on an iPad, even if they now need a mouse. The latter is passable.
Beat me to it. :)
I agree it's expensive, there is no way I would pay that price and I would like to read it. I read a lot and it just feels inadequate to me, I never actually paid that much for a single book. The themes on the pic don't look any great either.
Have you also used Acme (non-trivially)? The UI makes heavy use of text (the whole thing being a text processing environment after all) but the graphical aspect is highly significant, and most of the (fairly complex) interaction is via mouse.

The Plan 9 userspace excels at tying text-using utils, but the traditional Unix CLI is not the means by which you tie them. Even the terminal is quite far removed from a typical command line.
No, stfu, my "world" isn't quite so black and white: The choice isn't between prosecution or free-for-all, but if you're trying to incite freedom of expression over hateful speech, all while bringing disrepute upon a law school, you probably aren't going to get very far.
One app for each gadget? No way This is not the Internet of Things we want
I'm hearing a lot of companies talking about the desire for "T-Shaped" Developers. I believe this means they do have deep knowledge in at least one area, but also have more general knowledge in a range of topics besides their specialty.
I am well aware of what Top Gear is, and that's why I stopped watching it almost as soon as I started, and wondered why the hell anyone else watches it, either. I don't think establishing a past pattern of lies is an excuse for future lies, nor do I think lies presented as facts are "entertaining" in the least. They're just lies, nothing more, nothing less, and they and their peddlers should be treated as such.
The Most Interesting Marketing Campaign in the World
Then they need to get better at databases and coding PL/SQL TSql or what have you.
After touch screens, researchers demonstrate recording and replay of human touch
8000, where about 5-6k of them are archived and most of the rest are to read once and archive/delete. I intend to put the archive in something else, just haven't found/made it yet.
Here is a wikipedia article on it: http://en.wikipedia.org/wiki/Chronemics

I am not going to pretend to be able to understand it, but this part seems to be the most lucid explaination:

"Just as monochronic and polychronic cultures have different time perspectives, understanding the time orientation of a culture is critical to becoming better able to successfully handle diplomatic situations. Americans, for instance have a future orientation. Hall indicates that for Americans “tomorrow is more important" and that they "are oriented almost entirely toward the future” (Cohen, 2004, p. 35). The future-focused orientation attributes to at least some of the concern that Americans have with “addressing immediate issues and moving on to new challenges” (Cohen, 2004, p. 35)."

So... maybe a "future time orientation" is a "What's done is done."/"Let's do better in the future." attitude? I am guessing that the connection between this and "racism" comes up when discussing reparations.
You can only validate their file format, you can't validate, say, the quality of their implementation. For all you know they are intentionally generating files that are really easy to crack, or are using a custom rng implementation given to them by the NSA, or whatever. Super smart people might be able to reverse engineer such knowledge, but it would be better if they could look at the code.
I think it all depends on the contract between the girl and the school. Did she agree to such restrictions on a 24/7 basis?
> Wouldn't the above expression cause three sequential loops to run?

No, it wouldn't; that's the really important point about LINQ I was, clumsily, trying to express above [1]. Take this admittedly totally contrived example:

someList
.Where(i => i % 2 == 0)
.Select(i => i + 7)
.Take(5)

This is not equivalent to a bunch of sequential loops. What it is is a bunch nested Enumerators. Here's how it works. It gets the list's Enumerator, which is an interface that has a MoveNext() method and a Current property. In this case, MoveNext() just retrieves the next element of the list. Then Where() call wraps that enumerator with another enumerator [2], but this time its implementation of MoveNext() calls the wrapped MovedNext() until it finds a number divisible by 2, and then sets its Current property to that. That enumerator is wrapped with one whose MoveNext() calls underlying.MoveNext() and sets Current to underlying.Current + 7. Take just sets Current to null after 5 underlying MoveNext() calls.

So all that returns an enumerable, so as written above, it actually hasn't done any real work yet. It's just wrapped some stuff in some other stuff.

Once we walk the enumerable--either by putting a foreach around it or by calling ToList() on it--we start processing list elements. But they come through one at a time as these MoveNext() calls bring through the list items; think of them as working from the inside out, with each MoveNext() call asking for one item, however that layer of the onion has defined "one item". The item is pulled up through the chain, only "leaving" the original list when it's needed. The entire list is traversed at most once, and in our example, possibly far less: the Take(5) stops calling MoveNext() after it's received 5 values, so we stop processing the list after that happens. If someList were the list of natural numbers, we'd only read the first 10 values from the list.

Now, those nested Enumerator calls aren't completely free, but they're not bad either, and you certainly shouldn't be seeing a one second vs microseconds difference. If you craft the chain correctly, it's functionally equivalent to having all of the right short circuitry in the manual for-loop version, and obviously it's way nicer.

So why are you seeing such poor perf on your LINQ chains? Hard to say without looking at them, but a few of pointers are: (1) Never call ToList() or ToDictionary() until the end of your chain. Or anything else that would prematurely "eat" the enumerable. (2) Order the chain so that filters that eliminate the most items go at the end of the chain, similar to how you'd put their equivalent if (...) continue; checks at the beginning of your loop body. (3) Just be cognizant of how LINQ chains actually work.

[1] In the example in the parent, FindAll isn't actually a LINQ method, so there is one extra loop in there. Always use Where() if you're chaining; use FindAll() when you want a simple List -> List transformation.

[2] A detail elided here: each level actually returns an Enumerable and the layer wrapping it does a GetEnumerator() call on that.
As someone currently attending PennApps, I'd be happy to chip in a few bucks to support the person who had their laptop stolen.

Sorry that you have to deal with this Pulak :(
Why Anonymous is doing almost nothing to stop World War III
That's partly due to historical reasons I think. Some of the platforms they intended to run Plan 9 on had very buggy GCC ports. It's also worth noting that that the "native" Plan 9 compilers had some quirks of their own (see http://doc.cat-v.org/plan_9/4th_edition/papers/compiler ). It was never really intended to be a very familiar Unix environment, and they tried to straighten up a couple of things even in the way software is written. There is a POSIX environment available (the APE) but I don't know much about it, I never really tried it.

To be fair, between the "good enough" phenomenon and the licensing problems, it never really took off, which is rather sad.
Is there any way of contributing to this?
Things To Avoid When Writing Articles To Make Money Online
In Python 2, itertools.imap will be faster since it doesn't realize a list. Also, if you are memory constrained, xrange doesn't realize a list either, whereas range does (but the article notes that range was slightly faster than xrange in his tests--I don't know if that's still true in Python 2, the article is 9 years old).

In Python 3, the map builtin is basically equivalent what itertools.imap was in Python 2, so it is the best choice. (Also, the range builtin in Python 3 no longer realizes a list.)
I honestly hated Core Data but then I found MagicalRecord (https://github.com/magicalpanda/MagicalRecord) and it solved all my problems. Given that at that point it takes less than 10 minutes to get functioning, Core Data no longer is a pain in the ass.
>Because a baby whose mother is infected with Hep-B

Well, we didn't elect to deliver in the back room of a whorehouse, or under a tree on the prairie. We went to one of the best hospitals in the country, where blood tests are done in advance of delivery, where these things are discussed and planned as part of the pre-natal pregnancy care.

Wife and I are both vaccinated, and apparently Hep-B negative. I have to make sure my kids aren't raped by Hep-B positive child-rapists, which is sadly too common.

> There's no infectious material at all, making it a very safe vaccine.

You keep missing something from my posts. I don't doubt the science behind vaccines. You don't need to convince me that vaccines are practically a modern miracle. I lack confidence in manufacturers, and in fairness of the NVIC.
New Measurement of Gravitational Constant Comes Up Higher Than Expected
> I didn't say vaccines cause autism

Then you're incapable of having an adult conversation.

> If you would like to discuss the idea that vaccines can pull the trigger twaddle twaddle whine

Provide evidence that they can and we'll think about it. Note that evidence comes in the form of peer-reviewed journals, not mommy-blogs written by people who still think Wakefield qualifies as a human being.
This is great for the few like us that enjoy having a personal domain, but most people don't which is very unfortunate. It's very-painful for most people to migrate email providers.
Loch Ness Monster used to debunk evolution in state-funded school
"For all you know, some 20-something long-haired unix
hotshot could have been busted for drugs at some point and
"repurposed" as a mole in exchange for leniency."

Excellent point. Previous comment retracted.
I think the story has completely wrong focus. The problem is not the teachers actions (no matter how despicable), but the effects of those actions. I mean if a teacher is able to "ruin" someones life by making couple of phonecalls, then therein lies the problem. In a ideal society the teacher would be free to voice his concerns, and if those concerns were baseless (as seems to be the case here) then the voicing should have no effect on the pupils life.

Of course there wasn't really any concrete effects mentioned in the story that had already happened, so hopefully this was just a sensationalist story and the uni and police will ignore the teacher. In fact the story heavily smells like an attempt to crucify the teacher while no damage/harm was actually done to the pupil.
That's neat - they left room for a prequel: 0 B.C.
straight string concatenation was faster than everything else

As I understand it, this is implementation dependent. CPython has gone to some lengths to optimize its string concatenation code to do things behind the scenes that are basically equivalent to some of the faster methods given in the article. Other Python implementations have not necessarily done that, so string concatenation can be a lot slower.
Because it's on a "men's rights" site, which will set off huge red flags.
Show HN? More like spam.
Does join scan the entire input to know the exact size and allocate that at the start?

No, because that would make the algorithm quadratic again (one loop for the scan, second loop for the concatenation), and the whole point of the join idiom, as recommended by the Python documentation, is to avoid a quadratic algorithm.
The Power of 70,000 Suns
> So when the time comes to change the business logic you have stored in the database, do you have to ensure that every possible client that may use that business logic is updated at the same time?

No. If you change any of the interfaces (e.g., the structure or semantics of a view) in a non-backward-compatible manner, rather than merely changing the implementation, you have to assure that the consumers of the specific affected interfaces are updated. But if you've built a DB structure that isolates applications well (each application uses its own set of views, which reference the views implementing shared logic, which reference the base tables) most changes to shared business logic should be completely transparent to most applications, in the normal case not impacting even the application-specific views, but even when they do only requiring changes to the app-specific view definitions that don't impact the actual application.
If you go here: http://rest.s3for.me/check/

Why is your key id called 'AWSAccessKeyId', why does your error message say 'AWS Access Key Id does not exist in our records' why is your error message identical to the letter of what S3 would return. Surely the error message text isn't required for protocol validation.

This looks like you just took an open source S3 REST API clone (there are many) and stuck it on a Hetzner server without bothering to change any variable names.

To me there are a lot of questions, the most obvious tell is that I highly doubt Salesforce would use a stock image as the logo for their cloud database solution considering the level of investment they made in it.
500+ small beer I have seen stored procedures thousands of lines long in some of BT's smaller mainframe systems from memory it was COSMOS (the one that tracks every circuit in the country) and not CSS which is an even bigger system.
Come on, we've all been to school. Unless it's your graduation party, the dean never wants to "just talk", like, you know, grab a beer or two together.
Both are important and both will be around. However if you are starting out today I would pick mobile app development. Two main things

1. Web development is primarily about presenting document oriented information to users. The future is sensors in and around mobile phones - cameras, video, voice, fingerprints, retina scans, gyro, barometer etc etc. These are not document based and the web model doesn't lend itself well. It will be another 20 years before any standardization of sensors based internet will come to pass. All of the sensors will be native based and a mobile development mindset will be asset.

2. Webdev is 20 years old now. Even though there is a lot of work, there are a lot of people and barrier to entry is low. If AngularJS takes off, you will have a long list of people who have been working in this field competing with you. You will start at the bottom and need to put in the time. Mobile is only 4-5 years old. Even then, the pace is so fast that knowing iOS3/Android 1.x (3 years back) doesn't help you. So you have a shorter ground to cover to becoming an expert.
> what is a hypervisor but a BIOS running on the CPU?

Generally, a hypervisor implies a VM which multiplexes the hardware and allows multiple OSes to run at once, which is more than any BIOS has ever done. Also, a hypervisor generally doesn't provide any hardware abstraction, to be compatible with existing OSes which expect to be alone on the hardware.
Love it! The 6502 was the first assembly I ever learned. I still remember a handful of opcodes from all the hand-assembling I did:

a9 44
20 ed fd
a9 41
20 ed fd
a9 56
20 ed fd
a9 49
20 ed fd
a9 44
20 ed fd
60

About a year ago, in a fit of nostalgia, I wrote an Apple ][ emulator in javascript [1]. My 6502 emulator isn't quite perfect yet, but it runs most things.

[1] http://porkrind.org/a2
So that's what an operating system is!

Tanenbaum considers it an extended machine and a resource manager [MOS 1.1]. So I think that calling something an OS even though it's not on the bare metal is still cromulent.
Automatic rate-limiting! Genius!
Hi Icasela

I will be releasing a developers kit very soon which will allow you to make such small apps for the Hmpgr platform. I will definitely let you know once I release that.

If you wish to contribute specifically to Running app, then let me know and I will send you required details as soon as I am done with developers kit.
Two loops are still linear as long as they are not nested ;-)
Another approach is to refactor mega-queries into smaller, component queries using SQL views that are then pieced together in another, simpler query. YRMV.
Most hackakthons are at the pro level, so it's industry peers and security for this is never a concern.

When you have 1000 students in a hackathon, then yeah it's a good idea to point out the difference.
First Impressions: Outlast
I'd just as soon pick sha2 as my pbkdf2 hash instead of bolting it on after the fact. That said, I'm not sure what's problematic. Expanding the key with sha2 results in the attacker needing to perform exactly as much work as you. There's no shortcut and no "problem".