skysight-inc/HackerNews huggingface dataset:
Interesting. My answer is an emphatic yes to all of those questions. In the back of my mind I've always suspected that I would be diagnosed with ADHD, but never talked to anyone about it. In the end I just chalked it up to being a different kind of person and catered my life around my behaviors instead of trying to force my behaviors into some ideal notion.

Looking back at the age of 40, my life has been much richer for it, having met interesting people, traveled to strange places, and worked on amazing projects. Most of the behaviors you listed have naturally attenuated through experience and age.

But to be honest I still struggle (albeit somewhat successfully) daily with a lot of it, so I'm wondering what treatment you got that worked so well. I'm definitely not interested in drugs for myself, but would still like to hear your thoughts on that if your treatment included them.
Show HN: gemstat – Amazon's “Customers Who Bought This Also Bought” for Rubygem
https://twitter.com/php_ceo/status/597503767999807488
I'm happier now because I no longer have to deal with the issues in my top-level post. I spend less time being blocked, and I am more effective at unblocking other people. Yes, commutes and open offices suck. But the team as a whole is better off if we sit together, and that makes it worth it to me. I prefer to work with people who feel the same way.

That there's no (visibly) unequal treatment is definitely part of it. I want to work for an employer that I believe is fair.

> If someone came tomorrow to your office and gave a million dollars to each of your team members and $10K to you, you would resent your team members for receiving more money than you, right?

I take it you're a fan of Jeb's tax plan.
What is "the new web"?
The situation stops being a problem when someone either chooses seat 1 or seat N.

Because:

- If at any point someone chooses seat 1, then everyone else will get their chosen seat.

