skysight-inc/HackerNews huggingface dataset:
FlowBAT – A graphical flow-based analysis tool
There is nothing wrong with supporting lots of platforms, but those #ifdefs need to be encapsulated in wrappers functions (or macros). This is a classic example of premature optimization, actually. You use one or two #ifdefs directly because you hate to pay the cost of function overhead just to make the code easier to read. (Even though there's practically no point in tiny optimizations just before the code is going to wait for keyboard input.) A few years go buy, a few more situations are done via #ifdef because at least that way it's consistent. Eventually you have a nightmare function like this, where reading it forces you to read every possible version of the function simultaneously.

Encapsulate your #ifdefs people!
It's actually a plume from a volcanic eruption, which is even crazier.
> AFAIK, for any container 'T' to be able to satisfy the Monad laws, at least one of the aforementioned three combinators must exist for the container.

All three of them must, actually, since if one of them exists, all of them do (and you can define the other two in terms of the one you know.)
Millennials Who Are Thriving Financially Have One Thing in Common: Rich Parents
I was sent this document a while ago from an acquaintance who dabbles in nootropics; it may be of interest to those looking to try something new: https://bit.ly/1CHzody
Are you looking to make a career move?
This comes up all the time. Moderately annoying situation if you ever drive in the US with a foreign payment card. The gas pumps use some "ZipSecure" thing that requires you to enter your zip code to authorize a credit card payment at the pump.

... Except I don't have a zip code. Which usually meant I either had to prepay inside (and then go back inside to receive the remaining balance as cash) or leave my credit card unattended with the clerk while I filled.
Show HN: An Elixir Wrapper for the HN API
One word: Nokia 3220
I don't see any dumb questions on your part. Maybe some differences of opinion. Don't ask me about the downvotes. I personally only downvote stuff that's deeply counterproductive. But it seems other people are more twitchy with them.

Anyway, I take the post as just saying that internationalization is bad for shell commands, not necessarily for other things.

Shell commands are unusual in that they are both a programming interface and a human interface. That puts strange constraints on them that don't show up elsewhere. For things that are clearly just a human interface (for example, a GUI app) you definitely want to localize. For things that are clearly just a computer interface (for example, a REST API) you definitely don't want to. But how do you deal with something like this where it's half and half? Trying to optimize for one use case can hurt the other, which is what this post is trying to show.
You know what I think every time I see an article like this?

Did you really go to Iraq? Because the Iraq that I saw made me thankful as shit that I basically won the lottery of living in the developed world. Got some first world problems? Who cares. I have a CIB, too. But you know what I hate almost more than anything? People that shim their CIB into a conversation hoping to add more weight to their words.

Life is rough for the vast majority of people on the planet. Take your experiences in hand and be thankful you made it out of that shithole alive.
You would be surprised. Dropbox for one does these kinds of deals all the time.

That said they wouldn't care about anyone other than the 2 engineers and any designers on board.
Using their authentication mechanism, a user should only get an access token with the right combination of client id and client secret.

For at least 7 hours, anyone could get an access token for any client id, without entering the right client secret. With that access token they could see a lot of information for any account.
The conversation is stupid, racist and possibly illegal
I get it now! See for yourself at the Founder's LinkedIn pages [or the Jopwell Team page]. You have two outstanding young men with some great work experience but whom also have extraordinarily white-sounding names yet are not white. My question about just using pictures is now proven to be a potential solution. I'm sure some code that infers the race of a candidate from a digital photo could be used and may be a potential patent.

Edit: Adding that self-identifying race on a candidate's profile may not be optimal when US anti-discrimination hiring laws are in effect. However, a picture is worth a thousand words. If you are shallow enough to hire from a pool that excludes one or more races, then you are also shallow enough to hire a candidate based on their photograph. I understand that some companies are not diverse enough, but there are root causes that Jopwell is not addressing. One cause is America has deep Anglo-Saxon and European roots hence the majority of the population is/was White; the opposite issue may be present in Africa, India, or China where 'whites' are minorities. However, choosing candidates from a racially-segregated pool for the appearance of being diverse seems so shallow. Allowing all candidates, regardless of race, and simply including a photo of a candidate absolves Jopwell on several fronts.

I'm fine with the downvotes, even if I do not understand why. These are valid points.
I taught myself Python on the Internet and so can you
Testing whether a account number is valid before transmitting to the server is a problem that was identified and solved over 60 years ago with the Mod10 algorithm. Why aren't they using it?

Right now, the only "does this credit card number look right" validation they do in JS is to look for a known prefix digit, and the length of the number. Otherwise the send it to the server for processing.

