skysight-inc/HackerNews huggingface dataset:
Hey there, Jemaclus! You are definitely welcome to submit a PR that includes the RNG as a multiline function. I'd merge it but I'd also keep the single line version.

Why?

Generally, I'll prefer code that can keep it's useful functionality within 5 lines, and this does.

Is the line "too long"? Not to me. My rule of thumb is if it is more than the width of Github atom editor on a non-handheld screen then it's too long. On my laptop it's 132 chars, but fits. Maybe another way to say it is, 140 chars or less, but I haven't decided about that!

And also, it's not disingenuous because, and this may be hard for you to believe but, I didn't actually write the rng as a multiline function then minify it. I'm good at writing RNGs, and I literally just wrote it on 1 line, tweaked in til it worked, and cut spaces. You can see history, here: https://gist.github.com/dosyago-coder-0/094497fdda0dbd7ef7f6... and the first change with the RNG is my first try, but it had some typos. The rng might look complex to you, but it's not. In my experience, it's a very simple generator, just looping endlessly over a state update function that uses xor, add and shift. I'm good at writing RNGs and I've had a lot of experience passing dieharder / practrand / smhasher etc. So it's easy for me to write an okay so-so "rng", in 1 line, like this. Impressive, right? To you, it seems like it had to have been / should be a multiline function. But to me, I'm fine to write it as a concise 1 liner, because I have more experience and aptitude at writing RNGs than you. That's all.

And I want this repo to be about that. People shouldn't have to dumb down their own code so everyone can understand it at first glance or agree that they would write it in the same way. The files ought not be constrained by 1 style, but everyone is free to have their own contribution, within some limits. The main ones being: it works, and it's 5 lines. This is not "code golf", and we're not trying to obfuscate, just keep it in 5 lines. Ultimately, I'll be the judge of what's too complex or not, and I'll make a note on your PR if I reject it. Meant to be a celebration of diverse styles and thinking, in concise little packages.

If you have some you feel are impressive, hit me up with a PR. I'd love to merge them in! Any language, py, java, whatever. Keep it coming :)

My ultimate aim is to make this a useful resource, and maybe an object of curiosity. Something people can browse on a Sunday afternoon, not too taxing, but maybe a place you can discover / get inspiration for some interesting code in a tiny package. I think keeping them 5 lines or less makes it easier to digest, and maximises the chance you can actually get influenced by some new way of coding or thinking that someone else does -- or just find a useful util. Anyway, I thought it was fun to do last night at 3 am, so let's see what happens. You and everyone are welcome to join in. Don't be shy with your good utils!
Data Science and the Imposter Syndrome
Genuinely curious as to what the questions are like... "what is the default constructor for X library object" type?
I'd be fine with Gutenberg being delayed until next year if this means a switch away from React.
Primer on Neural Network Models for Natural Language Processing
They are not useless: they record when git used its fallible automatic merging logic to reconcile changes in two different branches. It works most of the time, but you really want to keep a record of it for later troubleshooting.

Have a look at https://github.com/git/git/blob/master/Documentation/merge-s... to get some idea what is going on behind the scenes in automatic merges.
I know people who work with trains. They have truly awesome mechanical systems but cobbled together to IT systems they weren't qualified to program and as awful as you'd imagine and more - undocumented and unpatched.

On the other hand management takes a complete 180 view to their stuff because a train derailment is extremely serious from a profit point of view, costing into the millions, and not so rare that they've never seen one.

It ends up in a real weird jumble of still not acknowledging or patching anything but also being super serious about everything else like the hardware and train maintenance.

I guess it's easy to point at a failed break and say that's the cause but WannaCrypt didn't cause any trains to derail.
According to the website they use the BiDAF model, which as a single model does not produce state-of-the-art results on the SQuAD benchmark. It is ranked 27th here: https://rajpurkar.github.io/SQuAD-explorer/
this is a narrow view based on someones versioning habits , the point of rebase can also be a solid linear history that allows multiple teams to fork and pull request features between forks. If developer chooses to play merging inside his own repo, fine but as soon as you have large teams working on their own you will end up in merging hell between developers and teams.

say team a does 58 commits per day has 75 team-members and team b has 126 members that are doing 187 commits per day and there's team c, d , e .... n giving non conflicting input to your codebase.

the flow in this case would be to always rebase developer specific features on non-conflicting codebase before you are allowed to pullrequest your changes to central repo. Rebasing to master or to any feature branch developer needs to work will allow them to see any conflicting changes they have made directly in their repo (rebase conflicts and a way to solve those as they know what conflicts, they have introduced the conflicts) instead of merging it together and finding out that the repo they need to PR this stuff will utterly fail cause they are lagged behind or several developers have changed the same files.

