skysight-inc/HackerNews huggingface dataset:
> You can do both.

OP isn't doing both though, and I think that's what JustUhThought is speaking to. OP just said (paraphrasing): "I know people like to talk politics on this subject, but I'm not going to do that, I'm just going to promote private charity."

It is reasonable to argue that we can do both, but just as we expect those talking primarily about political solutions to also highlight how private charity can help in the mean time, we should also expect those talking primarily about private charity to also highlight what political solutions we should also be exploring.

Also I think it's important to remember that some people believe government has no place in solving this problem, so they will promote private charity as an alternative to political solutions.

Likewise there are those who believe that private charity has no place in solving this problem, and the need for private charity represents a failure of public policy, so they will promote political solutions as a replacement for private charity.

So in some senses, we can't do both. The most extreme positions in this debate are mutually exclusive.
In that case, can't you then just un-DRY (hydrate?) the code by branching it for each subsystem? Then each team can keep its own pace, and still cherry-pick improvements from each other, which would be difficult to do if they were simply pieces of code copied all around the codebase.
I'm curious to know if the scoring rubric that emits one star for printers with expensive ink was developed before this story, or invented as post hoc justification. An expensive but otherwise functional printer seems more like about three stars, no?
The point is that the editorial board's denunciation of Snowden is empty, dishonest, and to be ignored unless it comes with an equally contemptuous charge against the WaPo news dept.
Smartphone Buying Guide – 6 Things to Know Before Buying Smartphone
I've seen some highly intelligent kids with no lack of hygiene and average motor skills. They weren't suffering a disease that needed them to be filtered out of mainstream society. Actually, I'd be happy if society gave them just a little more peace (I did make fun of some... teens being teens).
This is terrible. Is is even an argument?

I was reading "Hard problem of consciousness" Wikipedia article this morning: https://en.wikipedia.org/wiki/Hard_problem_of_consciousness
I'm not sure this adds anything to that.

The author seems to want to say that consciousness is primary and that the physical universe, matter, is consciousness somehow, so poof no more mystery.

But this doesn't touch the "hard problem" so who cares?

There is what I like to call the flux: form and movement. I lump together "external" and "internal" experience, including all proprioceptive experience, etc.

Then there is the subjective awareness. It is primary. As the author points out, every other fact we know is contingent upon the fact of subjective awareness. Everything is content to this whatever-it-is observer. This awareness itself seems not to have any qualities or properties whatsoever, making it extremely difficult to talk about (and rendering it forever beyond any scientific treatment!)

Somehow, this awareness is our "self". (It may or may not also be tied into the quantum "Measurement Problem" but that is a whole 'nother story.)

You have a body but you're not your body; you have emotions but you aren't your emotions; you have thoughts but you aren't your thoughts; you are that awareness.

Now, if that awareness created or creates the physical world (as the Bhagavad Gita seems to state) that would be pretty amazing and I'd love to read about it. This article doesn't really expand on that.
I freelanced for an ecommerce startup coding all their emails from scratch. Their marketing was built around very dynamic, complex emails that were pretty much impossible to template.
The MDN article mentions something which I have a question about;

>The API doesn't give you access to the local file system, nor is the sandbox really a section of the file system. Instead, it is a virtualized file system that looks like a full-fledged file system to the web app. It does not necessarily have a relationship to the local file system outside the browser.

>What this means is that a web app and a desktop app cannot share the same file at the same time. The API does not let your web app reach outside the browser to files that desktop apps can also work on. You can, however, export a file from a web app to a desktop app. For example, you can use the File API, create a blob, redirect an iframe to the blob, and invoke the download manager.

Is it possible to "see" from JavaScript whether or not the download manager has downloaded the file completely, so that the file can be removed from FileAPI storage?
Exactly - 3 occurrences is a pattern - 2 is bordering on zealotry.
Block #430443 contains just 1 transaction
A majority of the people simply don't like to learn anyways, even if they try. Even if there's a perfect MOOC out there most students don't complete the course because most people simply aren't students, or they're not cut out to be students. So the failure rate may not be the fault of MOOCs, but simply how many people in society work.

With that said I do believe that they should be valued and have a lot more credibility.
Somehow I believe that the upper brain is here to deal with problems, and so is naturally correlated to suffering.
[sips tea]

[continues to pity the poor foreigners]
Most of the webtorrent streaming demos I've seen have a webseed fallback, so it's not really that important unless you're doing something completely distributed.
Similar here: At Nextcloud we are also radically inclusive and have never seen a case of vandalism.

Granted, there were few occurences of accidental pushes to master here and there. But that’s where git itself helps and also the recent addition of protected branches on Github is very useful. :)

