skysight-inc/HackerNews huggingface dataset:
Cargo is a gold standard imho, but there are definitely some simplifying decisions it makes that might not fit Python:

- Dependencies and executables can run arbitrary code during build. For example, Cargo knows almost nothing about how to build C code, and the common workflow is to pull in the popular `cc` library for this and call it in your build.rs.

- There's mostly no such thing as "installing a library", and each project builds its dependencies from source. This is baked in at the Cargo level (the install command just doesn't work for library crates) and also at the language level (no stable ABI besides "extern C").

- Related to that, the final product of a Cargo workflow is a mostly-statically-linked binary, so there isn't really an equivalent to virtualenv.
Porn is one thing, the word Beej is quite another. I wish this was a joke.
More than a decade from now, and that’s assuming the EV market continues to advance the technology as much as is predicted.
Just in the first half of your comment, it reminds me of Diane Coyle's long standing argument that the GDP, and many productivity indexes, are just very sexist and not for any real reason other than our patriarchal government, and economics specifically.

Here's an interview podcast with her, but I am not sure if that is the one covering her book on the subject or if that came later: https://pitchforkeconomics.com/episode/how-should-we-measure...
> If you drive away enough users

We don't have any hard numbers but I'm curious why you think network effects would apply here.

Twitter's audience is not the same as it was 10 years ago, when the tech/tech-adjacent Twitter audience made a huge fuss over API access, and they were probably generating close to a majority of the content at that time.

