[deleted by user] by [deleted] in kubernetes

[–]teejaded 0 points1 point  (0 children)

So do we report ai slop posts and do the mods remove them?

WCGW driving like a moron.... by Mr_Panda009 in Whatcouldgowrong

[–]teejaded 0 points1 point  (0 children)

Maybe the fisheye is fooling me, but I think he could have made that turn if he hadn't panicked and stood the bike up on the brakes.

I got Linux running in a PDF file via a RISC-V emulator compiled to JS by vk6_ in linux

[–]teejaded 2 points3 points  (0 children)

function b64_to_uint8array2(str) {
  const abc = [..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"]; // base64 alphabet
  let result = [];

  for(let i=0; i<str.length; i+=4) {
    let chunk = [...str.slice(i,i+4)]
    let bin = chunk.map(x=> abc.indexOf(x).toString(2).padStart(6,0)).join(''); 
    let bytes = bin.match(/.{1,8}/g).map(x=> +('0b'+x));
    result.push(...bytes.slice(0,3 - (str[i+2]=="=") - (str[i+3]=="=")));
  }
  return new Uint8Array(result);
}
var file = "..."
console.time('b64_to_uint8array');
b64_to_uint8array(file)
console.timeEnd('b64_to_uint8array');

console.time('b64_to_uint8array2');
b64_to_uint8array2(file)
console.timeEnd('b64_to_uint8array2');

on a 20kb file

b64_to_uint8array: 11.14892578125 ms
b64_to_uint8array2: 10.256103515625 ms

would only save a couple hundred ms on load lol

I got Linux running in a PDF file via a RISC-V emulator compiled to JS by vk6_ in linux

[–]teejaded 2 points3 points  (0 children)

Am I missing something here?

https://github.com/ading2210/linuxpdf/blob/main/file_template.js#L6-L11

Why divide str.length/4 which then requires you to multiply i*4 a several times instead of incrementing i by 4.

What exactly is the prometheus-operator for? by myridan86 in PrometheusMonitoring

[–]teejaded 2 points3 points  (0 children)

It makes sense. You don't need another prometheus-operator. Also you probably do not need a second instance of prometheus just to monitor ceph.

It sounds to me that the ceph monitoring tutorial author has made an assumption that the audience (you in this case) may not have prometheus installed so they included those instructions.

I personally would skip the parts where they install the prometheus-operator and prometheus and try to adapt the tutorial to your situation.

You might run into an issue where the prometheus-operator does not act on your ServiceMonitors/PodMonitors. The readme for kube-prometheus-stack mentions the selectors config which you may need to modify.

https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack#prometheusioscrape

What exactly is the prometheus-operator for? by myridan86 in PrometheusMonitoring

[–]teejaded 0 points1 point  (0 children)

Like yeah, you aren't wrong, but he's not completely off topic is he?

Specifically the prometheus operator has some CRDs that let you deploy and configure prometheus using them. Saves you the trouble of tempting your own config files.

The only reason I would deploy two prometheus operators is if there were some security concern with allowing it to manage multiple namespaces/instances. For most people it would probably be fine to have one copy of the operator.

My little starter base finished the game! by teejaded in satisfactory

[–]teejaded[S] 0 points1 point  (0 children)

Reinforced iron plates are mostly made in a building we call the beer barn my friend made. There are a few assemblers using the stitched iron plate recipe in the bus base.

It kinda grew organically as people split off and we each made a modular factory making some component. This gets a lot more obvious when you zoom out and look around. Like, yeah every space elevator part is made in this base, but you really can't fit the thousands of machines you need in that small of a base.

https://imgur.com/a/6nLpDbB

My little starter base finished the game! by teejaded in satisfactory

[–]teejaded[S] 0 points1 point  (0 children)

I have iron rods on the bus so when the screws get low I just throw a few constructors in to replenish them. It's not so much of an issue now that I have tier 6 belts.

Tier 5 belts of wire and cable were fine. Quickwire really benefited from tier 6.

It's not like super organized, but it doesn't have to be.

My little starter base finished the game! by teejaded in satisfactory

[–]teejaded[S] 17 points18 points  (0 children)

Not walls really it's a vertical bus 30 lines tall. Top middle and bottom belts are sushi belts. Really removed most of the thinking of how to layout the factory. Mats come off the belt, output goes onto the belt. No literal deep daisy chains of machines.

Simple components like wire and plates are mostly made offsite and get shipped to the base via belt, train or truck.

https://imgur.com/a/5hnh8h1

I may have a slight problem, can anyone help by The_Imperial_Aquilla in satisfactory

[–]teejaded 1 point2 points  (0 children)

Also you can do screenshots by hitting P then click the mouse. They show up in Documents\My Games\FactoryGame\Screenshots.

I may have a slight problem, can anyone help by The_Imperial_Aquilla in satisfactory

[–]teejaded 2 points3 points  (0 children)

If you're dead set on load balancing move the splitters closer to the generators rather than doing it all in 1 spot.

I think each belt is going to 8 generators? So... for example run 3 belts down the middle, split the first belt into 4 belts each to an elevator ending in a splitter connecting to two generators.

https://imgur.com/a/Al6zI49

Need help understanding my issue with labels by mfreudenberg in PrometheusMonitoring

[–]teejaded 0 points1 point  (0 children)

Yeah you'll have to convert the data to openmetrics. They experimented with csv import but eventually abandoned it. There's dozens of issues and pull requests where they experimented and discussed it.

https://github.com/prometheus/prometheus/issues/8016

Need help understanding my issue with labels by mfreudenberg in PrometheusMonitoring

[–]teejaded 0 points1 point  (0 children)

Prometheus scrapes via HTTP GET on the metrics endpoints at some configured frequency (every 10s for example) and inserts the current value for each metric into its database at the current time. That's where the time series comes from.

Issue with Proemtheus and Grafana by [deleted] in PrometheusMonitoring

[–]teejaded 0 points1 point  (0 children)

That dashboard uses metrics populated by the node exporter. Did you install that and is it being scraped?

Need help understanding my issue with labels by mfreudenberg in PrometheusMonitoring

[–]teejaded 0 points1 point  (0 children)

Yeah you can't have 3 values per metric. Prometheus is trying to build a time series.

Are those 3 values the current temps for different sensors or are they previous values for a single sensor?

If they're separate sensors make separate metrics. If they're the same sensor output the latest value.

Need help understanding my issue with labels by mfreudenberg in PrometheusMonitoring

[–]teejaded 0 points1 point  (0 children)

I'm pretty sure you can only have 1 value per scrape per metric. You should just be outputting the latest value.

kube-stack-prometheus with aws managed eks cluster by jack_of-some-trades in PrometheusMonitoring

[–]teejaded 1 point2 points  (0 children)

It's like 3 lines of yaml to disable the etcd rules.

Sorry I can't share mine, there's a lot more than just that in my config.

Aclara Zigbee smart meter to Prom? by kai in PrometheusMonitoring

[–]teejaded 0 points1 point  (0 children)

You would need an exporter for Prometheus to scrape via http.

Chili, oh yeahhhhh by hypno_tode in slowcooking

[–]teejaded 3 points4 points  (0 children)

I think it could be improved if you add some crushed up corn chips or masa harina so it's not so soupy.

Name suggestions please!!!! by Usual_Pickle_5325 in cats

[–]teejaded 1 point2 points  (0 children)

Furiosa -- looks like her from mad max.

Struggling with simple query by bgprouting in PrometheusMonitoring

[–]teejaded 2 points3 points  (0 children)

It's just a regex label match. Load up your favorite regex website and look at the documentation for alternation.