skysight-inc/HackerNews huggingface dataset:
When you run "firefox", it will check if the current user already has an instance running; even if it's on a different display.

To prevent that you need to run the firefox command with "-new-instance" or "-no-remote" (which implies "-new-instance").

Firefox also 'locks' profiles which are in use, so you need to use separate profiles for each Firefox instance which is running. You can do that by making a temporary directory "T" and passing it to the firefox command as "-profile T".

As an example, the Firefox command I'm using in one of my scripts is currently:

timeout 60 firefox -safe-mode \
-profile "$FF_DIR" \
-no-remote \
-new-instance \
"$URL"

XFVB is an X server, which programs connect to based on the "DISPLAY" environment variable. You can see what that's set to by running:

echo "$DISPLAY"

You can set it, e.g. to ":99", by doing:

export DISPLAY=:99

Each running X server needs a different display number; this includes regular desktop sessions (usually running on Xorg with display :0), XVFB, Xnest, Xephyr, etc.

I use a variant of the script at http://stackoverflow.com/a/30336424/884682 to choose an unused display number for each XVFB invocation.

NOTE: This is based on simple automation tasks with bash and xdotool. I don't use Selenium, so I don't know if already does any of this. Hope it helps anyway :)
"Which startups are good acquisition targets?" is very much a data-mining problem, though I would expect that noticing a startup experiencing "hockey stick" growth based on the growth of their Google Cloud Platform bill (or perhaps the # of users logging in with Google credentials, etc.) is much more likely than any Google employees (no matter how highly placed) trawling through Gmail looking for proprietary information.
Sloppy meeting habits to avoid in your organization
Top How  to Afford a Prosperous Retirement Living
Code Your First Microservice in an Hour
Observing gravitational waves is not really the same as observing individual gravitons. It's unlikely we can observe gravitons with any equipment we can actually build.
https://twitter.com/sgurumurthy/status/796011217709998080
And where exactly were 7 million people supposed to move?
Kafka store – Guaranteed consistent archives of Kafka topics
You get updates because you installed it from the AUR, which isn't officially supported by the Arch devs
You can also try this on your existing Linux distro by following the KVM instructions at http://developer.ubuntu.com/en/snappy/start/

To use Ubuntu Core, you first need to create an Ubuntu SSO (Single Sign-on) account at https://login.ubuntu.com/ and add there your public key (SSH).

Then, when you first boot into Ubuntu Core, it asks for your Ubuntu SSO username in order to retrieve your public key. Finally, you can SSH to the Ubuntu Core instance.

I did not try this on a supported device.
Scrap Your Constructors: Church Encoding Algebraic Types
Ask HN: List of frequently used UI notifications texts
Hi guys,

Clear, accurate, and concise text makes interfaces more usable and builds trust. Is there some list of the most frequently used notification texts used in UI of the web sites? What's better? "Item has been saved" or "Item saved" and so on ...
And MS has the Linux Subsystem in Windows to run Ubuntu Linux binaries and is open source, so?
Maybe, but Baidu is awful compared to Google as far as search is concerned.
> even though we've supposedly observed [gravitons] now

Source? Or are you saying that the existence of gravitational waves constitute a proof of the existence of gravitons, due to wave/particle duality?

I'm not a physicist, but all I thought we had detected were gravitational waves.
It's OK to Quit Your PhD
Yes, I've done some (admittedly shallow) research on the prevalence and effect of black money, and the impression I got was that it's like "money laundering" in America; actually not that significant or deleterious, but a convenient political talking point.

> The government will introduce new 500 and 2000 Rs notes.

Arbitrarily downgrading existing notes makes the currency both less convenient and less liquid (and, I forgot, less fungible).

> How is it forced? You can still keep cash under your matress.

For now, yes. I was referring to the war on cash in general.

> What? This is way too far fetched.

We now have reason to believe they might pull this trick again in the future with the new notes. A rational person would therefore assign a lower value to the new notes than their nominal "face value" before the government devalued the old notes.
I do not think in/out parameters are ugly. I find them to be a lot more elegant than the cudgel that is pointers.

Go's pointers are certainly BETTER than C++ pointers, but I don't think that immediately makes it better. BOTH languages have value and reference semantics, and BOTH languages use syntax to dogwhistle that to programmers.
I don't disagree that security talk could be better about threat models, total evaluation, etc.

But in this case, we also have to imagine that the bank-grade vault door to the shed costs about the same as a regular door.

While I agree the marketing is nonsense (you need lots of other secure features too!), there's absolutely no reason people shouldn't a) start locking their doors, since most current "robberies" are walking in the front door without challenge and b) use the high security door, because the cost is the same as a regular one while the benefits are strictly greater.

