urn:jj:justjournal.com:atom1:laffer1The Design and Implementation of laffer1Lucas2024-03-29T11:28:21.663Zurn:jj:justjournal.com:atom1:laffer1:33966Updating a PS3 to a SSD2024-02-04T21:44:18.000Z2024-02-04T21:44:18.000ZI've been working on migrating my PS3 to a WD red 500GB ssd from the original 80GB toshiba hard drive. The hardware part is easy. For the software, you have to download the PS3 update from Sony's playstation website and then put it on a USB flash drive on PS3/UPDATE/ with the file named as downloaded. It will pick it up and load. Then you do an initial setup and then start the restore process. (assumes you have a backup from old drive ahead of time)
It takes like an hour to backup and another hour to restoreurn:jj:justjournal.com:atom1:laffer1:33962Setting up mandoc man.cgi on MidnightBSD2024-01-11T23:05:23.000Z2024-01-11T23:05:23.000ZMandoc (mdocml) includes a man.cgi(8) script to display man pages. Here's a quick and dirty explanation on how to set it up.
* mport install mdocmlÂ
* Files will be installed in /usr/local/www/mdocml/
* Configure apache
* Configure man directory
create a directory /man on your file system. This is the default path.Â
in it, create a file called manpath.conf
it should have a RELATIVE path for one or more directories (per line) that you want to index.Â
so /man/midnightbsd-3.1
copy the man1, man2, and so on folders from /usr/share/man for your release.Â
extract all of then with gunzip
run makewhatis -a . from the /man/midnightbsd-3.1 folder. This will create your mandoc.db file.Â
Apache config
<VirtualHost *:80>
    Protocols h2c http/1.1
    H2Direct on
    DocumentRoot /usr/local/www/mdocml/htdocs/
    ServerName man.midnightbsd.org
    ErrorLog /var/log/man.midnightbsd.org-error_log
    CustomLog /var/log/man.midnightbsd.org-access_log combinedio
    RedirectMatch ^/$ /cgi-bin/man.cgi
    <Directory /usr/local/www/mdocml/>
    DirectoryIndex man.cgi index.html
    Require all granted
    </Directory>
    ScriptAlias /cgi-bin/ "/usr/local/www/mdocml/cgi-bin/"
    <Location "/cgi-bin/man.cgi">
    Options +ExecCGI
    SetHandler cgi-script
    </Location>
