skysight-inc/HackerNews huggingface dataset:
Feedly? Honestly almost every single one of them is identical and they fall into two camps: one is the utility feed reader where all it does is display things in lists and keeps unread statuses (feedly, bunch of other misc apps) and the other camp tries to make them fancy / look nicer (instapaper, pocket, even evernote) but also keeps track of unread statuses, etc.

They're all "good" though I'm not convinced anyone provides a great experience in the read-it-later game. But now I'm getting off topic and ranting.
Thanks for posting this. Same issue here...

I was looking to see if a truecrypt alternative might exist that worked better.

Also on a macbook air with boot camp.
Debugging can be fun, too.

If often found some bugs in a reporting software, that showed the people wrong numbers for years.

Or if something needs to be re-implemented, say for performance reasons, you get the algorithms and notice that the old version wasn't only slower but also wrong.

When this happens, I start to question if the people really "use" the software in the first place. Or if they just get some wrong sens of safety from it, which calms them, but the underlying system is mostly random and they could simply make up their own numbers.
In addition to stripslashes being woefully inadequate, the vast majority of these are demonstrations of cURL + some API. The PHP aspect is tertiary.
7 Proven Strategies for Launching an Online Marketplace
Digg did the same
Sure (I'm not sure what rainbow tables have to do with this; those are typically for a very specific use. Bloom filters seem to be a better choice; they allow for fixed-memory hashmaps with known false positive rates).

I had a large multidimensional object and I wanted to smooth it.

So, I loaded the whole object in RAM, did an FFT on it, multiplied it by a gaussian, then did an inverse FFT on it.

Another example would be storing very large hashmaps (as a backing store for a sparse multidimensional array).

If you had a very large biosequence database, and you wanted to map next-generation reads against it, you'd load the database into RAM with an mmap call followed by a block read, then subsequent mappings would be very fast.

Effectively, having large amounts of flat access RAM means you don't have to worry about communication (between nodes, or between node and disk).
Completely agree, but I think there is definitely a place for the "office staff were rude and/or incompetent" type of stuff. Been to too many places where the staff acts all annoyed or put off at having to reschedule, or update my information, or even just check in when I arrive for an appointment. "Sorry for annoying you with my business"
Sheesh! You don't have to put go in it's name just because it is written in go[0].

[0] https://twitter.com/rob_pike/status/618357610287226880
Yeah, I would too.
Put a QR code of your public key or public key hash on your business card, like the one in http://www.openbsd.org/papers/bsdcan-signify.html. You really only need about 80 bits.
Discover the best of yourself
Other than marketing, what are Uber's expenses? From the outside, it looks to me like they've successfully outsourced all their costs onto their "independent-contractor" drivers? How are they not profitable?
I'd re-title this as "46 harmful PHP code snippets".
Free SSL certs:
https://buy.wosign.com/free/
https://startssl.com/

Nginx SSL config:
https://cipherli.st/
> You missed one of the most important steps for most people with sleep apnoea: lose some weight.

While obesity is a risk factor for OSA, untreated OSA makes it harder to lose weight (or do lots of other things; it has a variety of physical and cognitive impacts.)

If you have OSA and you want to lose weight to deal with OSA, that's great, but its not really an alternative to getting immediate treatment for OSA, rather, its an addition reason to get the OSA treated.

You might not need continued treatment for the OSA once the obesity is resolved, sure, but that's a longer-term concern.
I also got 19, so all I know is... I got same result as you :)
Not all, just the dumb ones!

Also, two-thirds of native English speakers are in the US.
It’s hard to take an article about “gait” seriously when the authors misspell “gait” twice (as “gate”) and have an overall very poor command of the English language.

Here are some examples from a single paragraph in the Discussion section:

“Specifically, those individuals under the age of 30, such as those in the Plummer study, likely started using mobile phones.” What does this mean?

“While we attempted to explore an ageing component within our study generally feel that the upper age limit within our study was not sufficient to separate out more robust ageing differences.” This is not a sentence.

