skysight-inc/HackerNews huggingface dataset:
The most important result of this design is that the syntax unambiguously determines whether you are referencing the type or value axis, and enables you to split them accordingly. Having worked with Scala and been forced to return to a C-style language, this is probably one of Scala's most overlooked features.
Sure but you might have forgotten your root password and remembered your disk encryption pw
I wrote up a post on this same kind of expression: https://banna.tech/post/chained_conditional_expressions_in_p...
There is so much wrong in one short post.

I didn't claim that I find comments on voting boring, I cited the guidelines.

I didn't feel obligated to respond, I felt it was useful and helpful to the community to respond.

Your argument is a non sequitur. If I did find a pattern of behavior boring, I might comment on it to discourage it to improve the overall quality of my experience of the site.
Not a huge difference, but it's actually 11 CAD, so closer to 7 EUR.
Wut. What has it de-cargo-culted? Most of the stuff that could use de-cargo-culting is still there under it.
What? You'll run an unsupported card over 4 slow PCIe lanes over thunderbolt in some third party box? That's a terrible experience.
Tab and registration fees on the turnover of vehicles.
This is amazing, and you've done a wonderful job with the quick response time on the visualization!
I always found prefix notation in Clojure to be really elegant for a lot these cases that are odd in other languages:

(= x y z)
My understanding is that this legislation does not universally prohibit a CEO from stating an opinion about the value of their company's stock.
What things have have Macs had in terms on non-backwards compatibility? Genuinely curious here - don’t say 32 bit, they released the last desktop Mac OS that ran on 32bit hardware more than a decade ago.

(I’m not saying that I disagree with some of the other issues)
I'm a Figma user. Highly recommend looking at the product/ joining the co. and making it more amazing.
Agreed that the whitespace elision is overly complex and too prescriptive for a small issue. Either whitespace is important or not; if not it doesn't matter so there should be no special handling, and if it does - the special handling is very confusing.

Scala has stripMargin, integrated into IntelliJ to explicitly indicate how to dedent the text block. Kotlin has trimIndent.

Anything that takes this long to explain should not be a core language feature.
Sorry, since when is a few hundred dollars “extremely expensive”?
The biggest problem I've noticed for regex is we use it every once in a while and once it works we move onto other things. And a few weeks/months later, we have forgotten much of it and have to relearn it all over again. Whereas, you generally use your programming language ( C++, C#, Java, etc ) everyday to keep your skills sharp, regex is generally "set it and forget it" situation for most people. And as you noted, different languages/shells/etc implement their own flavor of regex which can trip you up.

It's similar to SQL when you think about it. You set up a query to get the data you need and move on to other things. And every RDBMs implements their own flavor of SQL which can complicate things.
https://en.wikipedia.org/wiki/Screen_tearing
They actually do.

The part you left out is highlighted:

> They just want to Google $THING and buy it from a website that they've heard of....

People google stuff (or search on Amazon), land on Amazon or some other online retailer, and buy it.

You might be surprised how much stuff is drop shipped via Amazon sales, and that can be direct shipment or to an Amazon warehouse then FBA.

And yes, paying $25 for a $3 rack rate good is close to standard. If you walk through a Target or Walmart, you will see tons of stuff that can be purchased on Alibaba for about that ratio.
This is by by Vincent Racaniello, a professor of Microbiology & Immunology at Columbia University.

I highly recommend his podcast, This Week in Virology, aka TWiV.

Anybody have transcripts of the best TWiV episodes?
Getting a VISA to work in NZ means quite a bit of paperwork but it's still a lot easier than Australia. Originally, I wanted to do my internship in Australia but didn't get a Visa but the friendly Kiwis let me in. I had a blast in NZ and love the country.
Doesn't seem odd to me to be cutting staff in on area and hiring in another.
$1B Covid-19 fund maintained through G-sheet
A good doener+drink for $11 is a steal in chicago.
Can you run direct3d on your Linux and Mac systems?
Final Fantasy VII Remake Cutscenes Rendered in Real-Time?
To Mac or VR? Based on the threads here either is possible :)
Not 10 years.. 2 years at most. Budget headsets right now are as good as the Vive. If we have to wait 10 years it'll be dead.
Companies Sell the Blood of Recovered Coronavirus Patients for Exorbitant Prices
SQL and relational databases; Yeah, they're dinosaurs but they are not dying anytime soon. Psychology; I am a fan of the OCEAN framework. Being able to determine someone's mental footprint helps me navigate office politics.
"Let's game the system so that we can change the rules to be what we think they should be!"

