skysight-inc/HackerNews huggingface dataset:
The Perl 6 student begins:

sub add(\number1, \number2) { number1 + number2 }

If you call `add` with simple numbers it works:

say add(1, 2) # 3

Other types of number too:

say add(0.1, 0.2) == 0.3 # True

It works even for newbie definitions of "number":

say add('0.1', '0.2') == '0.3' # True

A sufficiently determined newbie can of course break `add`:

say add('foo', 'bar') == 'waldo'

The program stops with a suitable error message ("Cannot convert string to number ...").

----

The student moves on to a more advanced course...

----

Type annotations are introduced:

sub add(Numeric \number1,
Numeric \number2) { number1 + number2 }

Everything still works as expected:

say add(1, 2) # 3

But we get better error checking:

say add('foo', 'bar') == 'waldo'

This generates a compile-time type-checking error ("Calling add(Str, Str) will never work with declared signature (Numeric \int1, Numeric \int2)").

So, reason 1 for using types: get type-checking that catches errors at compile-time.

You can use native types for closer-to-the-metal speed (compact representations, no automatic overflow checking, etc.):

sub add(num64 \number1,
num64 \number2) { number1 + number2 }

`num64` corresponds to C's double float datatype representation. This sub will likely outperform the versions of `add` that do not have natively typed parameters.

A third reason for explicit types is to take advantage of C interop:

use NativeCall;
sub add(int32, int32) returns int32 is native("calculator") { * }

If you've got a local C library (called "libcalculator.so" or somesuch) then this:

say add(1,2)

will call the function with the symbol name `add` in that library.

And so on.
I'm going to get flack for this, certainly in this discussion, but... seriously? What is this obsession with cloud IDEs?

The reason you can't convince me is that nobody has ever been able to explain in clear terms the benefit or the point of using a cloud IDE.

A cloud IDE presupposes excellent uninterrupted connectivity. Guess what? I often work on the move and often don't have that.

I'll admit that keeping Visual Studio service packed can be tiresome but this irritation is vastly outweighed by the fact that I can use it on the move. Likewise Sublime Text, or WebStorm, or whatever. And it's not as if software updates can't be solved in a different way (Chrome, Firefox).

For me the combination of a locally installed IDE with a distributed version control system still offers the best value prop for working portably.

I'm not saying a cloud IDE is always a terrible idea but, after 4+ years of these things, I still don't really get the appeal.
Balsamiq Mockups is great for prototyping/mockups: https://balsamiq.com

For random data, you can use something like https://www.mockaroo.com
https://www.quora.com/Why-does-the-European-parliament-move-...

Most of the Parliament would like to move the seat to Brussels because most other European institutions (notably the Commission) are there, but France would not agree to give up the Strasbourg seat.

https://www.euractiv.com/section/future-eu/news/auditors-put...

Every year, the European Parliament meets for 12 four-day part-sessions in Strasbourg and six additional two-day part-sessions in Brussels.

Roughly €114 million is spent every year to move the European Parliament between its Brussels and Strasbourg seats every month, according to a new assessment by the European Court of Auditors. EurActiv Germany reports.

