Better HN
topnewbestaskshowjobs
Log inSign up

elFarto

229 karma · joined Mar 17, 2015 (11y ago) · 81 submissions

Submissions

comment 1mo ago · link · parent

You can also use a shebang and mark the file as executable on Linux:

  #!/usr/bin/java --source 25
  
  void main(String[] args) throws Exception {
    var addr = java.net.InetAddress.getByName(args[0]);
    System.out.println(addr);
  }

comment 5mo ago · link · parent

The tax for electric cars is normally £200 after the first year or £20 for electric cars older than 2017.

comment 1y ago · link · parent

We saw all incoming traffic to our app drop to zero at about 15:45. I wonder how long this one will take to fix.

4.

What It Took to Build a 64-Bit Linux Distribution from Scratch from Windows XP [video](youtube.com ↗)

1 points · by elFarto · 1y ago · 1 comment

comment 1y ago · link · parent

I was using the asn1bean Java library yesterday funnily enough. I'm sure it's fine for X.509 stuff, however lucky me got to use it with the more obscure parts of X.400. It's lacking support for COMPONENTS OF, and a bunch of other things that were likely deprecated from the ASN.1 spec a few decades ago.

comment 3y ago · link · parent

It wasn't the first computer they've made, or at least had their name on[1].

[1] https://en.wikipedia.org/wiki/BBC_Micro

comment 3y ago · link · parent

Actually Unicode has something for character creation: 'IDS', or Ideographic Description Sequence. For example, the Chinese character for the word Biang[1] can be describe with:

⿺辶⿳穴⿲月⿱⿲幺言幺⿲長馬長刂心

[1] https://en.wikipedia.org/wiki/Biangbiang_noodles#Chinese_cha...

comment 3y ago · link · parent

> What's now really missing is from sourceware binutils: fine grained control of the versions of the symbols to use while creating binaries.

I did actually prototype an idea for attempting to fix this. The tool would take a list of symbols from a text file and produce a (non-functioning) .so file that ld can link against. The newly created .so file can be injected in via an environment variable (LIBRARY_PATH iirc).

Since the list of symbols is just text, it's easily modified to contain only the one's that you want to target.

It's not a complicated tool to write, but there are some issues like how to reliably get ld to pick the correct .so file when you're overriding an existing on, LIBRARY_PATH is not 100% reliable. The other issue was if it's nessassary to recreate all the symbol types (like weak, etc..) exactly, I'm not sure exactly what's required for ld.

comment 3y ago · link · parent

I did receive a notification from Microsoft of a suspicous login about a week ago. The password for that account was a relatively strong one (upper/lower case, numbers and some symbols I think). It was an actual login, not just an attempt. I also don't use my Microsoft account for anything (no Windows/Xbox).

So I'm inclined to say that they have had a breach.

comment 3y ago · link · parent

> Those other processes with the tightest sandbox possible...

I guess I should get really around to getting the nvidia-vaapi-driver to work inside the decode sandbox, rather than requiring it to be disabled.

comment 4y ago · link · parent

Funny coincidence, I was just watching a video on the history of trackers yesterday: https://www.youtube.com/watch?v=roBkg-iPrbw

comment 4y ago · link · parent

The B1M Youtube channel did a video[1] featuring this plant the other day which goes into some of the delays they had.

[1] https://www.youtube.com/watch?v=dyQMNVSxbNo

comment 4y ago · link · parent

Most kettles in the UK are 3kW, which is right at the limit of how much you can draw from a regular socket with a 13A fuse.

comment 4y ago · link · parent

I found SMTP2GO has a pretty good free tier, at 1000/month. https://www.smtp2go.com

comment 4y ago · link · parent

Two videos infact: https://www.youtube.com/watch?v=ghUs-84NAAU

comment 4y ago · link · parent

I'm using Enpass, which mostly works fine. However, they've recently moved to a subscription model which is unfortunate, where-as I bought the Android version a while ago which gave me a 'Premium license'.

comment 4y ago · link · parent

Regarding the video decode support in Firefox, I've got a working solution to that (a VA-API implementation backed by NVDEC). Just waiting for some Firefox patches to land to release it.

No sure it works on wayland though, not tested it there.

comment 5y ago · link · parent