Does anybody see a problem with this? Not necessarily with the desired changes (though I think they are highly dangerous), but with the methodology? We're deep into "ends justify the means" here.

"We deserve to have things go the way we think they should! They didn't, so the rules must be unfair!" (Never mind that it's the rules that we've played by for 200 years, and that their side has won as often as they lost under those rules.) "So we should change the rules so that we always win, because we deserve to!" That's the cry of entitled losers everywhere. But do we really want the rules to be drawn up by whining, entitled losers? That's not a way to get good rules.

And, you're going to create new states out of DC's 127 neighborhoods? 127 new states? And your goal is also that "all citizens are represented by equal-sized (House) districts"? Well, the population of DC is 702,000. Divided into 127 districts, that gives 5,500 people per district. (Unless you want to have one House district represent more than one State, which seems to me to be problematic.) 330,000,000 people in the United States would give you a House of 60,000 members. That's probably not workable.

This whole thing smacks of "one person, one vote, one time". If they win (not necessarily the Democrats, but people that back this crackpot idea), they'll stack the deck so thoroughly that they'll never lose again. Such people do not deserve your vote; rather they deserve being opposed as strongly as possible.

And what in the world has happened to Harvard Law, that they're supporting garbage like this?
Is radium only present in tobacco fertilizers? What separates tobacco fertilizers from other plant fertilizers? Am I at risk for eating tomatoes grown with normal off-the-shelf fertilizer?
My favorite article ever in Physics Today: "The Urinary Drop Spectrometer"[0], and a followup note ("Urinary Drops Again") suggesting an audio version[1].

"Information from the external urine stream permits early, painless diagnosis of obstructions with an optical instrument developed by an interdisciplinary group."

Japanese toilet models now have this kind of instrumentation, but the idea lay dormant for decades. I wonder if anyone has tried the audio version in the followup? Spectrometry on a stream of drops was hard in 1974, and relatively easy today. If I could avoid another kidney stone, I'd pee into almost anything.

[0] https://physicstoday.scitation.org/doi/abs/10.1063/1.3128862

[1] https://physicstoday.scitation.org/doi/abs/10.1063/1.3069186
Even if you DO buy a lot of expensive hardware, it’s a giant pain in the ass. There are no good rackmount solutions and so we ended up with a room full of expensive “trashcan” macs and they were STILL the biggest drag on our build infra.

This has been an issue for decades. Twenty years ago I was doing grid/HPC computing at Sun and there were a lot of bioinformatics firms that used macs and wanted compute clusters of them. It was a huge problem even then.
I'm personally waiting for GLaDOS
That's what I meant; multiple operating systems threads, not hyperthreaded execution on one core.

I don't remember offhand what POV-Ray's support for multi-core execution is or was. Back in the 90's, there was PVM-POV which ran on a cluster. That's probably what you'd use if you had a dual-socket machine back then. I imagine there was probably an MPI version as well. I assume it supports multicore natively now, since practically all CPUs are multi-core now.
For my & others' reference (because I keep having to look it up, just like parent):

perl -ne "print $_;"

'-n' will run the expression over each line of the input. This is the Awk-like mode.

perl -pe "s/foo/bar/"

'-p' will run the expression over each line of input, and print out the (possibly modified) line. This is the Sed-like mode.

Slightly more info available in `man perlrun` or https://perldoc.perl.org/perlrun.html
It's just a operator precedence problem. Add parentheses and it goes away.

Python 3.6.9 (default, Apr 18 2020, 01:56:04)
>>> True == False is False
False
>>> (True == False) is False
True

There are worse problems with Python's "is".

