skysight-inc/HackerNews huggingface dataset:
Docker Not Doomed?
How to repair the parts that explode in Lenovo yoga laptops
Why do so many prefer strings over unix timestamps? Do they like making things that much more complicated for the sake of human readability?
> Now the police dreams that one look at the gigantic map on the office wall should suffice at any given moment to establish who is related to whom and in what degree of intimacy; and, theoretically, this dream is not unrealizable although its technical execution is bound to be somewhat difficult. If this map really did exist, not even memory would stand in the way of the totalitarian claim to domination; such a map might make it possible to obliterate people without any traces, as if they had never existed at all.

-- Hannah Arendt, "The Origins of Totalitarianism"

Timely as ever.
Source? As far as I know that's complete speculation. There is one single study which followed one single family and implicated one gene which may possibly allow people to be more alert on less sleep. Hardly scientific consensus.
> but as far as I'm aware only Tashpolat Tiyip and Halmurat Ghopur have been formally sentenced to death. Both at around the same time in late 2017 which suggest there might be firmer evidence behind the convictions.

This is an appeal to authority fallacy.

It also seems like you are only using this account to post hardline nationalistic remarks that are pro-censorship, pro-China. It might help the reader if you disclose your affiliation.
> Somehow it’s becoming _less_ functional over time with each major revision

I would argue that is now the normal case with almost every software. Technology had its peak some time ago. Most things are getting worse. The internet or telephones are great examples.
Tesla ranges (320+) are over 20 times the average commute (16 miles).

I think the more realistic scenario is that people charge less if the power is expensive, to full otherwise. Managed by a programmed policy.

Also, commute length will start trending down as we leave the cheap-gas phase of history behind - EVs are also too CO2 intensive to sustain the car based lifestyle.
I have the Fenix 5x Plus. I effin love this watch. 100m water proof. Weeks without charging. Easy to read, always on display. Sapphire screen. Tons of fitness metrics (even more on the 6). And as far as size. I love the look. I bought a watch. Not a mini phone that is missing functionality. Garmin Pay. Wireless music. Takes calls. Up to 72 hours of GPS. 72 f-cking hours of gps. Not 18 hours of normal use. That is GPS.
http://www.gnu.org/education/edu-schools.html
> particularly in the developing world where they can double as general electricity storage

I am from the developing world. I am middle class. I don't care much for general electricity storage.

I do care about a decent, low cost, 120 kM or so range car that is maintenance free.

This car, with around 9000 USD in price ought to be a game changer. The article states 30 kWH capacity for the battery.

A normal house in India is built in around 150 Sq. yards or about 1300 square feet. A 350 W solar panel costs about 12,000 Rs. (~180 USD). Assuming an average usable sunlit time of about 6 hours a day, it would take 14 such panels to charge the car fully.

A 12 V, 150 Ah battery (about 1.8 kWh) costs about 10,000 Rs (150 USD). To store 30 kWh, we would need about 16 batteries.

Since the range is about 120 kM, and assuming an average run of 60 kM per day (This is my actual mileage everyday, to and from work, and by most Indian standards, I am driving a lot)

Lets fix the total mileage covered by the car is about 200,000 km (60 km a day => 20,000 km a year => 10 years operation )

So, the car runs for two days, on a single charge. There are two ways, we can go about setting up a solar charger for the car.

1. Half panel Capacity, Half battery Capacity, Charge Daily

-> 7 x 350 W panels - Rs. 84,000
-> 8 x 12V, 150 Ah batteries - Rs. 80,000
-> System setup and mounting - 10% of cost, Rs. 16,000

Total cost : Rs. 180,000

2. Full panel capacity, Full battery Capacity, Charge once every two days.

-> 14 x 350 W panels - Rs. 168,000
-> 16 x 12V, 150 Ah batteries - Rs. 160,000
-> System setup and mounting - 10% of cost, Rs. 32,000

Total cost : Rs. 360,000

Choosing Option 1, Total car ownership & solar charging cost : 12,00,000 (~ 16,000 USD)

Now contrasting this to a petrol car.

