skysight-inc/HackerNews huggingface dataset:
The Venice having 155.000 people isn't the islands. Those have roughly 55.000 people. The rest is spread on the mainland.

In Italy when you talk about a city it's usually about the city itself and some towns around it. In this case most of the population is in Mestre and Marghera.

So it's actually even smaller than you thought :)
Learning new ideas becomes harder as we age due to atrophy in the mechanisms of long term potentiation. If learning were easier in old age there would be a lot less conservatism and nostalgia among the elderly.
Modern CSS Explained
If I were Tim Cook, I'd carefully consider the following problems:

1.) The input problem. Phones/tablets are great, but they can only do so much when our fingertips are still the best input device available. In the future, this will likely mean some kind of neural interface. But in the present, can we fill in the gaps with something better than Siri?

2.) The health problem. Our phones have the potential to become a wonderful personal diagnostics tool. Hell, I can't think of any device I've brought as deep into my existence as my iPhone. That said, we could get better. In my dreams, I would love to bleed on my phone to monitor whether my cardiac enzyme levels are rising. I would love to be able to get a reliable blood pressure/pulse rating from my phone. And I would love to be able to track a wide variety of health markers. A tool that could collect biological data and relate it to nutrition and exercise choices would be revolutionary. A tool that could provide North American level diagnostics to remote third world villages would be life saving.

3.) The jobs problem. As automation eats up more and more jobs, we either need some form of basic income, or we need new sectors that will employ the masses. The alternative is a society where 10% are consumers and the rest can't afford more than subsistence. This represents a potential crisis for brands like Apple. I have no idea how Apple could solve this, though I do have fear of how the masses would respond to an Apple sponsored basic income program.
Event-driven asynchronous & concurrent & coroutine networking engine with high performance for PHP. http://www.swoole.com/ https://github.com/swoole/swoole-src
I tried to do this. Limited to the context of database queries. Run them asynchronously, and pick up the results later.

It works with MySQL, it doesn't with PostgreSQL. PostgreSQL has options for asynchronous queries, but it's clear than even the person who made them has never actually used them!

Take a look at the docs for pg_send_query: "multiple queries cannot be sent over a busy connection. If a query is sent while the connection is busy, it waits until the last query is finished and discards all its results."

If you actually try, it will block on the next query! Who wrote this useless library?

There is also no callback or anything, you simply have to allow it to block in order to pick up results. (There is the undocumented pg_select which might work.) Queries must be sent and received in order, and one at a time. You can't run 2 at once (say a long running query, then a quick short one later in your code). You can't even send another one while the first is running (and block), because that causes the results from the first to be discarded.

Very disappointed with PostgreSQL because of this.

In contrast MySQL has mysqli_poll() which actually works like you'd expect.

If I had a job that needed asynchronous database queries, I'd definitely pick MySQL.
Can we start a movement to teach tech bloggers what "begging the question" is?
We regard "this program is hard to test" as a problem that's worth refactoring to fix; why shouldn't we regard "this program is hard to verify" the same way?
Permit fees don't come out of nowhere, they come out of the transaction costs of finding reputable drivers, a cost that Uber is rediscovering.
I’m Comic Sans, Asshole (2010)
It looks like this issue has been resolved to a reasonable extent.

I just tried building TFLite for a lark on a Raspberry Pi 2 and succeeded without much hassle and any of that bazel nonsense. It's a standalone component - they provide a Makefile and I just had to run make.

The example label_image inference app took a bit more work - I had to write my own Makefile - but wasn't difficult. I'm able to run inference on images on RPi2 with both floating and quantized MobileNets tflite models. Will try videos now.

For anybody else interested in trying out TFLite on your desktop or Raspberry Pi or any SBC, I've put up instructions and Makefile at https://pastebin.com/LDEGyG46
What happens when you fall off the rails
Show HN: Average working hours around the world (Map)
The author was clearly satirizing in tone and selection of comments.
Much of the world is empty, undeveloped land right now, and cities take up a very small percentage of land.

Double the amount of cities in the world, from 1% to 2% of land usage, and that's 5 billion more people that the world can support.

For food well, we currently only use a very small percentage of the sunlight that hits the earth, and energy = food. Especially if lab technology for growing food gets much better.

Yeah, it is unsubstantiated sci-fi predictions but taking about these Sci-fi scenarios in detail is kinda missing the point.

The point I was trying to make, is that the whole "resources are finite" is a dumb argument because it doesn't say at all how close we are to that limit.

Someone's 1 billion people carrying capacity prediction is just as valid as my unsubstantiated 1 trillion people prediction.

And if you are predicting that doomsday overpopulation scenario is right around the corner, you better provide some damn good evidence, because all the current evidence shows that humans are doing better than they ever have been in the history of the world.

