Readit News logoReadit News
yuuta commented on Bram Moolenaar has died   groups.google.com/g/vim_a... · Posted by u/wufocaculura
yuuta · 2 years ago
RIP
yuuta commented on I don't trust Signal   blog.dijit.sh//i-don-t-tr... · Posted by u/dijit
yuuta · 3 years ago
I never trusted Signal due to https://github.com/net4people/bbs/issues/60
yuuta commented on GitHub incident: ongoing issues with Actions, Issues and other Git operations   githubstatus.com/incident... · Posted by u/jaitsu
yuuta · 3 years ago
Ever since Microsoft acquisition
yuuta commented on New C features in GCC 13   developers.redhat.com/art... · Posted by u/petercooper
yuuta · 3 years ago
Still no #embed
yuuta commented on Booting Modern Intel CPUs   mjg59.dreamwidth.org/6610... · Posted by u/zdw
yuuta · 3 years ago
That's a pretty good article, but I expect more in-depth information on booting modern Intel CPUs ... I am very interested in modern UEFI / BIOS firmware development and how do they bring up x86 CPUs, but unfortunately there are very little source (I guess, except for EDK2), and the majority (?) of x86 firmwares are proprietary. Booting x86 is much more complicated than writing a linker script with a vector table for your microcontroller ... so, this seems very interesting.
yuuta commented on Unpopular Opinion: Don’t Use a Raspberry Pi for That   set-inform.com/2021/08/24... · Posted by u/Narutu
yuuta · 3 years ago
I have been running my homelab for 2 ~ 3 years, and I never considered rpi to be one of the servers ... It is just for toys or some "high school robots" stuff, with 0% availability and are very fragile. How many times your SD card fail / filesystem break / undervolt occurs / accidentally short-circuit? If you want to have a host running Linux 24 * 7, go with a used Thin Client on eBay (they are at least x86). If you are like me who want to build a rack at home, go with some used PowerEdge / ProLiant gears from eBay. They do way better things than your Pi (with BMC, Xeon cores, and ECC memory, possibly), and they are cheaper as well (my PowerEdge R520 servers only cost less than C$200 each). These machines have proper CPU, hard drive, and power supply. Do not use a Pi unless you are building some IoT experiments that require GPIOs.
yuuta commented on Microsoft shows full-screen Windows 11 upgrade ads with two 'yes' buttons   neowin.net/news/microsoft... · Posted by u/Alupis
yuuta · 3 years ago
I'm always using the Enterprise edition. No such crap.

Microsoft should treat consumers better.

yuuta commented on Debloating Windows 10 with one command and no internet scripts   gabrielsieben.tech/2023/0... · Posted by u/gjsman-1000
yuuta · 3 years ago
Better way: use Get-AppxProvisionedPackage and Remove-AppxProvisionedPackage during OOBE to remove them for all users.

Bonus: Use these cmdlets on a offline mounted WIM image to build a custom image without bloats.

yuuta commented on Linux /proc/pid/stat parsing bugs   openwall.com/lists/oss-se... · Posted by u/ototot
yuuta · 3 years ago
Indeed. Parsing files is a less robust way compared to calling some APIs or at least parsing some files with a schema (e.g. JSON or XML). For example, uptime(1) on Linux:

% strace uptime 2> /tmp/strace && grep proc /tmp/strace

17:35:24 up 3 days, 7:47, 1 user, load average: 2.29, 1.85, 1.56

openat(AT_FDCWD, "/usr/lib/libprocps.so.8", O_RDONLY|O_CLOEXEC) = 3

openat(AT_FDCWD, "/proc/self/auxv", O_RDONLY) = 3

openat(AT_FDCWD, "/proc/sys/kernel/osrelease", O_RDONLY) = 3

openat(AT_FDCWD, "/proc/self/auxv", O_RDONLY) = 3

openat(AT_FDCWD, "/proc/uptime", O_RDONLY) = 3

openat(AT_FDCWD, "/proc/loadavg", O_RDONLY) = 4

yuuta · 3 years ago
It may be better if we have something similar to (pseudocode) for kernel APIs:

  struct uptime_t u = {
  
      .time = 0
  
  };

  ioctl(open("/proc/uptime"), GET_UPTIME, &uptime);

u/yuuta

KarmaCake day434March 26, 2021
About
Just a student interested in computer science. Use Java / C. https://blog.yuuta.moe
View Original