skysight-inc/HackerNews huggingface dataset:
I would really dislike it if somebody had the power to swap out links like that. The whole purpose of social voting sites is that we get to to decide what links we see as a community. Plenty of folks prefer casually summarized content, ads and all.
Sadly, this isn't pessimistic enough. Many of us have experienced having to fill out multiple timesheets in different apps.

Fill out company timesheet, connect to big-company VPN, log into their site, fill out timesheet there. Because creating an integration requires both companies working together, which obviously isn't going to happen.

I recommend learning to use webdriver to automate things if you ever have to do this. It'll likely be a net time loss, but you'll feel better about things.
X and T thinkpads. Amazing Linux support and battery life. Very robust (I've seen Dell XPS with screen hinge broken when it more solid on thinkpads)
I wrote about my experience with a Thinkpad here[1]. It was the P1, a great laptop on paper.

[1]: https://lovesegfault.com/post/2019-01-24-thinkpad-nightmare/
Thank you for making this. Wouldn't hacktoberfest tagging help some visibility for contribution?
Yeah, continuous scroll with fade in is the standard. Odd scrolling behaviour like this only frustrates me when trying to scroll and it snaps back to the original position. If you're going for a step-by-step flow, it should use tabs or something similar, instead of modifying standard scroll behaviour, just my $.02
In 2004... parametric polymorphism was decades old with many implementations by the time Go came around.
It's quite the lengthy article but the crux of what they believe led to his suicide is here:

Relevant sources unveiled that before Mr. Chen’s last PSC, he had already been under pressure from the advertising department, so he expected to shift to other groups to maintain his job in Facebook and the opportunity to work in the United States.

According to informed sources told PingWest that, Mr. Chen’s group had undergone organizational restructuring, during which the group’s original manager hopped to another group. A new manager was hired to lead Mr. Chen’s group, but the manager soon realized that many of his ICs were already transferring groups, resulting in a sharply-increased workload per capita within the group.

Mr. Chen, who was already in high pressure, submitted his transfer request as well, and was pre-approved by another group, meaning that all that’s left is to have his own manager sign off on the transfer.

The new manager reportedly gave Mr. Chen verbal approval and told him to stay on the team until the PSC, but eventually gave him the "Meets Most" rating, which factually voided Mr. Chen's transfer request because the other group is very unlikely to accommodate a new IC who just received the worst possible rating, according to Facebook internal sources close to Mr. Chen.

Mr. Chen, who had been on the verge of collapse, was mentally pushed off the edge by a Facebook robot, according to people familiar with the matter as well as other employees on Blind, an anonymous workplace social networking app.

Two weeks before the tragedy, the Facebook advertising system experienced a Severe Site Event (SEV), which is essentially a server crash. A SEV management bot created a task for the SEV to be resolved and assigned the task to Mr. Chen, requiring him to fix the bug and submit the SEV report before the deadline, which is roughly one hour after the time of his death.

Mr. Chen tried to push the deadline to be delayed but another bot monitoring the SEV rejected the change and maintained the deadline to be met in 12 days.

It sounds like the already existing pressure in Ads + reorg + new manager blocking his transfer request + SEV caused him to just give in. Given Zuckerberg's public push on transparency, openness, and wanting to connect the world, I'm honestly quite surprised and disappointed at how secretive they've been on this tragedy.
I've never heard of it! I will check it out. Have you seen it used successfully?
as a heavy desktop IG web user, this is a weird UX thing that bugs the crap out of me
Haven't been following it recently, but probably https://proton-native.js.org/#/ or Qt.
We work, enron, endless examples. There seem to be a lot of male failures the last few years.
I mean, sure, but i already have a long list of that, probably longer than I can learn in a lifetime.

Things get prioritised when they help pay the bills
Also from Vancouver,

>Same with dinners parties too, and the only alternative seems to be placing the whole burden of cooking on the host.

This happened to a friend of mine that hosted dinners for a year or two. The idea would be other people would host it occasionally also, or help with food. Neither of those things ended up happening, so my friend just stopped doing it and nobody else picked it up.
Fixing the World (2011)
Thanks for sharing, learned a thing or two!

A quick suggestion: add an index to the `Vote` model for the `user` and `item` fields.
> Validation logic should be embedded in the data layer where it belongs and not housed in ephemeral and expensive to maintain application code.

.. and then if one goes to API page, they can see "update_schema" call, which seemingly works just like regular database - no version controls, integration tests, code review.
> easier to get power, harder to use it to control others and harder to keep it once you have it.

curious - if it's harder to use/keep, how is it actually 'power'?
In my reading that's how it would've worked if she'd registered, am I off? Not sure how it'd be possible so sort out on the spot without that.

But of course ridiculous that it took such hoops to fix after the fact.
I've been given a Dell Latitude 7390 at work and I think it's awesome.

Basically, it has a full array of ports (Thunderbolt/USB-C, USB-A, microphone jack, an eff-ing ethernet port, hdmi, smartcard, sim and micro-sd), thin bezels (it looks like a 12" but it has a 13" display), a good display, 60WHr battery, a good enough keyboard and it's well supported by GNU/Linux (basically, only the fingerprint reader and nfc don't work).

