skysight-inc/HackerNews huggingface dataset:
Show HN: Automated Hardening Toolkit Written in Bash
Hiya,

Over the past month, I've developed an automated hardening toolkit written in Bash for Debian/Ubuntu-based systems. It covers many of the bare-essential system administration hardening steps that I would usually follow on my servers. I wanted to share it on Hacker News because, well, I'm currently a one-man team, and as such - I feel like constructive criticism, especially in this space, is kind of invaluable. Let me know if you have a chance to check it out or have thoughts on how I can improve on/make it better.

Cheers :)
edit: Good point, I agree that parallel construction is an important concern, especially since there's so little transparency in police investigations. One possible solution is to force them to limit the duration recorded to only a few seconds. (I previously thought that's how ShotSpotter worked. Turns out they've kept days of audio before, apparently for "debugging purposes.")

> Drug crime is known to be fairly evenly distributed across different incomes, arrests are extremely biased.

Keep in mind that the reverse is true for gun crime, where low-income minority communities suffer from the lowest clearance rates.
You could review their argument: https://www.ftc.gov/system/files/ftc_gov/pdf/YardiSOI-filed%...

Search for "adherence to the agreed-upon Prices", "fix list price", and "Express delegation".

They argue that collusion through delegation counts as price fixing. They argue colluding to set list prices even when there isn't a price floor is price fixing. They argue that replacing the delegation with an algorithm is still price fixing. Most of their arguments are based on already settled cases.
The one of those I love the best is analog firing computers.

https://en.m.wikipedia.org/wiki/Mark_I_Fire_Control_Computer
> That knowledge however is instrumental in landing some of the best jobs in the industry.

Could you elaborate what you think are the best jobs in the industry and why?
The tech companies already got punished for salary collusion and it didn't really change anything.
Can you link to info on that feature of the software?
I agree. It's somewhat the ineptitude of the Tories. For example, they could have sorted out the border; not the small boats but the red tape that it now takes to import and export.
Some striking commodities we take for granted today and were unavailable in Rome:

- Soap and shaving cream
- Toilet paper

- Sunflower oil for cooking coze sunflower is native to America

- Potatoes, tomatoes (also corn but I could do without it)
> If you try to sidestep them you could end up like iraq.

iraq invasion has nothing to do with opec. And no opec country has made military moves to enforce the cartel.

And in fact, a lot of opec countries tries to skirt the quotas for personal gain!
Do you believe that a fair and free market can exist without any governmental intervention?
Anyone know how this works? My guess was that Google dropped support for older versions of Windows because Chromium needed libraries that only worked on newer versions, guess that isn't the case?
Read the thread again; the comment I responded to literally asked if there was a difference in rates of drug dealing between white people and Black people.
Much more ready for server usage than desktop usage.

Linux is Linux. It's hard to go wrong when you're not mucking about with graphics cards and first-person games and things like that.
If I read you right you are playing the role of the man that he is critiquing: a man who holds that all his fellows are mere creatures of desire.
to me, it's not enough to show that the same algorithm or software is deciding the price.

It has to be that there's some threat of punishment from the cartel against those who would lower their price from the agreed one. For example, the explicit agreement by the landlord to keep the price at the algorithmicaly calculated one, even so far as to leave vacancy (where as there wouldn't have been a vacancy if the price was lowered).
Russians running away from problems in their country are assets to the west. One of the things that makes the west great is its respect for individual freedom. At some level Russians know this: just compare the numbers of Russians trying to move to the West, compared to the numbers of westerns moving to Russia. We're better, and their population knows it en mass. So from a selfish point of view, it's in our interest to live up to this image. If a Russian says: I refuse to take part in Russia's aggression towards the West, we definitely should treat them extra well.

Also consider that another thing that makes the West great is its respect for rule of law. People who are in the west should have the right to walk down the street without fear of being assassinated, regardless of who they are or where they come from; this is a western value that I prize very much. If you start allowing "I don't care if a person gets illegally killed in Spain because he's a bad guy anyway", you're eroding the power of the West.

