HNHacker News
TopNewBestAskShowJobs

wang_li

2,140 karma · joined March 17, 2015

submissionscomments
wang_li··on Motorola phones have started hijacking the Amazon app to insert affiliate codes
You can't remove the Phone app from an iPad in iPadOS 26. Even when the iPad in question has no cellular functionality. The best you can do is remove the icon, but you get a dialog telling you it won't be removed.

Which is stupid as I don't want my iPad to be getting every voice mail and imessage and so on that my phone does. They are different devices and serve different purposes. My iPad is totally a media consumption device and I have no interest in it being integrated into my phone's communication functions.

wang_li··on Green card seekers must leave U.S. to apply, Trump administration says
The US has three classes of immigrant visa. See the bottom of the state department visa resources page.

https://www.state.gov/visas/

wang_li··on Solving the “Zork” Mystery
They are called metasyntactic variables and there’s a handful of them for English, but also standard ones in other language.

https://en.wikipedia.org/wiki/Metasyntactic_variable

wang_li··on Alberta to hold referendum on whether to remain in Canada
Bill C-20 passed in 2000. It's not so much effort to type "canadian clarity act" into a search engine or wikipedia.
wang_li··on AI is just unauthorised plagiarism at a bigger scale
It doesn't matter. Robots.txt is not a license, it's a set of computer parsable directives of how programs should access your site. The actual license doesn't have to be written for computers to parse to be legally binding.

A person should be able to write in a terms of use or license page on their website that says "do not include any content from this website in your AI training data. if you do you will be billed $100 billion dollars." And it should be enforceable. It just turns out that nerds like to say "oh that would be too hard or too expensive, so we're going to ignore it."

wang_li··on AI is just unauthorised plagiarism at a bigger scale
My complaint with your argument is that the word learn means one thing when we are talking about a person learning something from a webpage or book and something completely different when a webpage or book is used to adjust some weights in a matrix. Calling that learning is a distraction from the real copyright violations going on.
wang_li··on No way to parse integers in C (2022)
I suppose one could say that they didn't fix the data size so the language would be portable. But I can't see how the intent was that programs would be portable, if you define portable to mean 1:1 functioning across differing platforms.
wang_li··on No way to parse integers in C (2022)
No. What gives that idea? The language doesn't even fix the data size of its primary numerical type. No way anyone thought that was portable.
wang_li··on No way to parse integers in C (2022)
The thing I find irritating is all the folks who say C is broken because it’s not a write once run anywhere language like JavaScript or python. Part of the deal has always been that the programmer needs to understand the target platform and the target compiler’s behavior.
wang_li··on Remove–AI–Watermarks – CLI and library for removing AI watermarks from images
The human ethos should be to never be misleading about the origin and truth of any content you create, forward, or pass on. If we care about honesty we should jail anyone who does so.
wang_li··on Show HN: I made a 3D pose maker for artists
It also means you can move the point and the rest of the joints adjust. Want to make your model walk? Just figure out the foot motion and the rest of the details are calculated based on joint range of motion and limb length.
wang_li··on OpenBSD 7.9
There was FreeBSD and NetBSD. NetBSD supporting many platforms while FreeBSD supported just x86. There was some contention between NetBSD developers and Theo and crew left to create OpenBSD. They all more or less have common ancestry being derivatives of 386BSD.
wang_li··on Mini Shai-Hulud Strikes Again: 314 npm Packages Compromised
Using code from these repositories should be considered the same as licking toilet seats at highway rest stops. There’s something wrong with you if you do it.
wang_li··on Iran starts Bitcoin-backed ship insurance for Hormuz strait
The horizon at sea level is about 3 miles. The strait of Hormuz is 35+ miles wide. Any mechanism used to get around this would be detectable and could be attacked with relatively inexpensive ordinance.
wang_li··on Iran starts Bitcoin-backed ship insurance for Hormuz strait
Exactly. The US just announces that they will take any vessel that pays for transit. So, what happens then? Any vessel that goes through and the IRGC doesn't shoot them, the US seizes. So, no one pays since they can't pay for successful transit. The fun game is that all the vessels just go at once. Any that the IRGC doesn't shoot the US takes. Any that it does shoot sink. So, no transit. Unless IRGC doesn't shoot at all, in which case everyone gets out of there with just one vessel paying the ransom. Ultimately this doesn't work for the IRGC as the US is far more capable of closing the strait than Iran is.

