skysight-inc/HackerNews huggingface dataset:
Your claim that XMPP is a bandwidth-hungry, but in my experience, if XMPP based systems drain battery and consume a lot of bandwidth, then it's because of a poor implementation and design decisions, and not because of the protocol.
But not the only.
All I get is a big ad to install the app from Google Play.
The usual argument is that a space is always the same width, whereas a tab can have varying widths depending on your editor.

So, if you indent something with 4 spaces, then other people viewing your code will also always see 4 spaces, therefore ensuring that whatever you found to be readable indentation, does actually come out like that on the other end.
What field is that? Everything is political to the Left.
Agreed. Its always funny to hear a "liberal" say to someone "you're so close minded" just because the chastised doesnt believe with them.
API compatible or near compatible drop in replacements are a good thing though. The way we can have new things without needing to rewrite everything.

The only issue with this one is the lack of context API, which is needed for a lot of third party integrations, like react-redux.

If it wasn't for that, it wouldn't be a problem at all.
:) Thanks! I also work at 18F, but not directly on cloud.gov. Govtech is a huge market, and I wouldn't expect any individual effort to turn the entire ship. Hopefully, though, we can provide a space to experiment and build with modern solutions and practices to make them more "normal."

I'm especially a fan of developing in the open - you can see our commits and issue discussions and keep track of how we're doing as your civil servants. The other thing I love is that all of our work is in the public domain or CC0.
Webinar Jeo JV Affiliate Page Bonuses and Review of This Go to Webinar Killer
From the title, I assumed "from scratch" meant logic gate, or even transistor level. It's still very cool though.
Click on them and they will get bigger.
Automating Manual Visual Regression Tests with Python and Selenium
> I meant to let no viable jobs die or automate.

Are you saying you'd outlaw self-service gas pumps and checkout stations? Robotic assembly lines and autonomous vehicles?

A large fraction of the population has no distinguishing skills. That segment of the population is going to find itself with ever fewer ways to earn a living.
This holds for pretty much every government.
No one is trying to shut down people who are speaking out that something offends them; people are speaking out against those claiming offense because those people want to change the rules to where they are the only ones who can speak out.

That's the inherent irony, which is actually the opposite case of what you are saying. People are offended and are using their free speech in an attempt to end free speech. Those opposing are arguing back (like you're supposed to), not advocating for censorship. Totally different approaches.
Thank you @CarolineW I see your point here. Thank you for your feedback
> No. You could eat a jar of it and nothing in your genome would change

Um, I don't think that is what anyone is worried about, rather what can be done intentionally with it and to what extent we are still humans after a few generations of heavy use on ourselves.
The idea of "safe spaces" is what drove this, and is being used against protesters already:

http://www.theatlantic.com/politics/archive/2016/04/ohio-sta...
The alternative, depending on your market segment, is your competitor do it and you don't, they fall behind for a little bit, your sales grow.

Then their version comes out, faster and better, and their dev team iterates faster, eventually catching up and leaves you in the dust. I've seen it happen...very recently, in a situation that ended up in large layoffs.

It doesn't have to be all or nothing though. These libs are easy to keep around side by side, so you can slowly rewrite stuff as you add new features until the transition is complete.
i try to write my scripts in such a way that if all newlines were lost, the script would still run. semicolons even where optional.

requiring the use of bash for non-interactive use? good grief.

is it possible this company has a linux bias?

the usefulness of a minimal scripting shell cannot be denied. even with linux distribs that use bash, we almost always see busybox in use. busybox is more like the almquist sh than bash.

with sh, bash-only features may not work.

for example, shellshock did not work with almquist sh.

why are bash script not given a .bash file extension to distinguish them from sh scripts (.sh extension)?

.ksh extension is often used for korn shell scripts.
You've obviously never heard of backups.
Seems to have missed the fourth way free speech is being curtailed: By 'free speech advocates' who respond with harassment and threats to anyone who has the temerity to suggest their views are bad.
> Executables must start with #!/bin/bash

I've started using #!/usr/bin/env bash for compatibility with non-FHS distros such as NixOS.

Happy to see arrays omitted; if you find yourself in need of bash arrays you should definitely consider a proper language.

I tend to stick to POSIX shell to the extent possible, but readonly variables and [[ ]] syntactic sugar makes sense when maintainability is more important than portability.
Triplebyte (YC S15) is hiring for operations and talent to end credentialism
Are you Scandinavian? I used to date a Norwegian and learned the language decently well. I'll second the OP and note that knowing Norwegian I can pretty much read Swedish and Danish at the same level as Norwegian. I also experienced Swedes and Danes speaking their respective languages to Norwegians (sometimes people would just switch to English too). It seems like Norwegians understand Swedes and Danes better than the other way around, but the written languages are pretty easy to understand even for someone like me who isn't that good at any of them.
The best way to predict the future is to update^H^H^H^H^H^Hcreate it.
If you were talking about humanoid robots in the physical world, you'd have a point, but in a VR, NPCs exist in much the same way images of people exist on your TV screen. They're not really there. They also exist in the form of data on the computer running the VR, but data can't be conscious either, as it's entirely passive, like words in a book the computer can read from and write to.
Yes, everyone has "deeply held beliefs that they do not want challenged". The difference is in how we treat people who do challenge or disagree with our beliefs AND which beliefs it's currently acceptable to challenge and which are not.

