skysight-inc/HackerNews huggingface dataset:
I'm the author of the `keyboard`[1] library mentioned in the article.

- It reads all events because it's meant to interface with your keyboard directly, for global hotkeys, macros, disabling or remaping keys, etc. Interacting with windows and per-application hotkeys are explicitly not a goal of the library at the moment.

- It reads /dev/input because the library was developed to work in as many environments as possible, including headless installations like raspberry pi's that may not have a graphical environment or even a monitor. There's an open change to _try_ to communicate with the X server first and fallback to /dev/input, but event suppression is not working reliably with this yet.

- It could read /dev/input by just being in the `input` group, but then `dumpkeys` doesn't work and you are stuck typing numeric scan codes instead of key names.

Due to a series of unfortunate personal circumstances I've been unable to give the proper maintenance the library requires, but the issues and thank yous have never stopped, and I'm slowly getting back to it again.

---

Little known trick: if you run the library as a standalone module (`python -m keyboard`), it prints a JSON object for each detected event. You can save them to a file and pipe them back (`python -m keyboard < events.txt`) to replay them like a macro.

Little known trick 2: I also created `mouse`[2], the companion library for my second favorite peripheral. It's the same thing, but for mouse events.

[1]: https://github.com/boppreh/keyboard

[2]: https://github.com/boppreh/mouse
Exactly, thanks. There's plenty of gold in those old threads.
Despite what Twitter might be saying, America is doing just fine.

Seems like the image of America crumbling over toilet paper is the real propaganda.
> high bitrate audio

Based on the opening part of that video, I think you must have meant to say high sampling rate.
Hmmmm,

Maybe by forming it as a question he is inviting someone to verify or revise that number.
It's the local European laws. For example in Finland, where I live all analytics software must display a consent because the data is used for non-essential purposes. Applies to Volument and our competitors. More details on this doc, which is co-authored with a GDPR official:

https://volument.com/learn/data-privacy
Pretty amusing premise given the US economy has already recovered from the intense pandemic hit in terms of its output, and it's still just getting warmed up. US GDP per capita will cross $70,000 shortly and its overall GDP figure will hit a new high this year.

Here are the countries that have higher per capita figures at present:

Switzerland, Norway, Ireland.

The US is soaring far beyond anything Europe or the EU broadly have managed in terms of economic recovery and the same goes for basically all major economies not named China (which largely sailed through the pandemic economically).
> Big Corp, especially big tech Corp, has a giant target on it’s back and is very risk adverse to firing (justifiably so)

Ex-Amazon here. Most FAANGs are known for their aggressive stack-ranking and high attrition rate. Amazon has the highest attrition rate.
Increasingly, this pressure is happening in college campuses as well (not just in America)

https://www.nytimes.com/2020/05/29/world/australia/drew-pavl...

https://www.washingtonexaminer.com/news/china-on-campus-doj-...

https://thefederalist.com/2020/08/25/american-universities-a...
Technology Connections has a good video on how CRT’s work: https://youtu.be/l4UgZBs7ZGo
One nuance of reality in the Western world is that the 3 latter agencies have a tendancy to perpetrate crimes & blame the Russians or Sadaam or Ghadafi or the Syrians or White Supremacy or the fall guy du jour.

The "weird trick" or "see something say something" or "kiss the Barney Stone" or "rub Buddha's Belly" or some other simple token action is an effective way to create engagement with a narrative.

Part of the art of "hacking" is social engineering after all.
I remember when "gapless playback" was a big deal when it was eventually added to iPods.
Inflation Is Back, Bitcoin Slumps, and Stocks Stay Volatile
Ask HN: Engineering Manager with No Work
Throwaway time. I've been an engineering manager for 5ish years in 2 different organizations. The first org was a large Fortune 100 and the second is a startup that I'm currently at. Now here's my dirty secret: most days, I don't have much work to do and it's been like this at both orgs.