>>> 1+1 is 2
True
>>> 1000+1000 is 2000
False

This comes from a bad idea borrowed from LISP. Numbers are boxed, and the small integers have boxes built in for them. Larger numbers have boxes dynamically generated. In Python "is" means "in the same box". This corresponds to (eq a b) in LISP.[1] Exposing the implementation like that might have been a good idea when McCarthy came up with it in 1960.

[1] http://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node74.html
'I love you': How a badly-coded computer virus caused billions in damage
depends upon the usecase, for relatively simple column filtering, substitution, etc, awk script would be briefer than python equivalent and most likely be faster as well

if it becomes lengthy (and again depends on features required), then Python is likely to have inbuilt/3rd-party libraries to make it easier to write and maintain

if it is a question of constructing command line one-liners and using it as a part of other cli tools, then awk wins easily

for example:

awk -F'\\W+' -v OFS=, '{print $NF, $2}' input.txt

prints last column and second column, where non-word characters form the field separator and comma is used as output field separator
If someone wanted to improve the environment, buying an old car and junking it is a great way to do it.

The emissions levels of cars from the 70s and 80s are just off-the-charts, compared to modern cars.
Hi! I'm an entry-level/new-grad full-stack software engineer, with some background in Machine Learning/Data Analysis.

Location: Toronto, Ontario, Canada

Remote: Yes

Willing to relocate: Yes

Technologies: Python3, React, AngularJS, JavaScript (ES5/ES6), jQuery, Java (Android), R, MATLAB, Scikit-learn, NumPy, HTML5, CSS3, Sketch

Résumé/CV: https://drive.google.com/file/d/1YCl31F_whe1oS81PxOibKZmnLwd...

Website: https://winnie9197.github.io/my-portfolio/

Github: https://github.com/winnie9197

Email: winniehcyeung@gmail.com
That is hilarious (and evidently already a problem)

May I pay more tax to make sure the government protects me from that?
Everybody keeps repeating that landlords can write off rent not received as a tax deduction. You can’t, and if you think about it for a minute, you’ll see it doesn’t make any sense.

Imagine a landlord with 10 properties that rent for $100 per month. That’s $1,000 per month rental income, or $12,000 per year. Assume 10% tax rate, the landlord clears $11,000 after tax.

Imagine now that half of them are vacant. The landlord is now bringing in $500 per month, or $6000 per year. Is it your expectation that the landlord can somehow deduct the other $6k in rent not paid and pay $0 per year in taxes??? No, the landlord would now pay $600 a year in taxes on that $6k in rental income. Naturally the landlord doesn’t pay taxes on money they didn’t receive, but it’s always better to have 90% of the rent after tax, than 0% of it. It is always always more profitable to receive rent than not.

Now, as others have mentioned, it may be worthwhile to lose a few months of rent in return for signing a higher-dollar lease over a 10 year term.
I never heard anyone really passionately speak about the 3D experience. It was always marketing speech with movie-goers sometimes buying into the expectation. But after experiencing it, no one ever was really passionate about it. At most they would slightly prefer, and even so I think it was because the confounding factor that 3D sessions are also played in the largest screens and the best sound system.

But for VR? It is a niche, for sure, but I know a few people really enjoy it.

It can be a niche forever (like high end sound equipment) or it can grow into mainstream (like TV), I have no idea, but I doubt it will fade away.
Maybe, but my guess is that buying them new and then maintaining and driving them for 250k miles or more would calculate out the best.

(Buying used with around 25k miles would be even better, but hard to scale up.)

But you don't see that, I think because the main factor in their calculation is the customer experience of driving a fresh, new car that rarely has any mechanical trouble and that keeps customers coming back which outweighs all the other savings.
11 dollars is probably in SF or NYC where average pay is 2 to 3x the one in Berlin.
Same in Powershell except they use square brackets

[string] $foo = "foo"
You know, I had to integrate with `journald` a bit ago and I was prepared for a nightmare after all the ruckus raised about systemd.