I think it's likely this group is too small to matter now.
For occasional commutes, 115km one way is ok (not for me, but it's not unthinkable).

But 115km each way (230km round trip) 5 days per week is a problem. We should not be doing this, at least not in individual cars. That electric car is still creating a lot of particulate pollution from the tires on the road, not to mention its contribution to general traffic.

The focus should be on how to reduce the commute distance (or eliminate it as often as possible), and to build/use efficient mass transit systems.

So much of our intellectual and financial energy seems to be directed toward overclocking the horse and buggy - with diminishing returns. At some point it's time to step back and rethink the greater system. (I believe that point was 20+ years ago, when it became clear that cities would continue to become the population growth centers.)
Nope - it happens in several other ways that I've described in my posts. It just hasn't happened in this space yet.
Regarding the blurry icons in alt tab, I think this is a general problem on Linux and not KDE specific. I had the same issue with certain icons in Cinnamon, and the following steps fixed it for me:

Find the desktop file, for Cinnamon they're stored in /usr/share/applications

For the blurry icon, append to the end of the file (obviously replacing Audacity with the app name)

StartupWMClass=Audacity
Also https://exodus-privacy.eu.org/
Sure but installing a new copy would defeat the space savings. The goal of this was to get the desired effect without wasting as much space. I wasn't trying to optimize purely for ease of use.

Put another way, my suggestion was to migrate from symbolic links to hard links.
Enabling Bluetooth connections on Stadia Controllers
Many of us do, yes. Drive it until it’s primary worth is scrap.
Your car breaks. What. Do. You Do.

The guy replying to you said it's a pretty unlikely situation, so you treat it the same as other unlikely, but always present, issues that your car might have. You accept his answer.

Or you don't, and argue with him and say that you think he's wrong and it's going to happen too often, that's a fine reply too.

Adding more punctuation doesn't help.
TANSTAAFL and a modern web rendering engine is one of the nuclear power plant projects of software engineering. There is going to have to be a large engineering effort behind building any of them. And expecting software to be completely free and for everyone to work for peanuts is just exploitative. There are also only three alternatives and you don't get to choose some naively idealistic FOSS implementation that doesn't exist. Tearing down Firefox only makes Google and Apple stronger.
Reminds me of something you would see in a newer modern remake of Decasia.

https://en.wikipedia.org/wiki/Decasia
https://www.youtube.com/watch?v=hDa-mmSldDg
For a more modern language that scratches the same minimalist syntax itch as Forth, try Red [1]. It's list-based rather than stack-based and includes the "killer app" of a really nice DSL for GUI layout. Even including the excellent PySimpleGUI, it's the fastest way to build up a custom GUI without a GUI builder tool.

[1] http://redprogramming.com/Getting%20Started.html
In many cities I think that this is a good idea, but in New York I worry about how effective this would be because of the outsized number of non-resident, non-tax-paying riders (tourists) who use the system.
There’s a place for small packages, but is-even/is-odd is a bit too small to be a reasonable package. It is far easier to just write `x % 2 === 0` inline, which is an obvious idiom, instead of installing and importing a separate package for this. The use of is-odd by is-even can be confusing for users. For example, you may call isEven(0.5) and get the following error:

RangeError: is-odd expects an integer.
at isOdd (/tmp/mynodeproject/node_modules/is-odd/index.js:17:11)
at isEven (/tmp/mynodeproject/node_modules/is-even/index.js:13:11)
at Object.<anonymous> (/tmp/mynodeproject/index.js:3:13)

(But the main point of the demonstration was to showcase dependency resolution and where it looks for packages.)
Been working on this exact thing for nearly two years at https://www.phylum.io. We identified and reported about 1.2k packages in ecosystems like npm, pypi and others last year. GitHub app that checks your PRs for malware. We also built a free open source sandbox for package installations [1] so if malware does get executed it’s done in a locked down environment. Happy to chat further about this sort of thing, it’s something I’m wildly interested in!

[1] https://github.com/phylum-dev/birdcage
You could use `pip-compile` if you want full pinning. That's what we do on another project -- we use GitHub Actions with `pip-compile` to provide a fully frozen copy of the dependency tree for users who'd like that[1].

In the context of `pip-audit`, that makes a little less sense: most of our dependencies are semantically versioned, and we'd rather users receive patches and fixes to our subdependencies automatically, rather than having to wait for us to release a corresponding fix version. Similarly, we expect users to install `pip-audit` into pre-existing virtual environments, meaning that excessive pinning will produce overly conservative dependency conflict errors.

[1]: https://github.com/sigstore/sigstore-python/tree/main/instal...
Whenever I have lots of files that need to go into a directory, I'll split into subdirs by prefix (or other partitioning scheme)--look in .git/objects for example.

Also be careful if the function that returns directory contents sorts results that you don't need done.
My question for you is does your intuition think this trend will continue, or is it temporary?

Your naive hypothesis is true. The ratio of cash to non-cash has been decreasing over time, as more digital payments are used. As everyone also knows, cash is a nominal value, it doesn't inflate. Anyone trying to intuit cash demand would be thinking about inflation rates and nominal gdp growth.

In fact this naive thinking is a pretty good explanation for the graph in your source: https://www.rba.gov.au/publications/bulletin/2021/mar/images...

I think digital payments would explain a lot of why the correlation sharply reverses in 2020.

The problem is if you want to go further and say; since digital payments will increase during the pandemic, all demand for cash will decrease. I disagree that's an intuitive idea.

Covid changed the money supply and peoples behavior rapidly, saying you can't use intuition under higher uncertainty is a tautology - no field is immune to this. Also going past intuition, the decline in cash as a percentage of total money accelerated, due to the M2 increase being much larger.

Just because covid shocked a few things doesn't mean that economics insn't intuitive or that peoples intuition is wrong. It's like trying to reason about terrorist attack danger using data just after 9/11.
How so, exactly? There's no way for anyone to check how much a battery was charged regularly, just like there's no way to check if a car was only used to drive to church once a week or driven like a hooligan hitting redline all the time - I'm not suggesting fraud of course, far from it - just that buyers have to assume the worst possible use case, and if so I don't see how actually regularly charging the battery to max affects the resale value at all. Besides, I don't expect the resale value to be very high after 8 years(realistically more) anyway.
I don’t think there’s much complaining in the C#/.NET ecosystem. Sure, there are alternate tools (FAKE for F#), but I believe most people are happy enough with dotnet.exe/msbuild/nuget.
I always like to say that's barring divine inspiration, it's impossible to make the right choice. It's far more possible to make a choice and then work hard to make it right
For me, it stimulates a mental shift that could be good exercise elsewhere: instead of storing the string, you find the string somewhere and store its index.

It also stimulate the imagination: what other transcendental numbers might this work with? How long do you have to search in the digits to find your string? What can you say about the size of the index (how far you searched) vs your string length? Etc. It's patterns all the way down.
The machine doing the torrenting is tied directly to the access point, everything else is over wifi.
Intro to Chroma: From RGB to Component Video
What about duplicate content? Have you tried searching direct quotes from your writing?
There's no talk of outlawing any vehicles people already own. You won't be able to buy a brand new one in a decade, but there's no indication you won't be able to use one you already own.
With a spoon, anything you add will probably make it worse, you can sit and think and not find anything to change other than the material. If I give it adjustable length, the mechanism may be unsanitary. There's no long list of features to pick from, once you've decided you're not making a spork, there's no real question of what to include, so the feature set(Be spoon) feels perfect, since I have no alternate design to compare it to.

Respectfully, this is completely untrue. If you really study spoons you will notice they exist in various scales, shapes, depths and materials for good reason. Furthermore, some are single use while others are optimized for longevity, various surface properties, weight, reduced physical envelope, ergonomics, aesthetics, strength, rigidity or flexibility, handling of liquids-vs-solids, pouring, surface piercing, tasting, use by machine, specific length, safety, environmental impact, regulatory requirements, measurement, cost of manufacture, logistic concerns or some other set of requirements.

Some clearer examples to consider are a wooden spoon used for mixing in a traditional kitchen baking context, a foldable single-use polymer spoon atop a yoghurt container, a traditional English teaspoon with decorative enamel, a ground coffee spoon, measurement spoons and the entire category of ladle-like instruments.

(Source: Stepped out of pure software 7 years ago to work in food robotics.)
https://tinyclouds.org/rant
src: https://betterexplained.com/articles/colorized-math-equation...
The normal method for computing digits of pi is not O(n), so this could still be interesting. I think it's probably better to compare this with the BBP formula [1]. The commonly used algorithm for pi I think still takes O(n log^3 n) time [2]

[1] https://en.wikipedia.org/wiki/Bailey%E2%80%93Borwein%E2%80%9...

[2] https://en.wikipedia.org/wiki/Chudnovsky_algorithm
Google Chrome Security Vulnerability Detected Could Lead to Crypto Wallet Steal
You went to the gulag in the Soviet Union for relatively minor offenses, real or imagined. You might be sent there if you annoyed the local party leadership, or maybe broke his daughter's heart. Maybe someone wanted something of yours, so they reported you. You'd be snatched up on the way to the grocery store. Interrogated, made to sign a confession that someone else wrote. Then you were then shipped off, and none of the people you hold dear ever heard from you again.

Meanwhile, you went to gitmo if you were an armed combatant in an insurgency, or had a leadership/support role in a terrorist attack against US or her allies.

Read Aleksandr Solzhenitsyn - The Gulag Archipelago for a clear example of a) how Communist/Marxist/Leninist states are irrevocably totalitarian and b) how GITMO is not even remotely comparable to a gulag.