I have direct reports and we have weekly/bi-weekly 1:1s. I'm also attached to a team and attend standups and other planning meetings, but most technical things get directed to the tech lead and most team things get directed to the team lead. I'm currently working on a restructuring plan, but the plan itself is done and currently waiting on sign off from above. I'm also researching some project management tools that I'll pitch to leadership, but again, not a huge priority and doesn't take up too much time.

Weirdly enough, I've always gotten good reviews and positive feedback from my teams. Things aren't really on fire, so I'm not in a hurry to change the team or force initiatives.

Other managers seems to be much busier. At my current org, their days aren't blocked by meetings, but they're sufficiently busy. The old org was dominated by meetings and I was even told by my VP "we need to get you more meetings".

By most metrics, my team is good and I feel my priorities are on track. What am I doing wrong? What should I be doing?
Interesting that potential calls of Russian influence are to distract or deflect from Chinese influence.
I've been using fish for about seven or so years now. I've read a lot of people complain about the POSIX incompatibilities, and while I agree that that used to be a relatively annoying issue at first, most of it is not a problem in newer versions of fish (missing && was annoying, for example).

The fact the syntax diverges from bash/zsh is IMO a great boon to fish. I've enjoyed writing fish scripts much more than zsh/bash scripts.

At work I write both for things that runs on dev machines, since I converted a lot of colleagues to fish, and writing the bash/zsh ones is usually not that much effort to write.

Sure, it's a bit of a maintenance burden in theory, but it's not become a problem in practice yet. A few times I had to wonder "how do I sensibly do this in bash/zsh" when it was pretty friction-less in fish, but it hasn't happened often.

Another thing regarding compatibility: I've never had it be a major problem when things _truly_ were incompatible, since as others in the thread mentioned, I could just do `bash`, run the script and then CTRL-C.
The “holy grail” of Solid State Batteris is here
Why are they suddenly turning on him?
These types of things never 'just happen'.
Tesla doesn't always get it right. Microsoft often gets it wrong. Would you trust Ford?
Lenovo or Dell displays are much worse than Apple displays even though the machine costs the same.
I have built two that I am kind of proud of.

https://www.firstcontrib.com - This is a website I built so users can easily find personalised issues to contribute to.

Another one would be https://github.com/krishnanunnir/rmm. Which is a telegram bot server you can run on your machine along with a telegram bot to remotely grab screenshots and linux commands on your machine from your Telegram app.
Calories, computing, long distance communication, long distance travel, breath and depth of entertainment choices, and the total elimination of multiple diseases from many countries?