I actually wrote a UEFI boot loader a few weeks ago that loads the kernel, initramfs and command line directly from a file on the root fs. It uses the efifs project to let it load directly off of an ext4 file system.

It's nice to use compared with grub, just edit a file and reboot. I've struggled to understand exactly how the fedora boot system is configured, and which command I need to run or file to edit to get it reconfigured.

comment 5y ago · link · parent

Interesting. I've always wondered why there wasn't an addition in/out fd pair for communicating with the previous/next program in a chain of pipe, e.g:

  foo     |  bar
  STDOUT --> STDIN
  ALTIN  <-- ALTOUT
You could detected it by looking for specially number fd's open on program launch, or maybe an environment variable.

comment 5y ago · link · parent

I'm really hoping they rename the ship, Ever Grounded.

comment 5y ago · link · parent

There's Bridget[1], a non-overlay network for k8s that can use/create a VLAN over a network adapter (or just use the network adapter directly).

[1] https://github.com/kvaps/bridget

comment 6y ago · link · parent

I'm not sure HN will even allow emojis:

Burrito: Taco:

edit No, it stripped those :'(.

comment 6y ago · link · parent

The CPU only has 8 lanes of PCIe. It's using a PCIe switch to get the rest of the lanes. USB is also connected via the PCIe switch. The ethernet adapter is connected directly to the CPU though.

comment 6y ago · link · parent

Well, they've finally got the right form factor, but that price is...expensive, esp. considering it's not got much more than a Raspberry PI 4 Compute Module + I/O board which is about £110/$150. And the PI has a GPU built-in.

Likely that PCIe switch IC they've got in there is a fair chunk of that price.

comment 6y ago · link · parent

I doubt it's a limit of the CPU. It might be a limit of the method used to connect the PCIe component to the CPU (the SCB bus on the PI IIRC).

The device tree file does contain the range of memory to use for the PCI BAR, could it be as simple as increasing that number (the last value of the 'ranges' item I think) and rebuilding it? Seems unlikely, but might be worth a go. I'm uncertain how much the device tree file is describing the actual setup of hardware, and how much is used to actually configure the hardware.

The larger issue might be the complete lack of I/O space. Again this could be added in the device tree file, but who knows if the underlying device even supports it.

comment 6y ago · link · parent

I was thinking you could use a PCIe Non-Transparent Bridge IC to connect all the PI's together. However those sort of chips aren't cheap, and it would only be a ~5x speed increase over the Gigabit ethernet.

comment 6y ago · link · parent

The DRM on the Audible downloads is so easy to remove, then you can have it in whatever format you want:

   ffmpeg -activation_bytes <your magic bytes> -i inputfile.aax -vn -c:a copy output.m4a
You'll need to search around for how to find out your magic bytes, but it's not difficult.

comment 6y ago · link · parent

There's also this magic function:

  private static <T extends Throwable> T sneakyThrow(Throwable ex) throws T {
     throw (T) ex;
  }
Due to generic type erasure, the entire throw clause gets erased so it looks like this method doesn't throw anything.

comment 6y ago · link · parent

I came across a video of someone soldering a WLCSP package IC, with a soldering iron tip about as big as the chip itself.

https://www.youtube.com/watch?v=edERx4x5eY0

comment 6y ago · link · parent

The 'ip' command only operates on runtime state (it doesn't save anything to disk).

NetworkManager used to be configured to save it's config to /etc/sysconfig/network-scripts on Fedora, for backwards compatibility (see /etc/NetworkManager/NetworkManager.conf).

/etc/network/interfaces is the Debian alternative to network-scripts. I don't use Debian based distros much so I don't know too much about that.

There's also systemd's networkd, which has it's own config in /etc/systemd/network.

Honestly I'm surprised you've got a Fedora machine with networkd. Usually NetworkManager has been the goto choice (and is what my Fedora 32 install has, although this install has been upgraded from Fedora 23 so take that for what it's worth).

Most of this mess comes from ifconfig (which again, only operated on runtime state), which people then wrote scripts around to automate the setup of the networks. Then ip came along to access networking features that ifconfig couldn't.

You best off sticking to NetworkManager (in my opinion) for desktop usage. It has a far better GUI integration than networkd (which is fine for server/embedded use).

123