The US can also fuck with Iran by getting slight cooperation from ships in the Gulf of Oman by getting some small inflatable boats with remote control and AIS transmitters on them. Put the boat in the water next to a ship, turn of the ship's AIS, turn on the boats AIS, and send the boat through. Send hundreds of them. IRGC won't know what to shoot at or will expose their positions by firing at a rubber raft.

wang_li··on Linux security mailing list 'almost unmanageable'
The world doesn't need to support the projects and research areas that interest you. How about we do something better: No one is allowed to say or write anything about AI or AI generated slop until AI is 100% perfect and produces zero errors and does everything with perfect efficiency.

AI trash like this is like showing up to a baseball game with a pitching machine and demanding that they let you join in and be the pitcher using your machine. Just because your slop cannon is fun and exciting to you doesn't make anyone else obligated to join your club just because you fired your slop on them.

wang_li··on Myths about /dev/urandom (2014)
Yes. It should look like:

    Myth: the moon is made of green cheese.   
    Fact: the moon is made of yellow and green cheese.
wang_li··on Driver accused of DUI tracks missing laptop to Illinois State trooper's house
There are other forms of intoxication beyond alcohol. A device that measures your blood alcohol percentage does nothing for the driver who is half asleep from valium. A field sobriety test is more of an indicator of whether you are capable of operating a vehicle safely than of having a high alcohol intake recently. If you can't perform simple tasks, you probably shouldn't be operating a vehicle regardless of the cause.
wang_li··on Serving a website on a Raspberry Pi Zero running in RAM
It is more than a little weird. A pi zero is more than capable of handling HTTP/1.2 and TLS 1.3 for a handful of connections per second. This machine is 10x what we were running web servers on in the '90s.

Also, all web pages are served from RAM. It's automatic that modern OSes will cache this stuff on first access.

wang_li··on An Introduction to Meshtastic
v. a satellite enabled phone that can send text messages over thousands of kilometers?

These people should not be making a short range text solution, they should be building a low bandwidth internet extension with gateways to the real internet. Most of the information content of the internet can readily fit over 56kb lines once you strip out all the fluff. And in an emergency where you need or want a decentralized mesh network, that's more important that being able to text, who exactly?

wang_li··on CVE-2026-31431: Copy Fail vs. rootless containers
This pollutes the page cache, which affects the entire host. Getting "root" in a rootless container may mean nothing. But if it attacked the ls, ps, cat, grep, etc. commands and any process outside the container invokes that command it runs the payload of the attacker. What if the payload of the attack is just the same attack to escalate to root? So now you have escaped the container and gained root.
wang_li··on Trademark violation: Fake Notepad++ for Mac
What LLMs have brought to our industry is exposure of how many people in it are total pieces of shit. You have the hucksters who are out there trying to get you to invest in their LLM startup and they constantly use language that is functionally lying about what their product is by likening what it does to actual functioning human brains and personalities. You have the fantasists who see a grammatically correct sentence as proof of omnipotence and then run around telling everyone how AI has totally changed everything. You have the posers who use LLMs to cut-n-paste code from other's repos, directly and indirectly, and then claim they wrote it and pretend to have skills and abilities they don't have. Then you have the ignoramuses in media and such who know nothing, they hear all the hucksters and fantasists jibber-jabbing and proceed to flood the world with untrue stories about AI and it's affects on society.
wang_li··on Apple Says Mac Studio and Mac Mini Will Be in Short Supply for Months
Yes, all the M-series have more cores, they often have better thermal management, and they have more memory bandwidth. (The the Neo still has crazy high bandwidth.) But, for a single threaded, strictly compute task that runs in 10 seconds, it outperforms the M4 cores. I don't know why, I'm just sharing my experience.