And you know what? It’s fantastic. The API is generally well-designed (if not without a few sharp corners) and the whole thing is incredibly well thought out. Sure, plain text logs let you use standard UNIX tools. But doing so sucks. God help you if there’s a newline in your logs or if you have to ensure that you iterate over all the logs even across restarts or if you need to parse logs back out from text into the underlying attributes.
> If someone uploads a recording of Taylor Swift's Love Story, literally everyone is going to know who owns it.

First, as a matter of technical fact, you are wrong. You seem to think that whether a particular sequence of bits is or is not "a recording of Taylor Swift's Love Story" is a simple, easily computable function of that sequence of bits. It's not. That's one of the main points of the article.

Second, when you speak of ownership, you are simply stating the position large media corporations take without supporting argument. Sorry, not buying it.

> Property isn't determined by who made something

I didn't say it was. I'm not talking about the concept of "property" in general. I'm talking about a particular case: copyright law.

In the US at least, the purpose of such law is explicitly stated in the US Constitution: to give the authors of works exclusive rights to them. You can't transfer authorship the way you can, for example, transfer title to a home; but the legal theory relied on by large media corporations assumes without argument that you can, and equates uploading a copy of a song that has already made millions, and over which rights of authorship are not even being asserted by its actual author, with stealing the bread out of the mouth of the author. That argument violates the US Constitution as well as obvious common sense.

The only reason this legal theory got any traction at all was that before the age of computers and the Internet, authors did not have the resources to get their works widely read (or the equivalent for other media) on their own. They needed publishers who were willing to take the business risk of printing a lot of copies of a book (or, once recorded music came along, a record) in the hope of selling them. So authors had a strong incentive not to make an issue of the obvious absurdities in the legal theory that the publishers were relying on to assert copyright.

Now, however, there is no reason except inertia for authors, or songwriters, or any other authors of creative works, to use large media corporations to distribute their works. And in fact most such works no longer are distributed via large media corporations; they are posted on the web by the people who create them, and those people have a variety of ways of getting paid for their work without involving large media corporations at all. The corporations don't want people to recognize this because it will just make their business models die that much faster. But there is no reason why the law should be propping up outdated business models.
More in uploader's channel: https://www.youtube.com/channel/UCf7y6pZ-rnrFtHpX0vqB5HQ

He said he only hacked the save files.

There were reports that at least a few cutscenes were pre-rendered and cannot be changed.

How far are we from "procedural scene generation"?
How is the proportion of MBPs in the macOS users?
A lot of this is because they want to maintain the status of the cars they sell.

For instance, the Honda Accord outsells the Chevy Malibu by ten-to-one. Instead of simply selling the Malibu for a lower price, Chevy wheels and deals on the rebates and the financing.
Because you can pay money to have spam content bury all the real content, and there's really only one major search engine, randomly ask everybody you see on the street for the next month if they've ever heard of bing or duckduckgo. They've probably heard of Yahoo but don't even know they have a search engine.

A decentralized search engine is what we need but this is no easy problem to solve, a thousand people have tried. Good luck
True. If they're stuck servicing loans or paying storage fees (especially those associated with having them on a ship for an extra week) at some point it makes sense to sell at a loss rather than incur more fees and uncertainty.
If you have an audience, dropshipping is still very viable.

That one little trick (/s) of developing an audience, especially a devout and loyal audience, is the part that most people are not good at.
I've read many books on "selling" and I've also been a business owner for 12-years and dealt with salesmen quite heavily during this period. I know all the tactics, in other words. And I've never met a single sales person within those 12-years that did not resort to dirty tricks.