Mine is configured with a quad-core 8th gen Core i7 and 16GB ram. The fun thing is, my colleague sitting at my left has a 13" macbook, and I often hear his laptop fans spin up (from the distance!). OTOH, my laptop fans have basically never spun up.

If only it had the trackpoint it could easily get me to abandon the ThinkPad altogether.
Banks don't loose money due to weak crypto, but because of credit card fraud (no crypto involved). Customers lose money because they lose control over their endpoints (lose password confidentiality or SIM gets jacked or phone lost), or because they want to send Natasha from Minsk $5000 for a flight to visit them.

The argument to make to politicians is always: do you trust the other politicans not to spy on you when they are in power? That will always make them think twice.
Have Lenovo P1 (gen 2). Linux friendly, thin & light, 64GB memory, 2TB NVMe, plenty of ports, industrial build quality. Love it.
I have a Dell Precision 5520 running Linux; it’s incredibly similar to the Dell XPS line and is incredibly fantastic.
pretty sure if the title said "Hong Kong employee" HN would be all over "wow screw facebook"
It apparently comes up often enough to be in Uber Go Style Guide.
I think you mean velocity. Lots of velocity.
Thought experiment:

Given an internet connection, you can publish information anywhere, so why need these platforms at all to publish the information?

- Viral content, more easily spread among the world network due to the nature of how these networks operate from a social perspective.

When access is restricted to these websites, what is the solution? Several options are available:

- Keep the content you were planning on publishing saved for later publishing if/when access to these resume
- Given that you yourself might not make it (along with your data), it is imperative to be able to distribute your content somewhere else as quickly as possible

This leads the following proposed solutions to problems like this:

- If any internet connection is available at all, then information can be published somewhere such that it is capable of being eventually queued into your public profiles. The only way an authoritarian regime can mitigate this is by completing banning all internet activity and cell phone use (for instance, I seem to remember that you used to be able to tweet to a phone number, or use common endpoints like email to publish your messages).
not buggy but very unfriendly imo. i don't have an account but i have bookmarked a few. not sure if being logged in makes any difference but my pattern is: click on interesting post, scroll down the comments section, scroll all the way back up so i can click on the "+" sign to get more comments, scroll down to where i left, read some more, go back to the "+" sign, etc...

does not make any sense!

i mean, i put up with it because i don't have an account and well they can decide not to show unregistered people anyone's feed.
This looks like a pretty naive solution.

The more elegant way to do optimistic UI would be to use CRDT or OT.

Usually syncing is talked about in the context of syncing multiple clients. Here, we just want to sync the cached offline state with the server state. This allows you to make arbitrary changes to your offline state even if your server has conflicting changes incoming, it will all be eventually consistent in the end.

I would love to see a blog post about that! (the only way I know how to implement it cleanly is using pouchdb)
> If the alternatives are so great, why aren’t they being adopted?

As I stated: "Their system itself is really not that useful". Take the example of "give emergency services your location".