And finally, the problem that the west needs to counter act aren't just individuals of specific nationalities: it's an aggressive state and its institutions that have as stated goal to weaken us.

Let me know if you have more questions. As long as they're in good faith I'm happy to continue discussing.
This definitely gets a nerd award, I like doing that myself when working on win32 code (i.e. if possible and not to cumbersome, try to use functions that have been around in old windows versions). But it begs the obvious question if there's a legitimate use case for this, other than having a modern browser when spinning up your retro machine for that nostalgia once a year. And even then, unless you're visiting vogons, any modern website probably chokes your machine to death if it's a period-correct XP/7.

Old POS terminals for example? But I think they would just display an ancient website in an ancient browser anyways, and again if the hardware is as old as the rest of the system, this will probably just add slowness with no actual benefit.

Oh and yeah, nice job with the name, I misread it the first time. :-D
Show HN: Alpine Ajax – If Htmx and Alpine.js Had a Baby
An Alpine.js plugin that includes the core functionality of HTMX in a streamlined (3KB) API.
Right, which is why it’s asinine to talk about “crime rate” as though it weren’t wholly dependent on whom we as a society want to call criminals.
You can listen to the ShotSpotter audio from that incident here - https://www.chicagocopa.org/case/2024-0002095/

I see nothing wrong done by ShotSpotter.

It accurately reported the location of a noise that sounded like gunfire.

What is timely about this?

Do you want the police to not investigate gunshots? I don't care about how they approached the scene, their training has nothing to do with ShotSpotter which is the discussion at hand.

Also fireworks are illegal to set off in Chicago so no legitimate activity was interrupted.
The canadian federal government needed a new pay system and they bought "off the shelf" from IBM and it was a complete disaster and cost more than $2.4 BILLION. For payroll software
Violent crime is not a zero-sum game.
https://www.theverge.com/2024/2/15/24074214/justice-in-foren...
FTC would not be interested if the scheme hypothetically somehow had no effect. They said that it is still be illegal even if it is imperfect. Empirical reality still gets a vote, for pragmatic reasons.
In more advanced undergraduate math, PDF lecture notes written by professors but not published in book form often contain excellent explanations and proofs that are not available in books. Also, making undergraduate buy expensive text books is more of a thing in first year American classes. Look at the lecture notes at Oxford for example.

https://courses.maths.ox.ac.uk/
And that's good: anything that has a theoretical basis is definitely not new physics. And we are talking about new physics here. The same could be said about special relativity or quantum mechanics in the past.
So the law is an AI model :-)
I'm not talking about this specific subject.
Very nice, thank you very much for this. I didn't run it yet, but reading through your page I see no self-defence mechanisms, like master password, data encryption, windows hello integration and such. How safe the app really is?
"Needed", means it's easier for them and why should they care about a dead and insecure os.
For editor I never like emacs. The vim is very ok with this starting point : https://susam.net/lisp-in-vim.html
It looks like they are comparing the Resumes stored in their website with the job offer postred in Whoishiring and finding the best matches.

Now the description has improved, but it's still not foolproof.
I'm gonna give a general answer since I don't know your level of music knowledge.

The cylinder has a certain speed and length, so music must be written in a certain way that it fits there in a pleasant way if looped. This means ending in a fermata, sort of fading (and not truly looping) or having the number of bars be somewhat musical (often powers of 2).

From knowing the tempo of the song and the speed of the cylinder you know how many notes of a certain length you can fill in one rotation: 8 full notes, 16 half notes, 32 quarter notes, and so on. [1] Just divide the circumference by the numbers and you get the physical length of each note. Keep in mind that if you're not truly looping and is ending the song with each revolution, you can be very fast and loose here.

So the written music itself, plus the physical lengths of notes, will inform you on where you should place each note.