“Though currently absent from the literature a more thorough investigation into the effects of simultaneous texting and walking, as older individuals are more susceptible to tripping.” This is not a sentence.

“However, our findings are generally consistent with previous research showing that when time constraints are imposed on participants, older individuals typically take longer or exhibit more cautious gate characteristics than their younger counter parts.” The word is “gait,” not “gate,” (this error appears twice in the paper), and “counterpart” is one word, not two.

“Others have shown that walking increases ones time spent looking away from obstacles by as much as 400% [9] leading to a phenomenon a known as ‘inattentional blindness’.” The correct word is “one’s,” not “ones.”
I'm pretty partial to Newsblur, when I'm in an RSS mood. For a while now I've just been in the habit of manually going to X sites.

https://newsblur.com/

There are different layout options, in case you don't like the default.

http://i.imgur.com/meKnG6B.png

The mobile app is nice, too.
If you feel that way and don't want to support the industry, the real ethical thing to do is to not watch or listen to their products. Only support artists who are releasing their material under terms that you agree with.
You chose wisely. What is this _thing_ doing here?

Many snippets are of questionable quality. Also, any decent programmer should be able to come up with all of them and implement them more cleanly.

Oh, and please people, don't use snippets like those without checking the services first (in the case of the emails, SMS). Just go to the page of the company offering the service, read the documentation AND also read the terms of service.

Jeesh.
Another approach that is often used for these things is now generally referred to as Event Sourcing. You'll see it mostly associated with Domain Driven Design (DDD) and Command Query Responsibility Separation (CQRS), however it is a technique that has been widely used for decades prior to either of those terms being made popular.

In particular, it has been used in banking applications for quite a long time.
Location:Canada

Remote: Yes

Willing to reolocate: Yes

Technologies: HTML,CSS, Javascript, python, VBA, SQl Server, SSRS, little of vbscript, COBOL, R and SAS

Resume:https://ca.linkedin.com/in/esudo

http://codepen.io/edimaudo/

https://github.com/edimaudo

I have a degree in management/industrial engineering. Self taught programmer. From a work perspective, I enjoy process (re)design, strategic thinking, business analytics and automation.
its 2005 all over again!
Well, it basically is due to type juggling.
I would be worried that it make performance management of managers difficult. Which is to say a manager who fires people as a way of preventing themselves from being fired. The trick being "Yeah, last quarter did kind of suck but we fired that loser Bob, this quarter will be great." In fact there are a couple of reasons why the quarter was poor, it could have been poor Bob but it could also be the manager isn't cutting it. Unless the group has the option of voting the manager out of the organization, the whole "save the best, fire the rest" algorithm has problems. Or more accurately it has a blind spot with respect to management.

The interesting question for NetFlix will be how durable it will be as a structure. My impression is that it selects for the wrong attributes in management. But time will tell.
If you have electronic device on you, you are leaving a trail behind, like footsteps. Is it creepy or illegal to follow or collect those [footsteps]? I telecommute (* ) and easily check if people are in or not by pinging their computers (you may check for visibility of samba shares) - they have no expectation of me knowing they are in or not, but by no means i see this less creepy then your instant messenger of choice showing you as online and me checking. It is increasingly becoming bigger and bigger responsibility of ours to stop leaving these traces behind.

* i have never been told, but can easily imagine my VPN connection logs (server side) can be checked for when i logged in/out (not that they could even imagine i get in also via ssh/port forward through another box, when the VPN is down due to admin negligence) so i have no expectation of privacy there either.
The title and description don't match the code there. As you say, the code sample is actually to prevent XSS, not SQL injection.

stripslashes is used to undo the effects of PHP's old, terrible magic quotes misfeature, b/c the original author (probably not the blog post author) is assuming that $input is coming from the user via GET or POST.
The #1 biggest impact for me was working from home full time. I have been working from home for over 10 years now. It lets me control my environment -- most importantly I can minimize distractions. I also have two dogs who strongly encourage me to disconnect and clear my head (aka take them for a walk) a couple times a day.
3. PHP function to help prevent sql injection