If the community is open and these artificial barriers to entry are removed, then people are way more likely to get involved.
It's unusual to have style guides, in particular as extensive as this, except at places that have their act together.[1] Where some sort of style is enforced, though, it's typical to have an automated tool that validates your code. This can happen locally (as a pre-commit hook), remotely when you push a branch (as a CI check), or when merging to master (same). If people are going through and noting style guide violations in a code review, that's generally a bad sign.[2]

[1]: This is my opinion. Anecdotally, places with style guides tend to have better engineering cultures.

[2]: Again, opinion. This tends to indicate a weak culture (dictatorial lead or a lack of awareness/ability when it comes to tools) and can produce a negative atmosphere (nit-picking isn't fun).
Japanese gov't advisory panel says Apple, Google hinder app competition
This will make you smile
The Making of Lemmings
Nice one! Plus you would not have to download ad.
The history of space exploration on a single map
I would wager it is just that this is what Bezos believes is right.
@Home was wide open around 1999ish. My friend would send random (if you can call goatse.cx random) print jobs to various open SMB printer shares. Ah, to be young again.
Fair enough! Perhaps "also known as..." would have been better.
re: Gamecube... How big of a market do you think there will be for 15 year old iPhones? As expensive as they are, I think they will hold much less retro appeal than old game systems.
[nods in agreement]

[sips tea]

Quite.
Hi, creator of WebTorrent here.

> [BitTorrent] isn't designed to sequentially stream data

We’re working on improving the algorithm to switch back to a rarest-first strategy when there is not a high-priority need for specific pieces. In other words, when sufficient video is buffered, there’s no need to deviate from the normal piece selection algorithm.

But the fact is that with the speed of today’s internet connections, the user is going to finish fully downloading the torrent in a fraction of the time it takes to view it, so they will still spend more time seeding than downloading.

In practice, the only time that the rarest-first algorithm is important is on poorly-seeded torrents, or in the first few hours of a torrent being published when the ratio of seeders to leechers is really bad. I plan to keep improving the piece selection algorithm so that WebTorrent can be a good citizen.

Also: you should note that not all WebTorrent users stream sequentially. That's just one option for downloading the data.

Also: It's noteworthy that BitTorrent Inc.'s official torrent client (as well as the largest player by marketshare), uTorrent, offers sequential downloading, as well as selective file downloading. And the BitTorrent network remains very healthy.

> why they didn't take this opportunity to design a protocol that has more suitable trade-offs than BitTorrent

BitTorrent is the most successful, most widely-deployed P2P protocol in existence. It works really well. My goal with WebTorrent was to bring BitTorrent to the web in a way that interoperates with the existing torrent network.

Re-inventing the protocol would have made WebTorrent fundamentally incompatible with existing clients and prevented adoption. The way we've done it is better. The wire protocol is exactly the same, but there's now a new way to connect to peers: WebRTC, in addition to the existing TCP and uTP.

Also, re-inventing the protocol is a huge rabbit hole. There was already a lot of risk when I started the project -- will WebRTC get adopted by all the browser vendors? Will data channel stabilize and be performant? Is JavaScript fast enough to re-package MP4 videos on-the-fly for streaming playback with the MediaSource API? My thinking was: Why add inventing a new wire protocol and several algorithms to the table?

Thanks for your thoughtful comment. Hope you'll give WebTorrent and our new desktop app, WebTorrent Desktop a try!
I don't remember any discussion of that 15 years ago, but there's a difference between some sort of general FFI and loadable modules of this sort that rms rejected on Moglen's legal advice. (Disappointingly, as the design was intended to make the copyright situation clear in a legal case.)

I don't know why the 2002 implementation was reimplemented (without credit and apparently without understanding it properly).
This is a variation on Apophatic theology [0], the belief that the Devine can only be understood by what it is not. A great example of it can be found in Ch 4 & 5 of "The Mystical Theology" by Dionysius the Areopagite, circa 500CE. [1].

In Western thought, these ideas are closely tied to Plato's Theory of Forms [2].

[0] http://plato.stanford.edu/entries/mysticism/#2
[1] http://www.esotericarchives.com/oracle/dionys1.htm#chap4
[2] https://en.wikipedia.org/wiki/Theory_of_Forms
Scumb bags
Copyright is not a divine right
Show HN: A curated list of talks about React or topics related to React
Also, like most (all?) Mozilla projects, it's open source. Neat!

https://github.com/mozilla/thimble.mozilla.org
Elon Musk: How to Build the Future (Youtbe)
I'm firmly in the anti-DRY camp since it causes everything to be slow, including coding speeds. You spend far too much time trying to figure out something new, when you could have just cut-and-pasted the answer from the previous problem.

Repeat yourself. It's good for you, and makes you code faster.

You can refactor out later if code becomes bloated.
Security alert – All geth nodes crash due to an out of memory bug
>> California could try this on its own, and should.

Immigration is the exclusive purview of the Federal government.
Exactly. In practice, modern torrent swarms have such an over-abundance of seeders that there is ample bandwidth for everyone. Consequently, the famed BitTorrent tit-for-tat algorithm as well as rarest-first piece selection strategy become a less important.

Update:
It's also noteworthy that BitTorrent Inc.'s official torrent client (as well as the largest player by marketshare), uTorrent, offers sequential downloading, as well as selective file downloading. And the BitTorrent network remains very healthy.
This is not actually true. Intelligence correlates with social skills https://www.gwern.net/docs/iq/2015-strenze.pdf. It's just that math departments select for people who want a job where they have high degree of control over their environment and work on things they chose and want to spend lots of time on, and this makes it a good choice for high IQ people with autistic traits.
DiCaprio calls for 'bold action' on oceans [video]
I'm sure you don't believe that Gmail's revenue is zero.
It still requires Java and Kafka, but Kafka Streams is a library that lets you build stream processing jobs without a centralized cluster if you have Kafka running. Just embed the jar and run your class on as many machines as you like and they will self-organize and balance. Worth checking out.
And he wasn't 15 years ago. He also didn't provide legal advice.
Beauvoir and Sartre had reputation for seducing their students, but not when they were underage (for France's laws of the time).
Maybe - I think we might see a bifurcation between the Gmail experience for consumers (Inbox) and what they provide as part of Google for Work.

I'm looking for something that resembles GMail's actual functionality that is currently supported by Outlook and a variety of other email clients. I would just prefer a Gmail-native app because the Gmail app works more smoothly with Gmail than Outlook or any other provider does - particularly around search.
I'm kind of stunned, too.

> software developers are as a demographic cohort terrible at negotiating - tptacek https://news.ycombinator.com/item?id=7612100

His wife sounds justifiably annoyed. Google isn't a charity, $20-50k means far more to you than it does to them.
Well, that's the problem(s) isn't it? There's obviously some connection, what could it be?

If you're going to take both subjective awareness and physics seriously there's a huge and crucial mystery here!

Q.E.D. (Or running in circles, as you like.)
Meet Duck Type
Point 1 is how I do it. I think it balances the trade off between too-early abstraction and too-much duplication.

The only thing I'd add is that you should think about including some comments when you duplicate code so that people realise how the different bits of code relate to each other. If you've thought of a potential way to abstract the code, but didn't proceed with it for some reason, you can add a note describing how it could be done. This helps new people understand why they're seeing duplication and how they can factor the code if they choose to.
WW3 GOOD NEWS FOR US ,MUSLIMS SAY IF TRUMP IS ELECTED THEY,LL LEAVE USA, -
It'd better include complimentary bath salts.
I'd never heard of that; it looks great! Although i must register some skepticism at the claim of leanness:

http://www.ellesmerebutchery.co.nz/shoulder-bacon-sugar-cure...

It reminds me a bit of the gammon we have in the UK, which is meat from the hind leg, cured like bacon, but sold in joints or steaks, rather than thin slices, and which is quite lean:

https://www.ocado.com/productImages/281/281291011_0_640x640....

Meanwhile, in South Africa, shoulder bacon appears to be something else again:

http://www.freys.co.za/products/bacon/shoulder-bacon/
> If you have a one-line function that is used one place (or even a few places) and it doesn't mean it is easier to understand just because you made it look like English. More likely you just obfuscated it: update_string_with_value(string,val) is NOT easier to understand than string.append(val).

We agree your sample has been obfuscated.

/// <summary>
/// Case Insensitive IRC Name
/// </summary>
public struct CIIrcName {
private string Data;

public static implicit operator CIIrcName( string s ) { return new CIIrcName() { Data=s }; }
public static implicit operator string( CIIrcName n ) { return n.Data; }

public string ToLower() { return (Data??"").ToLowerInvariant().Replace('{','[').Replace('}',']').Replace('|','\\'); } // Silly scandinavians :<

public static bool operator==( CIIrcName lhs, CIIrcName rhs ) { return lhs.ToLower() == rhs.ToLower(); }
public static bool operator!=( CIIrcName lhs, CIIrcName rhs ) { return lhs.ToLower() != rhs.ToLower(); }

public override bool Equals( object obj ) { return obj is CIIrcName && (CIIrcName)obj == this; }
public override int GetHashCode() { return ToLower().GetHashCode(); }
public override string ToString() { return Data; }
}

Every single function of this is a one-liner. Are any of them obfuscated? (IRC servers sometimes talk about the same user or channel in multiple cases, this was a quick drop-in to prevent these from being mistaken as different users/channels by my IRC client. The "Silly scandinavians" comment references the fact that, yes, IRC thinks '[' is lowercase '{'. And yes, I've seen that matter in practice.)

Most of the changes I'd make here have nothing to do with method length:

1) Conversion (at least back to string) should probably be made explicit at this point (was originally implicit for ease-of-use when replacing string s)

2) ToLower could be made private (only used inside the type) and have the comment replaced with the above blurb (instead of being a comment to myself that only I'll properly decode.)

3) Rename CIIrcName to CaseInsensitiveIrcName?

4) Rename Data to OriginalCaseName?

