skysight-inc/HackerNews huggingface dataset:
using xrange made it slightly faster

That's what I would expect, since xrange works like a generator; but the internals of its implementation in CPython back when the article ran its original tests were evidently less efficient than they are now.

the difference was pretty small

I suspect that's because the strings being concatenated are really small (the largest will only be 5 bytes for n=10000). I would expect the difference to get bigger as the individual strings get larger.
I don't know, I couldn't find much documentation on doing HTTP basic auth, and something else which I forget now. I did find a project that had a code listing, though, and used that.
If you prefer I've never been that healthy in my life. Every health marker is green.
No doubt buddhism in the west is "softened up", but you know what, maybe it works better that way.

Christianity never made sense to me, with its insistence on guilt. You are supposed to feel guilty for what Adam did, guilty for what people did to Jesus, guilty for your inner thoughts, guilty for your supposed sins that the Satan put there.

That's the opposite of what I need, thank you.
Solve this problem by starting a company. Build a portable vertical garden of 100+ plants (herbs, vege's and fruits)

Install an Arduino, and a couple sensors, have this garden tweet when it's not getting enough water.

Start a gardening company in your town, managing these gardens for families.

Congratulations, you just hacked how to start an organic farm. And you didn't have to buy any land, and you're guaranteed revenue for your service (you're not selling a product).

You're now a "farmer" that earns ~$100 per hour per month on each family (e.g. $50/month at 15 minutes every 2 weeks). Now scale.
Monitoring with Monit
“Psychotherapy is an undefined technique applied to unspecified problems with unpredictable outcome. For this technique we recommend rigorous training.” -Horowitz

All therapy is "black magic" in the sense that no-one quite understands exactly how it works. CBT gets props because it's one of the few therapies that has a manual and can actually be studied scientifically.

I'm sorry but I prefer to speak with a therapist who doesn't have to consult a manual for every response he/she makes. Therapy is ultimately a human relationship, and just as messy and unpredictable as any other relationship - and subject to all the contingencies thereofe.

Just because something cannot be studied scientifically does not mean it is not effective. Evidence for the limited long term effectiveness (high relapse rates, ect) of shallow and manualized interventions like CBT is growing by the day. Compare that with more messy therapies that dig deeper (like psychodynamic) whose outcomes actually improve the longer the subjects are tracked.

The vast majority of the effectiveness of therapy is due to hope (placebo effect) and the relationship. Focusing on the "technique" is distracting and leads to a view of therapy as something that is done to you, as opposed to something that is done with you. Lasting change comes from taking personal responsibility, not from having special "scientific" techniques done to you.

That para-professionals with 2 weeks of training have outcomes as good or sometimes better than those with Ph.d's in clinical psychology is all one needs to know when deciding whether or not to categorize psychotherapy as a science.
The bitcoin weight loss challenge
> How the heck is mixing a special powdered drink any easier

Surprising as it may sound, making it just a little harder to prepare can make us value it more (we tend to value our own work).
I remember reading about a case of one batter mix that ended up selling more than the "just add water" mixes by asking in the instructions to add the eggs and milk.

> a can of oysters and a can of sauerkraut

that sounds like an awful diet
>All sugars are equal in their bad effects, says Popkin

Wait, what? I thought that HFCS was significantly worse than everything else.
What is the threshold where supporting a domain becomes important? It seems awfully arbitrary to say it "works fine as is" when it is disenfranchising millions of registered domains as it stands.
Using pv:

gcp() {
cat "$1" | pv | cat > "$2"
}
The only way out of this climate problem is going to be a technological solution. I wish environmentalist and politicians would acknowledge this. It could be a unifying threat but noooooo, they like the smell of money especially when it comes to burning oil, methane, and such.

Creating nearly free energy via thorium reactors or other nuclear options could could take a load of over fishing off the oceans by way of desalination and creating more agriculture.

I would prefer a bunch of messy waste the size of a football field rather than an ocean depleted of fish and mammals
Consider that 37Signals probably has a much larger dataset and is still happily scaling vertically due to Moore's law.

http://highscalability.com/blog/2012/1/30/37signals-still-ha...

It's probably the cheapest, quickest, and least risky option if your engineers' time is expensive (which it most likely is).

Of course, you'll ultimately also want to find bottlenecks and tune the DB and cache the hell out of everything, but scaling vertically will at least buy you some good time so you can do that in a more relaxed time-table.

Related links:

http://37signals.com/svn/posts/3202-behind-the-scenes-the-ha...

http://37signals.com/svn/posts/3090-basecamp-nexts-caching-h...

http://37signals.com/svn/posts/3112-how-basecamp-next-got-to...
Time to get ready for Ubuntu Touch or FirefoxOS, I'd say.
I'm glad I don't live in America.
I believe we did tune and tweak the heck out of my.cfg, but will investigate thread_dcache_size all the same.

I also believe we're archiving at least some logs (and such) to flat files already, but will re-visit this soon too.

Thanks for all your input.
Eh, I was probably too hyperbolic.

I agree it's a difficult situation, one with a lot of really hard challenges.

I don't envy the standards communities that will have to figure out the best next steps forward.
The end of Apple as we know it?
There's no mention of minumum email length length, but I have noticed that some services do not accept email addresses like m(@)dy.fi or m(@)x.com etc. They claim that address is too short. Strip parenthesis from addresses.
Nokia: The rise and fall of a mobile giant
I'd like to know from what evidence you can state this so confidently. We live in a world where it is well understood that our understanding of human health and what substances are good / bad is not well understood. That's without saying anything in regards to how nutrition relates to how the body is being used, which complicates the matter considerably. How incredibly arrogant.

And why is it "rather" healthy? I thought it causes "absolutely no health damage" for 6.9 of the 7 billion people out there?
Yahoo says U.S. sought data on 40,332 user accounts in 2013
Well, you can define a combinational circuit as something that has n inputs and m outputs and it is one of:

* a gate,

* a circuit that takes two inputs and produces two outputs by swapping the order,

* a circuit that takes one input and produces one output,

* a circuit that takes one input and produces no outputs,

* the circuit obtained by taking two circuits and composing them in serial,

* the circuit obtained by taking two circuits and composing them in parallel.

This produces a simple inductive definition for combinational circuits. Synchronous, sequential circuits can be obtained by taking a combinational circuit and connecting the first n outputs to the first n inputs via D flip-flops. If you want asynchronous circuits, you can add another combinator that takes a circuit and a connects the first n outputs to the first n inputs without the flip-flops.

With these definitions, it's quite straight forward to manipulate circuits in a functional manner.
The article oversimplify the topic too. Saying that fructose is bad is oversimplying the reality.

Metabolism plays a very important role and even if it's really complex, fructose is very good for the metabolism (glucose is inferior in that regard).
Making awesome people happy at work (AnyPerk YC W12)
That's good. I was going to say "gauche", but that may be sending the wrong message.
It's also trival to contact recipient STMP server and check if it accepts rcpt to.
Most of the best movies are from the 70s!

Kids these days...
Hiding in N. Virginia, a daughter of Auschwitz
As a UK citizen and licence payer, I am not allowed to see this article. Could anyone post the text?
The alleged new thing about the research he cites is that it's based on a 'circuit' model rather than a chemical imbalance model. The other new[ish] thing is that strong-version biopsychiatry advocates feel the need to explain themselves at all. It's kind of fun to see one on the defensive for a change.
"Complete enabling for [REDACTED] encryption chips used in Virtual Private Network and web Encryption devices"

AND

"Large Internet companies use dedicated hardware to scramble traffic before it is sent. In 2013, the agency planned to be able to decode traffic that was encoded by one of these two encryption chips, either by working with the manufacturers of the chips to insert back doors or by exploiting a security flaw in the chips' design."

(Oh, so what's redacted are the names of two companies which sell this kind of hardware...)

from: http://www.nytimes.com/interactive/2013/09/05/us/documents-r...
It sounds like your database is roughly the same size as the database that we work with, and MySQL performance has been a recurring issue for us. Assuming that you've done a reasonable job of option 2, I gravitate towards option 1 and maybe option 4 (depending on how confident you are of your team's technical capabilities and how expensive consultants are relative to additional hardware).

These are intermediate steps that have helped, giving us some time to figure we whether want to migrate to a different database:

1) We started using InnoDB a few years ago.

2) One of our common queries joined parts of multiple large tables; we essentially cached the useful parts of the join and put the results into a memory table.