-If at any point someone chooses the last seat, everyone but the last guy gets his seat. The last guy gets seat 1, because it has to be free (if it wasn't , then my first condition would have applied).

So only seat 1 and N are possible, both having equal chance, thus 50%.

You can notice that the two conditions that resolved the "seat being taken" problem were when someone sat in a seat that no one else would have a ticket for. What kinds of seats are those? The 1st seat, the last seat, and empty seats.

This means that by adding L-N empty seats, the chances of the last guy having his seat is 1/(L-N + 1st seat + last seat) = 1/(L-N+2)
Microsoft Offers New Certification for Linux on Azure – News Center
I think people often combine remote with asynchronous. You can have people who work 3PM to midnight in the office, when everyone else is working 9-5 and it can be annoying for communication.

I like the idea that those are separate things and when people hire remote engineers they should go for engineers in the same time zone or ones who want to work synchronously wherever they are.
It's about the performance of selecting which function to call:

https://en.wikipedia.org/wiki/Dynamic_dispatch
How does the presence of C++'s placement new() affect devirtualization opportunities? I'm sure Chris knows what he's talking about, so I'd like to hear more.
Nim has made 4 syntax choices that might seem bizarre to a C++ programmer: 1. blocks by indentation instead of braces (aka "Off-Side Rule" syntax [0]); 2. Uniform Function Call Syntax [1][2]; 3. case-insensitivity for identifiers; and 4. dropping empty parens from a function call.

[0] https://en.wikipedia.org/wiki/Off-side_rule , [1] https://en.wikipedia.org/wiki/Uniform_Function_Call_Syntax , [2] http://nim-lang.org/docs/manual.html#procedures-method-call-...

Choice #2, Uniform Function Call Syntax (UFCS), allows you to write `a.someFunc(b)` or `someFunc(a, b)` interchangeably.

Choice #3 is case-insensitivity for identifiers: You can write `a.to_lower()`, `a.toLower()` or `a.tolower()` interchangeably.

Choice #4 is the ability to drop empty parens from the end of a function call: `a.len()` can be written as `a.len`. Combined with UFCS, this allows you to write `len(a)`, `a.len()` or `a.len` interchangeably.

I'd already been programming Python for years, so I wasn't surprised by choice #1 -- in fact, I was pleased. After initially being highly skeptical of Python's OSR syntax when I first encountered it, I've since come around completely. The most common complaint against Python's OSR syntax is that it allows both tabs & spaces, interchangeably, which has bitten just about everyone who has ever used Python in a team. Nim avoids this problem by allowing only spaces to be used for indentation, not tabs: http://nim-lang.org/docs/manual.html#lexical-analysis-indent...

My eyebrows certainly went up about #2, #3 and #4 when I first encountered them. But you know what? Much like Python's OSR syntax, I've now come around completely. Now I actually prefer #2, #3 and #4 the way Nim does them. When I'm back in Python, C++ or C, I wish they behaved the same way as Nim!

Think about it: How many stylistic debates have there been about whether an operation in C++ should be a function or a method? How many times have you pondered whether an object attribute should be a member or a method? It's just a distracting detail with no benefit. And now you don't need to care! Apparently Bjarne Stroustrup is a convert to UFCS too: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n417...

Nim is, above all, a pragmatic language. I think that in another 5 or so years, Nim's syntax choices #2, #3 and #4 will seem just as sensible as #1 seems to Python programmers today.
That probably was their reaction considering it's usually the governments that have issues with each other, not the people. For instance, I have no problem with Russians or Chinese, I think in general they're nice people, as with any population, but our governments have problems with each other and that causes us to fight.

I get we're, for the most part, fighting the ideologies of the other country, but it's a real shame we can't live in peace. It's the few bad apples - the greedy, the criminals, the oppressors, the deceiving - that ruin it for everybody.
Infographic: 4,000 Years of Human History Captured in One Retro Chart
This is a constantly perpetuated myth. It is the image that advertisers sell us. If it's something Americans have it's time. Do you know how many hours of TV is watched every day, on average?
My Scala code: https://github.com/atemerev/FXCore/blob/master/src/main/scal...

My Java code: https://github.com/atemerev/pms/blob/master/src/main/java/co... (saved me probably man-years in my consulting projects).

Code samples for Javascript, Matlab, Haskell and Go available on demand. :)
VPNs don't give you anonymity, the company behind it knows everything about your connection. And paying just helps connect your account with your identity.
Migrating to Travis-CI from Bamboo
Educating current inhabitants could be an alternative.
JBoss Forge 2, Java EE easily, so easily
Url changed from http://www.ozy.com/acumen/the-link-between-leaky-sensory-fil..., which appears to crib from this without linking to it.
Manipulating newspapers definitely requires an active use of hands and some skills in order to keep sanity.
So a website is a house. A house has articles, users, and two URLs. Does this mean, that a house is a website? I imagine how you get home from work, open the url of your house. But I can't really imagine, what happens next. Can you help me out? Where do you take a nap, for example? Where do you cook? best regards
My problem is precisely that I don't get any pleasure from crafting (unless it is a really novel way of doing something). This is something I just can't feel, like color-blind people can't see some colors.
It's a lot quicker to get talking I suppose?
> It is functions all the way down

I came to approximately this conclusion a year or so ago, on my personal road of HTTP experience. I didn't even realize it was related to HTTP at the time: I wanted an RPC protocol that could do various things: It's just function calls, right? The thing was, the more and more I added features to it, the more and more it started to resemble HTTP. I think the final straw was caching: I needed a way to identify the resource to be cached, and eventually realized that identifier was a URL, and that the whole thing was essentially HTTP if I change from "function calls" to "resources".

> The server receives two strings: the path and the query params (or post body as string). The first string is parsed to get the function to call and some parameters to be passed to that. The second string is parsed to get the additional parameters to be passed to that function.

> We have been accustomed to getting JSON responses from the server. Isn’t it time to stop sending strings to the server and start sending a structured data format?