I agree that Signal needs to tone down the complete security language, but I think too many security professionals scare people out of making improvements by talking about how there are still compromises. There are lots of middle-ground social goals, like reaching a level of security that makes bulk collection untennable, but leaves targetted attacks open. It's the digital equivalent of closing your blinds in a locked house -- government can still get in to see if they have reason, but they can't see when just wandering by on the street. And they can't pretend their intent wasn't to violate your privacy by entering, since the low technical barriers still require active bypass.

The vault door may not keep your shed from being robbed, afterall there's a ton of easy-to-kick-in windows, but forcing it to be B&E instead of a walk in is meaningful. The law might be ambiguous about walk-ins, but is clear about B&E. (Id argue the other "unlocked" doors are really just getting keys from the landlord, which is a separate problem.)
How to have your Favourite Gun everytime in mini militia
> So if a person votes with the same first/last name as another person in another state, it's possible that vote could be wiped out. It was even matching names even though there were differences in middle names or had Jr/Sr at the end.

Funny how this exact same problem was a non-issue for the left when it came to "No-fly, No-Buy."
At a cursory glance, it seems that Google or Google-owned sites make up a majority of the IPv6-enabled sites. Seems to me the numbers would be a lot lower without Google's work.
Thank you too for answering my questions. And to answer your last: You can imagine that what is measured with LIGO is the change of the space itself as the wave hits the detector. The speed of light remains constant. But please let's not discuss it more in this thread, I also prefer continuing somewhere else on some other occasion.
"Practically most of governments in the world are guilty of this."

In which way is this relevant to the argument?
Because Google's production systems aren't internally open like that, other teams can't just go grepping through production data systems (which is encrypted at rest anyway). Yes, there are obviously systems which do index data for search, spam prevention, etc, but those are guarded too, and the surface area of access is greatly reduced.

You can't just decide "Hey, I've got an idea for a cool 20% project, I'm going to try crawling all mail and looking for stock market tips". There is defense in depth, in terms of technical walls, as well as people walls, that makes something like that very unlikely. With tens of thousands of employees, it would be easy to get 1 rogue employee who could do serious damage with that kind of access.

