skysight-inc/HackerNews huggingface dataset:
> do other HNers also feel that a high comment:code ratio probably indicates quality?

Nope, imho code with lots of comments is generally crappy code. It's littered with comments to explain the sloppy code they couldn't make clear because they're bad programmers. Good programmers use few comments, write simple clear code that doesn't require explaining, and leave comments about why something was done rather than simply trying to explain what the code does.

Code never lies, comments often do; don't trust comments that explain the code.
As police struggle to solve homicides, Baltimore has ‘open season for killing’
What benefit would that have over a cookie? (Honest question)
You don't get from zero to one by making a perfect plan and then following it. You get there by making a workable plan, starting on it, then re-evaluating constantly and updating the plan as circumstances change and new information becomes available. It's a constant process of error recovery and responding to circumstance in order to keep the end goal attainable.

The code equivalent would be refactoring as you go to keep your code maintainable at all times.
IIRC Colorado Springs had some other... interesting policy choices unrelated to marijuana:

https://www.politico.com/magazine/story/2017/06/30/colorado-...
> I wish that the ULID spec checked for microsecond collisions instead of millisecond

Most computers don't have wall clocks with even more millisecond precision, much less microsecond. The wall clocks are generally OS tick precision (~5-10ms ballpark) with poorer still accuracy.

Seems like the use case is one that is niche. Maybe an extension?
So C# became the language of choice

How did you find your first C# job, from a PHP background?
So envious you are friends with such a stellar musician. I've been blown away by "In the Moment". It's 21st century jazz and a huge inspiration.
Should I install Google Analytics blindly? Let's find out
China’s Startup Bubble Runs Aground
There are plenty of examples of nice places that remain nice even as people move in. It's up to the city to be dynamic enough to adapt to a changing environment.

In concrete terms, that means: building sufficient housing and infrastructure to keep life affordable and smooth; designing (or shepherding emergent patterns of) functional, livable neighborhoods; and addressing social problems as they arise.

You might be surprised to find that you can still get a studio in Tokyo within 45 minutes of the city center for ~$400/mo (bump up to ~$600 if you want to be 15 minutes away), that it's easy and efficient to get around to nice urban and natural amenities, and that there are endless quiet, peaceful, and utterly charming neighborhoods, parks, and temples right next to all the hotspots. You'll never see any feces on the street, you never see anybody shooting up needles, and nobody will ever beg you to spare a dollar.

Part of that is cultural, but most of that is by concerted effort.

But positive outcomes like that can only happen if a city successfully adapts to changes—which San Francisco (and virtually every American city to varying degrees) has abysmally failed at. As another commenter pointed out up the page, San Francisco's public policy has been very nativist, and the physical form of the city has remained more or less unchanged for decades, which spells disaster for one of the most coveted places to move to in the world.
They do censor private messaging, but usually because it's used in targeted harassment of individuals.

FB and others could also do as you said - make quarantine zones for specific prejudicial groups and their ideologies.

Except time and again these groups have proven they're not wanting to stay in their own special self-moderated zones but are actively looking to broadcast. There are businesses built upon these prejudicial world views and deplatforming them just shows how they heavily they rely on broadcasting:

https://mashable.com/article/milo-yiannopoulos-deplatforming...
China levies anti-dumping tariffs on chemical imports from Taiwan, Malaysia, US
LinkedIn is how I got started. Recruiters are always hungry for fresh meat so it’s an easy way to get your first gigs and build relationships with clients directly.

A blog might be good but honestly a lot of clients don’t know what they want so a tech blog is unlikely to bring them your way (if they’re reading a tech blog chances are they’re already developers and might not need your services). I personally write but I do it more for the fun and for giving free advice rather than a way of gaining clients.

It is not my business yet (I’m still just a contract software engineer) but I’m going to look into this next year. I know one of my ex bosses has a successful small business developing bespoke business software so I think it’s a good market, and if anything will make a few lucky people happy with great software instead of the usual Oracle/SAP/Salesforce garbage.