The requirements with W3W are: Cell connection, GPS signal, data connection, some sort of (presumably W3W-made, closed source) app. You use the app to convert your GPS coordinates to words that you tell them which they convert back to something usable.

The requirements without W3W are: Cell connection, GPS signal and any GPS app. You tell them your coordinates in decimals.

Sure, they will tell you that communicating GPS coordinates correctly is harder than communicating three words correctly, but good luck coming up with a situation where this makes any difference.

There's also the scenario of "their app will send the words to emergency services automatically", which is pointless because the app might as well send GPS coordinates.

My point isn't that we should adopt other systems, it's that we should ignore W3W. Even a strictly superior version of W3W would be hard-pressed for use cases. It's just not something the world seems to need, which is exactly why PR is their business plan.
I don't have any experiments to share, but you can go father if you stop using socket.io, but I guess you need something to deal with long polling.

You should consider tweaking --max_old_space_size, we got a lot of mileage giving node more memory.
The US president is the "commander in chief" and it's not an meaningless title. They have absolute control over all branches of the military. He made an agreement on the phone, from all reports, because he was not smart enough to know what he was agreeing to. But it's an executive order none the less and the military has to follow it.

All it takes is a phone call to Trump. That's why it's so critical that he is a Russian asset, or did we miss the withdrawal from the Open Skies treaty this week, too?
That's very true but still, in my experience anyways, it's much easier (i.e. perceived as 'less risky') to buy SAP and attempt to roll it out than to convince others that custom software would be better.

'Custom' is scary in a way that 'customizable' isn't.
The+Secrets+to+Getting+Your+Google+Rank+with+Pinterest+SEO+-+Grammersolutions
Api gateway is very expensive once you get sustained load. EC2 much cheaper.
Or link to them at least
Yea, I knew that American tax law has provisions that (in theory) protect against this being legal.

Do professional athletes in Europe become resident in the Isle of Man at all? I know they use Monaco in somewhat similar manner.
The mental gymnastics in this thread, yeesh. "The U.S. should leave and stop interfering!" and "The U.S. should stay and help the Kurds!" are not simultaneously possible.
Well, I'm certainly guilty of the same offense!
Sundar Pichai Unfollows Andy Rubin on Twitter
Depends on your workload
Thanks! I'll look into D-Wave's offerings and see if they change my mind.
Doesn't sound so impressive. I've done close to a million on a single Digital Ocean droplet using nchan[0] before. Latency was reasonable even with that many connections, you just need to set your buffer sizes carefully. Handshakes are also expensive, so it's useful to to be able to control the client and build in some smart reconnect/back-off logic.

[0] https://www.nginx.com/resources/wiki/modules/Nchan/
How could I forget, PR #100.

Fyi, Go received about 1200 conversions last month. Thanks!
Microsoft Word with edits most likely.
My brother, a GP doctor, said that he writes a lot of scripts for antidepressants every performance review season. Performance management sucks.

The racial tenor of this article seems bizarre and over the top, though?
I agree.

>once B is substantially lower than A

It's the presumption that this ^ is a given; that's what I have a problem with.

I think people assume B will continue to decrease in a linear fashion, (or maybe log/exp, but at least not hitting it's asymptote / limit until it's less than A).

But we're already seeing diminishing returns, and since A and B are both difficult to measure, I think presuming that the good will automatically outweigh the bad (at least in the foreseeable future) is nothing more than blind hope at this point.

There's also no reason to believe that it won't become more dangerous at some point.

Look at air travel. Automation made great improvements in safety without many downsides. Until maybe about 10 years ago, when automation related accidents started creeping up (yet usually blamed on pilot error). And then you get to the 737-max problem.

(I'm not claiming air travel is more dangerous, it's not. But mechanical reliability and materials testing / repair are doing far more for safety than automation is. Modern jet engines are an underappreciated marvel of science.)

Personally, I would accept a greater risk for the convenience of being driven by AI, and I don't think I'm alone.

I just think it's a bit of blind hope (and even some arrogance) to assume AI will be safer anytime soon.
Remembering and Forgetting Music
I’ve mostly had great experiences with lenovo tech support, certainly never had to talk to a robot.

