skysight-inc/HackerNews huggingface dataset:
You can write it without resorting to one-line conditionals:

if(cond1){
myVar = 1;
}
else if(cond2 && cond3){
myVar = 10;
}
else if(cond2 && !cond3){
myVar = 100;
}
else {
myVar = 4;
}

But when I encounter this kind of situations I have other problems than code formatting anyway:

with 3 conditions you have 2^3 possibilities to check: are you really really sure (!cond1 && !cond2 && cond3) should give you defaultValue ? Do you really want 1 even if !cond2 ? etc...

When possible these conditions should be avoided in the first place (depending on context of course)
My strategy is:

if I don’t know the caller they can leave a voicemail. If it’s not important enough for a voicemail, it’s not important.
I love Go and respect the philosophy of the language, but I do agree with userbinator that the question of how to achieve that becomes much more interesting and less bike-sheddy when talking about macro readability.

I’d also like to point out the irony of how an article about readability is borderline unreadable on a mobile device. The font size is microscopic on page load, and after zooming in to normal font size on a standard iPhone screen, I can only fit 1/3 of the width of the text without scrolling horizontally. If your content is in paragraph form, please just use html.
SMTP is nowadays quite protectable against real domains being used by someone else. SPF, DKIM and DMARC all tremendously help.

However, Microsoft has a patent that stops a few additional measures from being taken against certain spoofings (SPFv2), you can thank them for that.
I believe it’s a false analogy too. But why exactly is it false? Is it because taking money from a wallet is obviously immoral and you’re robbing an individual?
I personally find this one-liner mentally difficult to parse in a glance. Yes, I can fully understand what it's actually doing, but when I glance at the code I have to focus on it too long before I am sure of what it is doing.

For better or worse, I operate mainly in the PHP world and the recently added spaceship operator is a solution to this. While I think it's a crazy operator on the one hand, on the other it's much simpler to use.
https://www.php.net/manual/en/migration70.new-features.php#m...

return a <=> b;

EDIT: fixing typos
It does seem that less labor is required. Automation has permanently removed large percentage of human workers from various industries (like mining).

The problem is that life is not easier because all that efficiency is captured by a tiny group of non-laborers.

The people whose labor was replaced are not benefiting from the end of their labor. They're now jobless and forced to compete harder for lower pay.
> Your lab tests came back and we'd like to make a follow-up appointment."