My email is in my profile. Feel free to get in touch if you want some advice.
Closing a few won't have much impact.

In fact, some have closed (e.g. Alma Village, El Camino and Maria) and most others have shortened hours.
China Asks Universities to Inspect, Report on Gene-Editing Work
Before-And-After Pics Show Dramatic Collapse of Tsunami-Causing Volcano
Steve Jobs also tried to cure his cancer with acupuncture and woo.
The Apple store is just as bad. I tried finding an app that just takes a photo every n seconds until I press stop.

I could find endless pages of apps that claimed to do this - but had 1-star ratings because they couldn't actually do the single thing they were supposed to do.

Ugh. I remain pretty convinced that there's an app like this out there, but discovering it is just plain impossible.
I do not understand the distinction between "popular tech websites" and "the most popular tech web sites" - would you please summarize how this filtering is done?
Some insurers benchmark Medicare rates for some procedures. It certainly isn’t the majority of rates, those tend to be percent of charges.

And no, Medicare doesn’t have the lowest rates (Medicaid does). The rates aren’t low due to negotiation (hah!), it’s the gov’t basically saying “here is what we pay, take it or leave it”.
I wouldn't be surprised, but my frustration is a poor implementation or unintuitive implementation. Quite a few cars go into USB-mode as soon as you attach a phone--almost 100% of the time they just want to charge their phone and already have things set up via Bluetooth or the radio. iPhones won't let you play through the phone if you have an attached audio device. Some cars seem to be able to do album art and track progress via Bluetooth--most will do it via USB but not via Bluetooth, which confuses people. Few cars seem to have a play/pause button. My most recent car would crash the infotainment system when I tried to use Siri. The only way to reset things were to turn off the car--bummer for road trips.

I get why car tech lags a few years in cars, but I'm constantly surprised by how terrible it is even in high price ranges. Since stereos are no longer swappable modules in the dash, the buttons have sprawled around the console. I was driving an in-law's Mercedes over Christmas and couldn't figure out how to turn on the stereo. When I did, I couldn't tell which buttons were for the stereo, climate control, or other, more core car functions.
lots of HN'ers bought into the FOMO

and now they are caught holding bags

a future which has no real use cases.
If you enjoy teaching others or helping others solve their programming issues, you can apply to be a mentor on Codementor (https://www.codementor.io) and start building your profile and experience there.
Can an attacker turn it back on thru the automation schemes discussed. Hopefully not..
There's also the problem of wireless tech UX being difficult in general.

For example, people want the experience of turning on their devices and auto-pairing with their other devices. But headphones, for example, don't have much of a UI to manage this.

There's the hellish scenario of everyone in your car hearing the conversation you thought you were having on your back patio in private just because you walked too close to the car (happened to me). But it's not obvious how to prevent that while offering the seamless phone-to-car handoff that people may also expect.
I tend to wrap the if statement in the function as much as possible, so that the code as a whole presents a sequential pipeline structure. Keep the code concise and readable.

MyBlog: The Pure Function Pipeline Data Flow
https://github.com/linpengcheng/PurefunctionPipelineDataflow
Living in China and lived in the US. In general the credit systems in China aren't much different from those of the US.

* There is no one system (which is why the title is "The" Social Credit System, the scare quotes are there on purpose!), but ~70 local experiments, with the talk focusing on three of these (~19:45)

There isn't a central one. To be fair many credit systems exist for a while, for example financial credits from banks, traffic violation credit from DOT, airplane/train black-list, Dang'an system (rongcheng), etc. All of them aren't much different from their western counterparts, with one exception (Dang'an).

* Alibaba's Sesame/Zhima system is not government-accredited (~26:00) and has a lot of shopping/loyalty card features (pay with Alipay, earn points!)