in this case rebase flow brings the shit to developer to handle and gives them knowledge that it will break. This mainly happens cause they are not having the latest version of code whereas merge strategy will merge in the conflict and send it to others to discover that thy can't merge any more cause of other developers conflicts.

Merge strategy is not suitable in case where code is edited rapidly daily and some features take , weeks, years, are to be included. Whereas rebase strategy ensures that every developer will always send you changes that are not conflicting with up to date version of whatever is versioned.
True. And Ryanair have the youngest fleet.
If you want every commit to compile then have your CI system check this; no need to blame a useful tool.
And aren't there tax advantages too?
Paying them a premium is not precisely accurate.

A $100,000 lottery ticket would in the US involve 30-45k in taxes for an unmarried person.

So I bet it would probably sell for around $75,000 cash up front, which is a decrease from the sticker price.

But if I was the winner, I would treat it as extremely shady and probably just go the legit route for almost any price.

The US banking system easily detects large cash deposits under 10k even into bank accounts, and then confiscates the money.

And I don't really want to keep $75,000 cash in my mattress.
The major usecase I have for rebase is code review. If your code review stage happens at the point of merge/rebase/whatever into master, then rebase allows you to present the feature changes in a digestible way for the reviewers (split up into nice individual commits that make sense individually and are small enough to read and review without too much effort). The classic open source "send patches by email" workflow works this way.

The author is correct that a rebase may require resolving conflicts; but then those conflicts need resolving anyway if you choose to merge instead. It is also possible to miss a "semantic conflict" that doesn't make git complain but produces a commit that doesn't build -- you can put in tooling that checks that each commit builds individually to avoid the "oops, bisect on master isn't much use" issues.
Doom coming to Nintendo Switch this holiday season
> It is almost in the same line of thinking that infants are not capable of feeling pain and why some operations on them were done without anesthesia

While that sentiment is certainly a part of medical history, there's a good reason why many procedures on infants are still carried out without anesthesia today. Infants are fragile and most forms of pain relief we use on adults are simply too dangerous for infants. Any anesthesiologist will weigh the benefits vs. the risks for each particular procedure and for infants that ratio is considerably different compared to adults.
Yes. You've hit the nail on the head. They'll have such a tight bureaucracy on patching that it's impossible (which is an IT problem in their eyes) but the second a senior manager says just do it - its quick and painless.

I see this over and over again everywhere.
Are german federal states allowed to have their own intelligence agencies?
I don't know what the average person's FB experience is like, but yours sounds very different to mine. I rarely get fake friend requests.
"We want spare time projects that become amazing that people care about, not more half free/half enterprise stuff."

Amazing projects require huge amount of effort, experimentation and time. Once in a while there is something amazing that can be cranked out fast. Very rarely.

That is why you see half enterprise stuff. You can't spare time 40 hours a week, year long, five developers (includes organizational and design and marketing work) large awesome project. If you would attempted, your people would likely loose real jobs (due to low performance) and damaged their families over it.
Watching Larry Ellison Become Larry Ellison (2014)
I travel a lot plus mostly live in a different place than i originally grew up with, so moved quite a few times, so have plenty remote friends.

Still i dont miss it and i never felt i should get another FB profile. Even thought i dont had one the last 4 years.

What i am trying to say is that you most likely wont even know how irrelevant FB is for you life as long as you hold on to it for whatever reasons.
Bookmarks and browsing history are not separated by Container Tabs. So, it will sync both personal and work bookmarks, just like it would without Container Tabs. The idea being that you look towards the internet like several users, but on your end it still behaves like a single user.

If you do want bookmarks and browsing history separated, then yeah, as the other guy said you'll want to use classic profiles. Easiest way is to type "about:profiles" into the URL-bar and then the rest should be self-explanatory. Another (scriptable) way is explained here: https://support.mozilla.org/en-US/kb/profile-manager-create-...

And then you'd create a second Firefox Account and give each profile a different Firefox Account to sync to.
I've requested it be removed or deprecated from DDG's results, and strongly encourage others to do likewise.
My family were not nearly millionaires when we bought a $1500 equivalent computer in 1982, but this phone costs less than that. And a iPhone X isn't a phone, it's a computer. I agree you do need to be in an upper tier economically to afford one, but only speaking globally. People bought plenty of laptops when they averaged well over $1000.

The way phones are financed makes them much more attainable, also. The way people will get that $1000 phone today is paying $2-400, and then $35 a month, folded into their phone bill, for 2 years. That's reasonable for anyone with decent enough credit to get standard wireless service. Not most of the US population, perhaps, but definitely the same demographic as the people already buying $800 Samsungs or previous iPhones, which is tens of millions of people.
Seems you have a failure of imagination. I'll try:

When did you last unlock your phone without subsequently looking at it?