This is silly. In 1954, the Mod 10 (AKA Luhn Algorithm) was designed specifically to catch people mistyping in account numbers and all credit cards use it. It's a check digit, where the last digit of your credit card number is based on the all the other numbers. It catches transposed digits, and mistyped digits, which are super common when asking a human to type in 15+ digits.
OP here. iOS 9's SFSafariViewController, unlike UIWebView or WKWebView, runs out-of-process and cannot be data-scraped. Beacause of this, SFSafariViewController shares cookies with Mobile Safari. The use-case here is essentially loading a special URL on the website that will take any logged in session and return back an oAuth token that the native app can use.

The communication method in the demo is as if you were talking indirectly with Mobile Safari, using a custom url protocol (e.g. fooapp://), or by using the new (safe) Universal links (apps can register specific domains/urls that will redirect back to the app, using their Associated Domains entitlements).
Isn't this just a mini ChromeOS computer, not "Android + Windows" like they allude to?
Nah, I've done plenty of that sort of thing, am quite handy with a soldering iron. What Tron-Club indicates they're doing is exactly what I want, smallish circuits on these newfangled white plastic breadboards, which per Wikipedia were invented in 1971. I potentially want to understand (further) the circuits, not, at this moment, make anything in particular.
I find it odd how many people overlook this fact. I think people reading tech blogs and sites sometimes live in a bubble.

I don't know if in most, but in many companies there are no automated tests at all, and very few "best practices" such as automated builds/continuous integration and even decent source control.

I don't want to name names, but I'll say this: I know for a fact at least one IT/support department in the local branch of a HUGE multinational energy company (guess a few names and you'll get it) doesn't do automated tests of any kind. They are similarly clueless about most things tech-minded folk would consider best practices of the last decade. This department doesn't work on core software, but instead on inventory/procurement systems, but still...
The system works!!
Unboxing and Assembly of a Gaming Chair
DevTools for Redux with hot reloading, action replay, and customizable UI
I once signed up for the WaitButWhy blog newsletter through a popover because I liked the article and the copy was pretty effective. Otherwise, I've never done it before.
#supportgreekstartups initiative started
The Icy Mountains of Pluto
Awesome. I nearly built something similar a while back. Glad someone's finally doing it!
I wonder if this has any thing to do with why amex was so infrequently an available payment option online for so long...
I'm actually under the impression that sites that make readers pay will eventually implement advertising in addition to subscription fees. Even great magazines do this and it makes sense because the people who are willing to pay for a subscription are exactly the people who are the best to advertise to.
I wonder if attitudes such as yours actually hold "open source" back. In my mind it can't be good to gin up infighting for no good reason, especially on a forum thread like this one that is not at all related to the topic of permissive vs. copyleft licensing.

I'm not sure what your age is... but I suspect you might not remember the world of personal computing before the GPL and free software were everywhere. If you do remember those times... it is very difficult for me to put myself in your shoes and understand how you come to the conclusion that the GPL has made the world suck more.
And good luck finding the "close" option hidden in a non-obvious spot in a similar color to the background.
>just a little too far for DSL

Being on the far end of DSL service is pretty bad also. 1.5mbps down isn't fun on the modern web. At that point blocking plugins like flash and running an ad blocker is pretty much mandatory.
Taken from startups for the rest of us, episode 166 transcript.

"[10:19] Mike: When I first started out, I did have a mortgage and to be perfectly honest, if you have a mortgage already, it’s a lot easier to quit your job than it is to quit your job and then go get a mortgage just because the sheer amount of paperwork that the bank will send you in order to get a mortgage if you’re self employed is just astounding. You’re much better off just going and finding someone to pay them to hire you at whatever salary you want and in order to be on their payroll instead of having your own just because banks have this thing about you’re self employed, you’re risky. And it’s like you’re probably making decent money in order to be able to do that."
> Most importantly: how do I best stand up for my own interests here, without being the asshole that ruins the deal for everyone?

First figure out what you need to make it work, and then be up front about that with everyone. Be stable, straightforward, and stick to your position. Have a clear idea of your plan B (which could be 3 months of travel, for example).

Be polite but absolutely, positively willing to walk away.

As long as you stay stable and polite you won't be an asshole. This is your life, you don't have any obligation to be a "nice guy" and take a shitty deal just so that other people can make money or save face.
"Running it in reverse" would be claiming that you didn't actively discriminate in favor of the majority, it just so happened to happen because you did something else.

This has been tested over and over again... for instance, it is the reason why IQ tests are de facto illegal to use for hiring. (There's some good reason to believe that it could conceivably be used safely, but most people just aren't willing to take the risk for what gain you might get.)

So, yes, it's been tested a ton. You can not "discriminate" by using standards that just happen to discriminate but you can "plausibly deny" any discriminatory intent. The reasons why you're doing it don't matter much to the courts.

"which isn't being marketed as a sole funnel for companies, and companies would be pretty clearly breaking the law in most cases were they to use it that way."

Yes, but again, de facto it's not safe to use things that would be discriminatory as even part of the hiring process if it were going the other direction. It seems like you're opening a dangerous door to even have something like this in your pipeline, where a rejected candidate could sue and then start arguing about how some balance or other was not precisely correctly maintained.

And remember, this isn't just about "white males" suing either... right now Jopwell explicitly mentioned the minorities they're going to start with... how would you like defending against a suit raised by a minority not in that set?
Did just take* fixed that for you.
I feel "practical" is too strong of a word here. It's probably a more practical attack than previous attacks, but that doesn't make it practical by a long stretch.

"Only" 75 hours, where you have to force the victim to do make a very large number of encrypted messages. IMO, this wouldn't work when trying to break someone's SSL connection at the local Starbucks.
This appears to be an add on service to compliment your existing hiring, specifically to increase diversity.
It’s awesome to see so many teams working on making it easier for people to get into the hardware maker space!

To that end…. since everyone is showcasing their projects, I’d like to introduce everyone to http://thimble.io/

Our aim is to make it much easier to learn and expand your skills in a more structured format. We’re working on a learning app and monthly hardware subscription kit. You get all the parts you need to assemble an entire project - the first month will be a wifi-enabled robot. We’ll be running weekly webinars every month in order to field questions aside from the community forum and slack group.

We’re also working on incorporating a competition element for those interested in pushing their skills. Every month a panel of judges from the industry will choose the top submissions - customized beyond the basic kit (naturally cool and useful prizes and accolades will ensue - cool hardware stuff + software subscriptions).

SHIPPING: We’re working with fulfillment houses to hopefully be able to ship internationally from the get go. Volume will dictate how much we can drop the overall price of the kit by. I can say that it’s a priority for us to do so and drop the price through better vendor partnerships and preferential rates from fulfilment houses to make Thimble more accessible.

Pricing: $70-80 for our first robot kit. We're looking for feedback on the first kit and from there we’re going to adjust price/kit complexity.

Would love to know what you guys think.

Thanks,
Michael
Let's not forget the "would you mind filling in a survey about our site?" popovers as well. I mean, I might have filled out a survey if you'd actually let me look at the site first. Even Microsoft do this.
> 47% of Coinbase users are now from countries outside the US

I wonder what the country breakdown estimation is for all Bitcoin transactions. I would guess more international use than Coinbase numbers
Does the color noises improve productivity? 6 colors to try at home
I don't think the Costco analogy applies well in this situation.

I do think Reddit is going to miss most of these people. Personally, I say good riddance, to these people and to Reddit.
Mozilla Winter of Security is back
Try to code it, test it, and submit your request. This is why we open source.
You've just been fired by the reddit board.
Thank you, yes. This is exactly the sort of short and sweet bullet points that I'm building up.
Security when running your own email server?
Sometimes I read privacy advice to run your own server for email, but I wonder that for most people (even IT people) it would be a security nightmare.

While I do run a webserver with public accessible stuff I think that the security of that box is far below even the worst gmail server. Google are experts at this stuff and spend resources I could never dream of on proactive security and monitoring.

So, would you not agree that your email is more secure at google (or a similar provider) than on your own server (a few experts not included)?
Nasa unveils 'surprise' Pluto photos – live
Sure, but for offshoring, a salaried position is a whole different ballgame than a contract you can not renew after 2 months
To be perfectly honest, and from the perspective of someone who pre-ordered a Leap Motion on day one of their first demo video... This is about all the Leap Motion is useful for. It's actually pretty terrible.
I'm developing an algorithm that will interpret a structured light (that i'm also building) pattern such that I will be able to detect the distances and relative smoothness of surfaces. Can then be used in autonomous navigation and SLAM based systems!

Fun stuff.
Shoppers Buy More Junk Food When They Bring Their Own Bags
JsonAPI implementation in Go
I have never endorsed ”legitimate-government-only side channels”. I’m trying to nuance the discussion by asserting that not every attacker is equal in their skills and resources.
Great to see more on the pipeline side of things!

What would you recommend for companies interested in doing better here?

If there is institutional bias (and I think there is, if not overt), then under represented people on average will have less experience. I've been thinking companies focusing more on training and development could help offset this issue. My startup is really small and lacks resources to develop something comprehensive here. Any thoughts or recommendations?

edit: let me give an example. I'm using Hired.com for recruiting. I've noticed some people have a coding bootcamp + internship vs others that have CS degrees and more experience. The latter will be better prepared to take on the challenges as a software engineer at most startups. I haven't done a comprehensive study, but it seems like there are more women in the former.
It is still an issue, since vi/vim gets used for sudo purposes all the time. Any time someone uses visudo to modify their sudoers file, for example, that's giving root privileges to vim.
Pivotal tracker has a new relic integration that will generate new tickets of type bug when an exception is captured.

Also, a lot of places like to just wire an exception handler and email the dev team when an exception happens (with the stack trace, request headers, etc). That way, annoying emails keep coming until the bug is fixed. It's a good reminder ;)
> After 7 months of self studies, I can add “Python programmer” to my resume and I didn’t have to get a loan to pay for College

You probably shouldn't put "took free online classes" as evidence of expertise on a resume. That's not sufficient evidence of actual proficiency in the language.

It's also the reason why many advocate having a populated GitHub profile in lieu of professional experience/learning.
Yes, I don't think this is a WTF. What it really is, is an example of real-world code, that needs to work everywhere, not just in a specific app on a specific OS running on specific hardware... that of course makes it easy for things to be much more tidy.
My experience has been the exact opposite (even with simple views); the view layer always incurs the most CPU time. With the proper indexes and eager loading, data retrieval is incredibly quick.
Note that most of the convictions are for conspiracy to commit crimes or for selling tools expressly to commit them. Spam botnets, selling malware (probably advertised as a criminal tool), etc. While I didn't exhaustively read every charge, it looks like they're arresting people who either used said tools or profited from their criminal use. Didn't see anything related to "possession."
GoDaddy takes down Ukrainian website after request by Putin’s internet regulator
Wow, the first graph in this article looks exactly like the graph of the bubble phenomenon (http://i.imgur.com/Amon5PR.jpg). I guess stability will increase, which is a good thing.
Can someone give me a quick overview of how something like this works? I have experience with swift and Obj-C but there is a lot of dynamic stuff happening. For ex what's "objc_setAssociatedObject", is this needed, no 'clean' way to do it?
To me, the perversion is creating a system where it's cheaper for the thumb tack manufacturer to employ people in mindless, repetitive, soul-crushing work (no offense intended to the few people out there who love assembling thumb tacks) than to automate the task.

Minimum wage is afaict a "below this wage a person cannot support themselves" barrier.

But we really don't have a "below this level of boredom a human shouldn't be doing the job" metric. (And moreover, I'd cynically quip that it's probably in capital owners' interests to ensure that never happens, thus affording them a cheaper alternative to investing in automation -- even if the price is a substantial portion of a person's life)
Is this any different than it used to be?
You didn't need to add the Show HN prefix.
It does seem to be the most commonly used WebSocket polyfill around. We also use web-socket-js [1] for fallback. But Version 3.0 of pusher-js [2] will remove that.

One negative with SockJS has been the complexity of the fallback approach on the client (the browser). Especially when it's only for 8% of connections. A single simple cross-browser HTTP-based transport would remove the code complexity and reduce the file size.

[1] https://github.com/gimite/web-socket-js
[2] https://github.com/pusher/pusher-js/tree/r3.0.0
That stuff is spooky. But I don’t think it’s usage is widespread.
Are there plans for a second stress test? It probably doesn't make sense to run it again until we have reason to expect different results.

Other than increased block-size, is there something that could improve these results? More full nodes?
Google Is Hiring an SEO Manager to Improve Its Rankings in Google
A civilian is someone who is not a uniformed member of the Armed services. There are civilians who work for the branches of the military (Army, Navy, Marines, Air Force) but they do not (typically) wear the military uniform, do not (typically) fall under the Uniform Code of Military Justice, get paid on a different scale and have different legal standing.

Commissioned officers and Enlisted members are two sides of the same coin. Commissioned officers are formally appointed by the president and have certain constitutional provisions applied to them. Junior enlisted members and non-commissioned officers do not have the same constitutional charter. In practice these differences range from marginal to extreme in terms of how the groups interact with each other and the general public.

Interestingly enough, the amount of enlisted and non-commissioned officers with college degrees has never been higher, so it's not really that much of a differentiation anymore. It is however increasingly common with commissioned officers that they will have pursued a masters degree within 6-7 years of commissioning.
Thanks for your feedback technic. All of them are definitely on our list of components we want to do :)

Have you ever checked out: https://github.com/rackt/react-modal

Seems to be pretty solid implementation.
Why Steve Jobs Is Actually a Lousy Role Model (Wired)
In many cases PBS does interrupt their content to solicit donations – but you do get a coffee mug and tote bag. Is it better, as you suggest? Maybe. An alternative, certainly. Don't see many others doing it.

Akin to a "Donate" button on a website. How well does that work for most?
> The results were not favorable for bitcoin and highlights key design problems

Some would disagree, considering the system kept functioning exactly as intended under the circumstances imposed on it.

Personally I agree that the whole thing is troubling, but was anything really discovered here?

Considering that the price has been rising, if you believe in prediction markets, these design problems could likely be overcome. After all, people have been working on it since long before any of these stress tests were performed.
I'm really excited to see a (relatively) large and complex desktop application being written in Go. Waiting for it to go public!