Plus, on average, more literal money to spend, thanks to having nothing much to spend it on for the last year.
It can certainly be done by interfacing with the X server, but it limits you to systems with a running X server (e.g. no headless raspberry PI's, no Wayland).

I have a planned change to use this a default, and fall back to /dev/input on non-X systems. It's not quite there yet, especially the capability of suppressing key events.
also https://reddit.com/r/BirdsArentReal

since you’re here, you should also learn about:

https://reddit.com/r/dolphinconspiracy

https://reddit.com/r/GiraffesDontExist
It's amazing how this happens when you shut down the economy because of fear of a virus with a 1% mortality rate, isn't it? Regardless of how many actual "covid deaths" (from COVID or with COVID), the destructive impacts of lockdowns far, far exceed any lives supposedly "saved" by shutting down the economy, whether you measure it in terms of economic losses, mental health, and especially educational destruction.

https://www.nber.org/system/files/working_papers/w28304/w283...
There has been a lot of work in this area. There is no best algorithm, it depends upon the problem that you are trying to solve. However, I think that r-trees have advantages over k-d trees for this 2d case. Alternatively, there are Quadtrees which have different trade-offs to r-trees. A very different approach is to use space-filling curves to reduce the 2d problem to a 1d problem; this approach is normally called geohashing. If you search on these terms then you can rapidly find resources and scientific papers to help you understand the algorithms.
Thread compiling geolocations of Israeli air and artillery strikes in Gaza
Sorry, that's bullshit. Most sexual behaviors are culturally conditioned and empirically money doesnt make men or women linearly and indefinitely more attracted.

What is attractive is social status - in capitalism this is linked mostly to wealth but that's not a given at all. Another thing that's attractive is stability, but that doesn't have anything to do with consumption, in today's world it means having stable access to housing, ideally owning it, mainly.
"Everything is a remix"
In that case, it’s probably due to a lack of double buffering.
Shutting down my first startup
A police dog who cried drugs at every traffic stop
I recall reading some study of employees at the Internet Research Agency (Russia’s most well-known “troll farm”). Some of these employees were Russian liberals and opposed to the regime, but hey, this was a paying job. Since they were not ideologically invested in their work and they knew that their siloviki backers had deep pockets and would keep throwing money at the agency regardless, they didn’t make any effort to sound very subtle or persuasive in their posting at all.
Amazon exec sunk Philly's HQ2 prospects because he's a Giants fan, book reveals
> my brilliant __metaclass__ and nested decorator approach that cuts 10k of imperative bullshit down to 20 lines - or worse they will understand it enough to make a change that causes an unacceptable performance degradation and not enough to realize that they did it.

That's just Python and its endless edge cases, caused by everything being special-cased into the interpreter.

If you were using Lisp, the macro equivalent of your ________dunder________ method would likely have no edge cases, so the next guy who makes a change with only a partial understanding wouldn't end up introducing that performance degradation.
https://dcurt.is/apple-tv-all-the-way-down
This is impressive bc Apple can create an elevated listening experience for owners of AirPods and HomePods.
I assume you’re referring to the Coanda effect.
I mean "just better" at every use-case? It eliminates the cost of functions where JVM languages cannot due to its limitations. I really don't think I'm treating software like fashion - I'm speaking from years of practical experience here.

The main thing FP on the JVM does better is be permitted by your employer lol. So if we're talking runtime vs runtime, there's no use-case. In general, it's all soft/social reasons.
How about macOS for example? After September, Let’s Encrypt will become untrusted on all versions prior to 10.12.
> But then again, I had some employees I had to micromanage. I really, really abhorred it. But there was just no other way to achieve results.

Micro-Managing underperformers doesn't scale; better to raise more money and raise the hiring bar.
Most likely because everyone already wears headphones to isolate themselves. There is outside traffic noise and aircon to compete with, as well as general drone of conversations. It's only really an issue in environments that are already quiet.
It's been amazing for me.... EXCEPT for when resuming from sleep, for some reason it would be very slow for a minute.

I have since FIXED THIS! The solution is to just not let it sleep. I'm using Amphetamine and since then it has been amazingly fast all the time.
I'm confused - are you saying it's propaganda to go against the wet market theory? Because the wet market theory is so childish - like saying the sun goes to sleep at night.
Hamilton on Disney+ is my go-to to test/show off spatial audio. It really does sound like the audio is coming from specific places on the stage.
I found a video in one of those links from Princeton. It's a narrative of this guy developing 3D sound that works in normal 2 channel laptop speakers.

It's quite impressive when they demo it. There is a moment around 1:20 that plays flies circling around and my cat next to me didnt care about the normal recording but he stood up with his ears out when the 3d version played.

https://www.youtube.com/watch?v=SQmQD27uCt0&t=3s

I know it's probably old hat by now (the video is ~10yrs old, yes 2010 was over a decade ago) but it still blows my mind.
Cuba has had an almost-mesh internet using blue tooth on cellphones for at least a decade. It’s pretty cool. I remember using it and being told about it when I traveled there in ~2013 but I can’t for the life of me remember what it’s called so I’ve never been able to read more about how it came about. IIRC before the bluetooth they passed around USB thumb drives so I think it was born from that “network” of information sharing but my Spanish skills are pretty terrible and it was many years ago so I could be completely wrong.
The problem that I see is that the cost to buy a house is also through the roof.
Yeah good movement and most watch makers know it. Servicing would also be a lot cheaper.
I agree that good propaganda wouldn't be easily discernable as propaganda.

I'm skeptical that the same organizations that run the shitty Twitter fake accounts can simultaneously run actually effective programs. It'd be like Apple simultaneously being Apple and also running a shitty Etsy storefront that sells amateurish coffee cozies.
I'm curious to see how well the enormous mortgage and student loan debt owed by americans will curb inflation. Even if $300,000 dollars hypothetically couldn't buy a loaf of bread in ten years time, it could still pay off my house, and so would be pretty valuable to me.
Completely agree on aspect of kotlin being an evolutionary dead end.

For anyone interested in looking at C#, look at https://rahulrevo.substack.com/p/language-ecosystems-net and how they have evolved differently.
1% mortality isn't a low number, and left to run rampant, you end up with a much higher mortality rate because the hospitals fill up, and you end up with a higher mortality rate for everything else as well because there's no room in hospitals.
There definitely are. State run pharma agencies that compete against the private companies and stringent IP restrictions on treatments VS cures can help.

Ultimately you're never going to be able to coax the market into valuing 40+ years of rent over a cure.
The classic ABA problem, then.

https://en.wikipedia.org/wiki/ABA_problem
We may be about to witness the mother of all supply chain bullwhip effects. If everyone overcompensates for the shortages by placing extra orders and building additional capacity now, they may find themselves caught with a massive oversupply when demand returns to normal.
https://www.youtube.com/c/%E5%A4%A7%E6%A0%91%E5%90%9BTreeMan...

https://www.youtube.com/c/%E6%BB%87%E8%A5%BF%E5%B0%8F%E5%93%...
Your boss spending all their time on a trouble employee means they're also not doing the fifty other things they could to help the team other than bothering you. Yes, managers do have things to do other than bothering their reports. At least good ones do.
Some of these people are probably spoiled brats, but others don't eat every day, or come from such a background.
I thought we were talking about denying access to important files. Data exfiltration is a different threat model than what I was addressing.
I strongly disagree. Lockdowns are not cost free, but they do save lives. Infection raging out of control also changes behavior and also has economic downsides.

I really would like to see a good numerical analysis of the costs and benefits of lockdown policies - I have yet to see one that's not seriously flawed.
Of course not, what you need is model the way your ear handles sound coming from various locations then model this and reproduce it. It's like VR, but for your ears. That's how ASMR effectively works. If you want full immersion you can add head tracking so that the sound "rotates" around you when you move your head. I know that Apple offers that with their latest headphones.

Admittedly in order to do this you need to have post-processing specific for every person since we don't process sound exactly the same depending on our physiology. I know that Sony attempted something like that with its "3D audio". I think it's a bit of a gimmick myself, but it's technically doable.
Didn't OS/2 have threads?
Even juicier is the gossip (that I saw on some network TV show like GMA) that Melania is leaving him because of Epstein connections.
This is very hard to implement.
As long as the desktop environment provides a mechanism for applications to register their global shortcuts then all is well. However, without such a feature the application has to just listen for all keystrokes and check if it matches something the user's configured.

Example: I've bound several scenes in OBS to keyboard shortcuts so that I can switch scenes no matter what application I'm in. I'm pretty sure OBS does this by listening to all keyboard events on the root window. It's not very efficient, but it works.

Now imagine having to support a global shortcut daemon per DE that exists. I suppose someone would write an abstraction but really, it's something that FreeDesktop.org should provide (if it already doesn't).
Which 2021 laptop has replaceable CPU?
Yes it does, but it looks to me like Krebs read "Romanian" in the list of keyboard layouts, skimmed over the "(Moldova)" part and assumed that that means Romania and Russia are BFFs.
It's like she's typing in Unicode code points in 1947.
People can also decide for themselves if something is an issue important to them enough to vote personally, or not important enough that can be delegated to someone they trust. This is usually called liquid democracy, as it allows to change the amount of directness vs delegation.

