skysight-inc/HackerNews huggingface dataset:
Could you elaborate on the problem you're having with callbacks and requestAnimationFrame?

I initially posted this, but now I'm not sure if this is what you meant:

Don't do this:

requestAnimationFrame(function () {
//a new instance of this function is created every time
})

do this:

var efficientFunc = function () {
//this is created only once and is reused
requestAnimationFrame(efficientFunc);
}
requestAnimationFrame(efficientFunc);

Basically avoid writing anonymous functions for callbacks that are going to be callback-ed more than once.

Another thing that might help with memory is make sure you don't keep references to things you want garbage-collected.

E.g. if object `A` has a reference to object `B`, `B`'s memory won't be freed even if you never use it again. MDN has a better explanation and example [1]

As for books I'd recommend Effective Javascript by David Herman.

[1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memo...
I don't know about you, but I'm really reading faster. And that's because I'm only reading the red text. I just realized I skipped all the blue content, and don't have a clue if anything useful was written there.
OS X has python preinstalled. Not bleeding edge though.
>Crowdfunding is an inherently speculative activity,

Crowdfunding is only popular because it's got a high success rate though. If only 50% of projects succeeded and provided rewards, and 50% took your money and ran, how many supporters do you really think would be left?
Ethical considerations have always kept me from investing too much time in areas of computational linguistics that seem to be predominantly used for the purposes of rapidly commercialised and now widespread mass surveillance system development. While it is an interesting area, in fact it represents a change to society that I would personally feel happy not to have accelerated. Not sure if anyone else has an opinion on the ethics, here.
Top Deadliest Animals
Danger and especially dangerous creatures fascinate us. The subject has appeared on more than one occasion on Listverse for this reason. Today’s list is a little different than the others though, in that it examines ten different criteria for what makes an animal deadly. Many more criteria are still out there. Feel free to add other deadly creatures to the comments.
Of Course, HN crowd will agree - most of them are a weird version of Linux fanboys - the Linux fanboys at least know some *nix commands - the HN news ones hate microsoft on their windows 7 desktops.
Disagree. Over the medium term, TPMs (which message board geeks have been unhelpfully demonizing for years) are part of a system of technologies that could make laptop encryption much harder to break. Laptop encryption is a real operational challenge for both HUMINT and law enforcement.
Library owner here!

> Am I the only person who thinks that things like this are totally unnecessary?

No, it's been made clear to me that my library is totally unnecessary by quite a few developers. I like it though.

> ^(-|+)?[0-9]*\.[0-9]+$

exp.float, and you only have to define it once.
Maybe in the consumer space. In the enterprise people seem to like Windows quite a bit (myself included). Code that youve written in the past continues to run without much drama and these days Windows just gets out of the way and just works.
Even if all the voters hate the surveillance state and want it gone, what do you do when the anti-NSA candidate in your district disagrees with you on war or abortion or monetary policy or...? Every informed voter has to weigh all of a candidate's (professed) views, and chances are any vote they ultimately cast is a compromise of some sort, so you end up with representatives that are collectively a jumble of contradictory opinions. Thus it's hard to put the onus on the voters for any particular policy outcome (especially when it's an outcome that's been deliberately kept secret).

The government of the US is an okay system for managing the varying interests of its geographic groups (the States), but it's not really set up to reflect the will of the US people on any particular issue.

Which makes me think maybe the government should be broken up functionally as well as geographically. Imagine you could vote for separate Presidents and legislators in each of the departments of the Treasury, Defense, Education, et al and make them negotiate equally amongst themselves when their purviews intersect. Then you could get the anti-NSA candidate elected to President of Defense or President of National Intelligence without worrying about his opinions on abortion or drug policy or whatever. And then you could legitimately say "The American people betrayed/saved the internet."
this is not necessarily the number one rule. There are other rules as well, e.g. being 100% consistent, fast or available. I'm not a database expert but I don't think you can have it all.
The SwitchFlow C++ HTTP Proxy: A Postmortem
A Bunch Of Young Geniuses Just Made A Corrupt Corporation Freak Out Big Time
With a sample of that size there is no way 2% is significant. You're talking about 1 or 2 seconds right? Mine was 50% or more. Maybe I'm extremely distractable.
In an effort to speedup our landing page at Attachments.me, we moved all of our assets over to Amazon's CloudFront CDN. I was shocked by just how much this improved performance.
Then the recipe will adapt, simple as that; just like code does.

He's not trying to make this a highly optimized formula, he's trying to make it a widely used base platform with the minimal required pieces that work across platforms.

I think there is enough overlap between people we can find a common formula that will work for 90% of people on a 90% of meals basis (regular food already does this).

Yes, the current formula probably will not survive contact with the broader reality, but then he'll just make a v2.
I have given some thought to this kind of thing, and one thing I realized is that the limits of the trusting trust attack can be exploited as well. Let's support you only have one compiler. Now, it is going to try to insert the worm into any compiler it compiles, right? The problem is that it must be able to detect that it is actually compiling a compiler.

This, however, is not a decidable problem. It is possible to construct a program that will fool the worm and thus you can create a compiler that you know you can trust for this test. It will probably be a hard compiler to use, but you will need it at most twice -- once to check for an attack, and if there is an attack once more to bootstrap a clean compiler.
You can do this but it will probably make it less secure, not more.

Nobody seems to know if the NSA actually has practical attacks against primitives like AES or SHA-2. We do know for sure that they go after higher level implementation flaws. The more complex your encryption scheme is, the more likely it is that you'll introduce a grave flaw. It only takes one.

I'd suggest that our best bet already exists: NaCl[1]. It's by Daniel Fucking Bernstein, so the implementation is as flawless as it gets. Better yet, it doesn't use a single US-approved primitive (not even the NIST curves Schneier was warning against in his Guardian piece).

Funnily, before the leaks Bernstein's use of all his own primitives was seen as a bit wacky and concerning, but now it seems almost sensible.

[1]: http://nacl.cr.yp.to
Ouch, thanks for the harsh words.

But yes, 1.2 will likely have named captures and back refs. It's a regex, so $1 etc come with turning it into a regex and doing matching.
Yeah... Note for future self: make all the mandatory lame jokes in the blog post itself, so people don't feel obligated to do them on HN instead. ;-)
Elon Musk - The Future of Design
"Then Max started saying some shit about something called 'serifs'. Yeah ok, like that’s a real word."

This is a perfect parody. I have nothing against Yahoo or Mayer, but man was that blog post snobby.

I mean, seriously, who cares? The whole "Let's post a blog post about the creative process of a fucking logo" is kind of ridiculous. Especially with the (admittedly impressive) video that used all kinds of graphics and cool music.
Does anyone know if there are plans for when docker will be able to run in 32-bit?
BleachBit frees disk space and guards your privacy
"I keep finding myself in the awkward position of trying to refute conspiracy theories, but not being at liberty to share everything I know about these scenarios"

There are things I want to say about that sort of thinking, but I am afraid to say them. What a wonderful world...
I'd be pretty surprised if no one has created a complete meal replacement before, but really I was getting at how every blog post seems to be about how Soylent is not just convenient, but nutritionally superior to other diets.

Perhaps Rhinehart doesn't feel that way, but it's the vibe I get.
No you don't need to know what the opponents strategy is. You calculate based on worst case (ie op playing perfect) and worst case is you break even. There is no way to maximize profit but you can play unexploitable, ie at a minimum not lose and possibly win assuming op doesn't play perfect.
Thoughts on doing it better? The DSL is just a wrapper for the objects.
"Haven't worked with neither" is a double negative. Also, 'resembles with' is redundant--'resembles' is sufficient.

I have written both Scala and C++ at my day jobs and I would say that Scala certainly does generally remind me of C++ and specifically in its proliferation of language features. I also know of several others with similar experience and opinion on this matter.
It's an actual logo from a sportswear brand that was popular in the US in the 90s. http://www.bigdogs.com/
I remember reading that Compaq considered using a different brand for its low cost PCs back in 1991 or so.
The NSA are "our" adversaries.
Oh, really? I didn't see them appear. I'll try again - thanks for the info.
Yahoo needs a lifeboat, not a logo
It looks like BeeLine didn't improve your reading speed this time through.

i found the colors to be rather distracting and not helpful. the results of two tests taken seem to agree with that.
Agree with you on code-switching, it's very common. Not sure what you mean on personal identity, but non-native speakers are often afraid to betray themselves, consciously or not. They don't realize that they could soften their accent without completely getting rid of it, so that people can understand them but still tell where they're from.
I would pay to get a PDF version of this. I read PDF documents all the time.
Microsoft isn't agile, and politics in the company won't make it as easy for a "Mayer" to come in and whip it in to order.
You forgot Surface 10.1 Home and Student, which reserves the top quarter inch of the screen for a message reminding you that you're not allowed to use it for work.
In another rant about how my library isn't needed someone helpfully noted you can actually do comments with the %r{} syntax:

%r{
^
# foo
bar
$
}
Its built on RoR. I will soon be releasing a developers kit which will make it very easy for any of us to build apps on this platform. The platform will provide few things such as user logins and events for the apps.
(it's hard to install new gigabit fiber pipes to siphon
off the data without anyone noticing)

If you have access to manufacturers that can put in back doors for you, I reckon you don't even need your mole to install stuff for you. Instead you just ask your mole to inform you want is going to be installed and then make sure that the company gets backdoored systems when hardware is installed/upgraded/replaced.

I'm wondering is datacenter monitoring utilities like the stuff Boundary[0] is working on could be used to identify anomalies in how network hardware is behaving versus how it should be behaving. I know that in my conversations with cliff, they are trying to get their monitoring solution to the point where they can visualize "the circulatory system" of a data system with the goal of spotting things that don't look quite right.

[0] http://boundary.com/
From the article:

"Since I started working with Snowden's documents, I have been using GPG, Silent Circle, Tails, OTR, TrueCrypt, BleachBit, and a few other things I'm not going to write about."

My take on that is that the author does not trust all the things he advises us to use, since he relies on other things he is not going to tell us about. Which means he is safe(r), we are not, and wont be, since he wont share.

Great. What use is all that then? None.

BTW, Just read that O2 UK are blocking VPN traffic.....
How I grew my business by understanding Metcalfe’s Law and fragmentation
I know they've had problems in the past, but is Cryptocat now a decent way to securely communicate?
I really need to link those in the readme, thanks! I also discovered on releasing this a really old ruby library that predates either of those and I'm adding that too.
Very few people have any idea how many outbound connections their machine opens or which software is opening them. There seems to be just enough people paying attention to this that it would be caught but most people would never know.
Would be great if they could A/B test the text used. I found the JFK portion harder to read/understand and I don't think it was entirely the colouring.

Still, I think it is a cool idea and will give the bookmarklet a try for a while.
It's easy to mock the Yahoo logo redesign process because Yahoo is being very open and transparent about it.

Are we so sure that everyone else's design process is so much better? Or are we just assuming that, because we don't actually know how they came to be.

If we want companies to be more friendly and open, maybe we shouldn't mercilessly mock the ones that try.
Comparing this code ( e.g. https://github.com/stripe/shop/blob/master/public/assets/js/... )

to something like https://checkout.stripe.com/v2/checkout.js is like night and day. JS vs. compiled CoffeeScript. One large, monolithic file vs. obviously concatenated files. Variable naming, commenting, etc.

It's interesting -- I wonder what kind of code style guidelines they have over there, if any.
On the Efficiency of AC/DC
Thank you, this puts a great twist on the situation.. basically saying that if all of his generally smart, sane friends all of a sudden jumped off a bridge, most likely there was a REALLY good reason behind why they did it
"Basically, the NSA asks companies to subtly change their products in undetectable ways: making the random number generator less random, leaking the key somehow, adding a common exponent to a public-key exchange protocol, and so on. If the back door is discovered, it's explained away as a mistake. And as we now know, the NSA has enjoyed enormous success from this program." -Bruce Schneier

So when Rasmus Lerdorf checked in a change to PHP that broke crypt(), and then made a release without bothering to run the tests (he claimed that "This is mostly because we have too many test failures which is primarily caused by us adding tests for bug reports before actually fixing the bug."), was that actually because he was working for the NSA to install a giant backdoor in PHP, and not just completely incompetent and totally negligent? https://plus.google.com/113641248237520845183/posts/g68d9RvR...

"We have things like protected properties. We have abstract methods. We have all this stuff that your computer science teacher told you you should be using. I don't care about this crap at all." -Rasmus Lerdorf

"I'm not a real programmer. I throw together things until it works then I move on. The real programmers will say "Yeah it works but you're leaking memory everywhere. Perhaps we should fix that." I’ll just restart Apache every 10 requests." -Rasmus Lerdorf
The Lack of an App Store Free Trial
Visualization Reveals the Who and Why of New York’s Stop-and-Frisk Policing
"The agency’s success in defeating many of the privacy protections offered by encryption does not change the rules that prohibit the deliberate targeting of Americans’ e-mails or phone calls without a warrant."

Rules which are enforced internally, with an inspector general chosen by the same executive branch that commands the NSA's leadership. Yes, we can really rely on these rules when push comes to shove.
TPM 2.0 is a crown jewel for the NSA. Windows 8 full-disk encryption is based on TPM, and Windows 8.1 certification requires a TPM 2.0 module. It already is or soon will be universal in PC hardware. The NSA was involved its creation, and resisted changes to the standard. At the same time the German government was claiming there were no backdoors in Windows or TPM, privately they had already concluded it was compromised.

Source: http://news.techworld.com/security/3465259/is-windows-8-a-tr...
For a specific target? Sure, why not.

But if they did that to everyone? Surely it would be noticed. Probably very quickly. There are a LOT of smart security researchers scouring browsers for bugs and running them in carefully controlled environments every day. Someone would also eventually notice that the production binary doesn't match the version built from source, especially for open-source browsers.
Yikes, harsh crowd here. So many people demanding scientific studies to back up the website's claims.

Better idea: Chill out. Then take 1 minute and read some stuff with it on. If you think it feels better try it for longer if not move on with your life.

No has claimed to cure cancer here, just that formatting text differently might give marginal increases in reading speed.
Again with the vast majority of users fallacy? Bring up a story of grandma for a full picture too.

Binary blobs can be checked easily if they originated from the source code published. Major Linux distributions, like Debian, have people all over the world auditing the repository. If a backdoor is planted, with the repository being public, most projects have a full history of whom added what and when. Code reviews happen too.
Library owner here, just want to point out that

m{^
https? :// # Protocol
(?: \w+ \. )? # Subdomain
([\w\-]+) \. # Domain
(?: com | org ) # TLD
/?
$}x

Isn't really any different from

hex {starts
protocol
subdomain
domain
tld
maybe("?")
ends}
Are you positive that the binary blob of the open source project you just downloaded is 100% from the code in it's repo?

If you're not, then it absolutely is not an improvement. The attack vector has just shifted slightly.
The ability to defend one's self is a basic function. Being dangerous can be useful. Encryption is a tool for guarding privacy, and weapons are tools for guarding against physical threats.
Not a lot of people are questioning MS's strategy and execution in the enterprise space, but by large Windows Phone and most other high profile products they pushed recently are consumer oriented. Windows Azure is an exception, but even in that case I think it hurts the product more than helps.

If your brand name stands mostly for "backwards compatibility" instead of quality/innovation, then you are definitely gonna run into problems in the long run.
> the real estate market showed signs of long-term strength and we started our current development drive.

It's not long-term strength, by the way. The US economy[1] is in shambles, and ready to implode any moment. What you're seeing in the real estate market is a new bubble. The buyers are investors, and the current craze started when people thought the bottom was in. The zero-interest rate policy "helps" too.

Just thought you might want to know. Be careful.

[1] Not only the US, but pretty much all Western economies (+Japan) are ready to implode.
I am surprised Elon was so excited about it, it's not that useful. So it is more of a sloppy 3d viewer and navigator and shaky hands will always get in the way. I thought they have a way to zoom into a hidden component and sculpture additional details in-place with hands.
The reading test is randomized—different people get different stories in color or black. The order of black/color is also randomized. It's not perfect, but it'll have to hold us over until the larger study from the university research lab is completed.
You can't remain secure against an organization that has effectively unlimited resources. All you can do is make it harder for them -- and that is most easily accomplished by non-technical means rather than a more advanced version of existing technical means.

Talk to people face-to-face, maybe?
A political counter-argument is that this program may represent terrible value for money in the long run. If we are in a security arms race this money neither buys weapons or a defence that can't be overcome by opponents simply buying better weapons and defences.

The NSA could have made more of an effort to harden American business and infrastructure to attack. They could have spent the money on developing intelligence sources who actually work for opponents instead of US telcos. They could have fixed zero day exploits.

We are rapidly approach a time where oponents will be able to attack completely annonymously. American infrastructure or buisness could be damanaged and know one ever know who or why. If that happens cold war tactics will seem hopelessly naive.
That's true, but I've spent a good portion of the last year and half dealing with them and disagree on the likelihood of them ever achieving any widespread adoption. My company would love for me to be wrong about this.
Library owner here. A huge draw for me to make this library was composability, not avoiding regex syntax.

I want to share patterns without having to do much.
The logo blog post may have been a clever PR stunt. If so, the press is biting... and bringing much needed attention back to Yahoo.
And if they do suspect you of something, they will water-board you in a country with no human rights to stop the "ticking bomb" they use to excuse themselves. Not sure how long I'd last, TBH. If you are lucky, you'll got to jail.

That's the way it is, and will be until people wake up and change politics.
How Were secp*k1 elliptic curve generators chosen?
Introduction to Network Mathematics
In my experience, the people who only feel like that are people who haven't used Linux. I'm not trying to be a snot, but I've never met IT people who liked Windows, or much of anything from Microsoft. Protip: Don't mention Exchange.
You mean the Hacker News world, right?
One example... I have a Motorola SBG6580 that I use as both my cable modem and wireless router [0]. Although it claims to support dual band 802.11n, it really only supports one or the other, not both simultaneously. This means that if I have any wireless device in the house that doesn't support 802.11n, and specifically the 5 GHz band, then I'm forced to tell my router to fall back to 2.4 GHz unless I want to buy additional hardware.

[0] http://www.newegg.com/Product/Product.aspx?Item=25-122-014
The 4K monitors have resolution of 3840×2160 and they are already on market. I believe the cheapest contender is 39" seiki[1] which goes for under $1k.

For more dots per inch there is bunch of 31.5" 4K screens coming to market at the $3-4k price range.

http://4k-monitors.com/seiki-39-se39uy04/
http://www.theguardian.com/world/2013/sep/05/nsa-gchq-encryp...

US and UK spy agencies defeat privacy and security on the internet

• NSA and GCHQ unlock encryption used to protect emails, banking and medical records

• $250m-a-year US program works covertly with tech companies to insert weaknesses into products

• Security experts say programs 'undermine the fabric of the internet'
I haven't had the incentive to learn regexes well enough to understand why I have to escape random things in different languages and environments. And occasionally something will fail to work all my cases and I have to fall back on a non-regex way of matching.

I've generally found that my practice is basically "try regex; if it doesn't work after ten minutes of effort, abandon regex completely".
When I think of Nokia - I think of a solid, well-engineered device with attractive Scandinavian styling that's going to last a long time. When I think of Surface, I think of nothing in particular. Microsoft should let the Nokia designers & engineers rework the Surface and RT as a Nokia device.