Worked in Alibaba before and can confirm. Not government-accredited and not much different from a financial credit score, though much more commercial institutes are adapting it. For example, you don't need to pay deposit when opening a bike sharing account if you sesame score is above a threshold.

* The current systems have many crippling flaws, like rich people being trivially able to buy their way to good scores to paper over their sins (~35:00)

Not true for the majority but there's one exception. You can pay others to 'deduct' your traffic violation points. However it's not exactly buying way to good scores. Let me explain. In China violation is caught on traffic camera 99% of the time, while in the US most tickets are issued by a police officer. Thus the violation is issued on the vehicle since there's no way to identify who's the driver from camera footage. So people literally can claim someone else is driving the vehicle and points will be deducted from their account. Everyone has 12 points, refreshed every year. Most time that's enough to cover minor incidents.

* Some type of nationwide system is likely to be rolled out nationally at some point, but the details are still very fuzzy (~49:00)

There's proposal but I think it's both stupid and infeasible to design such a score. And various credit scores are already implemented and functioning, there's no need to get a new one.
Sorry, that's the one I meant to link above. Thanks for putting it up.
I've had this latent thought for a while that I'm finally putting to words:

The complexity goes somewhere.

It's either into lots tests, or it's into something like shuttle style with lots of comments, or it's into a huge QA department, or it's into the type system / DB schema. It could even be going into the org structure!

But something, somewhere is handling the complexity and it is doing so as a partial function to the economic importance of the software to the stakeholders of the software.
Doubt it but always worth trying these attacks yourself to make sure.
What's the explanation for pollution when the means of production belong to the people? https://www.nytimes.com/1986/05/11/world/east-bloc-aides-cit...
Just bought new Honda from the least known shady dealer in the town and even they were so crooked. They added in Karr Security Alarm for $999. It's like buying PC with malware. Then they tried to push paint protector for another $400. Again complete scam. As I refused all these, their finance guy tried to push Century Automotive Services after-market service contract for $2400. Again complete waste.

I told them I don't mind paying money but at very least they should be giving something actually useful like tinted window or Satellite radio. They guy starred at me with blank.

It is mind boggling that even mega brands like Honda are not able to tame these snake oil salesman. Honda literally gives away monopoly over entire region to them. Can't they simply require them not to engage in these practices? Why is this so hard?
It was the multiple gigabyte steam updates that ruined this game for my group of friends. Coming home from work to find that someone has four hours worth of downloads before you could all play together? We moved on to more reliable pastures.
Divorce gets real vindictive real fast
Subpixel Text Encoding
tell me about it.

I openly smoke marijuana in public places. Why?

It's a LOT LESS HARMFUL THAN SECOND HAND TOBACCO.

I see uninformed parents scowling at me for blowing marijuana smoke away from them while they are smoking cigarettes infront of their kids.

Anyways, if you see a guy smoking weed around Robson square, that's me.
If you have twenty producers and twenty consumers and transactions you are going to get all types of dead lock scenerios. I have one queue process that at its maximum scaling has 16 processes consuming a queue with 10 messages each running 10 threads - 160 messages at once. They are only doing inserts and updates - at most a row lock.

But if they had to have queueing logic in the database, you would have to have locks on the table holding the messages and the statuses of the messages. Not to mention even more of a database load to delete the messages. Of course on top of that you are constantly polling the database.

Now compare that to a purpose built queueing system where you just read from the queue, it automatically marks the messages as unavailable- “in flight” - and that will automatically requeue the message after a certain amount of time of it isn’t deleted.

As opposed to a database system where either messages get stuck in “processing” status of a job fails or you have another process reading the queue and “fixing” the issue after a certain amount of time has passed.

