HNHacker News
TopNewBestAskShowJobs

bnegreve

2,040 karma · joined January 4, 2011

submissionscomments
bnegreve··on How to pick a random number from 1-10
> the one described has a massive failure mode

Well, if you're really interested in generating random numbers using a group of people, then yes, this may be a problem.

But you should take this as an illustration of the more general problem of generating uniform random numbers from a distribution that is not.

If you think about it this way, author's solution can be applied in a number of practical scenarios. For example, if you want to generate a hash values for objects using properties that are not uniformly distributed. Or if you want to generate random numbers from a physical artifact that is not perfectly uniform.

bnegreve··on Everyone’s Income Taxes Should Be Public
Ah, I though you were suggesting that the GDP per capita in Norway was high because of tax transparency.

Now I realize that you were probably just saying that Norway and US are comparable in terms of GDP per capita. Am I correct?

bnegreve··on Everyone’s Income Taxes Should Be Public
Maybe it's this, but there is also a fair amount of oil in Norway.

From wikipedia [1]:

The petroleum industry accounts for around a quarter of the country's gross domestic product (GDP).On a per-capita basis, Norway is the world's largest producer of oil and natural gas outside of the Middle East.

[1]https://en.wikipedia.org/wiki/Norway

bnegreve··on French court finds Monsanto guilty of poisoning farmer
My parents own a small vineyard near bordeaux. We don't use weedkiller so there is grass all over (see http://montjon.com/). But no grass or brown grass doesn't necessarily mean that the owner uses a lot weed killer or insecticides, there are other ways to remove the grass mechanically. e.g. this type of tools https://youtu.be/gmaIugbRPDI?t=227

The video is convincing, but in practice it takes a lot of time and breaks many roots, so it's not ideal.

bnegreve··on French ISPs Ordered to Block Sci-Hub and LibGen
Yes, few facts to support this claim: the french are big consumers of SciHub content (biggest in the EU [1]) and the CNRS (one of the main french national scientific organization) has boycotted traditional publishers on several occasions (e.g. Springer [2]). The CNRS also supports Hal which is the french equivalent of arXiv.

I think this has more to do with the copyright lobby than anything else.

[1] https://www.lemonde.fr/sciences/visuel/2016/05/10/edition-sc... (in french)

[2] https://www.the-scientist.com/daily-news/french-universities...

[3] https://hal.archives-ouvertes.fr/

bnegreve··on Researchers trick Tesla autopilot into driving into opposing traffic
I'm not sure why hackers prefer to hack large scale computer systems rather than individual humans, but they do. So we have to protect neural networks against adversarial examples for the same reason we have to protect databases against sql injections.

> so what's the critical difference here?

If neural networks are deployed at scale in self driving cars, a single bug could trigger millions of accidents.

Printing an adversarial example on billboards would lead to crashes all around the country. Are we going to assume no one is going to try? (btw: real world adversarial examples are easy to craft [1]).

[1] https://arxiv.org/pdf/1707.07397.pdf

bnegreve··on Winding down my Debian involvement
For next time:

    dpkg -S path/to/file
gives the the name of the package containing a file, and

    dpkg -s package-name
gives you the name of the maintainer.
bnegreve··on Ask HN: What is the best setup to work remotely with GUI on Linux?
You may want to activate ssh compression (see ssh -C).

If you're remote it can speed up X forwarding and make the whole application more reactive.

bnegreve··on European Parliament set to end EU-wide daylight savings
Employers do force their employees to show up at a particular time.
bnegreve··on European Parliament set to end EU-wide daylight savings
I say it's natural to wake up when the sun raises, you say it's natural to stick to the same hour all year long.

I'm not forcing anything anymore than you do.

bnegreve··on European Parliament set to end EU-wide daylight savings
Frankly, I like daylight savings. It contributes to reduce the difference between the sun time and my time.

I wake up more or less when the sun raises and then go to work. Now if I keep doing that I'm going to show up either too late in the winter or too early in the summer.

bnegreve··on California bullet train plan likely to run out of money before completion
You can hijack a plane with two people in the cockpit. People won't go out and police won't get in for obvious reasons.

With trains, you need an army of guys spread along the train to shoot at people trying to get out. Each one of this guy can be neutralized by the police from outside or even or passengers from the inside (see thalys train attack). I'm not saying it's impossible but it certainly qualifies as more difficult.

Well anyway, trains are more comfortable. That's the main reason why I like them better.

bnegreve··on California bullet train plan likely to run out of money before completion
Yes, but trains may be a little safer from that perspective. They have hundreds of doors instead of just two, and each door lead to the land, not to a free fall.

So you can threat the driver, but I don't see how you can prevent passengers from going away as soon as the train stops.

Now I agree that terrorist can be creative sometimes

bnegreve··on California bullet train plan likely to run out of money before completion
Trains are much easier to board. You can arrive two minutes before departure and take your seat without having to queue or wait.

A two hours train trip is generally much shorter than a one hour plane trip.

bnegreve··on What’s Better Than 40 GPU-Based Computers? A Computer with 40 GPUs
> Only 40 years ago we thought one processor will be enough for all compute tasks, then we learned how to make software for bunch of CPUs, then we realized there are things that benefit from bunch of weaker cores and wrote software for that, then we realized you don't even need a single computer and you can parallelize your program to N computers with M processors.