Evidence for us hitting the carrying capacity of the planet would be things like "hunger is increasing and quality of life is going down in these overpopulated places". But so far this is not happening.
No, because when you have full access to RAM, there's no actual distinction in those messages for thunderbolt devices.

Unless maybe you meant just the same scary message for every thunderbolt device, in which case people become acclimated to ignoring the message. And that may be after they've wasted support time asking why some device wants this scary access.
My refutation was that the carbon may have been part of the rocks which the mosses and lichens may have gotten some use of. And of course that would be over an enormous amount of time, in which case burning the coal too fast would bring up more at one time than has ever been around. I don't recall what they say the primordial atmosphere was like, and I don't advocate going back to that. I do suggest we look back prior to the ice age (periodic glaciations 10-15Myr) and not worry if we replicate those conditions - there was apparently a lot more life on earth back then, and plants at higher latitude.
I've been following for a while the CMake issue #14983 (https://gitlab.kitware.com/cmake/cmake/issues/14983), which doesn't really get much attention but affects the behavior of the feature POSITION_INDEPENDENT_CODE. As it is, it's not very reliable because it misses adding the flag '-pie' to the linker step, which AFAIK should be done to generate a proper PIE executable.

All this became relevant to me while integrating some Sanitizer CMake modules in my projects: https://github.com/arsenm/sanitizers-cmake where I opened an issue to talk about the subject (https://github.com/arsenm/sanitizers-cmake/issues/13).

Turns out Qt seems to depend on some obscure / not very well documented behavior of PIC instead of PIE, so their builds would break if using '-pie', or at least that's what I understood. In summary I'm amused how such a seemingly simple operation is getting so much time and complications to implement properly.

I'm happy to see more conversation about this topic, because as of now it is still somewhat difficult to grasp and use correctly.
I recently passed a happy milestone with my ongoing transition from Matlab to Julia in that now I'm more likely to get an error in Matlab for using Julia syntax than the other way around. I am probably using Julia for about 50% of my work.
South American (Venezuelan) here. This is not true. Blaming US foreign policy for all or even most of South America's failures is silly and a common tactic of demagogues, with no basis in reality, to deflect from bad domestic policy.

Admittedly, I did not fully understand the point the GP was trying to make with the Spain comparison.
i thought the best part of the article was towards the end, where she talks about all the different ways that gymnasts have of redefining success.

i think it may be healthy to avoid doing that. like, don't say "well, my company failed, but the important thing is I tried unlike all those losers stuck in 9-5 jobs". or "i didn't get a tenure-track job but really, this job in industry is great and the important thing is my transferable research skills".

you still failed, and it's much more dignified to live with it.
Why doesn’t ‘Stater Brothers’ (the other warehouse in the article) outsource like you say? ‘Stater Brothers’ is paying their unionized employees double the hourly wage with extra earnings potential and significantly better benefits.

Are you saying Amazon’s ability to relocate the jobs makes outsourcing easier? I can’t think of much else.

What is the difference between unionizing and “keeping the pressure on amazon and target specific things they don’t like”? One begets the other. And do we have any evidence there is any pressure on Amazon to begin with?
I have been using Atom since it's clean, fast and has some great plugins. Plus I love GitHub as a company.
Great question. I'm not sure the mind has control of the body in that state. But there's an even more fundamental problem: intention is a form of content, so one would by definition be out of the state by expressing intention.

I'm sure to some this sounds bogus or like a cop-out. But experiencing it (or similar states, as can happen with psychedelics) can impact our waking lives in meaningful ways, so I hope it's not brushed under the rug for much longer.
“Society obsesses with success” is a US-centric view.
What are static 2d representations?

You can do everything you mentioned without an spa just fine. Plenty of content sites (the majority, actually) survive just fine.
> the moral of the story is that life is kind of a joke?

I imagine this is what all the small talk around the offices of OKC/Match/IAC is like.
Yes, suspended animation would be great if we did not age during the process.
The idea does have some basis in empirical truth: in democratic systems, older groups are more reliable voters than any other group. As such, they are incessantly pandered to, and eventually society shifts.

There was also a recent study suggesting a link between successful efforts to reduce birth rates in China and their higher political stability compared to neighboring countries, because the young bring instability while the old like the status quo.
He's proposing a theroy about human behavior. His idea is that when people are used to feeling unsafe they tend towards prey animal survival strategies (eyes darting around, focusing on escape routes instead of goals) and that when people get used to being on top of things they tend to adopt predator animal behaviors (eyes on the ball, focusing on goals instead of possible escapes.)
It may be they just want to better quantify the projects. We have been using Toggl at our company and it has really opened my eyes about how long certain tasks take. Also, I find myself hyper-focusing on some tasks now where before I would multi-task and sometimes be less effective.
> In a traditional bank account, it is possible to place a hold on an account for various reasons, mostly when compelled by the government