Google takes data security and privacy very very seriously, and a breach of that magnitude would threaten hundreds of billions in valuation for a rather crazy risky idea for an M&A department?
Webscraping with Rvest
We are seeing the Innovator's Dilemma playing out in real time for all to see. Interesting.
This article: (https://www.psychologytoday.com/blog/the-squeaky-wheel/20151...) seems relevant to the posted article, as well as some of the comments here.
> They can 'compile' in an 'optimized manner' using something else ...

Thats actually the issue Julia attempts to solve as highlighted in the article. There are many languages that you can use to express ideas, but when you need the idea to run as fast as possible, you have to rewrite in C/Fortran/etc and then add bindings to to the language.

Julia lets you write inline C, which I believe means that you can still express algorithms simply, but with some parts (trivially) optimized. (Not a huge julia user, but thats my take on it)
Toyota ought to be the big threat. But their management made a terrible mistake. They went for a car powered by hydrogen.

This is a real car, the Toyota Mirai.[1] You can buy one right now in California. They've sold about 700 cars. $57,500, including 3 years of hydrogen fill-ups. 312 mile range. 5 minutes to refuel, not including the drive to one of the few hydrogen stations.

Here's the only hydrogen station near San Francisco, on S. Airport Blvd.[2] Hydrogen stations are subsidized by the State of California through 2023, unless somebody stops that. (Remember Arnold and the hydrogen-powered Hummer?)

[1] https://ssl.toyota.com/mirai/fcv.html
[2] https://www.google.com/maps/@37.6481529,-122.4056447,3a,42.5...
Interesting point to belabor further. I am not old enough to know/remember what computers were like in the early day. Can anyone shed a light on what it was like when personal computer were in the same stage as VR today? I get a hunch computers were indeed less "hyped", but perhaps that's just the nature of the world we live in now. In 2016 it's no longer enough to have a good product, you have to shove it in the consumer's face or your competitor rips it off and does it first. Maybe hype is just a necessary evil?
>By embed I meant to embed the content; I've heard from quite a few people that they love that they can personalize it with simple CSS.

Well, then disregard what I said. What I wrote was the opinion from an end-user/page-reader perspective, not from the person who'll handle tweak the styling.

>I am not sure if this is a problem from me not being native (I'm Spanish)

I wouldn't be able to tell, not being native myself (I'm Algerian).

>What twitter does is keeping the control+developing their own code, an API/library that HN doesn't have available. And of course I'm now going down the road of asking for people's username/password of the different networks.

Pardon me, but have you looked at this https://github.com/HackerNews/API http://blog.ycombinator.com/hacker-news-api ? I'm sure you are aware Reddit has an API. Again, I'm sorry for failing to see what's the very particular problem to be solved, not being a developer and all.
> Undefined behavior is one of the most intelligent things the C designers did when designing the language.

I agree, actually. They just went too far. Too many things are undefined for no good reason. Even sqrt(-1) is debatable, by the way: if your platform provides an efficient way to trap, it should probably trap, and the compiler should not assume it will never happen.

And if you want crazy optimizations, consider introducing unsafe assertions into the language. That is, arbitrary boolean expressions the compiler is allowed to assume will always return true.
Syria: Another Pipeline War
Since the current Rs 500 and Rs 1000 notes themselves are no longer considered valid legal tender, they'd have to be exchanged for legal tender before they can be exchanged for foreign currency, even the Bhutan ngultrum (it's pegged to the Indian rupee, but that's irrelevant if the Rs 500 and Rs 1000 notes aren't legal tender representing rupees anymore). This exchange process from no-longer-legal-tender to legal tender is what provides the government visibility (and taxability) into any currently hoarded cash pile. You're correct that future hoarding can be done in a foreign currency where the same maneuver can't be pulled off again, but that doesn't provide an escape from disclosing currently-hoarded cash piles. It's also not nearly as easy to hoard large amounts of foreign currency undetected, since large transactions would be visible via the regulated institution that does the exchange (either when converting local -> foreign or foreign -> local)
Different poster.

The Hyperloop is technically possible. It will struggle for the same reason Maglev struggled: It won't be cost effective to build or maintain within the safety factors people are comfortable with.

You really have to look at the history of Maglev because the parallels are considerable. Maglev undeniably works, but nobody is building Maglev systems aside from a few pet vanity projects because High Speed Rail is "Good Enough" and cheap!

Hyperloop takes all of the cost issues that Maglev had and makes them worse. Even if the tube didn't have a negative pressure (just a tube with atmospheric pressure) it would be a cost nightmare, but you add in the costs of building something which can withstand negative pressures and the whole thing is just a farce.

Maglev, like Hyperloop, initially wanted to build on raised towers. But it largely wasn't because being able to escape during an emergency is kind of a big deal, same reason why the Euro-Tunnel is 2x larger than it needs to be to support escape tunnels.