For multiple pitches: pitches are just in a different axis. One axis is timing, the other is pitch. This is visible when you look at the "comb" of music boxes, they have pitches arranged from low to high, side by side, like harp strings or piano keys.

About syncing: it is all written in sheet music, so you just follow it. Two notes that must be played together are just on the same axis. For a more tight timing just align it... It won't be perfect if you're a kid doing it by hand, which is why music boxes traditionally often use arpeggios in detriment of more blocky chords.

Multiple instruments: if a music box can play different timbres, it's triggered by having duplication, meaning two or more sound producers (combs, hammers + strings, etc). So you have, for example, 20 notes available for one instrument and 10 for another. But it is all on the same cylinder, so it is in sync. There will be repeating pitches here and there, but it depends on how the music itself was written.

The first pass of converting sheet music to “holes” must be done by someone able to read sheet music at an amateur level, and do the basic calculations (but of course some people with more experience and musical knowledge will do it better). Then they make a pattern that is reused by whoever is manually assembling.

Tolerances are larger than non-musicians expect. There is a charm to the sound of a music box, and part of that is due to minor timing issues. And that’s true for any music not performed by a computer, really. Humans are not perfect anyway, and a lot of techniques and styles rely on this (from drum flams to Dilla beats)

Not to mention that music boxes are mechanical, so it won't be perfect during playback anyway.

[1] https://en.m.wikipedia.org/wiki/Note_value
Google is a sham but let's not pretend like they give a shit. They don't have to innovate. They print ad money. Do you think morale at Meta was good when Zuckerberg was trying to hawk metaverse for years like a shitty tamale vendor? When FB became a global laughingstock? Sure it was!

Do you think the board cares! NO. Because they PRINT MONEY.
Scripts like https://github.com/Raphire/Win11Debloat help, but should not be needed in the first place.

Note that modern Linux is also leaning towards the same trend. But i admit it is still much easier to avoid those for power users. Snap, i'm looking at you also...
That's good to know. The RAM I think I would've thought of, but perhaps not the Wi-Fi replacement.
Show HN: flashcasts: flashcards in a private podcast feed
From the /about page:

I just wanted to study biochem and spanish while digging holes in my garden.

Computers recently learned how to talk like humans. Actually, they've been talking for a while[1], but it only recently became affordable[2].

[1] https://en.wikipedia.org/wiki/Speech_synthesis#Electronic_de...

[2] https://openai.com/pricing

And by some kind of nerd magic, the cost is low enough for me to share it freely on the internet! If you create an account, you can create mix-and-match flashcast decks and tweak all the knobs.

Knowledge probably shouldn't be a class issue, so this site is committed to a frugly[3] pricing model. And yes, there's a lifetime license for all y'all with subscription fatigue.

[3] https://taylor.town/frugly

If you're curious about the Craigslist vibes, I went all-in on a cheap web[4] stack. I want this site to run on a 2010 potato phone clinging to one measly bar of cell service. Of course it's ugly, but at least it's somewhat accessible and not eating our sunshine[5].

[4] https://potato.cheap/

[5] https://en.wikipedia.org/wiki/Solarpunk

To keep things extra cheap, I generated most of the cards with GPT. This is obviously not ideal, but I've only got ten fingers and a skull filled with glitter. If you can, please help me increase quality by contributing cards and reporting errors. Email me at hello@taylor.town and I'll get back to you eventually.

Anyway, instead of learning biochem and spanish I went and built this stupid website.

Now go forth and download knowledge[6] through your ears!

[6] https://www.youtube.com/watch?v=jksPhQhJRoc

♡ taylor[7]

[7] https://taylor.town
U.S. FDA warns against wearable tech that claims to test blood sugar levels
Yes, these are awesome. There is another one of these old films about them which is a great explainer:

https://youtu.be/s1i-dnAH9Y4
Ask HN: Job sites specifically for international relocation/visa included?
Hi everyone! I worked a number of fairly well compensated roles, but after spending much time abroad I’ve realized I highly value being and working in an environment and culture new to me, so that I am constantly learning things in day to day life (a new language, for example), even if software roles aren’t as well paid as for example in the United States.

I understand it’s possible to get a good remote job and relocate that way, and there’s plenty of sites dedicated to finding remote jobs, but I’m wondering if anyone knows of some job sites that are hiring for roles with long term visas included (in cases where needed).

I hope this question makes sense, but I will clarify further if needed!
It is the case, but this project seems to be backporting Chrome to the older APIs or restoring original Chrome code which has since been removed. For example modern Chrome always uses DirectWrite for font rendering, which debuted in Windows 7, but Supermium can fall back to the legacy GDI font renderer that's available on XP.
It's easier to say "talk to your doctor about X" than get attractive pharmaceutical sales reps to convince doctors about the same drug's efficacy with a pamphlet.
Despite what is going on with this rent price collusion situation, the problem that high priced cities face is far too few vacant apartments not too many. The vacancy rate in some places is as low as 1-2%, which is much lower than it should be.
It has been a while since I've used Mac OS, so I don't know if my comment is still valid:

The original Macintosh could only run one application at a time, though the application could have several documents open at a time. With the introduction of multitasking, a decision had to be made. Apple decided to go with something that resembles the multiple document interface, except all of the windows for a single application were effectively placed on a single layer (rather than being contained within another window, which was quite common on Windows back in the day). What you are seeing in that multiple screen setup is effectively a historical artifact.
Archive.org, for example, does a lot of good work. But without too much hyperbole, there's essentially an infinite amount of paper with lines on it in libraries, historical societies, and private collections around the world. It's never going to all be digitized.
So we sacrifice hundreds of thousands of species in the rainforest for… more humans living in the Sahara? That might be great for a population expansion of humans in Africa, but it sounds pretty horrible for the overall health of the planet.
No, I think it's a myth, propaganda.
Performance optimization is very simple. Make computer do less to get same or similar result. The most performant application does very little and still gets you the result you need.

To do this you must find ways to “cheat”. This can be of various forms. Better algorithms, better data structures, precomputation, caching. At some point you will exhaust low hanging fruit and need to dig into lower level aspects of the code or its compilation.

Anyway, best way to learn is to do it, go depth first and always check your work thoroughly. (It is easy to optimize yourself into a solution that is not working properly).
Why would that desperate person be willing to pay the xN premium needed to cover the idle time?
Why would there be exactly one desperate person in the market? You need a curve, charging more as the space fills up. Desperate renters don't have infinite money. People with money are the people who are not desperate, because they have flexible options.
> - The algorithm tells all users to not negotiate and the users abide by this recommendation

that is the only relevant part that makes it price fixing.
I've used i3, dwm, and xMonad - currently found bliss in qtile, since it's extremely easy to customize any part of the environment, from the bar, widgets, layouts, hooks, etc.

- a button brings up a rofi to select one of the folders in my home dir

- It automatically creates a window Group ("desktop") when one of these is selected, and chdirs into that folder.

- There are keys for a browser profile (qutebrowser!) and tmux session for the current group, which are always created or focused with the same key, so if I close one mistakenly, or power-off my machine, these keys bring me right back where I was.

- I have a key for the "main" application of a workspace - typically the IDE - but this "main" application can be configured per workspace with a little marker-file.

- I then have mod+s, which switches between all windows that are not one of the three above (what xMonad would call 'boring' windows).

- I have another rofi for showing all open apps across all groups - and switching to the selected group + focusing the selected app.

- I have one more rofi, for selecting a group (or directory name) to move the focused window into it.

- Offtopic, but I also have some rofis for workspace-specific clipboard history and a workspace todo file, the top-line of which is echoed into the bar, to keep me on track.