The book is a remarkable and often painful read. Not because of how it is written, but because what it is written about - a demonstration of the machinations and inevitable outcome of socialist states.
If he's an in-demand expert, it won't take long.

If market conditions changed where there's a glut of AI experts, this is exactly the situation where he shouldn't be fast-tracked to citizenship.
Or rather, they correctly determined that their opponents were totalitarians who fully intend to use their support for liberty to destroy them, and are acting accordingly.

This is kind of like finding someone who supports non-violence, physically choking him, and then sneering at him for going against his principles when he tries to fight back.

Maybe try listening to and understanding people instead of sneering at them.
Yes, I see what you're saying, but I think it depends which details are being highlighted. In this case the metaphor was based on the commonality of detention without trial. Of course it's not a perfect one for one; they're not literally gulags, but there are elements which are shared and I think those are what the person was trying to highlight.
> MacOS, iOS, and Windows are proprietary so they are dramatically worse off than Linux in security out of the gate. No one should use these that desires to maximize freedom, security and privacy.

Not sure how fair this is, even though I agree with you with regards to Linux being auditable and the others not.

Windows and macOS these days have vendor-provided code signing authorities that can be leveraged (and are by default), which provides at least some protection against malware at the macro level (in that the certificates can be revoked if something nefarious is identified). This doesn't exist at all in Linux, although third party products are in the early stages.

