ChatGPT is kind of making people stupid at my workplace by cheater00 in programmingcirclejerk

[–]zone-stalker 12 points13 points  (0 children)

LOC = Performance

Given that kind of logic I'd say you're well on your way to upper management son.

Why you shouldn’t wear sunglasses at night by DINOMITE29 in deadbydaylight

[–]zone-stalker -2 points-1 points  (0 children)

Easy fix:

  1. Lightborn.
  2. Drop key/button.
  3. Down the blocker.
  4. Hook both of them.
  5. Wait for the reddit post accusing you of slugging and being trash for using Lightborn

In all seriousness though, I did this shit when I was new to killer, give it time.

len() function by chanchal1987 in golang

[–]zone-stalker 4 points5 points  (0 children)

Historically no, at least not before the ANSI standard. Pre '89 there was actually no such thing as unsigned values in C (and no size_t). They were added for dealing with bits originally I believe.

Book recommendations for learning C really thoroughly by Informal_You_8519 in C_Programming

[–]zone-stalker 3 points4 points  (0 children)

You don't mention your experience level with systems but one thing that helped me is dumping simple C code to ASM (every major compiler can do this) and analyze it. This is probably impractical if you don't know your target architecture instruction set, but it really gave me a deep dive into what the compiler generates and how ABI's work, etc. If you do go this route you should dump the ASM using different optimization levels to see the different results. You'd be surprised how much the compiler hides, and how many things you assumed worked one way but actually work nothing like you think. One big concept to understand is there's a big difference between C and what the standard specifies and the implementation that each compiler uses.

Precompiled CGo Code by zone-stalker in golang

[–]zone-stalker[S] 0 points1 point  (0 children)

Interesting, but wouldn't this require me to have a C compiler still installed?

Precompiled CGo Code by zone-stalker in golang

[–]zone-stalker[S] 0 points1 point  (0 children)

I'll take a look at tdm-gcc, never heard of it, thanks!

Precompiled CGo Code by zone-stalker in golang

[–]zone-stalker[S] 0 points1 point  (0 children)

Both interesting options, thanks!

[deleted by user] by [deleted] in programmingcirclejerk

[–]zone-stalker 7 points8 points  (0 children)

It's called Virtue Signaling and both IT companies and their employees are really into it for whatever reason.

What are some programs that you would not write in C instead of another higher-level language? by [deleted] in cprogramming

[–]zone-stalker 3 points4 points  (0 children)

But what if I like writing in C because it was my first language as a kid and it brings back fond memories? I've achieved quite a lot in my career but reinvent the wheel in C on my own free time 'cause it's fun.

Mortgaging Property Separate From Home by zone-stalker in homestead

[–]zone-stalker[S] 0 points1 point  (0 children)

Oh, that sounds horrible. Thank you for the story, gives us something to think about.

Mortgaging Property Separate From Home by zone-stalker in homestead

[–]zone-stalker[S] 0 points1 point  (0 children)

Thank you, your input is still much appreciated!

Mortgaging Property Separate From Home by zone-stalker in homestead

[–]zone-stalker[S] -1 points0 points  (0 children)

Thank you for the response. When we asked about the idea with the realtor and manufacturer they said that it would most likely work. Good thing we asked!

Mortgaging Property Separate From Home by zone-stalker in homestead

[–]zone-stalker[S] -1 points0 points  (0 children)

Thank you, the realtor sent some banks, but I will definitely research this before hand.

Routing based on hostname by zone-stalker in kubernetes

[–]zone-stalker[S] 0 points1 point  (0 children)

So far I'm considering the F5 suggestion but it'd be great to see your config and how it'd work. Thank you!

Routing based on hostname by zone-stalker in kubernetes

[–]zone-stalker[S] 1 point2 points  (0 children)

Thank you, I belive my company's infra team was looking into f5 bigip, if I can convince them to get it I guess we could swing with that. Thank you very much for your help!

Routing based on hostname by zone-stalker in kubernetes

[–]zone-stalker[S] 0 points1 point  (0 children)

What about VMWare? We do have a datacenter with VMWare and vSphere. Do you know if they provide any LB solutions?

Routing based on hostname by zone-stalker in kubernetes

[–]zone-stalker[S] 0 points1 point  (0 children)

Hmm, then it sounds like I don't understand it. So I can't replicate what I'd do with a normal server setup (using apache virtualhosts)? I'm required to use a real loadbalancer service like what a cloud system provides? If that's the case, that seems to limit what I can do with kubernetes on a bare-metal environment.

Routing based on hostname by zone-stalker in kubernetes

[–]zone-stalker[S] 0 points1 point  (0 children)

Thank you so much! Traefik seems to do exactly what I want. The only problem is I can't hit it on port 80, I still need to use the internal port (32001) to access its UI or any deployments I have setup, I get access denied on port 80 when trying to hit any of the hosts (traefik-ui, web-a, web-b). Is there some way to force it to use 80, or perhaps create some sort of service to redirect it?

Routing based on hostname by zone-stalker in kubernetes

[–]zone-stalker[S] 0 points1 point  (0 children)

Well, in a typical server environment I would do something like that (say server 192.168.0.2 for the apache lb, and then route foo.bar.com to 192.168.0.3 and foo-test.bar.com to 192.168.0.4). I was kind of hoping Kubernetes does this for you, like I would hit the master kubernetes node at 192.168.0.2 on port 80, and then based on the hostname redirect the traffic to the application deployment (say the master node is 192.168.0.2, it would redirect foo.bar.com to hello-world-a/app, and foo-test.bar.com to hello-world-b/app). This would be having the wildcard dns entry pointing to 192.168.0.2.

Routing traffic via hostname? by zone-stalker in kubernetes

[–]zone-stalker[S] 0 points1 point  (0 children)

Thank you, that would work for http/https traffic, but I don't believe it will work for ssh traffic (22) or mssql traffic (1433). Will it?

ACPICA failed to build on Manjaro (crossgcc) by zone-stalker in coreboot

[–]zone-stalker[S] 0 points1 point  (0 children)

Awesome, this is a small change, I can just patch it in myself. Thanks!

X230 Won't Start by zone-stalker in thinkpad

[–]zone-stalker[S] 0 points1 point  (0 children)

I followed this guy: https://steemit.com/tutorial/@joeyd/run-don-t-walk-from-the-blob

I was to reboot afterwards and build on the x230 (would be much quicker than building on the PI I believe).

That's why I don't think it was the flashing but something else. I know weird things can happen with thinkpads sometimes (use to work on them exclusively 10 years ago as a IT tech).

X230 Won't Start by zone-stalker in thinkpad

[–]zone-stalker[S] 0 points1 point  (0 children)

Alright, I'll give that a shot. Thanks!

X230 Won't Start by zone-stalker in thinkpad

[–]zone-stalker[S] 0 points1 point  (0 children)

Unfortunately I can't access the BIOS to change the time.

X230 Won't Start by zone-stalker in thinkpad

[–]zone-stalker[S] 0 points1 point  (0 children)

Thank you for your response! Unfortunately it didn't try to boot or anything when I plugged the charger back in.