Car Cost : Rs. 500,000 (Kwid petrol, AMT, Hyderabad)
Petrol Cost: Assuming
an average efficiency of 15 km / litre of fuel, and
total running of 200,000 km
and average price of Rs. 80 per litre of petrol -

Total cost of fuel itself comes to : Rs. 11,00,000

Maintenance cost : Rs. 0.3 / kM (Maintenance charges for my vehicle, averaged over 300,000 kM, between two cars, both from same company)

Cost for 200,000 kM -> 60,000 Rs.

Total cost of ownership of a petrol car : 16,60,000 (~22,000 USD)

The economics work out better if more distance is driven.

This EV model seems very much suited to India.
You may want to contact Twilio abuse and ask them if they operate that number, and if so, point them to the terms of service that issued it and note that they appear to be a flight-by-night credential harvester.
As an audio developer, making a timer metronome is the wrong approach. Still, many metronome apps with this design flaw exists and... they perform bad.
(that's why prescheduled audio events works best...)

Timers in general will jitter.

Audio processing usually involves a callback to process an audio block (array of audio samples... floats).

To simplify things, this audio block runs on realtime thread and copies the block to desired output. you're guaranteed it'll be continuous between each call.
(you can cause overflow/stutter if you hold it for too long).

With setTimer approaches each callback WILL have offset.
But if you need to synchronize things or your metronome needs to run with other audio, it WILL be jerky.
That's why a proper metronome would also be 'sample accurate'.

WebAudio / AudioContext was made exactly to solve that!

similar to common audio processing standard, you end up getting a callback and usually need to use WebAsm/C++ under the hood to keep the golden DSP rule - never allocate on block processing callback.

btw, on Firefox 69 (macOS) only the pre-scheduled audio made a sound :)
Apparently Apple has given up on the whole “common sense thing” that the touted during the iPhone 5 days - https://youtu.be/O99m7lebirE
I would imagine that not enough people enjoyed it for the price they asked for.
Every part of that is untrue.
It would be interesting if logic units were uncoupled from cores, then multiple cores could share multiple logic units, reducing contention pressure. As it is, all designs treat CPUs as a series of chiplets.
Can't read the article Simmons. What the fuck dude?
For a similarly fascinating, curiously parallel autobiography -- another western, idealistic leftist losing his illusions about Stalin's regime -- pick up Whitaker Chambers' Witness.

A favorite passage ponders at length a tiny note, smuggled out of a Moscow prison, where Chambers' now-purged controller awaited execution. From memory: "'You will meet a man. You will think of him as your friend.' What could it mean but that he would not be my friend?"
We've banned this account for posting unsubstantive comments and breaking the site guidelines.

No, that's not because we're secret communists.

https://news.ycombinator.com/newsguidelines.html
I'm pretty sure Einstein didn't agree with quantum physics either.

Clearly you can do foundational work in a field & still go on to misunderstand its basic principles! :)
Not inside of useEffect.
What do you mean trivial to bypass? If I have an account secured with a password and with Duo, then I give you my password, can you get into my account? How?
Writing yet another I quit social media and now my life is better but dishonestly saying in the title that nothing happened is clickbaitey
Where have all the seed deals gone?
I think his question could be rephrased as "why don't we witness a mass epidemic of parents falling asleep"?

I think many 20 and 30 somethings (without kids) who, if they were to get under 6 or so hours of sleep for a couple nights, would automatically pass out on the train/subway/bus/etc, in public.

So how are (seemingly most) parents getting 4 hours of sleep for extended periods of time yet aren't falling asleep on public transit on their way to work?
Air quality is one. Wanting to help with climate change is another.
To explain what's going on here for the unaware —

1) Duo is a commercial service that offers multi-factor authentication through a variety of means, one of which is the Phone Call.

2) This site lets you register them as your Duo phone number, when demanded to do so by someone who's trying to protect your high-value access from being hijacked (such as your employer).

3) This site provides you a phone number that auto-accepts all Duo authentication requests, even if you're asleep, offline, or otherwise not authorizing the hacking activity.

4) This site has zero contact information and accountability, and could very well be backed by a black market site that offers hackers lookup access for any Duo phone number for $50/number.