The actual code I am using for this is:

    #include <stdio.h>
    #include <sys/time.h>

    int gettimeofday(struct timeval *tp, void *tzp);

    int main(int argc, char *argv[]) {
      double xmin, xmax;
      double ymin, ymax;
      double x, y, xs, ys;
      int max_iter;
      int i, px, py;
      int width, height;
      volatile double wx, wy, t;
      double start, now;
      struct timeval tv;
      int count;

      xmin = -2.0;
      ymin = -1.5;
      xmax = 1.0;
      ymax = 1.5;

      max_iter = 1000;
      width = 200;
      height = 200;

      xs = (xmax - xmin) / (double) width;
      ys = (ymax - ymin) / (double) height;

      gettimeofday(&tv, NULL);
      start = (tv.tv_sec * 1000000.0 + tv.tv_usec) / 1000000.0;
      count = 0;
      now = start;
      while (now - start < 10.0 /* && count == 0 */) {
        for (y=ymin, py = 0; py < height; py++, y += ys) {
          for (x=xmin, px = 0; px < width; px++, x += xs) {
            wx = 0.0;
            wy = 0.0;
            for (i=0; i < max_iter && (wx * wx + wy * wy) < 4; i++) {
              t = wx * wx - wy * wy + x;
              wy = 2 * wx * wy + y;
              wx = t;
            }
          }
        }
        gettimeofday(&tv, NULL);
        now = (tv.tv_sec * 1000000.0 + tv.tv_usec) / 1000000.0;
        count ++;
      }
      printf("%d iterations in %.2f seconds.\n", count, now - start);
    }
wang_li··on Apple Says Mac Studio and Mac Mini Will Be in Short Supply for Months
In my personal experience, 13” M1 MacBook Air, 15” M4 Macbook Air, M4 Pro Mac Mini, and MacBook Neo, the Neo is the fastest for single threaded and strictly CPU bound tasks. E.g. calculating 200x200, 1000 max iterations Mandelbrot fractals it does ~785 in ten seconds compared to ~760 on the M4s and somewhere in the 600s for the M1.

Given its RAM size I’m not going to be spinning up VMs, but in terms of general purpose computing it’s more than adequate. And, out of the box, you get a word processor, spreadsheet, presentation, video editing, digital audio, web browser, and a bunch of other things. Xcode is free. This is easily a laptop you can buy and use for years in 90% of settings.

wang_li··on For Linux kernel vulnerabilities, there is no heads-up to distributions
There is an alternative mitigation you can use which blacklists the function calls when the affected code is not built as a kernel module.
wang_li··on Copy Fail
Should be able to just echo a 1 to /proc/sys/vm/drop_caches.
wang_li··on Copy Fail
it's living in your page cache, not on your disk. flush the caches and it'll disappear.
wang_li··on FCC Funding Application Notes Paramount Will Be 49.5% Foreign-Owned Post-Merger
Foreign direct investment is generally considered a good thing for the American economy.
wang_li··on I built "Middle Class Museum", a tour of things that used to be affordable
He has a belief that is mainly supportable only if he cherry picks specific examples that don't contradict his belief system.
wang_li··on I built "Middle Class Museum", a tour of things that used to be affordable
>Focusing though on the cost (you know, no one is going to prevent you from wearing a seatbelt) where is the equivalent today? A used Ford Focus off of Craigslist? A double-wide in a trailer park?

A brand new Nissan Versa for $17,300.

Work for an entire year after high school while living with your parents and saving money so you can attend a state school for <$10,000/year. Don't take out student loans so you can buy a premium laptop, luxury clothes, and travel. Don't get a new phone every one or two years. Don't sign up for 5+ streaming services. Don't buy coffee and toast from cafes.

https://www.nissanusa.com/vehicles/cars/versa-sedan.html

← PreviousPage 5 of 34Next →