</VirtualHost>urn:jj:justjournal.com:atom1:laffer1:33959vm-bhyve quick start for MidnightBSD2024-01-07T00:13:57.000Z2024-01-07T00:13:57.000Z1\. mport install vm-bhyve
2\. vm init
6\. cp /usr/local/share/examples/vm-bhyve/* /mountpoint/for/vm/.templates/
7\. vm switch create public
8\. vm switch add public em0
9\. vm iso https://midnightbsd.org/ftp/MidnightBSD/releases/amd64/ISO-IMAGES/3.1.3/MidnightBSD-3.1.3--amd64-disc1.iso
10\. vm create myguest
11\. vm install [-f] myguest MidnightBSD-3.1.3--amd64-disc1.iso
12\. vm console myguest
Here's an example template for midnightbsd.
loader="bhyveload"
cpu=3
memory=4096M
network0_type="virtio-net"
network0_switch="public"
disk0_type="virtio-blk"
disk0_name="disk0.img"
disk0_size="90"
urn:jj:justjournal.com:atom1:laffer1:33958HPE DL20 Gen9 Configuration issues with Linux2024-01-07T00:09:34.000Z2024-01-07T00:09:34.000ZI had a lot of issues getting HPE DL20 gen9 server working with Linux today. It won't even boot with ubuntu server 23.10 or the LTS release. It would hang with constant resets on the SSA.Â
Disabling SSA and going to AHCI mode in the bios allowed me to boot debian 12 after a lot of trial and error.urn:jj:justjournal.com:atom1:laffer1:33957Installing the docker ship for k8s2024-01-07T00:06:12.000Z2024-01-07T00:06:12.000Z"https://computingforgeeks.com/install-mirantis-cri-dockerd-as-docker-engine-shim-for-kubernetes/" (https://computingforgeeks.com/install-mirantis-cri-dockerd-as-docker-engine-shim-for-kubernetes/)urn:jj:justjournal.com:atom1:laffer1:33956Initializing kubeadm with the cri socket for docker use2024-01-07T00:05:25.000Z2024-01-07T00:05:25.000Zkubeadm init --pod-network-cidr=10.244.0.0/16 --cri-socket=unix:///var/run/cri-dockerd.sock
urn:jj:justjournal.com:atom1:laffer1:33955using metalink tools (CLI) to generate a metalink file2024-01-07T00:03:32.000Z2024-01-07T00:03:32.000Z**Install metalink-tools package **
mport install metalink-tools
metalink -d md5 -d sha1 M*Â < mirror > 3.1.3-amd64.metalink
where mirror is a text file containing:
us 10 % "https://archer.midnightbsd.org/ftp/releases/amd64/ISO-IMAGES/3.1.3/Â" (https://archer.midnightbsd.org/ftp/releases/amd64/ISO-IMAGES/3.1.3/Â)
us 10 % "https://ns3.foolishgames.net/ftp/pub/MidnightBSD/releases/amd64/ISO-IMAGES/3.1.3/" (https://ns3.foolishgames.net/ftp/pub/MidnightBSD/releases/amd64/ISO-IMAGES/3.1.3/)
us 20 % "https://www.midnightbsd.org/ftp/MidnightBSD/releases/i386/ISO-IMAGES/3.1.3/" (https://www.midnightbsd.org/ftp/MidnightBSD/releases/i386/ISO-IMAGES/3.1.3/)
uk 10 % "https://discovery.midnightbsd.org/releases/amd64/ISO-IMAGES/3.1.3/" (https://discovery.midnightbsd.org/releases/amd64/ISO-IMAGES/3.1.3/)
jp 10 % "https://pub.allbsd.org/MidnightBSD/releases/amd64/ISO-IMAGES/3.1.3/" (https://pub.allbsd.org/MidnightBSD/releases/amd64/ISO-IMAGES/3.1.3/)urn:jj:justjournal.com:atom1:laffer1:33954k8s on debian 12 links2024-01-07T00:01:46.000Z2024-01-07T00:01:46.000ZInstall kubernetes cluster on debian 12
"https://computingforgeeks.com/install-kubernetes-cluster-on-debian-12-bookworm/" (https://computingforgeeks.com/install-kubernetes-cluster-on-debian-12-bookworm/)
install k8s on debian 11
"https://www.node35.com/how-to-install-kubernetes-on-debian-11-bullseye/" (https://www.node35.com/how-to-install-kubernetes-on-debian-11-bullseye/)urn:jj:justjournal.com:atom1:laffer1:33953Using HPE ILM v42024-01-06T23:53:34.000Z2024-01-06T23:53:34.000ZIf you need to use HPE ILM v4 on a server, there is usually a sticker on the server with the default hostname and username/password combination. You can then hit that with a web browser to the standard port and login.
In the bios, you can also add users and set permissions for it.urn:jj:justjournal.com:atom1:laffer1:33952HPE dl20 gen9 debian 12 software2024-01-06T23:51:04.000Z2024-01-06T23:51:04.000ZIf you need to install HPE management software in linux for the agent or ssa configuration, do the following
create a file in /etc/apt/sources.list.d/
deb "http://downloads.linux.hpe.com/SDR/repo/mcp/debian/" (http://downloads.linux.hpe.com/SDR/repo/mcp/debian/) bookworm/12.80 non-free non-free-firmware
for keys:
curl -fsSL https://downloads.linux.hpe.com/SDR/hpPublicKey2048.pub | gpg --dearmor -o /usr/share/keyrings/hpPublicKey2048.gpg
curl -fsSL https://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub | gpg --dearmor -o /usr/share/keyrings/hpePublicKey2048_key1.gpg
curl -fsSL https://downloads.linux.hpe.com/SDR/hpPublicKey2048_key1.pub | gpg --dearmor -o /usr/share/keyrings/hpPublicKey2048_key1.gpg
For agent:
apt install amsd
For ILM (LOM)
apt install hponcfgurn:jj:justjournal.com:atom1:laffer1:33949Tuning for search engine traffic2023-10-24T16:10:37.000Z2023-10-24T16:10:37.000ZWhen you have a small site, the worst-case scenario is a spider indexing you that doesn't honor robots.txt. Yandex is particularly bad about this. Trying to tune for a large indexing operation becomes the bottleneck.Â
It's effectively the load test.urn:jj:justjournal.com:atom1:laffer1:33947The problem with benchmarks2023-09-15T20:17:04.000Z2023-09-15T20:17:04.000ZI frequently see folks arguing about CPUs to buy. Many want everyone to buy a 5600x or 12600k or some other variant that's last gen and cheap. The idea is that gamers don't need anything more so these should be the only choices for 99% of the world. Â
The problem with that is gaming and even more specifically, people who would build their own PC also are a very niche group also. If you think the most common workload should dictate all benchmarks, we'd only benchmark Microsoft Office apps and web browsers. That's what most people use a computer for right? Â
Don't be that guy who thinks his own use case is the only one that matters. Â
I care about compiler and lzma performance more than anything else when selecting a CPU. Other people need to make youtube videos, play games, work on AI/ML workloads, CAD, or other tasks. It's not universal. That's what is great about PCs and not so great about modern Macs.urn:jj:justjournal.com:atom1:laffer1:33940The system from hell2023-06-20T16:05:22.000Z2023-06-20T16:05:22.000ZI bought a 11700 CPU to upgrade an existing 10th gen system. Big mistake. Many motherboards for 10th gen do not support 11th gen CPUs. I didn't check and fried the motherboard and RAM. Bought new motherboard and RAM. 2 months later, the integrated graphics fails. This could be the motherboard ports or the iGPU in the CPU. I could test another CPU in the motherboard to see which but I don't trust it to risk the good CPU lol. Â
I should have done a 13th gen build instead. Didn't know I needed to buy new MB/RAM.urn:jj:justjournal.com:atom1:laffer1:33939Sonarqube2023-06-20T16:02:31.000Z2023-06-20T16:02:31.000ZI've used Sonarqube for many years in various roles. I've used the cloud version. I've used the on-prem version. I used to administer it at U-M on FreeBSD systems.Â
There are a few issues that are getting increasingly annoying about it. It's always had some bugs with respect to guessing the merge state on master. However, it seems to have gotten worse in newer versions. It can be way off in terms of coverage or duplicate detection.Â
Then there are some of their newer "major" issues, like using guava's ImmutableMap. There is NO REPLACEMENT in Java for this data type as is. You can almost fake part of it with a combination of LinkedHashMap plus the immutable wrapper but it's still not there.  If you want to guarantee data will be in insertion order and also have access to of() style creation, there is nothing like it in base java. So dinging people as though there's a compatible Java feature is insane, especially at major level. It's info at best since it's something to check but likely not an issue! Map.of doesn't work because it doesn't guarantee insertion order. Â
Finally, there is should be a more reasonable UPPER limit on code coverage with the tool. My employer's configuration requires 95% coverage for new PRs at this point. That shouldn't even be a thing! 95% is crazy town. You start writing bad code to avoid sonar dings. Many teammates won't do null checks or write in a way that avoids null now.  This tool hurts quality when you push devs to that level of frustration. Â
I think code coverage should be around 80-85% in Java. Anything more and you're just doing obnoxious things.urn:jj:justjournal.com:atom1:laffer1:33938$3499 Vision Pro2023-06-05T19:33:57.000Z2023-06-05T19:33:57.000ZVision Pro: The pico, newton, iPod socks, and g4 cube are looking really good right now!
Tim nailed his legacy on this one.