A project like Hyperloop won't ever be able to win against real life problems like bombings, earthquakes, fires, extreme weather, and so on. Or at least it won't within the normal realms of cost.
I'm pointing out that they had the three debate timestamps, and then they added Trump's "lewd comments revealed" timestamp in isolation. No mention of Hillary's emails, or her pneumonia, or anything until just the last few days.
I highly recommend Kim Stanley Robinson's Mars trilogy. Great scifi books about a vaguely realistic Mars settlement, and the cultural/biological changes that occur.
having worked with it, torch is amazing for neural network stuff (thanks to the nn rock); however it raises the same problems there are with Python. Lua is basically a wrapper around C/C++ and whenever you need to do complex stuff, you find yourself writing C/C++ rather than Lua.
http://exchangemynote.in/
I am all for introducing things the correct way, but this example of yours just does not work for me.
Fractions as equivalence classes? or as a solution to an equation. No. That might work for you. In fact I might even argue that it only works for you - the child idealization created by "current you". There are many things wrong with US education. But I do not think introducing fractions using concrete examples is one of the problems. Of course for each his own and in all fairness it is also how the analogy is worded exactly. If I explain 1/2 and 2/4 using pie or pizza slices and ask you how "much" pizza did you get, I think the equivalence idea clears up quite nicely.
Can you share link to their revenues?
Ever been to those "super-awesome-hd-wallaper.com" websites? They are FILLED with ads, popups, etc.

Instead, you can safely download one of the top wallpaper torrent package on Pirate Bay and get thousands of good quality wallpapers.
I am not an expert. But may be, it is only the small time tax evaders that store black money in local currency...So if someone has stashed away his lives savings in a stack of 1000 Rupee notes, this move will force them to pay taxes.

Nothing is still being done to deal with really big fishes. The ones who can really make a difference.

So as usual, it is the middle class and lower that are being forced to pay, while the upper and elite classes still given a pass and the government earns good name in the process..

Rich and powerful still wins. It is business as usual..
India may allow Facebook but it also dodged a major bullet with Facebook's "Free Basics". Facebook could've literally controlled 80% of "Internet" usage in India 10 years from now. So things could've been much worse for them. Here's hoping this still won't happen in some African countries as as well.
And thus a new cycle of Embrace, Extend and Extinguish is happening.
It was done once before also, IIRC. Around the late 1970s. Seems to have worked. I guess it'll work given a long enough time interval, since human memory is short.
Mainlanders actually have to go through a lot of hoops to move to Hong Kong so I am pretty sure you have no clue what you're talking about. They don't even speak the same dialect.

I am pretty sure you had no idea about the mass protests[1] that are ongoing in the past few years either. How can you look at this crowd of several hundred thousand protesters and claim that they are powerless?

Another Tiananmen square probably can't happen again in the digital age. Or maybe it can, but only due to our defeatist indifference.

[1]https://en.wikipedia.org/wiki/2014_Hong_Kong_protests

[2]http://www.bbc.com/news/world-asia-china-30390820
Ah, Project Orion! My favorite example of revolutionary technology that got banned for political reasons.
Not sure if they will do this during the exchange, but technically you can attach your Aadhaar ID to the exchanged sums. That means in one swoop they know who has how much money...
A currency is useful only if you can buy products and services with it. In India, you buy things in Rupees. Tou can't buy Rupees with dollars without an ID at which point the government knows anyway it's probably just simpler to pay your taxes
India abolishes top 2 currency notes of Rs.1000 & Rs.500 overnight
Works in Canada
Are you comparing English searches or Mandarin searches?
IMO that's a pretty good criticism of a language that's supposed to be type-safe, but forces you to break its type safety because its lack of a feature.
In my group's case, it means both. We expect new hires to know C++ for most of our work, but for portability across different architectures C is sometimes still necessary.
Solaris?

The open source nature of it seemed to disappear overnight after Oracle bought Sun, but looks like Oracle's not doing too badly with it. I know there's the Open Source illumos (IIRC) but haven't heard of anyone using it in production.
A minor point, but keep in mind a "100% increase" of 1 is 2.
Same here. I have found that my personality is far more malleable than folks expect -- habits, feelings, preferences.
The US Navy's New Warship Gun Costs $800,000 to Fire
This isn't scary. Presidents have long had opinions which clash with the Supreme Court and have supported efforts to better align the court with public oppinion. For example, FDR did this to get Social Security through.