To some extent, the data is structured. The path is hierarchical (though most web frameworks/servers I've interacted with do a crappy job of exposing that). With regards to the query string and POST body, I feel like the article is muddling the encoded (string) form and the decoded form. We have to encode to a string to transmit: it's going over TCP, or a wire even, at some point. But it's perfectly fine to put JSON data in a POST body. Even the default, x-www-form-urlencoded, is "structured" in the sense that it's key-value pairs, though perhaps less "structured" than JSON. (It has a well defined form, and a way to parse it, though it isn't as rich in what it encodes as JSON.) Near as I know, the query string can be JSON too; it just typically isn't by convention.

I'm curious how this supposed "two URL" approach would attempt caching.

I think the newly drafted SEARCH method[1] (intended for search requests; carries a body) would suit the example in the post fairly well. The body on that request could be GraphQL. (And today, if you really need a odd request like this with a body… there's POST.)

[1]: https://tools.ietf.org/html/draft-snell-search-method-00
There are not any bootcamps like that in Switzerland. Probably a good idea to organize one and hope I don't fail in organization minutiae again. :)
> maybe there's an equivalent of the "everybody reading their paper on the train"

Here:

http://imgur.com/gallery/GAyn8r7/

http://i.imgur.com/tNmuEai.jpg

Although it's more about newspapers than books.
"Earlier this month, Congress remained deadlocked on the issue, with Republican Senators shooting down a proposal from Senate Democrats to stop suspected terrorists on no-fly lists from buying guns and also a measure to tighten background checks."

This statement is utterly false. The only Senate Democrats action that remotely resembles that claim was SA 2910, which was written solely to overwrite the ObamaCare repeal elements of the parent bill, H.R.3762. Because it was a bogus attempt to kill the ObamaCare repeal with language that was completely unrelated to the U.S. Code addressed by the bill, it was ruled Out of Order.

Senate Democrats have made NO attempt to introduce any such standalone legislation with the claimed effect. (For that matter, SA 2910, the Feinstein scam, doesn't even mention the Terror Watchlist.)
It looks interesting (especially the diagram), but it's pain to read due to low contrast (vide http://contrastrebellion.com/). I read it only after manually changing #666666 to #000000.
OP here — I am on treatment now, including medication. Didn't help me strategically, but it was worth it being diagnosed nevertheless. At least, medications helped me stopping losing things.
There are perfectly legitimate reasons to ip block.

I block connections from most of the world to my various network resource admin points because only I am going to be connecting to them and I'm not going to be connecting from China or Nigeria or Romania. And if I am, I unblock them temporarily.
Eclipse IoT
Are you suggesting banks are creative endeavours? I like the connotation.
Finding jobs is not really difficult (even in Switzerland without knowing any local languages, I can usually land something in 1-3 months). Staying there is another story.
Start a daily meditation practice. Just 15 minutes a day can work wonders - I speak from personal experience, having experienced some of those symptoms myself, and pretty much all of them gone. Here is a very effective one:

http://www.ishafoundation.org/Ishakriya/Learn-online
> Interesting. My answer is an emphatic yes to all of those questions. In the back of my mind I've always suspected that I would be diagnosed with ADHD, but never talked to anyone about it.

Same here, I always suspected it, but as I'm 25 and don't want to take medication, I never thought there's much that could be done.

I would love here what y0y did to work with his condition as well.
Similar situation here but a bit too late for us :] We want C++ with Python on top, and evantually able to run on some RTOS. CPython didn't quite cut it in how easy it was to get running on small platforms (if it sees a windows compiler it assumes there's a registry etc, go figure) but luckily we found http://micropython.org/ which has enough of the Python 3.4 syntax yet is small, well written and C99. But because it's rather 'young' there are no binding solutions so we quickly had to come up with one ourselves. (quickly because at the time we still had to decide whether to really go with MicroPython or not) Result is here https://github.com/stinos/micropython-wrap and the similarities with the way better written PyBind11 are still striking so I guess we didn't do that bad of a job. Though we're definitely going to look into how PyBind11 solved keyword arguments (never got into that).
I have a huge working memory and ability to hyperfocus (occasionally), which helped me to deliver some quite successful short-term projects. It is persistency I have problems with.

Commitment to stack is some problem for me, but it's OK for 6 months, maybe even a year. Anything longer-term, and I inevitably think something in the lines of: "this Java code now looks like shit, I learned so much new things, why not rewrite anything in Scala/Akka/Go/another interesting stack du jour?"
EntrepreneurGuide.me – Get Started Guide for Startup and Entrepreneur
Tried Headspace meditation app, worked quite well indeed. Then stopped it after 4 months of effort, can't get back on track. Same problem here. :)
As in my comment below, I've suspected I've had ADHD for some time but didn't think there was much that could be done for it since I don't want to use medication.

If you don't mind sharing, could you please explain how you've managed to work with it and some of the steps you took. What were some of the difficulties you experienced along the way?
2 billion chars = 2G of data, so not that big.
PHP - Rails inspired some great frameworks on PHP and once they became available I promptly switched.

I realize I might take some flak for this : )
vector::size() actually returns size_t, which is exactly the right way to go about, because why should a size() function be able to ever return negative numbers?
Chris Lattner is a compiler author (LLVM/Clang, Swift), so this post is most definitely talking about compiler semantics that is pretty low level stuff that isn't really visible to the end-user (the programmer of the language), except for in C++.

When a compiler is compiling a program, and you make a function call (lets say `int x = obj.compute()`), the compiler has to know where the code for that function is. In C (and C++ to an extent), this is easy, functions aren't very fancy and compiler can just go to that place in memory which doesn't change during runtime. These types of functions are called "static functions" and the compilers method of calling these functions is called "single dispatch". Since the code that runs is very predictable, its easy for the compiler to optimize the function call.

In other languages (like Ruby, Java, Swift), a statement like `int x = obj.compute()` has multiple meanings if `obj` can be subclassed. For example, if you have an inheritance structure like (Dog, Cat) > Mammal > Animal, `obj.compute` could mean the compute function on Animal, Mammal, Dog or Cat. At compile time, the compiler may have no idea of knowing which definition of `compute()` to call. So during runtime, it will analyze the type information and call the correct function. These are called "virtual functions" and they are called with a "dynamic dispatch". Because there are multiple functions that could run, actually predicting what will run on the machine is hard.

Dynamic Dispatch function calls are generally slower than static ones, and a compiler would prefer static calls. Chris goes over the many different methods languages attempt to make dynamic calls faster - and Swift, thanks to its simple programming model, (AFAIK) gets "smart" about function calls and can make single dispatch calls when needed (Java can do this to, but what makes Swift "cool" is that it doesn't need a Just In-time Compiler (JIT) to do so).

What all this means to you (the end user) is that you can use all these fancy functions in Swift without having to worry about performance. The overhead of a function call may be something you have never considered (I certainly don't think about it), but I'm sure its something compiler geeks obsess over.

I may be 100% wrong here, I'm not a compiler author, can only make a guess from C/C++ experience, and I've never used Swift before.
Oh no, my life is anything but monotonous.

I lived in 6 different countries (going through bureaucracy hell while getting paperwork done each time), visited another 20 or so, tried getting a PhD, founded two startups (failed both), etc etc.

Part of the problem. :)
Yes, but the hands are grasping and folding. And the arms are extended. It's hard to swipe and type in that posture.
The stuff that happened to this guy makes the precautions that 'mad eye moody' in Harry Potter took seem sensible. Never accepting /anything/ from strangers and distrusting absolutely everybody...

It really makes me want to have a stronger social safety net. Designated, on the job, monitored for safety, public service workers who ensure basic aid and dignity is offered to all. It would be nice if this is what a 'peace force' did.
I'm not trying to cast any doubt on this author's story, but Snopes regards this particular drug story as "False" [1]. This seems too crazy to be 100% true.

Could it be that nobody knows how this drug really works? According to Wikipedia, NASA is using this drug as a counter to motion sickness [2].

What's even more strange is that the credited author of the story is not the actual author. At the end it says it was told to Daniel Krieger, who ostensibly wrote the article.

Something doesn't smell right about this whole thing.

[1] http://www.snopes.com/crime/warnings/burundanga.asp

[2] http://spaceref.com/news/viewpr.html?pid=38893
Quite agree. My question is "how"?
Files Are Hard
A good idea. English is not my native language, but everything can be improved, and I have some editorial skills (worked as a journalist some 10 years ago). I like writing.

It's much more difficult to make it lucrative, though.
Show HN: Customize and Send Invitation ECards with Text and Voice Messages
Can someone give similar hackerrank/job challenge + resume links for other orgs ?
I was going to write a response but bdash over on reddit did a great job, so I'll just link that: https://www.reddit.com/r/programming/comments/3wla9f/chris_l...

One interesting note is that, the last time I looked into this, the compiler _is_ allowed to assume that multiple sequential vtable calls do not replace the vtable, allowing the vtable lookup to be cached. But that is not true for some arbitrary external-to-the-compilation-unit function that.
I have a similar issue of self destructive behaviour with impulses I cannot control. An extreme solution that I was recommended by my therapist was DBT, it is less therapy and more learning to.control the urges.
I agree,but for above post. Looks like someone asked a basic (looked like homework) question, which attracted someone to answer him. Later the question marked as homework and a year later it was removed! I don't think thats right attitude by SO. You can see lot of closed questions as 'off-topic' has more than 1 answer. SO need to find a solution to this problem. Whenever I see valid question down-voted, I used to upvote or mark it as favorite. Surely they need to review their moderators and their behaviour.
There's a great 25 minute tour of the ISS by Sunita Williams on NASA's YouTube channel along with commentary on how life works up there. https://youtu.be/doN4t5NKW-k
This story sounded like one where to google for "burundanga" at snopes.com seems the appropriate action.

http://www.snopes.com/crime/warnings/burundanga.asp

NYT actually thinks it's true?

Edit: sleazebreeze had same thoughts a couple of minutes earlier.
Good writeup. What is a checked downcast?
Lots of chargebacks.
I switching to Bitcoin.
Not living in the Bay Area, or even the US. Is there something that can be done e.g. over Skype?
> Choice #3 is case-insensitivity for identifiers: You can write `a.to_lower()`, `a.toLower()` or `a.tolower()` interchangeably.

This looks like an enjoyable source for weird bugs: Write to functions with similar names (e.g., to_me() and tome()) and be surprised when nim doesn't distinguish between these two.
Applied for some positions like that, waiting for response. :)
Maybe there is a certain amount of the placebo effect for you in there. For me it does not disrupt my sleep, but it certainly makes me more awake.
This hiring practice far more suits an outsourced development system than hiring for a week per time.
Or laser immolation? Or a cloud of little wires to clog the propellers? Magnetic attack? Helium balloon defense? As someone said above: Begun, the drone wars have.
I wrote "almost autonomously".
7k ghost students in Arga
The best way to 'resync' for me is, is to just to skip the daytime nap and go to bed as usual. This works fairly well, but you are sleepy the whole day of course.
I like the idea of one endpoint to get data from/to.
But I fail to see how is that intrinsically related to URL's or SPA's.

The title makes it sound like you wanna get rid of URL's sort of like safari. Which I think is a bad bad idea.

I'm also not sold on the idea of "let's use SPA's for everything!".
We couldn't start the level: This level has been locked by a different server. (Sorry if this happened accidentally as a result of a server crash -- it will clear up in an hour.) Refresh page to check if server is down?
The part of the story that Snopes marks false is its use in the US :

> While burundanga is a frightening drug, in all our searching for information on it we failed to come across news articles about its being used in the U.S. The regions in and around the country of Colombia appear to be its hunting grounds.

On the other hand, it still sounds fairly unlikely as a story.
Unfortunately, pointing out things like private jets to climate conference just makes you sound like you are taking cheap potshots. You have the leaders from 195 countries attending a meeting. Yes. Heads of State sometimes use private jets. Other than symbolism, it is entirely unimportant.
Fuzzle the Whussle
Mosquitoes engineered to pass down genes that would wipe out their species
Note that several services will detect that your IP is from a hosting provider netblock and ban/restrict you/require phone verification anyway.

To make completely sure you are not mistreated, you might need to anonymously obtain access to an IP from a residential or mobile ISP; finding out how to do so is left as an exercise for the reader.
In the infantry, we stopped using QuikClot because of the permanent damage the chemical compounds do to tissue around wounds. Our medics carried it, but very rarely used it, and eventually stopped carrying it altogether.
"Forbidden
You don't have permission to access /en/wesnoth.html on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."