[1] https://en.wikipedia.org/wiki/Liquid_democracy
Does the Indian science couple breathing with cold therapy?
Or Israel, Qatar, Saudi Arabia, etc.

Just use the data that the article does.

https://www.opensecrets.org/fara
Amarok 2 moved in the direction that the developers wanted, but the users hated it. Proves your point though!
>means having stable access to housing, ideally owning it, mainly

Having access to shelter in a desirable place is currently one of the best signals about one's ability to procure resources and I would categorize it as consumption. You can have stable access to housing where few people want to live, but it will not help you in attracting from a larger pool of mates (if that is your goal).
That made my day. Thank you!
> I'm using Amphetamine and since then it has been amazingly fast all the time.

I think these app makers might need to start focus grouping some of these app names. Not only is it going to be harder to search for this app, but it'll inevitably also lead to some humorous misunderstandings.
Then you agree that "such wealth can only be amassed by unethical means" is not correct.
Personal experience.
NY tends to have more a-holes.
More prone to micro managing.
Trash taking various demographics is becoming culturally acceptable.
I stopped having this issue for well over a decade. Especially on some albums I enjoy there are tracks which are logically separate (on CD as well as files) yet "play" into one another continuously, so I'd have noticed this as it would produce a weird silence in an otherwise seamless musical transition.