There's really nothing to stop the Supreme Court from being wrong, from making bad decisions, from having a makeup which does not reflect the liberal/conservative makeup of the US public, and from making rulings down party lines. All of which will cause it to fail to correctly interpret the constitution.

Pretending that none of those things can happen and that the court is infallible for all time is a far more scary thing. Unless you want to bring back Prohibition?

We're talking about two very dubious rulings here, which are in need of being revisited and there's absolutely no harm in doing so. Indeed it is quite normal to do so; the court has reversed many incorrect decisions in the past. They've also upheld decisions. What matters is not that a decision is reached but that the right decision is reached. Unless you think it doesn't matter whether or not the constitution is correctly interpreted?
Nitpick: memcpy is string.h not stdlib.h, the type was uint32_t not uint64_t and you are making some unwarranted assumptions about sizeof(uint64_t), not to mention that the existence of this type is merely implementation defined ;)

Deal breaker: your memcpy invocation requires a sufficiently smart compiler to convert into normal unaligned load on x86 and seems to prevent GCC autovectorization. In this case OP actually didn't want vectorization, but in general it happens that such workarounds confuse compilers and produce worse code.
I hope this move is successful, it is one of the few ways in which a government can force cash out from under the mattress[1] and back into the system. It is also why the US government gets really twitchy around systems of currency that it can't easily monitor, whether it is bitcoin or detergent[2].

It is a temporary fix of course, the question of why the market forces allow the black market trade to exist are the real questions that need to be answered.

[1] "Under the mattress" being the euphemism for holding on to your cash instead of putting it into a bank.

[2] http://www.theatlantic.com/business/archive/2012/03/why-are-...
I was a fan until they started timing releases to achieve political and vindictive goals.

"Information should be free, (and not a weapon)." Was the motto of the cyphers before this s-show went down. Without that moral high ground, what's left?
In India USD is worthless. I don't know why people would use other country's money unless their own economy is under heavy stress like Zimbabwe or Colombia.
Sorry, I just read the title and commented.
The core of his point seems to be that Elm almost provides you with a strong type-safe way of building a select box. But it stops short by not allowing you to enumerate the values in your type definitions. Since you can't do this, you have to create a regular list with those values in it, which both breaks DRY principles and prevents the compiler from fully validating your code (which is basically the whole point of Elm).

Now, all that being said, i'm not familiar enough with Elm to know if he's actually right or if there is a better way to do what he wants. But that is what I think the crux of his point is.
I stopped using Airbnb when I realized that most of the units I was booking were just hotels and guesthouses, and I could get a huge discount by just booking via their own website. Especially if you are visiting a tourist town or a big city, Airbnb is generally a waste of money.
The new bills have yet to hit the streets, and the old bills don't count as long term stores of value. So, for a little while India is arguably 'without' Rs 500 and Rs 2000 notes.

Basically, they are no longer bills but checks with expiration dates.
Probably. I would wager modern information diffusion means they'll become less and less common.
>The Dictator's Handbook

Author shows poor understanding of real world politics and cheap writing. The type of people who read such books are ones who read The Prince and believe themselves politically educated.
Ah, I was on mobile and it made a very different impression there for some reason. Thanks for pointing it out.
What a sham. The twitter feed reveals things far beyond using "material given to us."

It's a shame the platform brought sunlight on a deep dark secret has become a platform for someone to desperately try and influence an election out of complete self-interest.

For me, anything in the future revealed by wikileaks will be under an aura of suspicion and disbelief.
Google Cloud opens Tokyo region
I think you're confusing EdgeHTML with ChakraCore.
Zoomer (YC S14) is hiring DevOps engineers for our globally distributed team
Not possible and also useless. Govt has not made any statement about it either.
I like this. But I would never learn that I like it from that main page you linked - it's completely content free (unless you know it already, then you can find some stuff there), its only pointer to more (a button!) leads to no extra content, and it is not clear at all where to go from there.

That overview, by the other side, is very interesting.