3) Our non-production server is under a lot of load from our back-end processes, and we decided to move the database to a RAM disk, which greatly improved performance. It's important to note that, while inconvenient, a power outage is not catastrophic in our case (e.g. we don't deal with financial transactions); we do daily backups to non-volatile memory. For around $5,000, you can build your own server that has over 250 GB of RAM and then put it into a co-location facility.

We seriously considered migrating to Postgres, but #3 has bought us some time on that front. It might be that we eventually still migrate, but we prefer to do it after the company is on better financial footing. It might also be that while we wait, other less painful options open up over time (e.g. maybe MariaDB will suffice).

I hope the situation resolves well.
But could we just "take" heroin and alter it to create a bit different substance with different properties? If so, could one property be "addictiveness" and could it exceed that of heroin?
Yes, but it's possible to get to a billion dollars getting some things right and others wrong. There's almost always something to improve.
The Value of Suffering
useless use of cat

pv < "$1" > "$2"
It would have been better for the submitter to link to an informational site instead of one of many media providers. But here's a better one that won't arbitrarily tell you to screw off:

http://thepiratebay.sx/torrent/4554309/The_Conversation_(197...
Also, the if c1 ~= c2 branch is obviously not constant-time, but in practice it’s close enough that it won’t matter for our case. I’d prefer XORing the two strings together and seeing if the result is 0, but Lua doesn’t seem to include a bitwise XOR operator. If I’m wrong on this, I would appreciate a correction.