It's entirely a player thing to start decoding the next track slightly before the current track ends and continuously feed the audio buffer with no gap. This has nothing to do with mp3 and digital audio, but everything with players that don't conceptually split between reading a file and pushing audio to the output but are just glorified shell for loops over mpg321.
> As it stands today, most software is built with extreme short-sightedness, designed to be run on disposable electronics and near impossible to maintain, we decided to not participate in this race to the bottom.

This is a cool project, but it doesn't seem to me like it demonstrates great foresight or maintainability. The compromises that areade in commercial hardware and software aren't only made just to be evil, but also to make things affordable and useful and widely available.
Thinking in terms of coronavirus through the perspective of the Art of War (for all parties involved not directed at any country or person in particular) takes you down some interesting thought experiments
Honestly, they could do so much by letting some of Chinese TikTok out on to the international side. I've seen quite a few reposts on Twitter and Reddit from Douyin that are completely inaccessible directly, and if they were actually trying to get people to like them they have a giant bank of content that they could curate to show whatever they wanted.
You’re right. I meant lazy in the Larry Wall sense (more efficient) but was also trying to pick a word that wouldn’t paint tabs in a bad light, because it’s more efficient in a different way.
There's also WIN32 GUI support too. See this demo program called apelife which was built with Cosmopolitan Libc. https://justine.lol/apelife/index.html It embeds a UNIX TUI that runs on both Windows and UNIX. It also embeds a WIN32 GUI too, in the same binary. There's also an example of how to build TUI panel applications in the examples/ folder. https://github.com/jart/cosmopolitan/blob/master/examples/pa... The canonical example of a Cosmopolitan TUI would be https://justine.lol/blinkenlights/index.html I highly recommend writing TUIs because VT100+XTERM is universal these days and termios was easy to polyfill across operating systems. These things literally run in the CMD.EXE DOS command box on Windows 10 without needing any special #ifdef or conditions, which is wild, and it even works on metal via the serial uart port.

make -j8 o//tool/viz/deathstar.com
qemu-system-x86_64 -m 16 -nographic -fda o//tool/viz/deathstar.com

You don't have to do anything special either. You just write your TUI program in the conventional UNIX style.
Michael Burry of ‘The Big Short’ reveals a $530M bet against Tesla
Sentiment analysis of last week's stock market news, trends for the week ahead
ldd arbitrary code execution
With Lisp, the performance comes pre-degraded!
Can you point to something that shows the world is poorer ??
Now I’m curious: Was the Great Depression a bullwhip from the Spanish Flu, or were these two events basically unrelated?
I have a similar situation, most of my paying customers live in the united States, a few in Europe, and a rare 1 person outside those areas.

I give away free content, so I don't mind if people use the website, but I have no incentive to create topics specific to (third world) users. They have never paid, and from interactions with them, they can't afford their own lives, let alone buying my products for under $10USD.
At the risk of being accused of whataboutism, I raise you the $300 million "Countering Chinese Influence Fund"

https://www.axios.com/senate-china-bill-474f96f1-467b-4c02-a...