No. No no no no no. A million times no.

Public service announcement: Do NOT use escaping to try to prevent SQL injection.

https://paragonie.com/blog/2015/05/preventing-sql-injection-...

20. php code snippet for database connection

> mysql_connect

I give up.

(╯°□°）╯︵ ┻━┻

EDIT: I've submitted this blog post to HN separately here if anyone wants to discuss it there (since this one was flagged)

-> https://news.ycombinator.com/item?id=10017409
If you spend a significant amount of time in front of a screen you should try to reduce blue light at all times just to reduce eye strain. flux is great but just a simple orange background / window theme will go a long way. This isn't a replacement for putting down your device an hour before you go to bed. Even if the light is orange / yellow you're still shining it in your eyes.
Make sure before you include some of the recommendations here that they are truly an Isomorphic Javascript Framework and not just UI libraries.
Maybe the OP means the fact that someone had to sue in order to get paid for their confiscated property?
Introducing Intern Recorder
To be fair, filter_var has a pretty screwy return type of its own but, yeah, if you're going to bother wrapping it, you might as well clean that up:

return filter_var(...) !== FALSE;

might do it ...
Better be checking the "wall of sheep" frequently then!
> People are complaining about the length of time it takes to get treatment, and the cost of treatment, and that treatment is a racket.

> All that stuff is true. All that stuff is avoided by losing weight.

No, its not.

For one thing, because if you are overweight and have OSA, "losing weight" can be more difficult if you don't get the OSA treated.

For another thing, healthy weight loss of an amount that is likely will significantly OSA is a longer process than getting treatment for OSA, even with all the problems that can involve.
No, you should use PDO.
Aren't most modern browsers evolving in the same pattern?
Signifying Nothing: Making Indie Games in 2015
Well acupuncturists in particular rely on making the person believe something will happen. A big part of that is the mood the person is in.
But on the plus side, you get to learn a lot and work with exceptional people, which is a great way to learn.

Exceptional at politics and boss management.
Definitely, but I always take Yelp complaints of rudeness with a grain of salt. I swear some of these reviewers sit in restaurants with a stopwatch timing how long the waiter takes to check up on them... too long and they were "inattentive and rude", too short and they were "rude and trying to hustle us out the door".
I had to check twice to make sure this wasn't an article from years ago.... so many bad practices from is_validemail to still using mysql_connect...
I was disputing your claim that there is "no apparent vector". Which is why I labeled changes to society an obvious vector.

If your proposed RF interference model has a factor of ~10^-19 in it, then a competing social interaction model that has a factor of 1 in it would have a much stronger effect, even if social interaction has only changed to the power of 10^0.1.

So the point there is that the magnitude of the change in the environment is not sufficient information to do a comparison, you also need some sort of explanatory model.
"Grue" referenced in the article as a colour encompasing green and blue reminded me of a Radiolab Episode [1] on the order in which words are established for colours; Across all cultures words for colors appear in stages - Blue being the last colour to be named.

[1] http://www.radiolab.org/story/211213-sky-isnt-blue/
How actual users feel about your cumbersome password policies
> Tell people that GC is not a barrier with Go’s low latency GC

If you have a time target of 350us, then a 3 millisecond pause means you are dead. So you either write Go in such a fashion as to not create junk or use c++. Systems and time sensitive languages cannot have GC.
3. if you have trouble staying asleep. get a sleep study. using a cpap machine has changed my life.
For a non-signed in session I can see some advantage in improving the swiftness of implementing supporting changes on the server for the client developers. For signed in sessions, you can't get around the database and an API update for it when the client needs some new feature or access so in the signed in case; I think the benefits of this nodejs part would be diminished.
The way she figured out what he "owes" her says a lot about her. She must have been thinking about his money constantly. Also as mentioned he provided them with house and basic financial support, but she lost it. I would be very careful about dealing with person like that worrying that the $25 million would be just a beginning.

Also $25 million for a good life? That's the amount needed for very rich life. Artist that cannot sustain herself, looses everything and lives with friends writing letters for few years asking for money from her ex. Sounds great.
Best practices we learned while developing our API v2 with Rails
Ha! https://github.com/robpike/nihongo
My answer on the headline, without reading: "annoyed"
Oh, yeah, I'd never put Go into any mathematical category. It's more about practical purity and simplicity like the languages that inspired it. My gripe with go was that it was a clean-slate, modern language that didn't adopt any of the awesome things PL community invented since the 80's.

Julia seems to be the best example of a clean-slate language that tries to combine all the best features and attributes of various languages with good effect. Also beats Go and many other languages on various benchmarks despite dynamic typing. I'd like to see some application-server or RDBMS type of benchmarks, though, as Julia was designed for the mathematical stuff. Might not perform as well but should still be good.

http://julialang.org/
Also a couple of tips for the beginning programmer:

* You've almost certainly not found a bug in the compiler or libraries or language runtime (somewhat more possible if you're using alpha, beta, or dev versions of something).