No, the history of parallel computing is a lot more chaotic than that!

Parallel, distributed or vector computing graphics have been around since the early days and there are many fancy parallel processors architectures that never did well exactly because no ones knew how to program them. The Tera architecture (128 threads) comes to mind[1]. The Cell that was used in the playstation 3. It has 1 general purpose core and 8 accelerators that were vastly underexploited by game developers. The greatly anticipated Intel Larrabee (32 cores) never made it to the market. And even today the fate of the Xeon Phi (about 60 cores) remains very uncertain.

In 2019 parallel computing is reserved to the same restricted set of easy to parallelize applications than 40 years ago (numerical simulations, 3D rendering, database servers and maybe few others) + deep learning. But most software is sequential, and most people would not notice if they had 1 or 2 cores instead of 8 or 16. That's because writing parallel programs is inherently and debugging is hell.

[1] https://en.wikipedia.org/wiki/Cray_MTA

bnegreve··on Machine learning leads mathematicians to unsolvable problem
That's the problem: publishers don't pay reviewers but charge for their work.
bnegreve··on Dirty lenses (2016)
There are Moczulski et al. with their ACDC paper [1]. They describe a structured layer that can approximate any linear transform and discuss an optical implementation of it (see section 1.1 "lightning fast deep sell" :).

Our deep SELL offers several possibilities for analog physical implementation. Given the great demand for fast low energy neural networks, the possibility of harnessing physical phenomena to perform efficient computation in deep networks is worthy of consideration.... (see paper)

[1] https://arxiv.org/pdf/1511.05946.pdf

bnegreve··on Why does APT not use HTTPS?
Ok, fair enough.
bnegreve··on Why does APT not use HTTPS?
> Regimes like egypt/syria can track people who try install tor and they can cherry-pick block repos based on package name.

They say https would not add privacy in this context because the package size (almost) uniquely determine the package name. Why is this invalid?

bnegreve··on Why is 2 * (i * i) faster than 2 * i * i in Java?
> However, the compiler ('s optimization step) is not magic and produces suboptimal code sometimes.

I agree that compilers are not always perfect, but in this particular case the two expressions are trivially equivalent from the associativity of the multiplication so the distinction had to be intentional.

But as gnuvince pointed out, the two expressions are not equivalent when you consider integer overflow.

bnegreve··on Why is 2 * (i * i) faster than 2 * i * i in Java?
Right! thanks
bnegreve··on Why is 2 * (i * i) faster than 2 * i * i in Java?
I don't see how generating different code for the same mathematical expression can be a good thing.

The compiler should detect that the two expressions are strictly equivalent and generate whatever code it believes is the fastest.

Any idea why it is this way?

bnegreve··on Nearly 1,000 Paintings and Drawings by Vincent van Gogh Digitized and Put Online
In case you're looking for supervised art datasets for machine learning, I made a little art-movement classifier you may be interested in.

Demo here: https://bit.ly/2xClNHz

data and models are available for download.

You can also have a look at art500k which is essentially the same thing. http://smedia.ust.hk/james/projects/deepart_ana.html

Their dataset is also available for download.

bnegreve··on The World’s Highest-Earning Airline Route
> Obviously the long routes generate the most rev,

No, why? If the trip is twice as short, airlines will be able to sell twice as many tickets per day.

Considering the revenue per trip doesn't make much sense from their perspective.

bnegreve··on Bitcoin backlash as ‘miners’ stress power grids in Central Washington
What are the other solutions?
bnegreve··on Jupiter is deep
It really depends on how you define picture. I guess you could argue that it is still a picture in the sense that it is captured using an array of sensors that are sensitive to some electromagnetic waves.

edit: Wikipedia defines photography as "the science, art, application and practice of creating durable images by recording light or other electromagnetic radiation, either electronically by means of an image sensor, or chemically by means of a light-sensitive material [...]

It could fit

bnegreve··on Multiplayer Tron in the terminal
> Remember to use WASD to move!

Reminder: WASD keys only make sense if you're using a qwerty keyboard layout.

bnegreve··on HP laptops found to have hidden keylogger
Notepad runs in userland under the supervision of the kernel. This is a driver and could be running in kernel mode. It could make a big difference.

Even if it's not malicious, I still think it is a rather serious professional mistake to ship a driver containing potentially dangerous deadcode.

bnegreve··on Ask HN: Huge enterprise customer wants to see our source code
I think you make an interesting point, ml models and algorithms are two different things.

I also think it's reasonable to ask for a model so you can test and validate it yourself.

bnegreve··on Show HN: Ondevice SSH – Terminal emulator for devices without public IP address
Cool, but I don't really understand the need for a replacement script. You can tunnel your ssh connexions using .ssh/config "proxy command" option[1], so they could use this functionality to achieve the same goal, and make any command using ssh (e.g. git) usable in a transparent way.

[1] for ex, see here https://www.cyberciti.biz/faq/linux-unix-ssh-proxycommand-pa...

← PreviousPage 7 of 25Next →