And finally, what happens if you need a fan out type of queue? Where you have one producer and multiple types of consumers?
Samiul Haq was murdered shortly after the election in Pakistan. Let’s give Facebook some credit for exercising due caution there.
Great. Except nobody is using that definition when talking about policing online speech. In fact those categories of speech have never been protected. It’s never been legal to solicit violence or to harass people. None of the big tech firms that have engaged in this type of censorship have done so solely on the basis of policing non-protected speech, so it’s entirely dishonest to say that hate speech starts and ends with with legal statutes.
You don't know how good you have it... over the past 10 years the luxury of a cube has been going to the grave, like private offices for everyone did a ways back.
Most of those papers’ first authors were in industry shortly afterwards. Most grad students go directly to industry and take their knowledge with them.
This man just crossed Antarctica alone – and in record time
I keep hearing that additional social networks will solve the problem. How exactly do additional social networks solve this problem? Won't they be even more inclined to serve addictive content under the threat of cut throat competition. For example, WhatsApp too used a lot for propagation of rumours. How will additional social networks make people immune from their biases, or magically neutralize all the extrme opinion on the internet. How will additional social networks magically verify facts?
I'm sure experiences are all over, I agree.

But again, this thread stems from the OP's vitriol towards dealers, and implication that Tesla has solved that. They certainly have not.
It seems like you don’t want to hear dissenting opinions because you have a vested interest in crypto and it’s unpleasant to consider that you may be wrong. His opinion is just as valid as yours, and HN exists for such discussion. So, in the interest of hearing both sides, what benefits do you claim crypto provides that aren’t already provided by fiat currency?
JDK 11 Support and Enhanced Import of Calendars from Primavera DB Using Java API
A good try from a JS perspective however:

1) view is immutable in both cases

2) GGP is returning in a void block so both sets of code will fail

3) there is really no difference except iteration vs function calls as far as I can tell, you can iterate arrays and use higher order functions built into arrays... which seems normal

4) you can only access the index in (1) by calling .enumerated() I suppose.
Whoever wrote their rulebook used Apple's emoji instead of Facebook's own.
fine jesus.
Also async!
I don't see how "I can't learn more because they work for ExampleCo on proprietary technology" is an improvement on "I can't learn more because it's behind a paywall, along with everything it refers to and everything that refers to it".

Google was founded, quite literally, out of studying the graph of literature. Here's one way they can move that original vision a little closer to reality.
Yes I agree.
most people who come to us at alpes AI do care about training time.
how fast they can do experiments

Another important aspect is training and incremental training on edge device.

At the time when privacy is becoming very important and you cannot export data from mobile devices etc. Training time on mobile is an important factor
> I am amazed that they sell such ridiculously dangerous chemicals to the general public!

HF is a very simple compound that anyone who knows what they're doing could produce on their own. Restricting access to such things is inherently worse than providing it, because anyone who doesn't know what they're doing could attempt to produce it themselves.

Then in the best case they end up with the acid regardless and in the worst case they get the concentration wrong or produce who knows what other compound by mistake that may or may not eat through the container they're holding it it, fill the room with poison gas or cause a large fire or explosion.
Here is a non paywall link.

http://archive.is/2xYem
I work for a startup with two people and the other guy can't pay a real salary or benefits. So I can't really afford to live in nice areas of the US or really even afford the health insurance and medication for just me even after subsidies. If I needed to visit a hospital in the US without insurance, I know I would be bankrupt.

So my solution is until business starts making money I am going to continue to live in Mexico and get Mexican health insurance.
The myth of the retail apocalypse: A long-read Q&A with economist Michael Mandel
Pretty sure people need money in order to have them decide how to spend it, and that most people can't personally save their way into affording million-dollar cancer treatments.

I don't particularly trust cutthroat employers, who have demonstrated their desire to do everything they can to undercut the salaries and benefits of their employees to expand a bottom line, to properly value and choose to provide the necessary income to give their employees humane standards of living.

Though I do think that a fixed minimum wage where you have to have to have heated debates every time cost of living changes about what it should be set to, is silly. If it's supposed to reflect the ability to achieve a minimum standard of living, let's at least set it dynamically against the price of a typical basket of goods; or use a different mechanism than a minimum wage altogether to achieve that minimum standard of living.
There's many different directions to go in.