* Your CPU, memory, or other hardware are not defective.

* You are not experiencing cosmic rays flipping bits randomly in your data.

* The problem is most likely to be a mistake in your code.

I have worked with programmers who are quick to jump at the most unlikely explanations for bugs, and it's a very timewasting way to work.
keep going man. after you've learned how to sleep through the night with the mask, get 8 hours a night for 3 months (no exceptions and you'll be a new person. 100% would recommend.
The ability to use a General Purpose Computer and an IP address (non-NAT!) gives anybody the ability to publish without any gateway or authority being able to control what can be published. This is real power, in the long-term.

It is logical that the people who traditionally hold the power of what information can be published to large audiences - that is, the people that used to control the scarce resources that limited publication - would really like to see all these troubling technologies stuffed back into Pandora's Box and locked away behind the traditional gatekeepers where they won't cause trouble.

It's called the Digital Imprimatur[1], and it has been implemented while everybody else was busy distracted by technical minutia and dreams of stock options. Locking down "true"-root access with SGX (or other hardware tricks like SecureBoot) is one of the last steps. If we fail fight this trend right now... well... what good is a compiler when you can't trust[2] the environment it is running in?

[1] https://www.fourmilab.ch/documents/digital-imprimatur/

[2] (pdf) https://www.ece.cmu.edu/~ganger/712.fall02/papers/p761-thomp...
HBO supports a handful of shows and movies on double what Netflix charges. Netflix makes up a lot of that on increased marketshare, but still, I'm not sure they can afford to generate a lot of content.

>People are wanting to get away from cable, not find a way to recreate it.

But it's totally unreasonable to believe you'll get the same content as cable at a steep reduction in price. Sure you can take away cable profits and delivery expense, but you have to add in Netflix profit and delivery expense. It'll be cheaper, but not by a lot. Unless Netflix increases the subscriber base, but cable and networks already had a massive marketshare.

The value Netflix provides on 8 dollars is miraculous. But most of that pricing is hinged on netflix being a rerun service. Studios sell them stuff that is old and will never run on TV again. Netflix is sort of a parasite on cable and the movie industry.

If netflix actually kills cable and broadcast TV, then who is going to make all the shows for it?

As netflix becomes the normal way to consume media the expense of the content is going to shoot up. Because media is priced based on price discrimination. If netflix becomes the premium market, it'll have to pay premium prices.
The biggest thing I've seen that Skylake provides for high-performance gaming is 26 PCIE lanes.

This means you can run a PCIE 3.0 4x+ lane NVMe SSD like the Intel 750 while also running a 3.0 16x GPU (or two GPUs in SLI/CrossFireX). Given an appropriate board, anyway - I haven't looked at Skylake boards.

The performance increase of PCIE NVMe SSDs over SATA SSDs is amazing. SSDs are already great of course, but the Intel 750 can decrease load times by another order of magnitude.