Not. A. Single. One.
I smoked pot in college 15 years ago, was told that is a non-starter. Is that true?
Maybe you should ask "where", not "when".
What? Nobody was trading in a freshly restored classic car for a $3500 rebate on a Ford Focus (or other similarly boring fuel efficient vehicle).
I remember the answer to a drunk question I asked a friend. Which was how did she manage to get tenure. Her answer was you have to a) never take a non-tenure track job. b) keep applying till you get one. I think doesn't matter, startup, not startup you need to be careful about the job and what opportunities come with it.
The Power of Big Tech Just Keeps Growing
If anyone's looking for some more good WTFs in Python: https://github.com/satwikkansal/wtfpython
AIhub.org
Worth remembering it was AMD who created x86_64. It was Intel who created x86. Granted, they’ve both added their own features on top of the basic x86_64 set, so it would be a legal hurdle.
Metal?
I think only public stuff like archive.org are intelligent clouds. Private stuff should not be put into a cloud. It's possible to encrypt data, but what if the provider suddenly loses the data? I lost an email account once just like this. And I don't trust anything less safe than a one time pad, anyway.
This always struck me as highly shortsighted of Jobs and other Apple leadership. Games helped to drive and define the Apple II and Macintosh successes, and the virtuous cycle of gamers growing up on those platforms and then wanting to try their hands at developing their own games for them is how many, many software developers got their start, including some who later found themselves at Apple. What's especially strange is that that list of former videogame developers includes Jobs and Wozniak.

Apple later lucked into a gaming market with iPhone, but they're still awkward at it (just see the games they choose to showcase onstage) and there is very little cross-pollination that considers the Mac as a gaming platform.
> The bizarre thing is that even before the pandemic I've seen popular Bay Area restaurants close down due to huge rent increases and then the spaces are still vacant years later. I don't understand what commercial landlords are thinking?

If its anything like what I saw in Boulder, most are held by large companies (TEBO) who can write off the losses come tax year because they have other more profitable locations/sites.

The restaurant I came out of retirement on in 2018 has been vacant since Summer of 2018, just to give context that building was $13k/month before operational costs, which were immense due to it be an incredibly old building. I personally had to patch up the pipesdue to massive leaks as our dishwasher wasn't getting enough pressure and my station was getting all the run off I had run to FOH get some wine cork to plug the holes and used a bunch of duct tape until the plumber could get there for the next week of service.

I think I overheard the Sous and Execs saying where I last worked that rent was 20k/month for the flagship, which on a busy night we could clear in a single days (day/night) service.

The further this has gone on, Colorado only just lifted its stay at home order today, the more I think I've hung up my whites and knives professionally for good this time.

By contrast, this is what is happening in Hong Kong, as they have captured the loyalty of their patrons and are months ahead of most country in terms of Covid19 recovery [1]:

1: https://www.reuters.com/article/us-hongkong-protests-mayday/...
Well, don’t eat the tomato leaves for one. If you compare the mass of undried tobacco leaves to a similar amount of food, I would guess similar exposures. I would also guess that the fruit contains more water, therefore a slightly less concentration of radiation.

It’s also about the system, lungs vs digestion. Digestion has been dealing with natural radiation for longer than we have been smoking.

Good question!

I also want to point out things like strawberries are irradiated on purpose to extend shelf life, not the same thing as radionuclides in the food, but a nice example of radiation protecting the food supply and preventing quick spoilage.

Edit: I think all fertilizers are the same, mostly from petrochemical stock. Nothing separating tobacco and food fertilizer.
Everyone's talking about the slower hardware. IMO the biggest hurdle to gaming is Mac OS's baked in mouse acceleration and whatever else makes 100% of mice feel absolutely terrible on a Mac. Even the magic mouse feels janky.

I followed a bunch of online guides to do everything I can to disable the acceleration and everything else, but for some reason when I try to play a game it still feels terrible. Even when the game has a high framerate the mouse never feels smooth.

Tried multiple MBPs. Multiple gaming mice from multiple manufacturers, etc.

Has anyone ever had any luck making a mouse feel as smooth as it does on Windows? If so, what did you do?
I wish they made that more clear as well. They do say that these things get stuck on the leaves. Most vegetables get washed at some point before you eat them.
Also bought a Volt. Also took the rebate, refinanced after just a couple weeks. Finance guy at the dealership was probably not happy.
Compared to IBM computers, they are overpriced.

Of course, if you want to test your software on Macs, you'll have to buy their hardware sooner or later, but even then you have to set up the build on the system instead of keeping it as pure test system.

If you do it for your day job, it's probably justified, but if you are just a hobbyist, then even hundreds of dollars are expensive. Especially if you live in a poorer area or are still a student.