HNHacker News
TopNewBestAskShowJobs

wang_li

2,140 karma · joined March 17, 2015

submissionscomments
wang_li··on The Beauty of Having a Pi-Hole (2024)
> read TFA for the iptables config that fixes those apps and devices that bypass local DNS. For example,

Don't worry. All the browsers and stuff are bypassing this level of control by moving to DNS-over-HTTPS. You'll either have to deploy a TLS terminating proxy on your network, or give up on this arms race.

wang_li··on How the US defense secretary circumvents official DoD communications equipment
You're in a comment section where people are flipping out that there exists a computer on his desk that isn't connected to any DoD network but is connected to the public internet.

Approximately 30,000 people go to work in the Pentagon every day. There are areas in the building that are SCIFs and they don't allow cell phones and laptops. But the majority of the building is an office building used for office building type stuff. Employees and contractors bring their personal cellphones and mobile devices in there every day.

wang_li··on How the US defense secretary circumvents official DoD communications equipment
Whataboutism is when you are trying to show a double standard because person A did a thing that you were upset about and person B did the same thing and you don't care. Asking why you care about a person doing a thing and didn't care when a different person did something different is not whataboutism.
wang_li··on A faster way to copy SQLite databases between computers
I've seen a suggestion several times to compress the data before sending. If remote means in the same data center, there's a good chance compressing the data is just slowing you down. Not many machines can gzip/bzip2/7zip at better than the 1 gigabyte per second you can get from 10 Gbps networks.
wang_li··on We clone a running VM in 2 seconds
>...keep FDs for network sockets, you've got to transfer those somehow.

And if you have any shared memory segments, semaphores, or message queues, you have to drag along a bunch of other processes.

wang_li··on The chroot Technique – a Swiss army multitool for Linux systems
The tools shouldn't require the use of chroot. It is quite common on Solaris to be able to specify a path that should be considered the root directory for the tool, usually -R. This was super useful in a netboot world using nfs, and also for crash recovery.

If a system is screwed up enough, then a chroot strategy won't work because it relies on the path you are chrooting to to be generally valid and functional. If it's missing libraries you may well be screwed.

wang_li··on Despite Ukraine war, Europe imported even more Russian gas last year
They are saying that if 50% of your generating capacity drops to 1% of you need a lot of gas powered plants to make up that difference. If your renewables represent 1% of the generating capacity you need very little gas to make up that difference.
wang_li··on The earliest versions of the first C compiler known to exist
Upon my own rereading, it is unclear. My point is that the languages most of us use and the fundamental technologies in the oses we use were designed/invented by people who are in their 80s now, many of the Linux core team are 50-60.
wang_li··on The earliest versions of the first C compiler known to exist
Big non sequitur, but your comment triggered a peeve of mine that I find it ironic when people talk like oldsters can't understand technology.
wang_li··on Crew-9 Returns to Earth
>All you said are literally in the descriptions of the jobs they signed up for.

Dismissing every exceptional circumstance as "the jobs they signed up for." is absurd. That's like saying the crash of flight 5342 that killed 67 people is what those passengers signed up for, so it's no big deal.

wang_li··on Xdg-ninja: checking your $HOME for unwanted files and directories
I believe the point they are making is that for plenty of tools people don't change any configuration settings. If I haven't changed from the application default setting, why is the application creating a configuration file in my home directory hierarchy?
wang_li··on Dear Apple: Add "Disappearing Messages" to iMessage
> I have the legal right to record a conversation I play a significant role in, so I don't see why I shouldn't be allowed to do the same over messaging apps.

It depends on where you are. In the US plenty of states require consent from all parties to a conversation to record it. The only function of this rule is to allow people to lie about what the conversation was about, as there is no law that prevents a party to the conversation writing it down and sharing it to the public.

And that's exactly what I think about disappearing messages. The only function of this is to be able to lie about the message. I'm not interested in having a system where someone can set their message retention to 5 minutes and then send a bunch of abusive messages to me. Or some sort of phishing message. If they choose to add this to iMessage they should also include an option that automatically rejects all disappearing messages and reply to the sender indicating that their message was rejected. Or optionally, if I could set my phone to ignore the expiration time and retain the message forever. It's my phone and I'm paying for the phone service. It's up to me how my device is used, not some third party. If they don't like my terms, they should choose not to involve me.

Not everything needs to be the equivalent of a midnight whisper in a dark alley.

wang_li··on 'Impossible-to-hack' security turns out to be no security
> by notifying them of the breach.

The breach that he actually did. They should fulfill their obligations under the law, and they should file a report with their national law enforcement agency with information about the person who is claiming to have done the crime in question.

wang_li··on Trick to find commands in the terminal quickly
The tool this guy is looking for is called "make". You build a makefile with the appropriate targets then you type "make check", "make build", "make debug", "make tag".
wang_li··on Jellyfin: The Free Software Media System
In my experience you have to sort shows into directories and sub-directories for a series.

My entire jellyfin library is just symlinks into where my crap has accumulated over the years.

https://jellyfin.org/docs/general/server/media/shows/

wang_li··on Carbon capture more costly than switching to renewables, researchers find
China is #1 in annual emissions and is increasing every year and plans to continue increasing until at least 2030, is a larger annual emitter than all of Europe combined, and is #2 in total emissions since 1750. In fact, has released more than all of Europe combined since 1750.

