HNHacker News
TopNewBestAskShowJobs

proto-n

746 karma · joined September 7, 2016

submissionscomments
proto-n··on Ascii Art Generator
There are plugins for that! https://github.com/adamchainz/SublimeFiglet
proto-n··on 911 calls from chronically ill drop after Milwaukee community initiative
How did you get 1.6%?
proto-n··on For mathematicians, = does not mean equality
Have you considered that higher orders of x are in fact smaller when x is near 0?

The parent comment was right and you are wrong, around zero x^5 absolutely dominates x^7 and the big-O notation is used. See for example here [1]

[1] https://en.wikipedia.org/wiki/Taylor_series#First_example

proto-n··on Python’s Weak Performance Matters
Ok, I said I wasn't sure about the implementation, so I looked it up. In fact `isin` uses either hash tables or np.in1d (for larger sets, since according to pandas authors it is faster after a certain threshold). See https://github.com/pandas-dev/pandas/blob/master/pandas/core...
proto-n··on Python’s Weak Performance Matters
I've also found that loops with dictionary (or set) lookups are a pain point in python performance. However, this example strikes me as a pretty-obvious pandas use-case:

    interesting = set(line.strip() for line in open('interesting.txt'))
    total=0
    for c in chunks: # im lazy to actually write it
        df = pd.read_csv('data.txt', sep='\t', skiprows=c.start, nrows=c.length, names=['id','val'])
        total += df['val'][df['id'].isin(interesting)].sum()
I'm not exactly sure, but pretty sure that isin() doesn't use python set lookups, but some kind of internal implementation, and is thus really fast. I'd be quite surprised if disk IO wasn't the bottleneck in the above example.
proto-n··on A Type of Road Junction that Kills Cyclists
The article describes that the cyclists don't see the car either because it is coming up on them from behind (at a 94 degree angle, with higher speed).

You can't know you haven't made eye contact if you don't know they are there.

proto-n··on Intel's CEO Just Sold a Lot of Stock
Could be related to [1]?

[1] https://news.ycombinator.com/item?id=16052451

proto-n··on The Bitcoin Whales: 1,000 People Who Own 40 Percent of the Market
There's something that must be mentioned here: there are multiple visions for what bitcoin should be. Probably with much oversimplification, but as unbiased as I can be:

One side wants bitcoin to be a decentralized store of value, untraceable, unseizable, a safe heaven for your wealth that's completely permissionless to use.

The other side wants bitcoin to be a currency for the day-to-day life that is cheap to use, a global currency to escape the (possibly shitty) fiat issued by your state and the banking system. Basically money for "the other 6 billion people" or "the unbanked" or whoever else that needs it.

The two visions don't contradict each other, however they have different priorities, and they make different technological compromises when faced with a problem (decentralized scaling).

This doesn't take away anything from your question, but one has to consider this divide when looking for answers.

proto-n··on Learning Go by porting a medium-sized web back end from Python
Well, as my edit says, I've had success with installing anaconda on an other machine and copying the environment folder to the proper place inside the installation, but AFAIK that's not an officially supported way of doing it.
proto-n··on Learning Go by porting a medium-sized web back end from Python
No, the intended way of cloning works by exporting the exact specifications to a text file and re-creating the environment from the text file.

If you use packages from conda channels (which are repositories of packages), then it should work flawlessly. Usually basically everything is available from either the official channel (anaconda) or some community channel (like conda-forge). At least in the data-science domain. I'm not really familiar with the python web-development scene, so not sure about that.

Edit: actually once I had to copy an environment from one machine to another (because of connection problems), and I seem to recall that worked too, but I don't think this method is officially supported.

proto-n··on Learning Go by porting a medium-sized web back end from Python
Coming from a data science background, don't anaconda and environment description files [1] solve this problem with python? Not even sudo is needed to install anaconda and setup / clone environments, also it can manage python versions independently from the system's python.

[1] https://conda.io/docs/user-guide/tasks/manage-environments.h...

proto-n··on CoinDash’s ICO Website Has Been Hacked
The webserver, or you know, their wordpress website (at least according to reddit).
proto-n··on A Case of Stolen Source Code
How about an ethereum smart contract that gives back your money unless the owner releases the key used to encrypt your files (which may be possible to verify in the contract)
proto-n··on Coinbase adds support for Litecoin
You are reacting to something my comment doesn't say: that somehow segwit is not good enough. I only said it was somewhat controversial (which it is, for whatever reasons, didn't say it was technical) and that bitcoiners view it as a beta test, which is/was a widely accepted sentiment on both /r/Bitcoin and /r/btc. I didn't even say it needed one.

I said the latter more to illustrate the relationship between segwit+bitcoin and segwit+litecoin than segwit itself.

proto-n··on Something is wrong when the ‘telephone app’ on your phone becomes 3rd party
More choice always means more responsibility. You could argue against democracy with the same idea - what happens if the voters choose someone not worthy? A lunatic or someone downright malicious?
proto-n··on Coinbase adds support for Litecoin
A somewhat controversial protocol upgrade developed for bitcoin. On the bitcoin network it has not reached the necessary support yet. Most bitcoiners view its activation on litecoin as a large scale beta test.
proto-n··on Sublime Text 3 dev build 3128 released
how about the command line tool 'locate'?
proto-n··on Ask HN: What do you want to see in Ubuntu 17.10?
+1 both of these are very much needed by laptop users. Real non-integer scaling would be awesome.
proto-n··on Bitcoin slides as China's central bank launches checks on exchanges
Not necessarily "large", only larger than the "minimal fees" you mentioned earlier.
proto-n··on The Reality of Developer Burnout
I think it's all about creativity. When you burn out, your creativity dries up. Most of programming (and generally thinking) is done by your subconscious, and when it says 'I've had enough of this, I'm not helping any more', you are SOL, no amount of willpower will help with that. That's why digging ditches is different.
proto-n··on Help me HN: I've become obsessed with buying 8 bit computers
Except for the fire extinguisher, of course.
proto-n··on ‘Diamond-age’ of power generation as nuclear batteries developed
4 8 15 16 23 and 42
proto-n··on Show HN: Simple JavaScript Tetris
http://stackoverflow.com/questions/1642028/what-is-the-name-...
proto-n··on 5 Simple Math Problems No One Can Solve
discussion on reddit.com/r/math if you are interested, highlighting various errors in the article: https://www.reddit.com/r/math/comments/57jfv7/5_simple_math_...
proto-n··on Setting Up a Modern JavaScript Stack for Beginners (ES6, React, Webpack, ESLint)
also do a chapter about testing please!
proto-n··on What is the Nash Equilibrium and why does it matter?
No, not really. The nash equilibrium occurs when nobody is able to achieve a better outcome for him/herself when assuming that noone else would change their strategy with him (no coordination).

This is not neccessarily the best outcome for the market or the players themselves, see for example the prisoners dilemma (etc).

← PreviousPage 7 of 7