skysight-inc/HackerNews huggingface dataset:
This is a serious issue, and I think the author does a disservice to it by focusing on unions as the problem. At their very worst, they are only a problem for operations costs, which rarely explain why infrastructure doesn't get built. It is true that public service unions do have disproportionate political power, but they are also rarely the ones building the infrastructure, because construction is always up for bid by private contractors. And even if public unions were building these things, labor typically only accounts for 20-30% of construction costs, so they couldn't possibly account for much of the 2-5x increase in costs compared to Spain or France.

The real issues at hand are bad planning, extravagant station designs, nominally-environmental NIMBY blockades, and plain old backwards procurement rules that affect all levels of US government. Alon Levy might claim that he doesn't know the answers, but I've been following his blog since he started it and it makes it pretty clear how those things contribute. Hell, the extravagance of the stations alone probably account for 30% of the difference in costs. Nobody seems to blink an eye at massive underground stations with huge art installations and expensive tile facades...yet they end up costing 10-20x more than basic stations that serve their purpose just fine.

This is a severe problem for how much we build too. Those on the left like to blame blame conservatives for not wanting to build transit infrastructure, but one of the most conservative regions in the country serves as a counter-example: the Salt Lake Valley. Sure, SLC itself is slightly blue, but step outside the city itself by a mile and you're in some of the reddest land you'll find in the US. And yet those outlying conservative areas have been throwing their votes and money at UTA to build more and more. And if you look at what they're voting on, it starts to make sense. They are building a very low cost, utilitarian, at-grade light rail line. They are optimizing signal priority and grade protection so they can get about 90% of the speed that a subway would give. Their stations are nothing more than simple concrete platforms. Simply put, they are getting a ton of transit for their money.

Compare that with Seattle, one of the most liberal cities in the US. We're likely going to see a new transit initiative soon, and it is going to be voted down just like every other transit initiative in Seattle since the 50s. It's gotten so bad than transit activists are worried that they won't even have majority support within Seattle city limits. Gee, maybe the fact that it is going to cost $50B and take 40 years to build has something to do with it. I'm fairly liberal and inclined to vote for transit in general, but I just can't justify paying hugely increased taxes for 40 years so I can finally have a subway stop in my neighborhood once I retire.
Best I could find right now: Lidar point cloud data

http://www.dcnr.state.pa.us/topogeo/pamap/lidar/index.htm#cl...

Looks like Allegheny county was done in 2006.

What is nice about the point cloud data is that they classified each point as ground, road, water, etc
But DNF is mostly not written in Python at all. libsolv is C, Hawkey is C, librepo is C, libcomps is C. I also hear they're looking to rewrite even more of it in C.
Wow, did I read that right? They are filling 3+ vaults per month? A vault is 20 pods. Each pod is 480TB. They've mentioned in the past that they use 17+2 redundancy. So each pod should be about 429TB of added storage. At 60+ pods per month, they're adding 25,740TB per month?!
> I know for myself, even with passwords I use multiple times a day from memory, it only takes a couple of months of not using them before I cannot recall them again. This guy has been locked up for 7 months.

You have the timeline reversed. He's been locked up for 7 months because he refuses to decrypt the drives.
> All of this has to be done on public property by qualified staff.

With safety measures erected for the public, traffic direction, signaling, etc.
Performance test run on Travis CI in a virtual machine
https://travis-ci.org/mzaks/FlatBuffersSwift

function called for decode+use+dealloc
https://github.com/mzaks/FlatBuffersSwift/blob/master/FlatBu...

function called for direct:
https://github.com/mzaks/FlatBuffersSwift/blob/master/FlatBu...

function called for using struct:
https://github.com/mzaks/FlatBuffersSwift/blob/master/FlatBu...

Everything is on Github, you are welcome to try it out on your own machine.
> As one example: with selective breeding, you can at least be confident that the resulting strain is viable within its ecosystem since it is itself the product of numerous generations.