Seems to me FaceID removes the need to first unlock, then use phone. New way is: just use phone. So I expect FaceID to be faster to use.
Thank prop 13 for that.
Well, if properly restricted to criminal fraud, it does make sense to me?
Ok, if your set of changes is too large to review in one piece, and you put in the work of refactoring your changes into a speedrun-style best possible history so they are cognitively review-friendly, I grant that this is a valid use case for rebase.
Though erasing the real history is still a serious drawback, and the unit of code review is still too large. Not many projects work like this, however.
Facebook Has Told Mueller More About Russian Ad Spending, Source Says
As an aside, it's funny that text messages can now be considered "old fashioned".
Philippe Starck: bezel-less screens will be the end of phone design
> What I have found that everyone uses facebook to post stuff about themselves and voice their "important" opinions on stuff.

I have got the very same impression. It ended up like a huge ego driven circle jerk. Most "communication" happens passively (likes, post emojis, passive comments, shares). And barely anyone is even interested in provided OC.

Its a sad place these days
Breakthrough Intelligent Life search: 1.1-9 GHz observation of 692 nearby Stars
As a counter point to the article and most of the comments on HN, I like Facebook don't find it makes me feel bad. I suspect that in the studies showing a correlation between feeling bad and using Facebook the causation goes the other way. People who don't have enough friends and social life in the physical world both feel bad and go on Facebook as a substitute. This would be a simpler explanation for why they have 2bn users and growing - people like the service.
lmao, I love HN comments.
> So tell me why don't multinational companies pay less to their American engineers, the same as their Canadian engineers?

Because their American engineers would get better offers from other companies and leave?

I think it's pretty simple: Canadian companies feel like they don't have to pay American market rates for people, when Canadian market rates for the same position are much lower. They can't do this AND complain that employees are being poached by American companies who pay them more.

Either accept that by paying "market rate" in Canada you're in real danger of having employees leave to work in America, or pay your Canadian employees an equivalent salary to what they would make in America and they're far less likely to jump ship.
Super-Speeds with Zero-RAM: Next Gen Large-Scale Optimization in Your Laptop
Clarance Jones http://archive.boston.com/business/articles/2011/11/05/frequ...

TL;DR - Audited by IRS but had 200 boxes of losing tickets & records in storage facilities, which the auditors apparently didn't want to search through. He ended up winning his defense against the state's tax claims as well.

How does he win so much? Is he psychic?
You're generalising a lot about the motivations of users and non-users.
Snapchat Launches New Bitmoji Feature with Avicii
Tifa – A modern flask scaffolding
> Graphs of non-linear history, “train tracks”, can be intimidating. They certainly felt that way to me to begin with, but there’s no reason to be scared of them. There are many magnificent tools that can analyse and visualise complex Git history, both GUI- and CLI-based.

It's a pity the author doesn't mention some of those magnificent tools. Some tools I know/use:

CLI: tig
GUI: gitg, qgit (Linux)

Any others?
Probably just caught a lucky break when they didn't want to search through the 20 boxes of duds he bought from 7/11 for less than the cost of paper ;)
> “These electronic media searches have produced information used to combat terrorism, violations of export controls, and convictions for child pornography, intellectual property rights violations and visa fraud,”

One thing people don't realise is that it's very difficult to be completely sure that all the data cached in your device is completely legal in every country. The best is to travel with wiped out devices and load them on the other side.
I've heard other people make the same point, and I don't understand it. Why did you feel obligated to create content? A lot of the time I've used it, I've personally been happy just seeing what other people have posted.
Last Night(Short Films)
By rewriting commits and using `git rebase -i`, `git commit --fixup` you can avoid the garbage and still have smaller commits that passes tests and are easy to review.
Magit (fantastic Git mode for emacs) is running a crowdfunding campaign
Unfaithful (Short Film)
UAE Top Brands
It breaks some webpages to do that and Mozilla unfortunately can't always just put user privacy above all else, because then webpage owners have little incentive to test their webpage in Firefox, as they'll make less money if they can't invade user privacy so much anymore.

Tor Browser has essentially what you described, so it's not the case that resource usage would be problematic.
Metadata Indexes and Queries in the BeOS Filesystem
The No Bullshit Guide to Linear Algebra
https://gumroad.com/l/noBSLA#
> "That laden false dichotomy died a long time ago. At best, one can speak of "short term pragmatism" vs "long term pragmatism"."

In general yes, but not in this case.

There's very little practical difference between free software and open source. Both have access to source code and freedom to distribute/modify/use that source code at their core. For the most part, the rules built up around open source and free software only have a practical impact on how it interacts with non-free software. So for example, having binary blobs in the Linux kernel. Note that whilst the Linux kernel is GPL2, it's still run as an open source project. Regardless of whether a project uses a free software licence, it's the ideological approach to non-free software that splits free software and open source.