Imagine someone speaking out against a popular left-leaning causes like something that Obama would support. Now, imagine someone railing against a popular right-leaning cause, like something Ted Cruz would support. Do you think they'll get the same amount or type of counter-artuments, vitriol, or push-back?
I was in Thailand in 2012, spent a day in Bangkok hanging out with my former office assistant who had returned there to take care of family. While walking through the park there was sudden music playing from the loud speakers. Everyone stopped and stood perfectly still. My friend had gone into a public bathroom and rushed back out to make sure I was standing as well. There was an announcement from the king that lasted a few minutes. After it ended everyone resumed their walking, sitting on the grass, and exercise routines. I found it hard to imagine political intrusions like this in daily life, although it seemed akin to being at a sports event that had obligatory random national anthems in the middle of a game. Anyway it seemed indicative of a larger political climate of intrusion, but it sounds as though it's gotten exponentially worse.
Doesn't bone marrow harvest require a general and tapping into the ilium? I would rather sit attached to a machine for a few hours.
I'm merely trying to discourage the ambiguous "they" labeling. I think the author is, indeed, a bit to on about the "you should help yourself" mentality. Some people can't or won't even if money is offered and many civilized people want to see those types cared for as well.

Even so, he's basically on your side in the sense that whatever UBI ends up being proposed for law, he would probably vote for it.

Personally, I think we can definitely eliminate the some of the costs of the social programs by giving everyone a flat $30-$40k per year.

The driving difference in thinking being that I believe that the only viable way to make basic income happen is to assess average living expenses across the board and provide that amount to everyone while retaining the former programs at a much smaller scale.

One of the big issues with the current system is that there is a lot of trouble in determining whether a person really needs the assistance of a program or not.
UBI helps in that only those who can show a need beyond $30-$40k/yr need apply.
Sad to say, but yes, also on my professional edition I think. (A "recommended apps" ad in the start menu.)
I've been meaning to play around with scala for a while now. Can anyone recommend a starter project for a seasoned dev to target with it, as a learning exercise?
Because the government should run the country and not small companies.
If the company is exploiting strategic resources like oil it should be taxed, not owned as far as I am concerned.
> They are a democracy, with regular elections.

That's almost laughable. The country has been under martial law for two years, with its constitution revoked. If the article is to be believed, the military prohibits campaigning against pieces of "legislation" they want passed -- like the new constitution, which basically just confirms military rule as law. A country with harsh (and enforced) laws on the book prohibiting criticizing the head of state... yeah, not a democracy.
A Poli Sci professor once told our class that the First Amendment is effective because it allows wrong/hateful/contemptible ideas to have a free airing.

The rest of us can really take a look at such ideas and the people voicing them and see just how bad they are. Once we see them, we'll reject them.

OTOH, if government or other actors suppress such speech, fewer people get a chance to see it, evaluate and reject it.

Of course, that whole theory presupposes that the vast majority of people in society will evaluate such speech well. It places a lot of trust in the people and in the conversation and in the process.
When a predator eats a pregnant prey animal they will consume its milk.

It doesn't happen very often but it could still contribute more than we think.
I hope Elon gets more sleep, because he's looking wrecked. A week of sleep would do him a power of good. I'd prefer a Musk dynasty with him lasting well into his 90s pushing starships around, not working so hard he bites the biscuit in his 50s.

A cool AI for a CEO would understand the internal logic of your business plan and help you delegate effectively so you don't get buried in the weeds or become too abstracted from reality. An intelligent filter basically. I guess we might need to wait for AR to get these kinds of personalized level applications though.
But why does that matter? The reader can adjust their tab-width setting to whatever they prefer.
I thought Nadella would bring an ending to such hamfisted, Ballmeresque/Gatesian approaches what with him supporting such open projects lately. This is sad.
Electrovibration in Ungrounded MacBook Pros
> I tried to find XMPP/Jabber clients for S40 phones for YEARS, and every single one I found would immediately crash with OOM errors.

> It's easy to blow off complaints like mine, because everyone on hackernews has a Samsung Universe S2000 or an iPhone 128 Plus, but these are real concerns that real people have in the real world.

I am using Conversations with my family and friends on a prosody server I put on a kimsufi server. It works like a charm, and we don't have all super awesome android phones (but I have to agree, nobody has an S40. Do they even exist anymore?).

