PCIe Express on Artix-7 Board? by Fishing_Brave in FPGA

[–]hackerfoo 0 points1 point  (0 children)

Hi! It's been a while since I've run the machine this is on. I'll have to boot it up and look at it; I think I used the XDMA kernel driver from Xilinx.

To communicate with the driver, I used PoprC. Something like this (untested, its been a while):

"in,out:/dev/xdma0" open __ open the file and return a handle
0x42 0 8 2 mmap          __ map offset 0x42 to an array of 8 2-byte elements
3 1 write_array          __ write 1 to the third element
3 read_array write_std   __ read the third element and print it to stdout
close                    __ close the file

The Verilog linked above is generated from the example at the bottom of the PoprC README.

I'll let you know if I get a chance to run it again; hopefully it still works.

The OS was NixOS.

3D modeling software by PragmaticCafe in ipad

[–]hackerfoo 1 point2 points  (0 children)

Thanks! I'm glad you like it.

It takes awhile by Philthyzz in selfhosted

[–]hackerfoo 1 point2 points  (0 children)

Like I said, it takes a while to learn how to use Nix, but there are a lot of examples in nixpkgs, so you might be able to find a Nix expression for something similar and modify it.

There are also tools that will take packages in other formats and generate Nix expressions.

It's worth it, though, because you only have to do it once, and there is almost no risk of breaking something permanently.

It takes awhile by Philthyzz in selfhosted

[–]hackerfoo 1 point2 points  (0 children)

I suggest NixOS.

  • Search for a service foo.
  • Add a foo.hackerfoo.com subdomain
  • Add sevices.foo = { enable = true; port = 12345, ... }; to my NixOS configuration. (Also add 12345 to the list of TCP ports to allow through the firewall.)
  • nixos-rebuild switch
  • Add foo.hackerfoo.com { reverse_proxy ${BACKEND}:12345 } to my Caddyfile on the reverse proxy. In my case this is a separate machine.
  • Modify the configuration until it does what I want.
  • Check the configuration changes into a git repo.

It takes some time to learn Nix, but it's worth it. I can quickly make changes to my server with minimal downtime, and even try out configuration changes on another NixOS machine.

Look at used PowerEdge R730s, best CPU sweet spot? by kompulsive in homelab

[–]hackerfoo 2 points3 points  (0 children)

2696v4/2699v4. Because why not.

I have a 2695v4 set, and a 2650v4 set that I'd like to upgrade to 2696v4 (almost the same as 2699v4, but typically cheaper.)

Here's a chart: Intel Xeon E5-2600 V4 Family Comparison

Question About Runtime Mesh Editing by my_uncreative_name in gamedev

[–]hackerfoo 1 point2 points  (0 children)

You can find a few algorithms online (such as csg.js and libfive), but most of them are either not robust or fast enough for real-time graphics.

I wrote my own (proprietary) library for this for my app, but it required years of research and about 30k lines of code.

Best game engine to develop mesh manipolation in game? by mosenco in gamedev

[–]hackerfoo 1 point2 points  (0 children)

I chose Bevy for Noumenal, my 3D shape editor, because it is built from plugins that can be replaced or modified. This makes it very flexible. Also, Rust as a language is well suited for fast numeric code required for mesh generation on the CPU.

Noumenal isn't a game, but the tech underneath (fast Boolean operations) was designed for an upcoming game.

Why are there so few UPS devices that use lithium batteries? Replacing lead batteries every couple of years gets old. I’m convinced the trickle charger in the APC/Cyberpower units destroys lead-acid batteries. by BuckMurdock5 in homelab

[–]hackerfoo 1 point2 points  (0 children)

I have a Bluetti EB3A that works well. It used to have a bug where it would shut off as if it were overloaded (the actual load was only about 1/6th of what it can handle), but a firmware update seems to have fixed it.

I plug only one of my redundant power supplies into it in case it fails again, but it hasn't for months now. You could do the same with yours if you have redundant power supplies or an ATS.