:(
Are you serious? Have you ever tried starting 20k threads?
Founder of https://jidoteki.com here - we provide the ability to go from SaaS to On-Premises in less than one week[1] as well, without the need to jump into Docker.

I think ReadMe's approach is pretty good, and I applaud them for making the move.

Our aim is a bit different from others, as we focus exclusively on "actual" on-premises (local virtual machines), as opposed to "on someone else's premises" (AWS).

[1] http://blog.unscramble.co.jp/post/128610241043/production-re...
https://news.ycombinator.com/item?id=12746378
Yeah, I've been browsing hacker news for about 3 years actually, but never felt an impulse to comment until now. Helps that I've entered a more political period of my life recently.
> But there's a neutral General American which a majority(?) of Americans speak, with very minor variations.

So this was actually the kind of thing I was hoping to address with my comment. The idea that there's a "neutral" accent is, linguistically speaking, nonsense. That said, there probably isn't too much harm in it, in that if you're an American talking to other Americans there's probably not much ambiguity.

The problem is more that it could create the mistaken idea that, say, "General American" is somehow "normal" and therefore anybody speaking with a different accent becomes "the other", for whatever that may mean. It becomes a reference point to judge other accents against, when that's not necessarily helpful.

And there's a lot of accent prejudice out there... ask anyone who's gone for a job interview, for example, who's been very well-qualified but has an accent that the interviewer didn't expect (this can be due to regional or social backgrounds, or even gender – e.g. so-called "valley girl speak"/high rising terminal). Just something worth thinking about, that's all. I know I've dismissed someone before off-hand based on how they sound, which is not a good thing, and something I'd like to be more aware of myself.
Zapier has a built in lock in in their business. Once you get workflows running why move them over to a new service.
You can follow us at http://www.nodecode.io. It is a flow based programming platform written almost entirely in c++ that runs completely on your local network but you can connect to it using a secure websocket from outside your NAT. It is still early for us and we are still working on adding micro-services but the Raspberry Pi GPIO, Insteon, Twitter and basic remote command line services seem to be working well.
I will make sure to check in with you over the coming months and years to assure you I'm real :)
I don't think there's any way to do something like that on OS X. Nor do I think it would change anything. The Touch Bar is controlled by the app with focus, not by its parent process. Process parent chains AFAIK have zero effect on communication with the Window Server (which is presumably how the Touch Bar APIs work).
There are some pretty neat solutions to this. One of them involves a double layer ballot+receipt. When viewed on top of each other, they spell out the vote, but alone the receipt will just give you enough information to see if your vote is counted or not:

https://people.csail.mit.edu/rivest/voting/papers/Chaum-Secr...

Not sure it beats paper ballots and hand counting in terms of practicality, though :)
Standardization of the cloud is what http://www.ucxchange.com is working on out of Chicago. It's an interesting model that I was shown recently.

The basic premise is that with standardization of hosting environment platforms an exchange is able to offer their customers a multitude of vendors who compete on price and will have the same features within their environments.

The most interesting opportunity with this is for resellers of cloud computing who can sell compute resources to customers at full price but only pay the exchange based on what they use. It won't last long but if it works resellers will make a fortune migrating customers from big names like Amazon to other big names like IBM through UCX.
What you describe is not the "RPG idea" I was describing. It's literally the opposite. I was talking about using the Touch Bar the way the HIG recommends, putting buttons on it that do the same thing that you'd otherwise do with buttons on the HUD or keyboard shortcuts. I was absolutely not suggesting that you should have controls on the Touch Bar that are only accessible from the Touch Bar.
And BMW recently, with the i3 EV w/ REX range extender (ICE w/ 2 gallon gas tank)
What would be wrong with a voting machine assigning you a UUID that you can print out and verify your vote on a website where everyone else's 100 million votes are displayed?
> Because we’re stuck with it.

> We’re all stuck with it.

> Stuck with JavaScript.

> Forever.

Save us wasm!
> Clinton's popularity is so low that she can't fill the venues she campaigns at yet Trump regularly fills them to max capacity (and then some)

In case anyone doesn't realize it, this is a parlor trick that anyone with an audience can do. Just book a venue that's too small and oversell tickets by way more than the expected percentage of no-shows. If you're feeling especially ambitious, accuse the fire marshal of having political motivations for enforcing the capacity [1].

[1] http://www.latimes.com/opinion/op-ed/la-oe-mcmanus-trump-fir...
>Similarly I have met divorced men who opt for brothels in place of pursuing other relationships.

