HackerTrans
TopNewTrendsCommentsPastAskShowJobs

yuuta

no profile record

Submissions

Nginx access log to standard output is not as easy as using /dev/stdout

blog.yuuta.moe
2 points·by yuuta·vor 2 Jahren·0 comments

FreeBSD Supports Netlink(7) and Iproute2

cgit.freebsd.org
2 points·by yuuta·vor 4 Jahren·1 comments

Alternative Rust compiler producing C

github.com
2 points·by yuuta·vor 4 Jahren·1 comments

YouTube-dl has an interpreter for a subset of JavaScript in 870 lines of Python

twitter.com
473 points·by yuuta·vor 4 Jahren·155 comments

comments

yuuta
·vor 3 Jahren·discuss
RIP
yuuta
·vor 3 Jahren·discuss
I never trusted Signal due to https://github.com/net4people/bbs/issues/60
yuuta
·vor 3 Jahren·discuss
Ever since Microsoft acquisition
yuuta
·vor 3 Jahren·discuss
Still no #embed
yuuta
·vor 3 Jahren·discuss
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
·vor 3 Jahren·discuss
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
·vor 3 Jahren·discuss
I'm always using the Enterprise edition. No such crap.

Microsoft should treat consumers better.
yuuta
·vor 4 Jahren·discuss
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
·vor 4 Jahren·discuss
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);
yuuta
·vor 4 Jahren·discuss
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
·vor 4 Jahren·discuss
NT and Unix are completely different OS. You cannot develop Windows programs the Unix way, and vice versa.
yuuta
·vor 4 Jahren·discuss
Very impressive ... I hope I can get a /24.
yuuta
·vor 4 Jahren·discuss
I don't see the whole point. It's like creating yet-another-ntp-implementation while other well-known implementations are known to be working good and safely on billions of devices.

It is easier to report a security issue to ntpd or chrony instead of creating a new one.
yuuta
·vor 4 Jahren·discuss
Benefits:

* Unified protocol to manage networking facilities

* iproute2 for FreeBSD, deprecating ifconfig(1) stuff
yuuta
·vor 4 Jahren·discuss
Note: it does not do any optimization, but delegating this task to the C compiler.
yuuta
·vor 4 Jahren·discuss
I had been using Xournal++ for a year, and it is truly amazing.
yuuta
·vor 4 Jahren·discuss
With the same or even cheaper price, you can get a much more powerful and enterprise grade refurbished rack server on eBay.