Like hell you can. Genetic diseases and deformities have been present as long as life itself, and human selective breeding has certainly brought out traits in cultivated plants and animals that would not be present without human intervention into their ecosystem.
Show HN: A simple HTTP and websocket api for whatsapp
InVision Craft for Sketch adds ‘Library’ cloud storage option
Solomon Golomb (1932-2016)
cool, learned something new
Buzzfeed moves to HTTPS
To be fair, the transition to Qt5 has been a slog for pyside, but momentum recently picked up now that the Qt team has the resources to support the effort officially.
In this interpretation we expect decision-makers to be utility-maximizers - for example, as whether I buy or not Thing X; so, we expect Gumbel (an extreme value distribution) errors. But we're looking for Utility(1) minus Utility(0) (buying vs. not buying) and the difference between two Gumbels is a logistic.

More detail: http://fisher.osu.edu/~schroeder.9/AMIS900/ch5.pdf
Don't elide important parts of the quote. In javascript your question doesn't make sense.

> Well, either fetch() blocks, or not.

Javascript functions always block.

> If it blocks, then it should yield, its caller should yield, etc. If it doesn't block, then it can just run to completion.

If a function is async, you must yield[0]. It may not need* that capability (conditionally) and doesn't have to yield at all e.g.

function*() {
return 4;
}

is valid and will not suspend. You must still yield*[0] on it so that it is properly resolved as a generator.

[0] I think that's not an issue for async/await as it's syntactic sugar for then chains, the code itself may be converted to a generator or whatever but it will embed the driver
Stackexchange comments behave the same way, and it has always bugged me. Maybe they will notice this and change the char count behavior in comments as well?
The Confessions of Congressman X
I'm optimistic about the rise of employee owned co-ops. Moots the (American style) management vs labor war. Can add better governance thru greater transparency and accountability.
Tough to say, but if this link is right: http://video.stackexchange.com/questions/8850/typical-size-o...

Then being conservative, we can say an hour of video is 1-2GB of data, so between 500 and 1,000 GB of data uploaded (just to YT) every minute.

Accounting for mirroring and compression, 525,949 minutes per year * 1 TB per minute = ~526 PB per year

Ironically this would be about 65,743 8TB HDDs, which is close to the number in this article :)
Would it be tuition free ?
From the website:

> 42 allows students who have successfully completed the selection tests to continue their training at the Silicon Valley or Paris campuses (under the condition that they have the necessary immigration visa for their choice. The visa formalities need to be completed by the student, 42 cannot give a visa).

In the application form itself:

> If you are applying for 42 Paris you must either be a citizen of the European Union or have a valid titre de séjour while you are a student at 42.

> 42 cannot provide immigration visas for students. If you are applying for 42 Fremont you must be a citizen of the United States or have a valid green card while you are a student at 42.

What does this mean? Would 42 be able to act as a sponsor of sort if a student is successfully admitted into the program, or will this be open only to those fortunate enough to either be born in the US or EU, or have a residence permit of some sort?
While it looks like interesting, I don't see the core value.
It looks like some boilerplate around Webpack, Imba, and Ruby and other libraries in order to make web apps.

Can the OP enlights us?
Cops Cuffed Me for Selling My Own Mac
The local culture makes French and German unions very different from US and UK unions. The former are wise enough not to kill the golden goose, the latter can't see any further than Christmas.
Because a company can go out of business, a normal union must resist demands which will cause this. If the union asks for too much, then everybody will be unemployed.

With the state, there is no such worry. The union can demand retirement at age 30, $200 per hour, 15-hour work weeks, and a pension that is 110% of normal working pay. Why not? The state can pay it; all they have to do is seize assets from the citizens. They simply raise taxes. The police will use guns to deal with any who refuse. (see Puerto Rico and Greece) When the state is in control of currency, there is also the option to just print money. (see Venezuela and Zimbabwe) This too steals from the people.
If I remember right, part of the reason why Musk estimated that the hyperloop would be so cheap was that he assumed it could be built on highway meridians for free, and the tracks were to end end far outside the city centers. It also had a fraction of passenger capacity and number of stations as high speed rail.