Per capita is irrelevant. The thermodynamic system doesn't give a shit about how many people there are, all that matters is the amount of CO2. If you want to make some kind of moral argument you can't avoid asking the question of whether it's moral to have a kid at all. Unless you are prepared to consign your children to being a hunter gatherer until they die, they will add CO2 to the atmosphere.

Consider me and my neighbor, I am single and emit 1000 tons of carbon per year, he and his wife emit 3000 tons of carbon per year. They have triplets and increase their emissions by 500 tons per year. But somehow they are better than me now because on a per capita basis their house is only 700 tons per year per person while I'm still at 1000 tons per year? Sorry, I'm not reducing my lifestyle because they like to fuck.

If you want to measure a country or population by some metric other than total emissions, you should measure something like tons per quality of life or human development or something that demonstrates that the emissions are being used efficiently to increase overall human flourishing.

wang_li··on DeaDBeeF: The Ultimate Music Player
That's because they all try to be more than they should be. I don't need or want a visualization option. I don't need or want an equalizer. I don't need or want a library. Those functions properly belong in other places or in the waste bin. My music library is on my filesystem and is sorted and arranged as I prefer. When I want to play an album I drag it over to MPC-HC. When I want to create a custom playlist, I open the playlist and drag songs over in the order I want. I don't need a psychedelic visualization, my use case for playing music on my pc is as background audio. The function of an equalizer is to make up for shortcomings in my speakers and belongs there. The media player should convert an encoded file into PCM data to be shoved out the DAC. Leave the file managing to my file manager. The sound shaping to my speakers. And the crap frequency domain visualizations in the trash.
wang_li··on A German court rules: X must provide researchers access to data
To the extent we’re talking about user activity on the site, the people already have access to this data by dint of being the ones who did the things. Sent a tweet, viewed a tweet, clicked a link. They already have it. So what is being asked of X?
wang_li··on I do not want AI to "polish" me
Nadella and the board approved billions of dollars in spending for AI. It's going to be in every single thing whether you want it or not. Otherwise, there will be a shareholder lawsuit.
wang_li··on Subpixel Snake [video]
I don't buy it either. Showing something that came out 30 years after the time in question is not supportive of the argument. People wrote games and developed games and made game art on CRTs. They just developed on what they had. No one was sitting down and factoring in blur, scanlines, phosphor persistence, or etc.
wang_li··on It sure looks like Meta stole a lot of books to build its AI
I think he’s saying he works for meta and when the company employees committed mass copyright violation that’s ok because once someone read Winnie the Pooh to him at story hour at the library.
wang_li··on The surprising struggle to get a Unix Epoch time from a UTC string in C or C++
Assuming the unstated requirement that you want your cron job to only run once per day, scheduling for 3 am is not a software problem. It's a lack of understanding by the person problem. By definition times around the time change can occur twice or not at all. Also, in the US 3am would never be a problem as the time changes at 2 am.

Also, naming things, cache coherency, and off by one errors are the two hardest problems in computer science.

wang_li··on Luigi Mangione's account has been renamed on Stack Overflow
Nope. You are free to establish an alternate system if you like. There are medical facilities that are flat rate and cash only, like the Surgery Center of Oklahoma, https://surgerycenterok.com/. There are also many cost sharing services, like this one https://altruahealthshare.org. Ultimately you also have the personal option of becoming a physician and setting any rate you choose for your services, including $0.
wang_li··on Luigi Mangione's account has been renamed on Stack Overflow
Strange rationale. By that logic you are also a prolific mass murderer as you have not paid physicians to provide medical care to patients. Indirectly you have killed, well, everyone because you didn’t pay infinite money to provide unbounded medical care for every person who has died.
wang_li··on Apple squandered the Holy Grail
There needs to be a setting in the OS with a slider that allows you to set some value of 1-10 of your privacy preferences and all settings in all applications and future updates to a particular device are bound by. With each setting having well defined meanings, such as "1 - no interaction with internet based services at all. opt-out of everything", "2 - only security online services used. opt-out of everything", all the way up to "10 - this device is a loaner but i want all of my content to be available to me on any device anywhere and i want all of my content screen for 'safety'. opt-in to every thing."
wang_li··on Apple M5 could ditch unified memory architecture for split CPU and GPU designs
Nvidia Jetson are all unified memory as are the raspberry pis.
wang_li··on The legacy of NeXT lives on in OS X (2012)
OS X on a power Mac g4 quicksilver is a far better user experience in terms of responsiveness and consistency than raspberry pi os on a raspberry pi 3 even though the pi benchmarks faster.
wang_li··on Assisted dying now accounts for one in 20 Canada deaths
Everyone should be in charge of their own lives. Except doctors, who should shut the fuck up and do as their told. And people with moral and religious objections who should shut the fuck up and keep paying for this. And people who’d like to sell a kidney, who should shut the fuck up and understand that it’ll be taken after they’re dead when it’s of no value to them.
wang_li··on Buffer Overflow Risk in Curl_inet_ntop and Inet_ntop4
There should be consumer protection laws in place that require AI companies to record every result their tools produce. Then when some trash human submits the AI output to a bug tracker, forum, etc. with a negative impact on the victim website, they can submit a claim to the AI company for a $100 million payment due to the inability to prevent the tool from being used improperly.
wang_li··on An invisible desktop application that will help you pass technical interviews
If you don't like technical interviews then what the industry needs is proper and formal certification process akin to the medical, legal, and engineering fields. In the absence of some outside resource to validate that a person has the basic fundamental skills, then you have to ask questions to determine if the applicant knows any of those skills.
← PreviousPage 11 of 34Next →