LuaJIT provides bitwise operators out of the box [1], and the creator also provides an extension for regular lua [2].

[1] http://luajit.org/extensions.html

[2] http://bitop.luajit.org/
For a long time it was thought that mind and brain were not synonymous.

I do not argue it either way though - my point was that Kandel's claim that mental illnesses are fundamentally biological, that people are not at all responsible and that our brains "control our actions" is not supported by his examples or the evidence.
I usually use it like this for local copy:

rsync -rvh --progress <source> <destination>
Client: Give me the style.css file.

Server: Here you go! Oh BTW you'll almost certainly need the prettyfont.ttf file too. Accept?

Client: Sure!
I think this is an interesting idea to discuss, but the article is confusing to the point of being misleading.

Specifically, the first half of the article is about "Montessory-style" business leadership. The second half cites a survey or two that criticize excessive collaboration within teams and open-plan office layouts.

It seems intended to mislead the reader into conflating these two criticisms of very specific issues with criticisms of the entire so-called "Montessory-style" business approach. But I don't think the article contains any actual evidence of the backlash claimed in the title.
> Which is why it's SO much cheaper to buy jam, than to make it yourself.

Thats news to me. I mostly can weird stuff you can't buy off the shelf in America for obvious reasons, like peach rum sauce (basically a boozy peach smoothie) or brandied every fruit you can think of (brandied apples are my favorite)

Anyway buying individual serving fruit is probably going to be as uneconomical as buying single serving jam, pretty expensive.

When I buy a couple shipping flats of peaches, for example, its only a couple bucks each. Ditto crates of apples. At least in season. I think if you bought one apple at a time from a convenience store that could add up, but to keep an apples-to-apples comparison (groan) you'd need to compare that to the price of single serving jam packets, which are kinda expensive compared to an entire jar.
SCP works locally too and has a progress bar.
Thanks, our nginx is linked with 5.2, it turns out, it's just my test box that had 5.1/didn't support bitwise. I'll change the code, thanks.
There's quite a good amount of fibre waste when you pass a fruit through a juicer. Maybe that explains the 32oz.
Some questions to pursue with your advisers:

What are the tax issues upon dissolution/merger/conversion of entities from one to the other, for the owners and the entity itself?

Is there an impediment to rapidly converting a Subchapter-S corp into to C-corp - are there be any delays, fiscal year issues or alignments, or other IRS filing or election issues and impediments, again for the entity and for owners?

For foreign LLCs in terms of the "corporate veil" and limited liability, etc., set up in state Z, how does the foreign LLC get treated in other states of interest, states A, B, C, and D compared to the foreign corporation set up in state Z, operating in states A, B, C and D? Do those several states follow the IRS-election for taxation of local-state activity?

What advantages / disadvantages for the LLC to elect to file with the IRS the "filing as corporation" status, instead of the default sole proprietorship/partnership status, or --yes you can elect this too-- "Subchapter-S"?
Putting in a plug for the domains i have for sale. I have to renew a bunch today could use to sell one or two

http://namebox.io/gscott
It basically spoiled programming in every other work language for me. Sometimes enlightenment brings pain.
Did you not see the Auernheimer case mentioned in the article? What happened there is the exact opposite of what you describe.
jTypes: Suger with a shot of classical inheritance in your JavaScript
I think you are saying that we can't be sure that the author of the article kindly submitted here really knows what he is talking about.

Diederik Stapel is a disgrace,

http://retractionwatch.wordpress.com/2013/08/02/measure-by-m...

but he also hasn't had any influence on the clinical practice of psychiatry in the United States, the main topic of the article.
I'm appalled by your lack of judgment.

You dismiss the recording of a university class made by a Ph.D in Endocrinology that worked for 20+ years against the whole industry (which shows resilience and belief).

On the other hand you suggest to read articles on 3 websites that looks scammy at best?

I feel insulted.
WH: "Common sense" to blame
2 hours have passed and this post got nothing but 7 upvotes?

Is this real life?
Clearly comparing your smoothie to Jamba Juice's fruit bowl is not the same thing.
Tall Buildings In Numbers Vanity Height
My understanding is that Adam Langley prefers AES-GCM to all the other mac-then-encrypt cipher suites in tls 1.2. He's working on AES-GCM support in NSS [1].

[1] https://news.ycombinator.com/item?id=5365601
Why is ECDHE+3DES a "lulz-worthy combination"?
I agree about the open-plan thing, but for the rest, doesn't it just depend on the kind of work being done? The author mentions a study about how collaboration hurt deal-making, but that's a totally different endeavor than programming.

This always happens on these "it depends" questions. People see one thing that works and try it everywhere. Then people see that it doesn't work everywhere, and just assume it's bad. This author fell neatly into the trap.
"We give everyone a pair of noise cancelling headphones as a way of shutting out the office noise."

Can't you just rent a 1950s vintage office building somewhere cheap and give your people the option? C.F. Claude Shannon (who stayed in a city centre building when his employer moved to the suburbs)[1].

I agree with others that the OA is confusing several issues (office layout and corporate goofiness).