I think your experience is outdated and not correct anymore.
I think this is a JQuery problem, as it makes complexing state the path of least resistance. i.e. modifying the DOM directly instead of via functions. Resulting in code that is hard to test or debug. React seems to fix this, witch makes it a good argument on why to use it. My counterargument for "vanilla" JS/HTML is that you can refactor the bad parts. But you can't get rid of React, or you would have to rewrite your whole app! Like when the next JS fashion/framework comes. grin
On point 2: indeed, given that they are restricting themselves to bash, I would have expected a note of `set -eu -o pipefail`, at least. `-x` (tracing), isn't appropriate for many scripts, though.

On point 3: `: ${FOO:-some default value}` is the typical pattern for ensuring a default value is set.
Important to point out this guy used to work for Apple on the maps product. So he may be a little biased.
And when they stop hiring people because they no longer require the labor of people who do not have specialized skill sets?
>It seems one rapist is one rapist too many

I'm not sure I understand what this means. How am I to interpret this?
> While bash does make it difficult to run SUID, it's still possible on
> some platforms which is why we're being explicit about banning it.
>My campus leans a bit right compared to the usual, and I'm actually glad for that. We haven't lost intellectual diversity and free speech is alive and well. Haven't seen anyone in favor of censorship, but if there was they'd be laughed right out of the room.

Which university is this, if I may ask?
All of these vigillante justice style attacks are an affront to true justice which should have been to speak to his superiors and to the police. Once all the data has been collected and a jury has made a choice, then we can make terrible websites about him.