It seems likely that for the same amount of service as high speed rail, the hyperloop would be a lot more expensive.
LG converts its smaller, crazier projects into startups
I don't see how it throws away the functional programming paradigm. This is basically Haskell's do-notation applied to JS Promises.
I think you bring up a good point: the growth of the 50s-70s was an atypical period, large swaths of Europe and Japan were recovering from the after-affects of WWII. That put the US in position to supply the world, and we did. That is no longer the case, and we need to scale our infrastructure expenditures to match our reduced growth.
I see in the docs that it supports Embree as a back end. Embree is intels library for doing the exact same thing (as far as I understand). So it feels odd to use embree as a back end for this, I'd use this instead of Embree, not both. Can anyone explain?
What happens as your list grows, as it will, and takes up every possible job? Eventually we could hit some sci-fi future where robots build other robots and AI comes up with new inventions on it's own.
At SeeClickFix we have a policy that board members and officers may not contribute to political campaigns for this reason. Wrote this post about why a while back: http://benjaminberkowitz.blogspot.com/2013/09/donations-by-g...
Where did you get your training data set?
I'm trying to build a network to recognize faces from ID cards and match them to faces/selfies. Onenof the hard things has been to get a training data set.
The age restrictions are odd. 3 years to learn a skill seems too much. Having to apply, so it is becomes an elitist programs, seems wrong. And their web site describes having to prove your worth in a 4 week 24x7 code fest before getting final acceptance into the program, which sounds like they do not understand the concept of burnout.

There are so many ways to learn to code... the only part these guys seem to have right is "free"
Also account for time - you absolutely can't close down the entire city block, so all the major construction tends to have to be scheduled at night.
Yev from Backblaze ->

That's about right ;)
because it's supposed to be broken and/or backdoored since may 2014 when the development abruptly stopped and weird warnings appeared on the official site to switch to alternative programs
This isn't related to flash or JS, it's a choice made by the developers/sales department.

Having a new page impression for each slide is a win for advertising revenue.
I kind of wonder if the first thing that will be deskilled is the last 1000 feet.

A lot of shipments do go to places that get infrequent deliveries, but any place that is receiving trucks all day every day might decide it makes sense to program the maneuvers once and not let humans fool around with each truck anymore.

I'm assuming that the automation system will have equal or better fine grained control over the vehicle-trailer system, so you only need a driver when decisions are complex. For the last 1000 feet, the decisions are easy (go/don't go) but accurate control is important. Ford shipped a backup system on their trucks last year, so I don't think I'm way out on a limb.
this is interesting. could you show (or point to a good example) of how GO handles this w/out reentry points? I mean you have to tell it where to return the results somehow
We are using Go for a lot of internal tooling, text processing, also for websockets and web API. Can you provide some more data about memory footprint in node with websockets? How much memory per connection you saw? From my experience it's the other way around. But the most important point is that while both can have a lot of connections active, when you start sending messages thru that websocket connections you will see a LOT higher latency in node.
Now compare that kind of patching with writing Go code where non blocking I/O doesn't require any special syntax. I'm not fan of Go by a long shot, but it is undeniable the blue/red function problem is a pain [1] when dealing with JS.

[1] : http://journal.stuffwithstuff.com/2015/02/01/what-color-is-y...
Check out wordnet! I think they have face categories.
Flash is almost as big of a security problem as Java applets were, and it's only not as big now because most browsers have started putting Flash in a sandbox.
Randall Monroe?
This is the only comment that has figured out the real reason for not releasing the code - they can't due to NDA.
> Or sequential numbers, if you don't need to hide anything from being discoverable that way. Or is there another downside to that?

Sequential numbers either require state, which must be kept in sync (e.g. the current-highest index, or the set of all URLs used so far which you can take the "max" of); or else their discovery process is slow (i.e. keep looking up URLs until you find the highest unavailable one).

Random numbers don't need state; you can either make the space really huge, and ignore the potential for collisions; or else you can look up the generated URL to see if it's in use, and only have to perform another check in the unlikely case that it is.