[1] http://around.com/where-are-they-now-bell-labs/
I was thinking (and didn't convey in writing) more on the use side, not the install side. It just bugs me that everything someone gets some joy from trying has a first comment of "why?".
LFSRs are not cryptographically secure random number generators. So you can, given a few IVs, recover the internal state and predict all subsequent IVs.

Then it's just a matter of mounting an (adaptive) chosen plaintext attack against the system knowing what the next IV will be. This is something you can't do against AES CBC mode if the IV is actually random.

It fails in the same way if you use the last packet's cipher-text as the IV and there are pauses between packets.
Ask HN: What are the first steps to report, take online content down and sue?
I'm considered to be a good developer in Brazil and I'm very active in the local Startup scene.
I'm now being harassed by fake facebook/google accounts trying to defame me and my girlfriend.
I want to get the content down and sue for every damage he's been doing.

Long story short:
This year I made an MVP for a Israeli/Brazilian guy without getting paid (plus having actually paid other developers to help me as well).
Later I realized I was not the only victim (the guy is a serial con man in the startup scene, with several fake investment news all around the web), so I exposed the fraud on facebook, mentioning every person he has tricked before. From that moment on, he couldn't fool anyone anymore.
He swore revenge.

Now, "Someone" has discovered my girlfriend is a former porn star and has made a video with mixed content (old porn video + pictures of us) and spread all over the startup scene (mostly facebook groups and directly to many company emails).
This attack has made my life a living hell yesterday, with over 14K views and actually having me hospitalized.

I can already point he's most likely the author (as dozens of other startup scene people here in Brazil can say this as well) with many indirect proofs, I just don't have the IP proof coming from Facebook/Google.
Also, he is in California now, so I don't even know if I should start looking at any USA (FBI or what?) forms.

I've asked Facebook to take down the fake profile (and lots of friends helped report too), but it's still up.
Same thing with the blogspot account holding the pictures and video.
The fake gmail account used to spread the video via email (and the Dropbox account used for this) is still active, too.

HN, what should I do??? Where should I start?

ps: this story is pretty real and you can check me out and contact me at roberto.cr
Thanks for the theorical background. I just had a look at the Curry-Howard Isomorphism article on Wikipedia, and i finally understood what my OCaml teacher muttered once in the classroom 10 years ago :))

The part i didn't get in the equivalence between program and proof, is that a function can be seen as a proof that provided the input parameters are of a given type, the output type is going to be that one. Quite simple in fact, but it only clicked right now :)
> that sounds like an awful diet

I wouldn't suggest eating goitrogenic foods like cabbage daily. But other than that what's the problem? Take your varying pick of assorted canned veggies (beets, peas, etc.) and wild sea foods (sardines, salmon, etc.). Instant mashed potatoes and butter for extra calories if needed. The point is all this stuff is at CVS and close to zero prep.
If it is not sustainable, this saving of a billion lives might have come at the expense of killing several billions of future lives.
So to summarize they need to do something else than get a NSL and have the company hand over the data. Which is what's different if the company in the US.
There are several movements afoot to regain locality as a source of power. Here in the US Pacific Northwest, there are a number of groups traveling and speaking about bioregions. I have heard from several eloquent speakers of first nations peoples who have a similar, healthy message to impart.

I am beginning to think something like this may be an alternative that I can put my efforts behind: Minimize my interaction with large US government and instead focus on making my small area as healthy as possible, economically, socially, regionally (eco/land), and living being health-wise (plants, animals, AND humans).

This would seem to be an extension of think globally, act locally.
So your idea of making the world a better place is to modify other cultures until they are familiar to you? According to your post, your ideal world would be filled with copypasted cities, themselves exclusively populated with chains and products that are familiar to Americans; all of this so that Americans travelling abroad feel less anxiety. A nirvana for the heads of American multinationals but a nightmare for everyone else. Imagine if the entire planet was like an airport mall. You'd have a ton of "brand recognition" but not much else.

Brands do not make people feel that there is a "global village". They do not create a sense of cultural belonging or strengthen relationships between individuals. Buying things does not make you reach out or empathize with others. Advertisers frequently try to associate products to concepts such as freedom, sex, friendship but this connection is artificial and manipulative. At best, brands elicit a sense of loyalty that pushes consumers to purchase the same products over and over again out of habit. This loyalty can be highly dangerous: a lot of people get health problems because they are regular patrons of fast food chains.

In fact, most brands actually increase stress. One of the usual marketing goals is to create a need in people that didn't exist before. This can be achieved through fear, making the consumer feel inadequate or inferior if they don't own the latest items. This is especially prevalent in the fashion industry. Creating additional needs is the opposite of stress reduction.
Unfortunately, the 'junk drink' companies have worked VERY hard to get soda et al to be treated as every day, every meal drinks. Heck, Coke was working for a while to come up with a way to have every home have a Coke faucet in the kitchen next to water many years back.