So you're expecting a call from them in this case?
This reminds of a quote by Nikola Tesla: “The scientists of today think deeply instead of clearly. One must be sane to think clearly, but one can think deeply and be quite insane.” I always preferred clarity over "cleverness" not just in programming, but also when say reading a book on a technical subject. Clarity evokes feeling of beauty I would dare say.
Guido blames social media for his decision to abandon the supervision of Python
The difference is coming from the fact that convictions for drug crimes are shorter than conviction for violent crimes, which could explain why there's more drug-related convictions but less drug-related inmates
Was a bit surprised to see this piece from VentureBeat (guess that's why they called it OffBeat). My family has been taking care of my grandmother who has Alzheimers and Parkinsons and it's taken a tremendous toll on everyone, especially my father who is the main caretaker.

As someone in tech, it's stories and experiences like this that make me wonder if we're working towards something that will help those in need or if we're investing our time/money/energy in the right places. After all, everyone is going to die so I'm wondering what we can do to alleviate some of the pressure + pain from this part of life.

In this vein, if you know of opportunities to help the elderly in NYC, please let me know. I'm open and willing to spend my evenings and full weekends helping out however I can. Have reached out to a few senior centers, but most have not responded, unfortunately...
At least that's far back enough that they aren't around for us to be angry at.
This. A corollary of the argument is that if r > g, worker income on average grows slower than g.
Does anybody ask how people can be equal under the law, but it's worthwhile to spend money on a lawyer and a prison consultant?
> I suspect they'll acquire NPM along the way too, to have a better lock-in in place.

No matter if someone is going to acquire npm or not, npm registry is clearly degrading in value provided to users, while trying to earn a profit.

I recently started a project to do something about it, called Open-Registry (https://open-registry.dev).

Basically, it's a new package registry compatible with npm (proxy to the npm inc registry) that is 100% community funded and has a explicit governance that the community owns it.
thats like saying programs should go away if its not implementable by the OS. its just a different layer. browser plugins are tremendously useful

edit: also your comment seems to imply that plugins are used for websites trying to do something the browser doesnt support (ex flash) -- while this is sometimes done, most plugins add additional functionality for the user, ex adblockers, usability improvements, etc
I did account for everything above. I keep track of everything.

Note that I do my own maintenance on Saturdays, so I don't put a monetary value on my time. However before you say I should account for my time, do you account for your time taking the car to the shop - I started doing that a few years ago and stopped because I realized that for most things I could get it done faster myself than take it in. (taking it in accounting for all time getting the car to the shop, arranging rides (sometimes a loaner car, sometimes my wife's time), and paperwork. When doing the work myself I can stop at the auto parts store next to the grocery store and so much less time needs to be accounted for there.
> Canvas could conceivably be fixed to just behave the same everywhere, but for WebGL you have to limit it to some common denominator to hide the GPU model

You can just measure performance of those things then.
> To honor and respect the privacy of those who offer their bodies to science, no further details are given medical students about the person who had once inhabited the body lying on the silvery slab before them.

Unless you are special I guess?
If you need RAID and LVM, just use them? Separation of concepts is not a bad thing.
Amazon's 'last mile' has definitely gotten better recently. Started showing you a live map when the driver is getting nearby.

What they need to fix is the crazy estimates and deliveries that may turn up from anytime from early morning to "up to 9PM".
Intelligent Tracking Protection is a work in progress in which Apple actively checks what trackers are using and disables it. The next iOS/MacOS releases will have the next version with new restrictions on tracking.

The issue will be solved when all tracking companies have collapsed and that industry is dead. Clearly we aren’t there yet.
I just need to supply my bank statements to the accountant annualy (bank is TSB). They have a set of rules (less that 150 lines, not more than 3 months) that constrain how you can get the statements, and a 5-step process to open up the UI to download one, then select the dates, etc. You may imagine it's simply error-prone and repetitive.

A few years I didn't even need to change the script. But even when I needed it wasn't something too complex. As long as you constrain the expected behaviour and error early - it works perfectly well.
If they ever successfully clone dinosaurs, I'd love to be fed to a TRex. That'd make a great tombstone photo for the pedia.
>no one knows they exist, how many of them there are, or why they're opting out //

They're burning half-a-billion a year of Google's money, they can afford to have an intern run filters to capture stories on HN, reddit, slashdot, ... amalgamate the main points and make them available as part of the user feedback.

Presumably many of the devs at Mozilla have been using it for the last 15 years too and also value a privacy-centric advertising-lite web.
PAREXEL | www.parexel.com | FULL-TIME, ONSITE (Horsham, PA), DIRECT-HIRE role | VISA welcome

For over 35 years, PAREXEL has proven to be a trusted partner for the complex development journey required of biopharmaceutical and medical device companies.

2 Senior DevOps Engineer roles open - Apply here: https://jobs.parexel.com/job/horsham/senior-devops-engineer/...

Email me directly at katy.maust@parexel.com!
I track every tank so I know exactly how much I've spent on fuel. Of course I'm also getting 46mpg not 30 which makes a big difference.
Bug report: The game mostly work, but sometimes it builds bogus rows on the bottom. Makes it more difficult to get high points. Debian Linux with Chrome...
I couldn't disagree more. Nested ternarys are NEVER okay. They are confusing and misleading to anyone new to your code base.
> For the last 30 years governments and politicians have proven incapable to do anything about global heating.

That's just disingenuous.

Climate change has been a major point for numerous governments, there have been huge pushes towards renewable energy sources through subsidies, legislation, international treaties, etc.

Yes, much more could be done, but claiming that nothing has been done is just polemics. It's disingenuous to claim that 2019 is basically 1989.
FAQ Sheet on Feature Interaction (2004)
return a < b ? -1 : a > b ? 1 : 0;

That's a nice approach. However the document is about Go, and Go doesn't have a ternary operator. So that probably leaves the switch solution as the clearest one.
Yes, they are. For example, the GitHub repository ethereum/wiki can be cloned by doing

git clone https://github.com/ethereum/wiki.wiki.git

You basically add `.wiki` after the repository name, and it's exposing a git repository you can clone.
This free book is probably best place to start:

http://www.cs.washington.edu/homes/levy/capabook/index.html

The surviving, capability architecture is System/38 -> AS/400 -> IBM i. A side effect of better architecture is that they are also incredibly reliable. One person here described them as the tanks of their company's servers.
Only mainframes had channels. Best implementation thereof is in IBM machines. It is nothing like DMA or that Intel chip or anything else. No Unix machines nor PC and not even specialised hardware, like Tangent, had anything similar.

It is something like separate FPU or MMU units, built for the total control of the peripherals, so that CPU had little or no work to do. Don't forget that device drivers run on CPU.
The Object Capability Model https://en.wikipedia.org/wiki/Object-capability_model is the general approach of tracking priviledges at a fine grain.

Capability-based addressing https://en.wikipedia.org/wiki/Capability-based_addressing is hardware that implements 'fat pointers' that point to ranges of memory so its not possible for a program to address memory it shouldn't. Basically, it forces programs to be 'memory safe' https://en.wikipedia.org/wiki/Memory_safety even if written in memory-unsafe languages such as C.
It is the point, because if the pilot doesn't know whether or not it's installed, then absence of warning does not imply absence of problem.

If a pilot knows or believes it's installed, then they might discount a theory because the instrument appears to disagree.
This sounds like a case of a system so complex that the humans trying to reason about were unable to do so. As a software engineer I've sometimes had to run a piece of software to properly understand how it works. This doesn't seem like a desirable property for systems that are critical for safety.
Lithium-ion batteries from Amazon are exploding
> This is definitely an impactful idea, specifically red meat by quite a large difference comparative to other meats.

This isn't exactly tenable for everyone, either. Some people [like me] need to fairly regularly eat red meat for the B12/Iron uptake benefits alongside supplementation.

Instead the industry should be pushed toward larger changes like this: https://e360.yale.edu/features/how-eating-seaweed-can-help-c...

I'm increasingly convinced the solution isn't quitting everything that looks like a vice (good luck with that), but instead to develop methods for reducing or removing and reversing the harm they cause.
I tend to avoid the ternary operator because in my experience even people who think they know how it works are often unaware of its edge cases when it comes to silent numeric type conversion (looking at you Java).

If you don't put the same type on each return sides of your ternary, you might be in for a nasty surprise.
I've seen stories that address that by positing that it turns out that our intuitive understanding of ourselves as fundamentally "simple" entities is in fact correct, and the electricity our neurons used was just an epiphenomenon based on our local conditions. If you physically move your body into another location, suddenly those rules will work on you, and lo, you really will be running on the 4 humors, or whatever other theory is in play.
That's a glaring omission, if true. It seems that they'd be looking at earnings (that is, they'd be subtracting costs, and looking only at profit in the end). Otherwise, yeah. This is a pretty bad analysis.

Either way, if real estate averages about 1% better yield than equities, I'd go with equities, because they don't require maintenance, other than reading an occasional financial statement (or if you're indexing, not even that).
> The only people who say "Btrfs is dead" are those who don't use it.

Please do not put your words in other people's mouths.

There are many people who did try btrfs and lost their data. And it was not because they did not read the docs or used flaky hardware -- for example, our org lost the data after the sudden power failure. Maybe this was our fault, be we switched to XFS on the very same hardware and did not lose any more data, despite having more power failures.

If your point is to have people use btrfs, you are not helping it by saying things like "it is user's fault every time". Nor does it help to dismiss people's experiences as FUD. Acknowledging its limitations, and saying "yes, it was bad, but as of 20XX it got much better" would be much more effective.
"Also, isn't it a good thing if labor becomes less valuable, implying that less labor is REQUIRED? "

I think you may have this backwards.

If I generate $1 of value/hr that's kind of the maximum you can justify my wages being. If you give me a machine that increases my productivity 10 fold and the machine costs $2/hr then my maximum wage tops out at $8.

Now in this situation less labour is required, but the labour isn't less valuable. Obviously now you need a new industry to come along to employ the other 9 people who aren't now needed, possibly now servicing me and my newfound wealth, or possibly building the machines that put them out of a job.

'value' is what someone is willing to pay. My employer would have been willing to pay me a maximum of $1 and $8 pre and post machine introduction, so you could say my value increased. But I'm not likely to see much of that in the short term, because all my mates are now unemployed, and would be willing to do the job for their old pay, so my leverage is very low, so worst case I keep the same pay, in which the value of the job to me hasn't changed.
We need a new Phoenix, I feel.

From Wikipedia:

>They [the original Phoenix devs] believed the commercial requirements of Netscape's sponsorship and developer-driven feature creep compromised the utility of the Mozilla browser.
Dropbox adds cold storage to reduce cost of storing infrequently accessed files
Open Lyrics Database
Insys Therapeutics former executives found guilty in criminal opioid case
The next U.S. federal election is an excellent opportunity to address climate change. Ensure that the Democratic primary chooses a leader with a good plan, and then ensure that he/she wins in 2020.
Why is text so faint and small ?
better solution access stuff via ssh graphically another desktop machine for all work and browsing...last access remove the ssh key

than when CBP ask for password give it and watch them search the laptop..

You full filled your legal obligation to follow their orders despite the illegality its now their problem they cannot find anything

Note...all social public stuff is searchable on google..tweets facebook postings etc..

CBP never needs a password they are searching with that password for other reasons than the ones they GIVE
They sometimes call me to shift appointments. Either something came up for the doctor and they're moving the appointments away, or someone needs a longer very urgent procedure just before my appointment and I'm just going to be there for routine stuff.. things like that.
I think it's actually 5 years ago, perhaps when the major management changes happened. My mistake.
Just don't be a douchebag who brags about being vegan (making everyone around hate the very concept), while simultaneously investing money into crypto mining and raving about AI toys that require showing terabytes of data into high-power video cards.

Being reasonable and consistent works infinitely better than doing something to "make a statement".
- Stop promoting/using power-inefficient, developer-centric webapps and start working on metrics for power efficiency

- Stop churning through overpowered smartphones

- Give up on "agile" project management ideas with daily standups in-person, fiddling with stories written on paper cards, and similar childish approaches
Collective action has worked in the past. We did it with CFCs.
The obvious way to handle this would be to set the appointment for either the current timezone, or the timezone where the appointment takes place. Simple checkbox/radio button, pick a default, but let the user change that default.
you got it the other way around, it is "the law is equal for everyone" not "everyone is equal for the law"

addndum:

law is neither gender nor race neutral. pretending everyone is equal under the law is just wishful thinking. and yes the law corpus is the same for everyone... as long as you are in a specific place, because not even that is a given, since not everyone lives in the same place under the same law.

you'd expect this community to have some spark in it but no, people around here don't seem to engage in critical thinking anymore.
Maybe if you donate 20 million to build the Prison hospital your descendants can get in as a sort of legacy sentence.
Tips to use VSCode more efficiently
I have been using Keepassx[1] with Syncthing[2] for synchronizing the password database. It has been a great experience due to following reasons beyond the crypto advantages:

- Open source

- Peer to peer without having to share file contents with central server like Dropbox etc.

- Full featured Android and Linux (KeepassXC) clients with nice UIs (on Android I have the option of using fingerprint auth to open my database)

- Autofill integration on Android (I haven't tried on Linux)

[1]: https://www.keepassx.org/
[2]: https://syncthing.net/
FitFluencers: A Distorted Reality
New holographic technique opens the way for quantum computation
Not sure if you're old enough to remember this one: https://en.wikipedia.org/wiki/Swatch_Internet_Time
>Some of us do not believe the leftist alternatives being proposed are better. This does not mean we actually like the status quo. You are knocking down a giant strawman here.

I'm trying to be fair here, what alternatives are you defending? I want a world where billionaires have less wealth and power, do you disagree?
I wouldn't say "fourteen oh-oh", but "fourteen hundred", and I've rarely heard just "fourteen".

Extends obviously to "fourteen thirty".

(Northern England)
Sounds like it might be fun to load one's devices with infinite zips labelled with tempting filenames, like "red light district itinerary.zip". https://research.swtch.com/zip
the real problem with this comparison is that it's not done on risk adjusted basis. people who take risk, should be compensated for it, or g will be negative ! it's the typical marxist logic that just assumes g as a fixed number out of thin air. In fact g is only possible because some people make the effort to get r. r causes g.
I generally dislike voice calls because they take me out of what I was doing and require my attention during the call.

Voice calls are useful for things that need to be dealt with quickly but otherwise async communication is much more pleasant.
Bitcoin lost more value in six months than most currencies managed in half a century, and yet 'miners' were still incentivised to make more of it...
I've given up on technological solutions to this. We need a "do not track" bit for browsers and it needs to carry the weight of law behind it. Violators need to be named, shamed, and fined.
> “Reduce your meat consumption as much as you can. Don't go all the way vegan, but make meat a special treat not a commodity.”

No thank you.

I know vegans have an anti-meat agenda and have been promoting this idea, however industrial agriculture as a whole is not sustainable, not just meat, and switching to a plants-based diet won’t save the planet.

The elephant in the room is that sustainable farming needs to be local, it needs natural fertilizers and it needs grazing animals. Sustainable farming also needs to do away with pesticides because we are killing the insects.

Also you have to take the cost to healthcare into account. The vegan diet is not sustainable and we already have a huge health issue on it hands, not from meat, but from all the cheap corn, wheat and sugar ;-)

Sorry, but most vegans have serious nutrient deficiencies, like proteins, vitamin B12 or K2. Humans are meant to be omnivores, we do not have the digestive tract of herbivores to synthesize proteins or the ability to synthesize vitamin C like carnivores for that matter.

If you want policy, ask the lawmakers to stop subsidizing corn and wheat. Making corn more expensive will make CAFO operations and thus meat more expensive, which will in turn increase demand for animals raised using more sustainable practices.
(a>b)-(a<b)
> So, we either have case of lightning striking the same person twice, or he likes to play games with the law.

Or he's being targeted now because of his past activism.
Web3 Foundation ¦ Zug [Crypto Valley], Switzerland¦OnSite or Remotely¦ https://web3.bamboohr.com/jobs/ ¦ Web3 envisions a future where users are in control over their own data, identity and destiny. Our projects are open source and our community is inclusive.

We are a lean team with a flat organisatio.

This is a opportunity to work at the forefront of technological development and to be part of shaping the future of society for the better.

There are several roles we need including some cues:

...................................................................................................................

- Security Lead [blockchain, code audits, bug bounty program, pen testers, security tooling, open source]

- Head of research [cryptograpy,protocols or distributed algorithms, blockchain, zero.knowledge proofs, multiparty computation]

- Research Scientists [cryptograpy,protocols or distributed algorithms, blockchain, game theory and machanism design]

- Is your role missing? - please check the post in case you are bring expernience in any clues mentioned above

We offer:

Competitive compensation and employee benefits

Regular company retreats at unique locations around Europe

Opportunity to work on a diverse team of varied professional backgrounds (i.e. physics, computer science, algorithm design, legal, financial products, management consulting, marketing & advertising, etc.)