The traditional hierarchy of liquidity goes first cash, then Treasuries then checking accounts. Checking account balances (i.e. senior, registered claims on a bank) are junior to the first two (i.e. senior, registered claims on the U.S. Treasury and senior, unregistered claims on the Federal Reserve, respectively) for the reason you specified. I still contend a checking account will more reliably produce immediately-available funds quicker than a LN "deposit," even if one is a criminal.

This sidelines into why I believe illegal markets are the only place blockchains have a shot at being a currency. Shadow economies are substantial, between $1 and 3 trillion in the U.S. alone [1]. It's a different pitch from "replace the U.S. dollar," but it's more realistic. (I am not advocating anyone do anything illegal.)

Stepping back, it's pertinent to look at the Two Generals' Problem [2] which Satoshi's paper solved. It's a problem of exchanging information, not value per se. Blockchains are here to stay, but not--in my opinion--as currencies. Libor on a blockchain or legal documents "Docusigned" on a blockchain are far more compelling than "we'll make our light-speed payments system less reversible and better for illegal activity". They're also use cases which become difficult to justify if the "tokens" underlying them rise in value.

[1] http://www.imf.org/en/Publications/WP/Issues/2018/01/25/Shad... Table 4, page 11

[2] https://en.wikipedia.org/wiki/Two_Generals%27_Problem
From 2011: https://news.ycombinator.com/item?id=2691752
One example that I think fits very well is a websocket server. As you often have a large number of clients with long-running connections and relatively low-volume bidirectional communication, a single process running react/amp can easily handle hundreds or thousands of clients.

The majority of the examples out there are indeed contrived and better suited to a queue system as you've described.
E-health solutions are likely to be pretty US-centric, investment dollars might be better spent on global opportunities.

And why try to create Apple seeds? Apple would be better off waiting until they emerged themselves and the acquire.
The dongle actually doesn't have to install anything, just to know a bit about kernel memory structures or how to locate interesting portions of memory.

Full read access means you're pretty much screwed if the entity has bad intentions. No root kit needed.
> Are you fucking kidding me?

This breaks the site guidelines. Please keep that sort of thing out of your comments here! The rest of your comment is just fine.

https://news.ycombinator.com/newsguidelines.html
You can't prove safety properties of something that isn't safe. LLVM IR sure isn't.
Ya, here is a link of a video here: https://s3.amazonaws.com/andrewmendez.me/files/MathARt.mp4
lol you caught me, I'm old.

I'm all in favor of what's fast and easy. So many jQuery messes have almost given me PTSD. So not knocking frameworks in any way. It's just weird to me someone would suggest using them is "more like real programming". No, it's more like one of those paint by number kits rather than a blank canvas and some paint. Of course many people are going to get better results with the paint by number kit, but it isn't more like "real" painting. It's less like "real" painting. And, if you reach for a paint by number kit when all that's needed is a few red dots you are messing up and ought to learn the craft naked a bit for such situations. jQuery isn't a paint by number kit. More a set of stencils and brushes you are free to make as big of a mess as you like with.
I'd be interested in that story.
Maybe if he'd sought an "entrepreneur" visa, not an employee visa?
I meant more the second one, although depending on how widespread thunderbolt devices are, it might become useless like you say.

But are thunderbolt devices really expected to be that common that a message like this would be treated like the windows UAC dialog?
The main difference that I've seen between C and Rust compiler errors is that, with C, my reaction is "goddamnit, you know what I mean, why can't you just accept it?!", whereas with Rust my reaction is "oh yes, I see how that may cause problems".
Running smoothly. Smooth as the cream cheese on your bagel.
Now we are compiling (sorry transpiling). If we are going to do that why not use e.g. Go?
Sorry, didn't note that.
Just about 50k people live in the islands... The density is quite low, and much more people lived there in the past, now for locals it's more profitable to just rent their flat to tourists, while living in the mainland.
It's not a dupe if the last submission was five years ago.
Rich and smooth?
An eclipse means the moon lines up with the sun, which adds their tides together. It’s basically the same as what happens every two weeks when they nearly line up, so it’s not particularly special, but it is relevant.
But "this language is hard to verify" should not trump the usability of the language. The verification only needs to be done once, while the language will be used to write code again and again. If it doesn't negatively affect the language users then sure, change it to make verification easier.
At Tesla’s Factory, Building the Car of the Future Consequences for Some Workers
You need to tap and hold on the screen over the code.
> You can't demonstrate that there is an "absolute moral law" against murder.

Kant tried to.
> The most ironic part is that so many restrictions and problems are likely to provoke people to rely on whatever option happens to work, which might not be the best/safest one.

Programs written in Rust are empirically safer than programs written in C or C++.

> The higher the freedom, the better the results delivered by a sensible/knowledgeable person.

If that were true, then C and C++ code would be safer and more secure than programs written in memory-safe languages. Obviously, that's not the case.