NOTE: I, personally, would absolutely push to fire anyone I found using this, no matter where I worked.
Join this because of Keybase
If only Reid Hoffman, Bill Gates, Elon Musk, Sergey Brin, and Jeff Bezos had demonstrated a similar desire for remove from Jeffrey Epstein, maybe this forum wouldn't have to grapple with an avalanche of headlines about Epstein's close ties to the tech industry, but alas.
Until software engineers are personably liable for their work like civil and mechanical engineers are and have to carry insurance because they will get sued for negligence if there are issues, it’s not professional engineering.
Sometimes all you need in order to gain that self control is to have your nose rubbed in it.

Much as we hate them, this is one way that detailed timesheets help. The very fact that you're writing down what you were doing for each half-hour or whatever is enough to keep you focused because even if there are no further repercussions, you really don't want to write "hacker news 3.5 hours".

Speaking of which... closes tab
Facebook launches $10m deepfake detection project
Yeah.

We need all the data there is. Plus enough AI to analyze it, and provide actionable intelligence. So you need to give us lots of money. Really, lots. And trust us. A lot.
Requiring periodic yields in user code strikes me as indicating a dedication to simplicity. It was no great burden to add a few instructions to a program, and it apparently saved them from needing to implement a forced, transparent context switch mechanism.
> hardline nationalistic remarks

If by hardline you mean balanced instead o flow effort western echochamber hot takes then sure. I literally just submitted a post on Chinese rural surveillance program today. Prior to that a post on US company sentiment about Chinese tradewar using both US and Chinese commerce department data. So maybe use some common sense before throwing accusations.

I also post in health and construction related stuff when it comes up, or Chinese geopolitics. The latter just happens to be more popular and filled with misinformation.

Also you're literally a 1 comment throwaway account used to throw shade. I'm not concerned with my partiality.

E: forgot to address your low effort, no contributory appeal to authority retort: highlighting the greater context and atypical nature of formal death sentences is not an appeal to authority but provides actual information relevant to the subject matter. CPC could executed any of the 13,000 terrorists it claimed to have caught since Strike Hard escalation in 2016, instead it chose to execute these two? Why? The reasons are worth considering. And it's not even that I don't believe CPC wouldn't trump up charges or that the situation in XinJiang is grossly unnecessary, but I also don't think that these two couldn't also be both excellent academic scholars but also maybe have funded or sheltered Turkmenistan terrorists on the side. They're not incompatible notions.
you need an older account for the airdrop
This is a good article, and I very much agree that the second trade-off is the really dangerous one. I play Clash Royale, and I enjoy the game, but it does strongly exhibit these qualities, I definitely notice that ladder play is consistently irritating, because (being a decent player) I'm always stacked up against players with higher level cards at the same ladder level as me. So, most of the games I lose are against less skilled players with stronger cards, which is frustrating, and most of the games I win are vs less skilled players as well, which is better than losing, but not as much fun as winning against an equally skilled opponent. The only way around this is to reach the 'top' of ladder, where everyone has maxed out decks, which requires a lot of grinding or spending money. Tradeoff one in action.

More pernicious is tradeoff two though. There are myriad timers in the game to unlock various rewards; if you want to take advantage of everything you're playing something like an hour to 90 minutes a day on average, but it's spread out in little 3-6 minute chunks so it feels like less—but you're having to log into the game very regularly. This aspect is not fun, and it can tend to keep it back of mind all the time, just like the article describes.

I deal with it by just not worrying too much about optimizing everything, but that's mildly irritating too. If it gets too much so, I'll likely just stop playing. Really do miss the pre-FTP days though, when you bought a game and then you owned it and could get the full experience without any of this bullshit.
They can make the string part optional. Variables and symbol tables have been staples of programming languages and compilers for ages now. It's a very standard pattern. Nothing Rube-Goldberg about it.

But React has deviated so far from both the OOP, FP, and traditional programming paradigms that now it kind of feels like hacks are needed to compensate for hacks.
I wouldn't call it privilege. I think it's more about accepting that there's nothing they can do to change the course of events. Whether they add their voice or not to Twitter discussions, it won't change people's opinions.