Windows 11 and macOS have hardware-backed root-of-trust. In Windows the root of trust is the TPM, on macOS it's the T2 (Intel) or the chip package (ARM).

Any of these features could be compromised without your knowing, but at least where you have control authorities for these systems you can draw some comfort in knowing that once new malware has been identified spreading on pretty much any machine, it can be stopped quite rapidly on all machines by revocation until the bug can be patched.
I like this HN pivot from rust to forth.
Spy software found a worker wasn't working as much. Now she must repay wages
> That electric car is still creating a lot of particulate pollution from the tires on the road

I hear this a lot, but how much pollution is it really? It surely doesn't register on any municipal particulate measurement station.
I always try to make some sort of pun, subtle joke, or other silliness. I don't think it matters at all.
I have to double down on this. Switching over my content consumption over to RSS has been proven to be beneficial. Every once in a while, I'll log in to the webapp to discover some new content creator (YouTube recommendation algorithm, despite all its flaws, is quite good). But more importantly, now I can spend days without feeling the urge to go on a YouTube rabbit hole, I can watch a video without the UI constantly pushing me to watch more.
You can do something similar in F#. This creates a cross-platform desktop GUI.

#!/usr/bin/env -S dotnet fsi

#r "nuget: Avalonia, 11.0.0-preview4"
#r "nuget: Avalonia.Desktop, 11.0.0-preview4"
#r "nuget: Avalonia.Themes.Fluent, 11.0.0-preview4"
#r "nuget: JaggerJo.Avalonia.FuncUI, 0.6.0-preview4"

open Avalonia
open Avalonia.Controls
open Avalonia.Controls.ApplicationLifetimes
open Avalonia.FuncUI
open Avalonia.FuncUI.DSL
open Avalonia.FuncUI.Hosts
open Avalonia.Layout
open Avalonia.Themes.Fluent
open System

module Main =
let view =
Component(fun ctx ->
DockPanel.create
[ DockPanel.children
[ TextBlock.create
[ TextBlock.fontSize 48.0
TextBlock.verticalAlignment VerticalAlignment.Center
TextBlock.horizontalAlignment HorizontalAlignment.Center
TextBlock.text "Hello world!" ] ] ])

type MainWindow() =
inherit HostWindow()

do
base.Title <- "Hello World!"
base.Height <- 400.0
base.Width <- 400.0
base.Content <- Main.view

type App() =
inherit Application()

override this.Initialize() =
this.Styles.Add(FluentTheme(baseUri = null, Mode = FluentThemeMode.Dark))

override this.OnFrameworkInitializationCompleted() =
match this.ApplicationLifetime with
| :? IClassicDesktopStyleApplicationLifetime as desktopLifetime ->
let mainWindow = MainWindow()
desktopLifetime.MainWindow <- mainWindow
| _ -> ()

AppBuilder
.Configure<App>()
.UsePlatformDetect()
.UseSkia()
.StartWithClassicDesktopLifetime(Environment.GetCommandLineArgs())
How is there a queue for a broken charger?

6% is likely enough to get you to another charging site, or a regular outlet for a slower charge. I’d expect AAA-style roadside assistance to deal with these scenarios in the near future, as well.
That lease is illegal under international law - it has no end date and Cuba can never get it back.

Go and try to lease a house forever on a fixed price - let me know how you get on
I don't know where you live but I learned fractional reserve and central banking in elementary school.
I don't know if many still use it but AWStats [1][2] is one of the oldest self hosted solutions. I used it ages ago. It uses access logs vs. other platforms depending on javascript being embedded in pages. It's had some vulnerabilities in the past so it should be protected by authentication. It depends on Perl and a web server that supports CGI scripts. Stats processing is done in cron against the access logs so there is no added load based on page visits. It could even be run on a separate machine/node that logs are aggregated to.

Part of the installation is configuring which log format your servers use. If using a non standard format one can map the related fields.

