skysight-inc/HackerNews huggingface dataset:
I don't know how big "textfile.txt" is, but try it with a much larger body of text? Also you'll almost surely want a much better tokenization algorithm than that. Zipf's Law can only hold "at the limit" of an infinite stream of text, so as a consequence you get a better approximation with a larger sample.
Control DIY projects ith your mind using open-source brain-computer interface
The noise protocol is great candidate for an everything crypto protocol.

http/2 and TLS1.3 are great but make some assumptions that might not be right for everything.

Whats App is using Noise now in their apps.
There would be a limit on the number of renewals a work could have. Though, it's true that Disney would probably renew as many times as possible for all of its major works. The fact that the reform wouldn't seriously affect their business is a compromise to help make it more politically plausible.
Payments they're receiving are not really for their speeches. It's just a way to legally funnel money into their organization so they can sell access and influence.
I'd say it explicitly makes the point too :-)

> Flying a drone near an airport can already be punished with up to five years in prison, and rules also forbid taking them above 400ft (122m) or near buildings and crowds of people.
This sale is worth about $750,000, with opportunity for additional sales in the near and medium term. Our technology is core to their long-term objective.

As a bit of additional information, those first few emails that I mentioned took place over several months. From what I can tell the consultant and customer were reviewing the entire industry to see what was available. When they finally decided on a direction, things went pretty quickly.

Although this sale seemed fairly straightforward, all of the other warm leads and almost-contracts were anything but. I would say there were about nine other deals that got very, very close, but never closed. I previously had a $250,000 sale with a verbal commitment from a customer with budget to literally give away. But in the end, the deal died (because of inter-organizational politics).

My bit of unsolicited advice: Never, ever stop filling that pipeline. Keep casting that net, no matter how many times you miss.
http://www.ted.com/talks/linus_torvalds_the_mind_behind_linu...
Looks like a great replacement for nano.
As an American I'll remind you that we have relatively recent experience with the latter type, and it mostly did not go well.
> including fast user defined types

Can numba do this yet? Without having to write special "numba classes" code?

Blaze has a giant serialization wall between it and the JVM which it needs to solve to ever be competitive in its target market. Ibis is the much more compelling effort here.

Dynd is an overly complex C++ disaster that is trying way too hard to solve problems that aren't what anyone really struggles with. The number of real world problems for which homogeneous dense multidimensional arrays of floating point numbers is the solution isn't growing much. Real problems have interesting structure that your data structures need to be able to exploit on a problem specific basis. Doing the array layer all in templated C++ with Python bindings is not a recipe for making something easy to use and effective at problems it wasn't previously designed and compiled to solve. Displacing numpy is not going to happen in the Python space.

Dask has good ideas, but the insistence on implementing everything in pure python means you're stuck with the GIL and lousy performance of your scheduler. This needs to be low overhead if they want anyone to actually use it.
Part of this is about making sure people are available at last minute notification. If you're in transit from Sydney, Australia to London, UK, you're out of action for 30+ hours plus the time to get over jet lag.
Sometimes doing _any_ sort of action will jump to the top of the feed. It doesn't happen as often on web as it does in their app but occasionally it will.
Thank you for clarifying the first point. Agreed, the fundamental problem exists beyond tech and software. I guess coming to grips with that lets us use tech as a means to an end - a tool - that can be beneficial. The fact that we're discussing it on this medium shows that software and tech can be positive. The OP probably is looking at the general trend and state of problems tied to flaws in us as humans and other macro influences.

I'm sure that a solution exists that might be even simpler than tDCS. A walk through the woods always helps me ;)
Silicon Valley is its own kind of bizarre, soul-killing bubble. Stay in the industry, but move somewhere where humanitarian values are prized. Portland or Seattle sound like much better fits for you.
I need to get on that hacker news api and figure out what the half life of a HN user is, so we can tell whether 471 days is a meaningful value. I suspect a large number of people reading this weren't around then. (I think I measured that 2/3 of posters here don't have at least 501 karma, so you can use that as a ballpark figure.)
Inheritance of genes separates life from chemistry.