The layout is the smallest part of it all, although being able to have whatever my imagination can desire in terms of layout IS kind of nice. I default to single-window 'monacle' layout, and spend most of my time in a standard "columns" layout.

In qtile's column layout, we can 'maximize' windows in a particular column, instead of stacking them vertically. now, windows can be hidden ("lost" is the commonly used word), but knowing exactly which key moves to which window means it becomes more about "feeling that I need X" rather than "finding X" - it just appears when I want it.

It's one of my favorite moments, and it always comes - when someone's watching me do a merge, or i'm having a skype session - people can't really believe how fast I can move. I have to narrate with the brakes on. And watching someone use regular window managers, even with some tiling shortcuts, is inexpressibly frustrating.

I want to help them, but I can't.
Audio evidence is being used such as in the Massachusetts case.

PS: You are quoting my previous post not an edit: "Drug crime is known to be fairly evenly distributed across different incomes, arrests are extremely biased." is from further up the thread.
This. Also, gawk has netwoki support, so you can write an mc server with just gawk.
Hunt – a multi-player multi-terminal game
Sounds like you are grossly distorting the author's rationale, and playing dumb. What's your agenda?
Understood, I believe we have views on the same direction then :)
I’m not really steering the conversation anywhere. Wage theft is a felony in many states. Which is the point I’m making: crime is socially constructed, and two big reasons that some areas are “low crime” and some are “high crime” is that we’ve decided to A) selectively criminalize things and B) selectively enforce those laws.

As to your question: if you are playing SimCity and you have a little number in your omniscient UI that reads “crime rate” and police are your one lever to address that, by all means add more police to the area. But in the real world that’s not how things work.
Given that your comment has nothing to do with what I said, I’m assuming you misunderstood or are replying to the wrong one?

“Weird comment” isn’t attacking the person (ad hominem) for who they are it’s attacking the action they chose to take. Likewise I don’t see how you took “let them have this one” as not letting people like what they want (granted, the GP comment wasn’t about liking something, it was a failed attempt to flex prior knowledge of this course, interviews at prestigious companies, and knowledge of esoteric language so I’m not entirely sure what you’re even referring to.) My comment didn’t mention “the hardware-software gap” or give any opinion on whatever that is so again..no clue what you’re on about
Seeing Apple indulge in furry photography halfway down the page is something to behold.
The difference is whether the good in question is being produced by investment, or monopolized by investment. This has been enshrined in law for over a century.

You want to make more money in housing? Build more housing.
So we would need to potentially deliver the telescope far outside of our solar system and have it look back at us, kind of like a very expensive selfie stick?
I've moved inside the EU twice and have no idea what you're talking about. I literally moved from one capital to another, rented a place, started looking for a job. Literally.
Do they?

Any evidence or data to back this up?

Anecdotally, I can say that when I was hiring devs in a large AU Corporate, this wasn’t the case :-)
Are you speaking in the long term?

Because it certainly works over decades-term.

Standard still had 70% market share when it was charged, and 64% by the time it was broken up.

Over the ~40 years it existed, it was incredibly profitable.
Au contraire, this makes no sense.
Programming practice shows that overly generic constructs aren't that useful and typically lead to over-engineering, difficulty of maintenance and reduced productivity.

There are enough complexities in the problem domain and the system itself, so KISS is king.

Good software is usually built by focusing on the actual problem being solved, and only generalizing solutions once sufficient amount of specific ones have been built and their commonalities identified to be lifted in a generic implementation.

The most impact language purists tend to have is when some of features end up adopted and adapted by practical languages (C++ or even C#).
There's two explanations:

1. Cops use enforcement on poor neighborhoods because they like to make their lives difficult and because they hate poor people

2. Cops use enforcement there because that's where the crimes take place

Explanation 2 is so obviously much more likely that I can't take the person that purports reason #1 without acknowledging the other explanation. They're playing dumb.