This is probably exactly why brothels are highly illegal in most places. Can't have people disrupting the social order...
Ionic 2 Teething Issues with Rollup.js
Lightning was first, there is a vibrant ecosystem in place around Made For iPhone accessories that use Lightning that a lot of existing iPhone users already own, the Lightning port and connector are smaller than USB-C which is probably useful in a few places (I saw someone suggest somewhere that the Apple Pencil wouldn't even be able to fit a USB-C connector), someone else also said that Lightning was designed to support the weight of the iPhone in a dock configuration but USB-C probably wasn't, etc. And there's not really any benefit to switching to USB-C besides being able to re-use Android chargers, which isn't something that Apple or most of their customers particularly cares about.
40 charts that explain money in politics (2014)
It's supply side. https://en.m.wikipedia.org/wiki/Energy_subsidies
The CEO of Diebold Election Systems in 2004, where GEMS came from, was Walden O'Dell, who was also a fund-raiser for the Bush campaign at the time.[1] "I am committed to helping Ohio deliver its electoral votes to the president next year" wrote Mr. O'Dell.[2] He resigned in 2005 after being indicted for securities law violations.

That's probably when this feature went in.

[1] http://www.sourcewatch.org/index.php/Diebold_Election_System...
[2] http://www.nytimes.com/2003/11/09/business/machine-politics-...
Is it not possible to tell from the MX records if it's a G suite backend?
Ask HN: Comercial software protection
As a side project I developed an application which update after update turned out quite nice.

Since I know it fits a niche market I would like to make it comercial ($50) per license.

However what bothers me is the protecion.

What type of protection can I use that:
1) does not use a dongle
2) should not take more than 2 months to implement.