When things go wrong I make a ticket and usually receive a call (and email if I don’t pick up) in intelligible english within an hour, the technician usually shows up at my door within a day (unless waiting for an exotic localized keyboard or something).
We are using your database credential generation features! With thousands of clients, too. Very cool, we'll write a blog post soon. The root credential rotation is genius.
> Otherwise, we move the last element over the to-be-deleted element and mark last element's slot free.

That doesn't work at all.

Consider a hash table of size 5: [Foo, Bar, 0, 0, 0], where 0 represents "empty" locations. Assume "Foo" is in "slot#0" (0-indexed arrays. Note that Knuth in The Art of Computer Programming works with 1-indexed arrays)

Lets say we delete Foo. Bar does NOT necessarily want to go into location #0. For example, hash(Bar) might == 1 (in the case of linear probing). So in this case, we want to leave Bar exactly where it is.

That's why I have the "if(hash(array[i].value) <= idx){" line in the code. However, this conditional seems impossible to write in the case of quadratic (or other forms) of hashing. This if-statement ONLY works on linear-probing.

----------

Consider this other pattern (still Quadratic probing): [Foo, Bar, 0, 0, Foo2], where Hash(Foo) == Hash(Foo2) == 0.

While Hash(Bar) == 1.

Lets say you want to delete Bar. How do you know to "move" Foo2 into Slot#1 ? You don't. There's no easy pattern to check for here. Quadratic-probing requires the tombstone method.

----------

The code I presented is very subtle (subtle enough that I probably have a few bugs in it). It works because linear probing has a very predictable sequence.

Quadratic probing, and other forms of probing (ex: double hashing, Cuckoo hashing, etc. etc.) are very irregular, and hard to figure out if an object "should" be moved back.

------------

There's a lot of ways of thinking about this problem. But I'm pretty sure the description you gave is incorrect.

My preferred way of understanding the problem is as follows:

1. Upon any deletion, you want to perform a set of operations that is equivalent to rebuilding the Hash Table from scratch.

2. The procedure I listed before, is provably equivalent to rebuilding the hash table from scratch. (Most elements stay where they are). At least, if I didn't write a bug in it accidentally...

--------

> The first element that we encounter which not followed by an occupied slot is not necessary that last element.

I disagree.

An empty slot, __in the case of linear probing__, guarantees that you've finished the chaining sequence.

That's why linear probing is best. Because you have simple guarantees for which objects are part of a "collision chain", and which ones aren't.

This means that deletion under linear-probing can be implemented efficiently. But deletion under other probing schemes (ex: Quadratic) requires the inefficient "tombstone and vacuum" procedure you were describing.

There's a lot of subtleties at play here which makes linear probing the best. And a lot of textbooks get these details wrong (ex: the Cormen book!!).
Anything but a ChromeOS notebook.
I think it will be better if you remove unread posts from the bottom (keep everything till the scroll point) and append new posts, so, the user won't notice them.
You can sketch on a touch-enabled device which is not quite the same thing as people working things out on big conference room whiteboards.

That said, people could probably use tablets more systematically for sharing hand-drawn/written stuff in real time. Some of it is about adjusting to the realistically available tools as well. For large meetings where some people have to be remote, for example, we've switched things that we would have historically probably written on a whiteboard to shared docs online.
Many times? During the US Civil War, Great Britain gave serious thought to intervening on behalf of the Confederacy on whom they depended for cotton supplies (India at the time was still experimenting with cotton horticulture), and gave tacit financial support throughout the war. Virtually all of the Latin American civil wars of the second half of the last century saw the US give material or military support to anti-communist forces.
Yes, this comment floored me. Did they really not know that MRI used NMR?

I got to do an NMR experiment as an undergrad, a decade before MRI, and it seemed miraculous then. I remember reading a speculation that a 3D imaging machine ought to be possible (in IEEE Spectrum, back when it was often ground-breaking), and was astounded when five years later they had done it and were selling them. Still haven't had a scan, yet.
>No, this does completely get it right. Enterprises thought they needed all the control and security features of Blackberry until the iPhone came along and made the UX gap unsustainable.