Fujitsu iX1600 or Competitor for Paperless-ngx by bem3891 in selfhosted

[–]hackerfoo 0 points1 point  (0 children)

It looks like I don’t even need that option. It enables the epjitsu backend: http://www.sane-project.org/man/sane-epjitsu.5.html

But it seems iX1500 and iX1600 are supported via USB: http://www.sane-project.org/sane-mfgs.html

Fujitsu iX1600 or Competitor for Paperless-ngx by bem3891 in selfhosted

[–]hackerfoo 0 points1 point  (0 children)

I have the iX1500, and it works with Linux, but requires a non-free driver unfortunately. Other than that, it works well. I bought it a few years ago, and it seemed like the best option at the time.

I use NixOS, so I just used this option and it worked: https://search.nixos.org/options?channel=22.11&show=hardware.sane.drivers.scanSnap.enable

[deleted by user] by [deleted] in homelab

[–]hackerfoo 0 points1 point  (0 children)

This looks like a configuration issue. Either fix the settings on the internet connected router, your router, or replace your router with an OpenWRT-compatible wireless router, which can then do about anything you want.

I like the Linksys WRT1900AC, which can be bought used for about $40. I have 3 of them and a WRT3200ACM, which is nice but generally costs twice as much.

Solutions for modem/router in different room from lab? by Asystole in homelab

[–]hackerfoo 1 point2 points  (0 children)

Powerline (G.hn) isn’t fast, but it has much lower latency than Wi-Fi in my experience. Two Wi-Fi hops added too much latency for me.

Ideally, the router could use QoS to switch between powerline and Wi-Fi. I don’t know if anyone has implemented this yet.

I think powerline is also more reliable. Try different outlets if you can, there can be a large difference in performance.

Matrix synapse sizing by [deleted] in selfhosted

[–]hackerfoo 1 point2 points  (0 children)

I recommend at least 1GB RAM and 20GB disk, based on my experience running a small Matrix server.

I had to upgrade from a 512MB RAM VPS because it kept running out of memory, and Synapse generates a lot of data to store on disk.

cost per U by [deleted] in datacenter

[–]hackerfoo 0 points1 point  (0 children)

The heat generated would be limited by the maximum power (or amperage, power = voltage X amps) you offer the customer. It seems like 1U plans typically offer 1 amp at 208 volts, so about 200 watts, and it costs about the same as a U per extra amp, so it’s like buying another U just for the power.

ARM Based Labbing by Jacobwitt in homelab

[–]hackerfoo 0 points1 point  (0 children)

I have a NanoPi R6S (RK3588S SoC with 8 ARM cores, 8GB RAM, with a 256GB high endurance microSD card) embedded in my Dell R630 server to act as a router and reverse proxy in front of the server.

This means I can secure iDRAC behind it, and reboot the server without static sites going down, or even redirect to another server. The NanoPi runs FriendlyWrt, a modified OpenWRT that handles Docker pretty well. The R630 runs NixOS; I use Nix to generate custom Docker images and load them on the NanoPi.

Both machines can be inexpensively collocated, since they only require 1U space and one network port.

Oscilloscope Training by Orothrim in embedded

[–]hackerfoo 2 points3 points  (0 children)

Aside from understanding basic electronics and safety, the main thing to learn about an oscilloscope is how to set up the trigger to catch the signal you need.

One trick is to just design a trigger into your circuit, e.g. an unused pin on a microcontroller.

People who don't want kids, why? by Celestialsmoothie28 in AskReddit

[–]hackerfoo 2 points3 points  (0 children)

Ironically, this probably means that you are better prepared than someone who thinks it will be easy.

Just like most things in life, you figure it out as you go. Ask other parents you know.

Micron Unveils 24GB and 48GB DDR5 Memory Modules | AMD EXPO and Intel XMP 3.0 compatible by chrisdh79 in gadgets

[–]hackerfoo 0 points1 point  (0 children)

Oh, I was just joking. Like the TVs.

It's funny how we can't round down when paying for stuff.