There are many rights under attack. They are rights all of us share and with them being stripped or changed we all lose. The GP is avoiding discussions about those rights as well.

I've also done what the GP has done. It's not because the decisions that are made don't affect me, but that past experience has shown me that what I think is irrelevant to the outcome. Yet paying such attention to these topics just weighs on me and negatively impacts my life.
Ex-uber engineer here. Uber's chat app is based on Mattermost, not built from scratch.
Ask HN: How to restore access to the BTC wallet with only a private key?
Fine: USA, #1 when compared to developing nations.

Got an answer to my first sentence?
Sort of a dunning Krueger for sleep aptitude
California passes bill that classifies gig economy workers as employees
Perhaps it was horrible, but it allowed me to jump directly into specific features of an app. With only a bit of practice. Now you need to wait for the long press or first start the app and something. Sending a message or mail to favourites now became slower.
Cloudflare Discloses Possible Sanctions Violations
This is assuming that Bitcoin wasn't invented by a government in the first place. Cryptos have a strong benefit to central authority in that they are simple to track flows of money, it's impossible to play a shell game if you can check the block chain. It becomes very easy to check the full transaction history of someone if you find out their addresses. Here is an NSA paper on cryptocurrency that came out in 1996
https://groups.csail.mit.edu/mac/classes/6.805/articles/mone...
Anyone else notice how thin the tyres are? Kind of reminds me of the CV 2ch :)
This is completely true. I just want to add that the problem with currently standard WebAudio is that the audio callback still goes into the main js context/thread, so any custom callbacks via ScriptProcessorNode can be pre-empted by pretty much anything. That means that the target latency is the upper time bound for any js callback or work unit, and it gets really iffy when you approach real-ish time (10ms or so).

The next attempt is AudioWorklet, which runs in a separate js context and on the audio thread. Sadly still exclusively in Chrome, so I can't be bothered to invest heavily in it.
I programmed one of those in Wirth Pascal, as a freshman at Oregon State University in 1979. Then they retired it, installing a Honeywell running Multics. Then, they replaced that with a Vax 750. It was a step down in awesomeness each time.

The most popular parts of the 6600, as souvenirs, were the smoked-glass cabinet doors.
Fzf – A Quick Fuzzy File Search from Linux Terminal
OK that's clever but you are still bypassing 2FA and I am baffled why would you want to do that -- just switch off 2FA if it's annoying? If your employer doesn't let you and you bypass like this (I presume you are entering your password on the laptop too) then you are begging to be fired.
I don't think we are going to get any "understanding" from a 160 character tweet.

But 160 characters is plenty of room to pay yourself on the back publicly and feed your own ego.
You think Slack came up with that design? Hah.
Because hacker news is visible and central enough to be of interest to all state actors.
I think history has shown many times that generally open societies are good for both the economy and for future strength of the country. It is nice to see a well reasoned analysis of specific applications in Canada.
You need to edit your profile page and put that info in it, e.g.
https://news.ycombinator.com/user?id=yersin
I recently worked with a ex-uber engineer, hired by a ex-uber engineer manager. We were piloting use of launchdarkly, and he suggested we just build it ourselves as he has already done it few times and would take him only few months to build.
Existentially quantified, no. Universally quantified, yes. (Key: “not everyone”)

Bill Gates is not really typical high society anyways.
Since this is Hacker News and not the Haskell subreddit, though, I feel obligated to answer the inevitable "Why should 'normal' developers care?" question that often comes up here whenever people talk about functional programming.

My answer is that I believe mathematics is worth doing, and that math has improved the human experience immeasurably, in aesthetics, in ethics, and, yes, also in commerce and technology. Given this, I want to build the best tools possible for enabling our collective exploration of math.

There's a wonderful result from programming language theory called the Curry-Howard isomorphism that says there is a correspondence between all of math and all of programming. Every program is a proof, every theorem is a type https://en.wikipedia.org/wiki/Curry%E2%80%93Howard_correspon.... This means we can (and should) use computers as mathematical prostheses, to enable each of our human brain's ability to reason in this field.

And, via Curry-Howard, if we can make it easier to reason about math using computers, we coincidentally will make it easier to reason about computers using math. The two fields are, in essence, the same.