He's been treated as guilty before given a chance to be proven as such.
This is a solved problem (at least, it's solved about as well as you could expect we could do). Social Security has the notion of a REPY or "Representative Payee" for recipients deemed unable to spend their own money, a trustee who manages it on their behalf. It's similar to (but not the same as) the concept of a legal guardian.

All in all, the Social Security Administration has a huge amount of experience with all the details and problems involved in efficient day to day administration of a massive payments program like this, so there's no reason not to just reuse the existing bureaucratic infrastructure and just swap out the eligibility rules.
Performance was never the point of React.

The point is to be able to (from a developer's point of view) re-render "everything", with every change, top down, without having to worry about the details. Doing that normally would be horribly slow, so React makes it adequately fast.

So it's not "super mega high speed lib". It's "Gives you the ability to have a function which, given argument, renders an entire app, and can be called over and over and over" at pragmatic speed, allowing for easier code to reason about.

If your primary goal is performance above all else, it's actually not that great a library.
But your average user doesn't care about the distinction. If their XMPP-branded client is battery hungry, they're not going to look for another client. They're going to think xmpp is battery hungry and move on. That's where the problem is.
That corresponds strongly with my (outsiders) view, and conversations I've had with a few Googlers. Though I'm also aware that decisions at _any_ organisation can be unpopular, and in a large company, you'll have responses.

But G+ seemed to push the strain quite high.
Note that that's for OS X. iOS, for what it's worth, will always check for and download OS updates when certain conditions apply (connected to Wi-Fi and power), with no way to disable it short of DNS hacks - which is obnoxious. All you can do is delete already downloaded updates. And if you ever go through with the update, it's impossible to downgrade: the bootloader forbids it. Both of these are far worse than Windows.

But for all of that, it won't actually start the update without getting consent. I guess that makes a big difference.
Nothing says "we employ the best" like "fixed salary based on tenure and job function"
How does the redistribution of wealth by using taxes on personal spending or on earned income to fund UBI cause inflation?
Some people absolutely want indentation to be one specific size for everybody and don't fully understand that what might look readable for them at 2 space-widths, would be more readable for some others at 4 space-widths.

Tabs are accessibility. People use spaces for the same misguided reasons they use px font sizes in css.

(Rant over. Yeah, this annoys me.)
I've used it for years and love it. Came from a C, C++, Java, Ruby (on Rails), and Delphi background. I'd describe it as a love child of Ruby and Java that turned out great. It offers great flexibility, which means you can definitely shoot yourself in the foot, and some libs have definitely done that, but I prefer to restrict myself rather than have the language force me.

We've created several in house DSLs and used them to great effect.

Compiler is slow, though it has gotten better over the years.

Very much looking forward to DOT (next gen of compiler and language, union types will be awesome).

Use it on four production websites, about to transition a Ruby on Rails site to it soon.
This seems to be the behavior last time I used the app (about 3-4 months ago).

Honestly, I just use Messenger without Facebok, since the IM part is the only thing I'd need on the road.
> I'm quite confident that the events we hear about on campuses are outliers that are presented as the norm

Even if you wanted to brush off campuses censoring, you can just look at the upper echelon of the political spectrum and see it's already a problem. President Obama has jailed several journalists in his tenure, more than any other President in U.S. history. We mock Russia, Saudi Arabia, and others for doing the same. Campus censorship is a symptom of a much larger problem.
When looked at over a timespan of centuries and across a wide variety of cultures, most of society's morals seem rather arbitrary to me. Many westerners fail to consider exactly how much culture and environment influence the "morality du jour". We (as voters) act as though we want moral absolutism, but we can't even consistently decide what is or isn't moral over a few decades. And while most people feel as though we keep moving toward "better" morals, I'm not so sure; I imagine this kind of sentiment has always been present.

Until everyone in the world agrees on one brand of morality, we must preserve the ability to discuss and debate it. No group can place themselves into the "we're clearly right" box, because historically, that hasn't turned out well, despite the best of intentions. Losing friends over a difference of political opinion is less of a concern than ending up in a society that got morality "wrong" because of an anomalous groupthink feedback loop.
And it always is missed. Because that's what you're _really_ not allowed to point out. Or that all these articles are written by white men of relative wealth, etc.
Wouldn't deploying cloudfoundry to AWS GovCloud accomplish the same thing? (Sorry, if the question seems too ignorant)
Rackspace cloud, backed up via CodeGuard to Amazon S3 daily.
today. the various BSD systems all come without bash in their default configurations (and it's never in /bin).

this should not be construed as an argument in support of /bin/sh.
Powerful men do tend to have trouble keeping their pants zipped when they should. We have had enough scandals in politics/business to confirm that. Berlusconi, Dominique Strauss-Kahn, Clinton, Petraeus and many more in the last two decades.

When there are accusations - I generally give the benefit of doubt to the accused. But if the chain of women claiming trouble approaches a miliCosby - then it is time to retract said benefit.
It's straight-up glurge with highly flawed "analysis", ledes buried deeper than mafia turncoats, and very, very, very little substance to show for itself, much of that apparently unconscious or strongly secondary to the main story.

It's crap writing, on style, viewpoint, and logic.
https://userstyles.org/styles/22794/a-dark-hacker-news
Some good advice on there:
"People who believe they may have been victims of criminal behavior are advised to contact law enforcement."
Ask HN: Recommended resources for learning Java?
Next month I'll be switching to a job that involves working mainly on a Java backend with Google App Engine. I'm guessing I'll be working on a REST API for mobile apps. Trouble is most of my experience is in frontend development with a bit of Rails.

What are some recommended articles/books to get up to speed with modern Java development? What are the most common tools/packages/build systems used in this area? Would it help to contribute to any particular open source projects to gain experience?
That could make a pretty neat crowdsourcing project. Come up with a parameterized set of prime number visualizations. Have a website that draws ("draw" in both the sampling and graphical sense) pairs of visualizations, asking the visitor to select which is most "interesting".
>> It's just that a few dedicated people decided to try to win the benchmarks game strictly for PR purposes [0]. <<

Perhaps you should check if the programs mentioned in that blog post are actually shown on the benchmarks game website :-)

(Also check if those tasks contribute to the summary comparisons and charts.)
I looked at Matrix before but it was easier to just roll with a custom MQTT server. Obviously this isn't a solution if you need true federation but I'd argue most don't.
Someone arguing that men shouldn't talk about feminism or whites talk about slavery is also protected speech. If lots of people shout about that really loudly and make you feel bad about your own views, that isn't the result of censorship, that's the result of free speech.

If the government actually bans men from talking about feminism, that would be censorship.
do you (or anyone) have a recommendation for an alternative open-standard protocol?
I finally got around to updating my iPhone and iPad and I also found those endless nags very, very off-putting. But what MS has done is much worse, with their upgrade-by-deception tactics. I've lost all interest in Windows 10, not that I had much to begin with.
My personal reason : Because it makes aligning stuff harder than it should be. I often have conditions that span multiple lines, and if they aren't aligned, it makes everything harder to read. By using spaces, I make sure the alignment is good for everybody.

I'm sure there are other reasons too.
It is good advice to treat recruiters with respect. All too often on HN I see an attitude of contempt shown towards recruiters (and HR in general).
This. But all three languages still very niche and worringly so, considering that Spark is niche too. Have they a future?
Except that it does become more expensive to produce those eggs. That is, assuming some of UBI gets paid for out of increased taxes that the farmer would have to pay.
Something topical on this very subject: the deputy editor of Vox’s first person section, Emmett Rensin, has been suspended by Vox after a series of tweets in which Rensin urged people to riot if Donald Trump comes to their town.

Emmett hasn't been censored (his original tweets remain), but his tweets have clearly had consequences

http://www.vox.com/2016/6/3/11853096/statement-on-emmett-ren...
The headline really should be reworded, even the article states the shutdown was a theoretical.

> if a forced upgrade happened and crashed our pc's while in the middle of coordinating rangers...