Inheritance of knowledge separates animals from plants and microorganisms. [1]

Inheritance of capital separates humans from animals. [2]

In the same way DNA is an integral part of life, and in the same way the knowledge to live in a particular environment is an integral part of an animal, technology is an integral part of being human.

Raise a human in the wild among goats without human culture, without human technology. As long as that human is separated from culture and technology, would an alien be able to differentiate the human from animal? [3]

[1] Animal born in captivity can't be released to the wild because they didn't have the opportunity to learn from their wild parents.

[2] Hammer, houses, watches, factories, passed down from generation to generation.

[3] https://en.wikipedia.org/wiki/Feral_child
Hey, I know this is silly because the fund isn't event taking these actions explicitly for environmental reasons, BUT if they were, your comment would be a great example of an Internet debate fallacy that I try and fight.

If an entity is doing something 'bad', reducing the scope or amount of that behavior is neither hypocritical nor pointless. It doesn't matter if it's a big company that pollutes, or an individual trying to reduce a bad habit. Movement in the right direction is an essential part of things getting better.
Saw the title and came here to write about moment. I work on a large code base that had considerable amounts of code related to time conversions in numerous different places, each handled differently with different bugs, and I've slowly been moving things towards just using moment. It's been a huge time saver and has fixed issues everywhere I've ended up using. Probably one of the most useful libraries around for sure!
Lazy evaluation is only a win if you're never going to use the result.

Some systems can figure out by themselves when lazy evaluation is useful. Consider this SQL:

SELECT * FROM tab ORDER BY score DESC LIMIT 1;

Assume there's no index for "score". The brute-force approach is to sort "tab" by "score", then take the first element. This is O(N log N) and requires generating a temporary file. Most SQL implementations are smarter than that, and will make one linear pass, for O(N) time. Some will do that for small LIMIT values greater than 1.
if you ever want to grow the service, i'd love to chat about either white-labelling it or selling it directly to other real estate brokerages. i have a few connections at a top national firms as well as regional players. my email address is my HN handle [at] gmail if you ever are interested in chatting.
If I can switch between programming languages that use 0-based and 1-based indexing without getting confused, surely you could too. If you don't think that learning to use 1-based indexing is worth it, that's fair enough, but it's pretty low on my list of things that give me trouble when I translate code between languages.
Ever hear of Berlusconi?

He was eventually dealt with legally, but only for his dealings with underage prostitutes.
That's not necessarily "lazy" in the normal programming context, it's specifically short-circuit evaluation in Python. Although as Wikipedia points out: "In languages that use lazy evaluation by default (like Haskell), all functions are effectively "short-circuit", and special short-circuit operators are unnecessary."
"The lack of contributions to the kernel project relative to other distros is worrying for anyone interested in the overall health of the Linux ecosystem. If the most popular Linux distro in the world has nothing to contribute, well, that doesn't bode well for the overall future."

"By Canonical's estimates, Ubuntu has roughly 90 percent of the Linux market."

Red Hat 2013 revenue: $1.3 billion

Canonical 2013 revenue: $66 million

Whether this relatively tiny company contributes to the kernel is not going to have much impact on the future. This "90% market share" comment is also questionable--90% of a market that will pay nothing for its software? 90% of zero is still zero.
My theory is that many poor families have a lack of self-control/discipline and they pass these habits onto their kids. It's difficult to break out of a family culture when you get older. Especially if this is what you have known your entire life and you have pressure to stay that way.

Just like with money, it takes a ton of discipline to make continued long-term minded decisions rather than short-term emotional ones that make you feel good.

Of course, this doesn't apply to everyone. Humans are complicated.
Yeah Simulink produces C code too. Doesn't SCADE produce c and Ada code to be compiled for the target? I mean most Control laws (application code) is now modeled and produces C code. I would not even call SCADE and Simulink a language. Custom OS's that run that SCADE code is written in C.
How we got our first enterprise customer (a company in Sri Lanka)

http://vpj.github.io/b2b_customer.html