TL;DR "You may not be interested in mathematics, but mathematics is interested in you!"
The thing I don’t like about these tools is that they all imply a core, unspoken taskmaster in the form of a project manager assigning tasks and then chases people down for it, and their whole paradigm is built around that.

The future of workplace collaboration is not in the structured silos like these that are shaped based on project managers’ demands - it arises from the engineers doing the actual work. JIRA, Confluence and its ilk can work for a team where software engineers are replaceable - in fact, one of their main goals is to make them so - but in a startup team, trying to apply this usually leads to people quitting for a better startup. Probably rightfully so.

Full disclosure, I work on a tool (https://aether.app) that does a more organic async collaboration between engineers than explicit task-based project management, so I’m biased.
> Housing in other parts of the country is absurdly expensive too

No, this is easy to refute with a cursory look at the data.

Nationally, US median household income is 63 K (source: https://www.sentierresearch.com/pressreleases/Sentier_Househ...)

Nationally, the current US median house value according to Zillow (2019) is 229K (source:https://www.zillow.com/home-values/). This includes houses not up for sale.

The median value of houses listed for sale is about 290K, and the median value of houses sold was about 240K. This discrepancy is because higher priced houses languish on the market and cheaper houses sell more quickly, thus there is divergence between the median price of listed houses and the median price of sold houses.

Let's take the midpoint of that and say a household plunged into the housing market should expect to pay 265K. That's a multiple of 3.9. Let's say this household pays 10% down, then their mortgage payments would be about 1400 (use a mortgage calculator) or about 27% of the median household income of about 5.25K/month. This is affordable.

This is the same for specific areas. Take a look at Phoenix metro, the nation's fastest growing area. Median household income in 2017 was about 52K (source: https://www.census.gov/quickfacts/fact/table/phoenixcityariz...)

According to Zillow, median house prices in Phoenix in 2017 was about 200K. (source: https://www.zillow.com/phoenix-az/home-values/)

This is also about a 3.9 ratio.

But now, let's swing over to NYC. Median household income in NYC is higher than Phoenix, but not by that much. It's 61K. (source: https://www.baruch.cuny.edu/nycdata/income-taxes/med_hhold_i...). But the median house price in NYC in 2017 was absurdly high, about 600K (source: https://www.zillow.com/new-york-ny/home-values/). That's a multiple of 10.

So your choice is paying a multiple of 4 versus paying a multiple of 10. No wonder that people are moving out if they value owning their own home.

We can also look at home ownership rates. In the U.S. the home ownership rate is about 64%. In NYC, 30% of the units are owner occupied and 70% are renter occupied (source: https://www1.nyc.gov/assets/hpd/downloads/pdf/about/2017-hvs...). In Phoenix, 53% are owner occupied and 47% are renter occupied (source: https://www.towncharts.com/Arizona/Housing/Phoenix-city-AZ-H...)
Nationally, about 36% of housing units are renter occupied and 64% are owner occupied (source: https://fred.stlouisfed.org/graph/?g=oPyK)

So it's not true that wages are so much lower in the rest of the country that housing is equally unaffordable. Median household income is usually less than 10K higher in the expensive areas, but housing costs are 1/3 to 1/2 of what they are in the high priced areas. That explains much higher home ownership rates outside of the expensive areas.
Awful news for drivers. Good news for union parasites.
Show HN: Linkedin Public API for Python
Ask HN: Anyone in Shanghai/SF interested in meeting up?
In SF today. Will be in Shanghai next month.

Would love to meet anyone from the community in SF or Shanghai from any walks of life. Drinks + food on me. Email in bio!

Me:

- 20. Started a meal delivery, grossed $35K and achieved ramen profitability in ~6 months through word-of-mouth. Died to VC-funded (now-dead) competition a la Munchery and naivete.

- 24. Started import/export business, brought a product from napkin drawing => blueprint => full scale production in two Chinese factories => imported into US. Product live in 30+ food & beverage stores, including one Michelin-starred restaurant group.

- 25 today. Working as a product manager in SF. Realizing there is more to life than ruthless optimization of money and Techcrunch headlines.