If configuring AWStats to perform reverse DNS lookups I would suggest also installing Unbound DNS specifically on that machine and setting the following in /etc/unbound/unbound.conf to minimize load on your upstream servers perhaps even higher:

cache-min-ttl: 86400
cache-max-ttl: 1209600
serve-expired: yes
serve-expired-ttl: 259200
serve-expired-reply-ttl: 30
serve-expired-ttl-reset: yes
val-bogus-ttl: 600
cache-max-negative-ttl: 86400
serve-expired-client-timeout: 1800

The above is specifically for machines dedicated to looking up a very large number of PTR records, not for a home router. Some DNS providers rate limit mass-lookups of IP addresses. PTR records are slow to change so a high TTL override on a log processing box is generally fine unless you care about short lived PTR records AWS, Azure, etc..

[1] - https://awstats.sourceforge.io/

[2] - https://github.com/eldy/AWStats
I mean, you can't walk to the nearest working charger with a gas can, but if you have your level 1 charger with you, you can probably find an outlet nearby. Utility electricity is nearly ubiquitous along highways. Any sort of building near a highway is bound to have electric service; the question is if you can convince the occupants to let you charge for a couple hours.

If there's a big queue, you just wait. Same as if there's a big queue at the fueling station.
That's a different thing though. Distro packages have to be approved by a human which adds a huge amount of admin overhead, delays and so on. I don't think anyone in most programming language communities wants that.

That said I don't know why there isn't more assistance to prevent typos and so on. You can automatically scan for similar packages with similar names and wildly different download counts and just ask the user "are you sure you didn't mean httplib?"
Nowadays, when I search for things, the results are often clearly pages that have come from a program scrapping sites and then merging them into one page. You can tell because the pages are not really coherent and quickly start to repeat themselves. I assume they are getting money through ads on the pages, though I never actually see the ads because of my blockers. I wish there was a button in the browser that I could click to report the page as spam to all search engines.
https://github.com/CookiePLMonster/SilentPatchCMR3
Gnome is the only Linux environment I know of (including DEs like KDE, window managers like Openbox and compositors like Sway) that support the TILED attribute (present in the monitor's EDID).

So high-end displays like LG Ultrafine 5K, etc. can only be used at native resolution under Gnome. All the others handle it as two displays.

:sad face:
Might want to put notice:

“There's a lot of requests currently and our servers are overloaded - sorry. I am trying to increase the capacity. Please try again later.”

…prior to making users do multiple clicks, opt to not provide an email, etc.
Scaramucci Invests in Crypto Firm Set Up by Ex-FTX US Head
> Books on modeling often jump right into math and methods. Drowned in detail, it can take years to appreciate the assumptions and limitations of the various modeling mindsets.

> Written in a clear and concise style, Modeling Mindsets introduces approaches such as Bayesian inference, supervised learning, causal inference, and more.

> After reading this book, you will have a much better understanding of the different approaches to modeling and be able to choose the right one for your problem.

https://book.modeling-mindsets.com/

Edit: Ah darn, I forgot about this part: "You should feel comfortable with at least one of the mindsets in this book". So perhaps not the best start if you don't have a base in at least one method. For frequentist statistics, consider https://www.openintro.org/book/os/
Please, fellow conservatives, please don't engage in "flagged" foolishness like the lefties.
Perhaps a bit off topic, but there must be some way to act as sort of a go-between for the US and EU, right? I mean you are going to have to put up with the sort of awkward automatic enthusiasm of Americans anyway, may as well take advantage of it!
Yeah many games now will block words even containing 'ass'. And they just do a complete substring search, so any of the totally normal words that happen to contain a s s are censored. I don't know why, but its so common that people will just censor themselves preemptively
Might want to put notice:

“There's a lot of requests currently and our servers are overloaded - sorry. I am trying to increase the capacity. Please try again later.”

…prior to making users do multiple clicks, opt to not provide an email, etc.

Even a prerecorded demo posted to Youtube would be a better experience.
> That electric car is still creating a lot of particulate pollution from the tires on the road

And brake dust, which includes a lot of metal
I think generally you should disclose a. if you work at the company and b. if you are related to a project at the company being discussed.

If you are a professional PR/spin person for the company, you should definitely disclose.