On the more jazzy/instrumental side:

BADBADNOTGOOD - Confessions: https://www.youtube.com/watch?v=CWF2jHFkNpk

Rob Araujo - Nineteen: https://www.youtube.com/watch?v=p3J11saZ1TU

Binkbeats - Little Nerves: https://www.youtube.com/watch?v=zfpSn7ZYC0A

Jaga Jazzist - Animal Chin: https://www.youtube.com/watch?v=HVIFUQV20NM

On the hip-hop/R&B side:

Otis Junior + Dr. Dundiff - Me vs Me: https://www.youtube.com/watch?v=-Aqqv6kQnbw

Woo Park - Boom Bap: https://www.youtube.com/watch?v=ZTLRUG5k1HY

April + Vista - Beasts: https://www.youtube.com/watch?v=yLb-swDzbv0

The Internet - Under Control: https://www.youtube.com/watch?v=cSlnd4YnmGI

Other artists that are all over the place, and have lots of jazz influences:

Hiatus Kaiyote - Mobius Streak: https://www.youtube.com/watch?v=lCvMtQSdCXo

Taylor McFerrin - Already There: https://www.youtube.com/watch?v=vY-MZ0bL1Gc

Anderson .Paak - The Season/Carry Me: https://www.youtube.com/watch?v=9v5-0caYfqc
I opened up the RSA SecureID token I had years ago. It had a glue poured inside until the whole thing was basically solid. I spent hours trying to pull bits off it and ended up snapping the board.

It's overly surprisingly to me something so simple didn't seem to be a feature in these devices.
The average person ends up paying a lot more. Here is where I got my data from

Ford F150 -
https://www.truecar.com/prices-new/ford/f-150-pricing/

Chevy Silverado -
https://www.truecar.com/prices-new/chevrolet/silverado-1500-...

Thats the actual average paid.
I do wonder if there's a breaking point where people won't be willing to pay the premium. Current rents are already severely stretching the budgets of your average entry-level techie.

EDIT: some early evidence to that speculation: https://sanfrancisco.cbslocal.com/2018/10/19/bay-area-rents-...
I have a 2017 Mini and I have all these problems. The audio clips and has other issues when played over USB, but not Bluetooth. So I have to choose between good audio and charging my phone. I’m about to buy a USB adapter that plugs into the cigarette lighter just to fix this problem.

Just as you describe, the entertainment system UI is god awful too.
That is the actual transaction cost. The MSRP is lower for base model's but most cars sold are not base models.
There are "no haggle" dealers though and there have been brands over the years that were no haggle. But it has to pretty much be at the brand level at least or the process doesn't work in the consumer's favor. And that doesn't even account for financing and trade-ins.

However, especially as you get to luxury brands and buyers aren't trying to get to minimal prices, I expect the "dealer experience" gets better.
A Single Cell Hints at a Solution to the Biggest Problem in Computer Science
From Facebook's perspective, what is the alternative? _Not_ trying to define censorship guidelines - and consequently (as we saw in Myanmar) enabling genocide?
Cloudflare Dynamic DNS (DDNS) Updater
you are comparing apples to oranges.
Sorry, I have no experience with Tesla. I see what you mean on the forums. That is indeed very poor and contrary to inspection on delivery practices.
I think it's fair to express rationale in comments, but the following works for me without comment:

transactionsLeapDayAdjusted = transactions.map(t => t.date == '29-Feb' ? {date: '28-Feb', ...t} : t)

One thing I always push back on is references to ticket numbers or other external systems (except perhaps e.g. ISO standards). Repos should be self contained and perpetual. One might not have access to the ticket system now, or ten years from now.
Those aftermarket warrantees and add ons are nearly pure profit. That's why they push them. They probably make more selling the warranty than they do selling the car itself.