tl;dr; We got the contact from one of our investors. First meeting was a product demo and a short presentation. There were long time gaps between meetings (it took several months to get to the trial). We didn't have a simpler way of doing the trial.
Really nice site for small screens!
Laziness is the mother of necessity...
CL-USER> (defun f (x) (* x x))

F
CL-USER> (f 2.0)

4.0
CL-USER> (disassemble 'f)

; disassembly for F
; Size: 37 bytes. Origin: #x1002B10BDC
; BDC: 498B4C2460 MOV RCX, [R12+96] ; thread.binding-stack-pointer
; no-arg-parsing entry point
; BE1: 48894DF8 MOV [RBP-8], RCX
; BE5: 488BD3 MOV RDX, RBX
; BE8: 488BFB MOV RDI, RBX
; BEB: 41BBB0020020 MOV R11D, 536871600 ; GENERIC-*
; BF1: 41FFD3 CALL R11
; BF4: 488B5DF0 MOV RBX, [RBP-16]
; BF8: 488BE5 MOV RSP, RBP
; BFB: F8 CLC
; BFC: 5D POP RBP
; BFD: C3 RET
; BFE: 0F0B10 BREAK 16 ; Invalid argument count trap
NIL
*
Not speaking to the legality, an honorarium is a token amount. This is not.
You wouldn't, because you can't be sure you've found the last value satisfying the predicate until you reach the end of the list. To do it lazily, you'd have to reverse the list first, but that's O(n), so not practical with very long lists.
Simple, use em all, and make a majority decision :P
To improve the site, instead of adding a lot on it have very little on it: only what's needed to get someone to install the software. I suggest you erase EVERYTHING from it, and start from a clean, single white page trying to get people to download it.

Make it legible first. What you have isn't legible no matter what the page says. When my eyes land on the site they move away from the site within 1 second:

- I didn't see the website footer.

- I didn't see the "open source" part.

- All I saw was the pictures and the orange button.

Assume a visitor will give the site no more than a 2 second glance. Design for that.

I would change "save the world from your sofa" to "end world poverty" and increase the font size from 30px to 60px.

I wish there were instructions for me to compile the software from source. In Linux I can often run ./configure && make && make install; and know that I'm installing something clean from source. Can I do the same with this software?

Now, onto why you're working on this. Do you have a specific "enormous potential" problem -- AN ACTUAL PROBLEM -- that you, personally, needed to fix yesterday?

Do you personally need to end global poverty? Why? How will distributed computing end it anyway? How many years have you spent being in poverty to understand that the one and only solution for poverty, out of the possibly thousands, is distributed computing?

Are you doing this because you believe distributed computing will mine Bitcoins, change that into money, and donate the money? If that's the plan, it never crossed my mind after visiting the page.

I'd be great if global poverty ended. I'm not saying distributed computing can't end poverty but I'm not fully convinced either.

All this said, don't get discouraged. You may find that what you're working on could easily change into something else. But whatever you release try to do a great job at it.

For example, what if I'm willing to just donate something to end poverty and not hog my CPU? That would be a completely different website. If you can make me trust you that the money won't be mishandled, maybe I'm willing to just donate $5 a month to end poverty, and not have to compile anything from source. If I can afford $2k for computing equipment, maybe I can afford $60/yr to end poverty and not hog my CPU.
Arguably, all of modern capitalism was built on the back of some very dirty and polluting technology. Would you say, then, that the capital of all the developed world is tainted?
Different tricks work for different people.

Here's one I find works for me: given a pile of tasks sufficiently daunting that it's hard to get started, take the easiest. Not the most important, the easiest, the one that can be completed fastest. Burn some (scarce, precious) willpower doing that. Then use the morale boost from successful completion of that first task, as activation energy to do the second easiest, and so on.

If the easiest task is so unimportant that it doesn't feel like a good idea to spend time on it, should it be on your to-do list at all? It's sometimes a good idea to physically or mentally designate tasks to not be done at all. No, cleaning up files on your computer is not worth doing. Yes, you've been meaning to get around to writing to your old high school friend for the last five years and haven't yet done it - so admit that, stop wasting morale beating yourself up about it, and just cross it off your to-do list.
Yet another one:

Days don't always start at midnight.

Midnight might not exist--some countries perform their DST transition at midnight, so the clock goes from 11:59 PM to 1:00 AM. Fun stuff!
This is still the case, but I don't see the harm in offering the ability to reserve an instance for a discount. I prefer GCE's automatically applied discounts to AWS's reserved scheme, but there are plenty of cases where you will need both flexible capacity and have predicted use.

k8s master, or any number of internal tools.
The timing of the poor people getting fatter seems to coincide with the timing of high fructose corn syrup being introduced.

We had 2 fat kids in my school class.... look around now
Actually EM64T was used by Intel in the early days.
PHP too.

(if isset($foo) && $foo == 14)

If $foo is not set the second boolean expression is not evaluated (short circuit evaluation).

In fact, checking if isset followed by another boolean expression is very idiomatic in PHP.
Looks pretty nifty! Are there any plans for future development or is it just a toy?
It's important to consider the effect of early life exposure to low levels of sugar. I think much the contrary, if you're exposed to high levels of sugar in utero and in early childhood, you will develop a fast metabolism and have little trouble with obesity or anything.

The Dutch Hunger Winter studies show quite conclusively that if your mother was literally starving while pregnant with you, and you have access to abundant sources of food, you're more prone to obesity and all the accompanying ailments.

https://en.wikipedia.org/wiki/Dutch_famine_of_1944#Legacy
You can use Lynx. It is a terminal based web browser, and is older than SSH. It exists for many platforms and is not particularly obscure or difficult to use.

https://en.m.wikipedia.org/wiki/Lynx_(web_browser)
I'm sure this will cause all the same outrage it did when Google did it....
I have no control over it. The whole article doesn't show up in the feed? That's annoying. I'll nag support...
I released on Steam, and Steam's been great. Since I just developed the game by myself, I only needed to sell a couple thousand copies to break even, and that happened fairly quickly. Releasing on my site (http://cranktrain.com) and on other stores like the Humble Store, the Mac Store, that's all rather worthwhile too, it all adds up. My site is a small Django site with Stripe, so that gives me the biggest margins, though I then have to sort out things like European VAT payments, which is a pain, but hopefully I'll grow that for my next game and it'll become worthwhile.

The Cat Machine has done modestly well, but it's let me work on games full-time. And it all started with that one cat-owner in Peru.
It truly astounds me that people just shrug and say "That's politics" when you point this sort of thing out.

It was not always this way. There is a clear conflict of interest.
It doesn't matter if they keep the money, donate it to their self run slush fund[1], or launder it through the Democratic Party[2]. The ethics issue is taking money from people who you're supposed to be regulating and misrepresenting your allegiances to voters.

[1]: https://en.m.wikipedia.org/wiki/Clinton_Foundation

[2]: http://www.mahablog.com/2016/02/23/elaborating-on-the-dnc-cl...
Regular, long (60min) sessions of meditation has helped me a lot. Not only will it increase your ability to concentrate on one idea for a longer period of time, it also provides a conceptual framework to get rid of the anxieties, and fears that are causing you to procrastinate in the first place.

The biggest problem is that it is difficult, and it's quite easy to find yourself 'resetting' to your baseline if you miss a couple of days.
"I measured that 2/3 of posters here don't have at least 501 karma", is that a meaningful piece of data though? I've been lurking on here for years; rarely comment, never posted.
This is more a press release than reportable news. The companies were sold last year.
Javascript will short-circuit in && and the ternary operator, too. But that's not really the same as lazy evaluation, which both is more general and happens in a different context; ES6 generators, for example, are lazy, which means that any sequence function in which one is used is lazy as well.

Indent your code snippets with a minimum of four spaces and they will be rendered as preformatted, monospaced text. Vertically adjacent lines thus indented will be rendered as a single block.
The fact that Reagan (or his election people) negotiated with the enemy to keep the American hostages until literally the second he was president, I don't know how that's not treason. At least Carter tried.
Well, it's good that they sold last year, because Peabody Coal went bust last week.
Kitchensurfing shutting down
Not to mention significant amounts of slave labor, child labor, war profiteering, fraud, outright theft, etc.

In other words, by similar logic it could be called “holier-than-thou” for westerners to have any standards whatsoever about investment choices, because our wealth is built on all kinds of unsavory sources.
That's not how the chemistry works. Most of the energy's in the hydrogen bonds, and the ratio of carbon to hydrogen is much higher in coal. The same amount of energy produced by coal produces much more CO2 than oil or gas. That's not even touching on higher heavy metal contamination and fly ash.
The demo video for Vimium at the chrome store has a fairly funny bit where he goes to HN. His reaction, "ahh, sweet." truly embodies the addiction that is HN.
Staggering drop in VTA bus ridership may signal dramatic changes
>lack of self-control/discipline

>long-term minded

I'm not sure how I feel about these statements, but they sound awfully indicting, even if there might be some truth to them. Maybe it's their sweeping nature that makes them seem naive/presumptious.

Poor people frequently don't have the luxury of engaging in long-term planning because they are consumed with day-to-day survival. Moreover, being poor itself requires a certain discipline, though not necessarily the kind non-poor people might readily recognize or appreciate.
Commodity computer hardware, to say nothing of AWS, hasn't been around nearly so long as our habit of skimping on infrastructure funding.
Why not just a fd flag that makes it so `write` doesn't return until the write has hit the disk?

Oh wait... isn't that O_SYNC/O_DSYNC? In which case, the problem is really using O_SYNC file descriptors asynchronously.

Idea:

Return EAGAIN if you try to write and the last write hasn't finished yet. + the file descriptor returns POLLOUT only when no writes are in flight.

This unfortunately means you can't have multiple writes in flight.

-----------------------

Wait, this is all too familiar....

I think this is solved by the linux kernel's existing async IO system.

Relatively unknown is that you can pass an eventfd file descriptor to async io operations (see https://gist.github.com/daurnimator/778c36c2de32f8882d0d for an example).
With IOCB_CMD_FSYNC + IOCB_CMD_FDSYNC we should have everything we need?

I wonder if O_SYNC works with IOCB_CMD_PWRITE?

The kernel aio interface is not wrapped by libc, only works on some file systems, has some odd-er alignment+size requirements and only supported by linux... though posix aio may be similar enough, I'd need to check.

------------------------

I did just find http://lkml.iu.edu/hypermail/linux/kernel/1601.1/02634.html which seems like an interesting development in this area.
Why bother converting from SI units in the first place? The public will never get comfortable with metric if publishers keep doing extra work to maintain the status quo.

Even scientific educational programming (Nova, NASA TV, etc.) often uses US customary units; metrication is just ridiculously overdue at this point.
http://www.jide.com/remixos

http://www.android-x86.org/

You don't have to wait for it.
Microsoft is preparing us for a world without Windows
Let's say I'm a VP at Google and I'm moonlighting as a consultant for startups. If you were Google and you found out that I earned $153M from this, how would you feel about this?
FYI, GCP is getting new regions later this year. US Western region in Oregon and East Asia region in (Tokyo) Japan.

https://cloudplatform.googleblog.com/2016/03/announcing-two-...
If they did indeed immediately release an update that ceases asking for these permissions, then I'd say this is an entirely reasonable explanation regardless of their history.
Is Bitcoin Halal?
> poor families have a lack of self-control/discipline

I know you said that was just a theory, but it's a variation on a too-common theme that I - and many others - find offensive. The experiment specifically involved people who have the same current socioeconomic status. Some had been affluent all their lives, while others had become affluent from poorer beginnings. If self-discipline is what allows some to become richer than others, don't you think those who became wealthy by their own efforts might know a bit more about it than those who had their wealth handed to them? Why, then, would they still exhibit this distinct reaction to offers of food? I don't think your theory has any explanatory power at all.
Keeping an "easy" list is one idea from Getting Things Done that still works for me. Energy level was one type of context, but there are others as well.

https://hamberg.no/gtd/#contexts
If you don't mind me asking, how much higher was your initial price?