Looking at the linked motherboard, its PCIE 3.0 slots are shared bandwidth, which isn't taking advantage of Skylake at all.

Edit: Actually, looking at the launch boards in Anandtech's review, most of them are routing the extra PCIE 3.0 lanes to M.2 ports (potentially a step backwards from U.2 but forwards from SATA). Getting maximum performance out of a NVMe SSD is seemingly still going to be restricted to only certain high-end boards for the time being.

At a glance, it looks like the "MSI Z170A Gaming M9 ACK" board has a dedicated 3.0 x4 slot separate and supports U.2, so there's at least some available, but it's $400.

Edit2: Apparently Skylake M.2 slots can provide full 3.0 x4 performance, so they're probably fine.
The Java Garbage Collection Mini Book [pdf]
The author does mention Datomic at the bottom of the post, along with CQRS (by which he most likely means storing events) as other options. HE then mentions that he's stuck using an RDBMS so Datomic is not an option.

The one thing I would add is that using an RDBMS does not preclude you from storing events along with your relational data. So you have a representation of current state, but also all of the events that took place to get you to that stage. And that will give you the same type of history.
The selection used to bother me until I realized it was due to treating it as a replacement for a video rental store. Makes sense since the original DVD-by-mail service aimed to compete in that space.

But now I treat it more like a really cheap version of cable TV. With cable, I can turn it on at any given time and channel surf until I find something I wouldn't mind watching. The specific movie or show I want to see probably won't be on but sometimes it is and the rest of the time, I'd just flip until I found something interesting.

The thing is, just a basic cable package for casual browsing and watching shows costs at least like $30-50/mo and often more. Netflix is what, $10/mo? As a replacement for "all the random channels" I find it to be quite good. I usually have a better time finding something I'd enjoy watching compared to basic cable and it costs a good deal less. For the occasional movie or newer show, there are online purchases, rentals, and more "premium" services like HBO Now. Just like cable TV, you pay extra for the new stuff.

The only thing about the new Netflix website that bums me out is that it broke the "God Mode" bookmarklet that I always used. It got rid of the endless horizontal scrolling and showed several rows of titles for each category, making for much easier and faster browsing.
I imagine there is going to be a lot of negativity in the comments, but I applaud you for not only solving a bunch of problems, but posting your code.

However, when sharing code that others might use, there are some basic recommendations that I think would help here. They aren't entirely about correctness, though some of them are.

1) Consistent style (function naming style, indent style, are these functions or not, etc). It is confusing for your end users if some of your functions look_like_this, whereas other ones lookLikeThis. Granted, PHP itself has a bunch of problems with this, but since you can easily control this, it is a nice thing to do. Same goes for the code itself and how it is indented, how brackets are used, etc.

2) No commented out lines of code. If there is an option for a particular feature in a function, it should be a $parameter in the function. Your users shouldn't have to comment and uncomment code to enable things. Comments written in english explaining code are of course fine.

3) All options should be $parameters. For example in #13, the $dir variable which affects the output filename is just hard-coded. This is an important value and should be a $parameter for the function. In #18, the reply-to and return-path should be $parameters. When you are writing functions for yourself, it is perfectly functional to hard-code these things (though not necessarily recommended). But if you are sharing it, you need to write for the most general case, so everybody can easily use parameters for their own specifics.

4) Simplest possible code. For example in #9, this function could just be the return statement and it would do the same thing. When writing for other people, every extra line of code is extra work for people to understand. If it can be written in a simpler way (that is also easy to understand), than it should be.

5) Be aware when using APIs. Quite a few of these examples use external APIs. I'd put those in a separate section, because they have external dependencies (internet connection, access keys, etc) that put them in a different class as compared to pure PHP solutions. A person using your code might not be aware of this and it could create problems for them.
On twitter, the common way to refer to R is rstats, which seems to work okay. See: https://twitter.com/hashtag/rstats