Whilst it may be easy to maintain the state for sequential numbers (if, say, they already exist as database IDs), the failure mode of random numbers is better. If something goes wrong with the lookup process for random numbers, e.g. it might miss a collision, we're still protected by the incredibly low chance of collisions in the first place. For sequential numbers, we're guaranteed to hit a collision in this case, i.e. if a glitch prevents the state from getting updated, the next URL will definitely collide with the previous URL.
It looks like a way to enable 'click-to-play' by default without over-annoying users (normal 'click-to-play' sometimes shows the Flash experience even when an HTML5 experience is available). It's also good for security as it makes it more difficult to exploit Flash vulnerabilities (especially in ads). It may be the first step before sunsetting Flash completely as you suggest.
Complex Algorithm Could Eliminate the Need for Traffic Lights
By your own explanation, it should cost maximum $600,000, especially since a well trained crew could leverage their skill at scale. But this even seems like a lot to me: $60k is an enormous sum to pave 20 feet of driveway. I was looking at having it done and it was closer to $6k so it should be even less to pave 4 blocks.

This issue, to me, is hugely concerning. Why did one mile of the bay bridge cost as much to build as funding NASA for 6 years?
Is it possible to implement the myfitnesspal API in the way user can scan the food and it gets entered in their food log on MFP ?
This sounds like it could be used for the wrong purpose for sure.. Are you working for some nosy employer?
You can see the problem here:

First it cals CFAbsoluteTimeGetCurrent and saves the result.

0x100272dab <+10443>: callq 0x1002b7b38 ; CFAbsoluteTimeGetCurrent
0x100272db0 <+10448>: movapd %xmm0, -0xa0(%rbp)

Here is the call to flatDecodeDirect. I guess RDI is the input. That's usual for the x64 ABI.

0x100272db8 <+10456>: movq -0x100(%rbp), %rdi
0x100272dbf <+10463>: callq 0x10026fb10 ; flatDecodeDirect

I don't know what this next bit is for.

0x100272dc4 <+10468>: testq %rax, %rax
0x100272dc7 <+10471>: js 0x10027444c ; <+16236> [inlined] generic specialization <FlatBuffersPerformanceTestDesktop.FlatBufferReader> of Swift._ContiguousArrayBuffer._checkValidSubscript (Swift.Int) -> ()

0x3e8=1000. The loop counter is in ECX.

0x100272dcd <+10477>: movl $0x3e8, %ecx