You could argue that binary blobs in the Linux kernel are a case that can't be described as long term pragmatism, but what's the alternative? That the device without a free driver goes unused until it has one. It could be argued that the existence of binary-only driver releases hold back the long term goals of free software if they take away the desire to write free software drivers, but we can see that people still want free software drivers regardless. Nouveau is a good example, it's a project that's been going for years with almost nonexistent assistance from NVIDIA, and has never matched the performance of the closed source NVIDIA drivers, but people still continue developing it despite the obstacles, and people continue using it despite the lower performance. If short term pragmatism damaged long term pragmatism then projects like Nouveau most likely wouldn't exist, as it's hard to argue against the fact that the NVIDIA closed-source drivers are the superior choice in the short term.
But then a huge chunk of the smarts in e.g. Google Docs is in the JavaScript you're executing locally. Just because you download the code at runtime doesn't change the fact your device is doing a ton of local computation to make that application work. A lot of web apps like that are actually local JavaScript apps with a relatively dumb web storage backend. Then again I mainly use google docs using the native app on my iPad.
I stopped logging to Facebook years ago. I also haven't had much any interesting long-form online discussions in years and I miss them. Several people I know say Facebook comment threads and a curated friend group are just the sweet spot for them now. Still not going to log into Facebook, but I think there's an axis where my life is worse for that.
In an attack where DNS and CAs are compromised, immutable caching is going to be be least of our problems, frankly.
> open the pandora box of consent under 18

I see everyone's forgotten Jerry Lee Lewis and his (AFAIK perfectly legal at the time in that state) 13 year old wife. http://www.dailymail.co.uk/tvshowbiz/article-1021569/Great-B...

Now, we are rightly wiser in the 21st century and have almost entirely done away with child marriage. But I would say one key principle is believe the victim. Which cuts both ways. It makes no sense to pursue a life-ruining prosecution of a minor if the alleged victim claims (un-coerced) not to be a victim. There are plenty of nastier cases out there to spend scarce effort on.

Not to give people a blank cheque if they happen to be under 18, either: the treatment of unsolicited underage genital pics should be a lot more serious.

Conversely the long-unravelling scandal of UK entertainers abusing children comes from not believing the victims at the time, or constructing an environment in which they were met with extreme hostility for coming forward. This led to a "missing stair" environment, where lots of people suspected that Jimmy Savile was an abuser but he was able to get unsupervised access to children to abuse.
But you're not the winner, and among winners, there are some willing to do the deal for some price.

Even you. For example, you wouldn't want to keep $75K in your mattress. Would you keep $100K? $750K? A million?
> paying like €50k for a senior position (5+ years experience)

It depends on the location. That's probably about right for Berlin, but would be ridiculously low in Frankfurt/Munich/Hamburg/Köln. If you want a better idea of salary ranges, check the expat forum Toytown Germany. [0]

It also depends on the company and your negotiating skills. I've had job offers in the low €50k from companies in Berlin for a normal position.

> Ignoring currency conversion

Why would you ignore the currency difference? The Euro buys you a lot more than the Canadian dollar does, even factoring in higher VAT in Europe. I also find the cost of living is lower in Germany than in Canada. Food is certainly much cheaper, and my general impression is that housing is also cheaper (to rent).

€50k = $72k CAD

You probably won't make this as a junior developer in Canada, and if you do, it's probably somewhere like Vancouver or Toronto where the cost of living is very high.

[0] https://www.toytowngermany.com/forum/
Like in so many situations, causality is more likely to be cyclical than linear. That's how malignant habits work: they appear to easily alleviate a symptom, but thereby prevent actual recovery or growth.
Well, the vast majority of users have no idea of the -no-remote or -new-instance flags, let alone of Firefox profiles.
> In March, Joseph B. Maher, the acting general counsel for the agency [the Department of Homeland Security], defended the practice in a USA Today opinion piece. “These electronic media searches have produced [...] convictions for child pornography, intellectual property rights violations...

How are child pornography or IP rights violations a matter of national security? If they are then anything is -- which is probably their idea, but they shouldn't be let run with it.
I like rebase. Because to me, git is more about communicating changes to other people than finding bugs. Just like testing is as much communicating intent to other developers as preventing new bugs.

So we rebase, and we merge with merge commits. This way, the developer are forced to resolve conflicts one by one on their own branch, instead of sorting out a huge pile in one go on a shared branch.

What I like about git, though, is that you can choose different approaches. Discuss in your team what you find important and use git to support that. If finding bugs with bisect is your main thing, use git in a way that makes that as easy as possible. If your have other needs, you'll have to find other ways of using the tool.

Learning and understanding the tool to use it in the best way to satisfy your needs.
Sounds like this article:

https://www.theguardian.com/lifeandstyle/2015/may/03/owning-...