The iPhone took almost a decade to get to the appropriate functionality. The part you're leaving out is most executives just ended up carrying two devices and whined to IT about "why can't YOU make my iphone as good at email as my blackberry???"

>Enterprises thought they needed on-premise hosting of Exchange, Office and SharePoint instances under their control for email and productivity, until GSuite came up with a better, less configurable user

Except I can count on one hand the number of fortune 500 enterprises that moved to gsuite over o365.

>Slack is another proof point - the "consumerization of IT" trend in general.

I'm not even sure how this is relevant. Companies that were using skype for business or cisco jabber likely still have skype/jabber running alongside Slack.

This reads like someone who lives in the valley and thinks the valley is in any way reflective of corporate America. Hint: It's not.
If society stays in Spiral Dynamics stage orange, the education system will only cover things like this once there is profit in educating the public on it, like if asteroid mining becomes a thing (just an example, likely not feasible).
That's usually SOP at companies which have suicides. Suicidal ideation is contagious. They'll bring in a grief counselor, and encourage you to talk to them, instead.
Yes, it clearly fulfills the light criteria by lighting up when it's powered on.

The trivial gain in weight can be ignored. What's a kilogram or two compared to your body weight after all!

It's especially well thought out considering the price point of gaming laptops. They'll surely be in the budget range if he doesn't want to spent a lot of money.

Finally, as it's a gaming laptop, it's gonna ship with Windows preinstalled. Don't fret though, you can always install some 'nix on it yourself! Battery life is gonna be at least 30 minutes as well without any driver optimizations and you'll always be warm when you use it!

Did I forget anything?

(Disclaimer: I never actually used any Alienware hardware with Linux... So I guess it could be the best Linux laptops ever)
With not much budget, many of the recomendations like e.g. the T480s seem too expensive.

I'd recommend a secondhand ThinkPad from the T series and suggest to ask on the reddit thinkpad forum with more details (budget, size).
> OS X since Snow Leopard

10.6 was my last favourite release. Lion (10.7) removed expose (no way to put it back in) replaced it with the terrible Mission Control (removed having multiple rows of desktops. Now you just had one long row. Expose no longer split out all windows so you could see them; it grouped like windows together without the ability to turn the feature off)

I've personally been using Linux at all the jobs I've held since 2012. I use it at work and at home, with my Windows machine being exclusively used for games and photo editing (I have some workflows with Darktable, but I still really prefer Lightroom).

Linux is a great development platform and tiling window managers (i3/swap, xmonad, awesome, etc.) really make it shine if you're willing to put in the effort to learn them. I'm lucky I've been at four different companies that either allowed or encourages developers who wanted to run Linux exclusively. These days I ask about it in job interviews and don't continue down paths where a Mac is the only option.
Not only Java

UNCOL - https://en.wikipedia.org/wiki/UNCOL

IBM i ILE - https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/...

IBM z/OS Language Environment - https://www.ibm.com/support/knowledgecenter/zosbasics/com.ib...

Xerox Mesa - http://www.softwarepreservation.org/projects/lang/mesa

Xerox Interlisp-D - http://www.softwarepreservation.org/projects/LISP/interlisp_...

UCSD P-Code - https://en.wikipedia.org/wiki/P-code_machine

Modula-2 M-Code - https://www.cfbsoftware.com/modula2/

CLR - https://www.ecma-international.org/publications/standards/Ec...

PNaCL naturally - https://developer.chrome.com/native-client/reference/pnacl-b...

And many many others that I didn't bother to refer to, just WebAssembly is cooler somehow.
> It's not as easy due to network effects.

So true, which is why we need antitrust enforcement. If you run a platform or a service, you have to provide access to that platform or service to your competitors under the exact same terms as your customers. Anything less is the definition of anti-competitive.
Its really annoying the W series Lenovos were discontinued. The W530 could survive everything from road trip back-seat python to outdoor satellite sdr debugging, all while having a keyboard that was backlit and easy to replace.