I can't figure out what's at these two addresses; lldb didn't seem to accept any reasonable syntax. lldb is terrible. But I'll bet that RBX is holding the value of `total'. I don't know what r14 is, and it doesn't seem to matter since nothing here uses it.

0x100272dd2 <+10482>: movq -0xd8(%rbp), %rbx
0x100272dd9 <+10489>: movq -0x198(%rbp), %r14

Here's the loop. The loop is unrolled 5 times. total+=result. 0x100274454 produces some kind of exception on integer overflow.

0x100272de0 <+10496>: addq %rax, %rbx
0x100272de3 <+10499>: jb 0x100274454 ; at flatbench.swift:284
0x100272de9 <+10505>: addq %rax, %rbx
0x100272dec <+10508>: jb 0x100274454
0x100272df2 <+10514>: addq %rax, %rbx
0x100272df5 <+10517>: jb 0x100274454
0x100272dfb <+10523>: addq %rax, %rbx
0x100272dfe <+10526>: jb 0x100274454
0x100272e04 <+10532>: addq %rax, %rbx
0x100272e07 <+10535>: jb 0x100274454

The loop was unrolled 5 times, so drop 5 from the loop counter and repeat.

0x100272e0d <+10541>: addq $-0x5, %rcx
0x100272e11 <+10545>: jne 0x100272de0 ; at flatbench.swift:276

Get current time.

0x100272e13 <+10547>: callq 0x1002b7b38 ; CFAbsoluteTimeGetCurrent

So this code actually times one call to flatDecodeDirect, then 200 iterations of an unrolled do-nothing loop. The compiler has figured out somehow that flatDecodeDirect is going to do exactly the same thing each time, and taken advantage of that by calling it only once. I'm guessing this means that flatDecodeDirect is only called 1,000 times in total.

As a sanity check for this kind of thing - try making a little loop that just increments an integer the appropriate number of times, and see how long that takes. (Check the assembly language output to ensure the generated code is doing what you think - it should be a 2-instruction loop.)

On my laptop that takes 1.8ms. This isn't the absolute limit of how long it takes to do 1,000,000 of anything, but it'll do as a rough estimate. So you should be suspicious if a program suggests it's taking much less time than that to do 1,000,000 of something that's a lot more complicated, as the test did. (It reported 1,000,000 iterations in 0.53ms on my PC.)

(Of course, as with any rough estimate, this only gives you a suspicion, and isn't proof without further investigation.)
If I recall correctly they have 50k+ applications a year in France. You have to do some filtering.
It is not only teaching development, it's teaching UNIX, 3d, Security and much more [0].

In fact, the most important thing it's teaching is to learn by yourself. Most people just don't know how to learn without a teacher and that's the best skill you can learn if you wish to work in the industry.

[0]: https://en.wikipedia.org/wiki/42_(school)#Academics
They mention the top sites at the link below:

https://groups.google.com/a/chromium.org/forum/#!searchin/ch...
Yeah you can but to do that you need to match the academic prerequisites. You can enter 42 whatever your background is.
Sorry that should have read:

"Unfortunately you could easily replace Flash for JavaScript these days [in that quote]."
That's 0.35 nanoseconds to do something.

If it is a nop on a modern cpu it can run x4 nops at the same time. Either you aren't doing useful work or your measurements are wrong.

Unfortunately I can't view gists in work.
They're stock grants not stock options. They're worth something even if the stock goes down (except to 0).
Remember, we're not talking about high performance C compilers and all that here.

We're talking about the programming paradigm where everything is a compiler. Network protocol parsing is a form of compilation, all file formats parsing is a form of compilation, reacting to the UI events is a form of a compilation, processing data in whatever ways is a form of a compilation.

Yet, you can only invent any optimisations at all for a small subset of compiler transformations, so for most of the cases optimisation is just totally irrelevant.

As for the minimally acceptable optimisations, they're all trivial anyway. What you'd normally expect to see in most of the IRs is: constant propagation/folding (trivial), ADCE (trivial), algebraic simplification (trivial, no matter how ugly it is in, say, instcombine pass in LLVM - they're just doing it wrong), partial evaluation (trivial), inlining (trivial), backtracking for the latter two (trivial, but rarely seen, most would resort to awfully complex heuristics instead), CSE (trivial), escape analysis (trivial).

What is not trivial is the stuff you'd rarely need in the high level languages, and this paradigm is all about the high level languages indeed.

Not trivial: loop fusion, polyhedral analysis, vectorisation, and, finally, everything related to the code generation: instruction selection, register allocation, instruction scheduling, VLIW packing, all that.

You'll never see this stuff in any high level domain specific language - you already have a common low level backend to take care of it for you anyway.
> You don't have backups, unless you can do restores.

Bingo, I was just explaining this to someone yesterday. Testing the restores MUST be part of the backup strategy. If your db data is small enough to have it all in your test environment, I often try to test the restores by restoring to the test db and then using that db for the test environment until the next test restore.
Amazon launches restaurant delivery in Manhattan with more than 350 eateries
Non-officers retention doesn't have to be disclosed with the same level of granularity. You might just see stock compensation expenses rise. At a large company retention might not even show up in a meaningful way in compensation expenses.
>You know it's coming, and if you don't start learning new skills or look for new work, then you're just ignorant to technology and will be out of a job.

I didn't realize truck drivers were known for staying abreast of advances in technology.
Hyperloop Technologies is focussing on using it for cargo, at least at first until "the infrastructure is built and the kinks are worked out": https://news.ycombinator.com/item?id=11668414
Can't wait for the android version.

Seems to be (more?) accurate as Google Now but with a real policy of privacy.
A common pattern here is to use multiprocessing to split off the GUI threads, then the GUI has it's own GIL. A nice side effect of this pattern is forcing one to have a clean set of interfaces between the presentation layer and the business logic.

https://talkpython.fm/episodes/show/58/create-better-python-...
To your last paragraph, I work with people with MS degrees in comp-sci who come to me, a drop-out, to ask questions about that stuff (data structures, algorithms, etc.). Sadly, not every school is up to the task of teaching these fundamentals. It seems that they're mostly teaching web development and Java Beans these days.
I was about to buy some WD Red's for my home NAS but may reconsider for the Hitachi NAS edition. Ayone have experience with the later?

edit: just found this:

https://www.reddit.com/r/homelab/comments/2y12oj/hgst_deskst...