skysight-inc/HackerNews huggingface dataset:
I had a closer look and there is a substantial difference between PC and mobile (I read mostly on mobile, thus my remark).

The PC version is OK: your comment is indented vs. the [flagged] comment and it is clear you refer to it - as visible in the second screenshot at https://imgur.com/a/P7XTNEL

In the mobile version it is not that obvious (top/first screenshot at https://imgur.com/a/P7XTNEL) - as you can see, it looks like you refer to paulcarroty's comment.

So it would be worthwhile keeping the same clear indentation on mobile as the one on PC.

Also, since the triangles are the only indicators of threads, it may be good to have an extra symbol (a cross?) for [flagged] comments so that they are visually part of the column of threads.
Exactly that. I misremembered the Apple 2 incident - but from that point onwards, Jobs vehemently fought any type of expansions or customization on any of his future models.
>I am saying that the stereotype he detected really exists and somehow happily coexist with other stereotypes.

Of course each of us has to deal with a plethora of cultural influences and pressures, but in this case you're just asserting things and maybe gaslighting a little. Someone shared an anecdote that counteracts your assertion and you go and post hoc fit your conclusion by claiming there are in fact other secret stereotypes that must be there as well. Maybe they aren't there.

>Personally I knew plenty of boys that were not fuckups.

So do I.

In my case, however, all the fuckups I know are boys. All of them. I don't know what that anecdote says, but it says something.
Yea, I find it really tricky to both think about what I'm trying to say and focus on maintaining eye contact.
I like my screen to be dim, and find that the white parts of an LCD are usually too bright, even when the brightness is turned right down. I expect an off-white or grey background on an OLED screen would be better, but they haven't made their way to the desktop yet.

On my phone with an OLED screen I still prefer white-on-black, but that's mainly because even at the lowest brightness it is still far too bright at night.
I think we don't really need identity, per se. What we really need is a system like this.

1. ANyone with a public key can become an identity provider. Services will only work with a list of authorized providers, though. The list should be supplied by the govt, or some external, trusted org (like Visa for credit cards). When authorizing, data management policies and security should be reviewed, and policies should be enforced, i.e. how claims are verified, ability to port out to a different provider etc.

2. Organizations like the government would have some number or token, and the provider used by every citizen. Information about them, like their age, them being convicted, having unpaid depts etc. would be sent as cryptographically signed claims to the provider. To be authorized, a provider must promise to not reject any valid claims.

3. When authorizing with an external service, a request should be sent to the user's provider. Then, the user should be authenticated to it, shown what the service wants, and, upon approval, the request should be fulfilled.

4. Services would usually request assertions (fail if the conditions I've just sent you aren't true). Assertions could include:

- The user must have an age claim signed by the govt where age > 18.

- The user must not have a valid "has some credit problems" claim.

- The user has a citizenship claim from the state of California or the state of Nevada.

- The user doesn't have a "convicted" claim where date of conviction >= 2010.

- the user doesn't have a "banned" claim, signed by me. As a blog author, I could use that to not identify users across visits, but block spammers easily.
- The user has a "personalInfo" claim from a government. This would be used to ensure that, in case this user does something really bad, a court could force the provider to link the token given to us to a specific, living person.

5. Services could also request capabilities, like the capability to send information to the user (without getting their email address), to get the same token across visits (which wouldn't be the default), to transfer $15 every month from their account for the Netflix subscription.

6. If there was no other way, services could also request access to information, like the user's home address for a pizza delivery service, or the user's location for Uber.

7. All requests could be one time or continuous.

8. All services would need central authorization for getting any sensitive data.

This model wouldn't make the user experience suck, provide the companies with what they need, and npt expose too much data unnecessarily.
Could have retained the high-density layout for desktop.
The max value of what? The array in one of the arguments? What if there are two arrays? Or an array and a number? Or a multi-dimensional array of numbers and any of the above?

I think this attempt to come up w/ reasonable interpretations for unanticipated usages of a function is kind of a rabbit hole. Beyond that I think it's also problematic to assume that all usages of a function in a language without a type system are intended usages, i.e. that programmers _mean_ to pass arrays whenever an array appears as one of the arguments.
And ironically, I'd argue that Visual Studio Code despite the name is more of a member of the former (it is basically an Atom clone) than it is like traditional Visual Studio.
Solid Principles – A Practical Example
If anything the biggest hindrance is to be American. It has quite a few topical jokes and puzzles that didn't make sense to me when I first played it.
This is a sensible advice, but how do you recognize an easy programming job?
The way the game is presented in the article is that the low payout numbers are fixed (so a 3 match on a given rolldown game pays out $50 regardless of how many winners there are). This is consistent with the state lotteries I know. In this scenario every ticket sold causes the state to lose money, on average.
Show HN: Find missing foreign key constraints in Rails (yeet_dba)
Show HN: Read all Medium stories for free
If someone here reads on Medium a lot, this might be useful for you: https://www.producthunt.com/posts/mediumship

This is my second browser extension and it's open-source. It lets you read all Medium stories for free.

Hugs and / or bugs welcome!
Keep in mind that Windows 3.x wasn't really the pinnacle of computing in its days. PCs were relatively irrelevant compared to the systems everyone apart from a mom and pop shop ran their business on.

So the typical behavior you saw was a combined effect of physical constraints and lack of skill or care.
To get you started:
https://www.ncbi.nlm.nih.gov/m/pubmed/14522657/ (2003)

This is pretty well-studied, so you shouldn't have trouble finding more through your search engine of choice. NCBI is a great place to start.
Advertising in Open Source Project
vcsh + mr works well for me.

One feature of this pair (unique to them?) that I find useful is the ability to apply different subsets of my repos to any given account's home directory.
John McAfee Warns US Government: ‘I Will Bury You’
I remember from my childhood that boys were always treated as silly clowns with no patience, responsibility and conscience. (Not saying there's no biological basis for this, girls do mature faster as far as I know)

School was much more set up for girls and they were more successful on average.

I don't remember boys saying girls are dumb or the reverse. The stereotype was more about girls being obedient and tidy and organized and serious while boys are messy, forgetful, chaotic and mischievous.

Edit: this last point also makes it weird for me when people equate male with order and female with chaos. I guess the stereotype may have reversed since then? Or the adult stereotype is the reverse of the child stereotype?
Clickable Link: https://www.producthunt.com/posts/mediumship
Long before that point, lotteries that decide to innovate in game design don't have a professional actuary on the staff to run the ruler over the designs?
Next-Gen Xbox Scarlett: Custom AMD Zen 2 and Navi Processor with 8K Visuals
today's proof ==> https://twitter.com/_JulianoRossi/status/1137840401904209920..., Craig is responding email :)
No thanks.

I've had several bouts of trying to learn emacs throughout my life.

It isn't necessary to list all the benefits, sure, there's a lot. Yes, I get it's "extensible" and you can write little elisp programs to do just what you want.

Here's the obstacle: Motor skills. It just takes way to long to first memorize reams of commands and then to train your fingers to issue those commands effortlessly. In the meantime, searching, "apropos" and googling stuff isn't an attractive thing to do when you have _actual_ work to do.

That's a serious obstacle and no listing of all the awesome-ness of emacs is going to convince many of us to put in that kind of effort.
Building a Reactivity System Similar to Vue in Under 0.7KB
...not just Americans btw....
I can recall using the Hack to force international calls over cable instead of satellite (to reduce latency) when I used to do a lot of international liaison for BT.
Ig you try to allocate more than the system is willing to overcommit (e.g. a huge block all at once), malloc will fail. But if phyaical memory gets exhausted by accessing previously allocated pages, the OOM killer will evebtuslly come around and kill processes without signalling. Signal handlers could still make thenprocess (unknowingly) request more memory, so there is 0 guarantee that a handler could even run successfully.
No (and no time soon unless it's a special case coded in manually), but some simpler things are possible, see e.g. https://news.ycombinator.com/item?id=16259157.
>On 8 June 2019, 08:03 by ahmet sahin simsek

>hi

>I downloaded thé new version and I have a problème withe subtitle please can you help me

How do these people manage to find these unrelated blog posts and decide to request tech support there?
I would assume you get a segfault if you try to access more than a few of those 130000 1-GB blocks.
Video takes focus. If I know I'm being watched I end up spending a lot of focus making sure I'm sitting still, keeping my face neutral and looking into the camera. With the camera off I don't have to care about those things and I can focus more on what is being said and what I'm saying, or tune it out and get on with my work if its a group discussion that turns to a topic I'm not part of.
This also shows how easy it is for people (and medical people) to imagine there is some magical potion that will make everything perfect again, even if it is imaginary. I think in software we do things repeatedly thinking they are making thing easier or better when in reality the machine isn't even turned on.
Can you provide some references?

Using vi for 5y here (switched to neovim) in dark mode, with nofrils-dark[1] theme now, I don’t feel any less productive, on the contrary I can focus for way longer than before.

[1] https://github.com/robertmeta/nofrils/blob/master/README.md
Device removal was added in the recent ZoL 0.8 release, so with that you can remove a vdev that is either a sole drive, or a mirror. Currently it can't be used to remove a RAIDZx vdev thou. It does carry a memory overhead for a remap table , but this does shrink as old allocations are retired back to the pool.

And the first alpha for RAIDZ expansion became available a week or two ago. (For going from say a 6 disk RAIDZ2 vdev, to a 7+ disk RAIDZ2 vdev). Just in case anyone decides to play with this feature, the on disk format for this feature is not stable yet, only use it on test pools.
Also, did that research have variables for ambient lighting (in field of view but not from the display) and for screen glare? A 360-degree bright cube farm is much different from a dim room with a desk lamp facing away. Your eyes respond differently and I would love to know more.

I suspect the real answer is a big, fat, "it depends."
Secured, Dockerized Kafka
> KYC literally means "know your customer". In what ways do you think that identify is superfluous to this notion? The purpose of KYC is not limited to hindering or prohibiting money laundering.

What other legitimate purposes does it have?
In the US there has been widespread pushback about national id. Civil liberties folks don’t like big brother, immigrant advocates fear making it impossible for some populations to drive, and the conservatives worry about states rights, especially with respect to voting.
JFrog?
I tend to hit print screen randomly every few weeks, and have been for a number of years. It’s like photography for when I’m not outside - it amounts to a near record of my ways of working over the years.
I once made something similar-ish (sans the fancy subpixel stuff) for rendering numbers into favicons for my cryptocurrency tracker.

Tiny number renderer: https://github.com/akx/bdf.js/tree/master/tinyb
Cryptocurrency tracker: https://akx.github.io/goligoi
A friend of mine has used a hackintosh for a whole year to do professional, paid work. Not only was it reliable, but it was dirt cheap.

Featuring a used i7 3770k and rx580, it cost $200 to build and its CPU benchmarks were on par with the macbook pro i7 2017 but much more graphically capable (which is surprisingly noticeable when doing innocuous tasks like maintaining smooth animations when switching between desktops)
In fact there is even a relation to the current president:

http://inthesetimes.com/article/20736/Trump-White-House-Self...

"In the president’s biography and business career, the role of positive thinking is hiding in plain sight. From childhood on, Trump worshipped in the temple of the movement’s prophet, Norman Vincent Peale: Manhattan’s Marble Collegiate Church. Indeed, Peale presided over Trump’s first wedding in 1977. Trump’s father was a die-hard adherent of Peale’s preachments, as is his daughter Ivanka, who wrote in her 2009 self-help tract, The Trump Card, that “perception is more important than reality” and you shouldn’t “go out of your way to correct a false assumption if it plays to your advantage.”"

"Peale’s midcentury self-help bible, The Power of Positive Thinking, is, at its core, a distillation of the message of the Christian faith into a series of achievement-minded axioms. “Picturize, prayerize, actualize” was Peale’s mantra, and he applied this simple formula to every facet of the believer’s life—but most especially to the sphere of material advancement, which was the surest sign of divine favor in the hermetic social world of Pealeism."

"The Power of Positive Thinking remained on the New York Times bestseller list for 186 consecutive weeks and helped launch the modern self-help industry; more than five million copies remain in print today. Peale’s gospel became the success creed for a newly corporatized and prosperous American social order. "
Yes, so? If she is not happy with Apple hardware, switching a platform and learning another workflow is a way to solve it. It's not like there aren't other pro options nor that Final Cut Pro is the best pro tool in its category. I do it all the time; I can't do something in Ableton Live? I do it in FL Studio. I can't do something in After Effects or am fed up with Adobe's business practices? I do it in Vegas Pro or DaVinci Resolve. I have a Threadripper-based workstation with RTX/Tesla cards that matches what new Mac Pro could provide (with the exception of 1.5TB RAM), so I am using software for platforms that can run on it for some of my production tasks, as well as for all Deep Learning (tricky to run on default macOS hardware). Not sure why I'd need to make compromises if Apple decided that pro users with a lot of cash like me are no longer welcome.
I recently tried to switch from vim to Emacs with spacemacs. I enjoyed it until I discovered Emacs has no support for tabs (ui tabs, not the character ;). I went back to vim mainly due to that, but still miss magit....
> Young developers nowadays seem to mostly use dark backgrounds, which to me feels like a weird '70s throwback

Everything "young developers" nowadays do seem to me a weird '70s throwback - from the proliferation of the command line (as opposed to actually trying to create advanced GUI tools for people who know what they are doing, like a lot of developers did in the late 90s/early 2000s whereas today you mainly have dumbed down GNOME 3 lookalikes), to using tiling and lightweight window managers "for performance" on "low end computers" when those low end computers have massive supercomputer abilities compared to the computers that people used -again- in the 90s with UIs that did WAY more stuff despite their limited performance, to having crude dumb TUIs that look and behave worse than what you'd get in DOS in the 80s, etc.
Men and boys are demonised and ridiculed daily all across our media, and education is in my experience biased towards males also. Teachers are mostly female, and I remember at school normal male behaviour being criticised, and a general attitude of 'girls work harder than boys', 'girls are better behaved than boys' etc.

If you want some hard data to back this up, take a look at the stats about male/female university attendance in the UK. You'll see it's becoming ever more weighted towards women. I cannot browse the web or social media without being bombarded with pro-female propaganda. And yet it's women that are being discriminated against?!

Bonkers.
Jens Gustedt suggested the following:

memset(malloc(size), 0, 1)

The program will crash if malloc returns NULL or the memory is not writable.
I had a look, and the C standard doesn't actually say anything about indicating failure. Here is all it says about malloc:

> The malloc function allocates space for an object whose size is specified by size and whose value is indeterminate.

> The malloc function returns either a null pointer or a pointer to the allocated space.

I think it's certainly debatable whether overcommitting while lazily allocating counts as actually allocating.
Then what do you do at the other end? Say you work at Apple as an administrative person. You can’t afford to live in Cupertino. So you drive from Fremont. The new BART extension will go from Warm Springs to Sunnyvale. Let’s say you extend it a bit further to Cupertino. So you drive to Warm Springs. Then park. Then you get off in Cupertino. Then what? There is no place you can put a station in Cupertino that even puts you walking distance to both Apple campuses, much less the other job centers in the city.

This is the problem all across the country. Most of the jobs in our metro areas are in the suburbs. Which means you’re talking about commutes that start and end in a car dependent area. There might be a reasonable rail route for a large part of the way, but you’d need to drive at both ends.
OK, so the same with running macOS in VirtualBox or VMWare under Linux/Windows. But that's probably not what they asked for.
I first read about these people a year or so ago so CBS "news" has finally caught up.
I'm sure there are other sites, but one that I follow: /r/unixporn on reddit.
Startups, What can ADHD teach you about UX?
Aquamacs (http://aquamacs.org) get's it tabs from somewhere...
I just replaced my 13' mid2012 MBP with a 12' 2019 MBP. Newer software, Spectre updates and driving my Thunderbolt monitor was getting too much for the 7 year old machine which overheated and slowed it down to a crawl whenever things moved fast on the screen. My old Thunderbolt monitor is now augmented with a Dell UHD monitor + CalDigit dock which cost together roughly the same. The new MBP is driving both with ease. My desk cabling is as clean as before with the added advantage that I can plug in the Windows laptop into the monitor when I'm occupationally forced to use is.

I was worried a bit about the keyboard but the latest generation seems to have a little more travel and Apple is backing it for four years. I mostly use it with a full size keyboard so the lack of ESC key is nuisance I can live with. Price is an issue but considering that I upgrade only every 4-6 years and value the smooth operation of the setup I'm ok with it - even if should be 20% less imho. I worry however about accessibility of Macs for people who can't afford to spend so much. Last year Apple PC sales shrunk by 3.8% which is o.k. as the market shrunk by 4.3 but is abysmal considering how superior their product is.
So you meant to say: ignore the possibility of this happening because it is extremely unlikely, too complex to handle and your time is better spent fixing much ore serious bugs that the users report.

Silly engineering like what you suggest is a waste of time. Non-critical applications that are allowed to crash (every normal desktop app) would end up overengineered and unmaintainable. Embedded systems that must give guarantees about their reliability simplify system design drastically. One of the things going out the window first is dynamic memory allocation. It has too many failure modes.
A Look at How the Linux Performance Has Evolved Since the AMD EPYC Launch
Plus, you can do all the graceful malloc() failure handling that you want, but if the kernel hasn't got overcommit disabled, then your program can still exit uncleanly when you later on try to use some malloc()d memory that was overcomitted.

Exiting cleanly would mean trapping SIGBUS/SIGSEGV (can't remember which one is invoked) and being able to roll-back from just about any point in your code or libraries)

You need to ensure overcommit is disabled, but because that's a system-wide setting, your program can't easily force that on.
Mobile is the worst thing that could happen to desktop UX.
All of those farms are just one season away from producing food no matter who we pay transfer payments to. Considering many of those fields are left without any crops anyway, I think you overstate how reliant we are on them
Linux is a kernel, not a C runtime so that's not really relevant. You say you realize that but then what are you arguing for exactly? Arguably you could complain that the glibc (or whatever libc you're using) is not working around that by, for instance, scrubbing the pages in malloc() to force the kernel to allocate memory.

But even then I'm not convinced that anything here is non-standard, at worse maybe we're in a bit of a grey area. As long as the kernel maintains its smoke and mirrors whether and how it allocates memory is irrelevant from the point of view of the standard. The C language has a rather simplistic memory model, it doesn't impose a lot on the implementation.

Now the problem occurs when the program attempts to access virtually-allocated memory and the kernel realizes that it can't find any physical memory to map it to. In this situation several things can happen but in general the process will be killed. Is it against the standard for the OS to kill a program for arbitrary reasons? I can't imagine why. It could also freeze the program, waiting for more memory to become available. Again, not against the standard as far as I can tell. Or maybe kill some other program to free memory.

If you have some specific part of the C standard in mind please do tell, I always find these language lawyering arguments interesting, somehow.
> Almost all the great software of the last 25 years was written in C or C++.

Yes, because until relatively recently (~5y) there was bugger all else to choose for writing complex high performance software.

> A developer working in Go [...] will always be a mediocre programmer

This is just the "blub language" elitist nonsense transposed with Rust as LISP.
Studies show that when it comes to IQ, women cluster around the mean. As you go upwards to higher levels of IQ you find fewer and fewer women compared to the number of men. Somewhat debatable whether this correlates to achievement or exactly what IQ means though.
fvwm with FvwmPager: best "desktop" forever!
Your question is invalid because it assumes facts that I have already explicitly refuted. Not interesting.
Easy. They don't exist.
What Is a Micro Switch?