I'd like if you pointed to materials to read and implementations examples.
For me the trade-offs don't bother me, aside from the RAM, but that's not a deal breaker. My preference sees to run contrary to the HN crowd, however. Having only USB-C is great; I can't wait to ditch Schrödinger's^WUSB-A soon enough. The butterfly key switch don't bother me, either. I bought a mechanical keyboard a few years ago, which I still use, but it doesn't feel that much better than the "free" bundled keyboards. Guess I'm just not picky. As for the price, yes I wouldn't mind if it were lower, but I do well enough that I can afford it (and I'm far from being a "10x" engineer, at least income wise). Besides, I hang on to them practically forever.

I have both a 15" 2011 MBP and a 2016 12" MB, and prior to acquiring the latter I'd also thought thin & light didn't matter to me. Yet I find myself using the latter more and more, for seemingly trivial reasons like being able to comfortably hold the MB, open or closed, with one hand, freeing my other hand to e.g. open or close doors. Having a free hand means I don't have to carry it with my carrying case--I could just grab & go--so I take it with me more often.

Of course, the MB is significantly slower, so I'm less productive in some cases even when I have it. The lower (logical) screen resolution is quite annoying, too. I occasionally run it in 1:1 mode until my eyes couldn't take it anymore. I'll probably get the new 15", but I'm hoping that the 13" is fast enough for me, because now I don't want to give up the portability.
This is the assange/guardian/greenwald law.

So they can jail journalists as terrorists and hunt their sources.
There's plenty of women who prefer "older" guys, but that means something like 5 years older, and no more than 10. The extra maturity is attractive to the woman, and women seem to become emotionally mature faster than men.

But that still means that if you're 50, the best you're likely to do (unless you're rich) is a woman who's in her early 40s, and that's really too old to have kids without assistance, and you'll run a greater risk of Down's.

Even if you're really rich, the 20-something girls who'll want you are going to be materialistic airheads, and will get boring pretty quick, and will not have any real feelings for you.
Really hard to see the defensible "moat" in the business models of these delivery companies. As the article says, Uber uses its balance sheet as its weapon, but the flip side of that is it will be hard for any new investor to get much of a return in any future round -- its hard to see its defence against a disrupting competitor. Even Lyft, which looks weaker, easily scoops up the same drivers as Uber.

All of which means it's not clear if this is a difficult fundraising market or not. It certainly is for these undifferentiated delivery companies, but for tech startups? Not seeing it yet.
I had problems with terrible KVMs until I got an excellent AdderView PRO DVI a while back. I bet their displayport KVMs are good as well.
Because then party goons / your employer / cops
demand your UUID, check your vote, and beat you / fire you / arrest you if they don't like it.
>And Trump may not believe in our current wars right now, but he has given many indications that he'd be willing to use nuclear weapons against enemies who don't have them, and to encourage our allies to develop their own arsenals, so I'm not getting a sense that a more peaceful world is his priority.

If your enemies know you are willing to use Nuclear, they will not attack. If they won't attack, then there will be no war. No war = peace.

>...he has given many indications that he'd be willing to use nuclear weapons against enemies who don't have them...

He said "as a last resort." In other word, if America is about to go down, he will use Nuclear to save America as a last resort.

If your enemies have nukes, and they are willing to nuke you, and you are not willing to nuke them back, then they'll just nuke you to bits, because they know you won't nuke them back. Remember, just because America is a good country doesn't mean that North Korea is also a good country. North Korea will not think twice about nuking America if America is not willing to nuke them back.

>...encourage our allies to develop their own arsenals...

Go read the Theory of Nuclear Deterrence. Nuclear Deterrence prevents war. It encourages countries to solve their problems through other means, instead of through war.

Trump just wants peace. And he understands how to get it.
Which Diebold tried. They lost.[1]

[1] https://en.wikipedia.org/wiki/Online_Policy_Group_v._Diebold....
Trump is absolutely crushing Clinton in attendance at campaign events.

http://www.thegatewaypundit.com/2016/10/no-joke-hillary-rare...
When ballots are not secret, they can influenced by social, political, or economic actors through punishment and reward. For example, voters in many places used to face extreme peril if they voted against the candidate picked by their social group, party, or union. This peril ranged from reduced social standing, to loss of employment, and even physical violence. As such coercion is contrary to the democratic objectives of an election, secret ballots were introduced to ensure ballots represent the free will of the voters.

There are mechanisms by which one could both keep the ballot secret and allow a public tally. But to avoid hacking, like the floating-point vote-value in GEMS outlined in another story, the system does require bullet-proof crypto.

Regardless of how the ballots are counted, I do believe there should always be paper backups, scanned, and filed so that citizens can examine them digitally and in person if necessary. With that system one could spot-check any suspected irregularity. Only with such physical redundancy would I trust digital voting systems at this point.

Sometimes there's no substitute for good old dead trees.

https://en.wikipedia.org/wiki/Secret_ballot

Article 21.3 of the Universal Declaration of Human Rights states, "The will of the people...shall be expressed in periodic and genuine elections which...shall be held by secret vote or by equivalent free voting procedures."[19]

Article 23 of the American Convention on Human Rights (the Pact of San Jose, Costa Rica) grants to every citizen of member states of the Organization of American States the right and opportunity "to vote and to be elected in genuine periodic elections, which shall be by universal and equal suffrange and by secret ballot that guarantees the free expression of the will of the voters".[20]

Paragraph 7.4 of the Document of the Copenhagen Meeting of the Conference on the Human Dimension of the CSCE, obligates the member states of the Organization for Security and Cooperation in Europe to "ensure that votes are cast by secret ballot or by equivalent free voting procedure, and that they are counted and reported honestly with the official results made public."[21]

Article 5 of the Convention on the Standards of Democratic Elections, Electoral Rights and Freedoms in the Member States of the Commonwealth of Independent States obligates electoral bodies not to perform "any action violating the principle of voter's secret will expression."[22]
Not even close to my point.
It's an entirely new approach to software, when the hardware manufacturer tells you that certain software"is not allowed". No longer a general purpose computer.
Systems that provide receipts effectively do this. There are some details to ensure that the receipt/verification system doesn't reveal the actual vote to prevent vote selling or coercion. See ThreeBallot[0], Scantegrity[1], and Prêt à Voter[2] for examples.

[0]: https://en.wikipedia.org/wiki/ThreeBallot

[1]: https://en.wikipedia.org/wiki/Scantegrity

[2]: https://en.wikipedia.org/wiki/Prêt_à_Voter
“Typesetting”: Linotype Newspaper Layout: How Mechanical Typesetting Works
Shepherding Random Numbers
You need to hire a dev that actually knows Racket. Companies already have JS programmers around because they always need to build a front end.

Just compare mobile to desktop. Apps abound in mobile because the extra performance inefficiency actually matters enough that it's worthwhile to put in the engineering effort; on desktop the web app is feature-rich and fast enough.

There's a reason people use FB in a browser on desktop but the app on mobile.
If stripe people are around... Consul has a DNS interface built in[1], but I get the impression you're not using that... are the DNS servers in your setup just mirrors for the consul one?

[1] https://www.consul.io/docs/agent/dns.html
The tires look so skinny -- is the handling really "great"? Or just snappy?

Tire sizes: Front: P155/70R19, rear: P175/60R19
I'll be willing to help with facing engineers directly with docs.
> have an OS try to muck about with encodings

Hardware encode/decode often requires DMA capabilities. There are many optimizations that kernel mode can bring.
Some comments feel almost troll
Maybe worried. I looked at IFTTT a few times and came back with "I'd like to use that, but I need a filter / processor in between". I suspect there are more people like that.
In the case of tweets, they redirect based on the ID and not the username so those links at least would endure.
> Have you never worked with people whose company you enjoy?

Are GIFs a necessary component of this?
The machines San Mateo County uses do that. After you've made all of your selections, your votes are printed on a paper roll which appear behind a window, with a big bar code at the bottom. If you approve, the paper is wound out of view so the next voter can't see it. You can reject the printed version and go back, in which case the paper is marked with CANCELLED or something similar.

At the bottom of each voter's paper roll entry is a big bar code. This allows quick recounts by running the paper roll through a machine that reads the bar codes. A full manual check is also possible, but slow. The system goes through miles of thermal paper for each election, but works OK.
Yes, it was called "NeXT Cube 040 Turbo with NeXTDimension board" and it had a Motorola 68040 @ 33Mhz, with a hardware accelerated NeXTDimension board that could run 24bit or 32bit color and had a dedicated i860 or i960 CPU running the Display PostScript interpreter on the card itself.

I think, you could take such beasties all the way up to 128MB RAM.
Cool. For even more privacy, you could generate the PDF client-side.
Passion comes from having interest. Interest comes from noticing particular facets about something that amuse you, perhaps because they are mysterious or perhaps because they give you pleasure. So if you want to become passionate about something, search for aspects about it that amuse you and focus on those things. That's not the whole story, but it's a start. It's worked for me at least.
If you are authenticating all the time to a sync server or a certificate granting server than that ends up being the real login process.
Re the bias bit, I do keep checking the featured section of the Firefox extensions. For the longest while, it's been YouTube flash-html5, YouTube all html5, chatzilla, multi links plus. Oh and Gmail notifier.

The chrome extensions on the other hand.

Speedtest, sharepad (notepad extension), an extension to search for any spoken word in a video (nice!), an extension that highlights vertical rhythm in a web page (cool). I wouldn't say they've seen a lot of variation either but they have some cool tools and that's just the extensions.

I do get that I'm probably seeing announcements only on chrome related stuff though. But I wish Firefox would make up for it by tweaking their store to help us find fresh stuff.
You don't need that many photons for a diagnostic imaging machine since they typically use hard x-rays (20-70 keV) that are very penetrating.

Very soft x-rays/EUV is amongst the hardest regions in which to work as the photons are just the right energy to be strongly absorbed by most materials, so as the article states, losses to the optics are significant, i.e. you lose ~half your photons in every mirror.
Thanks for the book recommendation! I'll add it to my queue, for when I finish Abaddon's Gate (The Expanse, BTW, is a pretty solid sci-fi series, although I think I'm ready to take a little break after three books in a row.)
wait a minute... the President is communicating on a private server account? not via a "secure" government server? someone tell Comey quick so he can write another letter to Congress revealing this madness. We still have a week left.

I wonder if any other government employees are too. I wonder if any are passing classified info thru them, especially in DM's.
But these new factories are all located in Mexico. So that's a huge problem for these American people who are not in Mexico.

Shouldn't these new factories replace the old factories in the same town?

Otherwise, Obama is just talking bullshit again.
The original claim for electronic voting was that it provided better support for handicapped/blind people.
Congrats! Always great to see first time apps. Keep on learning and building, and always share what you make with this and other communities. :)
I managed to break the tool by inputting some infeasible inputs and then changing them again several times, and then refreshing the page.
Regulation. I live in China since 2010.