> And you're also coding defensively against your fellow developers. This tends to be a problem in low- to average-skill workplaces.

My experience has been just the opposite. Low/average skill tends to mean less asserts, less static analysis, ignored warnings instead of warnings-as-errors, no unit tests, no thread safety annotations... forget my coworkers - I add these things to code defensively against future-me, and I've found it super effective on larger codebases.

> This goes all the way back to when they learned it was a good idea to comment their code "next = ++i // increment index then assign".

We agree this is bad too. A different perspective though - those are perfectly reasonable comments when you're new enough to programming that you don't remember what "++i" does! But it's something to grow out of and remove.
It means that the language allows side-effects; this is in contrast to pure functional languages like the lambda calculus, the pure subset of Lisp, or Haskell.
Vienna is nothing comparable to NYC in terms of cosmopolitain, NYC is of a different variety entirely. Have you been to both? About 85% of NYC residents are from out of country or out of state. Nobody is from New York. Everybody living in Vienna since the 'Habsburg era' may as well just be 'Germanic', as far as their culture is relative to something like 'Jamaican' or 'Puerto Rican' or 'Chinese' or 'Indian' as you have in NYC.

Also - I'm afraid you might be missing something called 'market dynamics'.

People don't 'move to a place' and then 'wait for housing'. If X number of people are 'moving' to a city every year, then it's because there are already places there to buy or rent. Builders make the assessment of how much the city is growing (as you say, rents are going up - that's a sign of demand) and then build homes and flats based on the types of demand - which enables more people to come.

Given the vast differentiation in prices between city and 'out of city' homes - it's patently absurd for taxpayers to subsidize expensive city living for some people and not others. The 'expensive' part is not the 'flat' - it's the 'property'. The best thing is to let market dynamics have it's way, and have cheaper apartments in the periphery where there is less demand. Reasonable rent controls protects people from being kicked out.

Average rent in Toronto is about $2K for a one room flat. A simple subway ride to the suburbs, and it's less than half that. A little further and it's 66% cheaper. Trying to control home prices is like trying to control the tide of the sea. It's pointless.

For the small amount of those 'very marginalized' - yes, maybe they need their rent paid for, but that's another story.

And if all those newcomers to Vienna require 'subsidized housing' (which I doubt) then Vienna will not exist in 50 years.
electricity is a very liquid market, they're probably selling this generation into ercot, buying it in offset in whatever grid they operate on. they could have some sort of physical exchange in place to act as the offset (i.e. they sell power to a generation company in Texas, they buy same offsetting amount from same generation entity in California/MISO/wherever)
H1-B is a socially destructive program that needs to end. Big companies, in tech and otherwise, use it to keep labor costs down and as another negotiating tool. Talk about having your cake and eating it too!

It's funny how all these huge companies that have billions in cash, and who don't pay their fair share of taxes, are always crying poor and wanting more subsidies from someone.

H1-B is effectively a subsidy provided by US workers to unfathomably rich, tax-dodging corporations.
> Laws are not meant to lift people from poverty. PEOPLE must lift themselves so far as to lift each other out of poverty.

There are numerous examples of people who have done everything society has expected of them but are still unable to find a job. The "all poor people are personally irresponsible" argument is basically a stereotype. Even if it does hold true for >50% of those experiencing poverty, it's pretty cold to tell the minority that actually is sympathetic, "Sorry, you did everything right, but your poverty is still your responsibility and you deserve no assistance from the community which set you up to fail."

> One of the basic functions of government is to protect people from other people

Protecting people from other people sounds like a great way to describe a government-guaranteed lifestyle floor, such as a universal basic income, or some other combination of safety net programs that are aimed at unconditionally ending poverty with no means testing. It would protect you from being coerced by others into the labor market against your will due to the implicit threat of death by the effects of homelessness and/or food insecurity. That protects poor people from other (richer) people pretty effectively.

> Who should determine what those rights are? The government? People? A majority?

I think this is pretty well settled. Public policy is what it is because policymakers we elected set it up that way. So, yeah, basically majority rules.

> San Francisco is an excellent study in what can happen when government plays a role it is not fit to oversee.

I would argue that San Francisco is an excellent study in what can happen when a majority of the electorate is insensitive to poverty and is uninterested in electing representatives who are serious about ending it by passing legislation like UBI or other more comprehensive, non-means tested safety net programs. As a nation, we simply don't prioritize solving this problem with government. We could. We choose not to. Majority rules.
The company I work at has Perforce tied to a homegrown code review tool that really makes it painful to use and in reality that's my main gripe with having to use it.
I like pork chops with a rub made of ground dried sage, with a bit of dried garlic, salt and black pepper.

And i don't think it's accurate to say that British bacon tastes like a pork chop - it is cured and may be smoked, and has a pretty distinctive bacon flavour.
You can also tap (to focus + auto expose) and then drag up/down to manually adjust the exposure from there.
I recently spent a yeah in New Zealand and while I really like it there, I could never find bacon like at home in the US. Even the streaky bacon wouldn't crisp up like US bacon. I'm not sure what the difference is. Perhaps the NZ streaky bacon isn't cured in the same way? I'd love to know if anyone has the answer.