> seriously doubt that developers with real-world experience can like or even accept most of what this language represents.

Lots of developers with real-world experience, including me, use Rust all the time without any more problems than they would have in any other language.
The original URL should be included somewhere.

That said, I don't quite understand the advantage of this solution versus a plain article view (e.g. firefox's built-in article view or something similar provided by some plugin/service) saved to disk via an PDF printer.
people often mention forcing refactoring/rewrites as a benefit of unit testing, that you end up with code that is actually better in testing-unrelated ways. this is true in my experience.

i wonder how true this is of formal verification? especially in a language like Rust that has a fairly fancy type system?
Major Banks Ban Buying Bitcoin with Your Credit Card
I’ve seen approaches that basically use a Node server + queues for this. I think this is how Laravel does websockets.
Did you get it to work?
If possible you might consider looking for the personal connection in a more face-to-face setting, and choosing a broadcast learning medium that works best for you without that as a consideration (which may still be video for some people, but I'll echo the sentiment that books and textual stuff seems to work better and be faster in my experience.)

Even if you only study/work on your own, there are conferences, meetups, user groups, social/networking events, etc... That gives you the added bonus of being more than just a blip in the view count of the person you're learning from. Worst case, even if there aren't any in-person options in your area, try forums/chat rooms/etc... with a focus on your subject(s) of interest (especially if they're more learning focused ones rather than just social -- the communities around many of the MOOC and online bootcamp programs come to mind.)
Free crypto-portfolio generator based on risk tolerance
Valentine’s day gifts under $50
Tl;dr: Immigrant employee of a company has salary reduced below the amount[1] specified in his visa; the government refuses to extend his visa even though he says, "It's ok! Really!"

[1] Presumably set high enough that foreign workers don't drive down the wages of locals.
... our CPU has to wait and does nothing, instead of doing some useful job.

Please correct me where I'm wrong, but IIRC your CPU is never waiting if there is more work to be done. Yes, there is the overhead of context switching if you're using mod_php. Otherwise I think most operating systems are smart enough to make use of resources.

EDIT: Maybe an OS expert can clear up how this works?
There are effectively two Ds: one that's garbage collected and one that's manually memory managed and unsafe. I don't think you can really consider them equivalent: there's always a large difference in development friction when you move from a managed environment to an unmanaged one.
Windows 10 and Windows 7 are almost two different products. Microsoft will soon require opt-in to sideload apps, which is the beginning of the end for the Win32 ecosystem of Windows 7. For those who want control of their computing experience, the options are to switch operating systems, or buy 3rd-party products to modify Windows. Even those may disappear, once non-store apps are blocked.
I can never take Bryan “have you ever kissed a girl?” Cantrill seriously. He has a massive ego.

http://cryptnet.net/mirrors/texts/kissedagirl.html
I guess I have a different definition, or at least a different threshold, for what I consider spam. This particular situation was not extreme but I still consider it spam. They continued emailing me around twice per month with the same offer despite me having been perfectly clear on at least two occasions that I was not interested. They did this for 14 months before giving up. I received another message at the 2 year mark that was an actual release announcement, which I do not consider spam.
Can anybody tell me were to get the valve between the tank and the hose?
What techniques does this involve?
Not to much surprising or interesting. Healthy and safety have improved and deaths have dropped correspondingly.

It would be more interesting to know what's more likely to kill you today than in the 70s. Violent crime, terrorism, adventure sports?
Is boredom on the list?
I love how reading his opening paragraph gives a good feel for his presentation style. I'm not sure if it comes across as well before you've seen one of his talks, but for me it evoked strong memories of humorous moments watching him.
Having a visual frontend for a textual format sounds nice but is always dangerous, in my experience. Before you know, you have some subtle features in the textual format that the GUI can't represent, and as a result, any modifications in the GUI will break your usage of the feature.
The training export from Google CloudML -> Tensorflow Lite is still not clear. Since the freeze_graph scripts use Bazel, it is hard to pull this off on the cloud
IOMMU? You still get to lock down access per device...or the Mac laptops don’t have an IOMMU?
There is something like this on market street (around 2nd) in San Francisco that just opened. The line was longer than the Starbucks a couple doors down so I have not tried it yet.
I am not a football fan, and I too just found the article hard to read...

Too wordy, too many tangents, get to your main thesis fast: why is football on TV a sleight of hand?
That has a lot to do with consequences of having child. If you are young for long, giving some years to one more child might be less of sacrifice. If you know that having one more child is game over for everything else, you wont get a chance to restart the rest of your life.
Intel AR “Fixer-Upper” for Sale? Only $350M?
Technically transpiling is just a more specific kind of compiling, so you’re not wrong in saying compiling.
Nice idea! Unfortunately the PDF will not contain any of the headings of the original document.